@getivy/node-sdk 0.1.0-alpha.8 → 1.0.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.
- package/CHANGELOG.md +359 -0
- package/README.md +16 -26
- package/_shims/index.d.ts +2 -0
- package/_shims/index.js +5 -1
- package/_shims/index.mjs +5 -1
- package/core.d.ts +19 -5
- package/core.d.ts.map +1 -1
- package/core.js +25 -15
- package/core.js.map +1 -1
- package/core.mjs +26 -16
- package/core.mjs.map +1 -1
- package/index.d.mts +30 -18
- package/index.d.ts +30 -18
- package/index.d.ts.map +1 -1
- package/index.js +21 -8
- package/index.js.map +1 -1
- package/index.mjs +21 -8
- package/index.mjs.map +1 -1
- package/package.json +11 -33
- package/resource.d.ts +1 -1
- package/resource.d.ts.map +1 -1
- package/resource.js.map +1 -1
- package/resource.mjs.map +1 -1
- package/resources/balance.d.ts +8 -5
- package/resources/balance.d.ts.map +1 -1
- package/resources/banks.d.ts +82 -67
- package/resources/banks.d.ts.map +1 -1
- package/resources/beneficiary-payouts.d.ts +61 -0
- package/resources/beneficiary-payouts.d.ts.map +1 -0
- package/resources/beneficiary-payouts.js +16 -0
- package/resources/beneficiary-payouts.js.map +1 -0
- package/resources/beneficiary-payouts.mjs +12 -0
- package/resources/beneficiary-payouts.mjs.map +1 -0
- package/resources/capabilities.d.ts +1 -10
- package/resources/capabilities.d.ts.map +1 -1
- package/resources/charges.d.ts +28 -19
- package/resources/charges.d.ts.map +1 -1
- package/resources/checkoutsession.d.ts +275 -1360
- package/resources/checkoutsession.d.ts.map +1 -1
- package/resources/customers.d.ts +140 -10
- package/resources/customers.d.ts.map +1 -1
- package/resources/customers.js +9 -2
- package/resources/customers.js.map +1 -1
- package/resources/customers.mjs +9 -2
- package/resources/customers.mjs.map +1 -1
- package/resources/deposits.d.ts +165 -0
- package/resources/deposits.d.ts.map +1 -0
- package/resources/deposits.js +15 -0
- package/resources/deposits.js.map +1 -0
- package/resources/deposits.mjs +11 -0
- package/resources/deposits.mjs.map +1 -0
- package/resources/fx.d.ts +90 -0
- package/resources/fx.d.ts.map +1 -0
- package/resources/fx.js +22 -0
- package/resources/fx.js.map +1 -0
- package/resources/fx.mjs +18 -0
- package/resources/fx.mjs.map +1 -0
- package/resources/index.d.ts +11 -8
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +11 -5
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +5 -2
- package/resources/index.mjs.map +1 -1
- package/resources/mandates.d.ts +55 -17
- package/resources/mandates.d.ts.map +1 -1
- package/resources/orders.d.ts +718 -739
- package/resources/orders.d.ts.map +1 -1
- package/resources/orders.js +13 -3
- package/resources/orders.js.map +1 -1
- package/resources/orders.mjs +13 -3
- package/resources/orders.mjs.map +1 -1
- package/resources/payouts.d.ts +219 -103
- package/resources/payouts.d.ts.map +1 -1
- package/resources/payouts.js +3 -4
- package/resources/payouts.js.map +1 -1
- package/resources/payouts.mjs +3 -4
- package/resources/payouts.mjs.map +1 -1
- package/resources/refunds.d.ts +53 -97
- package/resources/refunds.d.ts.map +1 -1
- package/resources/refunds.js +8 -12
- package/resources/refunds.js.map +1 -1
- package/resources/refunds.mjs +8 -12
- package/resources/refunds.mjs.map +1 -1
- package/resources/returns.d.ts +104 -0
- package/resources/returns.d.ts.map +1 -0
- package/resources/returns.js +21 -0
- package/resources/returns.js.map +1 -0
- package/resources/returns.mjs +17 -0
- package/resources/returns.mjs.map +1 -0
- package/resources/subaccounts.d.ts +15 -5
- package/resources/subaccounts.d.ts.map +1 -1
- package/resources/subaccounts.js.map +1 -1
- package/resources/subaccounts.mjs.map +1 -1
- package/resources/transactions.d.ts +174 -0
- package/resources/transactions.d.ts.map +1 -0
- package/resources/transactions.js +15 -0
- package/resources/transactions.js.map +1 -0
- package/resources/transactions.mjs +11 -0
- package/resources/transactions.mjs.map +1 -0
- package/resources.d.ts +2 -0
- package/resources.d.ts.map +1 -0
- package/resources.js +18 -0
- package/resources.js.map +1 -0
- package/resources.mjs +2 -0
- package/resources.mjs.map +1 -0
- package/src/_shims/index.d.ts +2 -0
- package/src/_shims/index.js +5 -1
- package/src/_shims/index.mjs +5 -1
- package/src/core.ts +44 -16
- package/src/index.ts +100 -63
- package/src/resource.ts +1 -1
- package/src/resources/balance.ts +8 -5
- package/src/resources/banks.ts +130 -67
- package/src/resources/beneficiary-payouts.ts +78 -0
- package/src/resources/capabilities.ts +1 -10
- package/src/resources/charges.ts +30 -21
- package/src/resources/checkoutsession.ts +1224 -3096
- package/src/resources/customers.ts +164 -9
- package/src/resources/deposits.ts +231 -0
- package/src/resources/fx.ts +119 -0
- package/src/resources/index.ts +31 -28
- package/src/resources/mandates.ts +79 -17
- package/src/resources/orders.ts +1448 -1072
- package/src/resources/payouts.ts +273 -103
- package/src/resources/refunds.ts +70 -111
- package/src/resources/returns.ts +140 -0
- package/src/resources/subaccounts.ts +26 -4
- package/src/resources/transactions.ts +234 -0
- package/src/resources.ts +1 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
- package/resources/reports.d.ts +0 -120
- package/resources/reports.d.ts.map +0 -1
- package/resources/reports.js +0 -31
- package/resources/reports.js.map +0 -1
- package/resources/reports.mjs +0 -27
- package/resources/reports.mjs.map +0 -1
- package/resources/webhooksubscription.d.ts +0 -155
- package/resources/webhooksubscription.d.ts.map +0 -1
- package/resources/webhooksubscription.js +0 -42
- package/resources/webhooksubscription.js.map +0 -1
- package/resources/webhooksubscription.mjs +0 -38
- package/resources/webhooksubscription.mjs.map +0 -1
- package/src/resources/reports.ts +0 -172
- package/src/resources/webhooksubscription.ts +0 -353
package/resources/payouts.d.ts
CHANGED
|
@@ -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
|
|
6
|
-
* purposes.
|
|
5
|
+
* Create a payout for a merchant.
|
|
7
6
|
*/
|
|
8
|
-
create(body: PayoutCreateParams, options?: Core.RequestOptions): Core.APIPromise<
|
|
7
|
+
create(body: PayoutCreateParams, options?: Core.RequestOptions): Core.APIPromise<Payout>;
|
|
9
8
|
/**
|
|
10
|
-
* Retrieve a
|
|
9
|
+
* Retrieve a payout object by id.
|
|
11
10
|
*/
|
|
12
|
-
retrieve(body: PayoutRetrieveParams, options?: Core.RequestOptions): Core.APIPromise<
|
|
11
|
+
retrieve(body: PayoutRetrieveParams, options?: Core.RequestOptions): Core.APIPromise<PayoutRetrieveResponse>;
|
|
13
12
|
/**
|
|
14
|
-
* List
|
|
13
|
+
* List payouts for a merchant.
|
|
15
14
|
*/
|
|
16
15
|
list(body: PayoutListParams, options?: Core.RequestOptions): Core.APIPromise<PayoutListResponse>;
|
|
17
16
|
}
|
|
18
|
-
export interface
|
|
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
|
|
24
|
-
* to "iban", the "iban" object must be filled out.
|
|
27
|
+
* The payout created at
|
|
25
28
|
*/
|
|
26
|
-
|
|
27
|
-
status: 'paid' | 'pending' | 'failed';
|
|
28
|
-
createdAt?: string;
|
|
29
|
+
createdAt: unknown;
|
|
29
30
|
/**
|
|
30
|
-
*
|
|
31
|
-
* [here](https://docs.getivy.de/reference/metadata) for more info.
|
|
31
|
+
* The payout currency
|
|
32
32
|
*/
|
|
33
|
-
|
|
34
|
-
|
|
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
|
|
61
|
+
export declare namespace Payout {
|
|
37
62
|
/**
|
|
38
|
-
* The
|
|
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
|
|
95
|
+
export interface PayoutRetrieveResponse {
|
|
95
96
|
/**
|
|
96
|
-
* The
|
|
97
|
+
* The payout ID
|
|
97
98
|
*/
|
|
98
|
-
|
|
99
|
+
id: string;
|
|
99
100
|
/**
|
|
100
|
-
*
|
|
101
|
+
* The payout amount
|
|
101
102
|
*/
|
|
102
|
-
|
|
103
|
-
|
|
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
|
|
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
|
|
261
|
+
* The payout amount in decimal format. The minimum amount is 0.01.
|
|
112
262
|
*/
|
|
113
263
|
amount: number;
|
|
114
264
|
/**
|
|
115
|
-
* The currency
|
|
265
|
+
* The payout currency
|
|
116
266
|
*/
|
|
117
|
-
currency: 'EUR' | 'GBP' | 'PLN';
|
|
267
|
+
currency: 'EUR' | 'GBP' | 'PLN' | 'SEK' | 'DKK';
|
|
118
268
|
/**
|
|
119
|
-
* The destination
|
|
269
|
+
* The payout destination
|
|
120
270
|
*/
|
|
121
271
|
destination: PayoutCreateParams.Destination;
|
|
122
272
|
/**
|
|
123
|
-
*
|
|
273
|
+
* This can be used to store any additional information you need to associate with
|
|
274
|
+
* this payout.
|
|
124
275
|
*/
|
|
125
|
-
metadata?:
|
|
276
|
+
metadata?: {
|
|
277
|
+
[key: string]: unknown;
|
|
278
|
+
};
|
|
126
279
|
/**
|
|
127
|
-
* The payment reference
|
|
128
|
-
*
|
|
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
|
|
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
|
|
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
|
|
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,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAEhC,qBAAa,OAAQ,SAAQ,WAAW;IACtC
|
|
1
|
+
{"version":3,"file":"payouts.d.ts","sourceRoot":"","sources":["../src/resources/payouts.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAEhC,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC;IAIxF;;OAEG;IACH,QAAQ,CACN,IAAI,EAAE,oBAAoB,EAC1B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,sBAAsB,CAAC;IAI1C;;OAEG;IACH,IAAI,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,kBAAkB,CAAC;CAGjG;AAED,MAAM,WAAW,MAAM;IACrB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,QAAQ,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;IAEhD;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC,WAAW,CAAC;IAEhC;;OAEG;IACH,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,YAAY,GAAG,QAAQ,GAAG,UAAU,CAAC;IAElE;;OAEG;IACH,IAAI,EAAE,a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IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
package/resources/payouts.js
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
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 });
|
package/resources/payouts.js.map
CHANGED
|
@@ -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
|
|
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"}
|
package/resources/payouts.mjs
CHANGED
|
@@ -2,20 +2,19 @@
|
|
|
2
2
|
import { APIResource } from "../resource.mjs";
|
|
3
3
|
export class Payouts extends APIResource {
|
|
4
4
|
/**
|
|
5
|
-
* Create a
|
|
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
|
|
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
|
|
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
|
|
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,OAA6B;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;CACF"}
|