@payabli/sdk-node 0.0.140 → 0.0.142

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 (181) hide show
  1. package/README.md +11 -15
  2. package/dist/cjs/BaseClient.js +2 -2
  3. package/dist/cjs/Client.d.ts +3 -0
  4. package/dist/cjs/Client.js +41 -36
  5. package/dist/cjs/api/resources/bill/types/BillOutData.d.ts +5 -1
  6. package/dist/cjs/api/resources/cloud/client/Client.d.ts +4 -0
  7. package/dist/cjs/api/resources/cloud/client/Client.js +4 -0
  8. package/dist/cjs/api/resources/index.d.ts +4 -0
  9. package/dist/cjs/api/resources/index.js +5 -1
  10. package/dist/cjs/api/resources/management/client/Client.d.ts +41 -0
  11. package/dist/cjs/api/resources/management/client/Client.js +131 -0
  12. package/dist/cjs/api/resources/management/client/index.d.ts +1 -0
  13. package/dist/cjs/api/resources/management/client/index.js +17 -0
  14. package/dist/cjs/api/resources/management/client/requests/VerifyAccountDetailsRequest.d.ts +25 -0
  15. package/dist/cjs/api/resources/management/client/requests/VerifyAccountDetailsRequest.js +3 -0
  16. package/dist/cjs/api/resources/management/client/requests/index.d.ts +1 -0
  17. package/dist/cjs/api/resources/management/client/requests/index.js +2 -0
  18. package/dist/cjs/api/resources/management/exports.d.ts +2 -0
  19. package/dist/cjs/api/resources/management/exports.js +21 -0
  20. package/dist/cjs/api/resources/management/index.d.ts +2 -0
  21. package/dist/cjs/api/resources/management/index.js +18 -0
  22. package/dist/cjs/api/resources/management/types/BankAccountVerificationDetailsResponse.d.ts +31 -0
  23. package/dist/cjs/api/resources/management/types/BankAccountVerificationDetailsResponse.js +3 -0
  24. package/dist/cjs/api/resources/management/types/VerifyAccountDetailsResponse.d.ts +9 -0
  25. package/dist/cjs/api/resources/management/types/VerifyAccountDetailsResponse.js +3 -0
  26. package/dist/cjs/api/resources/management/types/index.d.ts +2 -0
  27. package/dist/cjs/api/resources/management/types/index.js +18 -0
  28. package/dist/cjs/api/resources/moneyIn/client/Client.d.ts +1 -1
  29. package/dist/cjs/api/resources/moneyIn/client/Client.js +1 -1
  30. package/dist/cjs/api/resources/moneyIn/types/TransactionDetailPaymentData.d.ts +1 -1
  31. package/dist/cjs/api/resources/moneyOut/client/Client.d.ts +5 -2
  32. package/dist/cjs/api/resources/moneyOut/client/Client.js +5 -2
  33. package/dist/cjs/api/resources/moneyOut/client/requests/MoneyOutTypesRequestOutAuthorize.d.ts +3 -0
  34. package/dist/cjs/api/resources/moneyOutTypes/types/AuthorizePayoutBody.d.ts +1 -0
  35. package/dist/cjs/api/resources/payoutSubscription/types/GetPayoutSubscriptionResponse.d.ts +7 -0
  36. package/dist/cjs/api/resources/payoutSubscription/types/PayoutSubscriptionQueryRecord.d.ts +7 -0
  37. package/dist/cjs/api/resources/payoutSubscription/types/PayoutSubscriptionQueryRecordPascal.d.ts +7 -0
  38. package/dist/cjs/api/resources/payoutSubscription/types/QueryPayoutSubscriptionResponse.d.ts +7 -0
  39. package/dist/cjs/api/resources/query/client/Client.d.ts +42 -0
  40. package/dist/cjs/api/resources/query/client/Client.js +140 -0
  41. package/dist/cjs/api/resources/query/client/requests/ListDevicesOrgRequest.d.ts +113 -0
  42. package/dist/cjs/api/resources/query/client/requests/ListDevicesOrgRequest.js +3 -0
  43. package/dist/cjs/api/resources/query/client/requests/ListDevicesRequest.d.ts +113 -0
  44. package/dist/cjs/api/resources/query/client/requests/ListDevicesRequest.js +3 -0
  45. package/dist/cjs/api/resources/query/client/requests/ListVcardsOrgRequest.d.ts +1 -0
  46. package/dist/cjs/api/resources/query/client/requests/ListVcardsRequest.d.ts +1 -0
  47. package/dist/cjs/api/resources/query/client/requests/index.d.ts +2 -0
  48. package/dist/cjs/api/resources/queryTypes/types/DeviceQueryRecord.d.ts +50 -0
  49. package/dist/cjs/api/resources/queryTypes/types/DeviceQueryRecord.js +3 -0
  50. package/dist/cjs/api/resources/queryTypes/types/QueryDeviceResponse.d.ts +45 -0
  51. package/dist/cjs/api/resources/queryTypes/types/QueryDeviceResponse.js +3 -0
  52. package/dist/cjs/api/resources/queryTypes/types/index.d.ts +2 -0
  53. package/dist/cjs/api/resources/queryTypes/types/index.js +2 -0
  54. package/dist/cjs/api/resources/vendor/client/Client.d.ts +44 -1
  55. package/dist/cjs/api/resources/vendor/client/Client.js +88 -1
  56. package/dist/cjs/api/resources/vendor/index.d.ts +1 -0
  57. package/dist/cjs/api/resources/vendor/index.js +1 -0
  58. package/dist/cjs/api/resources/vendor/types/VendorEnrichRequest.d.ts +20 -0
  59. package/dist/cjs/api/resources/vendor/types/VendorEnrichRequest.js +3 -0
  60. package/dist/cjs/api/resources/vendor/types/VendorEnrichResponse.d.ts +12 -0
  61. package/dist/cjs/api/resources/vendor/types/VendorEnrichResponse.js +3 -0
  62. package/dist/cjs/api/resources/vendor/types/VendorEnrichResponseData.d.ts +16 -0
  63. package/dist/cjs/api/resources/vendor/types/VendorEnrichResponseData.js +3 -0
  64. package/dist/cjs/api/resources/vendor/types/VendorEnrichmentData.d.ts +10 -0
  65. package/dist/cjs/api/resources/vendor/types/VendorEnrichmentData.js +3 -0
  66. package/dist/cjs/api/resources/vendor/types/VendorEnrichmentInvoiceScan.d.ts +35 -0
  67. package/dist/cjs/api/resources/vendor/types/VendorEnrichmentInvoiceScan.js +3 -0
  68. package/dist/cjs/api/resources/vendor/types/VendorEnrichmentWebSearch.d.ts +35 -0
  69. package/dist/cjs/api/resources/vendor/types/VendorEnrichmentWebSearch.js +3 -0
  70. package/dist/cjs/api/resources/vendor/types/index.d.ts +6 -0
  71. package/dist/cjs/api/resources/vendor/types/index.js +22 -0
  72. package/dist/cjs/api/types/AutoCapture.d.ts +4 -0
  73. package/dist/cjs/api/types/AutoCapture.js +3 -0
  74. package/dist/cjs/api/types/BinData.d.ts +4 -1
  75. package/dist/cjs/api/types/NotificationContent.d.ts +0 -1
  76. package/dist/cjs/api/types/NotificationContent.js +0 -1
  77. package/dist/cjs/api/types/NotificationStandardRequest.d.ts +0 -1
  78. package/dist/cjs/api/types/NotificationStandardRequest.js +0 -1
  79. package/dist/cjs/api/types/ProcessingSection.d.ts +5 -0
  80. package/dist/cjs/api/types/QueryChargebacksResponse.d.ts +10 -1
  81. package/dist/cjs/api/types/TemplateElement.d.ts +1 -0
  82. package/dist/cjs/api/types/VCardCardType.d.ts +6 -0
  83. package/dist/cjs/api/types/VCardCardType.js +3 -0
  84. package/dist/cjs/api/types/VCardRecord.d.ts +2 -0
  85. package/dist/cjs/api/types/VendorData.d.ts +12 -0
  86. package/dist/cjs/api/types/VendorQueryRecord.d.ts +21 -0
  87. package/dist/cjs/api/types/index.d.ts +2 -0
  88. package/dist/cjs/api/types/index.js +2 -0
  89. package/dist/cjs/version.d.ts +1 -1
  90. package/dist/cjs/version.js +1 -1
  91. package/dist/esm/BaseClient.mjs +2 -2
  92. package/dist/esm/Client.d.mts +3 -0
  93. package/dist/esm/Client.mjs +5 -0
  94. package/dist/esm/api/resources/bill/types/BillOutData.d.mts +5 -1
  95. package/dist/esm/api/resources/cloud/client/Client.d.mts +4 -0
  96. package/dist/esm/api/resources/cloud/client/Client.mjs +4 -0
  97. package/dist/esm/api/resources/index.d.mts +4 -0
  98. package/dist/esm/api/resources/index.mjs +4 -0
  99. package/dist/esm/api/resources/management/client/Client.d.mts +41 -0
  100. package/dist/esm/api/resources/management/client/Client.mjs +94 -0
  101. package/dist/esm/api/resources/management/client/index.d.mts +1 -0
  102. package/dist/esm/api/resources/management/client/index.mjs +1 -0
  103. package/dist/esm/api/resources/management/client/requests/VerifyAccountDetailsRequest.d.mts +25 -0
  104. package/dist/esm/api/resources/management/client/requests/VerifyAccountDetailsRequest.mjs +2 -0
  105. package/dist/esm/api/resources/management/client/requests/index.d.mts +1 -0
  106. package/dist/esm/api/resources/management/client/requests/index.mjs +1 -0
  107. package/dist/esm/api/resources/management/exports.d.mts +2 -0
  108. package/dist/esm/api/resources/management/exports.mjs +3 -0
  109. package/dist/esm/api/resources/management/index.d.mts +2 -0
  110. package/dist/esm/api/resources/management/index.mjs +2 -0
  111. package/dist/esm/api/resources/management/types/BankAccountVerificationDetailsResponse.d.mts +31 -0
  112. package/dist/esm/api/resources/management/types/BankAccountVerificationDetailsResponse.mjs +2 -0
  113. package/dist/esm/api/resources/management/types/VerifyAccountDetailsResponse.d.mts +9 -0
  114. package/dist/esm/api/resources/management/types/VerifyAccountDetailsResponse.mjs +2 -0
  115. package/dist/esm/api/resources/management/types/index.d.mts +2 -0
  116. package/dist/esm/api/resources/management/types/index.mjs +2 -0
  117. package/dist/esm/api/resources/moneyIn/client/Client.d.mts +1 -1
  118. package/dist/esm/api/resources/moneyIn/client/Client.mjs +1 -1
  119. package/dist/esm/api/resources/moneyIn/types/TransactionDetailPaymentData.d.mts +1 -1
  120. package/dist/esm/api/resources/moneyOut/client/Client.d.mts +5 -2
  121. package/dist/esm/api/resources/moneyOut/client/Client.mjs +5 -2
  122. package/dist/esm/api/resources/moneyOut/client/requests/MoneyOutTypesRequestOutAuthorize.d.mts +3 -0
  123. package/dist/esm/api/resources/moneyOutTypes/types/AuthorizePayoutBody.d.mts +1 -0
  124. package/dist/esm/api/resources/payoutSubscription/types/GetPayoutSubscriptionResponse.d.mts +7 -0
  125. package/dist/esm/api/resources/payoutSubscription/types/PayoutSubscriptionQueryRecord.d.mts +7 -0
  126. package/dist/esm/api/resources/payoutSubscription/types/PayoutSubscriptionQueryRecordPascal.d.mts +7 -0
  127. package/dist/esm/api/resources/payoutSubscription/types/QueryPayoutSubscriptionResponse.d.mts +7 -0
  128. package/dist/esm/api/resources/query/client/Client.d.mts +42 -0
  129. package/dist/esm/api/resources/query/client/Client.mjs +140 -0
  130. package/dist/esm/api/resources/query/client/requests/ListDevicesOrgRequest.d.mts +113 -0
  131. package/dist/esm/api/resources/query/client/requests/ListDevicesOrgRequest.mjs +2 -0
  132. package/dist/esm/api/resources/query/client/requests/ListDevicesRequest.d.mts +113 -0
  133. package/dist/esm/api/resources/query/client/requests/ListDevicesRequest.mjs +2 -0
  134. package/dist/esm/api/resources/query/client/requests/ListVcardsOrgRequest.d.mts +1 -0
  135. package/dist/esm/api/resources/query/client/requests/ListVcardsRequest.d.mts +1 -0
  136. package/dist/esm/api/resources/query/client/requests/index.d.mts +2 -0
  137. package/dist/esm/api/resources/queryTypes/types/DeviceQueryRecord.d.mts +50 -0
  138. package/dist/esm/api/resources/queryTypes/types/DeviceQueryRecord.mjs +2 -0
  139. package/dist/esm/api/resources/queryTypes/types/QueryDeviceResponse.d.mts +45 -0
  140. package/dist/esm/api/resources/queryTypes/types/QueryDeviceResponse.mjs +2 -0
  141. package/dist/esm/api/resources/queryTypes/types/index.d.mts +2 -0
  142. package/dist/esm/api/resources/queryTypes/types/index.mjs +2 -0
  143. package/dist/esm/api/resources/vendor/client/Client.d.mts +44 -1
  144. package/dist/esm/api/resources/vendor/client/Client.mjs +88 -1
  145. package/dist/esm/api/resources/vendor/index.d.mts +1 -0
  146. package/dist/esm/api/resources/vendor/index.mjs +1 -0
  147. package/dist/esm/api/resources/vendor/types/VendorEnrichRequest.d.mts +20 -0
  148. package/dist/esm/api/resources/vendor/types/VendorEnrichRequest.mjs +2 -0
  149. package/dist/esm/api/resources/vendor/types/VendorEnrichResponse.d.mts +12 -0
  150. package/dist/esm/api/resources/vendor/types/VendorEnrichResponse.mjs +2 -0
  151. package/dist/esm/api/resources/vendor/types/VendorEnrichResponseData.d.mts +16 -0
  152. package/dist/esm/api/resources/vendor/types/VendorEnrichResponseData.mjs +2 -0
  153. package/dist/esm/api/resources/vendor/types/VendorEnrichmentData.d.mts +10 -0
  154. package/dist/esm/api/resources/vendor/types/VendorEnrichmentData.mjs +2 -0
  155. package/dist/esm/api/resources/vendor/types/VendorEnrichmentInvoiceScan.d.mts +35 -0
  156. package/dist/esm/api/resources/vendor/types/VendorEnrichmentInvoiceScan.mjs +2 -0
  157. package/dist/esm/api/resources/vendor/types/VendorEnrichmentWebSearch.d.mts +35 -0
  158. package/dist/esm/api/resources/vendor/types/VendorEnrichmentWebSearch.mjs +2 -0
  159. package/dist/esm/api/resources/vendor/types/index.d.mts +6 -0
  160. package/dist/esm/api/resources/vendor/types/index.mjs +6 -0
  161. package/dist/esm/api/types/AutoCapture.d.mts +4 -0
  162. package/dist/esm/api/types/AutoCapture.mjs +2 -0
  163. package/dist/esm/api/types/BinData.d.mts +4 -1
  164. package/dist/esm/api/types/NotificationContent.d.mts +0 -1
  165. package/dist/esm/api/types/NotificationContent.mjs +0 -1
  166. package/dist/esm/api/types/NotificationStandardRequest.d.mts +0 -1
  167. package/dist/esm/api/types/NotificationStandardRequest.mjs +0 -1
  168. package/dist/esm/api/types/ProcessingSection.d.mts +5 -0
  169. package/dist/esm/api/types/QueryChargebacksResponse.d.mts +10 -1
  170. package/dist/esm/api/types/TemplateElement.d.mts +1 -0
  171. package/dist/esm/api/types/VCardCardType.d.mts +6 -0
  172. package/dist/esm/api/types/VCardCardType.mjs +2 -0
  173. package/dist/esm/api/types/VCardRecord.d.mts +2 -0
  174. package/dist/esm/api/types/VendorData.d.mts +12 -0
  175. package/dist/esm/api/types/VendorQueryRecord.d.mts +21 -0
  176. package/dist/esm/api/types/index.d.mts +2 -0
  177. package/dist/esm/api/types/index.mjs +2 -0
  178. package/dist/esm/version.d.mts +1 -1
  179. package/dist/esm/version.mjs +1 -1
  180. package/package.json +12 -1
  181. package/reference.md +321 -4
package/README.md CHANGED
@@ -62,7 +62,7 @@ Instantiate and use the client with the following:
62
62
  import { PayabliClient } from "@payabli/sdk-node";
63
63
 
64
64
  const client = new PayabliClient({ apiKey: "YOUR_API_KEY" });
65
- await client.moneyIn.getpaid({
65
+ await client.moneyIn.getpaidv2({
66
66
  body: {
67
67
  customerData: {
68
68
  customerId: 4440
@@ -74,13 +74,9 @@ await client.moneyIn.getpaid({
74
74
  totalAmount: 100
75
75
  },
76
76
  paymentMethod: {
77
- cardcvv: "999",
78
- cardexp: "02/27",
79
- cardHolder: "John Cassian",
80
- cardnumber: "4111111111111111",
81
- cardzip: "12345",
82
- initiator: "payor",
83
- method: "card"
77
+ device: "6c361c7d-674c-44cc-b790-382b75d1xxx",
78
+ method: "cloud",
79
+ saveIfSuccess: true
84
80
  }
85
81
  }
86
82
  });
@@ -120,7 +116,7 @@ will be thrown.
120
116
  import { PayabliError } from "@payabli/sdk-node";
121
117
 
122
118
  try {
123
- await client.moneyIn.getpaid(...);
119
+ await client.moneyIn.getpaidv2(...);
124
120
  } catch (err) {
125
121
  if (err instanceof PayabliError) {
126
122
  console.log(err.statusCode);
@@ -201,7 +197,7 @@ const client = new PayabliClient({
201
197
  }
202
198
  });
203
199
 
204
- const response = await client.moneyIn.getpaid(..., {
200
+ const response = await client.moneyIn.getpaidv2(..., {
205
201
  headers: {
206
202
  'X-Custom-Header': 'custom value'
207
203
  }
@@ -213,7 +209,7 @@ const response = await client.moneyIn.getpaid(..., {
213
209
  If you would like to send additional query string parameters as part of the request, use the `queryParams` request option.
214
210
 
215
211
  ```typescript
216
- const response = await client.moneyIn.getpaid(..., {
212
+ const response = await client.moneyIn.getpaidv2(..., {
217
213
  queryParams: {
218
214
  'customQueryParamKey': 'custom query param value'
219
215
  }
@@ -235,7 +231,7 @@ A request is deemed retryable when any of the following HTTP status codes is ret
235
231
  Use the `maxRetries` request option to configure this behavior.
236
232
 
237
233
  ```typescript
238
- const response = await client.moneyIn.getpaid(..., {
234
+ const response = await client.moneyIn.getpaidv2(..., {
239
235
  maxRetries: 0 // override maxRetries at the request level
240
236
  });
241
237
  ```
@@ -245,7 +241,7 @@ const response = await client.moneyIn.getpaid(..., {
245
241
  The SDK defaults to a 60 second timeout. Use the `timeoutInSeconds` option to configure this behavior.
246
242
 
247
243
  ```typescript
248
- const response = await client.moneyIn.getpaid(..., {
244
+ const response = await client.moneyIn.getpaidv2(..., {
249
245
  timeoutInSeconds: 30 // override timeout to 30s
250
246
  });
251
247
  ```
@@ -256,7 +252,7 @@ The SDK allows users to abort requests at any point by passing in an abort signa
256
252
 
257
253
  ```typescript
258
254
  const controller = new AbortController();
259
- const response = await client.moneyIn.getpaid(..., {
255
+ const response = await client.moneyIn.getpaidv2(..., {
260
256
  abortSignal: controller.signal
261
257
  });
262
258
  controller.abort(); // aborts the request
@@ -268,7 +264,7 @@ The SDK provides access to raw response data, including headers, through the `.w
268
264
  The `.withRawResponse()` method returns a promise that results to an object with a `data` and a `rawResponse` property.
269
265
 
270
266
  ```typescript
271
- const { data, rawResponse } = await client.moneyIn.getpaid(...).withRawResponse();
267
+ const { data, rawResponse } = await client.moneyIn.getpaidv2(...).withRawResponse();
272
268
 
273
269
  console.log(data);
274
270
  console.log(rawResponse.headers['X-My-Header']);
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
43
43
  const headers = (0, headers_js_1.mergeHeaders)({
44
44
  "X-Fern-Language": "JavaScript",
45
45
  "X-Fern-SDK-Name": "@payabli/sdk-node",
46
- "X-Fern-SDK-Version": "0.0.140",
47
- "User-Agent": "@payabli/sdk-node/0.0.140",
46
+ "X-Fern-SDK-Version": "0.0.142",
47
+ "User-Agent": "@payabli/sdk-node/0.0.142",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
50
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -10,6 +10,7 @@ import { HostedPaymentPagesClient } from "./api/resources/hostedPaymentPages/cli
10
10
  import { ImportClient } from "./api/resources/import/client/Client.js";
11
11
  import { InvoiceClient } from "./api/resources/invoice/client/Client.js";
12
12
  import { LineItemClient } from "./api/resources/lineItem/client/Client.js";
13
+ import { ManagementClient } from "./api/resources/management/client/Client.js";
13
14
  import { MoneyInClient } from "./api/resources/moneyIn/client/Client.js";
14
15
  import { MoneyOutClient } from "./api/resources/moneyOut/client/Client.js";
15
16
  import { NotificationClient } from "./api/resources/notification/client/Client.js";
@@ -50,6 +51,7 @@ export declare class PayabliClient {
50
51
  protected _import: ImportClient | undefined;
51
52
  protected _invoice: InvoiceClient | undefined;
52
53
  protected _lineItem: LineItemClient | undefined;
54
+ protected _management: ManagementClient | undefined;
53
55
  protected _moneyIn: MoneyInClient | undefined;
54
56
  protected _moneyOut: MoneyOutClient | undefined;
55
57
  protected _notification: NotificationClient | undefined;
@@ -81,6 +83,7 @@ export declare class PayabliClient {
81
83
  get import(): ImportClient;
82
84
  get invoice(): InvoiceClient;
83
85
  get lineItem(): LineItemClient;
86
+ get management(): ManagementClient;
84
87
  get moneyIn(): MoneyInClient;
85
88
  get moneyOut(): MoneyOutClient;
86
89
  get notification(): NotificationClient;
@@ -56,24 +56,25 @@ const Client_js_9 = require("./api/resources/hostedPaymentPages/client/Client.js
56
56
  const Client_js_10 = require("./api/resources/import/client/Client.js");
57
57
  const Client_js_11 = require("./api/resources/invoice/client/Client.js");
58
58
  const Client_js_12 = require("./api/resources/lineItem/client/Client.js");
59
- const Client_js_13 = require("./api/resources/moneyIn/client/Client.js");
60
- const Client_js_14 = require("./api/resources/moneyOut/client/Client.js");
61
- const Client_js_15 = require("./api/resources/notification/client/Client.js");
62
- const Client_js_16 = require("./api/resources/notificationlogs/client/Client.js");
63
- const Client_js_17 = require("./api/resources/ocr/client/Client.js");
64
- const Client_js_18 = require("./api/resources/organization/client/Client.js");
65
- const Client_js_19 = require("./api/resources/paymentLink/client/Client.js");
66
- const Client_js_20 = require("./api/resources/paymentMethodDomain/client/Client.js");
67
- const Client_js_21 = require("./api/resources/payoutSubscription/client/Client.js");
68
- const Client_js_22 = require("./api/resources/paypoint/client/Client.js");
69
- const Client_js_23 = require("./api/resources/query/client/Client.js");
70
- const Client_js_24 = require("./api/resources/statistic/client/Client.js");
71
- const Client_js_25 = require("./api/resources/subscription/client/Client.js");
72
- const Client_js_26 = require("./api/resources/templates/client/Client.js");
73
- const Client_js_27 = require("./api/resources/tokenStorage/client/Client.js");
74
- const Client_js_28 = require("./api/resources/user/client/Client.js");
75
- const Client_js_29 = require("./api/resources/vendor/client/Client.js");
76
- const Client_js_30 = require("./api/resources/wallet/client/Client.js");
59
+ const Client_js_13 = require("./api/resources/management/client/Client.js");
60
+ const Client_js_14 = require("./api/resources/moneyIn/client/Client.js");
61
+ const Client_js_15 = require("./api/resources/moneyOut/client/Client.js");
62
+ const Client_js_16 = require("./api/resources/notification/client/Client.js");
63
+ const Client_js_17 = require("./api/resources/notificationlogs/client/Client.js");
64
+ const Client_js_18 = require("./api/resources/ocr/client/Client.js");
65
+ const Client_js_19 = require("./api/resources/organization/client/Client.js");
66
+ const Client_js_20 = require("./api/resources/paymentLink/client/Client.js");
67
+ const Client_js_21 = require("./api/resources/paymentMethodDomain/client/Client.js");
68
+ const Client_js_22 = require("./api/resources/payoutSubscription/client/Client.js");
69
+ const Client_js_23 = require("./api/resources/paypoint/client/Client.js");
70
+ const Client_js_24 = require("./api/resources/query/client/Client.js");
71
+ const Client_js_25 = require("./api/resources/statistic/client/Client.js");
72
+ const Client_js_26 = require("./api/resources/subscription/client/Client.js");
73
+ const Client_js_27 = require("./api/resources/templates/client/Client.js");
74
+ const Client_js_28 = require("./api/resources/tokenStorage/client/Client.js");
75
+ const Client_js_29 = require("./api/resources/user/client/Client.js");
76
+ const Client_js_30 = require("./api/resources/vendor/client/Client.js");
77
+ const Client_js_31 = require("./api/resources/wallet/client/Client.js");
77
78
  const BaseClient_js_1 = require("./BaseClient.js");
78
79
  const core = __importStar(require("./core/index.js"));
79
80
  class PayabliClient {
@@ -128,77 +129,81 @@ class PayabliClient {
128
129
  var _a;
129
130
  return ((_a = this._lineItem) !== null && _a !== void 0 ? _a : (this._lineItem = new Client_js_12.LineItemClient(this._options)));
130
131
  }
132
+ get management() {
133
+ var _a;
134
+ return ((_a = this._management) !== null && _a !== void 0 ? _a : (this._management = new Client_js_13.ManagementClient(this._options)));
135
+ }
131
136
  get moneyIn() {
132
137
  var _a;
133
- return ((_a = this._moneyIn) !== null && _a !== void 0 ? _a : (this._moneyIn = new Client_js_13.MoneyInClient(this._options)));
138
+ return ((_a = this._moneyIn) !== null && _a !== void 0 ? _a : (this._moneyIn = new Client_js_14.MoneyInClient(this._options)));
134
139
  }
135
140
  get moneyOut() {
136
141
  var _a;
137
- return ((_a = this._moneyOut) !== null && _a !== void 0 ? _a : (this._moneyOut = new Client_js_14.MoneyOutClient(this._options)));
142
+ return ((_a = this._moneyOut) !== null && _a !== void 0 ? _a : (this._moneyOut = new Client_js_15.MoneyOutClient(this._options)));
138
143
  }
139
144
  get notification() {
140
145
  var _a;
141
- return ((_a = this._notification) !== null && _a !== void 0 ? _a : (this._notification = new Client_js_15.NotificationClient(this._options)));
146
+ return ((_a = this._notification) !== null && _a !== void 0 ? _a : (this._notification = new Client_js_16.NotificationClient(this._options)));
142
147
  }
143
148
  get notificationlogs() {
144
149
  var _a;
145
- return ((_a = this._notificationlogs) !== null && _a !== void 0 ? _a : (this._notificationlogs = new Client_js_16.NotificationlogsClient(this._options)));
150
+ return ((_a = this._notificationlogs) !== null && _a !== void 0 ? _a : (this._notificationlogs = new Client_js_17.NotificationlogsClient(this._options)));
146
151
  }
147
152
  get ocr() {
148
153
  var _a;
149
- return ((_a = this._ocr) !== null && _a !== void 0 ? _a : (this._ocr = new Client_js_17.OcrClient(this._options)));
154
+ return ((_a = this._ocr) !== null && _a !== void 0 ? _a : (this._ocr = new Client_js_18.OcrClient(this._options)));
150
155
  }
151
156
  get organization() {
152
157
  var _a;
153
- return ((_a = this._organization) !== null && _a !== void 0 ? _a : (this._organization = new Client_js_18.OrganizationClient(this._options)));
158
+ return ((_a = this._organization) !== null && _a !== void 0 ? _a : (this._organization = new Client_js_19.OrganizationClient(this._options)));
154
159
  }
155
160
  get paymentLink() {
156
161
  var _a;
157
- return ((_a = this._paymentLink) !== null && _a !== void 0 ? _a : (this._paymentLink = new Client_js_19.PaymentLinkClient(this._options)));
162
+ return ((_a = this._paymentLink) !== null && _a !== void 0 ? _a : (this._paymentLink = new Client_js_20.PaymentLinkClient(this._options)));
158
163
  }
159
164
  get paymentMethodDomain() {
160
165
  var _a;
161
- return ((_a = this._paymentMethodDomain) !== null && _a !== void 0 ? _a : (this._paymentMethodDomain = new Client_js_20.PaymentMethodDomainClient(this._options)));
166
+ return ((_a = this._paymentMethodDomain) !== null && _a !== void 0 ? _a : (this._paymentMethodDomain = new Client_js_21.PaymentMethodDomainClient(this._options)));
162
167
  }
163
168
  get payoutSubscription() {
164
169
  var _a;
165
- return ((_a = this._payoutSubscription) !== null && _a !== void 0 ? _a : (this._payoutSubscription = new Client_js_21.PayoutSubscriptionClient(this._options)));
170
+ return ((_a = this._payoutSubscription) !== null && _a !== void 0 ? _a : (this._payoutSubscription = new Client_js_22.PayoutSubscriptionClient(this._options)));
166
171
  }
167
172
  get paypoint() {
168
173
  var _a;
169
- return ((_a = this._paypoint) !== null && _a !== void 0 ? _a : (this._paypoint = new Client_js_22.PaypointClient(this._options)));
174
+ return ((_a = this._paypoint) !== null && _a !== void 0 ? _a : (this._paypoint = new Client_js_23.PaypointClient(this._options)));
170
175
  }
171
176
  get query() {
172
177
  var _a;
173
- return ((_a = this._query) !== null && _a !== void 0 ? _a : (this._query = new Client_js_23.QueryClient(this._options)));
178
+ return ((_a = this._query) !== null && _a !== void 0 ? _a : (this._query = new Client_js_24.QueryClient(this._options)));
174
179
  }
175
180
  get statistic() {
176
181
  var _a;
177
- return ((_a = this._statistic) !== null && _a !== void 0 ? _a : (this._statistic = new Client_js_24.StatisticClient(this._options)));
182
+ return ((_a = this._statistic) !== null && _a !== void 0 ? _a : (this._statistic = new Client_js_25.StatisticClient(this._options)));
178
183
  }
179
184
  get subscription() {
180
185
  var _a;
181
- return ((_a = this._subscription) !== null && _a !== void 0 ? _a : (this._subscription = new Client_js_25.SubscriptionClient(this._options)));
186
+ return ((_a = this._subscription) !== null && _a !== void 0 ? _a : (this._subscription = new Client_js_26.SubscriptionClient(this._options)));
182
187
  }
183
188
  get templates() {
184
189
  var _a;
185
- return ((_a = this._templates) !== null && _a !== void 0 ? _a : (this._templates = new Client_js_26.TemplatesClient(this._options)));
190
+ return ((_a = this._templates) !== null && _a !== void 0 ? _a : (this._templates = new Client_js_27.TemplatesClient(this._options)));
186
191
  }
187
192
  get tokenStorage() {
188
193
  var _a;
189
- return ((_a = this._tokenStorage) !== null && _a !== void 0 ? _a : (this._tokenStorage = new Client_js_27.TokenStorageClient(this._options)));
194
+ return ((_a = this._tokenStorage) !== null && _a !== void 0 ? _a : (this._tokenStorage = new Client_js_28.TokenStorageClient(this._options)));
190
195
  }
191
196
  get user() {
192
197
  var _a;
193
- return ((_a = this._user) !== null && _a !== void 0 ? _a : (this._user = new Client_js_28.UserClient(this._options)));
198
+ return ((_a = this._user) !== null && _a !== void 0 ? _a : (this._user = new Client_js_29.UserClient(this._options)));
194
199
  }
195
200
  get vendor() {
196
201
  var _a;
197
- return ((_a = this._vendor) !== null && _a !== void 0 ? _a : (this._vendor = new Client_js_29.VendorClient(this._options)));
202
+ return ((_a = this._vendor) !== null && _a !== void 0 ? _a : (this._vendor = new Client_js_30.VendorClient(this._options)));
198
203
  }
199
204
  get wallet() {
200
205
  var _a;
201
- return ((_a = this._wallet) !== null && _a !== void 0 ? _a : (this._wallet = new Client_js_30.WalletClient(this._options)));
206
+ return ((_a = this._wallet) !== null && _a !== void 0 ? _a : (this._wallet = new Client_js_31.WalletClient(this._options)));
202
207
  }
203
208
  /**
204
209
  * Make a passthrough request using the SDK's configured auth, retry, logging, etc.
@@ -3,7 +3,11 @@ export interface BillOutData {
3
3
  accountingField1?: Payabli.AccountingField | undefined;
4
4
  accountingField2?: Payabli.AccountingField | undefined;
5
5
  additionalData?: Payabli.AdditionalDataString | undefined;
6
- /** An array of bill images. Attachments aren't required, but we strongly recommend including them. Including a bill image can make payouts smoother and prevent delays. You can include either the Base64-encoded file content, or you can include an fURL to a public file. The maximum file size for image uploads is 30 MB. */
6
+ /**
7
+ * An array of bill images. Attachments aren't required, but we strongly recommend including them. Including a bill image can make payouts smoother and prevent delays. You can include either the Base64-encoded file content, or you can include an fURL to a public file. The maximum file size for image uploads is 30 MB.
8
+ *
9
+ * When vendor enrichment is enabled and the first attachment is a PDF, the invoice is scanned and extracted vendor contact information and bill details (invoice number, amount due, due date) are merged into the request. Fields in the request body take precedence over extracted data. If the scan fails, bill creation proceeds with the original request data. See the [vendor enrichment guide](/guides/pay-out-vendor-enrichment-overview) for details. Contact Payabli to enable this feature.
10
+ */
7
11
  attachments?: Payabli.Attachments | undefined;
8
12
  /** Date of bill. Accepted formats: YYYY-MM-DD, MM/DD/YYYY. */
9
13
  billDate?: string | undefined;
@@ -48,6 +48,10 @@ export declare class CloudClient {
48
48
  historyDevice(entry: string, deviceId: string, requestOptions?: CloudClient.RequestOptions): core.HttpResponsePromise<Payabli.CloudQueryApiResponse>;
49
49
  private __historyDevice;
50
50
  /**
51
+ * @deprecated
52
+ *
53
+ * Use [List devices by paypoint](/developers/api-reference/cloud/get-list-of-devices-for-a-paypoint) instead, which supports filters, sorting, and pagination.
54
+ *
51
55
  * Get a list of cloud devices registered to an entrypoint.
52
56
  *
53
57
  * @param {string} entry - The paypoint's entrypoint identifier. [Learn more](/developers/api-reference/api-overview#entrypoint-vs-entry)
@@ -190,6 +190,10 @@ class CloudClient {
190
190
  });
191
191
  }
192
192
  /**
193
+ * @deprecated
194
+ *
195
+ * Use [List devices by paypoint](/developers/api-reference/cloud/get-list-of-devices-for-a-paypoint) instead, which supports filters, sorting, and pagination.
196
+ *
193
197
  * Get a list of cloud devices registered to an entrypoint.
194
198
  *
195
199
  * @param {string} entry - The paypoint's entrypoint identifier. [Learn more](/developers/api-reference/api-overview#entrypoint-vs-entry)
@@ -31,6 +31,9 @@ export * from "./invoice/types/index.js";
31
31
  export * from "./lineItem/client/requests/index.js";
32
32
  export * as lineItem from "./lineItem/index.js";
33
33
  export * from "./lineItem/types/index.js";
34
+ export * from "./management/client/requests/index.js";
35
+ export * as management from "./management/index.js";
36
+ export * from "./management/types/index.js";
34
37
  export * from "./moneyIn/client/requests/index.js";
35
38
  export * from "./moneyIn/errors/index.js";
36
39
  export * as moneyIn from "./moneyIn/index.js";
@@ -83,5 +86,6 @@ export * from "./v2MoneyInTypes/errors/index.js";
83
86
  export * as v2MoneyInTypes from "./v2MoneyInTypes/index.js";
84
87
  export * from "./v2MoneyInTypes/types/index.js";
85
88
  export * as vendor from "./vendor/index.js";
89
+ export * from "./vendor/types/index.js";
86
90
  export * from "./wallet/client/requests/index.js";
87
91
  export * as wallet from "./wallet/index.js";
@@ -36,7 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.wallet = exports.vendor = exports.v2MoneyInTypes = exports.user = exports.tokenStorage = exports.templates = exports.subscription = exports.statistic = exports.queryTypes = exports.query = exports.paypoint = exports.payoutSubscription = exports.paymentMethodDomain = exports.paymentLink = exports.organization = exports.ocr = exports.notificationlogs = exports.notification = exports.moneyOutTypes = exports.moneyOut = exports.moneyIn = exports.lineItem = exports.invoice = exports.import_ = exports.hostedPaymentPages = exports.ghostCard = exports.export_ = exports.customer = exports.cloud = exports.checkCapture = exports.chargeBacks = exports.boarding = exports.bill = void 0;
39
+ exports.wallet = exports.vendor = exports.v2MoneyInTypes = exports.user = exports.tokenStorage = exports.templates = exports.subscription = exports.statistic = exports.queryTypes = exports.query = exports.paypoint = exports.payoutSubscription = exports.paymentMethodDomain = exports.paymentLink = exports.organization = exports.ocr = exports.notificationlogs = exports.notification = exports.moneyOutTypes = exports.moneyOut = exports.moneyIn = exports.management = exports.lineItem = exports.invoice = exports.import_ = exports.hostedPaymentPages = exports.ghostCard = exports.export_ = exports.customer = exports.cloud = exports.checkCapture = exports.chargeBacks = exports.boarding = exports.bill = void 0;
40
40
  __exportStar(require("./bill/client/requests/index.js"), exports);
41
41
  exports.bill = __importStar(require("./bill/index.js"));
42
42
  __exportStar(require("./bill/types/index.js"), exports);
@@ -70,6 +70,9 @@ __exportStar(require("./invoice/types/index.js"), exports);
70
70
  __exportStar(require("./lineItem/client/requests/index.js"), exports);
71
71
  exports.lineItem = __importStar(require("./lineItem/index.js"));
72
72
  __exportStar(require("./lineItem/types/index.js"), exports);
73
+ __exportStar(require("./management/client/requests/index.js"), exports);
74
+ exports.management = __importStar(require("./management/index.js"));
75
+ __exportStar(require("./management/types/index.js"), exports);
73
76
  __exportStar(require("./moneyIn/client/requests/index.js"), exports);
74
77
  __exportStar(require("./moneyIn/errors/index.js"), exports);
75
78
  exports.moneyIn = __importStar(require("./moneyIn/index.js"));
@@ -122,5 +125,6 @@ __exportStar(require("./v2MoneyInTypes/errors/index.js"), exports);
122
125
  exports.v2MoneyInTypes = __importStar(require("./v2MoneyInTypes/index.js"));
123
126
  __exportStar(require("./v2MoneyInTypes/types/index.js"), exports);
124
127
  exports.vendor = __importStar(require("./vendor/index.js"));
128
+ __exportStar(require("./vendor/types/index.js"), exports);
125
129
  __exportStar(require("./wallet/client/requests/index.js"), exports);
126
130
  exports.wallet = __importStar(require("./wallet/index.js"));
@@ -0,0 +1,41 @@
1
+ import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
3
+ import * as core from "../../../../core/index.js";
4
+ import * as Payabli from "../../../index.js";
5
+ export declare namespace ManagementClient {
6
+ type Options = BaseClientOptions;
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ }
10
+ export declare class ManagementClient {
11
+ protected readonly _options: NormalizedClientOptionsWithAuth<ManagementClient.Options>;
12
+ constructor(options?: ManagementClient.Options);
13
+ /**
14
+ * Verifies a bank account and returns detailed verification results from the verification network, including bank name, account status, and response codes. Unlike a pass/fail verification, this endpoint returns granular data to support decision-making and troubleshooting.
15
+ *
16
+ * When bank authentication is enabled for the paypoint's organization, the endpoint performs an identity verification check on the account holder. Otherwise, it performs an account existence check. When bank authentication is enabled, the `accountHolderType` and `holderName` fields are required.
17
+ *
18
+ * Requires `inboundpayments_create` or `outboundpayments_create` permission.
19
+ *
20
+ * @param {string} entry - The paypoint's entry name identifier.
21
+ * @param {Payabli.VerifyAccountDetailsRequest} request
22
+ * @param {ManagementClient.RequestOptions} requestOptions - Request-specific configuration.
23
+ *
24
+ * @throws {@link Payabli.BadRequestError}
25
+ * @throws {@link Payabli.UnauthorizedError}
26
+ * @throws {@link Payabli.InternalServerError}
27
+ * @throws {@link Payabli.ServiceUnavailableError}
28
+ *
29
+ * @example
30
+ * await client.management.verifyAccountDetails("entry752", {
31
+ * routingNumber: "122105278",
32
+ * accountNumber: "0000000016",
33
+ * accountType: "Checking",
34
+ * country: "US",
35
+ * accountHolderType: "personal",
36
+ * holderName: "Jane Doe"
37
+ * })
38
+ */
39
+ verifyAccountDetails(entry: string, request: Payabli.VerifyAccountDetailsRequest, requestOptions?: ManagementClient.RequestOptions): core.HttpResponsePromise<Payabli.VerifyAccountDetailsResponse>;
40
+ private __verifyAccountDetails;
41
+ }
@@ -0,0 +1,131 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
37
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
38
+ return new (P || (P = Promise))(function (resolve, reject) {
39
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
40
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
41
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
42
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
43
+ });
44
+ };
45
+ Object.defineProperty(exports, "__esModule", { value: true });
46
+ exports.ManagementClient = void 0;
47
+ const BaseClient_js_1 = require("../../../../BaseClient.js");
48
+ const headers_js_1 = require("../../../../core/headers.js");
49
+ const core = __importStar(require("../../../../core/index.js"));
50
+ const environments = __importStar(require("../../../../environments.js"));
51
+ const handleNonStatusCodeError_js_1 = require("../../../../errors/handleNonStatusCodeError.js");
52
+ const errors = __importStar(require("../../../../errors/index.js"));
53
+ const Payabli = __importStar(require("../../../index.js"));
54
+ class ManagementClient {
55
+ constructor(options = {}) {
56
+ this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
57
+ }
58
+ /**
59
+ * Verifies a bank account and returns detailed verification results from the verification network, including bank name, account status, and response codes. Unlike a pass/fail verification, this endpoint returns granular data to support decision-making and troubleshooting.
60
+ *
61
+ * When bank authentication is enabled for the paypoint's organization, the endpoint performs an identity verification check on the account holder. Otherwise, it performs an account existence check. When bank authentication is enabled, the `accountHolderType` and `holderName` fields are required.
62
+ *
63
+ * Requires `inboundpayments_create` or `outboundpayments_create` permission.
64
+ *
65
+ * @param {string} entry - The paypoint's entry name identifier.
66
+ * @param {Payabli.VerifyAccountDetailsRequest} request
67
+ * @param {ManagementClient.RequestOptions} requestOptions - Request-specific configuration.
68
+ *
69
+ * @throws {@link Payabli.BadRequestError}
70
+ * @throws {@link Payabli.UnauthorizedError}
71
+ * @throws {@link Payabli.InternalServerError}
72
+ * @throws {@link Payabli.ServiceUnavailableError}
73
+ *
74
+ * @example
75
+ * await client.management.verifyAccountDetails("entry752", {
76
+ * routingNumber: "122105278",
77
+ * accountNumber: "0000000016",
78
+ * accountType: "Checking",
79
+ * country: "US",
80
+ * accountHolderType: "personal",
81
+ * holderName: "Jane Doe"
82
+ * })
83
+ */
84
+ verifyAccountDetails(entry, request, requestOptions) {
85
+ return core.HttpResponsePromise.fromPromise(this.__verifyAccountDetails(entry, request, requestOptions));
86
+ }
87
+ __verifyAccountDetails(entry, request, requestOptions) {
88
+ return __awaiter(this, void 0, void 0, function* () {
89
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
90
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
91
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
92
+ const _response = yield core.fetcher({
93
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PayabliEnvironment.Sandbox, `Management/verifyAccountDetails/${core.url.encodePathParam(entry)}`),
94
+ method: "POST",
95
+ headers: _headers,
96
+ contentType: "application/json",
97
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
98
+ requestType: "json",
99
+ body: request,
100
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
101
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
102
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
103
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
104
+ logging: this._options.logging,
105
+ });
106
+ if (_response.ok) {
107
+ return { data: _response.body, rawResponse: _response.rawResponse };
108
+ }
109
+ if (_response.error.reason === "status-code") {
110
+ switch (_response.error.statusCode) {
111
+ case 400:
112
+ throw new Payabli.BadRequestError(_response.error.body, _response.rawResponse);
113
+ case 401:
114
+ throw new Payabli.UnauthorizedError(_response.error.body, _response.rawResponse);
115
+ case 500:
116
+ throw new Payabli.InternalServerError(_response.error.body, _response.rawResponse);
117
+ case 503:
118
+ throw new Payabli.ServiceUnavailableError(_response.error.body, _response.rawResponse);
119
+ default:
120
+ throw new errors.PayabliError({
121
+ statusCode: _response.error.statusCode,
122
+ body: _response.error.body,
123
+ rawResponse: _response.rawResponse,
124
+ });
125
+ }
126
+ }
127
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/Management/verifyAccountDetails/{entry}");
128
+ });
129
+ }
130
+ }
131
+ exports.ManagementClient = ManagementClient;
@@ -0,0 +1 @@
1
+ export * from "./requests/index.js";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests/index.js"), exports);
@@ -0,0 +1,25 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * routingNumber: "122105278",
5
+ * accountNumber: "0000000016",
6
+ * accountType: "Checking",
7
+ * country: "US",
8
+ * accountHolderType: "personal",
9
+ * holderName: "Jane Doe"
10
+ * }
11
+ */
12
+ export interface VerifyAccountDetailsRequest {
13
+ /** The bank routing number to verify. */
14
+ routingNumber: string;
15
+ /** The bank account number to verify. */
16
+ accountNumber: string;
17
+ /** The type of bank account, such as `Checking` or `Savings`. */
18
+ accountType?: string;
19
+ /** The ISO country code for the bank account, such as `US`. */
20
+ country?: string;
21
+ /** The type of account holder. Accepted values are `personal` or `business`. Required when bank authentication is enabled for the paypoint's organization. */
22
+ accountHolderType?: string;
23
+ /** The name of the bank account holder. For personal accounts, provide the holder's full name (for example, `Jane Doe`); the value is split on the first space into first and last name. For business accounts, provide the legal business name. Required when bank authentication is enabled for the paypoint's organization. */
24
+ holderName?: string;
25
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export type { VerifyAccountDetailsRequest } from "./VerifyAccountDetailsRequest.js";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export { ManagementClient } from "./client/Client.js";
2
+ export * from "./client/index.js";
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
+ };
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.ManagementClient = void 0;
19
+ var Client_js_1 = require("./client/Client.js");
20
+ Object.defineProperty(exports, "ManagementClient", { enumerable: true, get: function () { return Client_js_1.ManagementClient; } });
21
+ __exportStar(require("./client/index.js"), exports);
@@ -0,0 +1,2 @@
1
+ export * from "./client/index.js";
2
+ export * from "./types/index.js";