@calm-xyz/core 0.13.0 → 0.15.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/dist/index.d.ts +9332 -2311
- package/dist/index.js +2298 -465
- package/package.json +8 -5
package/dist/index.js
CHANGED
|
@@ -1,125 +1,303 @@
|
|
|
1
|
+
const errorCodeEnum = {
|
|
2
|
+
already_registered: "already_registered",
|
|
3
|
+
ambiguous_query: "ambiguous_query",
|
|
4
|
+
amount_above_maximum: "amount_above_maximum",
|
|
5
|
+
amount_below_minimum: "amount_below_minimum",
|
|
6
|
+
auth_required: "auth_required",
|
|
7
|
+
bank_transfer_unavailable: "bank_transfer_unavailable",
|
|
8
|
+
binding_invalid: "binding_invalid",
|
|
9
|
+
blink_error: "blink_error",
|
|
10
|
+
card_3d_secure_challenge_failed: "card_3d_secure_challenge_failed",
|
|
11
|
+
card_3d_secure_rejected: "card_3d_secure_rejected",
|
|
12
|
+
card_3d_secure_verification_failed: "card_3d_secure_verification_failed",
|
|
13
|
+
card_account_blocked: "card_account_blocked",
|
|
14
|
+
card_account_closed: "card_account_closed",
|
|
15
|
+
card_account_not_activated: "card_account_not_activated",
|
|
16
|
+
card_activity_limit_exceeded: "card_activity_limit_exceeded",
|
|
17
|
+
card_address_mismatch: "card_address_mismatch",
|
|
18
|
+
card_brand_unsupported: "card_brand_unsupported",
|
|
19
|
+
card_chargeback_protection_declined: "card_chargeback_protection_declined",
|
|
20
|
+
card_contact_issuer: "card_contact_issuer",
|
|
21
|
+
card_country_unsupported: "card_country_unsupported",
|
|
22
|
+
card_customer_not_found: "card_customer_not_found",
|
|
23
|
+
card_daily_purchase_limit_reached: "card_daily_purchase_limit_reached",
|
|
24
|
+
card_declined: "card_declined",
|
|
25
|
+
card_do_not_honor: "card_do_not_honor",
|
|
26
|
+
card_exceeds_withdrawal_limit: "card_exceeds_withdrawal_limit",
|
|
27
|
+
card_expired: "card_expired",
|
|
28
|
+
card_fraud_security_decline: "card_fraud_security_decline",
|
|
29
|
+
card_identity_required: "card_identity_required",
|
|
30
|
+
card_insufficient_funds: "card_insufficient_funds",
|
|
31
|
+
card_invalid_amount: "card_invalid_amount",
|
|
32
|
+
card_invalid_input: "card_invalid_input",
|
|
33
|
+
card_invalid_number: "card_invalid_number",
|
|
34
|
+
card_invalid_transaction: "card_invalid_transaction",
|
|
35
|
+
card_issuer_file_unavailable: "card_issuer_file_unavailable",
|
|
36
|
+
card_issuer_gateway_unavailable: "card_issuer_gateway_unavailable",
|
|
37
|
+
card_issuer_inoperative: "card_issuer_inoperative",
|
|
38
|
+
card_issuer_system_malfunction: "card_issuer_system_malfunction",
|
|
39
|
+
card_issuing_country_unsupported: "card_issuing_country_unsupported",
|
|
40
|
+
card_limit_exceeded: "card_limit_exceeded",
|
|
41
|
+
card_location_unsupported: "card_location_unsupported",
|
|
42
|
+
card_locked: "card_locked",
|
|
43
|
+
card_lost: "card_lost",
|
|
44
|
+
card_name_mismatch: "card_name_mismatch",
|
|
45
|
+
card_no_such_issuer: "card_no_such_issuer",
|
|
46
|
+
card_not_activated: "card_not_activated",
|
|
47
|
+
card_order_not_found: "card_order_not_found",
|
|
48
|
+
card_partial_approval: "card_partial_approval",
|
|
49
|
+
card_payment_method_blocked: "card_payment_method_blocked",
|
|
50
|
+
card_payment_method_in_use: "card_payment_method_in_use",
|
|
51
|
+
card_pickup: "card_pickup",
|
|
52
|
+
card_pickup_special_condition: "card_pickup_special_condition",
|
|
53
|
+
card_quote_expired: "card_quote_expired",
|
|
54
|
+
card_quote_price_changed: "card_quote_price_changed",
|
|
55
|
+
card_record_not_found: "card_record_not_found",
|
|
56
|
+
card_reenter_transaction: "card_reenter_transaction",
|
|
57
|
+
card_refer_to_issuer: "card_refer_to_issuer",
|
|
58
|
+
card_refer_to_issuer_special_condition: "card_refer_to_issuer_special_condition",
|
|
59
|
+
card_security_code_mismatch: "card_security_code_mismatch",
|
|
60
|
+
card_security_violation: "card_security_violation",
|
|
61
|
+
card_state_unsupported: "card_state_unsupported",
|
|
62
|
+
card_state_unsupported_by_ip_address: "card_state_unsupported_by_ip_address",
|
|
63
|
+
card_stolen: "card_stolen",
|
|
64
|
+
card_suspected_fraud: "card_suspected_fraud",
|
|
65
|
+
card_transaction_frequency_limit_exceeded: "card_transaction_frequency_limit_exceeded",
|
|
66
|
+
card_transaction_not_permitted: "card_transaction_not_permitted",
|
|
67
|
+
card_transaction_not_supported: "card_transaction_not_supported",
|
|
68
|
+
card_unavailable: "card_unavailable",
|
|
69
|
+
card_violation: "card_violation",
|
|
70
|
+
card_wallet_pay_unavailable: "card_wallet_pay_unavailable",
|
|
71
|
+
cashapp_unavailable: "cashapp_unavailable",
|
|
72
|
+
challenge_expired: "challenge_expired",
|
|
73
|
+
challenge_rate_limited: "challenge_rate_limited",
|
|
74
|
+
challenge_wallet_mismatch: "challenge_wallet_mismatch",
|
|
75
|
+
client_ip_unknown: "client_ip_unknown",
|
|
76
|
+
customer_details_invalid: "customer_details_invalid",
|
|
77
|
+
customer_not_registered: "customer_not_registered",
|
|
78
|
+
email_error: "email_error",
|
|
79
|
+
email_invalid_recipient: "email_invalid_recipient",
|
|
80
|
+
email_quota_exceeded: "email_quota_exceeded",
|
|
81
|
+
email_rate_limited: "email_rate_limited",
|
|
82
|
+
email_unauthorized: "email_unauthorized",
|
|
83
|
+
fixed_delivery_unavailable: "fixed_delivery_unavailable",
|
|
84
|
+
forbidden: "forbidden",
|
|
85
|
+
fx_unavailable: "fx_unavailable",
|
|
86
|
+
idempotency_conflict: "idempotency_conflict",
|
|
87
|
+
idempotency_in_progress: "idempotency_in_progress",
|
|
88
|
+
idempotency_key_in_use: "idempotency_key_in_use",
|
|
89
|
+
idempotency_key_mismatch: "idempotency_key_mismatch",
|
|
90
|
+
idempotency_key_required: "idempotency_key_required",
|
|
91
|
+
internal_error: "internal_error",
|
|
92
|
+
invalid_address: "invalid_address",
|
|
93
|
+
invalid_body: "invalid_body",
|
|
94
|
+
invalid_otp: "invalid_otp",
|
|
95
|
+
invalid_publishable_key: "invalid_publishable_key",
|
|
96
|
+
invalid_query: "invalid_query",
|
|
97
|
+
invalid_request: "invalid_request",
|
|
98
|
+
invoice_required: "invoice_required",
|
|
99
|
+
kyc_required: "kyc_required",
|
|
100
|
+
lighter_account_not_found: "lighter_account_not_found",
|
|
101
|
+
link_error: "link_error",
|
|
102
|
+
link_forbidden: "link_forbidden",
|
|
103
|
+
link_not_found: "link_not_found",
|
|
104
|
+
link_refresh_token_missing: "link_refresh_token_missing",
|
|
105
|
+
link_revoked: "link_revoked",
|
|
106
|
+
merchant_not_active: "merchant_not_active",
|
|
107
|
+
merchant_not_registered: "merchant_not_registered",
|
|
108
|
+
method_not_allowed: "method_not_allowed",
|
|
109
|
+
missing_idempotency_key: "missing_idempotency_key",
|
|
110
|
+
next_action_mismatch: "next_action_mismatch",
|
|
111
|
+
not_found: "not_found",
|
|
112
|
+
order_not_found: "order_not_found",
|
|
113
|
+
origin_not_allowed: "origin_not_allowed",
|
|
114
|
+
partner_disabled: "partner_disabled",
|
|
115
|
+
partner_token_rejected: "partner_token_rejected",
|
|
116
|
+
payload_too_large: "payload_too_large",
|
|
117
|
+
payment_method_not_enabled: "payment_method_not_enabled",
|
|
118
|
+
price_impact_too_high: "price_impact_too_high",
|
|
119
|
+
publishable_key_missing: "publishable_key_missing",
|
|
120
|
+
quote_unavailable: "quote_unavailable",
|
|
121
|
+
rate_limited: "rate_limited",
|
|
122
|
+
recipient_invalid: "recipient_invalid",
|
|
123
|
+
route_disabled: "route_disabled",
|
|
124
|
+
service_unavailable: "service_unavailable",
|
|
125
|
+
session_required: "session_required",
|
|
126
|
+
spot_unavailable: "spot_unavailable",
|
|
127
|
+
stripe_auth_required: "stripe_auth_required",
|
|
128
|
+
stripe_country_unsupported: "stripe_country_unsupported",
|
|
129
|
+
stripe_currency_unavailable_in_region: "stripe_currency_unavailable_in_region",
|
|
130
|
+
stripe_customer_unsupported: "stripe_customer_unsupported",
|
|
131
|
+
stripe_document_verification_required: "stripe_document_verification_required",
|
|
132
|
+
stripe_error: "stripe_error",
|
|
133
|
+
stripe_resource_not_found: "stripe_resource_not_found",
|
|
134
|
+
stripe_transaction_blocked: "stripe_transaction_blocked",
|
|
135
|
+
stripe_wallet_not_registered: "stripe_wallet_not_registered",
|
|
136
|
+
swap_unavailable: "swap_unavailable",
|
|
137
|
+
swapped_error: "swapped_error",
|
|
138
|
+
swapped_quote_expired: "swapped_quote_expired",
|
|
139
|
+
terms_of_service_required: "terms_of_service_required",
|
|
140
|
+
three_d_secure_required: "three_d_secure_required",
|
|
141
|
+
too_many_attempts: "too_many_attempts",
|
|
142
|
+
unauthorized: "unauthorized",
|
|
143
|
+
unsupported_amount_mode: "unsupported_amount_mode",
|
|
144
|
+
unsupported_asset: "unsupported_asset",
|
|
145
|
+
unsupported_chain: "unsupported_chain",
|
|
146
|
+
unsupported_delivery_mode: "unsupported_delivery_mode",
|
|
147
|
+
unsupported_fee_plan: "unsupported_fee_plan",
|
|
148
|
+
unsupported_media_type: "unsupported_media_type",
|
|
149
|
+
unsupported_route: "unsupported_route",
|
|
150
|
+
validation_error: "validation_error",
|
|
151
|
+
wallet_sanctioned: "wallet_sanctioned",
|
|
152
|
+
webhook_signature_invalid: "webhook_signature_invalid",
|
|
153
|
+
webhook_signature_malformed: "webhook_signature_malformed",
|
|
154
|
+
webhook_signature_missing: "webhook_signature_missing",
|
|
155
|
+
webhook_signature_stale: "webhook_signature_stale"
|
|
156
|
+
};
|
|
1
157
|
/**
|
|
2
|
-
* Typed error every operation throws on a non-2xx response; carries `code
|
|
3
|
-
* and `
|
|
158
|
+
* Typed error every operation throws on a non-2xx response; carries `code`,
|
|
159
|
+
* `status`, and `params` when particular request properties are invalid.
|
|
4
160
|
*
|
|
5
161
|
* @see https://docs.calmtreasury.xyz/sdk/errors
|
|
6
162
|
*/
|
|
7
163
|
var ApiError = class extends Error {
|
|
8
164
|
code;
|
|
9
165
|
status;
|
|
166
|
+
params;
|
|
10
167
|
constructor(args) {
|
|
11
168
|
super(args.message);
|
|
12
169
|
this.name = "ApiError";
|
|
13
170
|
this.code = args.code;
|
|
14
171
|
this.status = args.status;
|
|
172
|
+
this.params = args.params;
|
|
15
173
|
}
|
|
16
174
|
};
|
|
175
|
+
function isErrorCode(code) {
|
|
176
|
+
return Object.values(errorCodeEnum).some((known) => known === code);
|
|
177
|
+
}
|
|
17
178
|
async function request(config) {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
let
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
179
|
+
if (!config.apiUrl) throw new Error("A request needs an apiUrl");
|
|
180
|
+
const query = new URLSearchParams(config.params).toString();
|
|
181
|
+
let response;
|
|
182
|
+
try {
|
|
183
|
+
response = await fetch(`${config.apiUrl}${config.url ?? ""}${query && `?${query}`}`, {
|
|
184
|
+
method: config.method,
|
|
185
|
+
body: JSON.stringify(config.data),
|
|
186
|
+
signal: config.signal,
|
|
187
|
+
headers: config.headers,
|
|
188
|
+
credentials: "include"
|
|
189
|
+
});
|
|
190
|
+
} catch (error) {
|
|
191
|
+
if (config.signal?.aborted) throw error;
|
|
192
|
+
throw new ApiError({
|
|
193
|
+
code: "unreachable",
|
|
194
|
+
message: "We couldn't connect. Check your connection and try again.",
|
|
195
|
+
status: 0
|
|
196
|
+
});
|
|
197
|
+
}
|
|
33
198
|
if (!response.ok) {
|
|
34
|
-
const envelope =
|
|
199
|
+
const envelope = await response.json().catch(() => void 0);
|
|
200
|
+
const code = envelope?.error?.code;
|
|
201
|
+
let message = "Something went wrong. Try again.";
|
|
202
|
+
if (typeof envelope?.error?.message === "string") message = envelope.error.message;
|
|
203
|
+
if (isErrorCode(code)) throw new ApiError({
|
|
204
|
+
code,
|
|
205
|
+
message,
|
|
206
|
+
status: response.status,
|
|
207
|
+
params: envelope?.error?.params
|
|
208
|
+
});
|
|
35
209
|
throw new ApiError({
|
|
36
|
-
|
|
37
|
-
|
|
210
|
+
code: "unexpected_response",
|
|
211
|
+
message,
|
|
38
212
|
status: response.status
|
|
39
213
|
});
|
|
40
214
|
}
|
|
215
|
+
if (response.status === 204) return {
|
|
216
|
+
data: void 0,
|
|
217
|
+
status: response.status
|
|
218
|
+
};
|
|
41
219
|
return {
|
|
42
|
-
data,
|
|
220
|
+
data: await response.json(),
|
|
43
221
|
status: response.status
|
|
44
222
|
};
|
|
45
223
|
}
|
|
46
|
-
function normalizeHeaders(headers) {
|
|
47
|
-
if (!headers) return void 0;
|
|
48
|
-
return Array.isArray(headers) ? Object.fromEntries(headers) : headers;
|
|
49
|
-
}
|
|
50
224
|
const client = request;
|
|
51
225
|
/**
|
|
52
226
|
* Generated by Kubb (https://kubb.dev/).
|
|
53
227
|
* Do not edit manually.
|
|
54
228
|
*/
|
|
55
|
-
function
|
|
229
|
+
function getCheckoutStripeSessionUrl(id) {
|
|
56
230
|
return {
|
|
57
231
|
method: "POST",
|
|
58
|
-
url: `/v1/
|
|
232
|
+
url: `/v1/stripe/sessions/${id}/checkout`
|
|
59
233
|
};
|
|
60
234
|
}
|
|
61
235
|
/**
|
|
62
|
-
* @description
|
|
63
|
-
* @summary
|
|
64
|
-
* {@link /v1/
|
|
236
|
+
* @description Checks out a session and returns its `client_secret`. The `performCheckout` callback of the client SDK calls it, and the SDK does the next step, such as 3-D Secure, between the calls. The request needs an `Idempotency-Key` header. For 24 hours after a checkout succeeds, a second request with the same key and session returns the same `client_secret` without checking out again, and the same key with a different session returns `idempotency_key_mismatch`. A request sent while the first checkout with its key is still running returns `idempotency_key_in_use`: send it again shortly.
|
|
237
|
+
* @summary Check out a Stripe onramp session
|
|
238
|
+
* {@link /v1/stripe/sessions/:id/checkout}
|
|
65
239
|
*/
|
|
66
|
-
async function
|
|
240
|
+
async function checkoutStripeSession(id, headers, config = {}) {
|
|
67
241
|
const { client: request = client, ...requestConfig } = config;
|
|
68
|
-
const requestData = data;
|
|
69
242
|
return (await request({
|
|
70
243
|
method: "POST",
|
|
71
|
-
url:
|
|
72
|
-
|
|
73
|
-
|
|
244
|
+
url: getCheckoutStripeSessionUrl(id).url.toString(),
|
|
245
|
+
...requestConfig,
|
|
246
|
+
headers: {
|
|
247
|
+
...headers,
|
|
248
|
+
...requestConfig.headers
|
|
249
|
+
}
|
|
74
250
|
})).data;
|
|
75
251
|
}
|
|
76
252
|
/**
|
|
77
253
|
* Generated by Kubb (https://kubb.dev/).
|
|
78
254
|
* Do not edit manually.
|
|
79
255
|
*/
|
|
80
|
-
function
|
|
256
|
+
function getConfirmCardOrderUrl(id) {
|
|
81
257
|
return {
|
|
82
258
|
method: "POST",
|
|
83
|
-
url: `/v1/
|
|
259
|
+
url: `/v1/card/orders/${id}/confirm`
|
|
84
260
|
};
|
|
85
261
|
}
|
|
86
262
|
/**
|
|
87
|
-
* @description
|
|
88
|
-
* @summary
|
|
89
|
-
* {@link /v1/
|
|
263
|
+
* @description Sends the answer to the order's `next_action`. The body has one key, named after the `next_action.type` it answers: `collect_card` takes the card, the customer and the billing address, `collect_apple_pay` takes the token and the billing contact that the Apple Pay sheet returns, `three_d_secure` takes the `transaction_id` of the challenge, and `mount_payment` takes the `request_id` that the payment surface returns. A key that does not match the order's `next_action.type` returns `next_action_mismatch`, and so does a confirm sent while another confirm of the same order is in flight: read the order again. The request needs an `Idempotency-Key` header. For 24 hours after a confirm succeeds, a second request with the same key and body returns the order without answering again, and the same key with a different body returns `idempotency_key_mismatch`. A request sent while the first confirm with its key is still running returns `idempotency_key_in_use`. The price is checked again before a charge: when the crypto the buyer receives has fallen more than 2% below the quote, this operation returns `card_quote_price_changed` and charges nothing.
|
|
264
|
+
* @summary Confirm a card order
|
|
265
|
+
* {@link /v1/card/orders/:id/confirm}
|
|
90
266
|
*/
|
|
91
|
-
async function
|
|
267
|
+
async function confirmCardOrder(id, data, headers, config = {}) {
|
|
92
268
|
const { client: request = client, ...requestConfig } = config;
|
|
93
269
|
const requestData = data;
|
|
94
270
|
return (await request({
|
|
95
271
|
method: "POST",
|
|
96
|
-
url:
|
|
272
|
+
url: getConfirmCardOrderUrl(id).url.toString(),
|
|
97
273
|
data: requestData,
|
|
98
|
-
...requestConfig
|
|
274
|
+
...requestConfig,
|
|
275
|
+
headers: {
|
|
276
|
+
...headers,
|
|
277
|
+
...requestConfig.headers
|
|
278
|
+
}
|
|
99
279
|
})).data;
|
|
100
280
|
}
|
|
101
281
|
/**
|
|
102
282
|
* Generated by Kubb (https://kubb.dev/).
|
|
103
283
|
* Do not edit manually.
|
|
104
284
|
*/
|
|
105
|
-
function
|
|
285
|
+
function getCreateApplePaySessionUrl(id) {
|
|
106
286
|
return {
|
|
107
287
|
method: "POST",
|
|
108
|
-
url: `/v1/
|
|
288
|
+
url: `/v1/card/orders/${id}/apple-pay-session`
|
|
109
289
|
};
|
|
110
290
|
}
|
|
111
291
|
/**
|
|
112
|
-
* @description
|
|
113
|
-
* @summary
|
|
114
|
-
* {@link /v1/
|
|
292
|
+
* @description Returns the merchant session that the Apple Pay sheet asks for in `onvalidatemerchant`. Pass it to `completeMerchantValidation` as it is. The domain is the host of the request's `Origin`, which Apple must have verified for the app. The order's `next_action.type` must be `collect_apple_pay`, otherwise this operation returns `next_action_mismatch`.
|
|
293
|
+
* @summary Start an Apple Pay session
|
|
294
|
+
* {@link /v1/card/orders/:id/apple-pay-session}
|
|
115
295
|
*/
|
|
116
|
-
async function
|
|
296
|
+
async function createApplePaySession(id, config = {}) {
|
|
117
297
|
const { client: request = client, ...requestConfig } = config;
|
|
118
|
-
const requestData = data;
|
|
119
298
|
return (await request({
|
|
120
299
|
method: "POST",
|
|
121
|
-
url:
|
|
122
|
-
data: requestData,
|
|
300
|
+
url: getCreateApplePaySessionUrl(id).url.toString(),
|
|
123
301
|
...requestConfig
|
|
124
302
|
})).data;
|
|
125
303
|
}
|
|
@@ -134,7 +312,7 @@ function getCreateBlinkSignatureUrl() {
|
|
|
134
312
|
};
|
|
135
313
|
}
|
|
136
314
|
/**
|
|
137
|
-
* @description Returns the signed authorization the hosted deposit flow
|
|
315
|
+
* @description Returns the signed authorization that the hosted deposit flow needs before it accepts a deposit. The destination is the `wallet` in the body, and the payout token of the destination chain. The authorization has a short life.
|
|
138
316
|
* @summary Authorize a deposit
|
|
139
317
|
* {@link /v1/blink/signature}
|
|
140
318
|
*/
|
|
@@ -152,6 +330,60 @@ async function createBlinkSignature(data, config = {}) {
|
|
|
152
330
|
* Generated by Kubb (https://kubb.dev/).
|
|
153
331
|
* Do not edit manually.
|
|
154
332
|
*/
|
|
333
|
+
function getCreateCardFcaSubmissionUrl() {
|
|
334
|
+
return {
|
|
335
|
+
method: "POST",
|
|
336
|
+
url: `/v1/card/identity-verification/fca/requirements`
|
|
337
|
+
};
|
|
338
|
+
}
|
|
339
|
+
/**
|
|
340
|
+
* @description Sends the answers of the buyer, or the signature of the buyer on the investor agreement, to the provider. Returns the result from the provider: an investor category, `signed`, or `PASS` or `FAIL`. The identity is the verified email address of the session. This API stores nothing from this request, and writes no answer, no signature and no question to a log. On a deployment where the FCA journey of this card provider is off, the response is 404. Off is the default, because the journey waits for a UK compliance decision.
|
|
341
|
+
* @summary Submit one step of the UK investor-categorisation journey
|
|
342
|
+
* {@link /v1/card/identity-verification/fca/requirements}
|
|
343
|
+
*/
|
|
344
|
+
async function createCardFcaSubmission(data, config = {}) {
|
|
345
|
+
const { client: request = client, ...requestConfig } = config;
|
|
346
|
+
const requestData = data;
|
|
347
|
+
return (await request({
|
|
348
|
+
method: "POST",
|
|
349
|
+
url: getCreateCardFcaSubmissionUrl().url.toString(),
|
|
350
|
+
data: requestData,
|
|
351
|
+
...requestConfig
|
|
352
|
+
})).data;
|
|
353
|
+
}
|
|
354
|
+
/**
|
|
355
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
356
|
+
* Do not edit manually.
|
|
357
|
+
*/
|
|
358
|
+
function getCreateCardOrderUrl() {
|
|
359
|
+
return {
|
|
360
|
+
method: "POST",
|
|
361
|
+
url: `/v1/card/orders`
|
|
362
|
+
};
|
|
363
|
+
}
|
|
364
|
+
/**
|
|
365
|
+
* @description Creates a card order for a quote. The amount, the currency, the payment method, the country and the destination come from the quote. The request needs an `Idempotency-Key` header, and a second request with the same key and body returns the same order. The same key with a different body returns `idempotency_key_mismatch`. A request sent while the first request with its key is still running returns `idempotency_key_in_use`: send it again shortly. The order has a `next_action`, which names what the buyer does next: do it, send the answer to `POST /v1/card/orders/{id}/confirm` when it takes one, and read the order again. `appearance` styles every payment surface the order opens. `reference` is your own id for the order, and `metadata` holds up to 50 string pairs of your own: the order and its webhook events carry both back.
|
|
366
|
+
* @summary Create a card order
|
|
367
|
+
* {@link /v1/card/orders}
|
|
368
|
+
*/
|
|
369
|
+
async function createCardOrder(data, headers, config = {}) {
|
|
370
|
+
const { client: request = client, ...requestConfig } = config;
|
|
371
|
+
const requestData = data;
|
|
372
|
+
return (await request({
|
|
373
|
+
method: "POST",
|
|
374
|
+
url: getCreateCardOrderUrl().url.toString(),
|
|
375
|
+
data: requestData,
|
|
376
|
+
...requestConfig,
|
|
377
|
+
headers: {
|
|
378
|
+
...headers,
|
|
379
|
+
...requestConfig.headers
|
|
380
|
+
}
|
|
381
|
+
})).data;
|
|
382
|
+
}
|
|
383
|
+
/**
|
|
384
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
385
|
+
* Do not edit manually.
|
|
386
|
+
*/
|
|
155
387
|
function getCreateCardQuoteUrl() {
|
|
156
388
|
return {
|
|
157
389
|
method: "POST",
|
|
@@ -159,7 +391,7 @@ function getCreateCardQuoteUrl() {
|
|
|
159
391
|
};
|
|
160
392
|
}
|
|
161
393
|
/**
|
|
162
|
-
* @description Returns a price
|
|
394
|
+
* @description Returns a price for a card purchase: the crypto that the buyer receives, and the total fiat that the buyer pays. Send the `quote_id` to `POST /v1/card/orders`. A quote is valid for 15 minutes. The price is for the wallet of the session.
|
|
163
395
|
* @summary Quote a card amount
|
|
164
396
|
* {@link /v1/card/quote}
|
|
165
397
|
*/
|
|
@@ -180,22 +412,26 @@ async function createCardQuote(data, config = {}) {
|
|
|
180
412
|
function getCreateCashAppOrderUrl() {
|
|
181
413
|
return {
|
|
182
414
|
method: "POST",
|
|
183
|
-
url: `/v1/cashapp`
|
|
415
|
+
url: `/v1/cashapp/orders`
|
|
184
416
|
};
|
|
185
417
|
}
|
|
186
418
|
/**
|
|
187
|
-
* @description
|
|
419
|
+
* @description Creates a Cash App order and returns it, with the Cash App payment URL. Send the buyer to the URL to pay, then poll `GET /v1/cashapp/orders/{id}`. The order delivers to the wallet of the session. The request needs an `Idempotency-Key` header, and a second request with the same key and body returns the same order. The same key with a different body returns `idempotency_key_mismatch`. A request sent while the first request with its key is still running returns `idempotency_key_in_use`: send it again shortly.
|
|
188
420
|
* @summary Create a Cash App order
|
|
189
|
-
* {@link /v1/cashapp}
|
|
421
|
+
* {@link /v1/cashapp/orders}
|
|
190
422
|
*/
|
|
191
|
-
async function createCashAppOrder(data, config = {}) {
|
|
423
|
+
async function createCashAppOrder(data, headers, config = {}) {
|
|
192
424
|
const { client: request = client, ...requestConfig } = config;
|
|
193
425
|
const requestData = data;
|
|
194
426
|
return (await request({
|
|
195
427
|
method: "POST",
|
|
196
428
|
url: getCreateCashAppOrderUrl().url.toString(),
|
|
197
429
|
data: requestData,
|
|
198
|
-
...requestConfig
|
|
430
|
+
...requestConfig,
|
|
431
|
+
headers: {
|
|
432
|
+
...headers,
|
|
433
|
+
...requestConfig.headers
|
|
434
|
+
}
|
|
199
435
|
})).data;
|
|
200
436
|
}
|
|
201
437
|
/**
|
|
@@ -209,7 +445,7 @@ function getCreateCashAppQuoteUrl() {
|
|
|
209
445
|
};
|
|
210
446
|
}
|
|
211
447
|
/**
|
|
212
|
-
* @description Returns a
|
|
448
|
+
* @description Returns a price for a Cash App order: the destination amount, the fee, and the fee in basis points. Every chain is a valid `destination.chain`.
|
|
213
449
|
* @summary Quote a Cash App order
|
|
214
450
|
* {@link /v1/cashapp/quote}
|
|
215
451
|
*/
|
|
@@ -227,23 +463,23 @@ async function createCashAppQuote(data, config = {}) {
|
|
|
227
463
|
* Generated by Kubb (https://kubb.dev/).
|
|
228
464
|
* Do not edit manually.
|
|
229
465
|
*/
|
|
230
|
-
function
|
|
466
|
+
function getCreateStripeAuthIntentUrl() {
|
|
231
467
|
return {
|
|
232
468
|
method: "POST",
|
|
233
|
-
url: `/v1/
|
|
469
|
+
url: `/v1/stripe/auth-intents`
|
|
234
470
|
};
|
|
235
471
|
}
|
|
236
472
|
/**
|
|
237
|
-
* @description
|
|
238
|
-
* @summary
|
|
239
|
-
* {@link /v1/
|
|
473
|
+
* @description Starts a Link authentication for the email address of the buyer. The Stripe session that `POST /v1/stripe/tokens` starts belongs to the `wallet` in this request. Returns the id to give to the `authenticate(...)` function of the client SDK, and the time the id expires.
|
|
474
|
+
* @summary Start a Stripe Link authentication
|
|
475
|
+
* {@link /v1/stripe/auth-intents}
|
|
240
476
|
*/
|
|
241
|
-
async function
|
|
477
|
+
async function createStripeAuthIntent(data, config = {}) {
|
|
242
478
|
const { client: request = client, ...requestConfig } = config;
|
|
243
479
|
const requestData = data;
|
|
244
480
|
return (await request({
|
|
245
481
|
method: "POST",
|
|
246
|
-
url:
|
|
482
|
+
url: getCreateStripeAuthIntentUrl().url.toString(),
|
|
247
483
|
data: requestData,
|
|
248
484
|
...requestConfig
|
|
249
485
|
})).data;
|
|
@@ -252,24 +488,22 @@ async function createExchangeWithdrawQuote(exchange, data, config = {}) {
|
|
|
252
488
|
* Generated by Kubb (https://kubb.dev/).
|
|
253
489
|
* Do not edit manually.
|
|
254
490
|
*/
|
|
255
|
-
function
|
|
491
|
+
function getCreateStripeCustomerUrl(id) {
|
|
256
492
|
return {
|
|
257
493
|
method: "POST",
|
|
258
|
-
url: `/v1/stripe/
|
|
494
|
+
url: `/v1/stripe/customers/${id}`
|
|
259
495
|
};
|
|
260
496
|
}
|
|
261
497
|
/**
|
|
262
|
-
* @description
|
|
263
|
-
* @summary
|
|
264
|
-
* {@link /v1/stripe/
|
|
498
|
+
* @description Checks that the crypto customer exists, then keeps the customer id for the wallet of the session.
|
|
499
|
+
* @summary Keep a Stripe crypto customer
|
|
500
|
+
* {@link /v1/stripe/customers/:id}
|
|
265
501
|
*/
|
|
266
|
-
async function
|
|
502
|
+
async function createStripeCustomer(id, config = {}) {
|
|
267
503
|
const { client: request = client, ...requestConfig } = config;
|
|
268
|
-
const requestData = data;
|
|
269
504
|
return (await request({
|
|
270
505
|
method: "POST",
|
|
271
|
-
url:
|
|
272
|
-
data: requestData,
|
|
506
|
+
url: getCreateStripeCustomerUrl(id).url.toString(),
|
|
273
507
|
...requestConfig
|
|
274
508
|
})).data;
|
|
275
509
|
}
|
|
@@ -277,23 +511,23 @@ async function createStripeAuthIntent(data, config = {}) {
|
|
|
277
511
|
* Generated by Kubb (https://kubb.dev/).
|
|
278
512
|
* Do not edit manually.
|
|
279
513
|
*/
|
|
280
|
-
function
|
|
514
|
+
function getCreateStripeQuoteUrl() {
|
|
281
515
|
return {
|
|
282
516
|
method: "POST",
|
|
283
|
-
url: `/v1/stripe/
|
|
517
|
+
url: `/v1/stripe/quote`
|
|
284
518
|
};
|
|
285
519
|
}
|
|
286
520
|
/**
|
|
287
|
-
* @description
|
|
288
|
-
* @summary
|
|
289
|
-
* {@link /v1/stripe/
|
|
521
|
+
* @description Returns a price for an `amount` in fiat. `currency` is `USD` or `EUR`. Every chain is a valid `destination.chain`. Calm prices USDC on the network where the purchase settles, the same network that `resolveStripeDestination` returns. A token other than USDC, or a chain the onramp does not serve, is priced on the origin network, and a `EUR` quote for any chain except Ethereum is priced on Ethereum. The response has the total that the buyer pays in `source`, the crypto that the buyer receives in `destination`, the parts of the fee in the source currency, and the time Calm read the rate. Stripe sets the final amounts when you open the session.
|
|
522
|
+
* @summary Quote a Stripe onramp amount
|
|
523
|
+
* {@link /v1/stripe/quote}
|
|
290
524
|
*/
|
|
291
|
-
async function
|
|
525
|
+
async function createStripeQuote(data, config = {}) {
|
|
292
526
|
const { client: request = client, ...requestConfig } = config;
|
|
293
527
|
const requestData = data;
|
|
294
528
|
return (await request({
|
|
295
529
|
method: "POST",
|
|
296
|
-
url:
|
|
530
|
+
url: getCreateStripeQuoteUrl().url.toString(),
|
|
297
531
|
data: requestData,
|
|
298
532
|
...requestConfig
|
|
299
533
|
})).data;
|
|
@@ -305,13 +539,13 @@ async function createStripeCustomer(crypto_customer_id, data, config = {}) {
|
|
|
305
539
|
function getCreateStripeSessionUrl() {
|
|
306
540
|
return {
|
|
307
541
|
method: "POST",
|
|
308
|
-
url: `/v1/stripe/
|
|
542
|
+
url: `/v1/stripe/sessions`
|
|
309
543
|
};
|
|
310
544
|
}
|
|
311
545
|
/**
|
|
312
|
-
* @description Opens
|
|
546
|
+
* @description Opens an onramp session. Returns the Stripe `session_id` for the `performCheckout` function of the client SDK, and a Calm `order_id` to poll at `GET /v1/stripe/orders/{id}`. Every chain is a valid `destination.chain`. `amount` is the fiat amount, and `currency` is `USD` or `EUR`: give the session the same `currency` as `resolveStripeDestination`. `status` is `requires_payment_method` until the checkout.
|
|
313
547
|
* @summary Open a Stripe onramp session
|
|
314
|
-
* {@link /v1/stripe/
|
|
548
|
+
* {@link /v1/stripe/sessions}
|
|
315
549
|
*/
|
|
316
550
|
async function createStripeSession(data, config = {}) {
|
|
317
551
|
const { client: request = client, ...requestConfig } = config;
|
|
@@ -334,8 +568,8 @@ function getCreateStripeTokensUrl() {
|
|
|
334
568
|
};
|
|
335
569
|
}
|
|
336
570
|
/**
|
|
337
|
-
* @description Exchanges a consented
|
|
338
|
-
* @summary Exchange an
|
|
571
|
+
* @description Exchanges a consented authentication intent for the OAuth tokens of the buyer, and keeps the tokens on the server. The response sets the `calm_stripe_session` cookie, which the other Stripe operations need. The cookie is `HttpOnly`, and the tokens do not go to the browser. The session is bound to the wallet of the authentication intent and to the publishable key, and it is valid for one hour after its last use.
|
|
572
|
+
* @summary Exchange an authentication intent for a Stripe session
|
|
339
573
|
* {@link /v1/stripe/tokens}
|
|
340
574
|
*/
|
|
341
575
|
async function createStripeTokens(data, config = {}) {
|
|
@@ -352,23 +586,23 @@ async function createStripeTokens(data, config = {}) {
|
|
|
352
586
|
* Generated by Kubb (https://kubb.dev/).
|
|
353
587
|
* Do not edit manually.
|
|
354
588
|
*/
|
|
355
|
-
function
|
|
589
|
+
function getCreateSwappedCheckoutUrl() {
|
|
356
590
|
return {
|
|
357
591
|
method: "POST",
|
|
358
|
-
url: `/v1/
|
|
592
|
+
url: `/v1/swapped/checkouts`
|
|
359
593
|
};
|
|
360
594
|
}
|
|
361
595
|
/**
|
|
362
|
-
* @description
|
|
363
|
-
* @summary
|
|
364
|
-
* {@link /v1/
|
|
596
|
+
* @description Starts a Swapped purchase for a quote from `POST /v1/swapped/quote`. The amount, the currency, the payment method and the country come from the quote, so the buyer pays the price that the quote showed. Show the buyer `url`: the Swapped page opens on the payment step with those values applied. Poll `GET /v1/swapped/checkouts/{id}` for the result. When this operation returns `swapped_quote_expired`, get a new quote and send the request again.
|
|
597
|
+
* @summary Start a Swapped checkout
|
|
598
|
+
* {@link /v1/swapped/checkouts}
|
|
365
599
|
*/
|
|
366
|
-
async function
|
|
600
|
+
async function createSwappedCheckout(data, config = {}) {
|
|
367
601
|
const { client: request = client, ...requestConfig } = config;
|
|
368
602
|
const requestData = data;
|
|
369
603
|
return (await request({
|
|
370
604
|
method: "POST",
|
|
371
|
-
url:
|
|
605
|
+
url: getCreateSwappedCheckoutUrl().url.toString(),
|
|
372
606
|
data: requestData,
|
|
373
607
|
...requestConfig
|
|
374
608
|
})).data;
|
|
@@ -377,23 +611,24 @@ async function createVirtualAccount(data, config = {}) {
|
|
|
377
611
|
* Generated by Kubb (https://kubb.dev/).
|
|
378
612
|
* Do not edit manually.
|
|
379
613
|
*/
|
|
380
|
-
function
|
|
614
|
+
function getCreateSwappedQuoteUrl() {
|
|
381
615
|
return {
|
|
382
|
-
method: "
|
|
383
|
-
url: `/v1/
|
|
616
|
+
method: "POST",
|
|
617
|
+
url: `/v1/swapped/quote`
|
|
384
618
|
};
|
|
385
619
|
}
|
|
386
620
|
/**
|
|
387
|
-
* @description
|
|
388
|
-
* @summary
|
|
389
|
-
* {@link /v1/
|
|
621
|
+
* @description Returns a price for a Swapped purchase: the crypto that the wallet receives, and the total fiat that the buyer pays. `payment_method` is the `payment_group` of a row from `GET /v1/swapped/payment-methods`. Send the `quote_id` to `POST /v1/swapped/checkouts` with the same wallet. A quote is valid for 15 minutes.
|
|
622
|
+
* @summary Quote a Swapped purchase
|
|
623
|
+
* {@link /v1/swapped/quote}
|
|
390
624
|
*/
|
|
391
|
-
async function
|
|
625
|
+
async function createSwappedQuote(data, config = {}) {
|
|
392
626
|
const { client: request = client, ...requestConfig } = config;
|
|
627
|
+
const requestData = data;
|
|
393
628
|
return (await request({
|
|
394
|
-
method: "
|
|
395
|
-
url:
|
|
396
|
-
|
|
629
|
+
method: "POST",
|
|
630
|
+
url: getCreateSwappedQuoteUrl().url.toString(),
|
|
631
|
+
data: requestData,
|
|
397
632
|
...requestConfig
|
|
398
633
|
})).data;
|
|
399
634
|
}
|
|
@@ -401,23 +636,23 @@ async function disconnectExchange(exchange, params, config = {}) {
|
|
|
401
636
|
* Generated by Kubb (https://kubb.dev/).
|
|
402
637
|
* Do not edit manually.
|
|
403
638
|
*/
|
|
404
|
-
function
|
|
639
|
+
function getCreateVirtualAccountUrl() {
|
|
405
640
|
return {
|
|
406
641
|
method: "POST",
|
|
407
|
-
url: `/v1/
|
|
642
|
+
url: `/v1/virtual-accounts`
|
|
408
643
|
};
|
|
409
644
|
}
|
|
410
645
|
/**
|
|
411
|
-
* @description
|
|
412
|
-
* @summary
|
|
413
|
-
* {@link /v1/
|
|
646
|
+
* @description Creates a virtual account for one currency, one destination chain and one payout token. The same three values return the account that exists already. A different `destination.token` on the same currency and chain creates a separate account, with its own bank details. Every chain is valid. The email of the session needs accepted terms of service and an approved identity verification, and the account pays out to the wallet of the session. Read the list again to see the new account.
|
|
647
|
+
* @summary Create a virtual account
|
|
648
|
+
* {@link /v1/virtual-accounts}
|
|
414
649
|
*/
|
|
415
|
-
async function
|
|
650
|
+
async function createVirtualAccount(data, config = {}) {
|
|
416
651
|
const { client: request = client, ...requestConfig } = config;
|
|
417
652
|
const requestData = data;
|
|
418
653
|
return (await request({
|
|
419
654
|
method: "POST",
|
|
420
|
-
url:
|
|
655
|
+
url: getCreateVirtualAccountUrl().url.toString(),
|
|
421
656
|
data: requestData,
|
|
422
657
|
...requestConfig
|
|
423
658
|
})).data;
|
|
@@ -426,6 +661,29 @@ async function executeExchangeWithdrawal(exchange, data, config = {}) {
|
|
|
426
661
|
* Generated by Kubb (https://kubb.dev/).
|
|
427
662
|
* Do not edit manually.
|
|
428
663
|
*/
|
|
664
|
+
function getGetAppUrl() {
|
|
665
|
+
return {
|
|
666
|
+
method: "GET",
|
|
667
|
+
url: `/v1/app`
|
|
668
|
+
};
|
|
669
|
+
}
|
|
670
|
+
/**
|
|
671
|
+
* @description Gets the name and logo of the app that owns the publishable key, as set in the dashboard. `logo_url` is an absolute URL of the logo, a 256×256 WebP, and is Calm's logo when the app has none.
|
|
672
|
+
* @summary Get the app
|
|
673
|
+
* {@link /v1/app}
|
|
674
|
+
*/
|
|
675
|
+
async function getApp(config = {}) {
|
|
676
|
+
const { client: request = client, ...requestConfig } = config;
|
|
677
|
+
return (await request({
|
|
678
|
+
method: "GET",
|
|
679
|
+
url: getGetAppUrl().url.toString(),
|
|
680
|
+
...requestConfig
|
|
681
|
+
})).data;
|
|
682
|
+
}
|
|
683
|
+
/**
|
|
684
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
685
|
+
* Do not edit manually.
|
|
686
|
+
*/
|
|
429
687
|
function getGetBalancesUrl() {
|
|
430
688
|
return {
|
|
431
689
|
method: "GET",
|
|
@@ -433,8 +691,8 @@ function getGetBalancesUrl() {
|
|
|
433
691
|
};
|
|
434
692
|
}
|
|
435
693
|
/**
|
|
436
|
-
* @description Returns the
|
|
437
|
-
* @summary List wallet balances
|
|
694
|
+
* @description Returns the token balances of the wallet on every supported chain (1, 8453, 999, 1337, 4326, 143, 137, 42161, 4663, 3586256). `balance` is the amount on the chain, in base units. To get an amount to show, move the decimal point of `balance` to the left by `decimals` places. `token` is the symbol, the same value that `destination.token` takes on the other operations. `address` identifies the token on that chain: a contract on an EVM chain, and a spot token id on HyperCore.
|
|
695
|
+
* @summary List the wallet balances
|
|
438
696
|
* {@link /v1/balances}
|
|
439
697
|
*/
|
|
440
698
|
async function getBalances(params, config = {}) {
|
|
@@ -457,8 +715,8 @@ function getGetBlinkConfigUrl() {
|
|
|
457
715
|
};
|
|
458
716
|
}
|
|
459
717
|
/**
|
|
460
|
-
* @description Returns the
|
|
461
|
-
* @summary
|
|
718
|
+
* @description Returns the settings that open the hosted deposit flow. The values are different in each environment. The merchant identifier only names the merchant; it does not authorize anything.
|
|
719
|
+
* @summary Read the runtime config
|
|
462
720
|
* {@link /v1/blink/config}
|
|
463
721
|
*/
|
|
464
722
|
async function getBlinkConfig(config = {}) {
|
|
@@ -473,23 +731,22 @@ async function getBlinkConfig(config = {}) {
|
|
|
473
731
|
* Generated by Kubb (https://kubb.dev/).
|
|
474
732
|
* Do not edit manually.
|
|
475
733
|
*/
|
|
476
|
-
function
|
|
734
|
+
function getGetCardCustomerUrl() {
|
|
477
735
|
return {
|
|
478
736
|
method: "GET",
|
|
479
|
-
url: `/v1/card/
|
|
737
|
+
url: `/v1/card/customer`
|
|
480
738
|
};
|
|
481
739
|
}
|
|
482
740
|
/**
|
|
483
|
-
* @description Returns the
|
|
484
|
-
* @summary
|
|
485
|
-
* {@link /v1/card/
|
|
741
|
+
* @description Returns the billing details that the buyer of the session used for their last card purchase, so that the card form can show them.
|
|
742
|
+
* @summary Read the saved card customer
|
|
743
|
+
* {@link /v1/card/customer}
|
|
486
744
|
*/
|
|
487
|
-
async function
|
|
745
|
+
async function getCardCustomer(config = {}) {
|
|
488
746
|
const { client: request = client, ...requestConfig } = config;
|
|
489
747
|
return (await request({
|
|
490
748
|
method: "GET",
|
|
491
|
-
url:
|
|
492
|
-
params,
|
|
749
|
+
url: getGetCardCustomerUrl().url.toString(),
|
|
493
750
|
...requestConfig
|
|
494
751
|
})).data;
|
|
495
752
|
}
|
|
@@ -497,22 +754,22 @@ async function getCardOrder(id, params, config = {}) {
|
|
|
497
754
|
* Generated by Kubb (https://kubb.dev/).
|
|
498
755
|
* Do not edit manually.
|
|
499
756
|
*/
|
|
500
|
-
function
|
|
757
|
+
function getGetCardFcaRequirementsUrl() {
|
|
501
758
|
return {
|
|
502
759
|
method: "GET",
|
|
503
|
-
url: `/v1/
|
|
760
|
+
url: `/v1/card/identity-verification/fca/requirements`
|
|
504
761
|
};
|
|
505
762
|
}
|
|
506
763
|
/**
|
|
507
|
-
* @description Returns
|
|
508
|
-
* @summary
|
|
509
|
-
* {@link /v1/
|
|
764
|
+
* @description Returns the content to show the buyer for the step that `status` names: the questions of one of the two quizzes, the text of the investor agreement, the end of the cooling-off period, or the retry block. Show the questions and the agreement with no change, because they are the regulated text of the provider. This API stores nothing that it reads here. On a deployment where the FCA journey of this card provider is off, the response is 404. Off is the default, because the journey waits for a UK compliance decision.
|
|
765
|
+
* @summary Read the current step of the UK investor-categorisation journey
|
|
766
|
+
* {@link /v1/card/identity-verification/fca/requirements}
|
|
510
767
|
*/
|
|
511
|
-
async function
|
|
768
|
+
async function getCardFcaRequirements(params, config = {}) {
|
|
512
769
|
const { client: request = client, ...requestConfig } = config;
|
|
513
770
|
return (await request({
|
|
514
771
|
method: "GET",
|
|
515
|
-
url:
|
|
772
|
+
url: getGetCardFcaRequirementsUrl().url.toString(),
|
|
516
773
|
params,
|
|
517
774
|
...requestConfig
|
|
518
775
|
})).data;
|
|
@@ -521,23 +778,22 @@ async function getCashAppOrder(id, params, config = {}) {
|
|
|
521
778
|
* Generated by Kubb (https://kubb.dev/).
|
|
522
779
|
* Do not edit manually.
|
|
523
780
|
*/
|
|
524
|
-
function
|
|
781
|
+
function getGetCardFcaStatusUrl() {
|
|
525
782
|
return {
|
|
526
783
|
method: "GET",
|
|
527
|
-
url: `/v1/
|
|
784
|
+
url: `/v1/card/identity-verification/fca/status`
|
|
528
785
|
};
|
|
529
786
|
}
|
|
530
787
|
/**
|
|
531
|
-
* @description
|
|
532
|
-
* @summary
|
|
533
|
-
* {@link /v1/
|
|
788
|
+
* @description Reports the step of the journey that the buyer is on, and sends nothing to the provider. A flow that starts again reads this operation first, because the journey has a cooling-off period that the buyer must wait out. On a deployment where the FCA journey of this card provider is off, the response is 404. Off is the default, because the journey waits for a UK compliance decision.
|
|
789
|
+
* @summary Read where the buyer stands in the UK journey
|
|
790
|
+
* {@link /v1/card/identity-verification/fca/status}
|
|
534
791
|
*/
|
|
535
|
-
async function
|
|
792
|
+
async function getCardFcaStatus(config = {}) {
|
|
536
793
|
const { client: request = client, ...requestConfig } = config;
|
|
537
794
|
return (await request({
|
|
538
795
|
method: "GET",
|
|
539
|
-
url:
|
|
540
|
-
params,
|
|
796
|
+
url: getGetCardFcaStatusUrl().url.toString(),
|
|
541
797
|
...requestConfig
|
|
542
798
|
})).data;
|
|
543
799
|
}
|
|
@@ -545,23 +801,22 @@ async function getExchange(exchange, params, config = {}) {
|
|
|
545
801
|
* Generated by Kubb (https://kubb.dev/).
|
|
546
802
|
* Do not edit manually.
|
|
547
803
|
*/
|
|
548
|
-
function
|
|
804
|
+
function getGetCardOrderUrl(id) {
|
|
549
805
|
return {
|
|
550
806
|
method: "GET",
|
|
551
|
-
url: `/v1/
|
|
807
|
+
url: `/v1/card/orders/${id}`
|
|
552
808
|
};
|
|
553
809
|
}
|
|
554
810
|
/**
|
|
555
|
-
* @description Returns the
|
|
556
|
-
* @summary
|
|
557
|
-
* {@link /v1/
|
|
811
|
+
* @description Returns the state of one card order. The session must hold the email address that the order belongs to. `next_action` names what the buyer does next, and is `null` once the buyer has nothing left to do. `routed` is `true` when the purchase needs two steps to reach the destination chain. In that case the card provider pays `settlement.intake_address`, and `status` describes the card step only.
|
|
812
|
+
* @summary Read a card order
|
|
813
|
+
* {@link /v1/card/orders/:id}
|
|
558
814
|
*/
|
|
559
|
-
async function
|
|
815
|
+
async function getCardOrder(id, config = {}) {
|
|
560
816
|
const { client: request = client, ...requestConfig } = config;
|
|
561
817
|
return (await request({
|
|
562
818
|
method: "GET",
|
|
563
|
-
url:
|
|
564
|
-
params,
|
|
819
|
+
url: getGetCardOrderUrl(id).url.toString(),
|
|
565
820
|
...requestConfig
|
|
566
821
|
})).data;
|
|
567
822
|
}
|
|
@@ -569,23 +824,22 @@ async function getExchangeAssets(exchange, params, config = {}) {
|
|
|
569
824
|
* Generated by Kubb (https://kubb.dev/).
|
|
570
825
|
* Do not edit manually.
|
|
571
826
|
*/
|
|
572
|
-
function
|
|
827
|
+
function getGetCardReturnUrl(orderId, outcome) {
|
|
573
828
|
return {
|
|
574
829
|
method: "GET",
|
|
575
|
-
url: `/v1/
|
|
830
|
+
url: `/v1/card/return/${orderId}/${outcome}`
|
|
576
831
|
};
|
|
577
832
|
}
|
|
578
833
|
/**
|
|
579
|
-
* @description
|
|
580
|
-
* @summary
|
|
581
|
-
* {@link /v1/
|
|
834
|
+
* @description The page that the authentication step of the card provider returns to. The page sends the result to the page that holds it, then closes itself. A client does not call this operation, and the response is HTML and not JSON.
|
|
835
|
+
* @summary Card authentication landing page
|
|
836
|
+
* {@link /v1/card/return/:orderId/:outcome}
|
|
582
837
|
*/
|
|
583
|
-
async function
|
|
838
|
+
async function getCardReturn(orderId, outcome, config = {}) {
|
|
584
839
|
const { client: request = client, ...requestConfig } = config;
|
|
585
840
|
return (await request({
|
|
586
841
|
method: "GET",
|
|
587
|
-
url:
|
|
588
|
-
params,
|
|
842
|
+
url: getGetCardReturnUrl(orderId, outcome).url.toString(),
|
|
589
843
|
...requestConfig
|
|
590
844
|
})).data;
|
|
591
845
|
}
|
|
@@ -593,22 +847,22 @@ async function getExchangeWithdrawal(exchange, id, params, config = {}) {
|
|
|
593
847
|
* Generated by Kubb (https://kubb.dev/).
|
|
594
848
|
* Do not edit manually.
|
|
595
849
|
*/
|
|
596
|
-
function
|
|
850
|
+
function getGetCashAppOrderUrl(id) {
|
|
597
851
|
return {
|
|
598
852
|
method: "GET",
|
|
599
|
-
url: `/v1/
|
|
853
|
+
url: `/v1/cashapp/orders/${id}`
|
|
600
854
|
};
|
|
601
855
|
}
|
|
602
856
|
/**
|
|
603
|
-
* @description Returns
|
|
604
|
-
* @summary
|
|
605
|
-
* {@link /v1/
|
|
857
|
+
* @description Returns one Cash App order, with its state and its payment URL.
|
|
858
|
+
* @summary Read a Cash App order
|
|
859
|
+
* {@link /v1/cashapp/orders/:id}
|
|
606
860
|
*/
|
|
607
|
-
async function
|
|
861
|
+
async function getCashAppOrder(id, config = {}) {
|
|
608
862
|
const { client: request = client, ...requestConfig } = config;
|
|
609
863
|
return (await request({
|
|
610
864
|
method: "GET",
|
|
611
|
-
url:
|
|
865
|
+
url: getGetCashAppOrderUrl(id).url.toString(),
|
|
612
866
|
...requestConfig
|
|
613
867
|
})).data;
|
|
614
868
|
}
|
|
@@ -616,24 +870,22 @@ async function getFxRates(config = {}) {
|
|
|
616
870
|
* Generated by Kubb (https://kubb.dev/).
|
|
617
871
|
* Do not edit manually.
|
|
618
872
|
*/
|
|
619
|
-
function
|
|
873
|
+
function getGetEmailSessionUrl() {
|
|
620
874
|
return {
|
|
621
|
-
method: "
|
|
622
|
-
url: `/v1/
|
|
875
|
+
method: "GET",
|
|
876
|
+
url: `/v1/auth/session`
|
|
623
877
|
};
|
|
624
878
|
}
|
|
625
879
|
/**
|
|
626
|
-
* @description Returns the
|
|
627
|
-
* @summary
|
|
628
|
-
* {@link /v1/
|
|
880
|
+
* @description Returns the email address and the wallet of the session. Each request makes the 30-day period of the session start again. A token for a different publishable key does not work here.
|
|
881
|
+
* @summary Read the session
|
|
882
|
+
* {@link /v1/auth/session}
|
|
629
883
|
*/
|
|
630
|
-
async function
|
|
884
|
+
async function getEmailSession(config = {}) {
|
|
631
885
|
const { client: request = client, ...requestConfig } = config;
|
|
632
|
-
const requestData = data;
|
|
633
886
|
return (await request({
|
|
634
|
-
method: "
|
|
635
|
-
url:
|
|
636
|
-
data: requestData,
|
|
887
|
+
method: "GET",
|
|
888
|
+
url: getGetEmailSessionUrl().url.toString(),
|
|
637
889
|
...requestConfig
|
|
638
890
|
})).data;
|
|
639
891
|
}
|
|
@@ -641,22 +893,22 @@ async function getIdentityVerificationUrl(data, config = {}) {
|
|
|
641
893
|
* Generated by Kubb (https://kubb.dev/).
|
|
642
894
|
* Do not edit manually.
|
|
643
895
|
*/
|
|
644
|
-
function
|
|
896
|
+
function getGetFxRatesUrl() {
|
|
645
897
|
return {
|
|
646
898
|
method: "GET",
|
|
647
|
-
url: `/v1/
|
|
899
|
+
url: `/v1/fx`
|
|
648
900
|
};
|
|
649
901
|
}
|
|
650
902
|
/**
|
|
651
|
-
* @description Returns
|
|
652
|
-
* @summary
|
|
653
|
-
* {@link /v1/
|
|
903
|
+
* @description Returns USD to currency rates, to show an amount in the display currency of the app.
|
|
904
|
+
* @summary Read the exchange rates
|
|
905
|
+
* {@link /v1/fx}
|
|
654
906
|
*/
|
|
655
|
-
async function
|
|
907
|
+
async function getFxRates(config = {}) {
|
|
656
908
|
const { client: request = client, ...requestConfig } = config;
|
|
657
909
|
return (await request({
|
|
658
910
|
method: "GET",
|
|
659
|
-
url:
|
|
911
|
+
url: getGetFxRatesUrl().url.toString(),
|
|
660
912
|
...requestConfig
|
|
661
913
|
})).data;
|
|
662
914
|
}
|
|
@@ -664,23 +916,22 @@ async function getStripeConfig(config = {}) {
|
|
|
664
916
|
* Generated by Kubb (https://kubb.dev/).
|
|
665
917
|
* Do not edit manually.
|
|
666
918
|
*/
|
|
667
|
-
function
|
|
919
|
+
function getGetIdentityVerificationUrlUrl() {
|
|
668
920
|
return {
|
|
669
921
|
method: "GET",
|
|
670
|
-
url: `/v1/
|
|
922
|
+
url: `/v1/virtual-accounts/identity-verification`
|
|
671
923
|
};
|
|
672
924
|
}
|
|
673
925
|
/**
|
|
674
|
-
* @description
|
|
675
|
-
* @summary
|
|
676
|
-
* {@link /v1/
|
|
926
|
+
* @description Returns the URL where the buyer verifies an identity. Open the URL for the buyer, then poll `GET /v1/virtual-accounts/status` for the result.
|
|
927
|
+
* @summary Read the identity-verification URL
|
|
928
|
+
* {@link /v1/virtual-accounts/identity-verification}
|
|
677
929
|
*/
|
|
678
|
-
async function
|
|
930
|
+
async function getIdentityVerificationUrl(config = {}) {
|
|
679
931
|
const { client: request = client, ...requestConfig } = config;
|
|
680
932
|
return (await request({
|
|
681
933
|
method: "GET",
|
|
682
|
-
url:
|
|
683
|
-
params,
|
|
934
|
+
url: getGetIdentityVerificationUrlUrl().url.toString(),
|
|
684
935
|
...requestConfig
|
|
685
936
|
})).data;
|
|
686
937
|
}
|
|
@@ -688,23 +939,22 @@ async function getStripeCustomerStatus(crypto_customer_id, params, config = {})
|
|
|
688
939
|
* Generated by Kubb (https://kubb.dev/).
|
|
689
940
|
* Do not edit manually.
|
|
690
941
|
*/
|
|
691
|
-
function
|
|
942
|
+
function getGetStripeConfigUrl() {
|
|
692
943
|
return {
|
|
693
944
|
method: "GET",
|
|
694
|
-
url: `/v1/stripe/
|
|
945
|
+
url: `/v1/stripe/config`
|
|
695
946
|
};
|
|
696
947
|
}
|
|
697
948
|
/**
|
|
698
|
-
* @description Returns the
|
|
699
|
-
* @summary
|
|
700
|
-
* {@link /v1/stripe/
|
|
949
|
+
* @description Returns the Stripe publishable key of the environment. Give it to `loadCryptoOnrampAndInitialize` in the Stripe client SDK.
|
|
950
|
+
* @summary Read the Stripe publishable key
|
|
951
|
+
* {@link /v1/stripe/config}
|
|
701
952
|
*/
|
|
702
|
-
async function
|
|
953
|
+
async function getStripeConfig(config = {}) {
|
|
703
954
|
const { client: request = client, ...requestConfig } = config;
|
|
704
955
|
return (await request({
|
|
705
956
|
method: "GET",
|
|
706
|
-
url:
|
|
707
|
-
params,
|
|
957
|
+
url: getGetStripeConfigUrl().url.toString(),
|
|
708
958
|
...requestConfig
|
|
709
959
|
})).data;
|
|
710
960
|
}
|
|
@@ -712,23 +962,45 @@ async function getStripeOrder(id, params, config = {}) {
|
|
|
712
962
|
* Generated by Kubb (https://kubb.dev/).
|
|
713
963
|
* Do not edit manually.
|
|
714
964
|
*/
|
|
715
|
-
function
|
|
965
|
+
function getGetStripeCustomerStatusUrl(id) {
|
|
716
966
|
return {
|
|
717
967
|
method: "GET",
|
|
718
|
-
url: `/v1/stripe/
|
|
968
|
+
url: `/v1/stripe/customers/${id}`
|
|
719
969
|
};
|
|
720
970
|
}
|
|
721
971
|
/**
|
|
722
|
-
* @description Returns
|
|
723
|
-
* @summary
|
|
724
|
-
* {@link /v1/stripe/
|
|
972
|
+
* @description Returns the identity-verification state and the document-verification state of the crypto customer, the fields that the buyer gave, the KYC region, and the state of the `l2` tier. Read it again while a verification page is open. This operation changes no data. `kyc_region` is `null` until the buyer gives basic identity details, then `us` or `eu` from the country of residence. An `eu` buyer can buy when `l2_status` is `verified` and `provided_fields` has both `identifiers` and `attestation`. `status` and `next_action` say what to do next, so a client does not need these rules: `status` is `requires_action` while the buyer has a step to complete, and `next_action.type` names it. `collect_identity` collects basic identity details, `collect_identifiers` the national identification numbers, `collect_attestation` the declaration, `verify_document` a photo ID and a selfie, and `await_verification` means Stripe is reviewing, so read the customer again. `verified` means the buyer can buy. `rejected` and `not_available` end the flow, and `next_action` is `null` for all three.
|
|
973
|
+
* @summary Read the identity-verification progress
|
|
974
|
+
* {@link /v1/stripe/customers/:id}
|
|
725
975
|
*/
|
|
726
|
-
async function
|
|
976
|
+
async function getStripeCustomerStatus(id, config = {}) {
|
|
727
977
|
const { client: request = client, ...requestConfig } = config;
|
|
728
978
|
return (await request({
|
|
729
979
|
method: "GET",
|
|
730
|
-
url:
|
|
731
|
-
|
|
980
|
+
url: getGetStripeCustomerStatusUrl(id).url.toString(),
|
|
981
|
+
...requestConfig
|
|
982
|
+
})).data;
|
|
983
|
+
}
|
|
984
|
+
/**
|
|
985
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
986
|
+
* Do not edit manually.
|
|
987
|
+
*/
|
|
988
|
+
function getGetStripeOrderUrl(id) {
|
|
989
|
+
return {
|
|
990
|
+
method: "GET",
|
|
991
|
+
url: `/v1/stripe/orders/${id}`
|
|
992
|
+
};
|
|
993
|
+
}
|
|
994
|
+
/**
|
|
995
|
+
* @description Returns the state of one onramp order. The operation finds only the orders of the wallet of the session. After the checkout, send this request again until the order is in a final state: `succeeded` or `failed`. `requires_payment_method` means the checkout has not run, and `pending` means Stripe is delivering the crypto.
|
|
996
|
+
* @summary Read a Stripe onramp order
|
|
997
|
+
* {@link /v1/stripe/orders/:id}
|
|
998
|
+
*/
|
|
999
|
+
async function getStripeOrder(id, config = {}) {
|
|
1000
|
+
const { client: request = client, ...requestConfig } = config;
|
|
1001
|
+
return (await request({
|
|
1002
|
+
method: "GET",
|
|
1003
|
+
url: getGetStripeOrderUrl(id).url.toString(),
|
|
732
1004
|
...requestConfig
|
|
733
1005
|
})).data;
|
|
734
1006
|
}
|
|
@@ -736,22 +1008,22 @@ async function getStripeQuote(params, config = {}) {
|
|
|
736
1008
|
* Generated by Kubb (https://kubb.dev/).
|
|
737
1009
|
* Do not edit manually.
|
|
738
1010
|
*/
|
|
739
|
-
function
|
|
1011
|
+
function getGetSwappedCheckoutUrl(id) {
|
|
740
1012
|
return {
|
|
741
1013
|
method: "GET",
|
|
742
|
-
url: `/v1/
|
|
1014
|
+
url: `/v1/swapped/checkouts/${id}`
|
|
743
1015
|
};
|
|
744
1016
|
}
|
|
745
1017
|
/**
|
|
746
|
-
* @description
|
|
747
|
-
* @summary
|
|
748
|
-
* {@link /v1/
|
|
1018
|
+
* @description Returns the state of one Swapped checkout. The operation finds only the checkouts of the wallet in the query. `routed` is `true` when the purchase needs two steps to reach the destination chain. In that case Swapped pays `settlement.intake_address`, and `status` describes the Swapped step only.
|
|
1019
|
+
* @summary Read a Swapped checkout
|
|
1020
|
+
* {@link /v1/swapped/checkouts/:id}
|
|
749
1021
|
*/
|
|
750
|
-
async function
|
|
1022
|
+
async function getSwappedCheckout(id, params, config = {}) {
|
|
751
1023
|
const { client: request = client, ...requestConfig } = config;
|
|
752
1024
|
return (await request({
|
|
753
1025
|
method: "GET",
|
|
754
|
-
url:
|
|
1026
|
+
url: getGetSwappedCheckoutUrl(id).url.toString(),
|
|
755
1027
|
params,
|
|
756
1028
|
...requestConfig
|
|
757
1029
|
})).data;
|
|
@@ -762,22 +1034,20 @@ async function getStripeStatus(params, config = {}) {
|
|
|
762
1034
|
*/
|
|
763
1035
|
function getGetTermsOfServiceUrlUrl() {
|
|
764
1036
|
return {
|
|
765
|
-
method: "
|
|
1037
|
+
method: "GET",
|
|
766
1038
|
url: `/v1/virtual-accounts/terms-of-service`
|
|
767
1039
|
};
|
|
768
1040
|
}
|
|
769
1041
|
/**
|
|
770
|
-
* @description Returns the
|
|
771
|
-
* @summary
|
|
1042
|
+
* @description Returns the URL where the buyer accepts the terms of service. Open the URL for the buyer, then poll `GET /v1/virtual-accounts/status`.
|
|
1043
|
+
* @summary Read the terms-of-service URL
|
|
772
1044
|
* {@link /v1/virtual-accounts/terms-of-service}
|
|
773
1045
|
*/
|
|
774
|
-
async function getTermsOfServiceUrl(
|
|
1046
|
+
async function getTermsOfServiceUrl(config = {}) {
|
|
775
1047
|
const { client: request = client, ...requestConfig } = config;
|
|
776
|
-
const requestData = data;
|
|
777
1048
|
return (await request({
|
|
778
|
-
method: "
|
|
1049
|
+
method: "GET",
|
|
779
1050
|
url: getGetTermsOfServiceUrlUrl().url.toString(),
|
|
780
|
-
data: requestData,
|
|
781
1051
|
...requestConfig
|
|
782
1052
|
})).data;
|
|
783
1053
|
}
|
|
@@ -792,16 +1062,15 @@ function getGetVirtualAccountStatusUrl() {
|
|
|
792
1062
|
};
|
|
793
1063
|
}
|
|
794
1064
|
/**
|
|
795
|
-
* @description Returns the bank
|
|
796
|
-
* @summary
|
|
1065
|
+
* @description Returns the bank onboarding state of the email of the session: if the buyer accepted the terms, and the state of the identity verification. The state belongs to the email address, so a buyer who onboarded in another app is already onboarded here. Until the email goes through `POST /v1/virtual-accounts/register`, the response is 404.
|
|
1066
|
+
* @summary Read the onboarding status
|
|
797
1067
|
* {@link /v1/virtual-accounts/status}
|
|
798
1068
|
*/
|
|
799
|
-
async function getVirtualAccountStatus(
|
|
1069
|
+
async function getVirtualAccountStatus(config = {}) {
|
|
800
1070
|
const { client: request = client, ...requestConfig } = config;
|
|
801
1071
|
return (await request({
|
|
802
1072
|
method: "GET",
|
|
803
1073
|
url: getGetVirtualAccountStatusUrl().url.toString(),
|
|
804
|
-
params,
|
|
805
1074
|
...requestConfig
|
|
806
1075
|
})).data;
|
|
807
1076
|
}
|
|
@@ -809,23 +1078,22 @@ async function getVirtualAccountStatus(params, config = {}) {
|
|
|
809
1078
|
* Generated by Kubb (https://kubb.dev/).
|
|
810
1079
|
* Do not edit manually.
|
|
811
1080
|
*/
|
|
812
|
-
function
|
|
1081
|
+
function getListCountriesUrl() {
|
|
813
1082
|
return {
|
|
814
1083
|
method: "GET",
|
|
815
|
-
url: `/v1/
|
|
1084
|
+
url: `/v1/countries`
|
|
816
1085
|
};
|
|
817
1086
|
}
|
|
818
1087
|
/**
|
|
819
|
-
* @description
|
|
820
|
-
* @summary List
|
|
821
|
-
* {@link /v1/
|
|
1088
|
+
* @description Lists the countries that a buyer can be in, in order of name. `code` is the 2-letter ISO-3166 code that the other operations take as `country`. `icon` is an absolute URL of the flag, as an SVG at the size to show.
|
|
1089
|
+
* @summary List the supported countries
|
|
1090
|
+
* {@link /v1/countries}
|
|
822
1091
|
*/
|
|
823
|
-
async function
|
|
1092
|
+
async function listCountries(config = {}) {
|
|
824
1093
|
const { client: request = client, ...requestConfig } = config;
|
|
825
1094
|
return (await request({
|
|
826
1095
|
method: "GET",
|
|
827
|
-
url:
|
|
828
|
-
params,
|
|
1096
|
+
url: getListCountriesUrl().url.toString(),
|
|
829
1097
|
...requestConfig
|
|
830
1098
|
})).data;
|
|
831
1099
|
}
|
|
@@ -833,24 +1101,23 @@ async function listBlinkDeposits(params, config = {}) {
|
|
|
833
1101
|
* Generated by Kubb (https://kubb.dev/).
|
|
834
1102
|
* Do not edit manually.
|
|
835
1103
|
*/
|
|
836
|
-
function
|
|
1104
|
+
function getListPaymentMethodsUrl() {
|
|
837
1105
|
return {
|
|
838
|
-
method: "
|
|
839
|
-
url: `/v1/
|
|
1106
|
+
method: "GET",
|
|
1107
|
+
url: `/v1/payment-methods`
|
|
840
1108
|
};
|
|
841
1109
|
}
|
|
842
1110
|
/**
|
|
843
|
-
* @description Lists the payment methods
|
|
844
|
-
* @summary List
|
|
845
|
-
* {@link /v1/
|
|
1111
|
+
* @description Lists the payment methods for a buyer in `country`, with one row for each method, in the order the app lists them, and bank transfer and Blink last. `currency` is the currency the buyer pays in, which the country decides, and the limits are in it. Send the `payment_method` value of a row to the quote operation and the checkout operation. `country` is a 2-letter ISO-3166 code from `GET /v1/countries`. Without `country`, the list is for the country of the buyer's IP address, or `US` where that is unknown, and `country` in the response names the country the list is for. For a country that Calm does not serve, the list is empty.
|
|
1112
|
+
* @summary List the payment methods
|
|
1113
|
+
* {@link /v1/payment-methods}
|
|
846
1114
|
*/
|
|
847
|
-
async function
|
|
1115
|
+
async function listPaymentMethods(params, config = {}) {
|
|
848
1116
|
const { client: request = client, ...requestConfig } = config;
|
|
849
|
-
const requestData = data;
|
|
850
1117
|
return (await request({
|
|
851
|
-
method: "
|
|
852
|
-
url:
|
|
853
|
-
|
|
1118
|
+
method: "GET",
|
|
1119
|
+
url: getListPaymentMethodsUrl().url.toString(),
|
|
1120
|
+
params,
|
|
854
1121
|
...requestConfig
|
|
855
1122
|
})).data;
|
|
856
1123
|
}
|
|
@@ -865,8 +1132,8 @@ function getListStripePaymentTokensUrl() {
|
|
|
865
1132
|
};
|
|
866
1133
|
}
|
|
867
1134
|
/**
|
|
868
|
-
* @description
|
|
869
|
-
* @summary List the
|
|
1135
|
+
* @description Lists the payment methods that the customer has on file. Read this operation before you call `collectPaymentMethod`, to offer a method that the buyer used before. `card` holds the brand, the expiry and the last four digits when `type` is `card`, and is `null` otherwise.
|
|
1136
|
+
* @summary List the payment methods of the customer
|
|
870
1137
|
* {@link /v1/stripe/payment-tokens}
|
|
871
1138
|
*/
|
|
872
1139
|
async function listStripePaymentTokens(params, config = {}) {
|
|
@@ -889,8 +1156,8 @@ function getListStripeWalletsUrl() {
|
|
|
889
1156
|
};
|
|
890
1157
|
}
|
|
891
1158
|
/**
|
|
892
|
-
* @description
|
|
893
|
-
* @summary List the
|
|
1159
|
+
* @description Lists the crypto wallets in the Link account of the customer. Read this operation before you call `registerWalletAddress`, so that you do not register the same address two times.
|
|
1160
|
+
* @summary List the crypto wallets of the customer
|
|
894
1161
|
* {@link /v1/stripe/wallets}
|
|
895
1162
|
*/
|
|
896
1163
|
async function listStripeWallets(params, config = {}) {
|
|
@@ -906,6 +1173,53 @@ async function listStripeWallets(params, config = {}) {
|
|
|
906
1173
|
* Generated by Kubb (https://kubb.dev/).
|
|
907
1174
|
* Do not edit manually.
|
|
908
1175
|
*/
|
|
1176
|
+
function getListSwappedCountriesUrl() {
|
|
1177
|
+
return {
|
|
1178
|
+
method: "GET",
|
|
1179
|
+
url: `/v1/swapped/countries`
|
|
1180
|
+
};
|
|
1181
|
+
}
|
|
1182
|
+
/**
|
|
1183
|
+
* @description Lists the countries that Swapped serves, in order of name. `code` is the 2-letter ISO-3166 code. `icon` is an absolute URL of the flag, as an SVG at the size to show. The list follows the Swapped catalog, so it changes when Swapped changes it.
|
|
1184
|
+
* @summary List the Swapped countries
|
|
1185
|
+
* {@link /v1/swapped/countries}
|
|
1186
|
+
*/
|
|
1187
|
+
async function listSwappedCountries(config = {}) {
|
|
1188
|
+
const { client: request = client, ...requestConfig } = config;
|
|
1189
|
+
return (await request({
|
|
1190
|
+
method: "GET",
|
|
1191
|
+
url: getListSwappedCountriesUrl().url.toString(),
|
|
1192
|
+
...requestConfig
|
|
1193
|
+
})).data;
|
|
1194
|
+
}
|
|
1195
|
+
/**
|
|
1196
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1197
|
+
* Do not edit manually.
|
|
1198
|
+
*/
|
|
1199
|
+
function getListSwappedPaymentMethodsUrl() {
|
|
1200
|
+
return {
|
|
1201
|
+
method: "GET",
|
|
1202
|
+
url: `/v1/swapped/payment-methods`
|
|
1203
|
+
};
|
|
1204
|
+
}
|
|
1205
|
+
/**
|
|
1206
|
+
* @description Lists the card, Apple Pay and Google Pay payment methods for `country`, in the `creditcard`, `apple-pay` and `google-pay` groups. `country` is a 2-letter ISO-3166 code from `GET /v1/swapped/countries`. `min_amount`, `max_amount`, `base_fee` and `min_fee` are in euro. A row with `disabled` set is one Swapped does not currently offer.
|
|
1207
|
+
* @summary List the Swapped payment methods
|
|
1208
|
+
* {@link /v1/swapped/payment-methods}
|
|
1209
|
+
*/
|
|
1210
|
+
async function listSwappedPaymentMethods(params, config = {}) {
|
|
1211
|
+
const { client: request = client, ...requestConfig } = config;
|
|
1212
|
+
return (await request({
|
|
1213
|
+
method: "GET",
|
|
1214
|
+
url: getListSwappedPaymentMethodsUrl().url.toString(),
|
|
1215
|
+
params,
|
|
1216
|
+
...requestConfig
|
|
1217
|
+
})).data;
|
|
1218
|
+
}
|
|
1219
|
+
/**
|
|
1220
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1221
|
+
* Do not edit manually.
|
|
1222
|
+
*/
|
|
909
1223
|
function getListVirtualAccountsUrl() {
|
|
910
1224
|
return {
|
|
911
1225
|
method: "GET",
|
|
@@ -913,16 +1227,15 @@ function getListVirtualAccountsUrl() {
|
|
|
913
1227
|
};
|
|
914
1228
|
}
|
|
915
1229
|
/**
|
|
916
|
-
* @description
|
|
917
|
-
* @summary List virtual accounts
|
|
1230
|
+
* @description Lists the virtual accounts of the wallet of the session, each one with the bank details that the buyer needs to send fiat. A wallet can hold more than one account for the same currency and chain, when the payout token is different. `destination.token` is the field that separates them, and the bank details of one account do not work for a different account.
|
|
1231
|
+
* @summary List the virtual accounts
|
|
918
1232
|
* {@link /v1/virtual-accounts}
|
|
919
1233
|
*/
|
|
920
|
-
async function listVirtualAccounts(
|
|
1234
|
+
async function listVirtualAccounts(config = {}) {
|
|
921
1235
|
const { client: request = client, ...requestConfig } = config;
|
|
922
1236
|
return (await request({
|
|
923
1237
|
method: "GET",
|
|
924
1238
|
url: getListVirtualAccountsUrl().url.toString(),
|
|
925
|
-
params,
|
|
926
1239
|
...requestConfig
|
|
927
1240
|
})).data;
|
|
928
1241
|
}
|
|
@@ -930,110 +1243,184 @@ async function listVirtualAccounts(params, config = {}) {
|
|
|
930
1243
|
* Generated by Kubb (https://kubb.dev/).
|
|
931
1244
|
* Do not edit manually.
|
|
932
1245
|
*/
|
|
933
|
-
function
|
|
1246
|
+
function getRegisterVirtualAccountCustomerUrl() {
|
|
934
1247
|
return {
|
|
935
1248
|
method: "POST",
|
|
936
1249
|
url: `/v1/virtual-accounts/register`
|
|
937
1250
|
};
|
|
938
1251
|
}
|
|
939
1252
|
/**
|
|
940
|
-
* @description
|
|
941
|
-
* @summary Register
|
|
1253
|
+
* @description Registers the buyer of the session with their name. Calm takes the email address from the session, so the body carries only the name. The registration belongs to the email address, in every app: a buyer who registered in another app gets `already_registered`. Read `GET /v1/virtual-accounts/status` again to see the new state.
|
|
1254
|
+
* @summary Register the buyer
|
|
942
1255
|
* {@link /v1/virtual-accounts/register}
|
|
943
1256
|
*/
|
|
944
|
-
async function
|
|
1257
|
+
async function registerVirtualAccountCustomer(data, config = {}) {
|
|
945
1258
|
const { client: request = client, ...requestConfig } = config;
|
|
946
1259
|
const requestData = data;
|
|
947
1260
|
return (await request({
|
|
948
1261
|
method: "POST",
|
|
949
|
-
url:
|
|
1262
|
+
url: getRegisterVirtualAccountCustomerUrl().url.toString(),
|
|
950
1263
|
data: requestData,
|
|
951
1264
|
...requestConfig
|
|
952
1265
|
})).data;
|
|
953
1266
|
}
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
}
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
};
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1267
|
+
/**
|
|
1268
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1269
|
+
* Do not edit manually.
|
|
1270
|
+
*/
|
|
1271
|
+
function getResolveStripeDestinationUrl() {
|
|
1272
|
+
return {
|
|
1273
|
+
method: "POST",
|
|
1274
|
+
url: `/v1/stripe/destination`
|
|
1275
|
+
};
|
|
1276
|
+
}
|
|
1277
|
+
/**
|
|
1278
|
+
* @description Returns where the purchase settles: the chain and token in `destination`, the Stripe name of the network in `network`, and the address that receives the crypto in `address`. If the onramp serves the chain, these are that chain and the wallet of the buyer. If the onramp does not serve the chain, these are the origin network and an intake address that sends the crypto on. A `EUR` purchase settles on Ethereum, so every chain except Ethereum gets an intake address. Give the quote and the session the same `currency`. Register the address with `registerWalletAddress` before you open a session.
|
|
1279
|
+
* @summary Resolve the Stripe destination for a chain
|
|
1280
|
+
* {@link /v1/stripe/destination}
|
|
1281
|
+
*/
|
|
1282
|
+
async function resolveStripeDestination(data, config = {}) {
|
|
1283
|
+
const { client: request = client, ...requestConfig } = config;
|
|
1284
|
+
const requestData = data;
|
|
1285
|
+
return (await request({
|
|
1286
|
+
method: "POST",
|
|
1287
|
+
url: getResolveStripeDestinationUrl().url.toString(),
|
|
1288
|
+
data: requestData,
|
|
1289
|
+
...requestConfig
|
|
1290
|
+
})).data;
|
|
1291
|
+
}
|
|
1292
|
+
/**
|
|
1293
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1294
|
+
* Do not edit manually.
|
|
1295
|
+
*/
|
|
1296
|
+
function getRevokeEmailSessionUrl() {
|
|
1297
|
+
return {
|
|
1298
|
+
method: "DELETE",
|
|
1299
|
+
url: `/v1/auth/session`
|
|
1300
|
+
};
|
|
1301
|
+
}
|
|
1302
|
+
/**
|
|
1303
|
+
* @description Ends the session that the token names. After this, the token stops working.
|
|
1304
|
+
* @summary End the session
|
|
1305
|
+
* {@link /v1/auth/session}
|
|
1306
|
+
*/
|
|
1307
|
+
async function revokeEmailSession(config = {}) {
|
|
1308
|
+
const { client: request = client, ...requestConfig } = config;
|
|
1309
|
+
return (await request({
|
|
1310
|
+
method: "DELETE",
|
|
1311
|
+
url: getRevokeEmailSessionUrl().url.toString(),
|
|
1312
|
+
...requestConfig
|
|
1313
|
+
})).data;
|
|
1314
|
+
}
|
|
1315
|
+
/**
|
|
1316
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1317
|
+
* Do not edit manually.
|
|
1318
|
+
*/
|
|
1319
|
+
function getStartEmailLoginUrl() {
|
|
1320
|
+
return {
|
|
1321
|
+
method: "POST",
|
|
1322
|
+
url: `/v1/auth/email/start`
|
|
1323
|
+
};
|
|
1324
|
+
}
|
|
1325
|
+
/**
|
|
1326
|
+
* @description Sends a six-digit code to the email address. The code is valid for 10 minutes and works only with the wallet in the request. Calm does not say if the address is already registered. If you send the request again, the new code replaces the old code. A second request for the same address within 30 seconds is refused. A new code does not reset the count of wrong attempts.
|
|
1327
|
+
* @summary Send a login code
|
|
1328
|
+
* {@link /v1/auth/email/start}
|
|
1329
|
+
*/
|
|
1330
|
+
async function startEmailLogin(data, config = {}) {
|
|
1331
|
+
const { client: request = client, ...requestConfig } = config;
|
|
1332
|
+
const requestData = data;
|
|
1333
|
+
return (await request({
|
|
1334
|
+
method: "POST",
|
|
1335
|
+
url: getStartEmailLoginUrl().url.toString(),
|
|
1336
|
+
data: requestData,
|
|
1337
|
+
...requestConfig
|
|
1338
|
+
})).data;
|
|
1339
|
+
}
|
|
1340
|
+
/**
|
|
1341
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1342
|
+
* Do not edit manually.
|
|
1343
|
+
*/
|
|
1344
|
+
function getVerifyEmailLoginUrl() {
|
|
1345
|
+
return {
|
|
1346
|
+
method: "POST",
|
|
1347
|
+
url: `/v1/auth/email/verify`
|
|
1348
|
+
};
|
|
1349
|
+
}
|
|
1350
|
+
/**
|
|
1351
|
+
* @description Exchanges the code for a session token. Send the token in the `Authorization` header as `Bearer <token>` on every operation behind the login. The token works only with the wallet and the publishable key in this request. The session is valid for 30 days after its last use. Each code works one time only. The buyer has seven attempts in 10 minutes, and a new code does not reset them.
|
|
1352
|
+
* @summary Exchange a login code for a session token
|
|
1353
|
+
* {@link /v1/auth/email/verify}
|
|
1354
|
+
*/
|
|
1355
|
+
async function verifyEmailLogin(data, config = {}) {
|
|
1356
|
+
const { client: request = client, ...requestConfig } = config;
|
|
1357
|
+
const requestData = data;
|
|
1358
|
+
return (await request({
|
|
1359
|
+
method: "POST",
|
|
1360
|
+
url: getVerifyEmailLoginUrl().url.toString(),
|
|
1361
|
+
data: requestData,
|
|
1362
|
+
...requestConfig
|
|
1363
|
+
})).data;
|
|
1364
|
+
}
|
|
1365
|
+
/**
|
|
1366
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1367
|
+
* Do not edit manually.
|
|
1368
|
+
*/
|
|
1369
|
+
const paymentMethodTypeEnum = {
|
|
1370
|
+
debit: "debit",
|
|
1371
|
+
credit: "credit",
|
|
1372
|
+
prepaid: "prepaid",
|
|
1373
|
+
store: "store"
|
|
1000
1374
|
};
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
"
|
|
1007
|
-
"
|
|
1008
|
-
"137": 137,
|
|
1009
|
-
"42161": 42161
|
|
1375
|
+
/**
|
|
1376
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1377
|
+
* Do not edit manually.
|
|
1378
|
+
*/
|
|
1379
|
+
const mountPaymentEnvironmentEnum = {
|
|
1380
|
+
staging: "staging",
|
|
1381
|
+
production: "production"
|
|
1010
1382
|
};
|
|
1011
|
-
const
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
AUSD: "AUSD",
|
|
1015
|
-
"USDC.e": "USDC.e"
|
|
1383
|
+
const verifyIdentityEnvironmentEnum = {
|
|
1384
|
+
staging: "staging",
|
|
1385
|
+
production: "production"
|
|
1016
1386
|
};
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1387
|
+
/**
|
|
1388
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1389
|
+
* Do not edit manually.
|
|
1390
|
+
*/
|
|
1391
|
+
const cardOrderEventStatusEnum = {
|
|
1392
|
+
"card.requires_payment_method": "card.requires_payment_method",
|
|
1393
|
+
"card.requires_action": "card.requires_action",
|
|
1394
|
+
"card.pending": "card.pending",
|
|
1395
|
+
"card.charged": "card.charged",
|
|
1396
|
+
"card.succeeded": "card.succeeded",
|
|
1397
|
+
"card.disputed": "card.disputed",
|
|
1398
|
+
"card.declined": "card.declined",
|
|
1399
|
+
"card.failed": "card.failed",
|
|
1400
|
+
"card.refunded": "card.refunded"
|
|
1020
1401
|
};
|
|
1021
|
-
|
|
1402
|
+
/**
|
|
1403
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1404
|
+
* Do not edit manually.
|
|
1405
|
+
*/
|
|
1406
|
+
const cardOrderStatusEnum = {
|
|
1407
|
+
requires_payment_method: "requires_payment_method",
|
|
1408
|
+
requires_action: "requires_action",
|
|
1022
1409
|
pending: "pending",
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
awaiting_approval: "awaiting_approval",
|
|
1028
|
-
delivering: "delivering",
|
|
1029
|
-
completed: "completed",
|
|
1410
|
+
charged: "charged",
|
|
1411
|
+
succeeded: "succeeded",
|
|
1412
|
+
disputed: "disputed",
|
|
1413
|
+
declined: "declined",
|
|
1030
1414
|
failed: "failed",
|
|
1031
|
-
refunding: "refunding",
|
|
1032
1415
|
refunded: "refunded",
|
|
1033
|
-
|
|
1034
|
-
|
|
1416
|
+
verification_failed: "verification_failed",
|
|
1417
|
+
unavailable: "unavailable"
|
|
1035
1418
|
};
|
|
1036
|
-
|
|
1419
|
+
/**
|
|
1420
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1421
|
+
* Do not edit manually.
|
|
1422
|
+
*/
|
|
1423
|
+
const chainEnum = {
|
|
1037
1424
|
"1": 1,
|
|
1038
1425
|
"8453": 8453,
|
|
1039
1426
|
"999": 999,
|
|
@@ -1041,120 +1428,365 @@ const createCashAppOrderMutationRequestDestinationChainEnum = {
|
|
|
1041
1428
|
"4326": 4326,
|
|
1042
1429
|
"143": 143,
|
|
1043
1430
|
"137": 137,
|
|
1044
|
-
"42161": 42161
|
|
1431
|
+
"42161": 42161,
|
|
1432
|
+
"4663": 4663,
|
|
1433
|
+
"3586256": 3586256
|
|
1045
1434
|
};
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1435
|
+
/**
|
|
1436
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1437
|
+
* Do not edit manually.
|
|
1438
|
+
*/
|
|
1439
|
+
const checkoutStripeSession400ErrorCodeEnum = {
|
|
1440
|
+
idempotency_key_required: "idempotency_key_required",
|
|
1441
|
+
validation_error: "validation_error"
|
|
1051
1442
|
};
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
"
|
|
1058
|
-
"
|
|
1059
|
-
"
|
|
1060
|
-
"42161": 42161
|
|
1443
|
+
/**
|
|
1444
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1445
|
+
* Do not edit manually.
|
|
1446
|
+
*/
|
|
1447
|
+
const checkoutStripeSession401ErrorCodeEnum = {
|
|
1448
|
+
invalid_publishable_key: "invalid_publishable_key",
|
|
1449
|
+
publishable_key_missing: "publishable_key_missing",
|
|
1450
|
+
stripe_auth_required: "stripe_auth_required"
|
|
1061
1451
|
};
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1452
|
+
/**
|
|
1453
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1454
|
+
* Do not edit manually.
|
|
1455
|
+
*/
|
|
1456
|
+
const checkoutStripeSession402ErrorCodeEnum = {
|
|
1457
|
+
card_declined: "card_declined",
|
|
1458
|
+
stripe_transaction_blocked: "stripe_transaction_blocked"
|
|
1067
1459
|
};
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
"
|
|
1074
|
-
"
|
|
1075
|
-
"143": 143,
|
|
1076
|
-
"137": 137,
|
|
1077
|
-
"42161": 42161
|
|
1460
|
+
/**
|
|
1461
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1462
|
+
* Do not edit manually.
|
|
1463
|
+
*/
|
|
1464
|
+
const checkoutStripeSession403ErrorCodeEnum = {
|
|
1465
|
+
origin_not_allowed: "origin_not_allowed",
|
|
1466
|
+
payment_method_not_enabled: "payment_method_not_enabled"
|
|
1078
1467
|
};
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1468
|
+
/**
|
|
1469
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1470
|
+
* Do not edit manually.
|
|
1471
|
+
*/
|
|
1472
|
+
const checkoutStripeSession404ErrorCodeEnum = { stripe_resource_not_found: "stripe_resource_not_found" };
|
|
1473
|
+
/**
|
|
1474
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1475
|
+
* Do not edit manually.
|
|
1476
|
+
*/
|
|
1477
|
+
const checkoutStripeSession409ErrorCodeEnum = { idempotency_key_in_use: "idempotency_key_in_use" };
|
|
1478
|
+
/**
|
|
1479
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1480
|
+
* Do not edit manually.
|
|
1481
|
+
*/
|
|
1482
|
+
const checkoutStripeSession422ErrorCodeEnum = { idempotency_key_mismatch: "idempotency_key_mismatch" };
|
|
1483
|
+
/**
|
|
1484
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1485
|
+
* Do not edit manually.
|
|
1486
|
+
*/
|
|
1487
|
+
const confirmCardOrder400ErrorCodeEnum = {
|
|
1488
|
+
card_3d_secure_challenge_failed: "card_3d_secure_challenge_failed",
|
|
1489
|
+
card_3d_secure_rejected: "card_3d_secure_rejected",
|
|
1490
|
+
card_3d_secure_verification_failed: "card_3d_secure_verification_failed",
|
|
1491
|
+
card_account_blocked: "card_account_blocked",
|
|
1492
|
+
card_account_closed: "card_account_closed",
|
|
1493
|
+
card_account_not_activated: "card_account_not_activated",
|
|
1494
|
+
card_activity_limit_exceeded: "card_activity_limit_exceeded",
|
|
1495
|
+
card_address_mismatch: "card_address_mismatch",
|
|
1496
|
+
card_brand_unsupported: "card_brand_unsupported",
|
|
1497
|
+
card_chargeback_protection_declined: "card_chargeback_protection_declined",
|
|
1498
|
+
card_contact_issuer: "card_contact_issuer",
|
|
1499
|
+
card_country_unsupported: "card_country_unsupported",
|
|
1500
|
+
card_daily_purchase_limit_reached: "card_daily_purchase_limit_reached",
|
|
1501
|
+
card_do_not_honor: "card_do_not_honor",
|
|
1502
|
+
card_exceeds_withdrawal_limit: "card_exceeds_withdrawal_limit",
|
|
1503
|
+
card_expired: "card_expired",
|
|
1504
|
+
card_fraud_security_decline: "card_fraud_security_decline",
|
|
1505
|
+
card_insufficient_funds: "card_insufficient_funds",
|
|
1506
|
+
card_invalid_amount: "card_invalid_amount",
|
|
1507
|
+
card_invalid_input: "card_invalid_input",
|
|
1508
|
+
card_invalid_number: "card_invalid_number",
|
|
1509
|
+
card_invalid_transaction: "card_invalid_transaction",
|
|
1510
|
+
card_issuing_country_unsupported: "card_issuing_country_unsupported",
|
|
1511
|
+
card_limit_exceeded: "card_limit_exceeded",
|
|
1512
|
+
card_location_unsupported: "card_location_unsupported",
|
|
1513
|
+
card_locked: "card_locked",
|
|
1514
|
+
card_lost: "card_lost",
|
|
1515
|
+
card_name_mismatch: "card_name_mismatch",
|
|
1516
|
+
card_no_such_issuer: "card_no_such_issuer",
|
|
1517
|
+
card_not_activated: "card_not_activated",
|
|
1518
|
+
card_partial_approval: "card_partial_approval",
|
|
1519
|
+
card_payment_method_blocked: "card_payment_method_blocked",
|
|
1520
|
+
card_payment_method_in_use: "card_payment_method_in_use",
|
|
1521
|
+
card_pickup: "card_pickup",
|
|
1522
|
+
card_pickup_special_condition: "card_pickup_special_condition",
|
|
1523
|
+
card_quote_price_changed: "card_quote_price_changed",
|
|
1524
|
+
card_record_not_found: "card_record_not_found",
|
|
1525
|
+
card_reenter_transaction: "card_reenter_transaction",
|
|
1526
|
+
card_refer_to_issuer: "card_refer_to_issuer",
|
|
1527
|
+
card_refer_to_issuer_special_condition: "card_refer_to_issuer_special_condition",
|
|
1528
|
+
card_security_code_mismatch: "card_security_code_mismatch",
|
|
1529
|
+
card_security_violation: "card_security_violation",
|
|
1530
|
+
card_state_unsupported: "card_state_unsupported",
|
|
1531
|
+
card_state_unsupported_by_ip_address: "card_state_unsupported_by_ip_address",
|
|
1532
|
+
card_stolen: "card_stolen",
|
|
1533
|
+
card_suspected_fraud: "card_suspected_fraud",
|
|
1534
|
+
card_transaction_frequency_limit_exceeded: "card_transaction_frequency_limit_exceeded",
|
|
1535
|
+
card_transaction_not_permitted: "card_transaction_not_permitted",
|
|
1536
|
+
card_transaction_not_supported: "card_transaction_not_supported",
|
|
1537
|
+
card_violation: "card_violation",
|
|
1538
|
+
idempotency_key_required: "idempotency_key_required",
|
|
1539
|
+
recipient_invalid: "recipient_invalid",
|
|
1540
|
+
unsupported_chain: "unsupported_chain",
|
|
1541
|
+
unsupported_route: "unsupported_route",
|
|
1542
|
+
validation_error: "validation_error"
|
|
1084
1543
|
};
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
"
|
|
1091
|
-
"
|
|
1092
|
-
"
|
|
1093
|
-
"42161": 42161
|
|
1544
|
+
/**
|
|
1545
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1546
|
+
* Do not edit manually.
|
|
1547
|
+
*/
|
|
1548
|
+
const confirmCardOrder401ErrorCodeEnum = {
|
|
1549
|
+
invalid_publishable_key: "invalid_publishable_key",
|
|
1550
|
+
publishable_key_missing: "publishable_key_missing",
|
|
1551
|
+
session_required: "session_required"
|
|
1094
1552
|
};
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1553
|
+
/**
|
|
1554
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1555
|
+
* Do not edit manually.
|
|
1556
|
+
*/
|
|
1557
|
+
const confirmCardOrder402ErrorCodeEnum = { card_declined: "card_declined" };
|
|
1558
|
+
/**
|
|
1559
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1560
|
+
* Do not edit manually.
|
|
1561
|
+
*/
|
|
1562
|
+
const confirmCardOrder403ErrorCodeEnum = {
|
|
1563
|
+
card_identity_required: "card_identity_required",
|
|
1564
|
+
origin_not_allowed: "origin_not_allowed",
|
|
1565
|
+
payment_method_not_enabled: "payment_method_not_enabled",
|
|
1566
|
+
wallet_sanctioned: "wallet_sanctioned"
|
|
1104
1567
|
};
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1568
|
+
/**
|
|
1569
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1570
|
+
* Do not edit manually.
|
|
1571
|
+
*/
|
|
1572
|
+
const confirmCardOrder404ErrorCodeEnum = {
|
|
1573
|
+
lighter_account_not_found: "lighter_account_not_found",
|
|
1574
|
+
order_not_found: "order_not_found"
|
|
1110
1575
|
};
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1576
|
+
/**
|
|
1577
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1578
|
+
* Do not edit manually.
|
|
1579
|
+
*/
|
|
1580
|
+
const confirmCardOrder409ErrorCodeEnum = {
|
|
1581
|
+
idempotency_key_in_use: "idempotency_key_in_use",
|
|
1582
|
+
next_action_mismatch: "next_action_mismatch"
|
|
1115
1583
|
};
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1584
|
+
/**
|
|
1585
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1586
|
+
* Do not edit manually.
|
|
1587
|
+
*/
|
|
1588
|
+
const confirmCardOrder415ErrorCodeEnum = { unsupported_media_type: "unsupported_media_type" };
|
|
1589
|
+
/**
|
|
1590
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1591
|
+
* Do not edit manually.
|
|
1592
|
+
*/
|
|
1593
|
+
const confirmCardOrder422ErrorCodeEnum = { idempotency_key_mismatch: "idempotency_key_mismatch" };
|
|
1594
|
+
/**
|
|
1595
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1596
|
+
* Do not edit manually.
|
|
1597
|
+
*/
|
|
1598
|
+
const createApplePaySession400ErrorCodeEnum = { validation_error: "validation_error" };
|
|
1599
|
+
/**
|
|
1600
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1601
|
+
* Do not edit manually.
|
|
1602
|
+
*/
|
|
1603
|
+
const createApplePaySession401ErrorCodeEnum = {
|
|
1604
|
+
invalid_publishable_key: "invalid_publishable_key",
|
|
1605
|
+
publishable_key_missing: "publishable_key_missing",
|
|
1606
|
+
session_required: "session_required"
|
|
1125
1607
|
};
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1608
|
+
/**
|
|
1609
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1610
|
+
* Do not edit manually.
|
|
1611
|
+
*/
|
|
1612
|
+
const createApplePaySession403ErrorCodeEnum = {
|
|
1613
|
+
origin_not_allowed: "origin_not_allowed",
|
|
1614
|
+
payment_method_not_enabled: "payment_method_not_enabled"
|
|
1131
1615
|
};
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1616
|
+
/**
|
|
1617
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1618
|
+
* Do not edit manually.
|
|
1619
|
+
*/
|
|
1620
|
+
const createApplePaySession404ErrorCodeEnum = { order_not_found: "order_not_found" };
|
|
1621
|
+
/**
|
|
1622
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1623
|
+
* Do not edit manually.
|
|
1624
|
+
*/
|
|
1625
|
+
const createApplePaySession409ErrorCodeEnum = { next_action_mismatch: "next_action_mismatch" };
|
|
1626
|
+
const createBlinkSignatureMutationRequestCurrencyEnum = { USD: "USD" };
|
|
1627
|
+
/**
|
|
1628
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1629
|
+
* Do not edit manually.
|
|
1630
|
+
*/
|
|
1631
|
+
const createBlinkSignature400ErrorCodeEnum = {
|
|
1632
|
+
unsupported_chain: "unsupported_chain",
|
|
1633
|
+
validation_error: "validation_error"
|
|
1140
1634
|
};
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
"
|
|
1147
|
-
"
|
|
1148
|
-
"137": 137,
|
|
1149
|
-
"42161": 42161
|
|
1635
|
+
/**
|
|
1636
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1637
|
+
* Do not edit manually.
|
|
1638
|
+
*/
|
|
1639
|
+
const createBlinkSignature401ErrorCodeEnum = {
|
|
1640
|
+
invalid_publishable_key: "invalid_publishable_key",
|
|
1641
|
+
publishable_key_missing: "publishable_key_missing"
|
|
1150
1642
|
};
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1643
|
+
/**
|
|
1644
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1645
|
+
* Do not edit manually.
|
|
1646
|
+
*/
|
|
1647
|
+
const createBlinkSignature403ErrorCodeEnum = {
|
|
1648
|
+
origin_not_allowed: "origin_not_allowed",
|
|
1649
|
+
payment_method_not_enabled: "payment_method_not_enabled"
|
|
1156
1650
|
};
|
|
1157
|
-
|
|
1651
|
+
/**
|
|
1652
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1653
|
+
* Do not edit manually.
|
|
1654
|
+
*/
|
|
1655
|
+
const createBlinkSignature415ErrorCodeEnum = { unsupported_media_type: "unsupported_media_type" };
|
|
1656
|
+
const createCardFcaSubmission200StatusEnum = {
|
|
1657
|
+
CATEGORIZATION_PENDING: "CATEGORIZATION_PENDING",
|
|
1658
|
+
AGREEMENT_PENDING: "AGREEMENT_PENDING",
|
|
1659
|
+
RISK_ASSESSMENT_PENDING: "RISK_ASSESSMENT_PENDING",
|
|
1660
|
+
RISK_ASSESSMENT_FAILED: "RISK_ASSESSMENT_FAILED",
|
|
1661
|
+
COOLING_PERIOD: "COOLING_PERIOD",
|
|
1662
|
+
BLOCKED_RETRY: "BLOCKED_RETRY",
|
|
1663
|
+
COMPLETED: "COMPLETED"
|
|
1664
|
+
};
|
|
1665
|
+
/**
|
|
1666
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1667
|
+
* Do not edit manually.
|
|
1668
|
+
*/
|
|
1669
|
+
const createCardFcaSubmission400ErrorCodeEnum = { validation_error: "validation_error" };
|
|
1670
|
+
/**
|
|
1671
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1672
|
+
* Do not edit manually.
|
|
1673
|
+
*/
|
|
1674
|
+
const createCardFcaSubmission401ErrorCodeEnum = {
|
|
1675
|
+
invalid_publishable_key: "invalid_publishable_key",
|
|
1676
|
+
publishable_key_missing: "publishable_key_missing",
|
|
1677
|
+
session_required: "session_required"
|
|
1678
|
+
};
|
|
1679
|
+
/**
|
|
1680
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1681
|
+
* Do not edit manually.
|
|
1682
|
+
*/
|
|
1683
|
+
const createCardFcaSubmission403ErrorCodeEnum = {
|
|
1684
|
+
card_identity_required: "card_identity_required",
|
|
1685
|
+
origin_not_allowed: "origin_not_allowed",
|
|
1686
|
+
payment_method_not_enabled: "payment_method_not_enabled"
|
|
1687
|
+
};
|
|
1688
|
+
/**
|
|
1689
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1690
|
+
* Do not edit manually.
|
|
1691
|
+
*/
|
|
1692
|
+
const createCardFcaSubmission415ErrorCodeEnum = { unsupported_media_type: "unsupported_media_type" };
|
|
1693
|
+
const appearanceColorModeEnum = {
|
|
1694
|
+
light: "light",
|
|
1695
|
+
dark: "dark"
|
|
1696
|
+
};
|
|
1697
|
+
/**
|
|
1698
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1699
|
+
* Do not edit manually.
|
|
1700
|
+
*/
|
|
1701
|
+
const createCardOrder400ErrorCodeEnum = {
|
|
1702
|
+
card_quote_expired: "card_quote_expired",
|
|
1703
|
+
idempotency_key_required: "idempotency_key_required",
|
|
1704
|
+
recipient_invalid: "recipient_invalid",
|
|
1705
|
+
unsupported_chain: "unsupported_chain",
|
|
1706
|
+
unsupported_route: "unsupported_route",
|
|
1707
|
+
validation_error: "validation_error"
|
|
1708
|
+
};
|
|
1709
|
+
/**
|
|
1710
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1711
|
+
* Do not edit manually.
|
|
1712
|
+
*/
|
|
1713
|
+
const createCardOrder401ErrorCodeEnum = {
|
|
1714
|
+
invalid_publishable_key: "invalid_publishable_key",
|
|
1715
|
+
publishable_key_missing: "publishable_key_missing",
|
|
1716
|
+
session_required: "session_required"
|
|
1717
|
+
};
|
|
1718
|
+
/**
|
|
1719
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1720
|
+
* Do not edit manually.
|
|
1721
|
+
*/
|
|
1722
|
+
const createCardOrder403ErrorCodeEnum = {
|
|
1723
|
+
card_identity_required: "card_identity_required",
|
|
1724
|
+
origin_not_allowed: "origin_not_allowed",
|
|
1725
|
+
payment_method_not_enabled: "payment_method_not_enabled",
|
|
1726
|
+
wallet_sanctioned: "wallet_sanctioned"
|
|
1727
|
+
};
|
|
1728
|
+
/**
|
|
1729
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1730
|
+
* Do not edit manually.
|
|
1731
|
+
*/
|
|
1732
|
+
const createCardOrder404ErrorCodeEnum = { lighter_account_not_found: "lighter_account_not_found" };
|
|
1733
|
+
/**
|
|
1734
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1735
|
+
* Do not edit manually.
|
|
1736
|
+
*/
|
|
1737
|
+
const createCardOrder409ErrorCodeEnum = { idempotency_key_in_use: "idempotency_key_in_use" };
|
|
1738
|
+
/**
|
|
1739
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1740
|
+
* Do not edit manually.
|
|
1741
|
+
*/
|
|
1742
|
+
const createCardOrder415ErrorCodeEnum = { unsupported_media_type: "unsupported_media_type" };
|
|
1743
|
+
/**
|
|
1744
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1745
|
+
* Do not edit manually.
|
|
1746
|
+
*/
|
|
1747
|
+
const createCardOrder422ErrorCodeEnum = { idempotency_key_mismatch: "idempotency_key_mismatch" };
|
|
1748
|
+
/**
|
|
1749
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1750
|
+
* Do not edit manually.
|
|
1751
|
+
*/
|
|
1752
|
+
const createCardQuote400ErrorCodeEnum = {
|
|
1753
|
+
card_limit_exceeded: "card_limit_exceeded",
|
|
1754
|
+
card_quote_expired: "card_quote_expired",
|
|
1755
|
+
recipient_invalid: "recipient_invalid",
|
|
1756
|
+
unsupported_chain: "unsupported_chain",
|
|
1757
|
+
unsupported_route: "unsupported_route",
|
|
1758
|
+
validation_error: "validation_error"
|
|
1759
|
+
};
|
|
1760
|
+
/**
|
|
1761
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1762
|
+
* Do not edit manually.
|
|
1763
|
+
*/
|
|
1764
|
+
const createCardQuote401ErrorCodeEnum = {
|
|
1765
|
+
invalid_publishable_key: "invalid_publishable_key",
|
|
1766
|
+
publishable_key_missing: "publishable_key_missing",
|
|
1767
|
+
session_required: "session_required"
|
|
1768
|
+
};
|
|
1769
|
+
/**
|
|
1770
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1771
|
+
* Do not edit manually.
|
|
1772
|
+
*/
|
|
1773
|
+
const createCardQuote403ErrorCodeEnum = {
|
|
1774
|
+
card_identity_required: "card_identity_required",
|
|
1775
|
+
origin_not_allowed: "origin_not_allowed",
|
|
1776
|
+
payment_method_not_enabled: "payment_method_not_enabled",
|
|
1777
|
+
wallet_sanctioned: "wallet_sanctioned"
|
|
1778
|
+
};
|
|
1779
|
+
/**
|
|
1780
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1781
|
+
* Do not edit manually.
|
|
1782
|
+
*/
|
|
1783
|
+
const createCardQuote404ErrorCodeEnum = { lighter_account_not_found: "lighter_account_not_found" };
|
|
1784
|
+
/**
|
|
1785
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1786
|
+
* Do not edit manually.
|
|
1787
|
+
*/
|
|
1788
|
+
const createCardQuote415ErrorCodeEnum = { unsupported_media_type: "unsupported_media_type" };
|
|
1789
|
+
const createCashAppOrder200StatusEnum = {
|
|
1158
1790
|
pending: "pending",
|
|
1159
1791
|
processing: "processing",
|
|
1160
1792
|
confirming: "confirming",
|
|
@@ -1162,56 +1794,1257 @@ const getCashAppOrder200StatusEnum = {
|
|
|
1162
1794
|
bridging: "bridging",
|
|
1163
1795
|
awaiting_approval: "awaiting_approval",
|
|
1164
1796
|
delivering: "delivering",
|
|
1165
|
-
|
|
1797
|
+
succeeded: "succeeded",
|
|
1166
1798
|
failed: "failed",
|
|
1167
1799
|
refunding: "refunding",
|
|
1168
1800
|
refunded: "refunded",
|
|
1169
1801
|
unfulfilled: "unfulfilled",
|
|
1170
1802
|
expired: "expired"
|
|
1171
1803
|
};
|
|
1172
|
-
const
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1804
|
+
const createCashAppOrderMutationRequestCurrencyEnum = { USD: "USD" };
|
|
1805
|
+
/**
|
|
1806
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1807
|
+
* Do not edit manually.
|
|
1808
|
+
*/
|
|
1809
|
+
const createCashAppOrder400ErrorCodeEnum = {
|
|
1810
|
+
amount_above_maximum: "amount_above_maximum",
|
|
1811
|
+
amount_below_minimum: "amount_below_minimum",
|
|
1812
|
+
idempotency_key_required: "idempotency_key_required",
|
|
1813
|
+
invalid_address: "invalid_address",
|
|
1814
|
+
price_impact_too_high: "price_impact_too_high",
|
|
1815
|
+
recipient_invalid: "recipient_invalid",
|
|
1816
|
+
unsupported_asset: "unsupported_asset",
|
|
1817
|
+
unsupported_chain: "unsupported_chain",
|
|
1818
|
+
unsupported_route: "unsupported_route",
|
|
1819
|
+
validation_error: "validation_error"
|
|
1181
1820
|
};
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1821
|
+
/**
|
|
1822
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1823
|
+
* Do not edit manually.
|
|
1824
|
+
*/
|
|
1825
|
+
const createCashAppOrder401ErrorCodeEnum = {
|
|
1826
|
+
invalid_publishable_key: "invalid_publishable_key",
|
|
1827
|
+
publishable_key_missing: "publishable_key_missing",
|
|
1828
|
+
session_required: "session_required"
|
|
1189
1829
|
};
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
paused: "paused",
|
|
1199
|
-
offboarded: "offboarded"
|
|
1830
|
+
/**
|
|
1831
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1832
|
+
* Do not edit manually.
|
|
1833
|
+
*/
|
|
1834
|
+
const createCashAppOrder403ErrorCodeEnum = {
|
|
1835
|
+
origin_not_allowed: "origin_not_allowed",
|
|
1836
|
+
payment_method_not_enabled: "payment_method_not_enabled",
|
|
1837
|
+
wallet_sanctioned: "wallet_sanctioned"
|
|
1200
1838
|
};
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1839
|
+
/**
|
|
1840
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1841
|
+
* Do not edit manually.
|
|
1842
|
+
*/
|
|
1843
|
+
const createCashAppOrder404ErrorCodeEnum = { lighter_account_not_found: "lighter_account_not_found" };
|
|
1844
|
+
/**
|
|
1845
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1846
|
+
* Do not edit manually.
|
|
1847
|
+
*/
|
|
1848
|
+
const createCashAppOrder409ErrorCodeEnum = { idempotency_key_in_use: "idempotency_key_in_use" };
|
|
1849
|
+
/**
|
|
1850
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1851
|
+
* Do not edit manually.
|
|
1852
|
+
*/
|
|
1853
|
+
const createCashAppOrder415ErrorCodeEnum = { unsupported_media_type: "unsupported_media_type" };
|
|
1854
|
+
/**
|
|
1855
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1856
|
+
* Do not edit manually.
|
|
1857
|
+
*/
|
|
1858
|
+
const createCashAppOrder422ErrorCodeEnum = { idempotency_key_mismatch: "idempotency_key_mismatch" };
|
|
1859
|
+
/**
|
|
1860
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1861
|
+
* Do not edit manually.
|
|
1862
|
+
*/
|
|
1863
|
+
const createCashAppOrder503ErrorCodeEnum = { rate_limited: "rate_limited" };
|
|
1864
|
+
const createCashAppQuoteMutationRequestCurrencyEnum = { USD: "USD" };
|
|
1865
|
+
/**
|
|
1866
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1867
|
+
* Do not edit manually.
|
|
1868
|
+
*/
|
|
1869
|
+
const createCashAppQuote400ErrorCodeEnum = {
|
|
1870
|
+
amount_above_maximum: "amount_above_maximum",
|
|
1871
|
+
amount_below_minimum: "amount_below_minimum",
|
|
1872
|
+
price_impact_too_high: "price_impact_too_high",
|
|
1873
|
+
recipient_invalid: "recipient_invalid",
|
|
1874
|
+
unsupported_asset: "unsupported_asset",
|
|
1875
|
+
unsupported_chain: "unsupported_chain",
|
|
1876
|
+
unsupported_route: "unsupported_route",
|
|
1877
|
+
validation_error: "validation_error"
|
|
1878
|
+
};
|
|
1879
|
+
/**
|
|
1880
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1881
|
+
* Do not edit manually.
|
|
1882
|
+
*/
|
|
1883
|
+
const createCashAppQuote401ErrorCodeEnum = {
|
|
1884
|
+
invalid_publishable_key: "invalid_publishable_key",
|
|
1885
|
+
publishable_key_missing: "publishable_key_missing",
|
|
1886
|
+
session_required: "session_required"
|
|
1887
|
+
};
|
|
1888
|
+
/**
|
|
1889
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1890
|
+
* Do not edit manually.
|
|
1891
|
+
*/
|
|
1892
|
+
const createCashAppQuote403ErrorCodeEnum = {
|
|
1893
|
+
origin_not_allowed: "origin_not_allowed",
|
|
1894
|
+
payment_method_not_enabled: "payment_method_not_enabled",
|
|
1895
|
+
wallet_sanctioned: "wallet_sanctioned"
|
|
1896
|
+
};
|
|
1897
|
+
/**
|
|
1898
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1899
|
+
* Do not edit manually.
|
|
1900
|
+
*/
|
|
1901
|
+
const createCashAppQuote404ErrorCodeEnum = { lighter_account_not_found: "lighter_account_not_found" };
|
|
1902
|
+
/**
|
|
1903
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1904
|
+
* Do not edit manually.
|
|
1905
|
+
*/
|
|
1906
|
+
const createCashAppQuote415ErrorCodeEnum = { unsupported_media_type: "unsupported_media_type" };
|
|
1907
|
+
/**
|
|
1908
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1909
|
+
* Do not edit manually.
|
|
1910
|
+
*/
|
|
1911
|
+
const createCashAppQuote503ErrorCodeEnum = { rate_limited: "rate_limited" };
|
|
1912
|
+
/**
|
|
1913
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1914
|
+
* Do not edit manually.
|
|
1915
|
+
*/
|
|
1916
|
+
const createStripeAuthIntent400ErrorCodeEnum = { validation_error: "validation_error" };
|
|
1917
|
+
/**
|
|
1918
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1919
|
+
* Do not edit manually.
|
|
1920
|
+
*/
|
|
1921
|
+
const createStripeAuthIntent401ErrorCodeEnum = {
|
|
1922
|
+
invalid_publishable_key: "invalid_publishable_key",
|
|
1923
|
+
publishable_key_missing: "publishable_key_missing"
|
|
1924
|
+
};
|
|
1925
|
+
/**
|
|
1926
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1927
|
+
* Do not edit manually.
|
|
1928
|
+
*/
|
|
1929
|
+
const createStripeAuthIntent403ErrorCodeEnum = {
|
|
1930
|
+
origin_not_allowed: "origin_not_allowed",
|
|
1931
|
+
payment_method_not_enabled: "payment_method_not_enabled"
|
|
1932
|
+
};
|
|
1933
|
+
/**
|
|
1934
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1935
|
+
* Do not edit manually.
|
|
1936
|
+
*/
|
|
1937
|
+
const createStripeAuthIntent404ErrorCodeEnum = { link_not_found: "link_not_found" };
|
|
1938
|
+
/**
|
|
1939
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1940
|
+
* Do not edit manually.
|
|
1941
|
+
*/
|
|
1942
|
+
const createStripeAuthIntent409ErrorCodeEnum = { link_revoked: "link_revoked" };
|
|
1943
|
+
/**
|
|
1944
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1945
|
+
* Do not edit manually.
|
|
1946
|
+
*/
|
|
1947
|
+
const createStripeAuthIntent415ErrorCodeEnum = { unsupported_media_type: "unsupported_media_type" };
|
|
1948
|
+
/**
|
|
1949
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1950
|
+
* Do not edit manually.
|
|
1951
|
+
*/
|
|
1952
|
+
const createStripeCustomer400ErrorCodeEnum = { validation_error: "validation_error" };
|
|
1953
|
+
/**
|
|
1954
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1955
|
+
* Do not edit manually.
|
|
1956
|
+
*/
|
|
1957
|
+
const createStripeCustomer401ErrorCodeEnum = {
|
|
1958
|
+
invalid_publishable_key: "invalid_publishable_key",
|
|
1959
|
+
publishable_key_missing: "publishable_key_missing",
|
|
1960
|
+
stripe_auth_required: "stripe_auth_required"
|
|
1961
|
+
};
|
|
1962
|
+
/**
|
|
1963
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1964
|
+
* Do not edit manually.
|
|
1965
|
+
*/
|
|
1966
|
+
const createStripeCustomer403ErrorCodeEnum = {
|
|
1967
|
+
origin_not_allowed: "origin_not_allowed",
|
|
1968
|
+
payment_method_not_enabled: "payment_method_not_enabled"
|
|
1206
1969
|
};
|
|
1207
|
-
|
|
1970
|
+
/**
|
|
1971
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1972
|
+
* Do not edit manually.
|
|
1973
|
+
*/
|
|
1974
|
+
const createStripeCustomer404ErrorCodeEnum = { stripe_resource_not_found: "stripe_resource_not_found" };
|
|
1975
|
+
const createStripeQuoteMutationRequestCurrencyEnum = {
|
|
1208
1976
|
USD: "USD",
|
|
1209
|
-
GBP: "GBP",
|
|
1210
1977
|
EUR: "EUR"
|
|
1211
1978
|
};
|
|
1212
|
-
|
|
1979
|
+
/**
|
|
1980
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1981
|
+
* Do not edit manually.
|
|
1982
|
+
*/
|
|
1983
|
+
const createStripeQuote400ErrorCodeEnum = {
|
|
1984
|
+
recipient_invalid: "recipient_invalid",
|
|
1985
|
+
unsupported_chain: "unsupported_chain",
|
|
1986
|
+
unsupported_route: "unsupported_route",
|
|
1987
|
+
validation_error: "validation_error"
|
|
1988
|
+
};
|
|
1989
|
+
/**
|
|
1990
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1991
|
+
* Do not edit manually.
|
|
1992
|
+
*/
|
|
1993
|
+
const createStripeQuote401ErrorCodeEnum = {
|
|
1994
|
+
invalid_publishable_key: "invalid_publishable_key",
|
|
1995
|
+
publishable_key_missing: "publishable_key_missing",
|
|
1996
|
+
stripe_auth_required: "stripe_auth_required"
|
|
1997
|
+
};
|
|
1998
|
+
/**
|
|
1999
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2000
|
+
* Do not edit manually.
|
|
2001
|
+
*/
|
|
2002
|
+
const createStripeQuote403ErrorCodeEnum = {
|
|
2003
|
+
origin_not_allowed: "origin_not_allowed",
|
|
2004
|
+
payment_method_not_enabled: "payment_method_not_enabled",
|
|
2005
|
+
wallet_sanctioned: "wallet_sanctioned"
|
|
2006
|
+
};
|
|
2007
|
+
/**
|
|
2008
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2009
|
+
* Do not edit manually.
|
|
2010
|
+
*/
|
|
2011
|
+
const createStripeQuote404ErrorCodeEnum = { lighter_account_not_found: "lighter_account_not_found" };
|
|
2012
|
+
/**
|
|
2013
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2014
|
+
* Do not edit manually.
|
|
2015
|
+
*/
|
|
2016
|
+
const createStripeQuote415ErrorCodeEnum = { unsupported_media_type: "unsupported_media_type" };
|
|
2017
|
+
const createStripeSession200StatusEnum = {
|
|
2018
|
+
requires_payment_method: "requires_payment_method",
|
|
2019
|
+
pending: "pending",
|
|
2020
|
+
succeeded: "succeeded",
|
|
2021
|
+
failed: "failed"
|
|
2022
|
+
};
|
|
2023
|
+
const createStripeSessionMutationRequestCurrencyEnum = {
|
|
1213
2024
|
USD: "USD",
|
|
1214
|
-
GBP: "GBP",
|
|
1215
2025
|
EUR: "EUR"
|
|
1216
2026
|
};
|
|
1217
|
-
|
|
2027
|
+
/**
|
|
2028
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2029
|
+
* Do not edit manually.
|
|
2030
|
+
*/
|
|
2031
|
+
const createStripeSession400ErrorCodeEnum = {
|
|
2032
|
+
recipient_invalid: "recipient_invalid",
|
|
2033
|
+
stripe_country_unsupported: "stripe_country_unsupported",
|
|
2034
|
+
stripe_currency_unavailable_in_region: "stripe_currency_unavailable_in_region",
|
|
2035
|
+
stripe_customer_unsupported: "stripe_customer_unsupported",
|
|
2036
|
+
stripe_document_verification_required: "stripe_document_verification_required",
|
|
2037
|
+
stripe_wallet_not_registered: "stripe_wallet_not_registered",
|
|
2038
|
+
unsupported_chain: "unsupported_chain",
|
|
2039
|
+
unsupported_route: "unsupported_route",
|
|
2040
|
+
validation_error: "validation_error"
|
|
2041
|
+
};
|
|
2042
|
+
/**
|
|
2043
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2044
|
+
* Do not edit manually.
|
|
2045
|
+
*/
|
|
2046
|
+
const createStripeSession401ErrorCodeEnum = {
|
|
2047
|
+
invalid_publishable_key: "invalid_publishable_key",
|
|
2048
|
+
publishable_key_missing: "publishable_key_missing",
|
|
2049
|
+
stripe_auth_required: "stripe_auth_required"
|
|
2050
|
+
};
|
|
2051
|
+
/**
|
|
2052
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2053
|
+
* Do not edit manually.
|
|
2054
|
+
*/
|
|
2055
|
+
const createStripeSession402ErrorCodeEnum = { stripe_transaction_blocked: "stripe_transaction_blocked" };
|
|
2056
|
+
/**
|
|
2057
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2058
|
+
* Do not edit manually.
|
|
2059
|
+
*/
|
|
2060
|
+
const createStripeSession403ErrorCodeEnum = {
|
|
2061
|
+
origin_not_allowed: "origin_not_allowed",
|
|
2062
|
+
payment_method_not_enabled: "payment_method_not_enabled",
|
|
2063
|
+
wallet_sanctioned: "wallet_sanctioned"
|
|
2064
|
+
};
|
|
2065
|
+
/**
|
|
2066
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2067
|
+
* Do not edit manually.
|
|
2068
|
+
*/
|
|
2069
|
+
const createStripeSession404ErrorCodeEnum = {
|
|
2070
|
+
lighter_account_not_found: "lighter_account_not_found",
|
|
2071
|
+
stripe_resource_not_found: "stripe_resource_not_found"
|
|
2072
|
+
};
|
|
2073
|
+
/**
|
|
2074
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2075
|
+
* Do not edit manually.
|
|
2076
|
+
*/
|
|
2077
|
+
const createStripeSession415ErrorCodeEnum = { unsupported_media_type: "unsupported_media_type" };
|
|
2078
|
+
/**
|
|
2079
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2080
|
+
* Do not edit manually.
|
|
2081
|
+
*/
|
|
2082
|
+
const createStripeTokens400ErrorCodeEnum = { validation_error: "validation_error" };
|
|
2083
|
+
/**
|
|
2084
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2085
|
+
* Do not edit manually.
|
|
2086
|
+
*/
|
|
2087
|
+
const createStripeTokens401ErrorCodeEnum = {
|
|
2088
|
+
invalid_publishable_key: "invalid_publishable_key",
|
|
2089
|
+
publishable_key_missing: "publishable_key_missing"
|
|
2090
|
+
};
|
|
2091
|
+
/**
|
|
2092
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2093
|
+
* Do not edit manually.
|
|
2094
|
+
*/
|
|
2095
|
+
const createStripeTokens403ErrorCodeEnum = {
|
|
2096
|
+
binding_invalid: "binding_invalid",
|
|
2097
|
+
link_forbidden: "link_forbidden",
|
|
2098
|
+
origin_not_allowed: "origin_not_allowed",
|
|
2099
|
+
payment_method_not_enabled: "payment_method_not_enabled"
|
|
2100
|
+
};
|
|
2101
|
+
/**
|
|
2102
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2103
|
+
* Do not edit manually.
|
|
2104
|
+
*/
|
|
2105
|
+
const createStripeTokens415ErrorCodeEnum = { unsupported_media_type: "unsupported_media_type" };
|
|
2106
|
+
/**
|
|
2107
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2108
|
+
* Do not edit manually.
|
|
2109
|
+
*/
|
|
2110
|
+
const createSwappedCheckout400ErrorCodeEnum = {
|
|
2111
|
+
recipient_invalid: "recipient_invalid",
|
|
2112
|
+
swapped_quote_expired: "swapped_quote_expired",
|
|
2113
|
+
unsupported_chain: "unsupported_chain",
|
|
2114
|
+
unsupported_route: "unsupported_route",
|
|
2115
|
+
validation_error: "validation_error"
|
|
2116
|
+
};
|
|
2117
|
+
/**
|
|
2118
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2119
|
+
* Do not edit manually.
|
|
2120
|
+
*/
|
|
2121
|
+
const createSwappedCheckout401ErrorCodeEnum = {
|
|
2122
|
+
invalid_publishable_key: "invalid_publishable_key",
|
|
2123
|
+
publishable_key_missing: "publishable_key_missing"
|
|
2124
|
+
};
|
|
2125
|
+
/**
|
|
2126
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2127
|
+
* Do not edit manually.
|
|
2128
|
+
*/
|
|
2129
|
+
const createSwappedCheckout403ErrorCodeEnum = {
|
|
2130
|
+
origin_not_allowed: "origin_not_allowed",
|
|
2131
|
+
payment_method_not_enabled: "payment_method_not_enabled",
|
|
2132
|
+
wallet_sanctioned: "wallet_sanctioned"
|
|
2133
|
+
};
|
|
2134
|
+
/**
|
|
2135
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2136
|
+
* Do not edit manually.
|
|
2137
|
+
*/
|
|
2138
|
+
const createSwappedCheckout404ErrorCodeEnum = { lighter_account_not_found: "lighter_account_not_found" };
|
|
2139
|
+
/**
|
|
2140
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2141
|
+
* Do not edit manually.
|
|
2142
|
+
*/
|
|
2143
|
+
const createSwappedCheckout415ErrorCodeEnum = { unsupported_media_type: "unsupported_media_type" };
|
|
2144
|
+
const createSwappedQuoteMutationRequestTradeTypeEnum = {
|
|
2145
|
+
exact_input: "exact_input",
|
|
2146
|
+
exact_output: "exact_output"
|
|
2147
|
+
};
|
|
2148
|
+
/**
|
|
2149
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2150
|
+
* Do not edit manually.
|
|
2151
|
+
*/
|
|
2152
|
+
const createSwappedQuote400ErrorCodeEnum = {
|
|
2153
|
+
amount_below_minimum: "amount_below_minimum",
|
|
2154
|
+
recipient_invalid: "recipient_invalid",
|
|
2155
|
+
unsupported_chain: "unsupported_chain",
|
|
2156
|
+
unsupported_route: "unsupported_route",
|
|
2157
|
+
validation_error: "validation_error"
|
|
2158
|
+
};
|
|
2159
|
+
/**
|
|
2160
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2161
|
+
* Do not edit manually.
|
|
2162
|
+
*/
|
|
2163
|
+
const createSwappedQuote401ErrorCodeEnum = {
|
|
2164
|
+
invalid_publishable_key: "invalid_publishable_key",
|
|
2165
|
+
publishable_key_missing: "publishable_key_missing"
|
|
2166
|
+
};
|
|
2167
|
+
/**
|
|
2168
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2169
|
+
* Do not edit manually.
|
|
2170
|
+
*/
|
|
2171
|
+
const createSwappedQuote403ErrorCodeEnum = {
|
|
2172
|
+
origin_not_allowed: "origin_not_allowed",
|
|
2173
|
+
payment_method_not_enabled: "payment_method_not_enabled",
|
|
2174
|
+
wallet_sanctioned: "wallet_sanctioned"
|
|
2175
|
+
};
|
|
2176
|
+
/**
|
|
2177
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2178
|
+
* Do not edit manually.
|
|
2179
|
+
*/
|
|
2180
|
+
const createSwappedQuote404ErrorCodeEnum = { lighter_account_not_found: "lighter_account_not_found" };
|
|
2181
|
+
/**
|
|
2182
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2183
|
+
* Do not edit manually.
|
|
2184
|
+
*/
|
|
2185
|
+
const createSwappedQuote415ErrorCodeEnum = { unsupported_media_type: "unsupported_media_type" };
|
|
2186
|
+
/**
|
|
2187
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2188
|
+
* Do not edit manually.
|
|
2189
|
+
*/
|
|
2190
|
+
const createVirtualAccount400ErrorCodeEnum = {
|
|
2191
|
+
customer_details_invalid: "customer_details_invalid",
|
|
2192
|
+
recipient_invalid: "recipient_invalid",
|
|
2193
|
+
unsupported_chain: "unsupported_chain",
|
|
2194
|
+
unsupported_route: "unsupported_route",
|
|
2195
|
+
validation_error: "validation_error"
|
|
2196
|
+
};
|
|
2197
|
+
/**
|
|
2198
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2199
|
+
* Do not edit manually.
|
|
2200
|
+
*/
|
|
2201
|
+
const createVirtualAccount401ErrorCodeEnum = {
|
|
2202
|
+
invalid_publishable_key: "invalid_publishable_key",
|
|
2203
|
+
publishable_key_missing: "publishable_key_missing",
|
|
2204
|
+
session_required: "session_required"
|
|
2205
|
+
};
|
|
2206
|
+
/**
|
|
2207
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2208
|
+
* Do not edit manually.
|
|
2209
|
+
*/
|
|
2210
|
+
const createVirtualAccount403ErrorCodeEnum = {
|
|
2211
|
+
origin_not_allowed: "origin_not_allowed",
|
|
2212
|
+
payment_method_not_enabled: "payment_method_not_enabled",
|
|
2213
|
+
wallet_sanctioned: "wallet_sanctioned"
|
|
2214
|
+
};
|
|
2215
|
+
/**
|
|
2216
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2217
|
+
* Do not edit manually.
|
|
2218
|
+
*/
|
|
2219
|
+
const createVirtualAccount404ErrorCodeEnum = {
|
|
2220
|
+
customer_not_registered: "customer_not_registered",
|
|
2221
|
+
lighter_account_not_found: "lighter_account_not_found"
|
|
2222
|
+
};
|
|
2223
|
+
/**
|
|
2224
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2225
|
+
* Do not edit manually.
|
|
2226
|
+
*/
|
|
2227
|
+
const createVirtualAccount409ErrorCodeEnum = {
|
|
2228
|
+
kyc_required: "kyc_required",
|
|
2229
|
+
terms_of_service_required: "terms_of_service_required"
|
|
2230
|
+
};
|
|
2231
|
+
/**
|
|
2232
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2233
|
+
* Do not edit manually.
|
|
2234
|
+
*/
|
|
2235
|
+
const createVirtualAccount415ErrorCodeEnum = { unsupported_media_type: "unsupported_media_type" };
|
|
2236
|
+
/**
|
|
2237
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2238
|
+
* Do not edit manually.
|
|
2239
|
+
*/
|
|
2240
|
+
const destinationTokenEnum = {
|
|
2241
|
+
USDC: "USDC",
|
|
2242
|
+
USDm: "USDm",
|
|
2243
|
+
AUSD: "AUSD",
|
|
2244
|
+
"USDC.e": "USDC.e",
|
|
2245
|
+
USDG: "USDG"
|
|
2246
|
+
};
|
|
2247
|
+
/**
|
|
2248
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2249
|
+
* Do not edit manually.
|
|
2250
|
+
*/
|
|
2251
|
+
const fiatCurrencyEnum = {
|
|
2252
|
+
USD: "USD",
|
|
2253
|
+
GBP: "GBP",
|
|
2254
|
+
EUR: "EUR"
|
|
2255
|
+
};
|
|
2256
|
+
/**
|
|
2257
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2258
|
+
* Do not edit manually.
|
|
2259
|
+
*/
|
|
2260
|
+
const getApp401ErrorCodeEnum = {
|
|
2261
|
+
invalid_publishable_key: "invalid_publishable_key",
|
|
2262
|
+
publishable_key_missing: "publishable_key_missing"
|
|
2263
|
+
};
|
|
2264
|
+
/**
|
|
2265
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2266
|
+
* Do not edit manually.
|
|
2267
|
+
*/
|
|
2268
|
+
const getApp403ErrorCodeEnum = { origin_not_allowed: "origin_not_allowed" };
|
|
2269
|
+
/**
|
|
2270
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2271
|
+
* Do not edit manually.
|
|
2272
|
+
*/
|
|
2273
|
+
const getBalances400ErrorCodeEnum = { validation_error: "validation_error" };
|
|
2274
|
+
/**
|
|
2275
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2276
|
+
* Do not edit manually.
|
|
2277
|
+
*/
|
|
2278
|
+
const getBalances401ErrorCodeEnum = {
|
|
2279
|
+
invalid_publishable_key: "invalid_publishable_key",
|
|
2280
|
+
publishable_key_missing: "publishable_key_missing"
|
|
2281
|
+
};
|
|
2282
|
+
/**
|
|
2283
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2284
|
+
* Do not edit manually.
|
|
2285
|
+
*/
|
|
2286
|
+
const getBalances403ErrorCodeEnum = { origin_not_allowed: "origin_not_allowed" };
|
|
2287
|
+
/**
|
|
2288
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2289
|
+
* Do not edit manually.
|
|
2290
|
+
*/
|
|
2291
|
+
const getBlinkConfig401ErrorCodeEnum = {
|
|
2292
|
+
invalid_publishable_key: "invalid_publishable_key",
|
|
2293
|
+
publishable_key_missing: "publishable_key_missing"
|
|
2294
|
+
};
|
|
2295
|
+
/**
|
|
2296
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2297
|
+
* Do not edit manually.
|
|
2298
|
+
*/
|
|
2299
|
+
const getBlinkConfig403ErrorCodeEnum = {
|
|
2300
|
+
origin_not_allowed: "origin_not_allowed",
|
|
2301
|
+
payment_method_not_enabled: "payment_method_not_enabled"
|
|
2302
|
+
};
|
|
2303
|
+
/**
|
|
2304
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2305
|
+
* Do not edit manually.
|
|
2306
|
+
*/
|
|
2307
|
+
const getCardCustomer401ErrorCodeEnum = {
|
|
2308
|
+
invalid_publishable_key: "invalid_publishable_key",
|
|
2309
|
+
publishable_key_missing: "publishable_key_missing",
|
|
2310
|
+
session_required: "session_required"
|
|
2311
|
+
};
|
|
2312
|
+
/**
|
|
2313
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2314
|
+
* Do not edit manually.
|
|
2315
|
+
*/
|
|
2316
|
+
const getCardCustomer403ErrorCodeEnum = {
|
|
2317
|
+
origin_not_allowed: "origin_not_allowed",
|
|
2318
|
+
payment_method_not_enabled: "payment_method_not_enabled"
|
|
2319
|
+
};
|
|
2320
|
+
/**
|
|
2321
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2322
|
+
* Do not edit manually.
|
|
2323
|
+
*/
|
|
2324
|
+
const getCardCustomer404ErrorCodeEnum = { card_customer_not_found: "card_customer_not_found" };
|
|
2325
|
+
const getCardFcaRequirementsQueryParamsStatusEnum = {
|
|
2326
|
+
CATEGORIZATION_PENDING: "CATEGORIZATION_PENDING",
|
|
2327
|
+
AGREEMENT_PENDING: "AGREEMENT_PENDING",
|
|
2328
|
+
RISK_ASSESSMENT_PENDING: "RISK_ASSESSMENT_PENDING",
|
|
2329
|
+
RISK_ASSESSMENT_FAILED: "RISK_ASSESSMENT_FAILED",
|
|
2330
|
+
COOLING_PERIOD: "COOLING_PERIOD",
|
|
2331
|
+
BLOCKED_RETRY: "BLOCKED_RETRY",
|
|
2332
|
+
COMPLETED: "COMPLETED"
|
|
2333
|
+
};
|
|
2334
|
+
const getCardFcaRequirements200StatusEnum = {
|
|
2335
|
+
CATEGORIZATION_PENDING: "CATEGORIZATION_PENDING",
|
|
2336
|
+
AGREEMENT_PENDING: "AGREEMENT_PENDING",
|
|
2337
|
+
RISK_ASSESSMENT_PENDING: "RISK_ASSESSMENT_PENDING",
|
|
2338
|
+
RISK_ASSESSMENT_FAILED: "RISK_ASSESSMENT_FAILED",
|
|
2339
|
+
COOLING_PERIOD: "COOLING_PERIOD",
|
|
2340
|
+
BLOCKED_RETRY: "BLOCKED_RETRY",
|
|
2341
|
+
COMPLETED: "COMPLETED"
|
|
2342
|
+
};
|
|
2343
|
+
/**
|
|
2344
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2345
|
+
* Do not edit manually.
|
|
2346
|
+
*/
|
|
2347
|
+
const getCardFcaRequirements400ErrorCodeEnum = { validation_error: "validation_error" };
|
|
2348
|
+
/**
|
|
2349
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2350
|
+
* Do not edit manually.
|
|
2351
|
+
*/
|
|
2352
|
+
const getCardFcaRequirements401ErrorCodeEnum = {
|
|
2353
|
+
invalid_publishable_key: "invalid_publishable_key",
|
|
2354
|
+
publishable_key_missing: "publishable_key_missing",
|
|
2355
|
+
session_required: "session_required"
|
|
2356
|
+
};
|
|
2357
|
+
/**
|
|
2358
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2359
|
+
* Do not edit manually.
|
|
2360
|
+
*/
|
|
2361
|
+
const getCardFcaRequirements403ErrorCodeEnum = {
|
|
2362
|
+
card_identity_required: "card_identity_required",
|
|
2363
|
+
origin_not_allowed: "origin_not_allowed",
|
|
2364
|
+
payment_method_not_enabled: "payment_method_not_enabled"
|
|
2365
|
+
};
|
|
2366
|
+
/**
|
|
2367
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2368
|
+
* Do not edit manually.
|
|
2369
|
+
*/
|
|
2370
|
+
const getCardFcaStatus400ErrorCodeEnum = { validation_error: "validation_error" };
|
|
2371
|
+
/**
|
|
2372
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2373
|
+
* Do not edit manually.
|
|
2374
|
+
*/
|
|
2375
|
+
const getCardFcaStatus401ErrorCodeEnum = {
|
|
2376
|
+
invalid_publishable_key: "invalid_publishable_key",
|
|
2377
|
+
publishable_key_missing: "publishable_key_missing",
|
|
2378
|
+
session_required: "session_required"
|
|
2379
|
+
};
|
|
2380
|
+
/**
|
|
2381
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2382
|
+
* Do not edit manually.
|
|
2383
|
+
*/
|
|
2384
|
+
const getCardFcaStatus403ErrorCodeEnum = {
|
|
2385
|
+
card_identity_required: "card_identity_required",
|
|
2386
|
+
origin_not_allowed: "origin_not_allowed",
|
|
2387
|
+
payment_method_not_enabled: "payment_method_not_enabled"
|
|
2388
|
+
};
|
|
2389
|
+
/**
|
|
2390
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2391
|
+
* Do not edit manually.
|
|
2392
|
+
*/
|
|
2393
|
+
const getCardOrder400ErrorCodeEnum = { validation_error: "validation_error" };
|
|
2394
|
+
/**
|
|
2395
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2396
|
+
* Do not edit manually.
|
|
2397
|
+
*/
|
|
2398
|
+
const getCardOrder401ErrorCodeEnum = {
|
|
2399
|
+
invalid_publishable_key: "invalid_publishable_key",
|
|
2400
|
+
publishable_key_missing: "publishable_key_missing",
|
|
2401
|
+
session_required: "session_required"
|
|
2402
|
+
};
|
|
2403
|
+
/**
|
|
2404
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2405
|
+
* Do not edit manually.
|
|
2406
|
+
*/
|
|
2407
|
+
const getCardOrder403ErrorCodeEnum = {
|
|
2408
|
+
origin_not_allowed: "origin_not_allowed",
|
|
2409
|
+
payment_method_not_enabled: "payment_method_not_enabled"
|
|
2410
|
+
};
|
|
2411
|
+
/**
|
|
2412
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2413
|
+
* Do not edit manually.
|
|
2414
|
+
*/
|
|
2415
|
+
const getCardOrder404ErrorCodeEnum = { order_not_found: "order_not_found" };
|
|
2416
|
+
/**
|
|
2417
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2418
|
+
* Do not edit manually.
|
|
2419
|
+
*/
|
|
2420
|
+
const getCardReturnPathParamsOutcomeEnum = {
|
|
2421
|
+
success: "success",
|
|
2422
|
+
failure: "failure"
|
|
2423
|
+
};
|
|
2424
|
+
const getCashAppOrder200StatusEnum = {
|
|
2425
|
+
pending: "pending",
|
|
2426
|
+
processing: "processing",
|
|
2427
|
+
confirming: "confirming",
|
|
2428
|
+
swapping: "swapping",
|
|
2429
|
+
bridging: "bridging",
|
|
2430
|
+
awaiting_approval: "awaiting_approval",
|
|
2431
|
+
delivering: "delivering",
|
|
2432
|
+
succeeded: "succeeded",
|
|
2433
|
+
failed: "failed",
|
|
2434
|
+
refunding: "refunding",
|
|
2435
|
+
refunded: "refunded",
|
|
2436
|
+
unfulfilled: "unfulfilled",
|
|
2437
|
+
expired: "expired"
|
|
2438
|
+
};
|
|
2439
|
+
/**
|
|
2440
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2441
|
+
* Do not edit manually.
|
|
2442
|
+
*/
|
|
2443
|
+
const getCashAppOrder400ErrorCodeEnum = { validation_error: "validation_error" };
|
|
2444
|
+
/**
|
|
2445
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2446
|
+
* Do not edit manually.
|
|
2447
|
+
*/
|
|
2448
|
+
const getCashAppOrder401ErrorCodeEnum = {
|
|
2449
|
+
invalid_publishable_key: "invalid_publishable_key",
|
|
2450
|
+
publishable_key_missing: "publishable_key_missing",
|
|
2451
|
+
session_required: "session_required"
|
|
2452
|
+
};
|
|
2453
|
+
/**
|
|
2454
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2455
|
+
* Do not edit manually.
|
|
2456
|
+
*/
|
|
2457
|
+
const getCashAppOrder403ErrorCodeEnum = {
|
|
2458
|
+
origin_not_allowed: "origin_not_allowed",
|
|
2459
|
+
payment_method_not_enabled: "payment_method_not_enabled"
|
|
2460
|
+
};
|
|
2461
|
+
/**
|
|
2462
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2463
|
+
* Do not edit manually.
|
|
2464
|
+
*/
|
|
2465
|
+
const getCashAppOrder404ErrorCodeEnum = { order_not_found: "order_not_found" };
|
|
2466
|
+
/**
|
|
2467
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2468
|
+
* Do not edit manually.
|
|
2469
|
+
*/
|
|
2470
|
+
const getEmailSession401ErrorCodeEnum = {
|
|
2471
|
+
invalid_publishable_key: "invalid_publishable_key",
|
|
2472
|
+
publishable_key_missing: "publishable_key_missing",
|
|
2473
|
+
session_required: "session_required"
|
|
2474
|
+
};
|
|
2475
|
+
/**
|
|
2476
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2477
|
+
* Do not edit manually.
|
|
2478
|
+
*/
|
|
2479
|
+
const getEmailSession403ErrorCodeEnum = { origin_not_allowed: "origin_not_allowed" };
|
|
2480
|
+
/**
|
|
2481
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2482
|
+
* Do not edit manually.
|
|
2483
|
+
*/
|
|
2484
|
+
const getFxRates401ErrorCodeEnum = {
|
|
2485
|
+
invalid_publishable_key: "invalid_publishable_key",
|
|
2486
|
+
publishable_key_missing: "publishable_key_missing"
|
|
2487
|
+
};
|
|
2488
|
+
/**
|
|
2489
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2490
|
+
* Do not edit manually.
|
|
2491
|
+
*/
|
|
2492
|
+
const getFxRates403ErrorCodeEnum = { origin_not_allowed: "origin_not_allowed" };
|
|
2493
|
+
/**
|
|
2494
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2495
|
+
* Do not edit manually.
|
|
2496
|
+
*/
|
|
2497
|
+
const getFxRates502ErrorCodeEnum = { fx_unavailable: "fx_unavailable" };
|
|
2498
|
+
/**
|
|
2499
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2500
|
+
* Do not edit manually.
|
|
2501
|
+
*/
|
|
2502
|
+
const getIdentityVerificationUrl400ErrorCodeEnum = { customer_details_invalid: "customer_details_invalid" };
|
|
2503
|
+
/**
|
|
2504
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2505
|
+
* Do not edit manually.
|
|
2506
|
+
*/
|
|
2507
|
+
const getIdentityVerificationUrl401ErrorCodeEnum = {
|
|
2508
|
+
invalid_publishable_key: "invalid_publishable_key",
|
|
2509
|
+
publishable_key_missing: "publishable_key_missing",
|
|
2510
|
+
session_required: "session_required"
|
|
2511
|
+
};
|
|
2512
|
+
/**
|
|
2513
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2514
|
+
* Do not edit manually.
|
|
2515
|
+
*/
|
|
2516
|
+
const getIdentityVerificationUrl403ErrorCodeEnum = {
|
|
2517
|
+
origin_not_allowed: "origin_not_allowed",
|
|
2518
|
+
payment_method_not_enabled: "payment_method_not_enabled"
|
|
2519
|
+
};
|
|
2520
|
+
/**
|
|
2521
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2522
|
+
* Do not edit manually.
|
|
2523
|
+
*/
|
|
2524
|
+
const getIdentityVerificationUrl404ErrorCodeEnum = { customer_not_registered: "customer_not_registered" };
|
|
2525
|
+
/**
|
|
2526
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2527
|
+
* Do not edit manually.
|
|
2528
|
+
*/
|
|
2529
|
+
const getIdentityVerificationUrl502ErrorCodeEnum = { bank_transfer_unavailable: "bank_transfer_unavailable" };
|
|
2530
|
+
/**
|
|
2531
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2532
|
+
* Do not edit manually.
|
|
2533
|
+
*/
|
|
2534
|
+
const getStripeConfig401ErrorCodeEnum = {
|
|
2535
|
+
invalid_publishable_key: "invalid_publishable_key",
|
|
2536
|
+
publishable_key_missing: "publishable_key_missing"
|
|
2537
|
+
};
|
|
2538
|
+
/**
|
|
2539
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2540
|
+
* Do not edit manually.
|
|
2541
|
+
*/
|
|
2542
|
+
const getStripeConfig403ErrorCodeEnum = {
|
|
2543
|
+
origin_not_allowed: "origin_not_allowed",
|
|
2544
|
+
payment_method_not_enabled: "payment_method_not_enabled"
|
|
2545
|
+
};
|
|
2546
|
+
const getStripeCustomerStatus200IdDocumentStatusEnum = {
|
|
2547
|
+
not_available: "not_available",
|
|
2548
|
+
not_started: "not_started",
|
|
2549
|
+
pending: "pending",
|
|
2550
|
+
rejected: "rejected",
|
|
2551
|
+
verified: "verified"
|
|
2552
|
+
};
|
|
2553
|
+
const getStripeCustomerStatus200KycRegionEnum = {
|
|
2554
|
+
us: "us",
|
|
2555
|
+
eu: "eu"
|
|
2556
|
+
};
|
|
2557
|
+
const getStripeCustomerStatus200KycStatusEnum = {
|
|
2558
|
+
not_available: "not_available",
|
|
2559
|
+
not_started: "not_started",
|
|
2560
|
+
pending: "pending",
|
|
2561
|
+
rejected: "rejected",
|
|
2562
|
+
verified: "verified"
|
|
2563
|
+
};
|
|
2564
|
+
const getStripeCustomerStatus200L2StatusEnum = {
|
|
2565
|
+
not_available: "not_available",
|
|
2566
|
+
not_started: "not_started",
|
|
2567
|
+
pending: "pending",
|
|
2568
|
+
rejected: "rejected",
|
|
2569
|
+
verified: "verified"
|
|
2570
|
+
};
|
|
2571
|
+
/**
|
|
2572
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2573
|
+
* Do not edit manually.
|
|
2574
|
+
*/
|
|
2575
|
+
const getStripeCustomerStatus400ErrorCodeEnum = { validation_error: "validation_error" };
|
|
2576
|
+
/**
|
|
2577
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2578
|
+
* Do not edit manually.
|
|
2579
|
+
*/
|
|
2580
|
+
const getStripeCustomerStatus401ErrorCodeEnum = {
|
|
2581
|
+
invalid_publishable_key: "invalid_publishable_key",
|
|
2582
|
+
publishable_key_missing: "publishable_key_missing",
|
|
2583
|
+
stripe_auth_required: "stripe_auth_required"
|
|
2584
|
+
};
|
|
2585
|
+
/**
|
|
2586
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2587
|
+
* Do not edit manually.
|
|
2588
|
+
*/
|
|
2589
|
+
const getStripeCustomerStatus403ErrorCodeEnum = {
|
|
2590
|
+
origin_not_allowed: "origin_not_allowed",
|
|
2591
|
+
payment_method_not_enabled: "payment_method_not_enabled"
|
|
2592
|
+
};
|
|
2593
|
+
/**
|
|
2594
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2595
|
+
* Do not edit manually.
|
|
2596
|
+
*/
|
|
2597
|
+
const getStripeCustomerStatus404ErrorCodeEnum = { stripe_resource_not_found: "stripe_resource_not_found" };
|
|
2598
|
+
const getStripeOrder200StatusEnum = {
|
|
2599
|
+
requires_payment_method: "requires_payment_method",
|
|
2600
|
+
pending: "pending",
|
|
2601
|
+
succeeded: "succeeded",
|
|
2602
|
+
failed: "failed"
|
|
2603
|
+
};
|
|
2604
|
+
/**
|
|
2605
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2606
|
+
* Do not edit manually.
|
|
2607
|
+
*/
|
|
2608
|
+
const getStripeOrder400ErrorCodeEnum = { validation_error: "validation_error" };
|
|
2609
|
+
/**
|
|
2610
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2611
|
+
* Do not edit manually.
|
|
2612
|
+
*/
|
|
2613
|
+
const getStripeOrder401ErrorCodeEnum = {
|
|
2614
|
+
invalid_publishable_key: "invalid_publishable_key",
|
|
2615
|
+
publishable_key_missing: "publishable_key_missing",
|
|
2616
|
+
stripe_auth_required: "stripe_auth_required"
|
|
2617
|
+
};
|
|
2618
|
+
/**
|
|
2619
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2620
|
+
* Do not edit manually.
|
|
2621
|
+
*/
|
|
2622
|
+
const getStripeOrder403ErrorCodeEnum = {
|
|
2623
|
+
origin_not_allowed: "origin_not_allowed",
|
|
2624
|
+
payment_method_not_enabled: "payment_method_not_enabled"
|
|
2625
|
+
};
|
|
2626
|
+
/**
|
|
2627
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2628
|
+
* Do not edit manually.
|
|
2629
|
+
*/
|
|
2630
|
+
const getStripeOrder404ErrorCodeEnum = { order_not_found: "order_not_found" };
|
|
2631
|
+
const getSwappedCheckout200StatusEnum = {
|
|
2632
|
+
payment_pending: "payment_pending",
|
|
2633
|
+
order_completed: "order_completed",
|
|
2634
|
+
order_broadcasted: "order_broadcasted",
|
|
2635
|
+
order_cancelled: "order_cancelled"
|
|
2636
|
+
};
|
|
2637
|
+
/**
|
|
2638
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2639
|
+
* Do not edit manually.
|
|
2640
|
+
*/
|
|
2641
|
+
const getSwappedCheckout400ErrorCodeEnum = { validation_error: "validation_error" };
|
|
2642
|
+
/**
|
|
2643
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2644
|
+
* Do not edit manually.
|
|
2645
|
+
*/
|
|
2646
|
+
const getSwappedCheckout401ErrorCodeEnum = {
|
|
2647
|
+
invalid_publishable_key: "invalid_publishable_key",
|
|
2648
|
+
publishable_key_missing: "publishable_key_missing"
|
|
2649
|
+
};
|
|
2650
|
+
/**
|
|
2651
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2652
|
+
* Do not edit manually.
|
|
2653
|
+
*/
|
|
2654
|
+
const getSwappedCheckout403ErrorCodeEnum = {
|
|
2655
|
+
origin_not_allowed: "origin_not_allowed",
|
|
2656
|
+
payment_method_not_enabled: "payment_method_not_enabled"
|
|
2657
|
+
};
|
|
2658
|
+
/**
|
|
2659
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2660
|
+
* Do not edit manually.
|
|
2661
|
+
*/
|
|
2662
|
+
const getSwappedCheckout404ErrorCodeEnum = { order_not_found: "order_not_found" };
|
|
2663
|
+
/**
|
|
2664
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2665
|
+
* Do not edit manually.
|
|
2666
|
+
*/
|
|
2667
|
+
const getTermsOfServiceUrl400ErrorCodeEnum = { customer_details_invalid: "customer_details_invalid" };
|
|
2668
|
+
/**
|
|
2669
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2670
|
+
* Do not edit manually.
|
|
2671
|
+
*/
|
|
2672
|
+
const getTermsOfServiceUrl401ErrorCodeEnum = {
|
|
2673
|
+
invalid_publishable_key: "invalid_publishable_key",
|
|
2674
|
+
publishable_key_missing: "publishable_key_missing",
|
|
2675
|
+
session_required: "session_required"
|
|
2676
|
+
};
|
|
2677
|
+
/**
|
|
2678
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2679
|
+
* Do not edit manually.
|
|
2680
|
+
*/
|
|
2681
|
+
const getTermsOfServiceUrl403ErrorCodeEnum = {
|
|
2682
|
+
origin_not_allowed: "origin_not_allowed",
|
|
2683
|
+
payment_method_not_enabled: "payment_method_not_enabled"
|
|
2684
|
+
};
|
|
2685
|
+
/**
|
|
2686
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2687
|
+
* Do not edit manually.
|
|
2688
|
+
*/
|
|
2689
|
+
const getTermsOfServiceUrl404ErrorCodeEnum = { customer_not_registered: "customer_not_registered" };
|
|
2690
|
+
/**
|
|
2691
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2692
|
+
* Do not edit manually.
|
|
2693
|
+
*/
|
|
2694
|
+
const getTermsOfServiceUrl502ErrorCodeEnum = { bank_transfer_unavailable: "bank_transfer_unavailable" };
|
|
2695
|
+
const getVirtualAccountStatus200IdentityVerificationStatusEnum = {
|
|
2696
|
+
not_started: "not_started",
|
|
2697
|
+
incomplete: "incomplete",
|
|
2698
|
+
awaiting_questionnaire: "awaiting_questionnaire",
|
|
2699
|
+
awaiting_ubo: "awaiting_ubo",
|
|
2700
|
+
under_review: "under_review",
|
|
2701
|
+
active: "active",
|
|
2702
|
+
deposits_restricted: "deposits_restricted",
|
|
2703
|
+
rejected: "rejected",
|
|
2704
|
+
paused: "paused",
|
|
2705
|
+
offboarded: "offboarded"
|
|
2706
|
+
};
|
|
2707
|
+
/**
|
|
2708
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2709
|
+
* Do not edit manually.
|
|
2710
|
+
*/
|
|
2711
|
+
const getVirtualAccountStatus401ErrorCodeEnum = {
|
|
2712
|
+
invalid_publishable_key: "invalid_publishable_key",
|
|
2713
|
+
publishable_key_missing: "publishable_key_missing",
|
|
2714
|
+
session_required: "session_required"
|
|
2715
|
+
};
|
|
2716
|
+
/**
|
|
2717
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2718
|
+
* Do not edit manually.
|
|
2719
|
+
*/
|
|
2720
|
+
const getVirtualAccountStatus403ErrorCodeEnum = {
|
|
2721
|
+
origin_not_allowed: "origin_not_allowed",
|
|
2722
|
+
payment_method_not_enabled: "payment_method_not_enabled"
|
|
2723
|
+
};
|
|
2724
|
+
/**
|
|
2725
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2726
|
+
* Do not edit manually.
|
|
2727
|
+
*/
|
|
2728
|
+
const getVirtualAccountStatus404ErrorCodeEnum = { customer_not_registered: "customer_not_registered" };
|
|
2729
|
+
/**
|
|
2730
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2731
|
+
* Do not edit manually.
|
|
2732
|
+
*/
|
|
2733
|
+
const listCountries401ErrorCodeEnum = {
|
|
2734
|
+
invalid_publishable_key: "invalid_publishable_key",
|
|
2735
|
+
publishable_key_missing: "publishable_key_missing"
|
|
2736
|
+
};
|
|
2737
|
+
/**
|
|
2738
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2739
|
+
* Do not edit manually.
|
|
2740
|
+
*/
|
|
2741
|
+
const listCountries403ErrorCodeEnum = { origin_not_allowed: "origin_not_allowed" };
|
|
2742
|
+
/**
|
|
2743
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2744
|
+
* Do not edit manually.
|
|
2745
|
+
*/
|
|
2746
|
+
const listPaymentMethods400ErrorCodeEnum = { validation_error: "validation_error" };
|
|
2747
|
+
/**
|
|
2748
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2749
|
+
* Do not edit manually.
|
|
2750
|
+
*/
|
|
2751
|
+
const listPaymentMethods401ErrorCodeEnum = {
|
|
2752
|
+
invalid_publishable_key: "invalid_publishable_key",
|
|
2753
|
+
publishable_key_missing: "publishable_key_missing"
|
|
2754
|
+
};
|
|
2755
|
+
/**
|
|
2756
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2757
|
+
* Do not edit manually.
|
|
2758
|
+
*/
|
|
2759
|
+
const listPaymentMethods403ErrorCodeEnum = { origin_not_allowed: "origin_not_allowed" };
|
|
2760
|
+
/**
|
|
2761
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2762
|
+
* Do not edit manually.
|
|
2763
|
+
*/
|
|
2764
|
+
const listStripePaymentTokens400ErrorCodeEnum = { validation_error: "validation_error" };
|
|
2765
|
+
/**
|
|
2766
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2767
|
+
* Do not edit manually.
|
|
2768
|
+
*/
|
|
2769
|
+
const listStripePaymentTokens401ErrorCodeEnum = {
|
|
2770
|
+
invalid_publishable_key: "invalid_publishable_key",
|
|
2771
|
+
publishable_key_missing: "publishable_key_missing",
|
|
2772
|
+
stripe_auth_required: "stripe_auth_required"
|
|
2773
|
+
};
|
|
2774
|
+
/**
|
|
2775
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2776
|
+
* Do not edit manually.
|
|
2777
|
+
*/
|
|
2778
|
+
const listStripePaymentTokens403ErrorCodeEnum = {
|
|
2779
|
+
origin_not_allowed: "origin_not_allowed",
|
|
2780
|
+
payment_method_not_enabled: "payment_method_not_enabled"
|
|
2781
|
+
};
|
|
2782
|
+
/**
|
|
2783
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2784
|
+
* Do not edit manually.
|
|
2785
|
+
*/
|
|
2786
|
+
const listStripePaymentTokens404ErrorCodeEnum = { stripe_resource_not_found: "stripe_resource_not_found" };
|
|
2787
|
+
/**
|
|
2788
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2789
|
+
* Do not edit manually.
|
|
2790
|
+
*/
|
|
2791
|
+
const listStripeWallets400ErrorCodeEnum = { validation_error: "validation_error" };
|
|
2792
|
+
/**
|
|
2793
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2794
|
+
* Do not edit manually.
|
|
2795
|
+
*/
|
|
2796
|
+
const listStripeWallets401ErrorCodeEnum = {
|
|
2797
|
+
invalid_publishable_key: "invalid_publishable_key",
|
|
2798
|
+
publishable_key_missing: "publishable_key_missing",
|
|
2799
|
+
stripe_auth_required: "stripe_auth_required"
|
|
2800
|
+
};
|
|
2801
|
+
/**
|
|
2802
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2803
|
+
* Do not edit manually.
|
|
2804
|
+
*/
|
|
2805
|
+
const listStripeWallets403ErrorCodeEnum = {
|
|
2806
|
+
origin_not_allowed: "origin_not_allowed",
|
|
2807
|
+
payment_method_not_enabled: "payment_method_not_enabled"
|
|
2808
|
+
};
|
|
2809
|
+
/**
|
|
2810
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2811
|
+
* Do not edit manually.
|
|
2812
|
+
*/
|
|
2813
|
+
const listStripeWallets404ErrorCodeEnum = { stripe_resource_not_found: "stripe_resource_not_found" };
|
|
2814
|
+
/**
|
|
2815
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2816
|
+
* Do not edit manually.
|
|
2817
|
+
*/
|
|
2818
|
+
const listSwappedCountries401ErrorCodeEnum = {
|
|
2819
|
+
invalid_publishable_key: "invalid_publishable_key",
|
|
2820
|
+
publishable_key_missing: "publishable_key_missing"
|
|
2821
|
+
};
|
|
2822
|
+
/**
|
|
2823
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2824
|
+
* Do not edit manually.
|
|
2825
|
+
*/
|
|
2826
|
+
const listSwappedCountries403ErrorCodeEnum = {
|
|
2827
|
+
origin_not_allowed: "origin_not_allowed",
|
|
2828
|
+
payment_method_not_enabled: "payment_method_not_enabled"
|
|
2829
|
+
};
|
|
2830
|
+
/**
|
|
2831
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2832
|
+
* Do not edit manually.
|
|
2833
|
+
*/
|
|
2834
|
+
const listSwappedPaymentMethods400ErrorCodeEnum = { validation_error: "validation_error" };
|
|
2835
|
+
/**
|
|
2836
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2837
|
+
* Do not edit manually.
|
|
2838
|
+
*/
|
|
2839
|
+
const listSwappedPaymentMethods401ErrorCodeEnum = {
|
|
2840
|
+
invalid_publishable_key: "invalid_publishable_key",
|
|
2841
|
+
publishable_key_missing: "publishable_key_missing"
|
|
2842
|
+
};
|
|
2843
|
+
/**
|
|
2844
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2845
|
+
* Do not edit manually.
|
|
2846
|
+
*/
|
|
2847
|
+
const listSwappedPaymentMethods403ErrorCodeEnum = {
|
|
2848
|
+
origin_not_allowed: "origin_not_allowed",
|
|
2849
|
+
payment_method_not_enabled: "payment_method_not_enabled"
|
|
2850
|
+
};
|
|
2851
|
+
/**
|
|
2852
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2853
|
+
* Do not edit manually.
|
|
2854
|
+
*/
|
|
2855
|
+
const listVirtualAccounts401ErrorCodeEnum = {
|
|
2856
|
+
invalid_publishable_key: "invalid_publishable_key",
|
|
2857
|
+
publishable_key_missing: "publishable_key_missing",
|
|
2858
|
+
session_required: "session_required"
|
|
2859
|
+
};
|
|
2860
|
+
/**
|
|
2861
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2862
|
+
* Do not edit manually.
|
|
2863
|
+
*/
|
|
2864
|
+
const listVirtualAccounts403ErrorCodeEnum = {
|
|
2865
|
+
origin_not_allowed: "origin_not_allowed",
|
|
2866
|
+
payment_method_not_enabled: "payment_method_not_enabled"
|
|
2867
|
+
};
|
|
2868
|
+
/**
|
|
2869
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2870
|
+
* Do not edit manually.
|
|
2871
|
+
*/
|
|
2872
|
+
const paymentMethodEnumEnum = {
|
|
2873
|
+
bank_transfer: "bank_transfer",
|
|
2874
|
+
cashapp: "cashapp",
|
|
2875
|
+
card: "card",
|
|
2876
|
+
apple_pay: "apple_pay",
|
|
2877
|
+
google_pay: "google_pay",
|
|
2878
|
+
blink: "blink"
|
|
2879
|
+
};
|
|
2880
|
+
/**
|
|
2881
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2882
|
+
* Do not edit manually.
|
|
2883
|
+
*/
|
|
2884
|
+
const registerVirtualAccountCustomer400ErrorCodeEnum = {
|
|
2885
|
+
customer_details_invalid: "customer_details_invalid",
|
|
2886
|
+
validation_error: "validation_error"
|
|
2887
|
+
};
|
|
2888
|
+
/**
|
|
2889
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2890
|
+
* Do not edit manually.
|
|
2891
|
+
*/
|
|
2892
|
+
const registerVirtualAccountCustomer401ErrorCodeEnum = {
|
|
2893
|
+
invalid_publishable_key: "invalid_publishable_key",
|
|
2894
|
+
publishable_key_missing: "publishable_key_missing",
|
|
2895
|
+
session_required: "session_required"
|
|
2896
|
+
};
|
|
2897
|
+
/**
|
|
2898
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2899
|
+
* Do not edit manually.
|
|
2900
|
+
*/
|
|
2901
|
+
const registerVirtualAccountCustomer403ErrorCodeEnum = {
|
|
2902
|
+
origin_not_allowed: "origin_not_allowed",
|
|
2903
|
+
payment_method_not_enabled: "payment_method_not_enabled"
|
|
2904
|
+
};
|
|
2905
|
+
/**
|
|
2906
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2907
|
+
* Do not edit manually.
|
|
2908
|
+
*/
|
|
2909
|
+
const registerVirtualAccountCustomer409ErrorCodeEnum = { already_registered: "already_registered" };
|
|
2910
|
+
/**
|
|
2911
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2912
|
+
* Do not edit manually.
|
|
2913
|
+
*/
|
|
2914
|
+
const registerVirtualAccountCustomer415ErrorCodeEnum = { unsupported_media_type: "unsupported_media_type" };
|
|
2915
|
+
/**
|
|
2916
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2917
|
+
* Do not edit manually.
|
|
2918
|
+
*/
|
|
2919
|
+
const registerVirtualAccountCustomer502ErrorCodeEnum = { bank_transfer_unavailable: "bank_transfer_unavailable" };
|
|
2920
|
+
const resolveStripeDestinationMutationRequestCurrencyEnum = {
|
|
2921
|
+
USD: "USD",
|
|
2922
|
+
EUR: "EUR"
|
|
2923
|
+
};
|
|
2924
|
+
/**
|
|
2925
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2926
|
+
* Do not edit manually.
|
|
2927
|
+
*/
|
|
2928
|
+
const resolveStripeDestination400ErrorCodeEnum = {
|
|
2929
|
+
recipient_invalid: "recipient_invalid",
|
|
2930
|
+
unsupported_chain: "unsupported_chain",
|
|
2931
|
+
unsupported_route: "unsupported_route",
|
|
2932
|
+
validation_error: "validation_error"
|
|
2933
|
+
};
|
|
2934
|
+
/**
|
|
2935
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2936
|
+
* Do not edit manually.
|
|
2937
|
+
*/
|
|
2938
|
+
const resolveStripeDestination401ErrorCodeEnum = {
|
|
2939
|
+
invalid_publishable_key: "invalid_publishable_key",
|
|
2940
|
+
publishable_key_missing: "publishable_key_missing",
|
|
2941
|
+
stripe_auth_required: "stripe_auth_required"
|
|
2942
|
+
};
|
|
2943
|
+
/**
|
|
2944
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2945
|
+
* Do not edit manually.
|
|
2946
|
+
*/
|
|
2947
|
+
const resolveStripeDestination403ErrorCodeEnum = {
|
|
2948
|
+
origin_not_allowed: "origin_not_allowed",
|
|
2949
|
+
payment_method_not_enabled: "payment_method_not_enabled",
|
|
2950
|
+
wallet_sanctioned: "wallet_sanctioned"
|
|
2951
|
+
};
|
|
2952
|
+
/**
|
|
2953
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2954
|
+
* Do not edit manually.
|
|
2955
|
+
*/
|
|
2956
|
+
const resolveStripeDestination404ErrorCodeEnum = { lighter_account_not_found: "lighter_account_not_found" };
|
|
2957
|
+
/**
|
|
2958
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2959
|
+
* Do not edit manually.
|
|
2960
|
+
*/
|
|
2961
|
+
const resolveStripeDestination415ErrorCodeEnum = { unsupported_media_type: "unsupported_media_type" };
|
|
2962
|
+
/**
|
|
2963
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2964
|
+
* Do not edit manually.
|
|
2965
|
+
*/
|
|
2966
|
+
const revokeEmailSession401ErrorCodeEnum = {
|
|
2967
|
+
invalid_publishable_key: "invalid_publishable_key",
|
|
2968
|
+
publishable_key_missing: "publishable_key_missing",
|
|
2969
|
+
session_required: "session_required"
|
|
2970
|
+
};
|
|
2971
|
+
/**
|
|
2972
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2973
|
+
* Do not edit manually.
|
|
2974
|
+
*/
|
|
2975
|
+
const revokeEmailSession403ErrorCodeEnum = { origin_not_allowed: "origin_not_allowed" };
|
|
2976
|
+
/**
|
|
2977
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2978
|
+
* Do not edit manually.
|
|
2979
|
+
*/
|
|
2980
|
+
const startEmailLogin400ErrorCodeEnum = {
|
|
2981
|
+
email_invalid_recipient: "email_invalid_recipient",
|
|
2982
|
+
validation_error: "validation_error"
|
|
2983
|
+
};
|
|
2984
|
+
/**
|
|
2985
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2986
|
+
* Do not edit manually.
|
|
2987
|
+
*/
|
|
2988
|
+
const startEmailLogin401ErrorCodeEnum = {
|
|
2989
|
+
invalid_publishable_key: "invalid_publishable_key",
|
|
2990
|
+
publishable_key_missing: "publishable_key_missing"
|
|
2991
|
+
};
|
|
2992
|
+
/**
|
|
2993
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2994
|
+
* Do not edit manually.
|
|
2995
|
+
*/
|
|
2996
|
+
const startEmailLogin403ErrorCodeEnum = { origin_not_allowed: "origin_not_allowed" };
|
|
2997
|
+
/**
|
|
2998
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2999
|
+
* Do not edit manually.
|
|
3000
|
+
*/
|
|
3001
|
+
const startEmailLogin415ErrorCodeEnum = { unsupported_media_type: "unsupported_media_type" };
|
|
3002
|
+
/**
|
|
3003
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
3004
|
+
* Do not edit manually.
|
|
3005
|
+
*/
|
|
3006
|
+
const startEmailLogin429ErrorCodeEnum = { challenge_rate_limited: "challenge_rate_limited" };
|
|
3007
|
+
/**
|
|
3008
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
3009
|
+
* Do not edit manually.
|
|
3010
|
+
*/
|
|
3011
|
+
const stripeOnboardingStatusEnum = {
|
|
3012
|
+
requires_action: "requires_action",
|
|
3013
|
+
verified: "verified",
|
|
3014
|
+
rejected: "rejected",
|
|
3015
|
+
not_available: "not_available"
|
|
3016
|
+
};
|
|
3017
|
+
/**
|
|
3018
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
3019
|
+
* Do not edit manually.
|
|
3020
|
+
*/
|
|
3021
|
+
const verifyEmailLogin400ErrorCodeEnum = {
|
|
3022
|
+
invalid_otp: "invalid_otp",
|
|
3023
|
+
validation_error: "validation_error"
|
|
3024
|
+
};
|
|
3025
|
+
/**
|
|
3026
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
3027
|
+
* Do not edit manually.
|
|
3028
|
+
*/
|
|
3029
|
+
const verifyEmailLogin401ErrorCodeEnum = {
|
|
3030
|
+
challenge_expired: "challenge_expired",
|
|
3031
|
+
challenge_wallet_mismatch: "challenge_wallet_mismatch",
|
|
3032
|
+
invalid_publishable_key: "invalid_publishable_key",
|
|
3033
|
+
publishable_key_missing: "publishable_key_missing"
|
|
3034
|
+
};
|
|
3035
|
+
/**
|
|
3036
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
3037
|
+
* Do not edit manually.
|
|
3038
|
+
*/
|
|
3039
|
+
const verifyEmailLogin403ErrorCodeEnum = { origin_not_allowed: "origin_not_allowed" };
|
|
3040
|
+
/**
|
|
3041
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
3042
|
+
* Do not edit manually.
|
|
3043
|
+
*/
|
|
3044
|
+
const verifyEmailLogin415ErrorCodeEnum = { unsupported_media_type: "unsupported_media_type" };
|
|
3045
|
+
/**
|
|
3046
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
3047
|
+
* Do not edit manually.
|
|
3048
|
+
*/
|
|
3049
|
+
const verifyEmailLogin429ErrorCodeEnum = { too_many_attempts: "too_many_attempts" };
|
|
3050
|
+
export { ApiError, appearanceColorModeEnum, cardOrderEventStatusEnum, cardOrderStatusEnum, chainEnum, checkoutStripeSession, checkoutStripeSession400ErrorCodeEnum, checkoutStripeSession401ErrorCodeEnum, checkoutStripeSession402ErrorCodeEnum, checkoutStripeSession403ErrorCodeEnum, checkoutStripeSession404ErrorCodeEnum, checkoutStripeSession409ErrorCodeEnum, checkoutStripeSession422ErrorCodeEnum, client, confirmCardOrder, confirmCardOrder400ErrorCodeEnum, confirmCardOrder401ErrorCodeEnum, confirmCardOrder402ErrorCodeEnum, confirmCardOrder403ErrorCodeEnum, confirmCardOrder404ErrorCodeEnum, confirmCardOrder409ErrorCodeEnum, confirmCardOrder415ErrorCodeEnum, confirmCardOrder422ErrorCodeEnum, createApplePaySession, createApplePaySession400ErrorCodeEnum, createApplePaySession401ErrorCodeEnum, createApplePaySession403ErrorCodeEnum, createApplePaySession404ErrorCodeEnum, createApplePaySession409ErrorCodeEnum, createBlinkSignature, createBlinkSignature400ErrorCodeEnum, createBlinkSignature401ErrorCodeEnum, createBlinkSignature403ErrorCodeEnum, createBlinkSignature415ErrorCodeEnum, createBlinkSignatureMutationRequestCurrencyEnum, createCardFcaSubmission, createCardFcaSubmission200StatusEnum, createCardFcaSubmission400ErrorCodeEnum, createCardFcaSubmission401ErrorCodeEnum, createCardFcaSubmission403ErrorCodeEnum, createCardFcaSubmission415ErrorCodeEnum, createCardOrder, createCardOrder400ErrorCodeEnum, createCardOrder401ErrorCodeEnum, createCardOrder403ErrorCodeEnum, createCardOrder404ErrorCodeEnum, createCardOrder409ErrorCodeEnum, createCardOrder415ErrorCodeEnum, createCardOrder422ErrorCodeEnum, createCardQuote, createCardQuote400ErrorCodeEnum, createCardQuote401ErrorCodeEnum, createCardQuote403ErrorCodeEnum, createCardQuote404ErrorCodeEnum, createCardQuote415ErrorCodeEnum, createCashAppOrder, createCashAppOrder200StatusEnum, createCashAppOrder400ErrorCodeEnum, createCashAppOrder401ErrorCodeEnum, createCashAppOrder403ErrorCodeEnum, createCashAppOrder404ErrorCodeEnum, createCashAppOrder409ErrorCodeEnum, createCashAppOrder415ErrorCodeEnum, createCashAppOrder422ErrorCodeEnum, createCashAppOrder503ErrorCodeEnum, createCashAppOrderMutationRequestCurrencyEnum, createCashAppQuote, createCashAppQuote400ErrorCodeEnum, createCashAppQuote401ErrorCodeEnum, createCashAppQuote403ErrorCodeEnum, createCashAppQuote404ErrorCodeEnum, createCashAppQuote415ErrorCodeEnum, createCashAppQuote503ErrorCodeEnum, createCashAppQuoteMutationRequestCurrencyEnum, createStripeAuthIntent, createStripeAuthIntent400ErrorCodeEnum, createStripeAuthIntent401ErrorCodeEnum, createStripeAuthIntent403ErrorCodeEnum, createStripeAuthIntent404ErrorCodeEnum, createStripeAuthIntent409ErrorCodeEnum, createStripeAuthIntent415ErrorCodeEnum, createStripeCustomer, createStripeCustomer400ErrorCodeEnum, createStripeCustomer401ErrorCodeEnum, createStripeCustomer403ErrorCodeEnum, createStripeCustomer404ErrorCodeEnum, createStripeQuote, createStripeQuote400ErrorCodeEnum, createStripeQuote401ErrorCodeEnum, createStripeQuote403ErrorCodeEnum, createStripeQuote404ErrorCodeEnum, createStripeQuote415ErrorCodeEnum, createStripeQuoteMutationRequestCurrencyEnum, createStripeSession, createStripeSession200StatusEnum, createStripeSession400ErrorCodeEnum, createStripeSession401ErrorCodeEnum, createStripeSession402ErrorCodeEnum, createStripeSession403ErrorCodeEnum, createStripeSession404ErrorCodeEnum, createStripeSession415ErrorCodeEnum, createStripeSessionMutationRequestCurrencyEnum, createStripeTokens, createStripeTokens400ErrorCodeEnum, createStripeTokens401ErrorCodeEnum, createStripeTokens403ErrorCodeEnum, createStripeTokens415ErrorCodeEnum, createSwappedCheckout, createSwappedCheckout400ErrorCodeEnum, createSwappedCheckout401ErrorCodeEnum, createSwappedCheckout403ErrorCodeEnum, createSwappedCheckout404ErrorCodeEnum, createSwappedCheckout415ErrorCodeEnum, createSwappedQuote, createSwappedQuote400ErrorCodeEnum, createSwappedQuote401ErrorCodeEnum, createSwappedQuote403ErrorCodeEnum, createSwappedQuote404ErrorCodeEnum, createSwappedQuote415ErrorCodeEnum, createSwappedQuoteMutationRequestTradeTypeEnum, createVirtualAccount, createVirtualAccount400ErrorCodeEnum, createVirtualAccount401ErrorCodeEnum, createVirtualAccount403ErrorCodeEnum, createVirtualAccount404ErrorCodeEnum, createVirtualAccount409ErrorCodeEnum, createVirtualAccount415ErrorCodeEnum, destinationTokenEnum, errorCodeEnum, fiatCurrencyEnum, getApp, getApp401ErrorCodeEnum, getApp403ErrorCodeEnum, getBalances, getBalances400ErrorCodeEnum, getBalances401ErrorCodeEnum, getBalances403ErrorCodeEnum, getBlinkConfig, getBlinkConfig401ErrorCodeEnum, getBlinkConfig403ErrorCodeEnum, getCardCustomer, getCardCustomer401ErrorCodeEnum, getCardCustomer403ErrorCodeEnum, getCardCustomer404ErrorCodeEnum, getCardFcaRequirements, getCardFcaRequirements200StatusEnum, getCardFcaRequirements400ErrorCodeEnum, getCardFcaRequirements401ErrorCodeEnum, getCardFcaRequirements403ErrorCodeEnum, getCardFcaRequirementsQueryParamsStatusEnum, getCardFcaStatus, getCardFcaStatus400ErrorCodeEnum, getCardFcaStatus401ErrorCodeEnum, getCardFcaStatus403ErrorCodeEnum, getCardOrder, getCardOrder400ErrorCodeEnum, getCardOrder401ErrorCodeEnum, getCardOrder403ErrorCodeEnum, getCardOrder404ErrorCodeEnum, getCardReturn, getCardReturnPathParamsOutcomeEnum, getCashAppOrder, getCashAppOrder200StatusEnum, getCashAppOrder400ErrorCodeEnum, getCashAppOrder401ErrorCodeEnum, getCashAppOrder403ErrorCodeEnum, getCashAppOrder404ErrorCodeEnum, getEmailSession, getEmailSession401ErrorCodeEnum, getEmailSession403ErrorCodeEnum, getFxRates, getFxRates401ErrorCodeEnum, getFxRates403ErrorCodeEnum, getFxRates502ErrorCodeEnum, getIdentityVerificationUrl, getIdentityVerificationUrl400ErrorCodeEnum, getIdentityVerificationUrl401ErrorCodeEnum, getIdentityVerificationUrl403ErrorCodeEnum, getIdentityVerificationUrl404ErrorCodeEnum, getIdentityVerificationUrl502ErrorCodeEnum, getStripeConfig, getStripeConfig401ErrorCodeEnum, getStripeConfig403ErrorCodeEnum, getStripeCustomerStatus, getStripeCustomerStatus200IdDocumentStatusEnum, getStripeCustomerStatus200KycRegionEnum, getStripeCustomerStatus200KycStatusEnum, getStripeCustomerStatus200L2StatusEnum, getStripeCustomerStatus400ErrorCodeEnum, getStripeCustomerStatus401ErrorCodeEnum, getStripeCustomerStatus403ErrorCodeEnum, getStripeCustomerStatus404ErrorCodeEnum, getStripeOrder, getStripeOrder200StatusEnum, getStripeOrder400ErrorCodeEnum, getStripeOrder401ErrorCodeEnum, getStripeOrder403ErrorCodeEnum, getStripeOrder404ErrorCodeEnum, getSwappedCheckout, getSwappedCheckout200StatusEnum, getSwappedCheckout400ErrorCodeEnum, getSwappedCheckout401ErrorCodeEnum, getSwappedCheckout403ErrorCodeEnum, getSwappedCheckout404ErrorCodeEnum, getTermsOfServiceUrl, getTermsOfServiceUrl400ErrorCodeEnum, getTermsOfServiceUrl401ErrorCodeEnum, getTermsOfServiceUrl403ErrorCodeEnum, getTermsOfServiceUrl404ErrorCodeEnum, getTermsOfServiceUrl502ErrorCodeEnum, getVirtualAccountStatus, getVirtualAccountStatus200IdentityVerificationStatusEnum, getVirtualAccountStatus401ErrorCodeEnum, getVirtualAccountStatus403ErrorCodeEnum, getVirtualAccountStatus404ErrorCodeEnum, listCountries, listCountries401ErrorCodeEnum, listCountries403ErrorCodeEnum, listPaymentMethods, listPaymentMethods400ErrorCodeEnum, listPaymentMethods401ErrorCodeEnum, listPaymentMethods403ErrorCodeEnum, listStripePaymentTokens, listStripePaymentTokens400ErrorCodeEnum, listStripePaymentTokens401ErrorCodeEnum, listStripePaymentTokens403ErrorCodeEnum, listStripePaymentTokens404ErrorCodeEnum, listStripeWallets, listStripeWallets400ErrorCodeEnum, listStripeWallets401ErrorCodeEnum, listStripeWallets403ErrorCodeEnum, listStripeWallets404ErrorCodeEnum, listSwappedCountries, listSwappedCountries401ErrorCodeEnum, listSwappedCountries403ErrorCodeEnum, listSwappedPaymentMethods, listSwappedPaymentMethods400ErrorCodeEnum, listSwappedPaymentMethods401ErrorCodeEnum, listSwappedPaymentMethods403ErrorCodeEnum, listVirtualAccounts, listVirtualAccounts401ErrorCodeEnum, listVirtualAccounts403ErrorCodeEnum, mountPaymentEnvironmentEnum, paymentMethodEnumEnum, paymentMethodTypeEnum, registerVirtualAccountCustomer, registerVirtualAccountCustomer400ErrorCodeEnum, registerVirtualAccountCustomer401ErrorCodeEnum, registerVirtualAccountCustomer403ErrorCodeEnum, registerVirtualAccountCustomer409ErrorCodeEnum, registerVirtualAccountCustomer415ErrorCodeEnum, registerVirtualAccountCustomer502ErrorCodeEnum, resolveStripeDestination, resolveStripeDestination400ErrorCodeEnum, resolveStripeDestination401ErrorCodeEnum, resolveStripeDestination403ErrorCodeEnum, resolveStripeDestination404ErrorCodeEnum, resolveStripeDestination415ErrorCodeEnum, resolveStripeDestinationMutationRequestCurrencyEnum, revokeEmailSession, revokeEmailSession401ErrorCodeEnum, revokeEmailSession403ErrorCodeEnum, startEmailLogin, startEmailLogin400ErrorCodeEnum, startEmailLogin401ErrorCodeEnum, startEmailLogin403ErrorCodeEnum, startEmailLogin415ErrorCodeEnum, startEmailLogin429ErrorCodeEnum, stripeOnboardingStatusEnum, verifyEmailLogin, verifyEmailLogin400ErrorCodeEnum, verifyEmailLogin401ErrorCodeEnum, verifyEmailLogin403ErrorCodeEnum, verifyEmailLogin415ErrorCodeEnum, verifyEmailLogin429ErrorCodeEnum, verifyIdentityEnvironmentEnum };
|