@getivy/node-sdk 0.1.0-alpha.9 → 1.1.0

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 (231) hide show
  1. package/CHANGELOG.md +334 -0
  2. package/README.md +16 -26
  3. package/_shims/index.d.ts +2 -0
  4. package/_shims/index.js +5 -1
  5. package/_shims/index.mjs +5 -1
  6. package/core.d.ts +19 -5
  7. package/core.d.ts.map +1 -1
  8. package/core.js +25 -15
  9. package/core.js.map +1 -1
  10. package/core.mjs +26 -16
  11. package/core.mjs.map +1 -1
  12. package/index.d.mts +36 -18
  13. package/index.d.ts +36 -18
  14. package/index.d.ts.map +1 -1
  15. package/index.js +27 -8
  16. package/index.js.map +1 -1
  17. package/index.mjs +27 -8
  18. package/index.mjs.map +1 -1
  19. package/package.json +11 -33
  20. package/resource.d.ts +1 -1
  21. package/resource.d.ts.map +1 -1
  22. package/resource.js.map +1 -1
  23. package/resource.mjs.map +1 -1
  24. package/resources/balance.d.ts +8 -5
  25. package/resources/balance.d.ts.map +1 -1
  26. package/resources/banks.d.ts +82 -67
  27. package/resources/banks.d.ts.map +1 -1
  28. package/resources/beneficiary-payouts.d.ts +61 -0
  29. package/resources/beneficiary-payouts.d.ts.map +1 -0
  30. package/resources/beneficiary-payouts.js +16 -0
  31. package/resources/beneficiary-payouts.js.map +1 -0
  32. package/resources/beneficiary-payouts.mjs +12 -0
  33. package/resources/beneficiary-payouts.mjs.map +1 -0
  34. package/resources/capabilities.d.ts +1 -10
  35. package/resources/capabilities.d.ts.map +1 -1
  36. package/resources/charges.d.ts +28 -19
  37. package/resources/charges.d.ts.map +1 -1
  38. package/resources/checkoutsession.d.ts +275 -1360
  39. package/resources/checkoutsession.d.ts.map +1 -1
  40. package/resources/customers.d.ts +140 -10
  41. package/resources/customers.d.ts.map +1 -1
  42. package/resources/customers.js +9 -2
  43. package/resources/customers.js.map +1 -1
  44. package/resources/customers.mjs +9 -2
  45. package/resources/customers.mjs.map +1 -1
  46. package/resources/data/accounts.d.ts +83 -0
  47. package/resources/data/accounts.d.ts.map +1 -0
  48. package/resources/data/accounts.js +15 -0
  49. package/resources/data/accounts.js.map +1 -0
  50. package/resources/data/accounts.mjs +11 -0
  51. package/resources/data/accounts.mjs.map +1 -0
  52. package/resources/data/balances.d.ts +48 -0
  53. package/resources/data/balances.d.ts.map +1 -0
  54. package/resources/data/balances.js +15 -0
  55. package/resources/data/balances.js.map +1 -0
  56. package/resources/data/balances.mjs +11 -0
  57. package/resources/data/balances.mjs.map +1 -0
  58. package/resources/data/consent.d.ts +80 -0
  59. package/resources/data/consent.d.ts.map +1 -0
  60. package/resources/data/consent.js +21 -0
  61. package/resources/data/consent.js.map +1 -0
  62. package/resources/data/consent.mjs +17 -0
  63. package/resources/data/consent.mjs.map +1 -0
  64. package/resources/data/data.d.ts +26 -0
  65. package/resources/data/data.d.ts.map +1 -0
  66. package/resources/data/data.js +55 -0
  67. package/resources/data/data.js.map +1 -0
  68. package/resources/data/data.mjs +28 -0
  69. package/resources/data/data.mjs.map +1 -0
  70. package/resources/data/index.d.ts +7 -0
  71. package/resources/data/index.d.ts.map +1 -0
  72. package/resources/data/index.js +17 -0
  73. package/resources/data/index.js.map +1 -0
  74. package/resources/data/index.mjs +8 -0
  75. package/resources/data/index.mjs.map +1 -0
  76. package/resources/data/session.d.ts +258 -0
  77. package/resources/data/session.d.ts.map +1 -0
  78. package/resources/data/session.js +21 -0
  79. package/resources/data/session.js.map +1 -0
  80. package/resources/data/session.mjs +17 -0
  81. package/resources/data/session.mjs.map +1 -0
  82. package/resources/data/transactions.d.ts +175 -0
  83. package/resources/data/transactions.d.ts.map +1 -0
  84. package/resources/data/transactions.js +16 -0
  85. package/resources/data/transactions.js.map +1 -0
  86. package/resources/data/transactions.mjs +12 -0
  87. package/resources/data/transactions.mjs.map +1 -0
  88. package/resources/data.d.ts +2 -0
  89. package/resources/data.d.ts.map +1 -0
  90. package/resources/data.js +19 -0
  91. package/resources/data.js.map +1 -0
  92. package/resources/data.mjs +3 -0
  93. package/resources/data.mjs.map +1 -0
  94. package/resources/deposits.d.ts +165 -0
  95. package/resources/deposits.d.ts.map +1 -0
  96. package/resources/deposits.js +15 -0
  97. package/resources/deposits.js.map +1 -0
  98. package/resources/deposits.mjs +11 -0
  99. package/resources/deposits.mjs.map +1 -0
  100. package/resources/fx.d.ts +90 -0
  101. package/resources/fx.d.ts.map +1 -0
  102. package/resources/fx.js +22 -0
  103. package/resources/fx.js.map +1 -0
  104. package/resources/fx.mjs +18 -0
  105. package/resources/fx.mjs.map +1 -0
  106. package/resources/index.d.ts +13 -8
  107. package/resources/index.d.ts.map +1 -1
  108. package/resources/index.js +15 -5
  109. package/resources/index.js.map +1 -1
  110. package/resources/index.mjs +7 -2
  111. package/resources/index.mjs.map +1 -1
  112. package/resources/mandates.d.ts +55 -17
  113. package/resources/mandates.d.ts.map +1 -1
  114. package/resources/orders.d.ts +720 -743
  115. package/resources/orders.d.ts.map +1 -1
  116. package/resources/orders.js +13 -3
  117. package/resources/orders.js.map +1 -1
  118. package/resources/orders.mjs +13 -3
  119. package/resources/orders.mjs.map +1 -1
  120. package/resources/payouts.d.ts +219 -103
  121. package/resources/payouts.d.ts.map +1 -1
  122. package/resources/payouts.js +3 -4
  123. package/resources/payouts.js.map +1 -1
  124. package/resources/payouts.mjs +3 -4
  125. package/resources/payouts.mjs.map +1 -1
  126. package/resources/refunds.d.ts +53 -97
  127. package/resources/refunds.d.ts.map +1 -1
  128. package/resources/refunds.js +8 -12
  129. package/resources/refunds.js.map +1 -1
  130. package/resources/refunds.mjs +8 -12
  131. package/resources/refunds.mjs.map +1 -1
  132. package/resources/returns.d.ts +104 -0
  133. package/resources/returns.d.ts.map +1 -0
  134. package/resources/returns.js +21 -0
  135. package/resources/returns.js.map +1 -0
  136. package/resources/returns.mjs +17 -0
  137. package/resources/returns.mjs.map +1 -0
  138. package/resources/subaccounts.d.ts +15 -5
  139. package/resources/subaccounts.d.ts.map +1 -1
  140. package/resources/subaccounts.js.map +1 -1
  141. package/resources/subaccounts.mjs.map +1 -1
  142. package/resources/transactions.d.ts +174 -0
  143. package/resources/transactions.d.ts.map +1 -0
  144. package/resources/transactions.js +15 -0
  145. package/resources/transactions.js.map +1 -0
  146. package/resources/transactions.mjs +11 -0
  147. package/resources/transactions.mjs.map +1 -0
  148. package/resources/webhook/index.d.ts +3 -0
  149. package/resources/webhook/index.d.ts.map +1 -0
  150. package/resources/webhook/index.js +9 -0
  151. package/resources/webhook/index.js.map +1 -0
  152. package/resources/webhook/index.mjs +4 -0
  153. package/resources/webhook/index.mjs.map +1 -0
  154. package/resources/webhook/subscription.d.ts +152 -0
  155. package/resources/webhook/subscription.d.ts.map +1 -0
  156. package/resources/{webhooksubscription.js → webhook/subscription.js} +6 -6
  157. package/resources/webhook/subscription.js.map +1 -0
  158. package/resources/{webhooksubscription.mjs → webhook/subscription.mjs} +4 -4
  159. package/resources/webhook/subscription.mjs.map +1 -0
  160. package/resources/webhook/webhook.d.ts +28 -0
  161. package/resources/webhook/webhook.d.ts.map +1 -0
  162. package/resources/webhook/webhook.js +45 -0
  163. package/resources/webhook/webhook.js.map +1 -0
  164. package/resources/webhook/webhook.mjs +18 -0
  165. package/resources/webhook/webhook.mjs.map +1 -0
  166. package/resources/webhook.d.ts +2 -0
  167. package/resources/webhook.d.ts.map +1 -0
  168. package/resources/webhook.js +19 -0
  169. package/resources/webhook.js.map +1 -0
  170. package/resources/webhook.mjs +3 -0
  171. package/resources/webhook.mjs.map +1 -0
  172. package/resources.d.ts +2 -0
  173. package/resources.d.ts.map +1 -0
  174. package/resources.js +18 -0
  175. package/resources.js.map +1 -0
  176. package/resources.mjs +2 -0
  177. package/resources.mjs.map +1 -0
  178. package/src/_shims/index.d.ts +2 -0
  179. package/src/_shims/index.js +5 -1
  180. package/src/_shims/index.mjs +5 -1
  181. package/src/core.ts +44 -16
  182. package/src/index.ts +111 -60
  183. package/src/resource.ts +1 -1
  184. package/src/resources/balance.ts +8 -5
  185. package/src/resources/banks.ts +130 -67
  186. package/src/resources/beneficiary-payouts.ts +78 -0
  187. package/src/resources/capabilities.ts +1 -10
  188. package/src/resources/charges.ts +30 -21
  189. package/src/resources/checkoutsession.ts +1224 -3096
  190. package/src/resources/customers.ts +164 -9
  191. package/src/resources/data/accounts.ts +113 -0
  192. package/src/resources/data/balances.ts +60 -0
  193. package/src/resources/data/consent.ts +110 -0
  194. package/src/resources/data/data.ts +75 -0
  195. package/src/resources/data/index.ts +20 -0
  196. package/src/resources/data/session.ts +1317 -0
  197. package/src/resources/data/transactions.ts +235 -0
  198. package/src/resources/data.ts +3 -0
  199. package/src/resources/deposits.ts +231 -0
  200. package/src/resources/fx.ts +119 -0
  201. package/src/resources/index.ts +33 -28
  202. package/src/resources/mandates.ts +79 -17
  203. package/src/resources/orders.ts +1449 -1075
  204. package/src/resources/payouts.ts +273 -103
  205. package/src/resources/refunds.ts +70 -111
  206. package/src/resources/returns.ts +140 -0
  207. package/src/resources/subaccounts.ts +26 -4
  208. package/src/resources/transactions.ts +234 -0
  209. package/src/resources/webhook/index.ts +16 -0
  210. package/src/resources/{webhooksubscription.ts → webhook/subscription.ts} +164 -112
  211. package/src/resources/webhook/webhook.ts +69 -0
  212. package/src/resources/webhook.ts +3 -0
  213. package/src/resources.ts +1 -0
  214. package/src/version.ts +1 -1
  215. package/version.d.ts +1 -1
  216. package/version.d.ts.map +1 -1
  217. package/version.js +1 -1
  218. package/version.js.map +1 -1
  219. package/version.mjs +1 -1
  220. package/version.mjs.map +1 -1
  221. package/resources/reports.d.ts +0 -120
  222. package/resources/reports.d.ts.map +0 -1
  223. package/resources/reports.js +0 -31
  224. package/resources/reports.js.map +0 -1
  225. package/resources/reports.mjs +0 -27
  226. package/resources/reports.mjs.map +0 -1
  227. package/resources/webhooksubscription.d.ts +0 -155
  228. package/resources/webhooksubscription.d.ts.map +0 -1
  229. package/resources/webhooksubscription.js.map +0 -1
  230. package/resources/webhooksubscription.mjs.map +0 -1
  231. package/src/resources/reports.ts +0 -172
@@ -2,55 +2,68 @@ import { APIResource } from "../resource.js";
2
2
  import * as Core from "../core.js";
3
3
  export declare class Payouts extends APIResource {
4
4
  /**
5
- * Create a Customer Payout to a customer's bank account for withdrawals or similar
6
- * purposes.
5
+ * Create a payout for a merchant.
7
6
  */
8
- create(body: PayoutCreateParams, options?: Core.RequestOptions): Core.APIPromise<PublicUserPayout>;
7
+ create(body: PayoutCreateParams, options?: Core.RequestOptions): Core.APIPromise<Payout>;
9
8
  /**
10
- * Retrieve a Customer Payout by id
9
+ * Retrieve a payout object by id.
11
10
  */
12
- retrieve(body: PayoutRetrieveParams, options?: Core.RequestOptions): Core.APIPromise<PublicUserPayout>;
11
+ retrieve(body: PayoutRetrieveParams, options?: Core.RequestOptions): Core.APIPromise<PayoutRetrieveResponse>;
13
12
  /**
14
- * List all Customer Payouts made by this merchant account.
13
+ * List payouts for a merchant.
15
14
  */
16
15
  list(body: PayoutListParams, options?: Core.RequestOptions): Core.APIPromise<PayoutListResponse>;
17
16
  }
18
- export interface PublicUserPayout {
17
+ export interface Payout {
18
+ /**
19
+ * The payout ID
20
+ */
19
21
  id: string;
22
+ /**
23
+ * The payout amount
24
+ */
20
25
  amount: number;
21
- currency: 'EUR' | 'GBP' | 'PLN';
22
26
  /**
23
- * The validation logic is based on the "type" field. For example, if "type" is set
24
- * to "iban", the "iban" object must be filled out.
27
+ * The payout created at
25
28
  */
26
- destination: PublicUserPayout.Destination;
27
- status: 'paid' | 'pending' | 'failed';
28
- createdAt?: string;
29
+ createdAt: unknown;
29
30
  /**
30
- * Any key-value pairs, which will be stored to the object. See
31
- * [here](https://docs.getivy.de/reference/metadata) for more info.
31
+ * The payout currency
32
32
  */
33
- metadata?: Record<string, unknown>;
34
- updatedAt?: string;
33
+ currency: 'EUR' | 'GBP' | 'PLN' | 'SEK' | 'DKK';
34
+ /**
35
+ * The payout destination
36
+ */
37
+ destination: Payout.Destination;
38
+ /**
39
+ * The payout status
40
+ */
41
+ status: 'paid' | 'pending' | 'in_transit' | 'failed' | 'canceled';
42
+ /**
43
+ * The payout type
44
+ */
45
+ type: 'beneficiary' | 'customer';
46
+ /**
47
+ * The payout updated at
48
+ */
49
+ updatedAt: unknown;
50
+ /**
51
+ * The payout metadata
52
+ */
53
+ metadata?: {
54
+ [key: string]: unknown;
55
+ };
56
+ /**
57
+ * The payout payment reference
58
+ */
59
+ paymentReference?: string;
35
60
  }
36
- export declare namespace PublicUserPayout {
61
+ export declare namespace Payout {
37
62
  /**
38
- * The validation logic is based on the "type" field. For example, if "type" is set
39
- * to "iban", the "iban" object must be filled out.
63
+ * The payout destination
40
64
  */
41
65
  interface Destination {
42
- /**
43
- * The type of the financial address. The actual destination is determined by this
44
- * field which can be either "iban", "sortCode", "bankCode", or "bban". The
45
- * validation will fail if you set e.g. type="iban", but then not fill any values
46
- * in the "iban" object.
47
- *
48
- * - iban: The IBAN of the account
49
- * - sort_code: The sort code of the account
50
- * - bank_code: The bank code of the account
51
- * - bban: The BBAN of the account
52
- */
53
- type: string;
66
+ type: 'iban' | 'sort_code' | 'bank_code' | 'bban';
54
67
  bankCode?: Destination.BankCode;
55
68
  bban?: Destination.Bban;
56
69
  iban?: Destination.Iban;
@@ -58,109 +71,229 @@ export declare namespace PublicUserPayout {
58
71
  }
59
72
  namespace Destination {
60
73
  interface BankCode {
61
- /**
62
- * The name of the account holder.
63
- */
64
74
  accountHolderName: string;
65
75
  accountNumber: string;
66
76
  code: string;
67
77
  }
68
78
  interface Bban {
69
- /**
70
- * The name of the account holder.
71
- */
72
79
  accountHolderName: string;
73
80
  bban: string;
74
81
  bic?: string;
75
82
  }
76
83
  interface Iban {
77
- /**
78
- * The name of the account holder.
79
- */
80
84
  accountHolderName: string;
81
85
  iban: string;
82
86
  bic?: string;
83
87
  }
84
88
  interface SortCode {
85
- /**
86
- * The name of the account holder.
87
- */
88
89
  accountHolderName: string;
89
90
  accountNumber: string;
90
91
  sortCode: string;
91
92
  }
92
93
  }
93
94
  }
94
- export interface PayoutListResponse {
95
+ export interface PayoutRetrieveResponse {
95
96
  /**
96
- * The total number of items
97
+ * The payout ID
97
98
  */
98
- count: number;
99
+ id: string;
99
100
  /**
100
- * Whether there are more items to retrieve
101
+ * The payout amount
101
102
  */
102
- hasNext: boolean;
103
- items: Array<PublicUserPayout>;
103
+ amount: number;
104
+ /**
105
+ * The payout created at
106
+ */
107
+ createdAt: unknown;
108
+ /**
109
+ * The payout currency
110
+ */
111
+ currency: 'EUR' | 'GBP' | 'PLN' | 'SEK' | 'DKK';
112
+ /**
113
+ * The payout destination
114
+ */
115
+ destination: PayoutRetrieveResponse.Destination;
116
+ /**
117
+ * The payout status
118
+ */
119
+ status: 'paid' | 'pending' | 'in_transit' | 'failed' | 'canceled';
120
+ /**
121
+ * The payout type
122
+ */
123
+ type: 'beneficiary' | 'customer';
124
+ /**
125
+ * The payout updated at
126
+ */
127
+ updatedAt: unknown;
128
+ /**
129
+ * The payout metadata
130
+ */
131
+ metadata?: {
132
+ [key: string]: unknown;
133
+ };
134
+ /**
135
+ * The payout payment reference
136
+ */
137
+ paymentReference?: string;
138
+ }
139
+ export declare namespace PayoutRetrieveResponse {
104
140
  /**
105
- * The number of items skipped
141
+ * The payout destination
106
142
  */
143
+ interface Destination {
144
+ type: 'iban' | 'sort_code' | 'bank_code' | 'bban';
145
+ bankCode?: Destination.BankCode;
146
+ bban?: Destination.Bban;
147
+ iban?: Destination.Iban;
148
+ sortCode?: Destination.SortCode;
149
+ }
150
+ namespace Destination {
151
+ interface BankCode {
152
+ accountHolderName: string;
153
+ accountNumber: string;
154
+ code: string;
155
+ }
156
+ interface Bban {
157
+ accountHolderName: string;
158
+ bban: string;
159
+ bic?: string;
160
+ }
161
+ interface Iban {
162
+ accountHolderName: string;
163
+ iban: string;
164
+ bic?: string;
165
+ }
166
+ interface SortCode {
167
+ accountHolderName: string;
168
+ accountNumber: string;
169
+ sortCode: string;
170
+ }
171
+ }
172
+ }
173
+ export interface PayoutListResponse {
174
+ count: number;
175
+ hasNext: boolean;
176
+ items: Array<PayoutListResponse.Item>;
107
177
  skip: number;
108
178
  }
179
+ export declare namespace PayoutListResponse {
180
+ interface Item {
181
+ /**
182
+ * The payout ID
183
+ */
184
+ id: string;
185
+ /**
186
+ * The payout amount
187
+ */
188
+ amount: number;
189
+ /**
190
+ * The payout created at
191
+ */
192
+ createdAt: unknown;
193
+ /**
194
+ * The payout currency
195
+ */
196
+ currency: 'EUR' | 'GBP' | 'PLN' | 'SEK' | 'DKK';
197
+ /**
198
+ * The payout destination
199
+ */
200
+ destination: Item.Destination;
201
+ /**
202
+ * The payout status
203
+ */
204
+ status: 'paid' | 'pending' | 'in_transit' | 'failed' | 'canceled';
205
+ /**
206
+ * The payout type
207
+ */
208
+ type: 'beneficiary' | 'customer';
209
+ /**
210
+ * The payout updated at
211
+ */
212
+ updatedAt: unknown;
213
+ /**
214
+ * The payout metadata
215
+ */
216
+ metadata?: {
217
+ [key: string]: unknown;
218
+ };
219
+ /**
220
+ * The payout payment reference
221
+ */
222
+ paymentReference?: string;
223
+ }
224
+ namespace Item {
225
+ /**
226
+ * The payout destination
227
+ */
228
+ interface Destination {
229
+ type: 'iban' | 'sort_code' | 'bank_code' | 'bban';
230
+ bankCode?: Destination.BankCode;
231
+ bban?: Destination.Bban;
232
+ iban?: Destination.Iban;
233
+ sortCode?: Destination.SortCode;
234
+ }
235
+ namespace Destination {
236
+ interface BankCode {
237
+ accountHolderName: string;
238
+ accountNumber: string;
239
+ code: string;
240
+ }
241
+ interface Bban {
242
+ accountHolderName: string;
243
+ bban: string;
244
+ bic?: string;
245
+ }
246
+ interface Iban {
247
+ accountHolderName: string;
248
+ iban: string;
249
+ bic?: string;
250
+ }
251
+ interface SortCode {
252
+ accountHolderName: string;
253
+ accountNumber: string;
254
+ sortCode: string;
255
+ }
256
+ }
257
+ }
258
+ }
109
259
  export interface PayoutCreateParams {
110
260
  /**
111
- * The amount of the customer payout
261
+ * The payout amount in decimal format. The minimum amount is 0.01.
112
262
  */
113
263
  amount: number;
114
264
  /**
115
- * The currency of the customer payout
265
+ * The payout currency
116
266
  */
117
- currency: 'EUR' | 'GBP' | 'PLN';
267
+ currency: 'EUR' | 'GBP' | 'PLN' | 'SEK' | 'DKK';
118
268
  /**
119
- * The destination of the customer payout.
269
+ * The payout destination
120
270
  */
121
271
  destination: PayoutCreateParams.Destination;
122
272
  /**
123
- * The metadata of the customer payout
273
+ * This can be used to store any additional information you need to associate with
274
+ * this payout.
124
275
  */
125
- metadata?: Record<string, unknown>;
276
+ metadata?: {
277
+ [key: string]: unknown;
278
+ };
126
279
  /**
127
- * The payment reference of the customer payout. The customer will see this
128
- * reference in their bank statement.
280
+ * The payout payment reference. This is visible to the receiving party, if
281
+ * possible.
129
282
  */
130
283
  paymentReference?: string;
131
284
  }
132
285
  export declare namespace PayoutCreateParams {
133
286
  /**
134
- * The destination of the customer payout.
287
+ * The payout destination
135
288
  */
136
289
  interface Destination {
137
- /**
138
- * Used for open-loop customer payouts. Disabled by default for merchants.
139
- */
140
- financialAddress?: Destination.FinancialAddress;
141
- /**
142
- * For closed-loop customer payouts. The destination account will be taken from the
143
- * payer of this order.
144
- */
290
+ financialAddress?: Destination.FinancialAddress | null;
145
291
  orderId?: string;
292
+ type?: 'beneficiary';
146
293
  }
147
294
  namespace Destination {
148
- /**
149
- * Used for open-loop customer payouts. Disabled by default for merchants.
150
- */
151
295
  interface FinancialAddress {
152
- /**
153
- * The type of the financial address. The actual destination is determined by this
154
- * field which can be either "iban", "sortCode", "bankCode", or "bban". The
155
- * validation will fail if you set e.g. type="iban", but then not fill any values
156
- * in the "iban" object.
157
- *
158
- * - iban: The IBAN of the account
159
- * - sort_code: The sort code of the account
160
- * - bank_code: The bank code of the account
161
- * - bban: The BBAN of the account
162
- */
163
- type: string;
296
+ type: 'iban' | 'sort_code' | 'bank_code' | 'bban';
164
297
  bankCode?: FinancialAddress.BankCode;
165
298
  bban?: FinancialAddress.Bban;
166
299
  iban?: FinancialAddress.Iban;
@@ -168,33 +301,21 @@ export declare namespace PayoutCreateParams {
168
301
  }
169
302
  namespace FinancialAddress {
170
303
  interface BankCode {
171
- /**
172
- * The name of the account holder.
173
- */
174
304
  accountHolderName: string;
175
305
  accountNumber: string;
176
306
  code: string;
177
307
  }
178
308
  interface Bban {
179
- /**
180
- * The name of the account holder.
181
- */
182
309
  accountHolderName: string;
183
310
  bban: string;
184
311
  bic?: string;
185
312
  }
186
313
  interface Iban {
187
- /**
188
- * The name of the account holder.
189
- */
190
314
  accountHolderName: string;
191
315
  iban: string;
192
316
  bic?: string;
193
317
  }
194
318
  interface SortCode {
195
- /**
196
- * The name of the account holder.
197
- */
198
319
  accountHolderName: string;
199
320
  accountNumber: string;
200
321
  sortCode: string;
@@ -204,21 +325,16 @@ export declare namespace PayoutCreateParams {
204
325
  }
205
326
  export interface PayoutRetrieveParams {
206
327
  /**
207
- * The unique identifier of the Customer Payout
328
+ * The payout ID
208
329
  */
209
330
  id: string;
210
331
  }
211
332
  export interface PayoutListParams {
212
- /**
213
- * The number of items to retrieve
214
- */
215
333
  limit?: number;
216
- /**
217
- * The number of items to skip
218
- */
219
334
  skip?: number;
335
+ type?: 'customer-payout' | 'beneficiary-payout';
220
336
  }
221
337
  export declare namespace Payouts {
222
- export { type PublicUserPayout as PublicUserPayout, type PayoutListResponse as PayoutListResponse, type PayoutCreateParams as PayoutCreateParams, type PayoutRetrieveParams as PayoutRetrieveParams, type PayoutListParams as PayoutListParams, };
338
+ export { type Payout as Payout, type PayoutRetrieveResponse as PayoutRetrieveResponse, type PayoutListResponse as PayoutListResponse, type PayoutCreateParams as PayoutCreateParams, type PayoutRetrieveParams as PayoutRetrieveParams, type PayoutListParams as PayoutListParams, };
223
339
  }
224
340
  //# sourceMappingURL=payouts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"payouts.d.ts","sourceRoot":"","sources":["../src/resources/payouts.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAA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AAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
@@ -5,20 +5,19 @@ exports.Payouts = void 0;
5
5
  const resource_1 = require("../resource.js");
6
6
  class Payouts extends resource_1.APIResource {
7
7
  /**
8
- * Create a Customer Payout to a customer's bank account for withdrawals or similar
9
- * purposes.
8
+ * Create a payout for a merchant.
10
9
  */
11
10
  create(body, options) {
12
11
  return this._client.post('/api/service/payout/create', { body, ...options });
13
12
  }
14
13
  /**
15
- * Retrieve a Customer Payout by id
14
+ * Retrieve a payout object by id.
16
15
  */
17
16
  retrieve(body, options) {
18
17
  return this._client.post('/api/service/payout/retrieve', { body, ...options });
19
18
  }
20
19
  /**
21
- * List all Customer Payouts made by this merchant account.
20
+ * List payouts for a merchant.
22
21
  */
23
22
  list(body, options) {
24
23
  return this._client.post('/api/service/payout/list', { body, ...options });
@@ -1 +1 @@
1
- {"version":3,"file":"payouts.js","sourceRoot":"","sources":["../src/resources/payouts.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAG1C,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;OAGG;IACH,MAAM,CAAC,IAAwB,EAAE,OAA6B;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,4BAA4B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,IAA0B,EAAE,OAA6B;QAChE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,8BAA8B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,IAAsB,EAAE,OAA6B;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;CACF;AAtBD,0BAsBC"}
1
+ {"version":3,"file":"payouts.js","sourceRoot":"","sources":["../src/resources/payouts.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAG1C,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;OAEG;IACH,MAAM,CAAC,IAAwB,EAAE,OAA6B;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,4BAA4B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,IAA0B,EAC1B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,8BAA8B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,IAAsB,EAAE,OAA6B;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;CACF;AAxBD,0BAwBC"}
@@ -2,20 +2,19 @@
2
2
  import { APIResource } from "../resource.mjs";
3
3
  export class Payouts extends APIResource {
4
4
  /**
5
- * Create a Customer Payout to a customer's bank account for withdrawals or similar
6
- * purposes.
5
+ * Create a payout for a merchant.
7
6
  */
8
7
  create(body, options) {
9
8
  return this._client.post('/api/service/payout/create', { body, ...options });
10
9
  }
11
10
  /**
12
- * Retrieve a Customer Payout by id
11
+ * Retrieve a payout object by id.
13
12
  */
14
13
  retrieve(body, options) {
15
14
  return this._client.post('/api/service/payout/retrieve', { body, ...options });
16
15
  }
17
16
  /**
18
- * List all Customer Payouts made by this merchant account.
17
+ * List payouts for a merchant.
19
18
  */
20
19
  list(body, options) {
21
20
  return this._client.post('/api/service/payout/list', { body, ...options });
@@ -1 +1 @@
1
- {"version":3,"file":"payouts.mjs","sourceRoot":"","sources":["../src/resources/payouts.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;OAGG;IACH,MAAM,CAAC,IAAwB,EAAE,OAA6B;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,4BAA4B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,IAA0B,EAAE,OAA6B;QAChE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,8BAA8B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,IAAsB,EAAE,OAA6B;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;CACF"}
1
+ {"version":3,"file":"payouts.mjs","sourceRoot":"","sources":["../src/resources/payouts.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CAAC,IAAwB,EAAE,OAA6B;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,4BAA4B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,IAA0B,EAC1B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,8BAA8B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,IAAsB,EAAE,O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