@amos.com/node 0.1.27 → 0.1.29
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.mts +138 -5
- package/dist/index.d.ts +138 -5
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -0
- package/dist/index.mjs.map +1 -1
- package/openapi/schema.ts +137 -4
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -543,6 +543,24 @@ interface paths {
|
|
|
543
543
|
patch?: never;
|
|
544
544
|
trace?: never;
|
|
545
545
|
};
|
|
546
|
+
"/payment_links/{id}": {
|
|
547
|
+
parameters: {
|
|
548
|
+
query?: never;
|
|
549
|
+
header?: never;
|
|
550
|
+
path?: never;
|
|
551
|
+
cookie?: never;
|
|
552
|
+
};
|
|
553
|
+
/** Retrieve a payment link by ID */
|
|
554
|
+
get: operations["GetPaymentLink"];
|
|
555
|
+
/** Update a payment link by ID */
|
|
556
|
+
put: operations["UpdatePaymentLink"];
|
|
557
|
+
post?: never;
|
|
558
|
+
delete?: never;
|
|
559
|
+
options?: never;
|
|
560
|
+
head?: never;
|
|
561
|
+
patch?: never;
|
|
562
|
+
trace?: never;
|
|
563
|
+
};
|
|
546
564
|
"/payment_intents/{id}": {
|
|
547
565
|
parameters: {
|
|
548
566
|
query?: never;
|
|
@@ -601,7 +619,10 @@ interface paths {
|
|
|
601
619
|
path?: never;
|
|
602
620
|
cookie?: never;
|
|
603
621
|
};
|
|
604
|
-
/**
|
|
622
|
+
/**
|
|
623
|
+
* List all payment methods
|
|
624
|
+
* @description Filter by exactly one of customer_id or payment_intent_id.
|
|
625
|
+
*/
|
|
605
626
|
get: operations["ListPaymentMethods"];
|
|
606
627
|
put?: never;
|
|
607
628
|
post?: never;
|
|
@@ -1197,6 +1218,8 @@ interface components {
|
|
|
1197
1218
|
account_holder_type?: string;
|
|
1198
1219
|
account_type?: string;
|
|
1199
1220
|
bank_name?: string;
|
|
1221
|
+
/** @enum {string|null} */
|
|
1222
|
+
failure_reason?: "activation_failed" | "processing_error" | "vault_failed" | null;
|
|
1200
1223
|
fingerprint?: string | null;
|
|
1201
1224
|
last4?: string;
|
|
1202
1225
|
routing_number?: string;
|
|
@@ -1256,6 +1279,8 @@ interface components {
|
|
|
1256
1279
|
cvc_check_message?: string | null;
|
|
1257
1280
|
exp_month?: number;
|
|
1258
1281
|
exp_year?: number;
|
|
1282
|
+
/** @enum {string|null} */
|
|
1283
|
+
failure_reason?: "authorization_failed" | "avs_blocked" | "brand_not_allowed" | "brand_not_found" | "cvc_blocked" | "processing_error" | "vault_failed" | null;
|
|
1259
1284
|
first6?: string;
|
|
1260
1285
|
funding?: string | null;
|
|
1261
1286
|
fingerprint?: string | null;
|
|
@@ -1951,6 +1976,29 @@ interface components {
|
|
|
1951
1976
|
CreatePaymentLinkRequest: {
|
|
1952
1977
|
payment_link: components["schemas"]["CreatePaymentLinkInput"];
|
|
1953
1978
|
};
|
|
1979
|
+
UpdatePaymentLinkInput: {
|
|
1980
|
+
active?: boolean;
|
|
1981
|
+
amount_type?: components["schemas"]["PaymentLinkAmountType"];
|
|
1982
|
+
amount?: number;
|
|
1983
|
+
/** Format: uri */
|
|
1984
|
+
image_url?: string;
|
|
1985
|
+
minimum_amount?: number;
|
|
1986
|
+
maximum_amount?: number;
|
|
1987
|
+
suggested_amounts?: number[];
|
|
1988
|
+
currency?: string;
|
|
1989
|
+
description?: string | null;
|
|
1990
|
+
statement_descriptor?: string;
|
|
1991
|
+
/** Format: uri */
|
|
1992
|
+
success_url?: string;
|
|
1993
|
+
title?: string;
|
|
1994
|
+
/** Format: uri */
|
|
1995
|
+
cancel_url?: string;
|
|
1996
|
+
allowed_payment_methods?: components["schemas"]["AllowedPaymentMethodInput"][];
|
|
1997
|
+
metadata?: components["schemas"]["Metadata"];
|
|
1998
|
+
};
|
|
1999
|
+
UpdatePaymentLinkRequest: {
|
|
2000
|
+
payment_link: components["schemas"]["UpdatePaymentLinkInput"];
|
|
2001
|
+
};
|
|
1954
2002
|
PaymentLink: {
|
|
1955
2003
|
/** Format: uuid */
|
|
1956
2004
|
id?: string;
|
|
@@ -2033,6 +2081,8 @@ interface components {
|
|
|
2033
2081
|
currency?: string;
|
|
2034
2082
|
direction?: components["schemas"]["PayoutDirectionType"];
|
|
2035
2083
|
metadata?: components["schemas"]["Metadata"];
|
|
2084
|
+
/** Format: uuid */
|
|
2085
|
+
organization_id?: string;
|
|
2036
2086
|
prefix?: string;
|
|
2037
2087
|
public_id?: string;
|
|
2038
2088
|
state?: components["schemas"]["PayoutStateType"];
|
|
@@ -2432,6 +2482,8 @@ interface components {
|
|
|
2432
2482
|
ParentTransactionIdQuery: string;
|
|
2433
2483
|
/** @description The ID of the payment intent to filter by */
|
|
2434
2484
|
PaymentIntentIdQuery: string;
|
|
2485
|
+
/** @description The ID of the customer to filter by. Mutually exclusive with payment_intent_id. */
|
|
2486
|
+
PaymentMethodCustomerIdQuery: string;
|
|
2435
2487
|
/** @description The ID of the payment method to filter by */
|
|
2436
2488
|
PaymentMethodIdQuery: string;
|
|
2437
2489
|
/** @description The ID of the payment transaction to filter by */
|
|
@@ -3606,6 +3658,83 @@ interface operations {
|
|
|
3606
3658
|
};
|
|
3607
3659
|
};
|
|
3608
3660
|
};
|
|
3661
|
+
GetPaymentLink: {
|
|
3662
|
+
parameters: {
|
|
3663
|
+
query?: never;
|
|
3664
|
+
header?: never;
|
|
3665
|
+
path: {
|
|
3666
|
+
/** @description The ID of the payment link to retrieve */
|
|
3667
|
+
id: string;
|
|
3668
|
+
};
|
|
3669
|
+
cookie?: never;
|
|
3670
|
+
};
|
|
3671
|
+
requestBody?: never;
|
|
3672
|
+
responses: {
|
|
3673
|
+
/** @description Payment link retrieved successfully */
|
|
3674
|
+
200: {
|
|
3675
|
+
headers: {
|
|
3676
|
+
[name: string]: unknown;
|
|
3677
|
+
};
|
|
3678
|
+
content: {
|
|
3679
|
+
"application/json": components["schemas"]["PaymentLink"];
|
|
3680
|
+
};
|
|
3681
|
+
};
|
|
3682
|
+
/** @description Payment link not found */
|
|
3683
|
+
404: {
|
|
3684
|
+
headers: {
|
|
3685
|
+
[name: string]: unknown;
|
|
3686
|
+
};
|
|
3687
|
+
content: {
|
|
3688
|
+
"application/json": components["schemas"]["Error"];
|
|
3689
|
+
};
|
|
3690
|
+
};
|
|
3691
|
+
};
|
|
3692
|
+
};
|
|
3693
|
+
UpdatePaymentLink: {
|
|
3694
|
+
parameters: {
|
|
3695
|
+
query?: never;
|
|
3696
|
+
header?: never;
|
|
3697
|
+
path: {
|
|
3698
|
+
/** @description The ID of the payment link to update */
|
|
3699
|
+
id: string;
|
|
3700
|
+
};
|
|
3701
|
+
cookie?: never;
|
|
3702
|
+
};
|
|
3703
|
+
requestBody: {
|
|
3704
|
+
content: {
|
|
3705
|
+
"application/json": components["schemas"]["UpdatePaymentLinkRequest"];
|
|
3706
|
+
};
|
|
3707
|
+
};
|
|
3708
|
+
responses: {
|
|
3709
|
+
/** @description Payment link updated successfully */
|
|
3710
|
+
200: {
|
|
3711
|
+
headers: {
|
|
3712
|
+
[name: string]: unknown;
|
|
3713
|
+
};
|
|
3714
|
+
content: {
|
|
3715
|
+
"application/json": components["schemas"]["PaymentLink"];
|
|
3716
|
+
};
|
|
3717
|
+
};
|
|
3718
|
+
/** @description Payment link not found */
|
|
3719
|
+
404: {
|
|
3720
|
+
headers: {
|
|
3721
|
+
[name: string]: unknown;
|
|
3722
|
+
};
|
|
3723
|
+
content: {
|
|
3724
|
+
"application/json": components["schemas"]["Error"];
|
|
3725
|
+
};
|
|
3726
|
+
};
|
|
3727
|
+
/** @description Error updating payment link */
|
|
3728
|
+
422: {
|
|
3729
|
+
headers: {
|
|
3730
|
+
[name: string]: unknown;
|
|
3731
|
+
};
|
|
3732
|
+
content: {
|
|
3733
|
+
"application/json": components["schemas"]["Error"];
|
|
3734
|
+
};
|
|
3735
|
+
};
|
|
3736
|
+
};
|
|
3737
|
+
};
|
|
3609
3738
|
GetPaymentIntent: {
|
|
3610
3739
|
parameters: {
|
|
3611
3740
|
query?: never;
|
|
@@ -3695,13 +3824,15 @@ interface operations {
|
|
|
3695
3824
|
};
|
|
3696
3825
|
ListPaymentMethods: {
|
|
3697
3826
|
parameters: {
|
|
3698
|
-
query
|
|
3827
|
+
query?: {
|
|
3699
3828
|
/** @description The page of results to retrieve. */
|
|
3700
3829
|
page?: components["parameters"]["PageQuery"];
|
|
3701
3830
|
/** @description Number of results per page. */
|
|
3702
3831
|
per_page?: components["parameters"]["PerPageQuery"];
|
|
3703
|
-
/** @description The ID of the customer to filter by */
|
|
3704
|
-
customer_id
|
|
3832
|
+
/** @description The ID of the customer to filter by. Mutually exclusive with payment_intent_id. */
|
|
3833
|
+
customer_id?: components["parameters"]["PaymentMethodCustomerIdQuery"];
|
|
3834
|
+
/** @description The ID of the payment intent to filter by */
|
|
3835
|
+
payment_intent_id?: components["parameters"]["PaymentIntentIdQuery"];
|
|
3705
3836
|
};
|
|
3706
3837
|
header?: never;
|
|
3707
3838
|
path?: never;
|
|
@@ -4996,6 +5127,8 @@ type ReadonlyArray<T> = [
|
|
|
4996
5127
|
] extends [
|
|
4997
5128
|
unknown[]
|
|
4998
5129
|
] ? Readonly<Exclude<T, undefined>> : Readonly<Exclude<T, undefined>[]>;
|
|
5130
|
+
declare const bankAccountProfileFailure_reasonValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["BankAccountProfile"]["failure_reason"]>;
|
|
5131
|
+
declare const cardProfileFailure_reasonValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["CardProfile"]["failure_reason"]>;
|
|
4999
5132
|
declare const chargeAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["allowed_reverse_action"]>;
|
|
5000
5133
|
declare const chargeStateValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["state"]>;
|
|
5001
5134
|
declare const externalAccountTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ExternalAccount"]["type"]>;
|
|
@@ -5073,4 +5206,4 @@ declare function createPayApiClient(options: ClientOptions): openapi_fetch.Clien
|
|
|
5073
5206
|
/** A configured Amos Pay API client returned by {@link createPayApiClient}. */
|
|
5074
5207
|
type PayApiClient = ReturnType<typeof createPayApiClient>;
|
|
5075
5208
|
|
|
5076
|
-
export { type $defs, PAY_API_BASE_URL_PRODUCTION, PAY_API_BASE_URL_SANDBOX, PAY_API_VERSION, type PayApiClient, allowedApplePayPaymentMethodInputTypeValues, allowedApplePayPaymentMethodTypeValues, allowedBankAccountPaymentMethodInputTypeValues, allowedBankAccountPaymentMethodTypeValues, allowedCardPaymentMethodInputTypeValues, allowedCardPaymentMethodTypeValues, allowedGooglePayPaymentMethodInputTypeValues, allowedGooglePayPaymentMethodTypeValues, chargeAllowed_reverse_actionValues, chargeStateValues, type components, createPayApiClient, embedConfirmApplePayPaymentMethodInputTypeValues, embedConfirmBankAccountPaymentMethodInputTypeValues, embedConfirmCardPaymentMethodInputTypeValues, embedConfirmGooglePayPaymentMethodInputTypeValues, externalAccountTypeValues, legalEntityDocumentTypeValues, legalEntityEntityTypeValues, legalEntityOwnershipTypeValues, merchantBusinessCategoryTypeValues, type operations, type paths, paymentIntentStateValues, paymentLinkAmountTypeValues, paymentMethodTypeValues, payoutDirectionTypeValues, payoutStateTypeValues, processorTransactionPayment_transaction_typeValues, processorTransactionTransaction_typeValues, refundAllowed_reverse_actionValues, refundStateTypeValues, setupIntentStateValues, subscriptionIntervalTypeValues, subscriptionPlanTypeValues, subscriptionStateValues, transactionSourceTypeValues, walletProviderTypeValues, webhookEventTypeValues, type webhooks };
|
|
5209
|
+
export { type $defs, PAY_API_BASE_URL_PRODUCTION, PAY_API_BASE_URL_SANDBOX, PAY_API_VERSION, type PayApiClient, allowedApplePayPaymentMethodInputTypeValues, allowedApplePayPaymentMethodTypeValues, allowedBankAccountPaymentMethodInputTypeValues, allowedBankAccountPaymentMethodTypeValues, allowedCardPaymentMethodInputTypeValues, allowedCardPaymentMethodTypeValues, allowedGooglePayPaymentMethodInputTypeValues, allowedGooglePayPaymentMethodTypeValues, bankAccountProfileFailure_reasonValues, cardProfileFailure_reasonValues, chargeAllowed_reverse_actionValues, chargeStateValues, type components, createPayApiClient, embedConfirmApplePayPaymentMethodInputTypeValues, embedConfirmBankAccountPaymentMethodInputTypeValues, embedConfirmCardPaymentMethodInputTypeValues, embedConfirmGooglePayPaymentMethodInputTypeValues, externalAccountTypeValues, legalEntityDocumentTypeValues, legalEntityEntityTypeValues, legalEntityOwnershipTypeValues, merchantBusinessCategoryTypeValues, type operations, type paths, paymentIntentStateValues, paymentLinkAmountTypeValues, paymentMethodTypeValues, payoutDirectionTypeValues, payoutStateTypeValues, processorTransactionPayment_transaction_typeValues, processorTransactionTransaction_typeValues, refundAllowed_reverse_actionValues, refundStateTypeValues, setupIntentStateValues, subscriptionIntervalTypeValues, subscriptionPlanTypeValues, subscriptionStateValues, transactionSourceTypeValues, walletProviderTypeValues, webhookEventTypeValues, type webhooks };
|
package/dist/index.d.ts
CHANGED
|
@@ -543,6 +543,24 @@ interface paths {
|
|
|
543
543
|
patch?: never;
|
|
544
544
|
trace?: never;
|
|
545
545
|
};
|
|
546
|
+
"/payment_links/{id}": {
|
|
547
|
+
parameters: {
|
|
548
|
+
query?: never;
|
|
549
|
+
header?: never;
|
|
550
|
+
path?: never;
|
|
551
|
+
cookie?: never;
|
|
552
|
+
};
|
|
553
|
+
/** Retrieve a payment link by ID */
|
|
554
|
+
get: operations["GetPaymentLink"];
|
|
555
|
+
/** Update a payment link by ID */
|
|
556
|
+
put: operations["UpdatePaymentLink"];
|
|
557
|
+
post?: never;
|
|
558
|
+
delete?: never;
|
|
559
|
+
options?: never;
|
|
560
|
+
head?: never;
|
|
561
|
+
patch?: never;
|
|
562
|
+
trace?: never;
|
|
563
|
+
};
|
|
546
564
|
"/payment_intents/{id}": {
|
|
547
565
|
parameters: {
|
|
548
566
|
query?: never;
|
|
@@ -601,7 +619,10 @@ interface paths {
|
|
|
601
619
|
path?: never;
|
|
602
620
|
cookie?: never;
|
|
603
621
|
};
|
|
604
|
-
/**
|
|
622
|
+
/**
|
|
623
|
+
* List all payment methods
|
|
624
|
+
* @description Filter by exactly one of customer_id or payment_intent_id.
|
|
625
|
+
*/
|
|
605
626
|
get: operations["ListPaymentMethods"];
|
|
606
627
|
put?: never;
|
|
607
628
|
post?: never;
|
|
@@ -1197,6 +1218,8 @@ interface components {
|
|
|
1197
1218
|
account_holder_type?: string;
|
|
1198
1219
|
account_type?: string;
|
|
1199
1220
|
bank_name?: string;
|
|
1221
|
+
/** @enum {string|null} */
|
|
1222
|
+
failure_reason?: "activation_failed" | "processing_error" | "vault_failed" | null;
|
|
1200
1223
|
fingerprint?: string | null;
|
|
1201
1224
|
last4?: string;
|
|
1202
1225
|
routing_number?: string;
|
|
@@ -1256,6 +1279,8 @@ interface components {
|
|
|
1256
1279
|
cvc_check_message?: string | null;
|
|
1257
1280
|
exp_month?: number;
|
|
1258
1281
|
exp_year?: number;
|
|
1282
|
+
/** @enum {string|null} */
|
|
1283
|
+
failure_reason?: "authorization_failed" | "avs_blocked" | "brand_not_allowed" | "brand_not_found" | "cvc_blocked" | "processing_error" | "vault_failed" | null;
|
|
1259
1284
|
first6?: string;
|
|
1260
1285
|
funding?: string | null;
|
|
1261
1286
|
fingerprint?: string | null;
|
|
@@ -1951,6 +1976,29 @@ interface components {
|
|
|
1951
1976
|
CreatePaymentLinkRequest: {
|
|
1952
1977
|
payment_link: components["schemas"]["CreatePaymentLinkInput"];
|
|
1953
1978
|
};
|
|
1979
|
+
UpdatePaymentLinkInput: {
|
|
1980
|
+
active?: boolean;
|
|
1981
|
+
amount_type?: components["schemas"]["PaymentLinkAmountType"];
|
|
1982
|
+
amount?: number;
|
|
1983
|
+
/** Format: uri */
|
|
1984
|
+
image_url?: string;
|
|
1985
|
+
minimum_amount?: number;
|
|
1986
|
+
maximum_amount?: number;
|
|
1987
|
+
suggested_amounts?: number[];
|
|
1988
|
+
currency?: string;
|
|
1989
|
+
description?: string | null;
|
|
1990
|
+
statement_descriptor?: string;
|
|
1991
|
+
/** Format: uri */
|
|
1992
|
+
success_url?: string;
|
|
1993
|
+
title?: string;
|
|
1994
|
+
/** Format: uri */
|
|
1995
|
+
cancel_url?: string;
|
|
1996
|
+
allowed_payment_methods?: components["schemas"]["AllowedPaymentMethodInput"][];
|
|
1997
|
+
metadata?: components["schemas"]["Metadata"];
|
|
1998
|
+
};
|
|
1999
|
+
UpdatePaymentLinkRequest: {
|
|
2000
|
+
payment_link: components["schemas"]["UpdatePaymentLinkInput"];
|
|
2001
|
+
};
|
|
1954
2002
|
PaymentLink: {
|
|
1955
2003
|
/** Format: uuid */
|
|
1956
2004
|
id?: string;
|
|
@@ -2033,6 +2081,8 @@ interface components {
|
|
|
2033
2081
|
currency?: string;
|
|
2034
2082
|
direction?: components["schemas"]["PayoutDirectionType"];
|
|
2035
2083
|
metadata?: components["schemas"]["Metadata"];
|
|
2084
|
+
/** Format: uuid */
|
|
2085
|
+
organization_id?: string;
|
|
2036
2086
|
prefix?: string;
|
|
2037
2087
|
public_id?: string;
|
|
2038
2088
|
state?: components["schemas"]["PayoutStateType"];
|
|
@@ -2432,6 +2482,8 @@ interface components {
|
|
|
2432
2482
|
ParentTransactionIdQuery: string;
|
|
2433
2483
|
/** @description The ID of the payment intent to filter by */
|
|
2434
2484
|
PaymentIntentIdQuery: string;
|
|
2485
|
+
/** @description The ID of the customer to filter by. Mutually exclusive with payment_intent_id. */
|
|
2486
|
+
PaymentMethodCustomerIdQuery: string;
|
|
2435
2487
|
/** @description The ID of the payment method to filter by */
|
|
2436
2488
|
PaymentMethodIdQuery: string;
|
|
2437
2489
|
/** @description The ID of the payment transaction to filter by */
|
|
@@ -3606,6 +3658,83 @@ interface operations {
|
|
|
3606
3658
|
};
|
|
3607
3659
|
};
|
|
3608
3660
|
};
|
|
3661
|
+
GetPaymentLink: {
|
|
3662
|
+
parameters: {
|
|
3663
|
+
query?: never;
|
|
3664
|
+
header?: never;
|
|
3665
|
+
path: {
|
|
3666
|
+
/** @description The ID of the payment link to retrieve */
|
|
3667
|
+
id: string;
|
|
3668
|
+
};
|
|
3669
|
+
cookie?: never;
|
|
3670
|
+
};
|
|
3671
|
+
requestBody?: never;
|
|
3672
|
+
responses: {
|
|
3673
|
+
/** @description Payment link retrieved successfully */
|
|
3674
|
+
200: {
|
|
3675
|
+
headers: {
|
|
3676
|
+
[name: string]: unknown;
|
|
3677
|
+
};
|
|
3678
|
+
content: {
|
|
3679
|
+
"application/json": components["schemas"]["PaymentLink"];
|
|
3680
|
+
};
|
|
3681
|
+
};
|
|
3682
|
+
/** @description Payment link not found */
|
|
3683
|
+
404: {
|
|
3684
|
+
headers: {
|
|
3685
|
+
[name: string]: unknown;
|
|
3686
|
+
};
|
|
3687
|
+
content: {
|
|
3688
|
+
"application/json": components["schemas"]["Error"];
|
|
3689
|
+
};
|
|
3690
|
+
};
|
|
3691
|
+
};
|
|
3692
|
+
};
|
|
3693
|
+
UpdatePaymentLink: {
|
|
3694
|
+
parameters: {
|
|
3695
|
+
query?: never;
|
|
3696
|
+
header?: never;
|
|
3697
|
+
path: {
|
|
3698
|
+
/** @description The ID of the payment link to update */
|
|
3699
|
+
id: string;
|
|
3700
|
+
};
|
|
3701
|
+
cookie?: never;
|
|
3702
|
+
};
|
|
3703
|
+
requestBody: {
|
|
3704
|
+
content: {
|
|
3705
|
+
"application/json": components["schemas"]["UpdatePaymentLinkRequest"];
|
|
3706
|
+
};
|
|
3707
|
+
};
|
|
3708
|
+
responses: {
|
|
3709
|
+
/** @description Payment link updated successfully */
|
|
3710
|
+
200: {
|
|
3711
|
+
headers: {
|
|
3712
|
+
[name: string]: unknown;
|
|
3713
|
+
};
|
|
3714
|
+
content: {
|
|
3715
|
+
"application/json": components["schemas"]["PaymentLink"];
|
|
3716
|
+
};
|
|
3717
|
+
};
|
|
3718
|
+
/** @description Payment link not found */
|
|
3719
|
+
404: {
|
|
3720
|
+
headers: {
|
|
3721
|
+
[name: string]: unknown;
|
|
3722
|
+
};
|
|
3723
|
+
content: {
|
|
3724
|
+
"application/json": components["schemas"]["Error"];
|
|
3725
|
+
};
|
|
3726
|
+
};
|
|
3727
|
+
/** @description Error updating payment link */
|
|
3728
|
+
422: {
|
|
3729
|
+
headers: {
|
|
3730
|
+
[name: string]: unknown;
|
|
3731
|
+
};
|
|
3732
|
+
content: {
|
|
3733
|
+
"application/json": components["schemas"]["Error"];
|
|
3734
|
+
};
|
|
3735
|
+
};
|
|
3736
|
+
};
|
|
3737
|
+
};
|
|
3609
3738
|
GetPaymentIntent: {
|
|
3610
3739
|
parameters: {
|
|
3611
3740
|
query?: never;
|
|
@@ -3695,13 +3824,15 @@ interface operations {
|
|
|
3695
3824
|
};
|
|
3696
3825
|
ListPaymentMethods: {
|
|
3697
3826
|
parameters: {
|
|
3698
|
-
query
|
|
3827
|
+
query?: {
|
|
3699
3828
|
/** @description The page of results to retrieve. */
|
|
3700
3829
|
page?: components["parameters"]["PageQuery"];
|
|
3701
3830
|
/** @description Number of results per page. */
|
|
3702
3831
|
per_page?: components["parameters"]["PerPageQuery"];
|
|
3703
|
-
/** @description The ID of the customer to filter by */
|
|
3704
|
-
customer_id
|
|
3832
|
+
/** @description The ID of the customer to filter by. Mutually exclusive with payment_intent_id. */
|
|
3833
|
+
customer_id?: components["parameters"]["PaymentMethodCustomerIdQuery"];
|
|
3834
|
+
/** @description The ID of the payment intent to filter by */
|
|
3835
|
+
payment_intent_id?: components["parameters"]["PaymentIntentIdQuery"];
|
|
3705
3836
|
};
|
|
3706
3837
|
header?: never;
|
|
3707
3838
|
path?: never;
|
|
@@ -4996,6 +5127,8 @@ type ReadonlyArray<T> = [
|
|
|
4996
5127
|
] extends [
|
|
4997
5128
|
unknown[]
|
|
4998
5129
|
] ? Readonly<Exclude<T, undefined>> : Readonly<Exclude<T, undefined>[]>;
|
|
5130
|
+
declare const bankAccountProfileFailure_reasonValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["BankAccountProfile"]["failure_reason"]>;
|
|
5131
|
+
declare const cardProfileFailure_reasonValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["CardProfile"]["failure_reason"]>;
|
|
4999
5132
|
declare const chargeAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["allowed_reverse_action"]>;
|
|
5000
5133
|
declare const chargeStateValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["state"]>;
|
|
5001
5134
|
declare const externalAccountTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ExternalAccount"]["type"]>;
|
|
@@ -5073,4 +5206,4 @@ declare function createPayApiClient(options: ClientOptions): openapi_fetch.Clien
|
|
|
5073
5206
|
/** A configured Amos Pay API client returned by {@link createPayApiClient}. */
|
|
5074
5207
|
type PayApiClient = ReturnType<typeof createPayApiClient>;
|
|
5075
5208
|
|
|
5076
|
-
export { type $defs, PAY_API_BASE_URL_PRODUCTION, PAY_API_BASE_URL_SANDBOX, PAY_API_VERSION, type PayApiClient, allowedApplePayPaymentMethodInputTypeValues, allowedApplePayPaymentMethodTypeValues, allowedBankAccountPaymentMethodInputTypeValues, allowedBankAccountPaymentMethodTypeValues, allowedCardPaymentMethodInputTypeValues, allowedCardPaymentMethodTypeValues, allowedGooglePayPaymentMethodInputTypeValues, allowedGooglePayPaymentMethodTypeValues, chargeAllowed_reverse_actionValues, chargeStateValues, type components, createPayApiClient, embedConfirmApplePayPaymentMethodInputTypeValues, embedConfirmBankAccountPaymentMethodInputTypeValues, embedConfirmCardPaymentMethodInputTypeValues, embedConfirmGooglePayPaymentMethodInputTypeValues, externalAccountTypeValues, legalEntityDocumentTypeValues, legalEntityEntityTypeValues, legalEntityOwnershipTypeValues, merchantBusinessCategoryTypeValues, type operations, type paths, paymentIntentStateValues, paymentLinkAmountTypeValues, paymentMethodTypeValues, payoutDirectionTypeValues, payoutStateTypeValues, processorTransactionPayment_transaction_typeValues, processorTransactionTransaction_typeValues, refundAllowed_reverse_actionValues, refundStateTypeValues, setupIntentStateValues, subscriptionIntervalTypeValues, subscriptionPlanTypeValues, subscriptionStateValues, transactionSourceTypeValues, walletProviderTypeValues, webhookEventTypeValues, type webhooks };
|
|
5209
|
+
export { type $defs, PAY_API_BASE_URL_PRODUCTION, PAY_API_BASE_URL_SANDBOX, PAY_API_VERSION, type PayApiClient, allowedApplePayPaymentMethodInputTypeValues, allowedApplePayPaymentMethodTypeValues, allowedBankAccountPaymentMethodInputTypeValues, allowedBankAccountPaymentMethodTypeValues, allowedCardPaymentMethodInputTypeValues, allowedCardPaymentMethodTypeValues, allowedGooglePayPaymentMethodInputTypeValues, allowedGooglePayPaymentMethodTypeValues, bankAccountProfileFailure_reasonValues, cardProfileFailure_reasonValues, chargeAllowed_reverse_actionValues, chargeStateValues, type components, createPayApiClient, embedConfirmApplePayPaymentMethodInputTypeValues, embedConfirmBankAccountPaymentMethodInputTypeValues, embedConfirmCardPaymentMethodInputTypeValues, embedConfirmGooglePayPaymentMethodInputTypeValues, externalAccountTypeValues, legalEntityDocumentTypeValues, legalEntityEntityTypeValues, legalEntityOwnershipTypeValues, merchantBusinessCategoryTypeValues, type operations, type paths, paymentIntentStateValues, paymentLinkAmountTypeValues, paymentMethodTypeValues, payoutDirectionTypeValues, payoutStateTypeValues, processorTransactionPayment_transaction_typeValues, processorTransactionTransaction_typeValues, refundAllowed_reverse_actionValues, refundStateTypeValues, setupIntentStateValues, subscriptionIntervalTypeValues, subscriptionPlanTypeValues, subscriptionStateValues, transactionSourceTypeValues, walletProviderTypeValues, webhookEventTypeValues, type webhooks };
|
package/dist/index.js
CHANGED
|
@@ -41,6 +41,8 @@ __export(index_exports, {
|
|
|
41
41
|
allowedCardPaymentMethodTypeValues: () => allowedCardPaymentMethodTypeValues,
|
|
42
42
|
allowedGooglePayPaymentMethodInputTypeValues: () => allowedGooglePayPaymentMethodInputTypeValues,
|
|
43
43
|
allowedGooglePayPaymentMethodTypeValues: () => allowedGooglePayPaymentMethodTypeValues,
|
|
44
|
+
bankAccountProfileFailure_reasonValues: () => bankAccountProfileFailure_reasonValues,
|
|
45
|
+
cardProfileFailure_reasonValues: () => cardProfileFailure_reasonValues,
|
|
44
46
|
chargeAllowed_reverse_actionValues: () => chargeAllowed_reverse_actionValues,
|
|
45
47
|
chargeStateValues: () => chargeStateValues,
|
|
46
48
|
createPayApiClient: () => createPayApiClient,
|
|
@@ -74,6 +76,8 @@ module.exports = __toCommonJS(index_exports);
|
|
|
74
76
|
var import_openapi_fetch = __toESM(require("openapi-fetch"));
|
|
75
77
|
|
|
76
78
|
// openapi/schema.ts
|
|
79
|
+
var bankAccountProfileFailure_reasonValues = ["activation_failed", "processing_error", "vault_failed"];
|
|
80
|
+
var cardProfileFailure_reasonValues = ["authorization_failed", "avs_blocked", "brand_not_allowed", "brand_not_found", "cvc_blocked", "processing_error", "vault_failed"];
|
|
77
81
|
var chargeAllowed_reverse_actionValues = ["void", "refund"];
|
|
78
82
|
var chargeStateValues = ["cancelled", "errored", "failed", "processing", "requires_capture", "requires_confirmation", "requires_review", "settlement_failed", "succeeded"];
|
|
79
83
|
var externalAccountTypeValues = ["external_card", "external_bank_account"];
|
|
@@ -130,6 +134,8 @@ function createPayApiClient(options) {
|
|
|
130
134
|
allowedCardPaymentMethodTypeValues,
|
|
131
135
|
allowedGooglePayPaymentMethodInputTypeValues,
|
|
132
136
|
allowedGooglePayPaymentMethodTypeValues,
|
|
137
|
+
bankAccountProfileFailure_reasonValues,
|
|
138
|
+
cardProfileFailure_reasonValues,
|
|
133
139
|
chargeAllowed_reverse_actionValues,
|
|
134
140
|
chargeStateValues,
|
|
135
141
|
createPayApiClient,
|