@whop/sdk 0.0.21 → 0.0.22
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 +9 -0
- package/client.d.mts +11 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +11 -2
- package/client.d.ts.map +1 -1
- package/client.js +9 -0
- package/client.js.map +1 -1
- package/client.mjs +9 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.mts +4 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -1
- package/resources/leads.d.mts +489 -0
- package/resources/leads.d.mts.map +1 -0
- package/resources/leads.d.ts +489 -0
- package/resources/leads.d.ts.map +1 -0
- package/resources/leads.js +94 -0
- package/resources/leads.js.map +1 -0
- package/resources/leads.mjs +90 -0
- package/resources/leads.mjs.map +1 -0
- package/resources/ledger-accounts.d.mts +25 -0
- package/resources/ledger-accounts.d.mts.map +1 -1
- package/resources/ledger-accounts.d.ts +25 -0
- package/resources/ledger-accounts.d.ts.map +1 -1
- package/resources/payout-methods.d.mts +69 -1
- package/resources/payout-methods.d.mts.map +1 -1
- package/resources/payout-methods.d.ts +69 -1
- package/resources/payout-methods.d.ts.map +1 -1
- package/resources/payout-methods.js +11 -0
- package/resources/payout-methods.js.map +1 -1
- package/resources/payout-methods.mjs +11 -0
- package/resources/payout-methods.mjs.map +1 -1
- package/resources/topups.d.mts +79 -0
- package/resources/topups.d.mts.map +1 -0
- package/resources/topups.d.ts +79 -0
- package/resources/topups.d.ts.map +1 -0
- package/resources/topups.js +29 -0
- package/resources/topups.js.map +1 -0
- package/resources/topups.mjs +25 -0
- package/resources/topups.mjs.map +1 -0
- package/resources/verifications.d.mts +38 -0
- package/resources/verifications.d.mts.map +1 -0
- package/resources/verifications.d.ts +38 -0
- package/resources/verifications.d.ts.map +1 -0
- package/resources/verifications.js +20 -0
- package/resources/verifications.js.map +1 -0
- package/resources/verifications.mjs +16 -0
- package/resources/verifications.mjs.map +1 -0
- package/src/client.ts +44 -0
- package/src/resources/index.ts +14 -0
- package/src/resources/leads.ts +583 -0
- package/src/resources/ledger-accounts.ts +63 -0
- package/src/resources/payout-methods.ts +83 -0
- package/src/resources/topups.ts +95 -0
- package/src/resources/verifications.ts +81 -0
- 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
|
@@ -138,6 +138,10 @@ export declare namespace LedgerAccountRetrieveResponse {
|
|
|
138
138
|
* The email address of the representative
|
|
139
139
|
*/
|
|
140
140
|
email: string | null;
|
|
141
|
+
/**
|
|
142
|
+
* The latest verification for the connected account.
|
|
143
|
+
*/
|
|
144
|
+
latest_verification: PayoutAccountDetails.LatestVerification | null;
|
|
141
145
|
/**
|
|
142
146
|
* The business representative's phone
|
|
143
147
|
*/
|
|
@@ -195,6 +199,27 @@ export declare namespace LedgerAccountRetrieveResponse {
|
|
|
195
199
|
*/
|
|
196
200
|
middle_name: string | null;
|
|
197
201
|
}
|
|
202
|
+
/**
|
|
203
|
+
* The latest verification for the connected account.
|
|
204
|
+
*/
|
|
205
|
+
interface LatestVerification {
|
|
206
|
+
/**
|
|
207
|
+
* A unique identifier for the verification.
|
|
208
|
+
*/
|
|
209
|
+
id: string;
|
|
210
|
+
/**
|
|
211
|
+
* An error code for a verification attempt.
|
|
212
|
+
*/
|
|
213
|
+
last_error_code: 'abandoned' | 'consent_declined' | 'country_not_supported' | 'device_not_supported' | 'document_expired' | 'document_type_not_supported' | 'document_unverified_other' | 'email_unverified_other' | 'email_verification_declined' | 'id_number_insufficient_document_data' | 'id_number_mismatch' | 'id_number_unverified_other' | 'phone_unverified_other' | 'phone_verification_declined' | 'selfie_document_missing_photo' | 'selfie_face_mismatch' | 'selfie_manipulated' | 'selfie_unverified_other' | 'under_supported_age' | null;
|
|
214
|
+
/**
|
|
215
|
+
* The last error reason that occurred during the verification.
|
|
216
|
+
*/
|
|
217
|
+
last_error_reason: string | null;
|
|
218
|
+
/**
|
|
219
|
+
* The status of the verification.
|
|
220
|
+
*/
|
|
221
|
+
status: 'requires_input' | 'processing' | 'verified' | 'canceled' | 'created' | 'started' | 'submitted' | 'approved' | 'declined' | 'resubmission_requested' | 'expired' | 'abandoned' | 'review';
|
|
222
|
+
}
|
|
198
223
|
}
|
|
199
224
|
}
|
|
200
225
|
export declare namespace LedgerAccounts {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ledger-accounts.d.mts","sourceRoot":"","sources":["../src/resources/ledger-accounts.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,6BAA6B,CAAC;CAG1F;AAED;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,6BAA6B,CAAC,OAAO,CAAC,CAAC;IAEvD;;OAEG;IACH,2BAA2B,EACvB,SAAS,GACT,mBAAmB,GACnB,UAAU,GACV,kBAAkB,GAClB,WAAW,GACX,SAAS,GACT,UAAU,GACV,4BAA4B,GAC5B,uBAAuB,GACvB,oCAAoC,GACpC,oBAAoB,GACpB,uBAAuB,GACvB,IAAI,CAAC;IAET;;OAEG;IACH,WAAW,EAAE,SAAS,GAAG,MAAM,CAAC;IAEhC;;OAEG;IACH,KAAK,EAAE,6BAA6B,CAAC,IAAI,GAAG,IAAI,GAAG,6BAA6B,CAAC,OAAO,GAAG,IAAI,CA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GAAG,IAAI,CAAC;SAC5B;QAED;;WAEG;QACH,UAAiB,kBAAkB;YACjC;;eAEG;YACH,EAAE,EAAE,MAAM,CAAC;YAEX;;eAEG;YACH,eAAe,EACX,WAAW,GACX,kBAAkB,GAClB,uBAAuB,GACvB,sBAAsB,GACtB,kBAAkB,GAClB,6BAA6B,GAC7B,2BAA2B,GAC3B,wBAAwB,GACxB,6BAA6B,GAC7B,sCAAsC,GACtC,oBAAoB,GACpB,4BAA4B,GAC5B,wBAAwB,GACxB,6BAA6B,GAC7B,+BAA+B,GAC/B,sBAAsB,GACtB,oBAAoB,GACpB,yBAAyB,GACzB,qBAAqB,GACrB,IAAI,CAAC;YAET;;eAEG;YACH,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;YAEjC;;eAEG;YACH,MAAM,EACF,gBAAgB,GAChB,YAAY,GACZ,UAAU,GACV,UAAU,GACV,SAAS,GACT,SAAS,GACT,WAAW,GACX,UAAU,GACV,UAAU,GACV,wBAAwB,GACxB,SAAS,GACT,WAAW,GACX,QAAQ,CAAC;SACd;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EAAE,KAAK,6BAA6B,IAAI,6BAA6B,EAAE,CAAC;CAChF"}
|
|
@@ -138,6 +138,10 @@ export declare namespace LedgerAccountRetrieveResponse {
|
|
|
138
138
|
* The email address of the representative
|
|
139
139
|
*/
|
|
140
140
|
email: string | null;
|
|
141
|
+
/**
|
|
142
|
+
* The latest verification for the connected account.
|
|
143
|
+
*/
|
|
144
|
+
latest_verification: PayoutAccountDetails.LatestVerification | null;
|
|
141
145
|
/**
|
|
142
146
|
* The business representative's phone
|
|
143
147
|
*/
|
|
@@ -195,6 +199,27 @@ export declare namespace LedgerAccountRetrieveResponse {
|
|
|
195
199
|
*/
|
|
196
200
|
middle_name: string | null;
|
|
197
201
|
}
|
|
202
|
+
/**
|
|
203
|
+
* The latest verification for the connected account.
|
|
204
|
+
*/
|
|
205
|
+
interface LatestVerification {
|
|
206
|
+
/**
|
|
207
|
+
* A unique identifier for the verification.
|
|
208
|
+
*/
|
|
209
|
+
id: string;
|
|
210
|
+
/**
|
|
211
|
+
* An error code for a verification attempt.
|
|
212
|
+
*/
|
|
213
|
+
last_error_code: 'abandoned' | 'consent_declined' | 'country_not_supported' | 'device_not_supported' | 'document_expired' | 'document_type_not_supported' | 'document_unverified_other' | 'email_unverified_other' | 'email_verification_declined' | 'id_number_insufficient_document_data' | 'id_number_mismatch' | 'id_number_unverified_other' | 'phone_unverified_other' | 'phone_verification_declined' | 'selfie_document_missing_photo' | 'selfie_face_mismatch' | 'selfie_manipulated' | 'selfie_unverified_other' | 'under_supported_age' | null;
|
|
214
|
+
/**
|
|
215
|
+
* The last error reason that occurred during the verification.
|
|
216
|
+
*/
|
|
217
|
+
last_error_reason: string | null;
|
|
218
|
+
/**
|
|
219
|
+
* The status of the verification.
|
|
220
|
+
*/
|
|
221
|
+
status: 'requires_input' | 'processing' | 'verified' | 'canceled' | 'created' | 'started' | 'submitted' | 'approved' | 'declined' | 'resubmission_requested' | 'expired' | 'abandoned' | 'review';
|
|
222
|
+
}
|
|
198
223
|
}
|
|
199
224
|
}
|
|
200
225
|
export declare namespace LedgerAccounts {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ledger-accounts.d.ts","sourceRoot":"","sources":["../src/resources/ledger-accounts.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,6BAA6B,CAAC;CAG1F;AAED;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,QAAQ,E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ource } from "../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
2
3
|
import { CursorPage, type CursorPageParams, PagePromise } from "../core/pagination.mjs";
|
|
3
4
|
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
5
|
export declare class PayoutMethods extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Retrieves a payout method by ID
|
|
8
|
+
*
|
|
9
|
+
* Required permissions:
|
|
10
|
+
*
|
|
11
|
+
* - `payout:destination:read`
|
|
12
|
+
*/
|
|
13
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<PayoutMethodRetrieveResponse>;
|
|
5
14
|
/**
|
|
6
15
|
* Lists payout destinations for a company
|
|
7
16
|
*
|
|
@@ -12,6 +21,65 @@ export declare class PayoutMethods extends APIResource {
|
|
|
12
21
|
list(query: PayoutMethodListParams, options?: RequestOptions): PagePromise<PayoutMethodListResponsesCursorPage, PayoutMethodListResponse>;
|
|
13
22
|
}
|
|
14
23
|
export type PayoutMethodListResponsesCursorPage = CursorPage<PayoutMethodListResponse>;
|
|
24
|
+
/**
|
|
25
|
+
* An object representing an user's setup payout destination.
|
|
26
|
+
*/
|
|
27
|
+
export interface PayoutMethodRetrieveResponse {
|
|
28
|
+
/**
|
|
29
|
+
* The ID of the payout token
|
|
30
|
+
*/
|
|
31
|
+
id: string;
|
|
32
|
+
/**
|
|
33
|
+
* The company associated with the payout token
|
|
34
|
+
*/
|
|
35
|
+
company: PayoutMethodRetrieveResponse.Company | null;
|
|
36
|
+
/**
|
|
37
|
+
* The currency code of the payout destination. This is the currency that payouts
|
|
38
|
+
* will be made in for this token.
|
|
39
|
+
*/
|
|
40
|
+
currency: string;
|
|
41
|
+
/**
|
|
42
|
+
* The payout destination associated with the payout token
|
|
43
|
+
*/
|
|
44
|
+
destination: PayoutMethodRetrieveResponse.Destination | null;
|
|
45
|
+
/**
|
|
46
|
+
* Whether this payout token is the default for the payout account
|
|
47
|
+
*/
|
|
48
|
+
is_default: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* An optional nickname for the payout token to help the user identify it. This is
|
|
51
|
+
* not used by the provider and is only for the user's reference.
|
|
52
|
+
*/
|
|
53
|
+
nickname: string | null;
|
|
54
|
+
}
|
|
55
|
+
export declare namespace PayoutMethodRetrieveResponse {
|
|
56
|
+
/**
|
|
57
|
+
* The company associated with the payout token
|
|
58
|
+
*/
|
|
59
|
+
interface Company {
|
|
60
|
+
/**
|
|
61
|
+
* The ID (tag) of the company.
|
|
62
|
+
*/
|
|
63
|
+
id: string;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* The payout destination associated with the payout token
|
|
67
|
+
*/
|
|
68
|
+
interface Destination {
|
|
69
|
+
/**
|
|
70
|
+
* The category of the payout destination
|
|
71
|
+
*/
|
|
72
|
+
category: 'crypto' | 'rtp' | 'next_day_bank' | 'bank_wire' | 'digital_wallet' | 'unknown';
|
|
73
|
+
/**
|
|
74
|
+
* The country code of the payout destination
|
|
75
|
+
*/
|
|
76
|
+
country_code: string;
|
|
77
|
+
/**
|
|
78
|
+
* The name of the payer associated with the payout destination
|
|
79
|
+
*/
|
|
80
|
+
name: string;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
15
83
|
/**
|
|
16
84
|
* An object representing an user's setup payout destination.
|
|
17
85
|
*/
|
|
@@ -90,6 +158,6 @@ export interface PayoutMethodListParams extends CursorPageParams {
|
|
|
90
158
|
last?: number | null;
|
|
91
159
|
}
|
|
92
160
|
export declare namespace PayoutMethods {
|
|
93
|
-
export { type PayoutMethodListResponse as PayoutMethodListResponse, type PayoutMethodListResponsesCursorPage as PayoutMethodListResponsesCursorPage, type PayoutMethodListParams as PayoutMethodListParams, };
|
|
161
|
+
export { type PayoutMethodRetrieveResponse as PayoutMethodRetrieveResponse, type PayoutMethodListResponse as PayoutMethodListResponse, type PayoutMethodListResponsesCursorPage as PayoutMethodListResponsesCursorPage, type PayoutMethodListParams as PayoutMethodListParams, };
|
|
94
162
|
}
|
|
95
163
|
//# sourceMappingURL=payout-methods.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payout-methods.d.mts","sourceRoot":"","sources":["../src/resources/payout-methods.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;
|
|
1
|
+
{"version":3,"file":"payout-methods.d.mts","sourceRoot":"","sources":["../src/resources/payout-methods.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,4BAA4B,CAAC;IAIxF;;;;;;OAMG;IACH,IAAI,CACF,KAAK,EAAE,sBAAsB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,mCAAmC,EAAE,wBAAwB,CAAC;CAM9E;AAED,MAAM,MAAM,mCAAmC,GAAG,UAAU,CAAC,wBAAwB,CAAC,CAAC;AAEvF;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,OAAO,EAAE,4BAA4B,CAAC,OAAO,GAAG,IAAI,CAAC;IAErD;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,WAAW,EAAE,4BAA4B,CAAC,WAAW,GAAG,IAAI,CAAC;IAE7D;;OAEG;IACH,UAAU,EAAE,OAAO,CAAC;IAEpB;;;OAGG;IACH,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB;AAED,yBAAiB,4BAA4B,CAAC;IAC5C;;OAEG;IACH,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IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
2
3
|
import { CursorPage, type CursorPageParams, PagePromise } from "../core/pagination.js";
|
|
3
4
|
import { RequestOptions } from "../internal/request-options.js";
|
|
4
5
|
export declare class PayoutMethods extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Retrieves a payout method by ID
|
|
8
|
+
*
|
|
9
|
+
* Required permissions:
|
|
10
|
+
*
|
|
11
|
+
* - `payout:destination:read`
|
|
12
|
+
*/
|
|
13
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<PayoutMethodRetrieveResponse>;
|
|
5
14
|
/**
|
|
6
15
|
* Lists payout destinations for a company
|
|
7
16
|
*
|
|
@@ -12,6 +21,65 @@ export declare class PayoutMethods extends APIResource {
|
|
|
12
21
|
list(query: PayoutMethodListParams, options?: RequestOptions): PagePromise<PayoutMethodListResponsesCursorPage, PayoutMethodListResponse>;
|
|
13
22
|
}
|
|
14
23
|
export type PayoutMethodListResponsesCursorPage = CursorPage<PayoutMethodListResponse>;
|
|
24
|
+
/**
|
|
25
|
+
* An object representing an user's setup payout destination.
|
|
26
|
+
*/
|
|
27
|
+
export interface PayoutMethodRetrieveResponse {
|
|
28
|
+
/**
|
|
29
|
+
* The ID of the payout token
|
|
30
|
+
*/
|
|
31
|
+
id: string;
|
|
32
|
+
/**
|
|
33
|
+
* The company associated with the payout token
|
|
34
|
+
*/
|
|
35
|
+
company: PayoutMethodRetrieveResponse.Company | null;
|
|
36
|
+
/**
|
|
37
|
+
* The currency code of the payout destination. This is the currency that payouts
|
|
38
|
+
* will be made in for this token.
|
|
39
|
+
*/
|
|
40
|
+
currency: string;
|
|
41
|
+
/**
|
|
42
|
+
* The payout destination associated with the payout token
|
|
43
|
+
*/
|
|
44
|
+
destination: PayoutMethodRetrieveResponse.Destination | null;
|
|
45
|
+
/**
|
|
46
|
+
* Whether this payout token is the default for the payout account
|
|
47
|
+
*/
|
|
48
|
+
is_default: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* An optional nickname for the payout token to help the user identify it. This is
|
|
51
|
+
* not used by the provider and is only for the user's reference.
|
|
52
|
+
*/
|
|
53
|
+
nickname: string | null;
|
|
54
|
+
}
|
|
55
|
+
export declare namespace PayoutMethodRetrieveResponse {
|
|
56
|
+
/**
|
|
57
|
+
* The company associated with the payout token
|
|
58
|
+
*/
|
|
59
|
+
interface Company {
|
|
60
|
+
/**
|
|
61
|
+
* The ID (tag) of the company.
|
|
62
|
+
*/
|
|
63
|
+
id: string;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* The payout destination associated with the payout token
|
|
67
|
+
*/
|
|
68
|
+
interface Destination {
|
|
69
|
+
/**
|
|
70
|
+
* The category of the payout destination
|
|
71
|
+
*/
|
|
72
|
+
category: 'crypto' | 'rtp' | 'next_day_bank' | 'bank_wire' | 'digital_wallet' | 'unknown';
|
|
73
|
+
/**
|
|
74
|
+
* The country code of the payout destination
|
|
75
|
+
*/
|
|
76
|
+
country_code: string;
|
|
77
|
+
/**
|
|
78
|
+
* The name of the payer associated with the payout destination
|
|
79
|
+
*/
|
|
80
|
+
name: string;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
15
83
|
/**
|
|
16
84
|
* An object representing an user's setup payout destination.
|
|
17
85
|
*/
|
|
@@ -90,6 +158,6 @@ export interface PayoutMethodListParams extends CursorPageParams {
|
|
|
90
158
|
last?: number | null;
|
|
91
159
|
}
|
|
92
160
|
export declare namespace PayoutMethods {
|
|
93
|
-
export { type PayoutMethodListResponse as PayoutMethodListResponse, type PayoutMethodListResponsesCursorPage as PayoutMethodListResponsesCursorPage, type PayoutMethodListParams as PayoutMethodListParams, };
|
|
161
|
+
export { type PayoutMethodRetrieveResponse as PayoutMethodRetrieveResponse, type PayoutMethodListResponse as PayoutMethodListResponse, type PayoutMethodListResponsesCursorPage as PayoutMethodListResponsesCursorPage, type PayoutMethodListParams as PayoutMethodListParams, };
|
|
94
162
|
}
|
|
95
163
|
//# sourceMappingURL=payout-methods.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payout-methods.d.ts","sourceRoot":"","sources":["../src/resources/payout-methods.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;
|
|
1
|
+
{"version":3,"file":"payout-methods.d.ts","sourceRoot":"","sources":["../src/resources/payout-methods.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,4BAA4B,CAAC;IAIxF;;;;;;OAMG;IACH,IAAI,CACF,KAAK,EAAE,sBAAsB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,mCAAmC,EAAE,wBAAwB,CAAC;CAM9E;AAED,MAAM,MAAM,mCAAmC,GAAG,UAAU,CAAC,wBAAwB,CAAC,CAAC;AAEvF;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,OAAO,EAAE,4BAA4B,CAA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AAE,MAAM,CAAC;QAErB;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;KACd;CACF;AAED,MAAM,WAAW,sBAAuB,SAAQ,gBAAgB;IAC9D;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -4,7 +4,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.PayoutMethods = void 0;
|
|
5
5
|
const resource_1 = require("../core/resource.js");
|
|
6
6
|
const pagination_1 = require("../core/pagination.js");
|
|
7
|
+
const path_1 = require("../internal/utils/path.js");
|
|
7
8
|
class PayoutMethods extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Retrieves a payout method by ID
|
|
11
|
+
*
|
|
12
|
+
* Required permissions:
|
|
13
|
+
*
|
|
14
|
+
* - `payout:destination:read`
|
|
15
|
+
*/
|
|
16
|
+
retrieve(id, options) {
|
|
17
|
+
return this._client.get((0, path_1.path) `/payout_methods/${id}`, options);
|
|
18
|
+
}
|
|
8
19
|
/**
|
|
9
20
|
* Lists payout destinations for a company
|
|
10
21
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payout-methods.js","sourceRoot":"","sources":["../src/resources/payout-methods.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;
|
|
1
|
+
{"version":3,"file":"payout-methods.js","sourceRoot":"","sources":["../src/resources/payout-methods.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAAoF;AAEpF,oDAA8C;AAE9C,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;;;;;OAMG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,mBAAmB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;IAED;;;;;;OAMG;IACH,IAAI,CACF,KAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,iBAAiB,EAAE,CAAA,uBAAoC,CAAA,EAAE;YACtF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AA5BD,sCA4BC"}
|
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../core/resource.mjs";
|
|
3
3
|
import { CursorPage } from "../core/pagination.mjs";
|
|
4
|
+
import { path } from "../internal/utils/path.mjs";
|
|
4
5
|
export class PayoutMethods extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Retrieves a payout method by ID
|
|
8
|
+
*
|
|
9
|
+
* Required permissions:
|
|
10
|
+
*
|
|
11
|
+
* - `payout:destination:read`
|
|
12
|
+
*/
|
|
13
|
+
retrieve(id, options) {
|
|
14
|
+
return this._client.get(path `/payout_methods/${id}`, options);
|
|
15
|
+
}
|
|
5
16
|
/**
|
|
6
17
|
* Lists payout destinations for a company
|
|
7
18
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payout-methods.mjs","sourceRoot":"","sources":["../src/resources/payout-methods.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"payout-methods.mjs","sourceRoot":"","sources":["../src/resources/payout-methods.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,UAAU,EAAsC;OAElD,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;;;;;OAMG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,mBAAmB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;IAED;;;;;;OAMG;IACH,IAAI,CACF,KAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,iBAAiB,EAAE,CAAA,UAAoC,CAAA,EAAE;YACtF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import * as Shared from "./shared.mjs";
|
|
3
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
5
|
+
export declare class Topups extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Add funds to your platform balance by charging a stored payment method.
|
|
8
|
+
*
|
|
9
|
+
* Required permissions:
|
|
10
|
+
*
|
|
11
|
+
* - `payment:charge`
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const topup = await client.topups.create({
|
|
16
|
+
* amount: 6.9,
|
|
17
|
+
* company_id: 'biz_xxxxxxxxxxxxxx',
|
|
18
|
+
* currency: 'usd',
|
|
19
|
+
* payment_method_id: 'pmt_xxxxxxxxxxxxxx',
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
create(body: TopupCreateParams, options?: RequestOptions): APIPromise<TopupCreateResponse>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* An object representing a receipt for a membership.
|
|
27
|
+
*/
|
|
28
|
+
export interface TopupCreateResponse {
|
|
29
|
+
/**
|
|
30
|
+
* The payment ID
|
|
31
|
+
*/
|
|
32
|
+
id: string;
|
|
33
|
+
/**
|
|
34
|
+
* The datetime the payment was created
|
|
35
|
+
*/
|
|
36
|
+
created_at: string;
|
|
37
|
+
/**
|
|
38
|
+
* The available currencies on the platform
|
|
39
|
+
*/
|
|
40
|
+
currency: Shared.Currency | null;
|
|
41
|
+
/**
|
|
42
|
+
* If the payment failed, the reason for the failure.
|
|
43
|
+
*/
|
|
44
|
+
failure_message: string | null;
|
|
45
|
+
/**
|
|
46
|
+
* The datetime the payment was paid
|
|
47
|
+
*/
|
|
48
|
+
paid_at: string | null;
|
|
49
|
+
/**
|
|
50
|
+
* The status of a receipt
|
|
51
|
+
*/
|
|
52
|
+
status: Shared.ReceiptStatus | null;
|
|
53
|
+
/**
|
|
54
|
+
* The total to show to the creator (excluding buyer fees).
|
|
55
|
+
*/
|
|
56
|
+
total: number | null;
|
|
57
|
+
}
|
|
58
|
+
export interface TopupCreateParams {
|
|
59
|
+
/**
|
|
60
|
+
* The amount to add to the balance.
|
|
61
|
+
*/
|
|
62
|
+
amount: number;
|
|
63
|
+
/**
|
|
64
|
+
* The ID of the company to add funds to.
|
|
65
|
+
*/
|
|
66
|
+
company_id: string;
|
|
67
|
+
/**
|
|
68
|
+
* The currency of the top-up.
|
|
69
|
+
*/
|
|
70
|
+
currency: Shared.Currency;
|
|
71
|
+
/**
|
|
72
|
+
* The ID of the payment method to charge for the top-up.
|
|
73
|
+
*/
|
|
74
|
+
payment_method_id: string;
|
|
75
|
+
}
|
|
76
|
+
export declare namespace Topups {
|
|
77
|
+
export { type TopupCreateResponse as TopupCreateResponse, type TopupCreateParams as TopupCreateParams };
|
|
78
|
+
}
|
|
79
|
+
//# sourceMappingURL=topups.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"topups.d.mts","sourceRoot":"","sources":["../src/resources/topups.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;CAG3F;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC,QAAQ,GAAG,IAAI,CAAC;IAEjC;;OAEG;IACH,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B;;OAEG;IACH,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,aAAa,GAAG,IAAI,CAAC;IAEpC;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC;IAE1B;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CACzG"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import * as Shared from "./shared.js";
|
|
3
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
5
|
+
export declare class Topups extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Add funds to your platform balance by charging a stored payment method.
|
|
8
|
+
*
|
|
9
|
+
* Required permissions:
|
|
10
|
+
*
|
|
11
|
+
* - `payment:charge`
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const topup = await client.topups.create({
|
|
16
|
+
* amount: 6.9,
|
|
17
|
+
* company_id: 'biz_xxxxxxxxxxxxxx',
|
|
18
|
+
* currency: 'usd',
|
|
19
|
+
* payment_method_id: 'pmt_xxxxxxxxxxxxxx',
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
create(body: TopupCreateParams, options?: RequestOptions): APIPromise<TopupCreateResponse>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* An object representing a receipt for a membership.
|
|
27
|
+
*/
|
|
28
|
+
export interface TopupCreateResponse {
|
|
29
|
+
/**
|
|
30
|
+
* The payment ID
|
|
31
|
+
*/
|
|
32
|
+
id: string;
|
|
33
|
+
/**
|
|
34
|
+
* The datetime the payment was created
|
|
35
|
+
*/
|
|
36
|
+
created_at: string;
|
|
37
|
+
/**
|
|
38
|
+
* The available currencies on the platform
|
|
39
|
+
*/
|
|
40
|
+
currency: Shared.Currency | null;
|
|
41
|
+
/**
|
|
42
|
+
* If the payment failed, the reason for the failure.
|
|
43
|
+
*/
|
|
44
|
+
failure_message: string | null;
|
|
45
|
+
/**
|
|
46
|
+
* The datetime the payment was paid
|
|
47
|
+
*/
|
|
48
|
+
paid_at: string | null;
|
|
49
|
+
/**
|
|
50
|
+
* The status of a receipt
|
|
51
|
+
*/
|
|
52
|
+
status: Shared.ReceiptStatus | null;
|
|
53
|
+
/**
|
|
54
|
+
* The total to show to the creator (excluding buyer fees).
|
|
55
|
+
*/
|
|
56
|
+
total: number | null;
|
|
57
|
+
}
|
|
58
|
+
export interface TopupCreateParams {
|
|
59
|
+
/**
|
|
60
|
+
* The amount to add to the balance.
|
|
61
|
+
*/
|
|
62
|
+
amount: number;
|
|
63
|
+
/**
|
|
64
|
+
* The ID of the company to add funds to.
|
|
65
|
+
*/
|
|
66
|
+
company_id: string;
|
|
67
|
+
/**
|
|
68
|
+
* The currency of the top-up.
|
|
69
|
+
*/
|
|
70
|
+
currency: Shared.Currency;
|
|
71
|
+
/**
|
|
72
|
+
* The ID of the payment method to charge for the top-up.
|
|
73
|
+
*/
|
|
74
|
+
payment_method_id: string;
|
|
75
|
+
}
|
|
76
|
+
export declare namespace Topups {
|
|
77
|
+
export { type TopupCreateResponse as TopupCreateResponse, type TopupCreateParams as TopupCreateParams };
|
|
78
|
+
}
|
|
79
|
+
//# sourceMappingURL=topups.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"topups.d.ts","sourceRoot":"","sources":["../src/resources/topups.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;CAG3F;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC,QAAQ,GAAG,IAAI,CAAC;IAEjC;;OAEG;IACH,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B;;OAEG;IACH,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,aAAa,GAAG,IAAI,CAAC;IAEpC;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC;IAE1B;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CACzG"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Topups = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
class Topups extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Add funds to your platform balance by charging a stored payment method.
|
|
9
|
+
*
|
|
10
|
+
* Required permissions:
|
|
11
|
+
*
|
|
12
|
+
* - `payment:charge`
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const topup = await client.topups.create({
|
|
17
|
+
* amount: 6.9,
|
|
18
|
+
* company_id: 'biz_xxxxxxxxxxxxxx',
|
|
19
|
+
* currency: 'usd',
|
|
20
|
+
* payment_method_id: 'pmt_xxxxxxxxxxxxxx',
|
|
21
|
+
* });
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
create(body, options) {
|
|
25
|
+
return this._client.post('/topups', { body, ...options });
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.Topups = Topups;
|
|
29
|
+
//# sourceMappingURL=topups.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"topups.js","sourceRoot":"","sources":["../src/resources/topups.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAK/C,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5D,CAAC;CACF;AArBD,wBAqBC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
export class Topups extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Add funds to your platform balance by charging a stored payment method.
|
|
6
|
+
*
|
|
7
|
+
* Required permissions:
|
|
8
|
+
*
|
|
9
|
+
* - `payment:charge`
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const topup = await client.topups.create({
|
|
14
|
+
* amount: 6.9,
|
|
15
|
+
* company_id: 'biz_xxxxxxxxxxxxxx',
|
|
16
|
+
* currency: 'usd',
|
|
17
|
+
* payment_method_id: 'pmt_xxxxxxxxxxxxxx',
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
create(body, options) {
|
|
22
|
+
return this._client.post('/topups', { body, ...options });
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=topups.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"topups.mjs","sourceRoot":"","sources":["../src/resources/topups.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAKtB,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5D,CAAC;CACF"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
|
+
export declare class Verifications extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Retrieves a verification by ID
|
|
7
|
+
*
|
|
8
|
+
* Required permissions:
|
|
9
|
+
*
|
|
10
|
+
* - `payout:account:read`
|
|
11
|
+
*/
|
|
12
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<VerificationRetrieveResponse>;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* An object representing an identity verification session
|
|
16
|
+
*/
|
|
17
|
+
export interface VerificationRetrieveResponse {
|
|
18
|
+
/**
|
|
19
|
+
* A unique identifier for the verification.
|
|
20
|
+
*/
|
|
21
|
+
id: string;
|
|
22
|
+
/**
|
|
23
|
+
* An error code for a verification attempt.
|
|
24
|
+
*/
|
|
25
|
+
last_error_code: 'abandoned' | 'consent_declined' | 'country_not_supported' | 'device_not_supported' | 'document_expired' | 'document_type_not_supported' | 'document_unverified_other' | 'email_unverified_other' | 'email_verification_declined' | 'id_number_insufficient_document_data' | 'id_number_mismatch' | 'id_number_unverified_other' | 'phone_unverified_other' | 'phone_verification_declined' | 'selfie_document_missing_photo' | 'selfie_face_mismatch' | 'selfie_manipulated' | 'selfie_unverified_other' | 'under_supported_age' | null;
|
|
26
|
+
/**
|
|
27
|
+
* The last error reason that occurred during the verification.
|
|
28
|
+
*/
|
|
29
|
+
last_error_reason: string | null;
|
|
30
|
+
/**
|
|
31
|
+
* The status of the verification.
|
|
32
|
+
*/
|
|
33
|
+
status: 'requires_input' | 'processing' | 'verified' | 'canceled' | 'created' | 'started' | 'submitted' | 'approved' | 'declined' | 'resubmission_requested' | 'expired' | 'abandoned' | 'review';
|
|
34
|
+
}
|
|
35
|
+
export declare namespace Verifications {
|
|
36
|
+
export { type VerificationRetrieveResponse as VerificationRetrieveResponse };
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=verifications.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verifications.d.mts","sourceRoot":"","sources":["../src/resources/verifications.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,4BAA4B,CAAC;CAGzF;AAED;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,eAAe,EACX,WAAW,GACX,kBAAkB,GAClB,uBAAuB,GACvB,sBAAsB,GACtB,kBAAkB,GAClB,6BAA6B,GAC7B,2BAA2B,GAC3B,wBAAwB,GACxB,6BAA6B,GAC7B,sCAAsC,GACtC,oBAAoB,GACpB,4BAA4B,GAC5B,wBAAwB,GACxB,6BAA6B,GAC7B,+BAA+B,GAC/B,sBAAsB,GACtB,oBAAoB,GACpB,yBAAyB,GACzB,qBAAqB,GACrB,IAAI,CAAC;IAET;;OAEG;IACH,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IAEjC;;OAEG;IACH,MAAM,EACF,gBAAgB,GAChB,YAAY,GACZ,UAAU,GACV,UAAU,GACV,SAAS,GACT,SAAS,GACT,WAAW,GACX,UAAU,GACV,UAAU,GACV,wBAAwB,GACxB,SAAS,GACT,WAAW,GACX,QAAQ,CAAC;CACd;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EAAE,KAAK,4BAA4B,IAAI,4BAA4B,EAAE,CAAC;CAC9E"}
|