diff --git a/package-lock.json b/package-lock.json index f06bb4ae..b67ff0ff 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { - "name": "@unit-finance/unit-node-sdk", - "version": "1.1.0", + "name": "@highbeam/unit-node-sdk", + "version": "1.2.6", "lockfileVersion": 2, "requires": true, "packages": { "": { - "name": "@unit-finance/unit-node-sdk", - "version": "1.1.0", + "name": "@highbeam/unit-node-sdk", + "version": "1.2.6", "license": "MPLv2", "dependencies": { "axios": "^1.6.8" diff --git a/package.json b/package.json index 0368019a..1e5847ac 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "@unit-finance/unit-node-sdk", - "version": "1.1.0", + "name": "@highbeam/unit-node-sdk", + "version": "1.2.6", "description": "", "main": "dist/unit.js", "types": "dist/unit.d.ts", diff --git a/resources/receivedPayments.ts b/resources/receivedPayments.ts index bfee60bb..25cc0abc 100644 --- a/resources/receivedPayments.ts +++ b/resources/receivedPayments.ts @@ -18,6 +18,10 @@ export class ReceivedPayments extends BaseResource { return this.httpPost>(`/${id}/advance`) } + public async reprocess(id: string): Promise> { + return this.httpPost>(`/${id}/reprocess`) + } + /** * @param include * Optional. A comma-separated list of related resources to include in the response. diff --git a/types/payments.ts b/types/payments.ts index 9973df42..82bb7a00 100644 --- a/types/payments.ts +++ b/types/payments.ts @@ -204,7 +204,7 @@ export interface WirePayment { relationships: BasePaymentRelationships } -export type ReceivedPaymentStatus = "Pending" | "Advanced" | "Completed" | "Returned" +export type ReceivedPaymentStatus = "Pending" | "Advanced" | "Completed" | "Returned" | "PendingReview" | "MarkedForReturn" export interface AchReceivedPayment { /** diff --git a/types/transactions.ts b/types/transactions.ts index 85349cc8..97613019 100644 --- a/types/transactions.ts +++ b/types/transactions.ts @@ -631,9 +631,9 @@ export type WireTransaction = BaseTransaction & { counterparty: Counterparty /** - * Description of the transaction as entered by the originator. Also known as OBI or “Originator to Beneficiary Information”. + * Optional. Description of the transaction as entered by the originator. */ - description: string + description?: string /** * Originator To Beneficiary Information, multi-line string delimited by \n.