@whop/sdk 0.0.11 → 0.0.13
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 +31 -0
- package/client.d.mts +4 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +4 -4
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/checkout-configurations.d.mts +4 -0
- package/resources/checkout-configurations.d.mts.map +1 -1
- package/resources/checkout-configurations.d.ts +4 -0
- package/resources/checkout-configurations.d.ts.map +1 -1
- package/resources/companies.d.mts +47 -3
- package/resources/companies.d.mts.map +1 -1
- package/resources/companies.d.ts +47 -3
- package/resources/companies.d.ts.map +1 -1
- package/resources/companies.js +13 -1
- package/resources/companies.js.map +1 -1
- package/resources/companies.mjs +13 -1
- package/resources/companies.mjs.map +1 -1
- package/resources/index.d.mts +2 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/plans.d.mts +8 -0
- package/resources/plans.d.mts.map +1 -1
- package/resources/plans.d.ts +8 -0
- package/resources/plans.d.ts.map +1 -1
- package/resources/products.d.mts +1 -1
- package/resources/products.d.ts +1 -1
- package/resources/shared.d.mts +4 -0
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +4 -0
- package/resources/shared.d.ts.map +1 -1
- package/resources/webhooks.d.mts +269 -2
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +269 -2
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs.map +1 -1
- package/resources/withdrawals.d.mts +26 -34
- package/resources/withdrawals.d.mts.map +1 -1
- package/resources/withdrawals.d.ts +26 -34
- package/resources/withdrawals.d.ts.map +1 -1
- package/src/client.ts +6 -0
- package/src/resources/checkout-configurations.ts +5 -0
- package/src/resources/companies.ts +61 -2
- package/src/resources/index.ts +3 -0
- package/src/resources/plans.ts +10 -0
- package/src/resources/products.ts +1 -1
- package/src/resources/shared.ts +5 -0
- package/src/resources/webhooks.ts +417 -0
- package/src/resources/withdrawals.ts +76 -95
- 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
|
@@ -58,6 +58,18 @@ export interface WithdrawalRetrieveResponse {
|
|
|
58
58
|
* The currency of the withdrawal request.
|
|
59
59
|
*/
|
|
60
60
|
currency: Shared.Currency;
|
|
61
|
+
/**
|
|
62
|
+
* The different error codes a payout can be in.
|
|
63
|
+
*/
|
|
64
|
+
error_code: 'account_closed' | 'account_does_not_exist' | 'account_information_invalid' | 'account_number_invalid_region' | 'account_frozen' | 'account_lookup_failed' | 'account_not_found' | 'amount_out_of_bounds' | 'attributes_not_validated' | 'b2b_payments_prohibited' | 'bank_statement_required' | 'compliance_review' | 'currency_not_supported' | 'deposit_canceled' | 'deposit_failed' | 'deposit_rejected' | 'destination_unavailable' | 'exceeded_account_limit' | 'expired_quote' | 'generic_payout_error' | 'technical_problem' | 'identification_number_invalid' | 'invalid_account_number' | 'invalid_bank_code' | 'invalid_beneficiary' | 'invalid_branch_number' | 'invalid_branch_code' | 'invalid_phone_number' | 'invalid_routing_number' | 'invalid_swift_code' | 'invalid_company_details' | 'manual_cancelation' | 'misc_error' | 'missing_city_and_country' | 'missing_phone_number' | 'missing_remittance_info' | 'payee_name_invalid' | 'receiving_account_locked' | 'rejected_by_compliance' | 'rtp_not_supported' | 'non_transaction_account' | 'source_token_insufficient_funds' | 'ssn_invalid' | 'wallet_screenshot_required' | 'unsupported_region' | null;
|
|
65
|
+
/**
|
|
66
|
+
* The error message for the withdrawal, if any.
|
|
67
|
+
*/
|
|
68
|
+
error_message: string | null;
|
|
69
|
+
/**
|
|
70
|
+
* The estimated availability date for the withdrawal, if any.
|
|
71
|
+
*/
|
|
72
|
+
estimated_availability: string | null;
|
|
61
73
|
/**
|
|
62
74
|
* The fee amount that was charged for the withdrawal. This is in the same currency
|
|
63
75
|
* as the withdrawal amount.
|
|
@@ -68,9 +80,9 @@ export interface WithdrawalRetrieveResponse {
|
|
|
68
80
|
*/
|
|
69
81
|
fee_type: WithdrawalFeeTypes | null;
|
|
70
82
|
/**
|
|
71
|
-
* The
|
|
83
|
+
* The ledger account associated with the withdrawal.
|
|
72
84
|
*/
|
|
73
|
-
|
|
85
|
+
ledger_account: WithdrawalRetrieveResponse.LedgerAccount;
|
|
74
86
|
/**
|
|
75
87
|
* The payout token used for the withdrawal, if applicable.
|
|
76
88
|
*/
|
|
@@ -83,6 +95,11 @@ export interface WithdrawalRetrieveResponse {
|
|
|
83
95
|
* Status of the withdrawal.
|
|
84
96
|
*/
|
|
85
97
|
status: WithdrawalStatus;
|
|
98
|
+
/**
|
|
99
|
+
* The trace code for the payout, if applicable. Provided on ACH transactions when
|
|
100
|
+
* available.
|
|
101
|
+
*/
|
|
102
|
+
trace_code: string | null;
|
|
86
103
|
/**
|
|
87
104
|
* The type of withdrawal.
|
|
88
105
|
*/
|
|
@@ -90,42 +107,17 @@ export interface WithdrawalRetrieveResponse {
|
|
|
90
107
|
}
|
|
91
108
|
export declare namespace WithdrawalRetrieveResponse {
|
|
92
109
|
/**
|
|
93
|
-
* The
|
|
110
|
+
* The ledger account associated with the withdrawal.
|
|
94
111
|
*/
|
|
95
|
-
interface
|
|
112
|
+
interface LedgerAccount {
|
|
96
113
|
/**
|
|
97
|
-
* The
|
|
114
|
+
* The ID of the LedgerAccount.
|
|
98
115
|
*/
|
|
99
116
|
id: string;
|
|
100
117
|
/**
|
|
101
|
-
* The
|
|
102
|
-
*/
|
|
103
|
-
created_at: string;
|
|
104
|
-
/**
|
|
105
|
-
* The different error codes a payout can be in.
|
|
118
|
+
* The ID of the company associated with this ledger account.
|
|
106
119
|
*/
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* The error message for the payout.
|
|
110
|
-
*/
|
|
111
|
-
error_message: string | null;
|
|
112
|
-
/**
|
|
113
|
-
* The estimated availability date of the payout.
|
|
114
|
-
*/
|
|
115
|
-
estimated_availability: string | null;
|
|
116
|
-
/**
|
|
117
|
-
* The name of the payer for the payout.
|
|
118
|
-
*/
|
|
119
|
-
payer_name: string | null;
|
|
120
|
-
/**
|
|
121
|
-
* The status of the payout.
|
|
122
|
-
*/
|
|
123
|
-
status: 'scheduled' | 'pending' | 'processing' | 'completed' | 'canceled' | 'ready_for_pickup' | 'hold' | 'error' | 'expired';
|
|
124
|
-
/**
|
|
125
|
-
* The trace code for the payout, if applicable. Provided on ACH transactions when
|
|
126
|
-
* available.
|
|
127
|
-
*/
|
|
128
|
-
trace_code: string | null;
|
|
120
|
+
company_id: string | null;
|
|
129
121
|
}
|
|
130
122
|
/**
|
|
131
123
|
* The payout token used for the withdrawal, if applicable.
|
|
@@ -150,9 +142,9 @@ export declare namespace WithdrawalRetrieveResponse {
|
|
|
150
142
|
*/
|
|
151
143
|
nickname: string | null;
|
|
152
144
|
/**
|
|
153
|
-
* The
|
|
145
|
+
* The name of the payer associated with the payout token.
|
|
154
146
|
*/
|
|
155
|
-
|
|
147
|
+
payer_name: string | null;
|
|
156
148
|
}
|
|
157
149
|
}
|
|
158
150
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withdrawals.d.ts","sourceRoot":"","sources":["../src/resources/withdrawals.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;IAItF;;;;;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Params,
|
|
66
66
|
CompanyListResponse,
|
|
67
67
|
CompanyListResponsesCursorPage,
|
|
68
|
+
CompanyUpdateParams,
|
|
68
69
|
} from './resources/companies';
|
|
69
70
|
import {
|
|
70
71
|
CourseChapter,
|
|
@@ -323,6 +324,8 @@ import {
|
|
|
323
324
|
SetupIntentSucceededWebhookEvent,
|
|
324
325
|
UnwrapWebhookEvent,
|
|
325
326
|
Webhooks,
|
|
327
|
+
WithdrawalCreatedWebhookEvent,
|
|
328
|
+
WithdrawalUpdatedWebhookEvent,
|
|
326
329
|
} from './resources/webhooks';
|
|
327
330
|
import {
|
|
328
331
|
WithdrawalFeeTypes,
|
|
@@ -1183,6 +1186,7 @@ export declare namespace Whop {
|
|
|
1183
1186
|
type CompanyListResponse as CompanyListResponse,
|
|
1184
1187
|
type CompanyListResponsesCursorPage as CompanyListResponsesCursorPage,
|
|
1185
1188
|
type CompanyCreateParams as CompanyCreateParams,
|
|
1189
|
+
type CompanyUpdateParams as CompanyUpdateParams,
|
|
1186
1190
|
type CompanyListParams as CompanyListParams,
|
|
1187
1191
|
};
|
|
1188
1192
|
|
|
@@ -1201,6 +1205,8 @@ export declare namespace Whop {
|
|
|
1201
1205
|
type SetupIntentRequiresActionWebhookEvent as SetupIntentRequiresActionWebhookEvent,
|
|
1202
1206
|
type SetupIntentSucceededWebhookEvent as SetupIntentSucceededWebhookEvent,
|
|
1203
1207
|
type SetupIntentCanceledWebhookEvent as SetupIntentCanceledWebhookEvent,
|
|
1208
|
+
type WithdrawalCreatedWebhookEvent as WithdrawalCreatedWebhookEvent,
|
|
1209
|
+
type WithdrawalUpdatedWebhookEvent as WithdrawalUpdatedWebhookEvent,
|
|
1204
1210
|
type CourseLessonInteractionCompletedWebhookEvent as CourseLessonInteractionCompletedWebhookEvent,
|
|
1205
1211
|
type PaymentSucceededWebhookEvent as PaymentSucceededWebhookEvent,
|
|
1206
1212
|
type PaymentFailedWebhookEvent as PaymentFailedWebhookEvent,
|
|
@@ -344,6 +344,11 @@ export declare namespace CheckoutConfigurationCreateParams {
|
|
|
344
344
|
*/
|
|
345
345
|
renewal_price?: number | null;
|
|
346
346
|
|
|
347
|
+
/**
|
|
348
|
+
* The number of payments required before pausing the subscription.
|
|
349
|
+
*/
|
|
350
|
+
split_pay_required_payments?: number | null;
|
|
351
|
+
|
|
347
352
|
/**
|
|
348
353
|
* The title of the plan. This will be visible on the product page to customers.
|
|
349
354
|
*/
|
|
@@ -9,7 +9,7 @@ import { path } from '../internal/utils/path';
|
|
|
9
9
|
|
|
10
10
|
export class Companies extends APIResource {
|
|
11
11
|
/**
|
|
12
|
-
* Create a new
|
|
12
|
+
* Create a new connected account for your platform
|
|
13
13
|
*
|
|
14
14
|
* Required permissions:
|
|
15
15
|
*
|
|
@@ -31,6 +31,23 @@ export class Companies extends APIResource {
|
|
|
31
31
|
return this._client.get(path`/companies/${id}`, options);
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
+
/**
|
|
35
|
+
* Update an existing company. Either a regular company, platform company, or one
|
|
36
|
+
* of a platform's connected accounts
|
|
37
|
+
*
|
|
38
|
+
* Required permissions:
|
|
39
|
+
*
|
|
40
|
+
* - `company:update`
|
|
41
|
+
* - `company:basic:read`
|
|
42
|
+
*/
|
|
43
|
+
update(
|
|
44
|
+
id: string,
|
|
45
|
+
body: CompanyUpdateParams | null | undefined = {},
|
|
46
|
+
options?: RequestOptions,
|
|
47
|
+
): APIPromise<Shared.Company> {
|
|
48
|
+
return this._client.patch(path`/companies/${id}`, { body, ...options });
|
|
49
|
+
}
|
|
50
|
+
|
|
34
51
|
/**
|
|
35
52
|
* Lists companies the current user has access to
|
|
36
53
|
*
|
|
@@ -179,9 +196,50 @@ export interface CompanyCreateParams {
|
|
|
179
196
|
metadata?: { [key: string]: unknown } | null;
|
|
180
197
|
}
|
|
181
198
|
|
|
199
|
+
export interface CompanyUpdateParams {
|
|
200
|
+
/**
|
|
201
|
+
* The logo for the company in png, jpeg, or gif format
|
|
202
|
+
*/
|
|
203
|
+
logo?:
|
|
204
|
+
| CompanyUpdateParams.AttachmentInputWithDirectUploadID
|
|
205
|
+
| CompanyUpdateParams.AttachmentInputWithID
|
|
206
|
+
| null;
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* The title of the company
|
|
210
|
+
*/
|
|
211
|
+
title?: string | null;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
export namespace CompanyUpdateParams {
|
|
215
|
+
/**
|
|
216
|
+
* Input for an attachment
|
|
217
|
+
*/
|
|
218
|
+
export interface AttachmentInputWithDirectUploadID {
|
|
219
|
+
/**
|
|
220
|
+
* This ID should be used the first time you upload an attachment. It is the ID of
|
|
221
|
+
* the direct upload that was created when uploading the file to S3 via the
|
|
222
|
+
* mediaDirectUpload mutation.
|
|
223
|
+
*/
|
|
224
|
+
direct_upload_id: string;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Input for an attachment
|
|
229
|
+
*/
|
|
230
|
+
export interface AttachmentInputWithID {
|
|
231
|
+
/**
|
|
232
|
+
* The ID of an existing attachment object. Use this when updating a resource and
|
|
233
|
+
* keeping a subset of the attachments. Don't use this unless you know what you're
|
|
234
|
+
* doing.
|
|
235
|
+
*/
|
|
236
|
+
id: string;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
|
|
182
240
|
export interface CompanyListParams extends CursorPageParams {
|
|
183
241
|
/**
|
|
184
|
-
* The ID of the parent company to list
|
|
242
|
+
* The ID of the parent company to list connected accounts for
|
|
185
243
|
*/
|
|
186
244
|
parent_company_id: string;
|
|
187
245
|
|
|
@@ -221,6 +279,7 @@ export declare namespace Companies {
|
|
|
221
279
|
type CompanyListResponse as CompanyListResponse,
|
|
222
280
|
type CompanyListResponsesCursorPage as CompanyListResponsesCursorPage,
|
|
223
281
|
type CompanyCreateParams as CompanyCreateParams,
|
|
282
|
+
type CompanyUpdateParams as CompanyUpdateParams,
|
|
224
283
|
type CompanyListParams as CompanyListParams,
|
|
225
284
|
};
|
|
226
285
|
}
|
package/src/resources/index.ts
CHANGED
|
@@ -45,6 +45,7 @@ export {
|
|
|
45
45
|
Companies,
|
|
46
46
|
type CompanyListResponse,
|
|
47
47
|
type CompanyCreateParams,
|
|
48
|
+
type CompanyUpdateParams,
|
|
48
49
|
type CompanyListParams,
|
|
49
50
|
type CompanyListResponsesCursorPage,
|
|
50
51
|
} from './companies';
|
|
@@ -301,6 +302,8 @@ export {
|
|
|
301
302
|
type SetupIntentRequiresActionWebhookEvent,
|
|
302
303
|
type SetupIntentSucceededWebhookEvent,
|
|
303
304
|
type SetupIntentCanceledWebhookEvent,
|
|
305
|
+
type WithdrawalCreatedWebhookEvent,
|
|
306
|
+
type WithdrawalUpdatedWebhookEvent,
|
|
304
307
|
type CourseLessonInteractionCompletedWebhookEvent,
|
|
305
308
|
type PaymentSucceededWebhookEvent,
|
|
306
309
|
type PaymentFailedWebhookEvent,
|
package/src/resources/plans.ts
CHANGED
|
@@ -208,6 +208,11 @@ export interface PlanListResponse {
|
|
|
208
208
|
*/
|
|
209
209
|
renewal_price: number;
|
|
210
210
|
|
|
211
|
+
/**
|
|
212
|
+
* The number of payments required before pausing the subscription.
|
|
213
|
+
*/
|
|
214
|
+
split_pay_required_payments: number | null;
|
|
215
|
+
|
|
211
216
|
/**
|
|
212
217
|
* The number of units available for purchase. Only displayed to authorized actors
|
|
213
218
|
*/
|
|
@@ -393,6 +398,11 @@ export interface PlanCreateParams {
|
|
|
393
398
|
*/
|
|
394
399
|
renewal_price?: number | null;
|
|
395
400
|
|
|
401
|
+
/**
|
|
402
|
+
* The number of payments required before pausing the subscription.
|
|
403
|
+
*/
|
|
404
|
+
split_pay_required_payments?: number | null;
|
|
405
|
+
|
|
396
406
|
/**
|
|
397
407
|
* The number of units available for purchase.
|
|
398
408
|
*/
|
package/src/resources/shared.ts
CHANGED
|
@@ -2588,6 +2588,11 @@ export interface Plan {
|
|
|
2588
2588
|
*/
|
|
2589
2589
|
renewal_price: number;
|
|
2590
2590
|
|
|
2591
|
+
/**
|
|
2592
|
+
* The number of payments required before pausing the subscription.
|
|
2593
|
+
*/
|
|
2594
|
+
split_pay_required_payments: number | null;
|
|
2595
|
+
|
|
2591
2596
|
/**
|
|
2592
2597
|
* The number of units available for purchase. Only displayed to authorized actors
|
|
2593
2598
|
*/
|