@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
@@ -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 {
@@ -6,7 +6,7 @@ export class CaptureError extends errors.PayabliError {
6
6
  constructor(body, rawResponse) {
7
7
  super({
8
8
  message: "CaptureError",
9
- statusCode: 423,
9
+ statusCode: 400,
10
10
  body: body,
11
11
  rawResponse: rawResponse,
12
12
  });
@@ -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",
@@ -102,7 +102,12 @@ export class MoneyOut {
102
102
  * body: {
103
103
  * entryPoint: "47ced57b",
104
104
  * paymentMethod: {
105
- * method: "ach"
105
+ * method: "ach",
106
+ * achHolder: "John Doe",
107
+ * achRouting: "011401533",
108
+ * achAccount: "123456789",
109
+ * achAccountType: "checking",
110
+ * achHolderType: "business"
106
111
  * },
107
112
  * paymentDetails: {
108
113
  * totalAmount: 978.32
@@ -126,13 +131,6 @@ export class MoneyOut {
126
131
  * contactEmail: "Mandy65@heritagepro.com",
127
132
  * contactPhone: "996-325-5420 x31028"
128
133
  * }],
129
- * billingData: {
130
- * bankName: "Chase",
131
- * routingAccount: "011401533",
132
- * accountNumber: "1237658922",
133
- * typeAccount: "Savings",
134
- * bankAccountHolderName: "Payabli"
135
- * },
136
134
  * vendorStatus: 1,
137
135
  * remitAddress1: "727 Terrell Streets",
138
136
  * remitAddress2: "Apt. 773",
@@ -75,7 +75,12 @@ import * as Payabli from "../../../../index.mjs";
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.mjs";
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.mjs";
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,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -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.mjs";
2
2
  export * from "./AuthorizePayoutBody.mjs";
3
+ export * from "./AuthorizePaymentMethod.mjs";
3
4
  export * from "./AuthCapturePayoutResponse.mjs";
4
5
  export * from "./CaptureAllOutResponse.mjs";
5
6
  export * from "./VCardGetResponse.mjs";
@@ -1,5 +1,6 @@
1
1
  export * from "./LotNumber.mjs";
2
2
  export * from "./AuthorizePayoutBody.mjs";
3
+ export * from "./AuthorizePaymentMethod.mjs";
3
4
  export * from "./AuthCapturePayoutResponse.mjs";
4
5
  export * from "./CaptureAllOutResponse.mjs";
5
6
  export * from "./VCardGetResponse.mjs";
@@ -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.mjs";
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 {
@@ -48,6 +48,9 @@ export interface ListTransfersRequest {
48
48
  * - `bankAccountNumber` (ct, nct, ne, eq)
49
49
  * - `bankRoutingNumber` (ct, nct, ne, eq)
50
50
  * - `batchCurrency` (in, nin, ne, eq)
51
+ * - `parentOrgName` (ct, nct, ne, eq)
52
+ * - `parentOrgId` (ct, nct, ne, eq)
53
+ * - `externalPaypointID` (ct, nct)
51
54
  */
52
55
  parameters?: Record<string, string | undefined>;
53
56
  /** The field name to use for sorting results. Use `desc(field_name)` to sort descending by `field_name`, and use `asc(field_name)` to sort ascending by `field_name`. */
@@ -38,9 +38,7 @@ export interface ListVcardsOrgRequest {
38
38
  * - `cardToken` (ct, nct, eq, ne)
39
39
  * - `lastFour` (ct, nct, eq, ne)
40
40
  * - `expirationDate` (ct, nct, eq, ne)
41
- * - `mcc` (ct, nct, eq, ne)
42
41
  * - `payoutId` (ct, nct, eq, ne, in, nin)
43
- * - `customerId` (ct, nct, eq, ne, in, nin)
44
42
  * - `vendorId` (ct, nct, eq, ne, in, nin)
45
43
  * - `miscData1` (ct, nct, eq, ne)
46
44
  * - `miscData2` (ct, nct, eq, ne)
@@ -38,9 +38,7 @@ export interface ListVcardsRequest {
38
38
  * - `cardToken` (ct, nct, eq, ne)
39
39
  * - `lastFour` (ct, nct, eq, ne)
40
40
  * - `expirationDate` (ct, nct, eq, ne)
41
- * - `mcc` (ct, nct, eq, ne)
42
41
  * - `payoutId` (ct, nct, eq, ne, in, nin)
43
- * - `customerId` (ct, nct, eq, ne, in, nin)
44
42
  * - `vendorId` (ct, nct, eq, ne, in, nin)
45
43
  * - `miscData1` (ct, nct, eq, ne)
46
44
  * - `miscData2` (ct, nct, eq, ne)
@@ -3,6 +3,6 @@
3
3
  */
4
4
  import * as Payabli from "../../../index.mjs";
5
5
  export interface ListOrganizationsResponse {
6
- Records?: Payabli.OrganizationQueryRecord[];
7
- Summary?: Payabli.QuerySummary;
6
+ Records: Payabli.OrganizationQueryRecord[];
7
+ Summary: Payabli.QuerySummary;
8
8
  }
@@ -15,7 +15,7 @@ export declare namespace QueryBatchesDetailResponse {
15
15
  interface Item {
16
16
  Id: number;
17
17
  Method: string;
18
- WalletType?: string;
18
+ WalletType: string | null;
19
19
  SettledAmount: number;
20
20
  Type: string;
21
21
  BatchNumber: Payabli.BatchNumber;
@@ -30,10 +30,10 @@ export declare namespace QueryBatchesDetailResponse {
30
30
  NetAmount?: Payabli.Netamountnullable;
31
31
  Operation: Payabli.Operation;
32
32
  Category: Payabli.Category;
33
- Source?: Payabli.Source;
33
+ Source: Payabli.Source | null;
34
34
  Status: number;
35
35
  TransactionTime: Payabli.TransactionTime;
36
- Customer?: Payabli.QueryTransactionPayorData;
36
+ Customer: Payabli.QueryTransactionPayorData | null;
37
37
  SettlementDate: string;
38
38
  PaymentSettlementStatus: number;
39
39
  BatchStatus: number;
@@ -42,12 +42,12 @@ export declare namespace QueryBatchesDetailResponse {
42
42
  MaskedAccount: Payabli.Maskedaccount;
43
43
  CreatedAt: Payabli.CreatedAt;
44
44
  PaypointLegalname: Payabli.Legalname;
45
- ResponseData?: Payabli.QueryResponseData;
45
+ ResponseData: Payabli.QueryResponseData | null;
46
46
  PaypointDbaname: Payabli.Dbaname;
47
47
  ParentOrgName: Payabli.OrgParentName;
48
48
  ParentOrgId: number;
49
49
  PaypointEntryname: Payabli.Entrypointfield;
50
- DeviceId?: Payabli.Device;
50
+ DeviceId: Payabli.Device | null;
51
51
  RetrievalId: Payabli.RetrievalId;
52
52
  ChargebackId: Payabli.ChargebackId;
53
53
  AchHolderType: Payabli.AchHolderType;
@@ -64,7 +64,7 @@ export declare namespace QueryBatchesDetailResponse {
64
64
  splitFundingInstructions?: Payabli.SplitFunding;
65
65
  TotalAmount: number;
66
66
  CfeeTransactions: Payabli.QueryCFeeTransaction[];
67
- invoiceData?: Payabli.BillData;
67
+ invoiceData: Payabli.BillData | null;
68
68
  TransactionEvents: Payabli.QueryTransactionEvents[];
69
69
  externalPaypointID: Payabli.ExternalPaypointId;
70
70
  isHold: number;
@@ -80,6 +80,6 @@ export declare namespace QueryBatchesDetailResponse {
80
80
  totalNetAmount: number;
81
81
  totalPages: Payabli.Totalpages;
82
82
  pageSize: Payabli.Pagesize;
83
- pageidentifier?: Payabli.PageIdentifier;
83
+ pageidentifier: Payabli.PageIdentifier | null;
84
84
  }
85
85
  }
@@ -49,9 +49,9 @@ import * as Payabli from "../../../index.mjs";
49
49
  * BatchType: 0,
50
50
  * Method: "combined",
51
51
  * ExpectedDepositDate: "2025-08-26T00:00:00Z",
52
- * DepositDate: undefined,
52
+ * DepositDate: null,
53
53
  * TransferDate: "2025-08-26T00:00:00Z",
54
- * Transfer: undefined
54
+ * Transfer: null
55
55
  * }, {
56
56
  * IdBatch: 1043,
57
57
  * BatchNumber: "BT-2023041817-187",
@@ -80,9 +80,9 @@ import * as Payabli from "../../../index.mjs";
80
80
  * BatchType: 0,
81
81
  * Method: "card",
82
82
  * ExpectedDepositDate: "2023-04-19T00:00:00Z",
83
- * DepositDate: undefined,
83
+ * DepositDate: null,
84
84
  * TransferDate: "2025-09-02T00:00:00Z",
85
- * Transfer: undefined
85
+ * Transfer: null
86
86
  * }, {
87
87
  * IdBatch: 1012,
88
88
  * BatchNumber: "BT-2023041421-187",
@@ -123,7 +123,7 @@ import * as Payabli from "../../../index.mjs";
123
123
  * BatchType: 0,
124
124
  * Method: "card",
125
125
  * ExpectedDepositDate: "2023-04-15T00:00:00Z",
126
- * DepositDate: undefined,
126
+ * DepositDate: null,
127
127
  * TransferDate: "2025-09-02T00:00:00Z",
128
128
  * Transfer: {
129
129
  * TransferId: 5998,
@@ -196,13 +196,13 @@ export declare namespace QueryBatchesResponse {
196
196
  /** The batch type. */
197
197
  BatchType: number | null;
198
198
  /** The payment method used. */
199
- Method?: string;
200
- ExpectedDepositDate?: Payabli.ExpectedDepositDate;
201
- DepositDate?: Payabli.DepositDate;
199
+ Method: string | null;
200
+ ExpectedDepositDate: Payabli.ExpectedDepositDate | null;
201
+ DepositDate: Payabli.DepositDate | null;
202
202
  /** The batch transfer date. */
203
- TransferDate?: string;
203
+ TransferDate: string | null;
204
204
  /** Transfer details for the batch. */
205
- Transfer?: Payabli.QueryBatchesTransfer;
205
+ Transfer: Payabli.QueryBatchesTransfer | null;
206
206
  }
207
207
  }
208
208
  }