@whop/sdk 0.0.25 → 0.0.27
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 +58 -0
- package/client.d.mts +29 -25
- package/client.d.mts.map +1 -1
- package/client.d.ts +29 -25
- package/client.d.ts.map +1 -1
- package/client.js +14 -3
- package/client.js.map +1 -1
- package/client.mjs +16 -5
- package/client.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +5 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +5 -0
- package/internal/parse.mjs.map +1 -1
- package/package.json +3 -3
- package/resources/access-tokens.d.mts +32 -51
- package/resources/access-tokens.d.mts.map +1 -1
- package/resources/access-tokens.d.ts +32 -51
- package/resources/access-tokens.d.ts.map +1 -1
- package/resources/access-tokens.js +6 -8
- package/resources/access-tokens.js.map +1 -1
- package/resources/access-tokens.mjs +6 -8
- package/resources/access-tokens.mjs.map +1 -1
- package/resources/ai-chats.d.mts +36 -104
- package/resources/ai-chats.d.mts.map +1 -1
- package/resources/ai-chats.d.ts +36 -104
- package/resources/ai-chats.d.ts.map +1 -1
- package/resources/ai-chats.js +1 -1
- package/resources/ai-chats.js.map +1 -1
- package/resources/ai-chats.mjs +1 -1
- package/resources/ai-chats.mjs.map +1 -1
- package/resources/app-builds.d.mts +2 -2
- package/resources/app-builds.d.ts +2 -2
- package/resources/apps.d.mts +5 -4
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +5 -4
- package/resources/apps.d.ts.map +1 -1
- package/resources/authorized-users.d.mts +43 -9
- package/resources/authorized-users.d.mts.map +1 -1
- package/resources/authorized-users.d.ts +43 -9
- package/resources/authorized-users.d.ts.map +1 -1
- package/resources/authorized-users.js +1 -1
- package/resources/authorized-users.js.map +1 -1
- package/resources/authorized-users.mjs +1 -1
- package/resources/authorized-users.mjs.map +1 -1
- package/resources/chat-channels.d.mts +1 -1
- package/resources/chat-channels.d.ts +1 -1
- package/resources/checkout-configurations.d.mts +24 -16
- package/resources/checkout-configurations.d.mts.map +1 -1
- package/resources/checkout-configurations.d.ts +24 -16
- package/resources/checkout-configurations.d.ts.map +1 -1
- package/resources/companies.d.mts +38 -25
- package/resources/companies.d.mts.map +1 -1
- package/resources/companies.d.ts +38 -25
- package/resources/companies.d.ts.map +1 -1
- package/resources/companies.js +7 -4
- package/resources/companies.js.map +1 -1
- package/resources/companies.mjs +7 -4
- package/resources/companies.mjs.map +1 -1
- package/resources/company-token-transactions.d.mts +23 -109
- package/resources/company-token-transactions.d.mts.map +1 -1
- package/resources/company-token-transactions.d.ts +23 -109
- package/resources/company-token-transactions.d.ts.map +1 -1
- package/resources/course-chapters.d.mts +3 -3
- package/resources/course-chapters.d.ts +3 -3
- package/resources/course-lessons.d.mts +15 -15
- package/resources/course-lessons.d.ts +15 -15
- package/resources/course-students.d.mts +6 -6
- package/resources/course-students.d.ts +6 -6
- package/resources/courses.d.mts +8 -8
- package/resources/courses.d.ts +8 -8
- package/resources/disputes.d.mts +20 -18
- package/resources/disputes.d.mts.map +1 -1
- package/resources/disputes.d.ts +20 -18
- package/resources/disputes.d.ts.map +1 -1
- package/resources/dm-channels.d.mts +161 -0
- package/resources/dm-channels.d.mts.map +1 -0
- package/resources/dm-channels.d.ts +161 -0
- package/resources/dm-channels.d.ts.map +1 -0
- package/resources/dm-channels.js +87 -0
- package/resources/dm-channels.js.map +1 -0
- package/resources/dm-channels.mjs +83 -0
- package/resources/dm-channels.mjs.map +1 -0
- package/resources/dm-members.d.mts +14 -66
- package/resources/dm-members.d.mts.map +1 -1
- package/resources/dm-members.d.ts +14 -66
- package/resources/dm-members.d.ts.map +1 -1
- package/resources/entries.d.mts +6 -6
- package/resources/entries.d.ts +6 -6
- package/resources/experiences.d.mts +6 -5
- package/resources/experiences.d.mts.map +1 -1
- package/resources/experiences.d.ts +6 -5
- package/resources/experiences.d.ts.map +1 -1
- package/resources/fee-markups.d.mts +6 -6
- package/resources/fee-markups.d.ts +6 -6
- package/resources/files.d.mts +9 -5
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +9 -5
- package/resources/files.d.ts.map +1 -1
- package/resources/forum-posts.d.mts +8 -4
- package/resources/forum-posts.d.mts.map +1 -1
- package/resources/forum-posts.d.ts +8 -4
- package/resources/forum-posts.d.ts.map +1 -1
- package/resources/forums.d.mts +1 -1
- package/resources/forums.d.ts +1 -1
- package/resources/index.d.mts +12 -11
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +12 -11
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -2
- package/resources/index.mjs.map +1 -1
- package/resources/invoices.d.mts +28 -20
- package/resources/invoices.d.mts.map +1 -1
- package/resources/invoices.d.ts +28 -20
- package/resources/invoices.d.ts.map +1 -1
- package/resources/leads.d.mts +21 -189
- package/resources/leads.d.mts.map +1 -1
- package/resources/leads.d.ts +21 -189
- package/resources/leads.d.ts.map +1 -1
- package/resources/ledger-accounts.d.mts +12 -9
- package/resources/ledger-accounts.d.mts.map +1 -1
- package/resources/ledger-accounts.d.ts +12 -9
- package/resources/ledger-accounts.d.ts.map +1 -1
- package/resources/ledger-accounts.js.map +1 -1
- package/resources/ledger-accounts.mjs.map +1 -1
- package/resources/members.d.mts +14 -14
- package/resources/members.d.mts.map +1 -1
- package/resources/members.d.ts +14 -14
- package/resources/members.d.ts.map +1 -1
- package/resources/members.js +1 -1
- package/resources/members.js.map +1 -1
- package/resources/members.mjs +1 -1
- package/resources/members.mjs.map +1 -1
- package/resources/memberships.d.mts +25 -15
- package/resources/memberships.d.mts.map +1 -1
- package/resources/memberships.d.ts +25 -15
- package/resources/memberships.d.ts.map +1 -1
- package/resources/messages.d.mts +7 -3
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +7 -3
- package/resources/messages.d.ts.map +1 -1
- package/resources/payments.d.mts +59 -19
- package/resources/payments.d.mts.map +1 -1
- package/resources/payments.d.ts +59 -19
- package/resources/payments.d.ts.map +1 -1
- package/resources/payout-methods.d.mts +14 -9
- package/resources/payout-methods.d.mts.map +1 -1
- package/resources/payout-methods.d.ts +14 -9
- package/resources/payout-methods.d.ts.map +1 -1
- package/resources/payout-methods.js.map +1 -1
- package/resources/payout-methods.mjs.map +1 -1
- package/resources/plans.d.mts +34 -24
- package/resources/plans.d.mts.map +1 -1
- package/resources/plans.d.ts +34 -24
- package/resources/plans.d.ts.map +1 -1
- package/resources/products.d.mts +4 -2
- package/resources/products.d.mts.map +1 -1
- package/resources/products.d.ts +4 -2
- package/resources/products.d.ts.map +1 -1
- package/resources/promo-codes.d.mts +22 -12
- package/resources/promo-codes.d.mts.map +1 -1
- package/resources/promo-codes.d.ts +22 -12
- package/resources/promo-codes.d.ts.map +1 -1
- package/resources/reactions.d.mts +1 -1
- package/resources/reactions.d.ts +1 -1
- package/resources/refunds.d.mts +19 -15
- package/resources/refunds.d.mts.map +1 -1
- package/resources/refunds.d.ts +19 -15
- package/resources/refunds.d.ts.map +1 -1
- package/resources/reviews.d.mts +10 -10
- package/resources/reviews.d.ts +10 -10
- package/resources/setup-intents.d.mts +18 -20
- package/resources/setup-intents.d.mts.map +1 -1
- package/resources/setup-intents.d.ts +18 -20
- package/resources/setup-intents.d.ts.map +1 -1
- package/resources/shared.d.mts +209 -137
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +209 -137
- package/resources/shared.d.ts.map +1 -1
- package/resources/shipments.d.mts +4 -4
- package/resources/shipments.d.ts +4 -4
- package/resources/support-channels.d.mts +1 -1
- package/resources/support-channels.d.ts +1 -1
- package/resources/topups.d.mts +6 -4
- package/resources/topups.d.mts.map +1 -1
- package/resources/topups.d.ts +6 -4
- package/resources/topups.d.ts.map +1 -1
- package/resources/transfers.d.mts +8 -5
- package/resources/transfers.d.mts.map +1 -1
- package/resources/transfers.d.ts +8 -5
- package/resources/transfers.d.ts.map +1 -1
- package/resources/users.d.mts +46 -8
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +46 -8
- package/resources/users.d.ts.map +1 -1
- package/resources/users.js +10 -0
- package/resources/users.js.map +1 -1
- package/resources/users.mjs +10 -0
- package/resources/users.mjs.map +1 -1
- package/resources/verifications.d.mts +12 -4
- package/resources/verifications.d.mts.map +1 -1
- package/resources/verifications.d.ts +12 -4
- package/resources/verifications.d.ts.map +1 -1
- package/resources/webhooks.d.mts +105 -350
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +105 -350
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +2 -2
- package/resources/webhooks.mjs.map +1 -1
- package/resources/withdrawals.d.mts +32 -139
- package/resources/withdrawals.d.mts.map +1 -1
- package/resources/withdrawals.d.ts +32 -139
- package/resources/withdrawals.d.ts.map +1 -1
- package/src/client.ts +87 -41
- package/src/internal/parse.ts +6 -0
- package/src/resources/access-tokens.ts +35 -56
- package/src/resources/ai-chats.ts +36 -122
- package/src/resources/app-builds.ts +2 -2
- package/src/resources/apps.ts +5 -4
- package/src/resources/authorized-users.ts +49 -9
- package/src/resources/chat-channels.ts +1 -1
- package/src/resources/checkout-configurations.ts +24 -16
- package/src/resources/companies.ts +41 -26
- package/src/resources/company-token-transactions.ts +24 -126
- package/src/resources/course-chapters.ts +3 -3
- package/src/resources/course-lessons.ts +15 -15
- package/src/resources/course-students.ts +6 -6
- package/src/resources/courses.ts +8 -8
- package/src/resources/disputes.ts +20 -18
- package/src/resources/dm-channels.ts +212 -0
- package/src/resources/dm-members.ts +16 -78
- package/src/resources/entries.ts +6 -6
- package/src/resources/experiences.ts +6 -5
- package/src/resources/fee-markups.ts +6 -6
- package/src/resources/files.ts +10 -4
- package/src/resources/forum-posts.ts +8 -4
- package/src/resources/forums.ts +1 -1
- package/src/resources/index.ts +38 -18
- package/src/resources/invoices.ts +28 -20
- package/src/resources/leads.ts +21 -217
- package/src/resources/ledger-accounts.ts +12 -42
- package/src/resources/members.ts +15 -15
- package/src/resources/memberships.ts +34 -30
- package/src/resources/messages.ts +7 -3
- package/src/resources/payments.ts +67 -17
- package/src/resources/payout-methods.ts +21 -8
- package/src/resources/plans.ts +34 -24
- package/src/resources/products.ts +4 -2
- package/src/resources/promo-codes.ts +22 -12
- package/src/resources/reactions.ts +1 -1
- package/src/resources/refunds.ts +20 -15
- package/src/resources/reviews.ts +10 -10
- package/src/resources/setup-intents.ts +18 -20
- package/src/resources/shared.ts +217 -145
- package/src/resources/shipments.ts +4 -4
- package/src/resources/support-channels.ts +1 -1
- package/src/resources/topups.ts +6 -4
- package/src/resources/transfers.ts +8 -5
- package/src/resources/users.ts +58 -8
- package/src/resources/verifications.ts +50 -37
- package/src/resources/webhooks.ts +138 -785
- package/src/resources/withdrawals.ts +39 -216
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -25,7 +25,7 @@ export class Withdrawals extends APIResource {
|
|
|
25
25
|
* });
|
|
26
26
|
* ```
|
|
27
27
|
*/
|
|
28
|
-
create(body: WithdrawalCreateParams, options?: RequestOptions): APIPromise<
|
|
28
|
+
create(body: WithdrawalCreateParams, options?: RequestOptions): APIPromise<Withdrawal> {
|
|
29
29
|
return this._client.post('/withdrawals', { body, ...options });
|
|
30
30
|
}
|
|
31
31
|
|
|
@@ -44,7 +44,7 @@ export class Withdrawals extends APIResource {
|
|
|
44
44
|
* );
|
|
45
45
|
* ```
|
|
46
46
|
*/
|
|
47
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<
|
|
47
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<Withdrawal> {
|
|
48
48
|
return this._client.get(path`/withdrawals/${id}`, options);
|
|
49
49
|
}
|
|
50
50
|
|
|
@@ -76,43 +76,23 @@ export class Withdrawals extends APIResource {
|
|
|
76
76
|
export type WithdrawalListResponsesCursorPage = CursorPage<WithdrawalListResponse>;
|
|
77
77
|
|
|
78
78
|
/**
|
|
79
|
-
*
|
|
80
|
-
|
|
81
|
-
export type WithdrawalFeeTypes = 'exclusive' | 'inclusive';
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* The different speeds of withdrawals
|
|
85
|
-
*/
|
|
86
|
-
export type WithdrawalSpeeds = 'standard' | 'instant';
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* The status of a withdrawal request
|
|
90
|
-
*/
|
|
91
|
-
export type WithdrawalStatus =
|
|
92
|
-
| 'requested'
|
|
93
|
-
| 'awaiting_payment'
|
|
94
|
-
| 'in_transit'
|
|
95
|
-
| 'completed'
|
|
96
|
-
| 'failed'
|
|
97
|
-
| 'canceled'
|
|
98
|
-
| 'denied';
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* A withdrawal request.
|
|
79
|
+
* A withdrawal represents a request to transfer funds from a company's ledger
|
|
80
|
+
* account to an external payout method.
|
|
102
81
|
*/
|
|
103
|
-
export interface
|
|
82
|
+
export interface Withdrawal {
|
|
104
83
|
/**
|
|
105
|
-
*
|
|
84
|
+
* The unique identifier for the withdrawal.
|
|
106
85
|
*/
|
|
107
86
|
id: string;
|
|
108
87
|
|
|
109
88
|
/**
|
|
110
|
-
*
|
|
89
|
+
* The withdrawal amount. Provided as a number in the specified currency. Eg:
|
|
90
|
+
* 100.00 for $100.00 USD.
|
|
111
91
|
*/
|
|
112
92
|
amount: number;
|
|
113
93
|
|
|
114
94
|
/**
|
|
115
|
-
*
|
|
95
|
+
* The datetime the withdrawal was created.
|
|
116
96
|
*/
|
|
117
97
|
created_at: string;
|
|
118
98
|
|
|
@@ -197,7 +177,7 @@ export interface WithdrawalCreateResponse {
|
|
|
197
177
|
/**
|
|
198
178
|
* The ledger account associated with the withdrawal.
|
|
199
179
|
*/
|
|
200
|
-
ledger_account:
|
|
180
|
+
ledger_account: Withdrawal.LedgerAccount;
|
|
201
181
|
|
|
202
182
|
/**
|
|
203
183
|
* The markup fee that was charged for the withdrawal. This is in the same currency
|
|
@@ -209,7 +189,7 @@ export interface WithdrawalCreateResponse {
|
|
|
209
189
|
/**
|
|
210
190
|
* The payout token used for the withdrawal, if applicable.
|
|
211
191
|
*/
|
|
212
|
-
payout_token:
|
|
192
|
+
payout_token: Withdrawal.PayoutToken | null;
|
|
213
193
|
|
|
214
194
|
/**
|
|
215
195
|
* The speed of the withdrawal.
|
|
@@ -228,13 +208,13 @@ export interface WithdrawalCreateResponse {
|
|
|
228
208
|
trace_code: string | null;
|
|
229
209
|
}
|
|
230
210
|
|
|
231
|
-
export namespace
|
|
211
|
+
export namespace Withdrawal {
|
|
232
212
|
/**
|
|
233
213
|
* The ledger account associated with the withdrawal.
|
|
234
214
|
*/
|
|
235
215
|
export interface LedgerAccount {
|
|
236
216
|
/**
|
|
237
|
-
* The
|
|
217
|
+
* The unique identifier for the ledger account.
|
|
238
218
|
*/
|
|
239
219
|
id: string;
|
|
240
220
|
|
|
@@ -249,12 +229,12 @@ export namespace WithdrawalCreateResponse {
|
|
|
249
229
|
*/
|
|
250
230
|
export interface PayoutToken {
|
|
251
231
|
/**
|
|
252
|
-
* The
|
|
232
|
+
* The unique identifier for the payout token.
|
|
253
233
|
*/
|
|
254
234
|
id: string;
|
|
255
235
|
|
|
256
236
|
/**
|
|
257
|
-
* The
|
|
237
|
+
* The datetime the payout token was created.
|
|
258
238
|
*/
|
|
259
239
|
created_at: string;
|
|
260
240
|
|
|
@@ -278,201 +258,45 @@ export namespace WithdrawalCreateResponse {
|
|
|
278
258
|
}
|
|
279
259
|
|
|
280
260
|
/**
|
|
281
|
-
*
|
|
261
|
+
* The different fee types for a withdrawal.
|
|
282
262
|
*/
|
|
283
|
-
export
|
|
284
|
-
/**
|
|
285
|
-
* Internal ID of the withdrawal request.
|
|
286
|
-
*/
|
|
287
|
-
id: string;
|
|
288
|
-
|
|
289
|
-
/**
|
|
290
|
-
* How much money was attempted to be withdrawn, in a float type.
|
|
291
|
-
*/
|
|
292
|
-
amount: number;
|
|
293
|
-
|
|
294
|
-
/**
|
|
295
|
-
* When the withdrawal request was created.
|
|
296
|
-
*/
|
|
297
|
-
created_at: string;
|
|
298
|
-
|
|
299
|
-
/**
|
|
300
|
-
* The currency of the withdrawal request.
|
|
301
|
-
*/
|
|
302
|
-
currency: Shared.Currency;
|
|
303
|
-
|
|
304
|
-
/**
|
|
305
|
-
* The different error codes a payout can be in.
|
|
306
|
-
*/
|
|
307
|
-
error_code:
|
|
308
|
-
| 'account_closed'
|
|
309
|
-
| 'account_does_not_exist'
|
|
310
|
-
| 'account_information_invalid'
|
|
311
|
-
| 'account_number_invalid_region'
|
|
312
|
-
| 'account_frozen'
|
|
313
|
-
| 'account_lookup_failed'
|
|
314
|
-
| 'account_not_found'
|
|
315
|
-
| 'amount_out_of_bounds'
|
|
316
|
-
| 'attributes_not_validated'
|
|
317
|
-
| 'b2b_payments_prohibited'
|
|
318
|
-
| 'bank_statement_required'
|
|
319
|
-
| 'compliance_review'
|
|
320
|
-
| 'currency_not_supported'
|
|
321
|
-
| 'deposit_canceled'
|
|
322
|
-
| 'deposit_failed'
|
|
323
|
-
| 'deposit_rejected'
|
|
324
|
-
| 'destination_unavailable'
|
|
325
|
-
| 'exceeded_account_limit'
|
|
326
|
-
| 'expired_quote'
|
|
327
|
-
| 'generic_payout_error'
|
|
328
|
-
| 'technical_problem'
|
|
329
|
-
| 'identification_number_invalid'
|
|
330
|
-
| 'invalid_account_number'
|
|
331
|
-
| 'invalid_bank_code'
|
|
332
|
-
| 'invalid_beneficiary'
|
|
333
|
-
| 'invalid_mailing_address'
|
|
334
|
-
| 'invalid_branch_number'
|
|
335
|
-
| 'invalid_branch_code'
|
|
336
|
-
| 'invalid_phone_number'
|
|
337
|
-
| 'invalid_routing_number'
|
|
338
|
-
| 'invalid_swift_code'
|
|
339
|
-
| 'invalid_company_details'
|
|
340
|
-
| 'manual_cancelation'
|
|
341
|
-
| 'misc_error'
|
|
342
|
-
| 'missing_city_and_country'
|
|
343
|
-
| 'missing_phone_number'
|
|
344
|
-
| 'missing_remittance_info'
|
|
345
|
-
| 'payee_name_invalid'
|
|
346
|
-
| 'receiving_account_locked'
|
|
347
|
-
| 'rejected_by_compliance'
|
|
348
|
-
| 'rtp_not_supported'
|
|
349
|
-
| 'non_transaction_account'
|
|
350
|
-
| 'source_token_insufficient_funds'
|
|
351
|
-
| 'ssn_invalid'
|
|
352
|
-
| 'wallet_screenshot_required'
|
|
353
|
-
| 'unsupported_region'
|
|
354
|
-
| null;
|
|
355
|
-
|
|
356
|
-
/**
|
|
357
|
-
* The error message for the withdrawal, if any.
|
|
358
|
-
*/
|
|
359
|
-
error_message: string | null;
|
|
360
|
-
|
|
361
|
-
/**
|
|
362
|
-
* The estimated availability date for the withdrawal, if any.
|
|
363
|
-
*/
|
|
364
|
-
estimated_availability: string | null;
|
|
365
|
-
|
|
366
|
-
/**
|
|
367
|
-
* The fee amount that was charged for the withdrawal. This is in the same currency
|
|
368
|
-
* as the withdrawal amount.
|
|
369
|
-
*/
|
|
370
|
-
fee_amount: number;
|
|
371
|
-
|
|
372
|
-
/**
|
|
373
|
-
* The different fee types for a withdrawal.
|
|
374
|
-
*/
|
|
375
|
-
fee_type: WithdrawalFeeTypes | null;
|
|
376
|
-
|
|
377
|
-
/**
|
|
378
|
-
* The ledger account associated with the withdrawal.
|
|
379
|
-
*/
|
|
380
|
-
ledger_account: WithdrawalRetrieveResponse.LedgerAccount;
|
|
381
|
-
|
|
382
|
-
/**
|
|
383
|
-
* The markup fee that was charged for the withdrawal. This is in the same currency
|
|
384
|
-
* as the withdrawal amount. This only applies to platform accounts using Whop
|
|
385
|
-
* Rails.
|
|
386
|
-
*/
|
|
387
|
-
markup_fee: number;
|
|
388
|
-
|
|
389
|
-
/**
|
|
390
|
-
* The payout token used for the withdrawal, if applicable.
|
|
391
|
-
*/
|
|
392
|
-
payout_token: WithdrawalRetrieveResponse.PayoutToken | null;
|
|
393
|
-
|
|
394
|
-
/**
|
|
395
|
-
* The speed of the withdrawal.
|
|
396
|
-
*/
|
|
397
|
-
speed: WithdrawalSpeeds;
|
|
398
|
-
|
|
399
|
-
/**
|
|
400
|
-
* Status of the withdrawal.
|
|
401
|
-
*/
|
|
402
|
-
status: WithdrawalStatus;
|
|
403
|
-
|
|
404
|
-
/**
|
|
405
|
-
* The trace code for the payout, if applicable. Provided on ACH transactions when
|
|
406
|
-
* available.
|
|
407
|
-
*/
|
|
408
|
-
trace_code: string | null;
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
export namespace WithdrawalRetrieveResponse {
|
|
412
|
-
/**
|
|
413
|
-
* The ledger account associated with the withdrawal.
|
|
414
|
-
*/
|
|
415
|
-
export interface LedgerAccount {
|
|
416
|
-
/**
|
|
417
|
-
* The ID of the LedgerAccount.
|
|
418
|
-
*/
|
|
419
|
-
id: string;
|
|
420
|
-
|
|
421
|
-
/**
|
|
422
|
-
* The ID of the company associated with this ledger account.
|
|
423
|
-
*/
|
|
424
|
-
company_id: string | null;
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
/**
|
|
428
|
-
* The payout token used for the withdrawal, if applicable.
|
|
429
|
-
*/
|
|
430
|
-
export interface PayoutToken {
|
|
431
|
-
/**
|
|
432
|
-
* The ID of the payout token
|
|
433
|
-
*/
|
|
434
|
-
id: string;
|
|
435
|
-
|
|
436
|
-
/**
|
|
437
|
-
* The date and time the payout token was created
|
|
438
|
-
*/
|
|
439
|
-
created_at: string;
|
|
440
|
-
|
|
441
|
-
/**
|
|
442
|
-
* The currency code of the payout destination. This is the currency that payouts
|
|
443
|
-
* will be made in for this token.
|
|
444
|
-
*/
|
|
445
|
-
destination_currency_code: string;
|
|
263
|
+
export type WithdrawalFeeTypes = 'exclusive' | 'inclusive';
|
|
446
264
|
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
nickname: string | null;
|
|
265
|
+
/**
|
|
266
|
+
* The different speeds of withdrawals
|
|
267
|
+
*/
|
|
268
|
+
export type WithdrawalSpeeds = 'standard' | 'instant';
|
|
452
269
|
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
270
|
+
/**
|
|
271
|
+
* The status of a withdrawal request
|
|
272
|
+
*/
|
|
273
|
+
export type WithdrawalStatus =
|
|
274
|
+
| 'requested'
|
|
275
|
+
| 'awaiting_payment'
|
|
276
|
+
| 'in_transit'
|
|
277
|
+
| 'completed'
|
|
278
|
+
| 'failed'
|
|
279
|
+
| 'canceled'
|
|
280
|
+
| 'denied';
|
|
459
281
|
|
|
460
282
|
/**
|
|
461
|
-
* A withdrawal request
|
|
283
|
+
* A withdrawal represents a request to transfer funds from a company's ledger
|
|
284
|
+
* account to an external payout method.
|
|
462
285
|
*/
|
|
463
286
|
export interface WithdrawalListResponse {
|
|
464
287
|
/**
|
|
465
|
-
*
|
|
288
|
+
* The unique identifier for the withdrawal.
|
|
466
289
|
*/
|
|
467
290
|
id: string;
|
|
468
291
|
|
|
469
292
|
/**
|
|
470
|
-
*
|
|
293
|
+
* The withdrawal amount. Provided as a number in the specified currency. Eg:
|
|
294
|
+
* 100.00 for $100.00 USD.
|
|
471
295
|
*/
|
|
472
296
|
amount: number;
|
|
473
297
|
|
|
474
298
|
/**
|
|
475
|
-
*
|
|
299
|
+
* The datetime the withdrawal was created.
|
|
476
300
|
*/
|
|
477
301
|
created_at: string;
|
|
478
302
|
|
|
@@ -582,11 +406,10 @@ export interface WithdrawalListParams extends CursorPageParams {
|
|
|
582
406
|
|
|
583
407
|
export declare namespace Withdrawals {
|
|
584
408
|
export {
|
|
409
|
+
type Withdrawal as Withdrawal,
|
|
585
410
|
type WithdrawalFeeTypes as WithdrawalFeeTypes,
|
|
586
411
|
type WithdrawalSpeeds as WithdrawalSpeeds,
|
|
587
412
|
type WithdrawalStatus as WithdrawalStatus,
|
|
588
|
-
type WithdrawalCreateResponse as WithdrawalCreateResponse,
|
|
589
|
-
type WithdrawalRetrieveResponse as WithdrawalRetrieveResponse,
|
|
590
413
|
type WithdrawalListResponse as WithdrawalListResponse,
|
|
591
414
|
type WithdrawalListResponsesCursorPage as WithdrawalListResponsesCursorPage,
|
|
592
415
|
type WithdrawalCreateParams as WithdrawalCreateParams,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.0.
|
|
1
|
+
export const VERSION = '0.0.27'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.0.
|
|
1
|
+
export declare const VERSION = "0.0.27";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.0.
|
|
1
|
+
export declare const VERSION = "0.0.27";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.0.
|
|
1
|
+
export const VERSION = '0.0.27'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|