@calm-xyz/core 0.13.0 → 0.14.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 +154 -2
- package/dist/index.js +55 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2707,6 +2707,10 @@ type ListCardPaymentMethods200 = {
|
|
|
2707
2707
|
* @type array
|
|
2708
2708
|
*/
|
|
2709
2709
|
data: {
|
|
2710
|
+
/**
|
|
2711
|
+
* @type string, uri
|
|
2712
|
+
*/
|
|
2713
|
+
icon: string;
|
|
2710
2714
|
/**
|
|
2711
2715
|
* @type number
|
|
2712
2716
|
*/
|
|
@@ -2768,6 +2772,138 @@ type ListCardPaymentMethodsMutation = {
|
|
|
2768
2772
|
Request: ListCardPaymentMethodsMutationRequest;
|
|
2769
2773
|
Errors: ListCardPaymentMethods400 | ListCardPaymentMethods401 | ListCardPaymentMethods403 | ListCardPaymentMethods429 | ListCardPaymentMethods502;
|
|
2770
2774
|
};
|
|
2775
|
+
/**
|
|
2776
|
+
* @description The countries on offer.
|
|
2777
|
+
*/
|
|
2778
|
+
type ListCountries200 = {
|
|
2779
|
+
/**
|
|
2780
|
+
* @type number
|
|
2781
|
+
*/
|
|
2782
|
+
count: number;
|
|
2783
|
+
/**
|
|
2784
|
+
* @type array
|
|
2785
|
+
*/
|
|
2786
|
+
data: {
|
|
2787
|
+
/**
|
|
2788
|
+
* @type string
|
|
2789
|
+
*/
|
|
2790
|
+
code: string;
|
|
2791
|
+
/**
|
|
2792
|
+
* @type string, uri
|
|
2793
|
+
*/
|
|
2794
|
+
icon: string;
|
|
2795
|
+
/**
|
|
2796
|
+
* @type string
|
|
2797
|
+
*/
|
|
2798
|
+
name: string;
|
|
2799
|
+
}[];
|
|
2800
|
+
};
|
|
2801
|
+
/**
|
|
2802
|
+
* @description Bad Request — `error.code` includes: publishable_key_missing, validation_error.
|
|
2803
|
+
*/
|
|
2804
|
+
type ListCountries400 = Error$1;
|
|
2805
|
+
/**
|
|
2806
|
+
* @description Unauthorized — `error.code` includes: invalid_publishable_key.
|
|
2807
|
+
*/
|
|
2808
|
+
type ListCountries401 = Error$1;
|
|
2809
|
+
/**
|
|
2810
|
+
* @description Forbidden — `error.code` includes: origin_not_allowed.
|
|
2811
|
+
*/
|
|
2812
|
+
type ListCountries403 = Error$1;
|
|
2813
|
+
/**
|
|
2814
|
+
* @description Too Many Requests — `error.code` includes: rate_limited.
|
|
2815
|
+
*/
|
|
2816
|
+
type ListCountries429 = Error$1;
|
|
2817
|
+
/**
|
|
2818
|
+
* @description Bad Gateway — an upstream dependency failed; the body carries the standard error envelope with a cause-specific `error.code`.
|
|
2819
|
+
*/
|
|
2820
|
+
type ListCountries502 = Error$1;
|
|
2821
|
+
type ListCountriesQueryResponse = ListCountries200;
|
|
2822
|
+
type ListCountriesQuery = {
|
|
2823
|
+
Response: ListCountries200;
|
|
2824
|
+
Errors: ListCountries400 | ListCountries401 | ListCountries403 | ListCountries429 | ListCountries502;
|
|
2825
|
+
};
|
|
2826
|
+
/**
|
|
2827
|
+
* @description The payment methods on offer.
|
|
2828
|
+
*/
|
|
2829
|
+
type ListPaymentMethods200 = {
|
|
2830
|
+
/**
|
|
2831
|
+
* @type number
|
|
2832
|
+
*/
|
|
2833
|
+
count: number;
|
|
2834
|
+
/**
|
|
2835
|
+
* @type string
|
|
2836
|
+
*/
|
|
2837
|
+
currency: string;
|
|
2838
|
+
/**
|
|
2839
|
+
* @type array
|
|
2840
|
+
*/
|
|
2841
|
+
data: {
|
|
2842
|
+
/**
|
|
2843
|
+
* @type string, uri
|
|
2844
|
+
*/
|
|
2845
|
+
icon: string;
|
|
2846
|
+
/**
|
|
2847
|
+
* @type number
|
|
2848
|
+
*/
|
|
2849
|
+
max_amount: number;
|
|
2850
|
+
/**
|
|
2851
|
+
* @type number
|
|
2852
|
+
*/
|
|
2853
|
+
min_amount: number;
|
|
2854
|
+
/**
|
|
2855
|
+
* @type string
|
|
2856
|
+
*/
|
|
2857
|
+
name: string;
|
|
2858
|
+
/**
|
|
2859
|
+
* @type string
|
|
2860
|
+
*/
|
|
2861
|
+
payment_method: string;
|
|
2862
|
+
}[];
|
|
2863
|
+
};
|
|
2864
|
+
/**
|
|
2865
|
+
* @description Bad Request — `error.code` includes: publishable_key_missing, validation_error.
|
|
2866
|
+
*/
|
|
2867
|
+
type ListPaymentMethods400 = Error$1;
|
|
2868
|
+
/**
|
|
2869
|
+
* @description Unauthorized — `error.code` includes: invalid_publishable_key.
|
|
2870
|
+
*/
|
|
2871
|
+
type ListPaymentMethods401 = Error$1;
|
|
2872
|
+
/**
|
|
2873
|
+
* @description Forbidden — `error.code` includes: origin_not_allowed.
|
|
2874
|
+
*/
|
|
2875
|
+
type ListPaymentMethods403 = Error$1;
|
|
2876
|
+
/**
|
|
2877
|
+
* @description Too Many Requests — `error.code` includes: rate_limited.
|
|
2878
|
+
*/
|
|
2879
|
+
type ListPaymentMethods429 = Error$1;
|
|
2880
|
+
/**
|
|
2881
|
+
* @description Bad Gateway — an upstream dependency failed; the body carries the standard error envelope with a cause-specific `error.code`.
|
|
2882
|
+
*/
|
|
2883
|
+
type ListPaymentMethods502 = Error$1;
|
|
2884
|
+
declare const listPaymentMethodsMutationRequestCurrencyEnum: {
|
|
2885
|
+
readonly USD: "USD";
|
|
2886
|
+
readonly GBP: "GBP";
|
|
2887
|
+
readonly EUR: "EUR";
|
|
2888
|
+
};
|
|
2889
|
+
type ListPaymentMethodsMutationRequestCurrencyEnumKey = (typeof listPaymentMethodsMutationRequestCurrencyEnum)[keyof typeof listPaymentMethodsMutationRequestCurrencyEnum];
|
|
2890
|
+
type ListPaymentMethodsMutationRequest = {
|
|
2891
|
+
/**
|
|
2892
|
+
* @pattern ^[A-Z]{2}$
|
|
2893
|
+
* @type string
|
|
2894
|
+
*/
|
|
2895
|
+
country: string;
|
|
2896
|
+
/**
|
|
2897
|
+
* @type string
|
|
2898
|
+
*/
|
|
2899
|
+
currency: ListPaymentMethodsMutationRequestCurrencyEnumKey;
|
|
2900
|
+
};
|
|
2901
|
+
type ListPaymentMethodsMutationResponse = ListPaymentMethods200;
|
|
2902
|
+
type ListPaymentMethodsMutation = {
|
|
2903
|
+
Response: ListPaymentMethods200;
|
|
2904
|
+
Request: ListPaymentMethodsMutationRequest;
|
|
2905
|
+
Errors: ListPaymentMethods400 | ListPaymentMethods401 | ListPaymentMethods403 | ListPaymentMethods429 | ListPaymentMethods502;
|
|
2906
|
+
};
|
|
2771
2907
|
type ListStripePaymentTokensQueryParams = {
|
|
2772
2908
|
/**
|
|
2773
2909
|
* @pattern ^0x[a-fA-F0-9]{40}$
|
|
@@ -3331,13 +3467,29 @@ declare function listBlinkDeposits(params: ListBlinkDepositsQueryParams, config?
|
|
|
3331
3467
|
client?: Client;
|
|
3332
3468
|
}): Promise<ListBlinkDeposits200>;
|
|
3333
3469
|
/**
|
|
3334
|
-
* @description
|
|
3470
|
+
* @description Deprecated — use `POST /v1/payment-methods`, which takes the same body and returns the same rows. This path is kept working for integrations that have not moved yet and will be removed once they have.
|
|
3335
3471
|
* @summary List card payment methods
|
|
3336
3472
|
* {@link /v1/card/payment-methods}
|
|
3337
3473
|
*/
|
|
3338
3474
|
declare function listCardPaymentMethods(data: ListCardPaymentMethodsMutationRequest, config?: Partial<RequestConfig<ListCardPaymentMethodsMutationRequest>> & {
|
|
3339
3475
|
client?: Client;
|
|
3340
3476
|
}): Promise<ListCardPaymentMethods200>;
|
|
3477
|
+
/**
|
|
3478
|
+
* @description Lists the countries a buyer can be in, ordered by name. `code` is the 2-letter ISO-3166 code the other routes take as `country`, `name` is its English display name, and `icon` is an absolute URL to its flag as an SVG sized to render as-is. The list follows what the rails actually serve rather than a set compiled into the API, so it grows on its own. A country absent from it is one no rail serves, so treat it as unavailable rather than trying it and reading the error.
|
|
3479
|
+
* @summary List supported countries
|
|
3480
|
+
* {@link /v1/countries}
|
|
3481
|
+
*/
|
|
3482
|
+
declare function listCountries(config?: Partial<RequestConfig> & {
|
|
3483
|
+
client?: Client;
|
|
3484
|
+
}): Promise<ListCountries200>;
|
|
3485
|
+
/**
|
|
3486
|
+
* @description Lists the payment methods available to a buyer, one row per method — the value the quote and checkout routes accept. `country` and `currency` are both required; a country that is not served returns an empty list. `currency` is the fiat the buyer pays in and filters the list, and is echoed back; it is not the unit of anything in the response. `min_amount` and `max_amount` are in `currency` — every method's limits are converted into the fiat you asked for and rounded up, so they can be rendered against the amount the buyer types with no further conversion. `icon` is an absolute URL to that method's mark, an SVG sized to render as-is. `payment_method` is an open string and the catalog varies by country, so render each row's `name` and `icon` and pass its `payment_method` straight back rather than matching against a fixed set.
|
|
3487
|
+
* @summary List payment methods
|
|
3488
|
+
* {@link /v1/payment-methods}
|
|
3489
|
+
*/
|
|
3490
|
+
declare function listPaymentMethods(data: ListPaymentMethodsMutationRequest, config?: Partial<RequestConfig<ListPaymentMethodsMutationRequest>> & {
|
|
3491
|
+
client?: Client;
|
|
3492
|
+
}): Promise<ListPaymentMethods200>;
|
|
3341
3493
|
/**
|
|
3342
3494
|
* @description Returns the payment methods the customer has on file. Read it before `collectPaymentMethod` to offer a saved method instead of collecting a new one.
|
|
3343
3495
|
* @summary List the customer's payment methods
|
|
@@ -3370,4 +3522,4 @@ declare function listVirtualAccounts(params: ListVirtualAccountsQueryParams, con
|
|
|
3370
3522
|
declare function registerWallet(data: RegisterWalletMutationRequest, config?: Partial<RequestConfig<RegisterWalletMutationRequest>> & {
|
|
3371
3523
|
client?: Client;
|
|
3372
3524
|
}): Promise<any>;
|
|
3373
|
-
export { ApiError, type CheckoutCard200, type CheckoutCard400, type CheckoutCard401, type CheckoutCard403, type CheckoutCard429, type CheckoutCard502, type CheckoutCardMutation, type CheckoutCardMutationRequest, type CheckoutCardMutationRequestCurrencyEnumKey, type CheckoutCardMutationRequestDestinationChainEnumKey, type CheckoutCardMutationRequestDestinationTokenEnumKey, type CheckoutCardMutationRequestTradeTypeEnumKey, type CheckoutCardMutationResponse, type CheckoutStripeSession200, type CheckoutStripeSession400, type CheckoutStripeSession401, type CheckoutStripeSession402, type CheckoutStripeSession403, type CheckoutStripeSession404, type CheckoutStripeSession409, type CheckoutStripeSession429, type CheckoutStripeSession502, type CheckoutStripeSessionMutation, type CheckoutStripeSessionMutationRequest, type CheckoutStripeSessionMutationResponse, type CheckoutStripeSessionPathParams, type Client, type ConnectExchange200, type ConnectExchange400, type ConnectExchange401, type ConnectExchange403, type ConnectExchange429, type ConnectExchange502, type ConnectExchangeMutation, type ConnectExchangeMutationRequest, type ConnectExchangeMutationResponse, type ConnectExchangePathParams, type ConnectExchangePathParamsExchangeEnumKey, type CreateBlinkSignature200, type CreateBlinkSignature400, type CreateBlinkSignature401, type CreateBlinkSignature403, type CreateBlinkSignature429, type CreateBlinkSignatureMutation, type CreateBlinkSignatureMutationRequest, type CreateBlinkSignatureMutationRequestDestinationChainEnumKey, type CreateBlinkSignatureMutationRequestDestinationTokenEnumKey, type CreateBlinkSignatureMutationResponse, type CreateCardQuote200, type CreateCardQuote400, type CreateCardQuote401, type CreateCardQuote403, type CreateCardQuote429, type CreateCardQuote502, type CreateCardQuoteMutation, type CreateCardQuoteMutationRequest, type CreateCardQuoteMutationRequestCurrencyEnumKey, type CreateCardQuoteMutationRequestDestinationChainEnumKey, type CreateCardQuoteMutationRequestDestinationTokenEnumKey, type CreateCardQuoteMutationRequestTradeTypeEnumKey, type CreateCardQuoteMutationResponse, type CreateCashAppOrder200, type CreateCashAppOrder200StatusEnumKey, type CreateCashAppOrder400, type CreateCashAppOrder401, type CreateCashAppOrder403, type CreateCashAppOrder429, type CreateCashAppOrder502, type CreateCashAppOrderMutation, type CreateCashAppOrderMutationRequest, type CreateCashAppOrderMutationRequestDestinationChainEnumKey, type CreateCashAppOrderMutationRequestDestinationTokenEnumKey, type CreateCashAppOrderMutationResponse, type CreateCashAppQuote200, type CreateCashAppQuote400, type CreateCashAppQuote401, type CreateCashAppQuote403, type CreateCashAppQuote429, type CreateCashAppQuote502, type CreateCashAppQuoteMutation, type CreateCashAppQuoteMutationRequest, type CreateCashAppQuoteMutationRequestDestinationChainEnumKey, type CreateCashAppQuoteMutationRequestDestinationTokenEnumKey, type CreateCashAppQuoteMutationResponse, type CreateExchangeWithdrawQuote200, type CreateExchangeWithdrawQuote400, type CreateExchangeWithdrawQuote401, type CreateExchangeWithdrawQuote403, type CreateExchangeWithdrawQuote409, type CreateExchangeWithdrawQuote429, type CreateExchangeWithdrawQuote502, type CreateExchangeWithdrawQuoteMutation, type CreateExchangeWithdrawQuoteMutationRequest, type CreateExchangeWithdrawQuoteMutationRequestDestinationChainEnumKey, type CreateExchangeWithdrawQuoteMutationRequestDestinationTokenEnumKey, type CreateExchangeWithdrawQuoteMutationRequestOriginChainEnumKey, type CreateExchangeWithdrawQuoteMutationResponse, type CreateExchangeWithdrawQuotePathParams, type CreateExchangeWithdrawQuotePathParamsExchangeEnumKey, type CreateStripeAuthIntent200, type CreateStripeAuthIntent400, type CreateStripeAuthIntent401, type CreateStripeAuthIntent403, type CreateStripeAuthIntent404, type CreateStripeAuthIntent429, type CreateStripeAuthIntent502, type CreateStripeAuthIntentMutation, type CreateStripeAuthIntentMutationRequest, type CreateStripeAuthIntentMutationResponse, type CreateStripeCustomer204, type CreateStripeCustomer400, type CreateStripeCustomer401, type CreateStripeCustomer403, type CreateStripeCustomer404, type CreateStripeCustomer429, type CreateStripeCustomer502, type CreateStripeCustomerMutation, type CreateStripeCustomerMutationRequest, type CreateStripeCustomerMutationResponse, type CreateStripeCustomerPathParams, type CreateStripeSession200, type CreateStripeSession400, type CreateStripeSession401, type CreateStripeSession403, type CreateStripeSession404, type CreateStripeSession429, type CreateStripeSession502, type CreateStripeSessionMutation, type CreateStripeSessionMutationRequest, type CreateStripeSessionMutationRequestDestinationChainEnumKey, type CreateStripeSessionMutationRequestDestinationTokenEnumKey, type CreateStripeSessionMutationResponse, type CreateStripeTokens204, type CreateStripeTokens400, type CreateStripeTokens401, type CreateStripeTokens403, type CreateStripeTokens404, type CreateStripeTokens409, type CreateStripeTokens429, type CreateStripeTokens502, type CreateStripeTokensMutation, type CreateStripeTokensMutationRequest, type CreateStripeTokensMutationResponse, type CreateVirtualAccount204, type CreateVirtualAccount400, type CreateVirtualAccount401, type CreateVirtualAccount403, type CreateVirtualAccount409, type CreateVirtualAccount429, type CreateVirtualAccount502, type CreateVirtualAccountMutation, type CreateVirtualAccountMutationRequest, type CreateVirtualAccountMutationRequestCurrencyEnumKey, type CreateVirtualAccountMutationRequestDestinationChainEnumKey, type CreateVirtualAccountMutationRequestDestinationTokenEnumKey, type CreateVirtualAccountMutationResponse, type DataCurrencyEnumKey, type DataStatusEnumKey, type DestinationChainEnumKey, type DisconnectExchange204, type DisconnectExchange400, type DisconnectExchange401, type DisconnectExchange403, type DisconnectExchange429, type DisconnectExchange502, type DisconnectExchangeMutation, type DisconnectExchangeMutationResponse, type DisconnectExchangePathParams, type DisconnectExchangePathParamsExchangeEnumKey, type DisconnectExchangeQueryParams, type Error$1 as Error, type ExecuteExchangeWithdrawal200, type ExecuteExchangeWithdrawal200StatusEnumKey, type ExecuteExchangeWithdrawal400, type ExecuteExchangeWithdrawal401, type ExecuteExchangeWithdrawal403, type ExecuteExchangeWithdrawal404, type ExecuteExchangeWithdrawal409, type ExecuteExchangeWithdrawal429, type ExecuteExchangeWithdrawal502, type ExecuteExchangeWithdrawalMutation, type ExecuteExchangeWithdrawalMutationRequest, type ExecuteExchangeWithdrawalMutationResponse, type ExecuteExchangeWithdrawalPathParams, type ExecuteExchangeWithdrawalPathParamsExchangeEnumKey, type GetBalances200, type GetBalances400, type GetBalances401, type GetBalances403, type GetBalances429, type GetBalancesQuery, type GetBalancesQueryParams, type GetBalancesQueryResponse, type GetBlinkConfig200, type GetBlinkConfig400, type GetBlinkConfig401, type GetBlinkConfig403, type GetBlinkConfig429, type GetBlinkConfigQuery, type GetBlinkConfigQueryResponse, type GetCardOrder200, type GetCardOrder200StatusEnumKey, type GetCardOrder400, type GetCardOrder401, type GetCardOrder403, type GetCardOrder404, type GetCardOrder429, type GetCardOrderPathParams, type GetCardOrderQuery, type GetCardOrderQueryParams, type GetCardOrderQueryResponse, type GetCashAppOrder200, type GetCashAppOrder200StatusEnumKey, type GetCashAppOrder400, type GetCashAppOrder401, type GetCashAppOrder403, type GetCashAppOrder404, type GetCashAppOrder429, type GetCashAppOrderPathParams, type GetCashAppOrderQuery, type GetCashAppOrderQueryParams, type GetCashAppOrderQueryResponse, type GetExchange200, type GetExchange400, type GetExchange401, type GetExchange403, type GetExchange429, type GetExchange502, type GetExchangeAssets200, type GetExchangeAssets400, type GetExchangeAssets401, type GetExchangeAssets403, type GetExchangeAssets409, type GetExchangeAssets429, type GetExchangeAssets502, type GetExchangeAssetsPathParams, type GetExchangeAssetsPathParamsExchangeEnumKey, type GetExchangeAssetsQuery, type GetExchangeAssetsQueryParams, type GetExchangeAssetsQueryResponse, type GetExchangePathParams, type GetExchangePathParamsExchangeEnumKey, type GetExchangeQuery, type GetExchangeQueryParams, type GetExchangeQueryResponse, type GetExchangeWithdrawal200, type GetExchangeWithdrawal200StatusEnumKey, type GetExchangeWithdrawal400, type GetExchangeWithdrawal401, type GetExchangeWithdrawal403, type GetExchangeWithdrawal404, type GetExchangeWithdrawal429, type GetExchangeWithdrawalPathParams, type GetExchangeWithdrawalPathParamsExchangeEnumKey, type GetExchangeWithdrawalQuery, type GetExchangeWithdrawalQueryParams, type GetExchangeWithdrawalQueryResponse, type GetFxRates200, type GetFxRates429, type GetFxRates502, type GetFxRatesQuery, type GetFxRatesQueryResponse, type GetIdentityVerificationUrl200, type GetIdentityVerificationUrl400, type GetIdentityVerificationUrl401, type GetIdentityVerificationUrl403, type GetIdentityVerificationUrl404, type GetIdentityVerificationUrl429, type GetIdentityVerificationUrl502, type GetIdentityVerificationUrlMutation, type GetIdentityVerificationUrlMutationRequest, type GetIdentityVerificationUrlMutationResponse, type GetStripeConfig200, type GetStripeConfig400, type GetStripeConfig401, type GetStripeConfig403, type GetStripeConfig429, type GetStripeConfigQuery, type GetStripeConfigQueryResponse, type GetStripeCustomerStatus200, type GetStripeCustomerStatus400, type GetStripeCustomerStatus401, type GetStripeCustomerStatus403, type GetStripeCustomerStatus404, type GetStripeCustomerStatus429, type GetStripeCustomerStatus502, type GetStripeCustomerStatusPathParams, type GetStripeCustomerStatusQuery, type GetStripeCustomerStatusQueryParams, type GetStripeCustomerStatusQueryResponse, type GetStripeOrder200, type GetStripeOrder200StatusEnumKey, type GetStripeOrder400, type GetStripeOrder401, type GetStripeOrder403, type GetStripeOrder404, type GetStripeOrder429, type GetStripeOrderPathParams, type GetStripeOrderQuery, type GetStripeOrderQueryParams, type GetStripeOrderQueryResponse, type GetStripeQuote200, type GetStripeQuote400, type GetStripeQuote401, type GetStripeQuote403, type GetStripeQuote429, type GetStripeQuote502, type GetStripeQuoteQuery, type GetStripeQuoteQueryParams, type GetStripeQuoteQueryResponse, type GetStripeStatus200, type GetStripeStatus400, type GetStripeStatus401, type GetStripeStatus403, type GetStripeStatus429, type GetStripeStatusQuery, type GetStripeStatusQueryParams, type GetStripeStatusQueryResponse, type GetTermsOfServiceUrl200, type GetTermsOfServiceUrl400, type GetTermsOfServiceUrl401, type GetTermsOfServiceUrl403, type GetTermsOfServiceUrl404, type GetTermsOfServiceUrl429, type GetTermsOfServiceUrl502, type GetTermsOfServiceUrlMutation, type GetTermsOfServiceUrlMutationRequest, type GetTermsOfServiceUrlMutationResponse, type GetVirtualAccountStatus200, type GetVirtualAccountStatus200IdentityVerificationStatusEnumKey, type GetVirtualAccountStatus400, type GetVirtualAccountStatus401, type GetVirtualAccountStatus403, type GetVirtualAccountStatus404, type GetVirtualAccountStatus429, type GetVirtualAccountStatusQuery, type GetVirtualAccountStatusQueryParams, type GetVirtualAccountStatusQueryResponse, type ListBlinkDeposits200, type ListBlinkDeposits400, type ListBlinkDeposits401, type ListBlinkDeposits403, type ListBlinkDeposits429, type ListBlinkDepositsQuery, type ListBlinkDepositsQueryParams, type ListBlinkDepositsQueryResponse, type ListCardPaymentMethods200, type ListCardPaymentMethods400, type ListCardPaymentMethods401, type ListCardPaymentMethods403, type ListCardPaymentMethods429, type ListCardPaymentMethods502, type ListCardPaymentMethodsMutation, type ListCardPaymentMethodsMutationRequest, type ListCardPaymentMethodsMutationRequestCurrencyEnumKey, type ListCardPaymentMethodsMutationResponse, type ListStripePaymentTokens200, type ListStripePaymentTokens400, type ListStripePaymentTokens401, type ListStripePaymentTokens403, type ListStripePaymentTokens404, type ListStripePaymentTokens429, type ListStripePaymentTokens502, type ListStripePaymentTokensQuery, type ListStripePaymentTokensQueryParams, type ListStripePaymentTokensQueryResponse, type ListStripeWallets200, type ListStripeWallets400, type ListStripeWallets401, type ListStripeWallets403, type ListStripeWallets404, type ListStripeWallets429, type ListStripeWallets502, type ListStripeWalletsQuery, type ListStripeWalletsQueryParams, type ListStripeWalletsQueryResponse, type ListVirtualAccounts200, type ListVirtualAccounts400, type ListVirtualAccounts401, type ListVirtualAccounts403, type ListVirtualAccounts404, type ListVirtualAccounts429, type ListVirtualAccountsQuery, type ListVirtualAccountsQueryParams, type ListVirtualAccountsQueryResponse, type RegisterWallet204, type RegisterWallet400, type RegisterWallet401, type RegisterWallet403, type RegisterWallet409, type RegisterWallet429, type RegisterWallet502, type RegisterWalletMutation, type RegisterWalletMutationRequest, type RegisterWalletMutationResponse, type RequestConfig, type ResponseConfig, type ResponseErrorConfig, checkoutCard, checkoutCardMutationRequestCurrencyEnum, checkoutCardMutationRequestDestinationChainEnum, checkoutCardMutationRequestDestinationTokenEnum, checkoutCardMutationRequestTradeTypeEnum, checkoutStripeSession, client, client as default, connectExchange, connectExchangePathParamsExchangeEnum, createBlinkSignature, createBlinkSignatureMutationRequestDestinationChainEnum, createBlinkSignatureMutationRequestDestinationTokenEnum, createCardQuote, createCardQuoteMutationRequestCurrencyEnum, createCardQuoteMutationRequestDestinationChainEnum, createCardQuoteMutationRequestDestinationTokenEnum, createCardQuoteMutationRequestTradeTypeEnum, createCashAppOrder, createCashAppOrder200StatusEnum, createCashAppOrderMutationRequestDestinationChainEnum, createCashAppOrderMutationRequestDestinationTokenEnum, createCashAppQuote, createCashAppQuoteMutationRequestDestinationChainEnum, createCashAppQuoteMutationRequestDestinationTokenEnum, createExchangeWithdrawQuote, createExchangeWithdrawQuoteMutationRequestDestinationChainEnum, createExchangeWithdrawQuoteMutationRequestDestinationTokenEnum, createExchangeWithdrawQuoteMutationRequestOriginChainEnum, createExchangeWithdrawQuotePathParamsExchangeEnum, createStripeAuthIntent, createStripeCustomer, createStripeSession, createStripeSessionMutationRequestDestinationChainEnum, createStripeSessionMutationRequestDestinationTokenEnum, createStripeTokens, createVirtualAccount, createVirtualAccountMutationRequestCurrencyEnum, createVirtualAccountMutationRequestDestinationChainEnum, createVirtualAccountMutationRequestDestinationTokenEnum, dataCurrencyEnum, dataStatusEnum, destinationChainEnum, disconnectExchange, disconnectExchangePathParamsExchangeEnum, executeExchangeWithdrawal, executeExchangeWithdrawal200StatusEnum, executeExchangeWithdrawalPathParamsExchangeEnum, getBalances, getBlinkConfig, getCardOrder, getCardOrder200StatusEnum, getCashAppOrder, getCashAppOrder200StatusEnum, getExchange, getExchangeAssets, getExchangeAssetsPathParamsExchangeEnum, getExchangePathParamsExchangeEnum, getExchangeWithdrawal, getExchangeWithdrawal200StatusEnum, getExchangeWithdrawalPathParamsExchangeEnum, getFxRates, getIdentityVerificationUrl, getStripeConfig, getStripeCustomerStatus, getStripeOrder, getStripeOrder200StatusEnum, getStripeQuote, getStripeStatus, getTermsOfServiceUrl, getVirtualAccountStatus, getVirtualAccountStatus200IdentityVerificationStatusEnum, listBlinkDeposits, listCardPaymentMethods, listCardPaymentMethodsMutationRequestCurrencyEnum, listStripePaymentTokens, listStripeWallets, listVirtualAccounts, registerWallet };
|
|
3525
|
+
export { ApiError, type CheckoutCard200, type CheckoutCard400, type CheckoutCard401, type CheckoutCard403, type CheckoutCard429, type CheckoutCard502, type CheckoutCardMutation, type CheckoutCardMutationRequest, type CheckoutCardMutationRequestCurrencyEnumKey, type CheckoutCardMutationRequestDestinationChainEnumKey, type CheckoutCardMutationRequestDestinationTokenEnumKey, type CheckoutCardMutationRequestTradeTypeEnumKey, type CheckoutCardMutationResponse, type CheckoutStripeSession200, type CheckoutStripeSession400, type CheckoutStripeSession401, type CheckoutStripeSession402, type CheckoutStripeSession403, type CheckoutStripeSession404, type CheckoutStripeSession409, type CheckoutStripeSession429, type CheckoutStripeSession502, type CheckoutStripeSessionMutation, type CheckoutStripeSessionMutationRequest, type CheckoutStripeSessionMutationResponse, type CheckoutStripeSessionPathParams, type Client, type ConnectExchange200, type ConnectExchange400, type ConnectExchange401, type ConnectExchange403, type ConnectExchange429, type ConnectExchange502, type ConnectExchangeMutation, type ConnectExchangeMutationRequest, type ConnectExchangeMutationResponse, type ConnectExchangePathParams, type ConnectExchangePathParamsExchangeEnumKey, type CreateBlinkSignature200, type CreateBlinkSignature400, type CreateBlinkSignature401, type CreateBlinkSignature403, type CreateBlinkSignature429, type CreateBlinkSignatureMutation, type CreateBlinkSignatureMutationRequest, type CreateBlinkSignatureMutationRequestDestinationChainEnumKey, type CreateBlinkSignatureMutationRequestDestinationTokenEnumKey, type CreateBlinkSignatureMutationResponse, type CreateCardQuote200, type CreateCardQuote400, type CreateCardQuote401, type CreateCardQuote403, type CreateCardQuote429, type CreateCardQuote502, type CreateCardQuoteMutation, type CreateCardQuoteMutationRequest, type CreateCardQuoteMutationRequestCurrencyEnumKey, type CreateCardQuoteMutationRequestDestinationChainEnumKey, type CreateCardQuoteMutationRequestDestinationTokenEnumKey, type CreateCardQuoteMutationRequestTradeTypeEnumKey, type CreateCardQuoteMutationResponse, type CreateCashAppOrder200, type CreateCashAppOrder200StatusEnumKey, type CreateCashAppOrder400, type CreateCashAppOrder401, type CreateCashAppOrder403, type CreateCashAppOrder429, type CreateCashAppOrder502, type CreateCashAppOrderMutation, type CreateCashAppOrderMutationRequest, type CreateCashAppOrderMutationRequestDestinationChainEnumKey, type CreateCashAppOrderMutationRequestDestinationTokenEnumKey, type CreateCashAppOrderMutationResponse, type CreateCashAppQuote200, type CreateCashAppQuote400, type CreateCashAppQuote401, type CreateCashAppQuote403, type CreateCashAppQuote429, type CreateCashAppQuote502, type CreateCashAppQuoteMutation, type CreateCashAppQuoteMutationRequest, type CreateCashAppQuoteMutationRequestDestinationChainEnumKey, type CreateCashAppQuoteMutationRequestDestinationTokenEnumKey, type CreateCashAppQuoteMutationResponse, type CreateExchangeWithdrawQuote200, type CreateExchangeWithdrawQuote400, type CreateExchangeWithdrawQuote401, type CreateExchangeWithdrawQuote403, type CreateExchangeWithdrawQuote409, type CreateExchangeWithdrawQuote429, type CreateExchangeWithdrawQuote502, type CreateExchangeWithdrawQuoteMutation, type CreateExchangeWithdrawQuoteMutationRequest, type CreateExchangeWithdrawQuoteMutationRequestDestinationChainEnumKey, type CreateExchangeWithdrawQuoteMutationRequestDestinationTokenEnumKey, type CreateExchangeWithdrawQuoteMutationRequestOriginChainEnumKey, type CreateExchangeWithdrawQuoteMutationResponse, type CreateExchangeWithdrawQuotePathParams, type CreateExchangeWithdrawQuotePathParamsExchangeEnumKey, type CreateStripeAuthIntent200, type CreateStripeAuthIntent400, type CreateStripeAuthIntent401, type CreateStripeAuthIntent403, type CreateStripeAuthIntent404, type CreateStripeAuthIntent429, type CreateStripeAuthIntent502, type CreateStripeAuthIntentMutation, type CreateStripeAuthIntentMutationRequest, type CreateStripeAuthIntentMutationResponse, type CreateStripeCustomer204, type CreateStripeCustomer400, type CreateStripeCustomer401, type CreateStripeCustomer403, type CreateStripeCustomer404, type CreateStripeCustomer429, type CreateStripeCustomer502, type CreateStripeCustomerMutation, type CreateStripeCustomerMutationRequest, type CreateStripeCustomerMutationResponse, type CreateStripeCustomerPathParams, type CreateStripeSession200, type CreateStripeSession400, type CreateStripeSession401, type CreateStripeSession403, type CreateStripeSession404, type CreateStripeSession429, type CreateStripeSession502, type CreateStripeSessionMutation, type CreateStripeSessionMutationRequest, type CreateStripeSessionMutationRequestDestinationChainEnumKey, type CreateStripeSessionMutationRequestDestinationTokenEnumKey, type CreateStripeSessionMutationResponse, type CreateStripeTokens204, type CreateStripeTokens400, type CreateStripeTokens401, type CreateStripeTokens403, type CreateStripeTokens404, type CreateStripeTokens409, type CreateStripeTokens429, type CreateStripeTokens502, type CreateStripeTokensMutation, type CreateStripeTokensMutationRequest, type CreateStripeTokensMutationResponse, type CreateVirtualAccount204, type CreateVirtualAccount400, type CreateVirtualAccount401, type CreateVirtualAccount403, type CreateVirtualAccount409, type CreateVirtualAccount429, type CreateVirtualAccount502, type CreateVirtualAccountMutation, type CreateVirtualAccountMutationRequest, type CreateVirtualAccountMutationRequestCurrencyEnumKey, type CreateVirtualAccountMutationRequestDestinationChainEnumKey, type CreateVirtualAccountMutationRequestDestinationTokenEnumKey, type CreateVirtualAccountMutationResponse, type DataCurrencyEnumKey, type DataStatusEnumKey, type DestinationChainEnumKey, type DisconnectExchange204, type DisconnectExchange400, type DisconnectExchange401, type DisconnectExchange403, type DisconnectExchange429, type DisconnectExchange502, type DisconnectExchangeMutation, type DisconnectExchangeMutationResponse, type DisconnectExchangePathParams, type DisconnectExchangePathParamsExchangeEnumKey, type DisconnectExchangeQueryParams, type Error$1 as Error, type ExecuteExchangeWithdrawal200, type ExecuteExchangeWithdrawal200StatusEnumKey, type ExecuteExchangeWithdrawal400, type ExecuteExchangeWithdrawal401, type ExecuteExchangeWithdrawal403, type ExecuteExchangeWithdrawal404, type ExecuteExchangeWithdrawal409, type ExecuteExchangeWithdrawal429, type ExecuteExchangeWithdrawal502, type ExecuteExchangeWithdrawalMutation, type ExecuteExchangeWithdrawalMutationRequest, type ExecuteExchangeWithdrawalMutationResponse, type ExecuteExchangeWithdrawalPathParams, type ExecuteExchangeWithdrawalPathParamsExchangeEnumKey, type GetBalances200, type GetBalances400, type GetBalances401, type GetBalances403, type GetBalances429, type GetBalancesQuery, type GetBalancesQueryParams, type GetBalancesQueryResponse, type GetBlinkConfig200, type GetBlinkConfig400, type GetBlinkConfig401, type GetBlinkConfig403, type GetBlinkConfig429, type GetBlinkConfigQuery, type GetBlinkConfigQueryResponse, type GetCardOrder200, type GetCardOrder200StatusEnumKey, type GetCardOrder400, type GetCardOrder401, type GetCardOrder403, type GetCardOrder404, type GetCardOrder429, type GetCardOrderPathParams, type GetCardOrderQuery, type GetCardOrderQueryParams, type GetCardOrderQueryResponse, type GetCashAppOrder200, type GetCashAppOrder200StatusEnumKey, type GetCashAppOrder400, type GetCashAppOrder401, type GetCashAppOrder403, type GetCashAppOrder404, type GetCashAppOrder429, type GetCashAppOrderPathParams, type GetCashAppOrderQuery, type GetCashAppOrderQueryParams, type GetCashAppOrderQueryResponse, type GetExchange200, type GetExchange400, type GetExchange401, type GetExchange403, type GetExchange429, type GetExchange502, type GetExchangeAssets200, type GetExchangeAssets400, type GetExchangeAssets401, type GetExchangeAssets403, type GetExchangeAssets409, type GetExchangeAssets429, type GetExchangeAssets502, type GetExchangeAssetsPathParams, type GetExchangeAssetsPathParamsExchangeEnumKey, type GetExchangeAssetsQuery, type GetExchangeAssetsQueryParams, type GetExchangeAssetsQueryResponse, type GetExchangePathParams, type GetExchangePathParamsExchangeEnumKey, type GetExchangeQuery, type GetExchangeQueryParams, type GetExchangeQueryResponse, type GetExchangeWithdrawal200, type GetExchangeWithdrawal200StatusEnumKey, type GetExchangeWithdrawal400, type GetExchangeWithdrawal401, type GetExchangeWithdrawal403, type GetExchangeWithdrawal404, type GetExchangeWithdrawal429, type GetExchangeWithdrawalPathParams, type GetExchangeWithdrawalPathParamsExchangeEnumKey, type GetExchangeWithdrawalQuery, type GetExchangeWithdrawalQueryParams, type GetExchangeWithdrawalQueryResponse, type GetFxRates200, type GetFxRates429, type GetFxRates502, type GetFxRatesQuery, type GetFxRatesQueryResponse, type GetIdentityVerificationUrl200, type GetIdentityVerificationUrl400, type GetIdentityVerificationUrl401, type GetIdentityVerificationUrl403, type GetIdentityVerificationUrl404, type GetIdentityVerificationUrl429, type GetIdentityVerificationUrl502, type GetIdentityVerificationUrlMutation, type GetIdentityVerificationUrlMutationRequest, type GetIdentityVerificationUrlMutationResponse, type GetStripeConfig200, type GetStripeConfig400, type GetStripeConfig401, type GetStripeConfig403, type GetStripeConfig429, type GetStripeConfigQuery, type GetStripeConfigQueryResponse, type GetStripeCustomerStatus200, type GetStripeCustomerStatus400, type GetStripeCustomerStatus401, type GetStripeCustomerStatus403, type GetStripeCustomerStatus404, type GetStripeCustomerStatus429, type GetStripeCustomerStatus502, type GetStripeCustomerStatusPathParams, type GetStripeCustomerStatusQuery, type GetStripeCustomerStatusQueryParams, type GetStripeCustomerStatusQueryResponse, type GetStripeOrder200, type GetStripeOrder200StatusEnumKey, type GetStripeOrder400, type GetStripeOrder401, type GetStripeOrder403, type GetStripeOrder404, type GetStripeOrder429, type GetStripeOrderPathParams, type GetStripeOrderQuery, type GetStripeOrderQueryParams, type GetStripeOrderQueryResponse, type GetStripeQuote200, type GetStripeQuote400, type GetStripeQuote401, type GetStripeQuote403, type GetStripeQuote429, type GetStripeQuote502, type GetStripeQuoteQuery, type GetStripeQuoteQueryParams, type GetStripeQuoteQueryResponse, type GetStripeStatus200, type GetStripeStatus400, type GetStripeStatus401, type GetStripeStatus403, type GetStripeStatus429, type GetStripeStatusQuery, type GetStripeStatusQueryParams, type GetStripeStatusQueryResponse, type GetTermsOfServiceUrl200, type GetTermsOfServiceUrl400, type GetTermsOfServiceUrl401, type GetTermsOfServiceUrl403, type GetTermsOfServiceUrl404, type GetTermsOfServiceUrl429, type GetTermsOfServiceUrl502, type GetTermsOfServiceUrlMutation, type GetTermsOfServiceUrlMutationRequest, type GetTermsOfServiceUrlMutationResponse, type GetVirtualAccountStatus200, type GetVirtualAccountStatus200IdentityVerificationStatusEnumKey, type GetVirtualAccountStatus400, type GetVirtualAccountStatus401, type GetVirtualAccountStatus403, type GetVirtualAccountStatus404, type GetVirtualAccountStatus429, type GetVirtualAccountStatusQuery, type GetVirtualAccountStatusQueryParams, type GetVirtualAccountStatusQueryResponse, type ListBlinkDeposits200, type ListBlinkDeposits400, type ListBlinkDeposits401, type ListBlinkDeposits403, type ListBlinkDeposits429, type ListBlinkDepositsQuery, type ListBlinkDepositsQueryParams, type ListBlinkDepositsQueryResponse, type ListCardPaymentMethods200, type ListCardPaymentMethods400, type ListCardPaymentMethods401, type ListCardPaymentMethods403, type ListCardPaymentMethods429, type ListCardPaymentMethods502, type ListCardPaymentMethodsMutation, type ListCardPaymentMethodsMutationRequest, type ListCardPaymentMethodsMutationRequestCurrencyEnumKey, type ListCardPaymentMethodsMutationResponse, type ListCountries200, type ListCountries400, type ListCountries401, type ListCountries403, type ListCountries429, type ListCountries502, type ListCountriesQuery, type ListCountriesQueryResponse, type ListPaymentMethods200, type ListPaymentMethods400, type ListPaymentMethods401, type ListPaymentMethods403, type ListPaymentMethods429, type ListPaymentMethods502, type ListPaymentMethodsMutation, type ListPaymentMethodsMutationRequest, type ListPaymentMethodsMutationRequestCurrencyEnumKey, type ListPaymentMethodsMutationResponse, type ListStripePaymentTokens200, type ListStripePaymentTokens400, type ListStripePaymentTokens401, type ListStripePaymentTokens403, type ListStripePaymentTokens404, type ListStripePaymentTokens429, type ListStripePaymentTokens502, type ListStripePaymentTokensQuery, type ListStripePaymentTokensQueryParams, type ListStripePaymentTokensQueryResponse, type ListStripeWallets200, type ListStripeWallets400, type ListStripeWallets401, type ListStripeWallets403, type ListStripeWallets404, type ListStripeWallets429, type ListStripeWallets502, type ListStripeWalletsQuery, type ListStripeWalletsQueryParams, type ListStripeWalletsQueryResponse, type ListVirtualAccounts200, type ListVirtualAccounts400, type ListVirtualAccounts401, type ListVirtualAccounts403, type ListVirtualAccounts404, type ListVirtualAccounts429, type ListVirtualAccountsQuery, type ListVirtualAccountsQueryParams, type ListVirtualAccountsQueryResponse, type RegisterWallet204, type RegisterWallet400, type RegisterWallet401, type RegisterWallet403, type RegisterWallet409, type RegisterWallet429, type RegisterWallet502, type RegisterWalletMutation, type RegisterWalletMutationRequest, type RegisterWalletMutationResponse, type RequestConfig, type ResponseConfig, type ResponseErrorConfig, checkoutCard, checkoutCardMutationRequestCurrencyEnum, checkoutCardMutationRequestDestinationChainEnum, checkoutCardMutationRequestDestinationTokenEnum, checkoutCardMutationRequestTradeTypeEnum, checkoutStripeSession, client, client as default, connectExchange, connectExchangePathParamsExchangeEnum, createBlinkSignature, createBlinkSignatureMutationRequestDestinationChainEnum, createBlinkSignatureMutationRequestDestinationTokenEnum, createCardQuote, createCardQuoteMutationRequestCurrencyEnum, createCardQuoteMutationRequestDestinationChainEnum, createCardQuoteMutationRequestDestinationTokenEnum, createCardQuoteMutationRequestTradeTypeEnum, createCashAppOrder, createCashAppOrder200StatusEnum, createCashAppOrderMutationRequestDestinationChainEnum, createCashAppOrderMutationRequestDestinationTokenEnum, createCashAppQuote, createCashAppQuoteMutationRequestDestinationChainEnum, createCashAppQuoteMutationRequestDestinationTokenEnum, createExchangeWithdrawQuote, createExchangeWithdrawQuoteMutationRequestDestinationChainEnum, createExchangeWithdrawQuoteMutationRequestDestinationTokenEnum, createExchangeWithdrawQuoteMutationRequestOriginChainEnum, createExchangeWithdrawQuotePathParamsExchangeEnum, createStripeAuthIntent, createStripeCustomer, createStripeSession, createStripeSessionMutationRequestDestinationChainEnum, createStripeSessionMutationRequestDestinationTokenEnum, createStripeTokens, createVirtualAccount, createVirtualAccountMutationRequestCurrencyEnum, createVirtualAccountMutationRequestDestinationChainEnum, createVirtualAccountMutationRequestDestinationTokenEnum, dataCurrencyEnum, dataStatusEnum, destinationChainEnum, disconnectExchange, disconnectExchangePathParamsExchangeEnum, executeExchangeWithdrawal, executeExchangeWithdrawal200StatusEnum, executeExchangeWithdrawalPathParamsExchangeEnum, getBalances, getBlinkConfig, getCardOrder, getCardOrder200StatusEnum, getCashAppOrder, getCashAppOrder200StatusEnum, getExchange, getExchangeAssets, getExchangeAssetsPathParamsExchangeEnum, getExchangePathParamsExchangeEnum, getExchangeWithdrawal, getExchangeWithdrawal200StatusEnum, getExchangeWithdrawalPathParamsExchangeEnum, getFxRates, getIdentityVerificationUrl, getStripeConfig, getStripeCustomerStatus, getStripeOrder, getStripeOrder200StatusEnum, getStripeQuote, getStripeStatus, getTermsOfServiceUrl, getVirtualAccountStatus, getVirtualAccountStatus200IdentityVerificationStatusEnum, listBlinkDeposits, listCardPaymentMethods, listCardPaymentMethodsMutationRequestCurrencyEnum, listCountries, listPaymentMethods, listPaymentMethodsMutationRequestCurrencyEnum, listStripePaymentTokens, listStripeWallets, listVirtualAccounts, registerWallet };
|
package/dist/index.js
CHANGED
|
@@ -840,7 +840,7 @@ function getListCardPaymentMethodsUrl() {
|
|
|
840
840
|
};
|
|
841
841
|
}
|
|
842
842
|
/**
|
|
843
|
-
* @description
|
|
843
|
+
* @description Deprecated — use `POST /v1/payment-methods`, which takes the same body and returns the same rows. This path is kept working for integrations that have not moved yet and will be removed once they have.
|
|
844
844
|
* @summary List card payment methods
|
|
845
845
|
* {@link /v1/card/payment-methods}
|
|
846
846
|
*/
|
|
@@ -858,6 +858,54 @@ async function listCardPaymentMethods(data, config = {}) {
|
|
|
858
858
|
* Generated by Kubb (https://kubb.dev/).
|
|
859
859
|
* Do not edit manually.
|
|
860
860
|
*/
|
|
861
|
+
function getListCountriesUrl() {
|
|
862
|
+
return {
|
|
863
|
+
method: "GET",
|
|
864
|
+
url: `/v1/countries`
|
|
865
|
+
};
|
|
866
|
+
}
|
|
867
|
+
/**
|
|
868
|
+
* @description Lists the countries a buyer can be in, ordered by name. `code` is the 2-letter ISO-3166 code the other routes take as `country`, `name` is its English display name, and `icon` is an absolute URL to its flag as an SVG sized to render as-is. The list follows what the rails actually serve rather than a set compiled into the API, so it grows on its own. A country absent from it is one no rail serves, so treat it as unavailable rather than trying it and reading the error.
|
|
869
|
+
* @summary List supported countries
|
|
870
|
+
* {@link /v1/countries}
|
|
871
|
+
*/
|
|
872
|
+
async function listCountries(config = {}) {
|
|
873
|
+
const { client: request = client, ...requestConfig } = config;
|
|
874
|
+
return (await request({
|
|
875
|
+
method: "GET",
|
|
876
|
+
url: getListCountriesUrl().url.toString(),
|
|
877
|
+
...requestConfig
|
|
878
|
+
})).data;
|
|
879
|
+
}
|
|
880
|
+
/**
|
|
881
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
882
|
+
* Do not edit manually.
|
|
883
|
+
*/
|
|
884
|
+
function getListPaymentMethodsUrl() {
|
|
885
|
+
return {
|
|
886
|
+
method: "POST",
|
|
887
|
+
url: `/v1/payment-methods`
|
|
888
|
+
};
|
|
889
|
+
}
|
|
890
|
+
/**
|
|
891
|
+
* @description Lists the payment methods available to a buyer, one row per method — the value the quote and checkout routes accept. `country` and `currency` are both required; a country that is not served returns an empty list. `currency` is the fiat the buyer pays in and filters the list, and is echoed back; it is not the unit of anything in the response. `min_amount` and `max_amount` are in `currency` — every method's limits are converted into the fiat you asked for and rounded up, so they can be rendered against the amount the buyer types with no further conversion. `icon` is an absolute URL to that method's mark, an SVG sized to render as-is. `payment_method` is an open string and the catalog varies by country, so render each row's `name` and `icon` and pass its `payment_method` straight back rather than matching against a fixed set.
|
|
892
|
+
* @summary List payment methods
|
|
893
|
+
* {@link /v1/payment-methods}
|
|
894
|
+
*/
|
|
895
|
+
async function listPaymentMethods(data, config = {}) {
|
|
896
|
+
const { client: request = client, ...requestConfig } = config;
|
|
897
|
+
const requestData = data;
|
|
898
|
+
return (await request({
|
|
899
|
+
method: "POST",
|
|
900
|
+
url: getListPaymentMethodsUrl().url.toString(),
|
|
901
|
+
data: requestData,
|
|
902
|
+
...requestConfig
|
|
903
|
+
})).data;
|
|
904
|
+
}
|
|
905
|
+
/**
|
|
906
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
907
|
+
* Do not edit manually.
|
|
908
|
+
*/
|
|
861
909
|
function getListStripePaymentTokensUrl() {
|
|
862
910
|
return {
|
|
863
911
|
method: "GET",
|
|
@@ -1209,9 +1257,14 @@ const listCardPaymentMethodsMutationRequestCurrencyEnum = {
|
|
|
1209
1257
|
GBP: "GBP",
|
|
1210
1258
|
EUR: "EUR"
|
|
1211
1259
|
};
|
|
1260
|
+
const listPaymentMethodsMutationRequestCurrencyEnum = {
|
|
1261
|
+
USD: "USD",
|
|
1262
|
+
GBP: "GBP",
|
|
1263
|
+
EUR: "EUR"
|
|
1264
|
+
};
|
|
1212
1265
|
const dataCurrencyEnum = {
|
|
1213
1266
|
USD: "USD",
|
|
1214
1267
|
GBP: "GBP",
|
|
1215
1268
|
EUR: "EUR"
|
|
1216
1269
|
};
|
|
1217
|
-
export { ApiError, checkoutCard, checkoutCardMutationRequestCurrencyEnum, checkoutCardMutationRequestDestinationChainEnum, checkoutCardMutationRequestDestinationTokenEnum, checkoutCardMutationRequestTradeTypeEnum, checkoutStripeSession, client, client as default, connectExchange, connectExchangePathParamsExchangeEnum, createBlinkSignature, createBlinkSignatureMutationRequestDestinationChainEnum, createBlinkSignatureMutationRequestDestinationTokenEnum, createCardQuote, createCardQuoteMutationRequestCurrencyEnum, createCardQuoteMutationRequestDestinationChainEnum, createCardQuoteMutationRequestDestinationTokenEnum, createCardQuoteMutationRequestTradeTypeEnum, createCashAppOrder, createCashAppOrder200StatusEnum, createCashAppOrderMutationRequestDestinationChainEnum, createCashAppOrderMutationRequestDestinationTokenEnum, createCashAppQuote, createCashAppQuoteMutationRequestDestinationChainEnum, createCashAppQuoteMutationRequestDestinationTokenEnum, createExchangeWithdrawQuote, createExchangeWithdrawQuoteMutationRequestDestinationChainEnum, createExchangeWithdrawQuoteMutationRequestDestinationTokenEnum, createExchangeWithdrawQuoteMutationRequestOriginChainEnum, createExchangeWithdrawQuotePathParamsExchangeEnum, createStripeAuthIntent, createStripeCustomer, createStripeSession, createStripeSessionMutationRequestDestinationChainEnum, createStripeSessionMutationRequestDestinationTokenEnum, createStripeTokens, createVirtualAccount, createVirtualAccountMutationRequestCurrencyEnum, createVirtualAccountMutationRequestDestinationChainEnum, createVirtualAccountMutationRequestDestinationTokenEnum, dataCurrencyEnum, dataStatusEnum, destinationChainEnum, disconnectExchange, disconnectExchangePathParamsExchangeEnum, executeExchangeWithdrawal, executeExchangeWithdrawal200StatusEnum, executeExchangeWithdrawalPathParamsExchangeEnum, getBalances, getBlinkConfig, getCardOrder, getCardOrder200StatusEnum, getCashAppOrder, getCashAppOrder200StatusEnum, getExchange, getExchangeAssets, getExchangeAssetsPathParamsExchangeEnum, getExchangePathParamsExchangeEnum, getExchangeWithdrawal, getExchangeWithdrawal200StatusEnum, getExchangeWithdrawalPathParamsExchangeEnum, getFxRates, getIdentityVerificationUrl, getStripeConfig, getStripeCustomerStatus, getStripeOrder, getStripeOrder200StatusEnum, getStripeQuote, getStripeStatus, getTermsOfServiceUrl, getVirtualAccountStatus, getVirtualAccountStatus200IdentityVerificationStatusEnum, listBlinkDeposits, listCardPaymentMethods, listCardPaymentMethodsMutationRequestCurrencyEnum, listStripePaymentTokens, listStripeWallets, listVirtualAccounts, registerWallet };
|
|
1270
|
+
export { ApiError, checkoutCard, checkoutCardMutationRequestCurrencyEnum, checkoutCardMutationRequestDestinationChainEnum, checkoutCardMutationRequestDestinationTokenEnum, checkoutCardMutationRequestTradeTypeEnum, checkoutStripeSession, client, client as default, connectExchange, connectExchangePathParamsExchangeEnum, createBlinkSignature, createBlinkSignatureMutationRequestDestinationChainEnum, createBlinkSignatureMutationRequestDestinationTokenEnum, createCardQuote, createCardQuoteMutationRequestCurrencyEnum, createCardQuoteMutationRequestDestinationChainEnum, createCardQuoteMutationRequestDestinationTokenEnum, createCardQuoteMutationRequestTradeTypeEnum, createCashAppOrder, createCashAppOrder200StatusEnum, createCashAppOrderMutationRequestDestinationChainEnum, createCashAppOrderMutationRequestDestinationTokenEnum, createCashAppQuote, createCashAppQuoteMutationRequestDestinationChainEnum, createCashAppQuoteMutationRequestDestinationTokenEnum, createExchangeWithdrawQuote, createExchangeWithdrawQuoteMutationRequestDestinationChainEnum, createExchangeWithdrawQuoteMutationRequestDestinationTokenEnum, createExchangeWithdrawQuoteMutationRequestOriginChainEnum, createExchangeWithdrawQuotePathParamsExchangeEnum, createStripeAuthIntent, createStripeCustomer, createStripeSession, createStripeSessionMutationRequestDestinationChainEnum, createStripeSessionMutationRequestDestinationTokenEnum, createStripeTokens, createVirtualAccount, createVirtualAccountMutationRequestCurrencyEnum, createVirtualAccountMutationRequestDestinationChainEnum, createVirtualAccountMutationRequestDestinationTokenEnum, dataCurrencyEnum, dataStatusEnum, destinationChainEnum, disconnectExchange, disconnectExchangePathParamsExchangeEnum, executeExchangeWithdrawal, executeExchangeWithdrawal200StatusEnum, executeExchangeWithdrawalPathParamsExchangeEnum, getBalances, getBlinkConfig, getCardOrder, getCardOrder200StatusEnum, getCashAppOrder, getCashAppOrder200StatusEnum, getExchange, getExchangeAssets, getExchangeAssetsPathParamsExchangeEnum, getExchangePathParamsExchangeEnum, getExchangeWithdrawal, getExchangeWithdrawal200StatusEnum, getExchangeWithdrawalPathParamsExchangeEnum, getFxRates, getIdentityVerificationUrl, getStripeConfig, getStripeCustomerStatus, getStripeOrder, getStripeOrder200StatusEnum, getStripeQuote, getStripeStatus, getTermsOfServiceUrl, getVirtualAccountStatus, getVirtualAccountStatus200IdentityVerificationStatusEnum, listBlinkDeposits, listCardPaymentMethods, listCardPaymentMethodsMutationRequestCurrencyEnum, listCountries, listPaymentMethods, listPaymentMethodsMutationRequestCurrencyEnum, listStripePaymentTokens, listStripeWallets, listVirtualAccounts, registerWallet };
|