@payabli/sdk-node 0.0.108 → 0.0.110

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. package/README.md +5 -1
  2. package/dist/cjs/Client.d.ts +2 -2
  3. package/dist/cjs/Client.js +2 -2
  4. package/dist/cjs/api/resources/bill/client/Client.d.ts +2 -2
  5. package/dist/cjs/api/resources/boarding/client/Client.d.ts +2 -2
  6. package/dist/cjs/api/resources/chargeBacks/client/Client.d.ts +2 -2
  7. package/dist/cjs/api/resources/chargeBacks/client/requests/ResponseChargeBack.d.ts +1 -2
  8. package/dist/cjs/api/resources/checkCapture/client/Client.d.ts +2 -2
  9. package/dist/cjs/api/resources/cloud/client/Client.d.ts +2 -2
  10. package/dist/cjs/api/resources/customer/client/Client.d.ts +2 -2
  11. package/dist/cjs/api/resources/export/client/Client.d.ts +2 -2
  12. package/dist/cjs/api/resources/hostedPaymentPages/client/Client.d.ts +2 -2
  13. package/dist/cjs/api/resources/import/client/Client.d.ts +2 -2
  14. package/dist/cjs/api/resources/invoice/client/Client.d.ts +2 -2
  15. package/dist/cjs/api/resources/lineItem/client/Client.d.ts +2 -2
  16. package/dist/cjs/api/resources/moneyIn/client/Client.d.ts +2 -2
  17. package/dist/cjs/api/resources/moneyIn/errors/CaptureError.js +1 -1
  18. package/dist/cjs/api/resources/moneyOut/client/Client.d.ts +8 -10
  19. package/dist/cjs/api/resources/moneyOut/client/Client.js +6 -8
  20. package/dist/cjs/api/resources/moneyOut/client/requests/MoneyOutTypesRequestOutAuthorize.d.ts +6 -8
  21. package/dist/cjs/api/resources/moneyOutTypes/types/AuthorizePaymentMethod.d.ts +30 -0
  22. package/dist/cjs/api/resources/moneyOutTypes/types/AuthorizePaymentMethod.js +5 -0
  23. package/dist/cjs/api/resources/moneyOutTypes/types/AuthorizePayoutBody.d.ts +3 -10
  24. package/dist/cjs/api/resources/moneyOutTypes/types/index.d.ts +1 -0
  25. package/dist/cjs/api/resources/moneyOutTypes/types/index.js +1 -0
  26. package/dist/cjs/api/resources/notification/client/Client.d.ts +2 -2
  27. package/dist/cjs/api/resources/ocr/client/Client.d.ts +2 -2
  28. package/dist/cjs/api/resources/organization/client/Client.d.ts +2 -2
  29. package/dist/cjs/api/resources/organization/client/requests/AddOrganizationRequest.d.ts +1 -2
  30. package/dist/cjs/api/resources/paymentLink/client/Client.d.ts +2 -2
  31. package/dist/cjs/api/resources/paymentMethodDomain/client/Client.d.ts +2 -2
  32. package/dist/cjs/api/resources/paypoint/client/Client.d.ts +2 -2
  33. package/dist/cjs/api/resources/query/client/Client.d.ts +2 -2
  34. package/dist/cjs/api/resources/query/client/requests/ListTransfersRequest.d.ts +3 -0
  35. package/dist/cjs/api/resources/query/client/requests/ListVcardsOrgRequest.d.ts +0 -2
  36. package/dist/cjs/api/resources/query/client/requests/ListVcardsRequest.d.ts +0 -2
  37. package/dist/cjs/api/resources/queryTypes/types/ListOrganizationsResponse.d.ts +2 -2
  38. package/dist/cjs/api/resources/queryTypes/types/QueryBatchesDetailResponse.d.ts +7 -7
  39. package/dist/cjs/api/resources/queryTypes/types/QueryBatchesResponse.d.ts +10 -10
  40. package/dist/cjs/api/resources/queryTypes/types/QueryTransferDetailResponse.d.ts +72 -72
  41. package/dist/cjs/api/resources/queryTypes/types/QueryTransferResponse.d.ts +2 -2
  42. package/dist/cjs/api/resources/queryTypes/types/QueryTransferSummary.d.ts +23 -18
  43. package/dist/cjs/api/resources/statistic/client/Client.d.ts +2 -2
  44. package/dist/cjs/api/resources/subscription/client/Client.d.ts +2 -2
  45. package/dist/cjs/api/resources/templates/client/Client.d.ts +2 -2
  46. package/dist/cjs/api/resources/tokenStorage/client/Client.d.ts +2 -2
  47. package/dist/cjs/api/resources/user/client/Client.d.ts +2 -2
  48. package/dist/cjs/api/resources/vendor/client/Client.d.ts +2 -2
  49. package/dist/cjs/api/resources/wallet/client/Client.d.ts +2 -2
  50. package/dist/cjs/api/types/AdditionalData.d.ts +1 -1
  51. package/dist/cjs/api/types/BillDetailResponse.d.ts +1 -1
  52. package/dist/cjs/api/types/BillQueryRecord2.d.ts +37 -38
  53. package/dist/cjs/api/types/BillQueryResponse.d.ts +8 -8
  54. package/dist/cjs/api/types/IdempotencyKey.d.ts +1 -1
  55. package/dist/cjs/api/types/PaymentIdString.d.ts +7 -0
  56. package/dist/cjs/api/types/PaymentIdString.js +5 -0
  57. package/dist/cjs/api/types/Paymentid.d.ts +1 -1
  58. package/dist/cjs/api/types/QueryPayoutTransaction.d.ts +2 -2
  59. package/dist/cjs/api/types/TransactionOutQueryRecord.d.ts +1 -1
  60. package/dist/cjs/api/types/Transfer.d.ts +18 -6
  61. package/dist/cjs/api/types/TransferQueryResponse.d.ts +10 -6
  62. package/dist/cjs/api/types/index.d.ts +1 -0
  63. package/dist/cjs/api/types/index.js +1 -0
  64. package/dist/cjs/core/fetcher/Fetcher.d.ts +1 -1
  65. package/dist/cjs/core/fetcher/requestWithRetries.js +34 -2
  66. package/dist/cjs/core/headers.d.ts +2 -2
  67. package/dist/cjs/version.d.ts +1 -1
  68. package/dist/cjs/version.js +1 -1
  69. package/dist/esm/Client.d.mts +2 -2
  70. package/dist/esm/Client.mjs +2 -2
  71. package/dist/esm/api/resources/bill/client/Client.d.mts +2 -2
  72. package/dist/esm/api/resources/boarding/client/Client.d.mts +2 -2
  73. package/dist/esm/api/resources/chargeBacks/client/Client.d.mts +2 -2
  74. package/dist/esm/api/resources/chargeBacks/client/requests/ResponseChargeBack.d.mts +1 -2
  75. package/dist/esm/api/resources/checkCapture/client/Client.d.mts +2 -2
  76. package/dist/esm/api/resources/cloud/client/Client.d.mts +2 -2
  77. package/dist/esm/api/resources/customer/client/Client.d.mts +2 -2
  78. package/dist/esm/api/resources/export/client/Client.d.mts +2 -2
  79. package/dist/esm/api/resources/hostedPaymentPages/client/Client.d.mts +2 -2
  80. package/dist/esm/api/resources/import/client/Client.d.mts +2 -2
  81. package/dist/esm/api/resources/invoice/client/Client.d.mts +2 -2
  82. package/dist/esm/api/resources/lineItem/client/Client.d.mts +2 -2
  83. package/dist/esm/api/resources/moneyIn/client/Client.d.mts +2 -2
  84. package/dist/esm/api/resources/moneyIn/errors/CaptureError.mjs +1 -1
  85. package/dist/esm/api/resources/moneyOut/client/Client.d.mts +8 -10
  86. package/dist/esm/api/resources/moneyOut/client/Client.mjs +6 -8
  87. package/dist/esm/api/resources/moneyOut/client/requests/MoneyOutTypesRequestOutAuthorize.d.mts +6 -8
  88. package/dist/esm/api/resources/moneyOutTypes/types/AuthorizePaymentMethod.d.mts +30 -0
  89. package/dist/esm/api/resources/moneyOutTypes/types/AuthorizePaymentMethod.mjs +4 -0
  90. package/dist/esm/api/resources/moneyOutTypes/types/AuthorizePayoutBody.d.mts +3 -10
  91. package/dist/esm/api/resources/moneyOutTypes/types/index.d.mts +1 -0
  92. package/dist/esm/api/resources/moneyOutTypes/types/index.mjs +1 -0
  93. package/dist/esm/api/resources/notification/client/Client.d.mts +2 -2
  94. package/dist/esm/api/resources/ocr/client/Client.d.mts +2 -2
  95. package/dist/esm/api/resources/organization/client/Client.d.mts +2 -2
  96. package/dist/esm/api/resources/organization/client/requests/AddOrganizationRequest.d.mts +1 -2
  97. package/dist/esm/api/resources/paymentLink/client/Client.d.mts +2 -2
  98. package/dist/esm/api/resources/paymentMethodDomain/client/Client.d.mts +2 -2
  99. package/dist/esm/api/resources/paypoint/client/Client.d.mts +2 -2
  100. package/dist/esm/api/resources/query/client/Client.d.mts +2 -2
  101. package/dist/esm/api/resources/query/client/requests/ListTransfersRequest.d.mts +3 -0
  102. package/dist/esm/api/resources/query/client/requests/ListVcardsOrgRequest.d.mts +0 -2
  103. package/dist/esm/api/resources/query/client/requests/ListVcardsRequest.d.mts +0 -2
  104. package/dist/esm/api/resources/queryTypes/types/ListOrganizationsResponse.d.mts +2 -2
  105. package/dist/esm/api/resources/queryTypes/types/QueryBatchesDetailResponse.d.mts +7 -7
  106. package/dist/esm/api/resources/queryTypes/types/QueryBatchesResponse.d.mts +10 -10
  107. package/dist/esm/api/resources/queryTypes/types/QueryTransferDetailResponse.d.mts +72 -72
  108. package/dist/esm/api/resources/queryTypes/types/QueryTransferResponse.d.mts +2 -2
  109. package/dist/esm/api/resources/queryTypes/types/QueryTransferSummary.d.mts +23 -18
  110. package/dist/esm/api/resources/statistic/client/Client.d.mts +2 -2
  111. package/dist/esm/api/resources/subscription/client/Client.d.mts +2 -2
  112. package/dist/esm/api/resources/templates/client/Client.d.mts +2 -2
  113. package/dist/esm/api/resources/tokenStorage/client/Client.d.mts +2 -2
  114. package/dist/esm/api/resources/user/client/Client.d.mts +2 -2
  115. package/dist/esm/api/resources/vendor/client/Client.d.mts +2 -2
  116. package/dist/esm/api/resources/wallet/client/Client.d.mts +2 -2
  117. package/dist/esm/api/types/AdditionalData.d.mts +1 -1
  118. package/dist/esm/api/types/BillDetailResponse.d.mts +1 -1
  119. package/dist/esm/api/types/BillQueryRecord2.d.mts +37 -38
  120. package/dist/esm/api/types/BillQueryResponse.d.mts +8 -8
  121. package/dist/esm/api/types/IdempotencyKey.d.mts +1 -1
  122. package/dist/esm/api/types/PaymentIdString.d.mts +7 -0
  123. package/dist/esm/api/types/PaymentIdString.mjs +4 -0
  124. package/dist/esm/api/types/Paymentid.d.mts +1 -1
  125. package/dist/esm/api/types/QueryPayoutTransaction.d.mts +2 -2
  126. package/dist/esm/api/types/TransactionOutQueryRecord.d.mts +1 -1
  127. package/dist/esm/api/types/Transfer.d.mts +18 -6
  128. package/dist/esm/api/types/TransferQueryResponse.d.mts +10 -6
  129. package/dist/esm/api/types/index.d.mts +1 -0
  130. package/dist/esm/api/types/index.mjs +1 -0
  131. package/dist/esm/core/fetcher/Fetcher.d.mts +1 -1
  132. package/dist/esm/core/fetcher/requestWithRetries.mjs +34 -2
  133. package/dist/esm/core/headers.d.mts +2 -2
  134. package/dist/esm/version.d.mts +1 -1
  135. package/dist/esm/version.mjs +1 -1
  136. package/package.json +1 -1
package/README.md CHANGED
@@ -3,7 +3,11 @@
3
3
  [![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2Fpayabli%2Fsdk-node)
4
4
  [![npm shield](https://img.shields.io/npm/v/@payabli/sdk-node)](https://www.npmjs.com/package/@payabli/sdk-node)
5
5
 
6
- The Payabli TypeScript library provides convenient access to the Payabli APIs from TypeScript.
6
+ If you’re a software company, you’re a payments company™
7
+
8
+ ## Documentation
9
+
10
+ API reference documentation is available [here](https://docs.payabli.com/).
7
11
 
8
12
  ## Installation
9
13
 
@@ -37,7 +37,7 @@ export declare namespace PayabliClient {
37
37
  baseUrl?: core.Supplier<string>;
38
38
  apiKey?: core.Supplier<string | undefined>;
39
39
  /** Additional headers to include in requests. */
40
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
40
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
41
41
  }
42
42
  interface RequestOptions {
43
43
  /** The maximum time to wait for a response in seconds. */
@@ -49,7 +49,7 @@ export declare namespace PayabliClient {
49
49
  /** Additional query string parameters to include in the request. */
50
50
  queryParams?: Record<string, unknown>;
51
51
  /** Additional headers to include in the request. */
52
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
52
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
53
53
  }
54
54
  }
55
55
  export declare class PayabliClient {
@@ -71,8 +71,8 @@ class PayabliClient {
71
71
  this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
72
72
  "X-Fern-Language": "JavaScript",
73
73
  "X-Fern-SDK-Name": "@payabli/sdk-node",
74
- "X-Fern-SDK-Version": "0.0.108",
75
- "User-Agent": "@payabli/sdk-node/0.0.108",
74
+ "X-Fern-SDK-Version": "0.0.110",
75
+ "User-Agent": "@payabli/sdk-node/0.0.110",
76
76
  "X-Fern-Runtime": core.RUNTIME.type,
77
77
  "X-Fern-Runtime-Version": core.RUNTIME.version,
78
78
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -11,7 +11,7 @@ export declare namespace Bill {
11
11
  baseUrl?: core.Supplier<string>;
12
12
  apiKey?: core.Supplier<string | undefined>;
13
13
  /** Additional headers to include in requests. */
14
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
14
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
15
15
  }
16
16
  interface RequestOptions {
17
17
  /** The maximum time to wait for a response in seconds. */
@@ -23,7 +23,7 @@ export declare namespace Bill {
23
23
  /** Additional query string parameters to include in the request. */
24
24
  queryParams?: Record<string, unknown>;
25
25
  /** Additional headers to include in the request. */
26
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
26
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
27
27
  }
28
28
  }
29
29
  export declare class Bill {
@@ -11,7 +11,7 @@ export declare namespace Boarding {
11
11
  baseUrl?: core.Supplier<string>;
12
12
  apiKey?: core.Supplier<string | undefined>;
13
13
  /** Additional headers to include in requests. */
14
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
14
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
15
15
  }
16
16
  interface RequestOptions {
17
17
  /** The maximum time to wait for a response in seconds. */
@@ -23,7 +23,7 @@ export declare namespace Boarding {
23
23
  /** Additional query string parameters to include in the request. */
24
24
  queryParams?: Record<string, unknown>;
25
25
  /** Additional headers to include in the request. */
26
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
26
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
27
27
  }
28
28
  }
29
29
  export declare class Boarding {
@@ -11,7 +11,7 @@ export declare namespace ChargeBacks {
11
11
  baseUrl?: core.Supplier<string>;
12
12
  apiKey?: core.Supplier<string | undefined>;
13
13
  /** Additional headers to include in requests. */
14
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
14
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
15
15
  }
16
16
  interface RequestOptions {
17
17
  /** The maximum time to wait for a response in seconds. */
@@ -23,7 +23,7 @@ export declare namespace ChargeBacks {
23
23
  /** Additional query string parameters to include in the request. */
24
24
  queryParams?: Record<string, unknown>;
25
25
  /** Additional headers to include in the request. */
26
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
26
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
27
27
  }
28
28
  }
29
29
  export declare class ChargeBacks {
@@ -9,8 +9,7 @@ import * as Payabli from "../../../../index.js";
9
9
  * }
10
10
  */
11
11
  export interface ResponseChargeBack {
12
- /** A unique ID you can include to prevent duplicating objects or transactions if a request is sent more than once. This key isn't generated in Payabli, you must generate it yourself. */
13
- idempotencyKey?: string;
12
+ idempotencyKey?: Payabli.IdempotencyKey;
14
13
  /** Array of attached files to response. */
15
14
  attachments?: Payabli.Attachments | undefined;
16
15
  /** Email of response submitter. */
@@ -11,7 +11,7 @@ export declare namespace CheckCapture {
11
11
  baseUrl?: core.Supplier<string>;
12
12
  apiKey?: core.Supplier<string | undefined>;
13
13
  /** Additional headers to include in requests. */
14
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
14
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
15
15
  }
16
16
  interface RequestOptions {
17
17
  /** The maximum time to wait for a response in seconds. */
@@ -23,7 +23,7 @@ export declare namespace CheckCapture {
23
23
  /** Additional query string parameters to include in the request. */
24
24
  queryParams?: Record<string, unknown>;
25
25
  /** Additional headers to include in the request. */
26
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
26
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
27
27
  }
28
28
  }
29
29
  export declare class CheckCapture {
@@ -11,7 +11,7 @@ export declare namespace Cloud {
11
11
  baseUrl?: core.Supplier<string>;
12
12
  apiKey?: core.Supplier<string | undefined>;
13
13
  /** Additional headers to include in requests. */
14
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
14
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
15
15
  }
16
16
  interface RequestOptions {
17
17
  /** The maximum time to wait for a response in seconds. */
@@ -23,7 +23,7 @@ export declare namespace Cloud {
23
23
  /** Additional query string parameters to include in the request. */
24
24
  queryParams?: Record<string, unknown>;
25
25
  /** Additional headers to include in the request. */
26
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
26
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
27
27
  }
28
28
  }
29
29
  export declare class Cloud {
@@ -11,7 +11,7 @@ export declare namespace Customer {
11
11
  baseUrl?: core.Supplier<string>;
12
12
  apiKey?: core.Supplier<string | undefined>;
13
13
  /** Additional headers to include in requests. */
14
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
14
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
15
15
  }
16
16
  interface RequestOptions {
17
17
  /** The maximum time to wait for a response in seconds. */
@@ -23,7 +23,7 @@ export declare namespace Customer {
23
23
  /** Additional query string parameters to include in the request. */
24
24
  queryParams?: Record<string, unknown>;
25
25
  /** Additional headers to include in the request. */
26
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
26
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
27
27
  }
28
28
  }
29
29
  export declare class Customer {
@@ -11,7 +11,7 @@ export declare namespace Export {
11
11
  baseUrl?: core.Supplier<string>;
12
12
  apiKey?: core.Supplier<string | undefined>;
13
13
  /** Additional headers to include in requests. */
14
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
14
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
15
15
  }
16
16
  interface RequestOptions {
17
17
  /** The maximum time to wait for a response in seconds. */
@@ -23,7 +23,7 @@ export declare namespace Export {
23
23
  /** Additional query string parameters to include in the request. */
24
24
  queryParams?: Record<string, unknown>;
25
25
  /** Additional headers to include in the request. */
26
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
26
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
27
27
  }
28
28
  }
29
29
  export declare class Export {
@@ -11,7 +11,7 @@ export declare namespace HostedPaymentPages {
11
11
  baseUrl?: core.Supplier<string>;
12
12
  apiKey?: core.Supplier<string | undefined>;
13
13
  /** Additional headers to include in requests. */
14
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
14
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
15
15
  }
16
16
  interface RequestOptions {
17
17
  /** The maximum time to wait for a response in seconds. */
@@ -23,7 +23,7 @@ export declare namespace HostedPaymentPages {
23
23
  /** Additional query string parameters to include in the request. */
24
24
  queryParams?: Record<string, unknown>;
25
25
  /** Additional headers to include in the request. */
26
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
26
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
27
27
  }
28
28
  }
29
29
  export declare class HostedPaymentPages {
@@ -11,7 +11,7 @@ export declare namespace Import {
11
11
  baseUrl?: core.Supplier<string>;
12
12
  apiKey?: core.Supplier<string | undefined>;
13
13
  /** Additional headers to include in requests. */
14
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
14
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
15
15
  }
16
16
  interface RequestOptions {
17
17
  /** The maximum time to wait for a response in seconds. */
@@ -23,7 +23,7 @@ export declare namespace Import {
23
23
  /** Additional query string parameters to include in the request. */
24
24
  queryParams?: Record<string, unknown>;
25
25
  /** Additional headers to include in the request. */
26
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
26
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
27
27
  }
28
28
  }
29
29
  export declare class Import {
@@ -11,7 +11,7 @@ export declare namespace Invoice {
11
11
  baseUrl?: core.Supplier<string>;
12
12
  apiKey?: core.Supplier<string | undefined>;
13
13
  /** Additional headers to include in requests. */
14
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
14
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
15
15
  }
16
16
  interface RequestOptions {
17
17
  /** The maximum time to wait for a response in seconds. */
@@ -23,7 +23,7 @@ export declare namespace Invoice {
23
23
  /** Additional query string parameters to include in the request. */
24
24
  queryParams?: Record<string, unknown>;
25
25
  /** Additional headers to include in the request. */
26
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
26
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
27
27
  }
28
28
  }
29
29
  export declare class Invoice {
@@ -11,7 +11,7 @@ export declare namespace LineItem {
11
11
  baseUrl?: core.Supplier<string>;
12
12
  apiKey?: core.Supplier<string | undefined>;
13
13
  /** Additional headers to include in requests. */
14
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
14
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
15
15
  }
16
16
  interface RequestOptions {
17
17
  /** The maximum time to wait for a response in seconds. */
@@ -23,7 +23,7 @@ export declare namespace LineItem {
23
23
  /** Additional query string parameters to include in the request. */
24
24
  queryParams?: Record<string, unknown>;
25
25
  /** Additional headers to include in the request. */
26
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
26
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
27
27
  }
28
28
  }
29
29
  export declare class LineItem {
@@ -11,7 +11,7 @@ export declare namespace MoneyIn {
11
11
  baseUrl?: core.Supplier<string>;
12
12
  apiKey?: core.Supplier<string | undefined>;
13
13
  /** Additional headers to include in requests. */
14
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
14
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
15
15
  }
16
16
  interface RequestOptions {
17
17
  /** The maximum time to wait for a response in seconds. */
@@ -23,7 +23,7 @@ export declare namespace MoneyIn {
23
23
  /** Additional query string parameters to include in the request. */
24
24
  queryParams?: Record<string, unknown>;
25
25
  /** Additional headers to include in the request. */
26
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
26
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
27
27
  }
28
28
  }
29
29
  export declare class MoneyIn {
@@ -42,7 +42,7 @@ class CaptureError extends errors.PayabliError {
42
42
  constructor(body, rawResponse) {
43
43
  super({
44
44
  message: "CaptureError",
45
- statusCode: 423,
45
+ statusCode: 400,
46
46
  body: body,
47
47
  rawResponse: rawResponse,
48
48
  });
@@ -11,7 +11,7 @@ export declare namespace MoneyOut {
11
11
  baseUrl?: core.Supplier<string>;
12
12
  apiKey?: core.Supplier<string | undefined>;
13
13
  /** Additional headers to include in requests. */
14
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
14
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
15
15
  }
16
16
  interface RequestOptions {
17
17
  /** The maximum time to wait for a response in seconds. */
@@ -23,7 +23,7 @@ export declare namespace MoneyOut {
23
23
  /** Additional query string parameters to include in the request. */
24
24
  queryParams?: Record<string, unknown>;
25
25
  /** Additional headers to include in the request. */
26
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
26
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
27
27
  }
28
28
  }
29
29
  export declare class MoneyOut {
@@ -112,7 +112,12 @@ export declare class MoneyOut {
112
112
  * body: {
113
113
  * entryPoint: "47ced57b",
114
114
  * paymentMethod: {
115
- * method: "ach"
115
+ * method: "ach",
116
+ * achHolder: "John Doe",
117
+ * achRouting: "011401533",
118
+ * achAccount: "123456789",
119
+ * achAccountType: "checking",
120
+ * achHolderType: "business"
116
121
  * },
117
122
  * paymentDetails: {
118
123
  * totalAmount: 978.32
@@ -136,13 +141,6 @@ export declare class MoneyOut {
136
141
  * contactEmail: "Mandy65@heritagepro.com",
137
142
  * contactPhone: "996-325-5420 x31028"
138
143
  * }],
139
- * billingData: {
140
- * bankName: "Chase",
141
- * routingAccount: "011401533",
142
- * accountNumber: "1237658922",
143
- * typeAccount: "Savings",
144
- * bankAccountHolderName: "Payabli"
145
- * },
146
144
  * vendorStatus: 1,
147
145
  * remitAddress1: "727 Terrell Streets",
148
146
  * remitAddress2: "Apt. 773",
@@ -138,7 +138,12 @@ class MoneyOut {
138
138
  * body: {
139
139
  * entryPoint: "47ced57b",
140
140
  * paymentMethod: {
141
- * method: "ach"
141
+ * method: "ach",
142
+ * achHolder: "John Doe",
143
+ * achRouting: "011401533",
144
+ * achAccount: "123456789",
145
+ * achAccountType: "checking",
146
+ * achHolderType: "business"
142
147
  * },
143
148
  * paymentDetails: {
144
149
  * totalAmount: 978.32
@@ -162,13 +167,6 @@ class MoneyOut {
162
167
  * contactEmail: "Mandy65@heritagepro.com",
163
168
  * contactPhone: "996-325-5420 x31028"
164
169
  * }],
165
- * billingData: {
166
- * bankName: "Chase",
167
- * routingAccount: "011401533",
168
- * accountNumber: "1237658922",
169
- * typeAccount: "Savings",
170
- * bankAccountHolderName: "Payabli"
171
- * },
172
170
  * vendorStatus: 1,
173
171
  * remitAddress1: "727 Terrell Streets",
174
172
  * remitAddress2: "Apt. 773",
@@ -75,7 +75,12 @@ import * as Payabli from "../../../../index.js";
75
75
  * body: {
76
76
  * entryPoint: "47ced57b",
77
77
  * paymentMethod: {
78
- * method: "ach"
78
+ * method: "ach",
79
+ * achHolder: "John Doe",
80
+ * achRouting: "011401533",
81
+ * achAccount: "123456789",
82
+ * achAccountType: "checking",
83
+ * achHolderType: "business"
79
84
  * },
80
85
  * paymentDetails: {
81
86
  * totalAmount: 978.32
@@ -99,13 +104,6 @@ import * as Payabli from "../../../../index.js";
99
104
  * contactEmail: "Mandy65@heritagepro.com",
100
105
  * contactPhone: "996-325-5420 x31028"
101
106
  * }],
102
- * billingData: {
103
- * bankName: "Chase",
104
- * routingAccount: "011401533",
105
- * accountNumber: "1237658922",
106
- * typeAccount: "Savings",
107
- * bankAccountHolderName: "Payabli"
108
- * },
109
107
  * vendorStatus: 1,
110
108
  * remitAddress1: "727 Terrell Streets",
111
109
  * remitAddress2: "Apt. 773",
@@ -0,0 +1,30 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Payabli from "../../../index.js";
5
+ /**
6
+ * Payment method object for vendor payouts.
7
+ * - `{ method: "managed" }` - Managed payment method
8
+ * - `{ method: "vcard" }` - Virtual card payment method
9
+ * - `{ method: "check" }` - Check payment method
10
+ * - `{ method: "ach", achHolder: "...", achRouting: "...", achAccount: "...", achAccountType: "..." }` - ACH payment method with bank details
11
+ * - `{ method: "ach", storedMethodId: "..." }` - ACH payment method using stored method ID
12
+ */
13
+ export interface AuthorizePaymentMethod {
14
+ /** Payment method type - "managed", "vcard", "check", or "ach" */
15
+ method: string;
16
+ /** Account holder name for ACH payments. Required when method is "ach" and not using `storedMethodId`. */
17
+ achHolder?: string;
18
+ /** Bank routing number for ACH payments. Required when method is "ach" and not using `storedMethodId`. */
19
+ achRouting?: string;
20
+ /** Bank account number for ACH payments. Required when method is "ach" and not using `storedMethodId`. */
21
+ achAccount?: string;
22
+ /** Account type for ACH payments ("checking" or "savings"). Required when method is "ach" and not using `storedMethodId`. */
23
+ achAccountType?: string;
24
+ achCode?: Payabli.AchSecCode;
25
+ achHolderType?: Payabli.AchHolderType;
26
+ /** ID of the stored ACH payment method. Only applicable when method is `ach`. Use this to reference a previously saved ACH method instead of providing bank details directly. */
27
+ storedMethodId?: string;
28
+ initiator?: Payabli.Initiator;
29
+ storedMethodUsageType?: Payabli.StoredMethodUsageType;
30
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -7,17 +7,10 @@ export interface AuthorizePayoutBody {
7
7
  source?: Payabli.Source;
8
8
  orderId?: Payabli.OrderId;
9
9
  orderDescription?: Payabli.Orderdescription;
10
- paymentMethod: Payabli.VendorPaymentMethod;
10
+ paymentMethod: Payabli.AuthorizePaymentMethod;
11
11
  /** Object containing payment details. */
12
12
  paymentDetails: AuthorizePayoutBody.PaymentDetails;
13
- /**
14
- * Object containing vendor data.
15
- * <Note>
16
- * When creating a new vendor in a payout authorization, the system first checks `billingData` for the vendor's billing information.
17
- * If `billingData` is empty, it falls back to the `paymentMethod` object information.
18
- * For existing vendors, `paymentMethod` is ignored unless a `storedMethodId` is provided.
19
- * </Note>
20
- */
13
+ /** Object containing vendor data. */
21
14
  vendorData: AuthorizePayoutBody.VendorData;
22
15
  /** Array of bills associated to the transaction */
23
16
  invoiceData: AuthorizePayoutBody.InvoiceData.Item[];
@@ -77,7 +70,7 @@ export declare namespace AuthorizePayoutBody {
77
70
  }
78
71
  namespace VendorData {
79
72
  /**
80
- * Object containing vendor's bank information.
73
+ * Object containing vendor's bank information. This object is deprecated for this endpoint. Use the `paymentMethod` object in payout authorize requests instead.
81
74
  */
82
75
  interface BillingData {
83
76
  bankName?: Payabli.BankName;
@@ -1,5 +1,6 @@
1
1
  export * from "./LotNumber.js";
2
2
  export * from "./AuthorizePayoutBody.js";
3
+ export * from "./AuthorizePaymentMethod.js";
3
4
  export * from "./AuthCapturePayoutResponse.js";
4
5
  export * from "./CaptureAllOutResponse.js";
5
6
  export * from "./VCardGetResponse.js";
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./LotNumber.js"), exports);
18
18
  __exportStar(require("./AuthorizePayoutBody.js"), exports);
19
+ __exportStar(require("./AuthorizePaymentMethod.js"), exports);
19
20
  __exportStar(require("./AuthCapturePayoutResponse.js"), exports);
20
21
  __exportStar(require("./CaptureAllOutResponse.js"), exports);
21
22
  __exportStar(require("./VCardGetResponse.js"), exports);
@@ -11,7 +11,7 @@ export declare namespace Notification {
11
11
  baseUrl?: core.Supplier<string>;
12
12
  apiKey?: core.Supplier<string | undefined>;
13
13
  /** Additional headers to include in requests. */
14
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
14
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
15
15
  }
16
16
  interface RequestOptions {
17
17
  /** The maximum time to wait for a response in seconds. */
@@ -23,7 +23,7 @@ export declare namespace Notification {
23
23
  /** Additional query string parameters to include in the request. */
24
24
  queryParams?: Record<string, unknown>;
25
25
  /** Additional headers to include in the request. */
26
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
26
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
27
27
  }
28
28
  }
29
29
  export declare class Notification {
@@ -11,7 +11,7 @@ export declare namespace Ocr {
11
11
  baseUrl?: core.Supplier<string>;
12
12
  apiKey?: core.Supplier<string | undefined>;
13
13
  /** Additional headers to include in requests. */
14
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
14
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
15
15
  }
16
16
  interface RequestOptions {
17
17
  /** The maximum time to wait for a response in seconds. */
@@ -23,7 +23,7 @@ export declare namespace Ocr {
23
23
  /** Additional query string parameters to include in the request. */
24
24
  queryParams?: Record<string, unknown>;
25
25
  /** Additional headers to include in the request. */
26
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
26
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
27
27
  }
28
28
  }
29
29
  export declare class Ocr {
@@ -11,7 +11,7 @@ export declare namespace Organization {
11
11
  baseUrl?: core.Supplier<string>;
12
12
  apiKey?: core.Supplier<string | undefined>;
13
13
  /** Additional headers to include in requests. */
14
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
14
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
15
15
  }
16
16
  interface RequestOptions {
17
17
  /** The maximum time to wait for a response in seconds. */
@@ -23,7 +23,7 @@ export declare namespace Organization {
23
23
  /** Additional query string parameters to include in the request. */
24
24
  queryParams?: Record<string, unknown>;
25
25
  /** Additional headers to include in the request. */
26
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
26
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
27
27
  }
28
28
  }
29
29
  export declare class Organization {
@@ -45,8 +45,7 @@ import * as Payabli from "../../../../index.js";
45
45
  * }
46
46
  */
47
47
  export interface AddOrganizationRequest {
48
- /** A unique ID you can include to prevent duplicating objects or transactions if a request is sent more than once. This key isn't generated in Payabli, you must generate it yourself. */
49
- idempotencyKey?: string;
48
+ idempotencyKey?: Payabli.IdempotencyKey;
50
49
  services?: Payabli.ServiceCost[];
51
50
  billingInfo?: Payabli.Instrument;
52
51
  contacts?: Payabli.ContactsField | undefined;
@@ -11,7 +11,7 @@ export declare namespace PaymentLink {
11
11
  baseUrl?: core.Supplier<string>;
12
12
  apiKey?: core.Supplier<string | undefined>;
13
13
  /** Additional headers to include in requests. */
14
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
14
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
15
15
  }
16
16
  interface RequestOptions {
17
17
  /** The maximum time to wait for a response in seconds. */
@@ -23,7 +23,7 @@ export declare namespace PaymentLink {
23
23
  /** Additional query string parameters to include in the request. */
24
24
  queryParams?: Record<string, unknown>;
25
25
  /** Additional headers to include in the request. */
26
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
26
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
27
27
  }
28
28
  }
29
29
  export declare class PaymentLink {
@@ -11,7 +11,7 @@ export declare namespace PaymentMethodDomain {
11
11
  baseUrl?: core.Supplier<string>;
12
12
  apiKey?: core.Supplier<string | undefined>;
13
13
  /** Additional headers to include in requests. */
14
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
14
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
15
15
  }
16
16
  interface RequestOptions {
17
17
  /** The maximum time to wait for a response in seconds. */
@@ -23,7 +23,7 @@ export declare namespace PaymentMethodDomain {
23
23
  /** Additional query string parameters to include in the request. */
24
24
  queryParams?: Record<string, unknown>;
25
25
  /** Additional headers to include in the request. */
26
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
26
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
27
27
  }
28
28
  }
29
29
  export declare class PaymentMethodDomain {
@@ -11,7 +11,7 @@ export declare namespace Paypoint {
11
11
  baseUrl?: core.Supplier<string>;
12
12
  apiKey?: core.Supplier<string | undefined>;
13
13
  /** Additional headers to include in requests. */
14
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
14
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
15
15
  }
16
16
  interface RequestOptions {
17
17
  /** The maximum time to wait for a response in seconds. */
@@ -23,7 +23,7 @@ export declare namespace Paypoint {
23
23
  /** Additional query string parameters to include in the request. */
24
24
  queryParams?: Record<string, unknown>;
25
25
  /** Additional headers to include in the request. */
26
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
26
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
27
27
  }
28
28
  }
29
29
  export declare class Paypoint {
@@ -11,7 +11,7 @@ export declare namespace Query {
11
11
  baseUrl?: core.Supplier<string>;
12
12
  apiKey?: core.Supplier<string | undefined>;
13
13
  /** Additional headers to include in requests. */
14
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
14
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
15
15
  }
16
16
  interface RequestOptions {
17
17
  /** The maximum time to wait for a response in seconds. */
@@ -23,7 +23,7 @@ export declare namespace Query {
23
23
  /** Additional query string parameters to include in the request. */
24
24
  queryParams?: Record<string, unknown>;
25
25
  /** Additional headers to include in the request. */
26
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
26
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
27
27
  }
28
28
  }
29
29
  export declare class Query {