@amos.com/node 0.1.56 → 0.1.57
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 +164 -14
- package/dist/index.d.ts +164 -14
- package/dist/index.js +3 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -4
- package/dist/index.mjs.map +1 -1
- package/openapi/schema.ts +163 -13
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -113,6 +113,25 @@ interface paths {
|
|
|
113
113
|
patch?: never;
|
|
114
114
|
trace?: never;
|
|
115
115
|
};
|
|
116
|
+
"/dunning_configuration": {
|
|
117
|
+
parameters: {
|
|
118
|
+
query?: never;
|
|
119
|
+
header?: never;
|
|
120
|
+
path?: never;
|
|
121
|
+
cookie?: never;
|
|
122
|
+
};
|
|
123
|
+
/** Retrieve the current organization's dunning configuration */
|
|
124
|
+
get: operations["GetDunningConfiguration"];
|
|
125
|
+
put?: never;
|
|
126
|
+
/** Create the current organization's dunning configuration */
|
|
127
|
+
post: operations["CreateDunningConfiguration"];
|
|
128
|
+
delete?: never;
|
|
129
|
+
options?: never;
|
|
130
|
+
head?: never;
|
|
131
|
+
/** Update the current organization's dunning configuration */
|
|
132
|
+
patch: operations["UpdateDunningConfiguration"];
|
|
133
|
+
trace?: never;
|
|
134
|
+
};
|
|
116
135
|
"/external_accounts": {
|
|
117
136
|
parameters: {
|
|
118
137
|
query?: never;
|
|
@@ -1483,6 +1502,36 @@ interface components {
|
|
|
1483
1502
|
/** Format: date-time */
|
|
1484
1503
|
updated_at?: string;
|
|
1485
1504
|
};
|
|
1505
|
+
/** @enum {string} */
|
|
1506
|
+
DunningConfigurationExhaustedActionType: "cancel" | "pause" | "none";
|
|
1507
|
+
CreateDunningConfigurationInput: {
|
|
1508
|
+
/** @description Days after a failed collection to retry, in ascending order. */
|
|
1509
|
+
retry_days: number[];
|
|
1510
|
+
exhausted_action?: components["schemas"]["DunningConfigurationExhaustedActionType"];
|
|
1511
|
+
enabled?: boolean;
|
|
1512
|
+
};
|
|
1513
|
+
CreateDunningConfigurationRequest: {
|
|
1514
|
+
dunning_configuration: components["schemas"]["CreateDunningConfigurationInput"];
|
|
1515
|
+
};
|
|
1516
|
+
UpdateDunningConfigurationInput: {
|
|
1517
|
+
retry_days?: number[];
|
|
1518
|
+
exhausted_action?: components["schemas"]["DunningConfigurationExhaustedActionType"];
|
|
1519
|
+
enabled?: boolean;
|
|
1520
|
+
};
|
|
1521
|
+
UpdateDunningConfigurationRequest: {
|
|
1522
|
+
dunning_configuration: components["schemas"]["UpdateDunningConfigurationInput"];
|
|
1523
|
+
};
|
|
1524
|
+
DunningConfiguration: {
|
|
1525
|
+
/** Format: uuid */
|
|
1526
|
+
id?: string;
|
|
1527
|
+
retry_days?: number[];
|
|
1528
|
+
exhausted_action?: components["schemas"]["DunningConfigurationExhaustedActionType"];
|
|
1529
|
+
enabled?: boolean;
|
|
1530
|
+
/** Format: date-time */
|
|
1531
|
+
created_at?: string;
|
|
1532
|
+
/** Format: date-time */
|
|
1533
|
+
updated_at?: string;
|
|
1534
|
+
};
|
|
1486
1535
|
CreateExternalAccountInput: {
|
|
1487
1536
|
metadata?: components["schemas"]["Metadata"];
|
|
1488
1537
|
external_billing_address_attributes?: components["schemas"]["BillingAddressInput"];
|
|
@@ -2093,8 +2142,6 @@ interface components {
|
|
|
2093
2142
|
/** Format: uuid */
|
|
2094
2143
|
customer_id?: string;
|
|
2095
2144
|
description?: string;
|
|
2096
|
-
/** @description Null after a successful authorization, sale, or capture. */
|
|
2097
|
-
last_payment_error?: components["schemas"]["LastPaymentError"] | null;
|
|
2098
2145
|
metadata?: components["schemas"]["Metadata"];
|
|
2099
2146
|
recurring_payment?: components["schemas"]["RecurringPayment"];
|
|
2100
2147
|
/** Format: uuid */
|
|
@@ -2108,15 +2155,6 @@ interface components {
|
|
|
2108
2155
|
/** Format: date-time */
|
|
2109
2156
|
updated_at?: string;
|
|
2110
2157
|
};
|
|
2111
|
-
/** @description Canonical post-confirm payment failure. Present after a processor decline, processing exception, or missing vault credential. */
|
|
2112
|
-
LastPaymentError: {
|
|
2113
|
-
/** @enum {string} */
|
|
2114
|
-
type: "card_error" | "processing_error";
|
|
2115
|
-
/** @enum {string} */
|
|
2116
|
-
code: "incorrect_number" | "incorrect_cvc" | "incorrect_postal_code" | "incorrect_pin" | "expired_card" | "insufficient_funds" | "card_declined" | "authentication_failure" | "processing_error" | "vault_token_not_found";
|
|
2117
|
-
/** @description Localized, payer-facing explanation of the failure. */
|
|
2118
|
-
message: string;
|
|
2119
|
-
};
|
|
2120
2158
|
/** @description How this payment intent relates to a recurring series. Use `initial` for the first charge that establishes the series. Use `network_transaction_id` and/or `transaction_link_id` for subsequent merchant-initiated charges. Do not combine `initial` with network identifiers on the same request. */
|
|
2121
2159
|
RecurringPayment: {
|
|
2122
2160
|
/** @description When true, marks the first payment in a recurring series so the processor can treat it as an initial recurring / credential-on-file setup transaction. */
|
|
@@ -2981,6 +3019,119 @@ interface operations {
|
|
|
2981
3019
|
};
|
|
2982
3020
|
};
|
|
2983
3021
|
};
|
|
3022
|
+
GetDunningConfiguration: {
|
|
3023
|
+
parameters: {
|
|
3024
|
+
query?: never;
|
|
3025
|
+
header?: never;
|
|
3026
|
+
path?: never;
|
|
3027
|
+
cookie?: never;
|
|
3028
|
+
};
|
|
3029
|
+
requestBody?: never;
|
|
3030
|
+
responses: {
|
|
3031
|
+
/** @description The organization's dunning configuration */
|
|
3032
|
+
200: {
|
|
3033
|
+
headers: {
|
|
3034
|
+
[name: string]: unknown;
|
|
3035
|
+
};
|
|
3036
|
+
content: {
|
|
3037
|
+
"application/json": components["schemas"]["DunningConfiguration"];
|
|
3038
|
+
};
|
|
3039
|
+
};
|
|
3040
|
+
/** @description Dunning configuration not found */
|
|
3041
|
+
404: {
|
|
3042
|
+
headers: {
|
|
3043
|
+
[name: string]: unknown;
|
|
3044
|
+
};
|
|
3045
|
+
content: {
|
|
3046
|
+
"application/json": components["schemas"]["Error"];
|
|
3047
|
+
};
|
|
3048
|
+
};
|
|
3049
|
+
};
|
|
3050
|
+
};
|
|
3051
|
+
CreateDunningConfiguration: {
|
|
3052
|
+
parameters: {
|
|
3053
|
+
query?: never;
|
|
3054
|
+
header?: never;
|
|
3055
|
+
path?: never;
|
|
3056
|
+
cookie?: never;
|
|
3057
|
+
};
|
|
3058
|
+
requestBody: {
|
|
3059
|
+
content: {
|
|
3060
|
+
"application/json": components["schemas"]["CreateDunningConfigurationRequest"];
|
|
3061
|
+
};
|
|
3062
|
+
};
|
|
3063
|
+
responses: {
|
|
3064
|
+
/** @description Dunning configuration created successfully */
|
|
3065
|
+
201: {
|
|
3066
|
+
headers: {
|
|
3067
|
+
[name: string]: unknown;
|
|
3068
|
+
};
|
|
3069
|
+
content: {
|
|
3070
|
+
"application/json": components["schemas"]["DunningConfiguration"];
|
|
3071
|
+
};
|
|
3072
|
+
};
|
|
3073
|
+
/** @description Dunning configuration already exists */
|
|
3074
|
+
409: {
|
|
3075
|
+
headers: {
|
|
3076
|
+
[name: string]: unknown;
|
|
3077
|
+
};
|
|
3078
|
+
content: {
|
|
3079
|
+
"application/json": components["schemas"]["Error"];
|
|
3080
|
+
};
|
|
3081
|
+
};
|
|
3082
|
+
/** @description Unprocessable entity */
|
|
3083
|
+
422: {
|
|
3084
|
+
headers: {
|
|
3085
|
+
[name: string]: unknown;
|
|
3086
|
+
};
|
|
3087
|
+
content: {
|
|
3088
|
+
"application/json": components["schemas"]["Error"];
|
|
3089
|
+
};
|
|
3090
|
+
};
|
|
3091
|
+
};
|
|
3092
|
+
};
|
|
3093
|
+
UpdateDunningConfiguration: {
|
|
3094
|
+
parameters: {
|
|
3095
|
+
query?: never;
|
|
3096
|
+
header?: never;
|
|
3097
|
+
path?: never;
|
|
3098
|
+
cookie?: never;
|
|
3099
|
+
};
|
|
3100
|
+
requestBody: {
|
|
3101
|
+
content: {
|
|
3102
|
+
"application/json": components["schemas"]["UpdateDunningConfigurationRequest"];
|
|
3103
|
+
};
|
|
3104
|
+
};
|
|
3105
|
+
responses: {
|
|
3106
|
+
/** @description Dunning configuration updated successfully */
|
|
3107
|
+
200: {
|
|
3108
|
+
headers: {
|
|
3109
|
+
[name: string]: unknown;
|
|
3110
|
+
};
|
|
3111
|
+
content: {
|
|
3112
|
+
"application/json": components["schemas"]["DunningConfiguration"];
|
|
3113
|
+
};
|
|
3114
|
+
};
|
|
3115
|
+
/** @description Dunning configuration not found */
|
|
3116
|
+
404: {
|
|
3117
|
+
headers: {
|
|
3118
|
+
[name: string]: unknown;
|
|
3119
|
+
};
|
|
3120
|
+
content: {
|
|
3121
|
+
"application/json": components["schemas"]["Error"];
|
|
3122
|
+
};
|
|
3123
|
+
};
|
|
3124
|
+
/** @description Unprocessable entity */
|
|
3125
|
+
422: {
|
|
3126
|
+
headers: {
|
|
3127
|
+
[name: string]: unknown;
|
|
3128
|
+
};
|
|
3129
|
+
content: {
|
|
3130
|
+
"application/json": components["schemas"]["Error"];
|
|
3131
|
+
};
|
|
3132
|
+
};
|
|
3133
|
+
};
|
|
3134
|
+
};
|
|
2984
3135
|
ListExternalAccounts: {
|
|
2985
3136
|
parameters: {
|
|
2986
3137
|
query?: {
|
|
@@ -5483,6 +5634,7 @@ declare const bankAccountProfileFailure_reasonValues: ReadonlyArray<FlattenedDee
|
|
|
5483
5634
|
declare const cardProfileFailure_reasonValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["CardProfile"]["failure_reason"]>;
|
|
5484
5635
|
declare const chargeAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["allowed_reverse_action"]>;
|
|
5485
5636
|
declare const chargeStateValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["state"]>;
|
|
5637
|
+
declare const dunningConfigurationExhaustedActionTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["DunningConfigurationExhaustedActionType"]>;
|
|
5486
5638
|
declare const externalAccountTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ExternalAccount"]["type"]>;
|
|
5487
5639
|
declare const legalEntityEntityTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityEntityType"]>;
|
|
5488
5640
|
declare const legalEntityOwnershipTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityOwnershipType"]>;
|
|
@@ -5516,8 +5668,6 @@ declare const walletProviderTypeValues: ReadonlyArray<FlattenedDeepRequired<comp
|
|
|
5516
5668
|
declare const webhookEventTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["WebhookEventType"]>;
|
|
5517
5669
|
declare const organizationKindValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Organization"]["kind"]>;
|
|
5518
5670
|
declare const paymentIntentStateValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PaymentIntent"]["state"]>;
|
|
5519
|
-
declare const lastPaymentErrorTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LastPaymentError"]["type"]>;
|
|
5520
|
-
declare const lastPaymentErrorCodeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LastPaymentError"]["code"]>;
|
|
5521
5671
|
declare const processorTransactionPayment_transaction_typeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ProcessorTransaction"]["payment_transaction_type"]>;
|
|
5522
5672
|
declare const processorTransactionTransaction_typeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ProcessorTransaction"]["transaction_type"]>;
|
|
5523
5673
|
declare const refundAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Refund"]["allowed_reverse_action"]>;
|
|
@@ -5563,4 +5713,4 @@ declare function createPayApiClient(options: ClientOptions): openapi_fetch.Clien
|
|
|
5563
5713
|
/** A configured Amos Pay API client returned by {@link createPayApiClient}. */
|
|
5564
5714
|
type PayApiClient = ReturnType<typeof createPayApiClient>;
|
|
5565
5715
|
|
|
5566
|
-
export { type $defs, AMOS_API_BASE_URL_PRODUCTION, AMOS_API_BASE_URL_SANDBOX, AMOS_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, internationalBillingAddressOptionsModeValues,
|
|
5716
|
+
export { type $defs, AMOS_API_BASE_URL_PRODUCTION, AMOS_API_BASE_URL_SANDBOX, AMOS_API_VERSION, type PayApiClient, allowedApplePayPaymentMethodInputTypeValues, allowedApplePayPaymentMethodTypeValues, allowedBankAccountPaymentMethodInputTypeValues, allowedBankAccountPaymentMethodTypeValues, allowedCardPaymentMethodInputTypeValues, allowedCardPaymentMethodTypeValues, allowedGooglePayPaymentMethodInputTypeValues, allowedGooglePayPaymentMethodTypeValues, bankAccountProfileFailure_reasonValues, cardProfileFailure_reasonValues, chargeAllowed_reverse_actionValues, chargeStateValues, type components, createPayApiClient, dunningConfigurationExhaustedActionTypeValues, embedConfirmApplePayPaymentMethodInputTypeValues, embedConfirmBankAccountPaymentMethodInputTypeValues, embedConfirmCardPaymentMethodInputTypeValues, embedConfirmGooglePayPaymentMethodInputTypeValues, externalAccountTypeValues, internationalBillingAddressOptionsModeValues, legalEntityDocumentTypeValues, legalEntityEntityTypeValues, legalEntityOwnershipTypeValues, merchantBusinessCategoryTypeValues, type operations, organizationKindValues, type paths, paymentIntentCaptureMethodTypeValues, paymentIntentStateValues, paymentLinkAmountTypeValues, paymentMethodTypeValues, payoutDirectionTypeValues, payoutStateTypeValues, processorTransactionPayment_transaction_typeValues, processorTransactionTransaction_typeValues, refundAllowed_reverse_actionValues, refundStateTypeValues, setupIntentStateValues, subscriptionIntervalTypeValues, subscriptionPlanTypeValues, subscriptionStateValues, transactionSourceTypeValues, usOnlyBillingAddressOptionsModeValues, usStateTypeValues, walletProviderTypeValues, webhookEventTypeValues, type webhooks };
|
package/dist/index.d.ts
CHANGED
|
@@ -113,6 +113,25 @@ interface paths {
|
|
|
113
113
|
patch?: never;
|
|
114
114
|
trace?: never;
|
|
115
115
|
};
|
|
116
|
+
"/dunning_configuration": {
|
|
117
|
+
parameters: {
|
|
118
|
+
query?: never;
|
|
119
|
+
header?: never;
|
|
120
|
+
path?: never;
|
|
121
|
+
cookie?: never;
|
|
122
|
+
};
|
|
123
|
+
/** Retrieve the current organization's dunning configuration */
|
|
124
|
+
get: operations["GetDunningConfiguration"];
|
|
125
|
+
put?: never;
|
|
126
|
+
/** Create the current organization's dunning configuration */
|
|
127
|
+
post: operations["CreateDunningConfiguration"];
|
|
128
|
+
delete?: never;
|
|
129
|
+
options?: never;
|
|
130
|
+
head?: never;
|
|
131
|
+
/** Update the current organization's dunning configuration */
|
|
132
|
+
patch: operations["UpdateDunningConfiguration"];
|
|
133
|
+
trace?: never;
|
|
134
|
+
};
|
|
116
135
|
"/external_accounts": {
|
|
117
136
|
parameters: {
|
|
118
137
|
query?: never;
|
|
@@ -1483,6 +1502,36 @@ interface components {
|
|
|
1483
1502
|
/** Format: date-time */
|
|
1484
1503
|
updated_at?: string;
|
|
1485
1504
|
};
|
|
1505
|
+
/** @enum {string} */
|
|
1506
|
+
DunningConfigurationExhaustedActionType: "cancel" | "pause" | "none";
|
|
1507
|
+
CreateDunningConfigurationInput: {
|
|
1508
|
+
/** @description Days after a failed collection to retry, in ascending order. */
|
|
1509
|
+
retry_days: number[];
|
|
1510
|
+
exhausted_action?: components["schemas"]["DunningConfigurationExhaustedActionType"];
|
|
1511
|
+
enabled?: boolean;
|
|
1512
|
+
};
|
|
1513
|
+
CreateDunningConfigurationRequest: {
|
|
1514
|
+
dunning_configuration: components["schemas"]["CreateDunningConfigurationInput"];
|
|
1515
|
+
};
|
|
1516
|
+
UpdateDunningConfigurationInput: {
|
|
1517
|
+
retry_days?: number[];
|
|
1518
|
+
exhausted_action?: components["schemas"]["DunningConfigurationExhaustedActionType"];
|
|
1519
|
+
enabled?: boolean;
|
|
1520
|
+
};
|
|
1521
|
+
UpdateDunningConfigurationRequest: {
|
|
1522
|
+
dunning_configuration: components["schemas"]["UpdateDunningConfigurationInput"];
|
|
1523
|
+
};
|
|
1524
|
+
DunningConfiguration: {
|
|
1525
|
+
/** Format: uuid */
|
|
1526
|
+
id?: string;
|
|
1527
|
+
retry_days?: number[];
|
|
1528
|
+
exhausted_action?: components["schemas"]["DunningConfigurationExhaustedActionType"];
|
|
1529
|
+
enabled?: boolean;
|
|
1530
|
+
/** Format: date-time */
|
|
1531
|
+
created_at?: string;
|
|
1532
|
+
/** Format: date-time */
|
|
1533
|
+
updated_at?: string;
|
|
1534
|
+
};
|
|
1486
1535
|
CreateExternalAccountInput: {
|
|
1487
1536
|
metadata?: components["schemas"]["Metadata"];
|
|
1488
1537
|
external_billing_address_attributes?: components["schemas"]["BillingAddressInput"];
|
|
@@ -2093,8 +2142,6 @@ interface components {
|
|
|
2093
2142
|
/** Format: uuid */
|
|
2094
2143
|
customer_id?: string;
|
|
2095
2144
|
description?: string;
|
|
2096
|
-
/** @description Null after a successful authorization, sale, or capture. */
|
|
2097
|
-
last_payment_error?: components["schemas"]["LastPaymentError"] | null;
|
|
2098
2145
|
metadata?: components["schemas"]["Metadata"];
|
|
2099
2146
|
recurring_payment?: components["schemas"]["RecurringPayment"];
|
|
2100
2147
|
/** Format: uuid */
|
|
@@ -2108,15 +2155,6 @@ interface components {
|
|
|
2108
2155
|
/** Format: date-time */
|
|
2109
2156
|
updated_at?: string;
|
|
2110
2157
|
};
|
|
2111
|
-
/** @description Canonical post-confirm payment failure. Present after a processor decline, processing exception, or missing vault credential. */
|
|
2112
|
-
LastPaymentError: {
|
|
2113
|
-
/** @enum {string} */
|
|
2114
|
-
type: "card_error" | "processing_error";
|
|
2115
|
-
/** @enum {string} */
|
|
2116
|
-
code: "incorrect_number" | "incorrect_cvc" | "incorrect_postal_code" | "incorrect_pin" | "expired_card" | "insufficient_funds" | "card_declined" | "authentication_failure" | "processing_error" | "vault_token_not_found";
|
|
2117
|
-
/** @description Localized, payer-facing explanation of the failure. */
|
|
2118
|
-
message: string;
|
|
2119
|
-
};
|
|
2120
2158
|
/** @description How this payment intent relates to a recurring series. Use `initial` for the first charge that establishes the series. Use `network_transaction_id` and/or `transaction_link_id` for subsequent merchant-initiated charges. Do not combine `initial` with network identifiers on the same request. */
|
|
2121
2159
|
RecurringPayment: {
|
|
2122
2160
|
/** @description When true, marks the first payment in a recurring series so the processor can treat it as an initial recurring / credential-on-file setup transaction. */
|
|
@@ -2981,6 +3019,119 @@ interface operations {
|
|
|
2981
3019
|
};
|
|
2982
3020
|
};
|
|
2983
3021
|
};
|
|
3022
|
+
GetDunningConfiguration: {
|
|
3023
|
+
parameters: {
|
|
3024
|
+
query?: never;
|
|
3025
|
+
header?: never;
|
|
3026
|
+
path?: never;
|
|
3027
|
+
cookie?: never;
|
|
3028
|
+
};
|
|
3029
|
+
requestBody?: never;
|
|
3030
|
+
responses: {
|
|
3031
|
+
/** @description The organization's dunning configuration */
|
|
3032
|
+
200: {
|
|
3033
|
+
headers: {
|
|
3034
|
+
[name: string]: unknown;
|
|
3035
|
+
};
|
|
3036
|
+
content: {
|
|
3037
|
+
"application/json": components["schemas"]["DunningConfiguration"];
|
|
3038
|
+
};
|
|
3039
|
+
};
|
|
3040
|
+
/** @description Dunning configuration not found */
|
|
3041
|
+
404: {
|
|
3042
|
+
headers: {
|
|
3043
|
+
[name: string]: unknown;
|
|
3044
|
+
};
|
|
3045
|
+
content: {
|
|
3046
|
+
"application/json": components["schemas"]["Error"];
|
|
3047
|
+
};
|
|
3048
|
+
};
|
|
3049
|
+
};
|
|
3050
|
+
};
|
|
3051
|
+
CreateDunningConfiguration: {
|
|
3052
|
+
parameters: {
|
|
3053
|
+
query?: never;
|
|
3054
|
+
header?: never;
|
|
3055
|
+
path?: never;
|
|
3056
|
+
cookie?: never;
|
|
3057
|
+
};
|
|
3058
|
+
requestBody: {
|
|
3059
|
+
content: {
|
|
3060
|
+
"application/json": components["schemas"]["CreateDunningConfigurationRequest"];
|
|
3061
|
+
};
|
|
3062
|
+
};
|
|
3063
|
+
responses: {
|
|
3064
|
+
/** @description Dunning configuration created successfully */
|
|
3065
|
+
201: {
|
|
3066
|
+
headers: {
|
|
3067
|
+
[name: string]: unknown;
|
|
3068
|
+
};
|
|
3069
|
+
content: {
|
|
3070
|
+
"application/json": components["schemas"]["DunningConfiguration"];
|
|
3071
|
+
};
|
|
3072
|
+
};
|
|
3073
|
+
/** @description Dunning configuration already exists */
|
|
3074
|
+
409: {
|
|
3075
|
+
headers: {
|
|
3076
|
+
[name: string]: unknown;
|
|
3077
|
+
};
|
|
3078
|
+
content: {
|
|
3079
|
+
"application/json": components["schemas"]["Error"];
|
|
3080
|
+
};
|
|
3081
|
+
};
|
|
3082
|
+
/** @description Unprocessable entity */
|
|
3083
|
+
422: {
|
|
3084
|
+
headers: {
|
|
3085
|
+
[name: string]: unknown;
|
|
3086
|
+
};
|
|
3087
|
+
content: {
|
|
3088
|
+
"application/json": components["schemas"]["Error"];
|
|
3089
|
+
};
|
|
3090
|
+
};
|
|
3091
|
+
};
|
|
3092
|
+
};
|
|
3093
|
+
UpdateDunningConfiguration: {
|
|
3094
|
+
parameters: {
|
|
3095
|
+
query?: never;
|
|
3096
|
+
header?: never;
|
|
3097
|
+
path?: never;
|
|
3098
|
+
cookie?: never;
|
|
3099
|
+
};
|
|
3100
|
+
requestBody: {
|
|
3101
|
+
content: {
|
|
3102
|
+
"application/json": components["schemas"]["UpdateDunningConfigurationRequest"];
|
|
3103
|
+
};
|
|
3104
|
+
};
|
|
3105
|
+
responses: {
|
|
3106
|
+
/** @description Dunning configuration updated successfully */
|
|
3107
|
+
200: {
|
|
3108
|
+
headers: {
|
|
3109
|
+
[name: string]: unknown;
|
|
3110
|
+
};
|
|
3111
|
+
content: {
|
|
3112
|
+
"application/json": components["schemas"]["DunningConfiguration"];
|
|
3113
|
+
};
|
|
3114
|
+
};
|
|
3115
|
+
/** @description Dunning configuration not found */
|
|
3116
|
+
404: {
|
|
3117
|
+
headers: {
|
|
3118
|
+
[name: string]: unknown;
|
|
3119
|
+
};
|
|
3120
|
+
content: {
|
|
3121
|
+
"application/json": components["schemas"]["Error"];
|
|
3122
|
+
};
|
|
3123
|
+
};
|
|
3124
|
+
/** @description Unprocessable entity */
|
|
3125
|
+
422: {
|
|
3126
|
+
headers: {
|
|
3127
|
+
[name: string]: unknown;
|
|
3128
|
+
};
|
|
3129
|
+
content: {
|
|
3130
|
+
"application/json": components["schemas"]["Error"];
|
|
3131
|
+
};
|
|
3132
|
+
};
|
|
3133
|
+
};
|
|
3134
|
+
};
|
|
2984
3135
|
ListExternalAccounts: {
|
|
2985
3136
|
parameters: {
|
|
2986
3137
|
query?: {
|
|
@@ -5483,6 +5634,7 @@ declare const bankAccountProfileFailure_reasonValues: ReadonlyArray<FlattenedDee
|
|
|
5483
5634
|
declare const cardProfileFailure_reasonValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["CardProfile"]["failure_reason"]>;
|
|
5484
5635
|
declare const chargeAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["allowed_reverse_action"]>;
|
|
5485
5636
|
declare const chargeStateValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["state"]>;
|
|
5637
|
+
declare const dunningConfigurationExhaustedActionTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["DunningConfigurationExhaustedActionType"]>;
|
|
5486
5638
|
declare const externalAccountTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ExternalAccount"]["type"]>;
|
|
5487
5639
|
declare const legalEntityEntityTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityEntityType"]>;
|
|
5488
5640
|
declare const legalEntityOwnershipTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityOwnershipType"]>;
|
|
@@ -5516,8 +5668,6 @@ declare const walletProviderTypeValues: ReadonlyArray<FlattenedDeepRequired<comp
|
|
|
5516
5668
|
declare const webhookEventTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["WebhookEventType"]>;
|
|
5517
5669
|
declare const organizationKindValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Organization"]["kind"]>;
|
|
5518
5670
|
declare const paymentIntentStateValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PaymentIntent"]["state"]>;
|
|
5519
|
-
declare const lastPaymentErrorTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LastPaymentError"]["type"]>;
|
|
5520
|
-
declare const lastPaymentErrorCodeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LastPaymentError"]["code"]>;
|
|
5521
5671
|
declare const processorTransactionPayment_transaction_typeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ProcessorTransaction"]["payment_transaction_type"]>;
|
|
5522
5672
|
declare const processorTransactionTransaction_typeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ProcessorTransaction"]["transaction_type"]>;
|
|
5523
5673
|
declare const refundAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Refund"]["allowed_reverse_action"]>;
|
|
@@ -5563,4 +5713,4 @@ declare function createPayApiClient(options: ClientOptions): openapi_fetch.Clien
|
|
|
5563
5713
|
/** A configured Amos Pay API client returned by {@link createPayApiClient}. */
|
|
5564
5714
|
type PayApiClient = ReturnType<typeof createPayApiClient>;
|
|
5565
5715
|
|
|
5566
|
-
export { type $defs, AMOS_API_BASE_URL_PRODUCTION, AMOS_API_BASE_URL_SANDBOX, AMOS_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, internationalBillingAddressOptionsModeValues,
|
|
5716
|
+
export { type $defs, AMOS_API_BASE_URL_PRODUCTION, AMOS_API_BASE_URL_SANDBOX, AMOS_API_VERSION, type PayApiClient, allowedApplePayPaymentMethodInputTypeValues, allowedApplePayPaymentMethodTypeValues, allowedBankAccountPaymentMethodInputTypeValues, allowedBankAccountPaymentMethodTypeValues, allowedCardPaymentMethodInputTypeValues, allowedCardPaymentMethodTypeValues, allowedGooglePayPaymentMethodInputTypeValues, allowedGooglePayPaymentMethodTypeValues, bankAccountProfileFailure_reasonValues, cardProfileFailure_reasonValues, chargeAllowed_reverse_actionValues, chargeStateValues, type components, createPayApiClient, dunningConfigurationExhaustedActionTypeValues, embedConfirmApplePayPaymentMethodInputTypeValues, embedConfirmBankAccountPaymentMethodInputTypeValues, embedConfirmCardPaymentMethodInputTypeValues, embedConfirmGooglePayPaymentMethodInputTypeValues, externalAccountTypeValues, internationalBillingAddressOptionsModeValues, legalEntityDocumentTypeValues, legalEntityEntityTypeValues, legalEntityOwnershipTypeValues, merchantBusinessCategoryTypeValues, type operations, organizationKindValues, type paths, paymentIntentCaptureMethodTypeValues, paymentIntentStateValues, paymentLinkAmountTypeValues, paymentMethodTypeValues, payoutDirectionTypeValues, payoutStateTypeValues, processorTransactionPayment_transaction_typeValues, processorTransactionTransaction_typeValues, refundAllowed_reverse_actionValues, refundStateTypeValues, setupIntentStateValues, subscriptionIntervalTypeValues, subscriptionPlanTypeValues, subscriptionStateValues, transactionSourceTypeValues, usOnlyBillingAddressOptionsModeValues, usStateTypeValues, walletProviderTypeValues, webhookEventTypeValues, type webhooks };
|
package/dist/index.js
CHANGED
|
@@ -46,14 +46,13 @@ __export(index_exports, {
|
|
|
46
46
|
chargeAllowed_reverse_actionValues: () => chargeAllowed_reverse_actionValues,
|
|
47
47
|
chargeStateValues: () => chargeStateValues,
|
|
48
48
|
createPayApiClient: () => createPayApiClient,
|
|
49
|
+
dunningConfigurationExhaustedActionTypeValues: () => dunningConfigurationExhaustedActionTypeValues,
|
|
49
50
|
embedConfirmApplePayPaymentMethodInputTypeValues: () => embedConfirmApplePayPaymentMethodInputTypeValues,
|
|
50
51
|
embedConfirmBankAccountPaymentMethodInputTypeValues: () => embedConfirmBankAccountPaymentMethodInputTypeValues,
|
|
51
52
|
embedConfirmCardPaymentMethodInputTypeValues: () => embedConfirmCardPaymentMethodInputTypeValues,
|
|
52
53
|
embedConfirmGooglePayPaymentMethodInputTypeValues: () => embedConfirmGooglePayPaymentMethodInputTypeValues,
|
|
53
54
|
externalAccountTypeValues: () => externalAccountTypeValues,
|
|
54
55
|
internationalBillingAddressOptionsModeValues: () => internationalBillingAddressOptionsModeValues,
|
|
55
|
-
lastPaymentErrorCodeValues: () => lastPaymentErrorCodeValues,
|
|
56
|
-
lastPaymentErrorTypeValues: () => lastPaymentErrorTypeValues,
|
|
57
56
|
legalEntityDocumentTypeValues: () => legalEntityDocumentTypeValues,
|
|
58
57
|
legalEntityEntityTypeValues: () => legalEntityEntityTypeValues,
|
|
59
58
|
legalEntityOwnershipTypeValues: () => legalEntityOwnershipTypeValues,
|
|
@@ -87,6 +86,7 @@ var bankAccountProfileFailure_reasonValues = ["activation_failed", "processing_e
|
|
|
87
86
|
var cardProfileFailure_reasonValues = ["authorization_failed", "avs_blocked", "brand_not_allowed", "brand_not_found", "cvc_blocked", "processing_error", "vault_failed"];
|
|
88
87
|
var chargeAllowed_reverse_actionValues = ["void", "refund"];
|
|
89
88
|
var chargeStateValues = ["cancelled", "errored", "failed", "processing", "requires_capture", "requires_confirmation", "requires_review", "settlement_failed", "succeeded"];
|
|
89
|
+
var dunningConfigurationExhaustedActionTypeValues = ["cancel", "pause", "none"];
|
|
90
90
|
var externalAccountTypeValues = ["external_card", "external_bank_account"];
|
|
91
91
|
var legalEntityEntityTypeValues = ["individual_sole_proprietorship", "corporation", "limited_liability_company", "partnership", "limited_partnership", "general_partnership", "tax_exempt_organization", "government_agency"];
|
|
92
92
|
var legalEntityOwnershipTypeValues = ["public", "private"];
|
|
@@ -120,8 +120,6 @@ var walletProviderTypeValues = ["googlepay", "applepay"];
|
|
|
120
120
|
var webhookEventTypeValues = ["charge.cancelled", "charge.created", "charge.errored", "charge.failed", "charge.processing", "charge.requires_capture", "charge.requires_confirmation", "charge.requires_review", "charge.settlement_failed", "charge.succeeded", "customer.created", "customer.updated", "legal_entity.created", "legal_entity.updated", "legal_entity_principal.created", "legal_entity_principal.updated", "legal_entity_application.approved", "legal_entity_application.denied", "legal_entity_application.needs_information", "legal_entity_application.pending", "legal_entity_application.submitted", "merchant.created", "merchant.updated", "payment_intent.cancelled", "payment_intent.created", "payment_intent.errored_authorization", "payment_intent.errored_capture", "payment_intent.errored_sale", "payment_intent.processing_authorization", "payment_intent.processing_capture", "payment_intent.processing_sale", "payment_intent.requires_capture", "payment_intent.requires_confirmation", "payment_intent.requires_payment_method", "payment_intent.requires_review", "payment_intent.succeeded", "processor_transaction.completed", "reconciliation.created", "refund.cancelled", "refund.created", "refund.failed", "refund.pending", "refund.processing", "refund.requires_review", "refund.succeeded", "setup_intent.cancelled", "setup_intent.created", "setup_intent.errored", "setup_intent.failed", "setup_intent.requires_confirmation", "setup_intent.requires_payment_method", "setup_intent.requires_review", "setup_intent.succeeded", "setup_intent.verifying", "void.created", "void.failed", "void.pending", "void.processing", "void.requires_review", "void.succeeded"];
|
|
121
121
|
var organizationKindValues = ["direct", "payfac"];
|
|
122
122
|
var paymentIntentStateValues = ["requires_payment_method", "requires_confirmation", "requires_capture", "processing_authorization", "processing_capture", "processing_sale", "requires_review", "succeeded", "cancelled", "errored_authorization", "errored_capture", "errored_sale"];
|
|
123
|
-
var lastPaymentErrorTypeValues = ["card_error", "processing_error"];
|
|
124
|
-
var lastPaymentErrorCodeValues = ["incorrect_number", "incorrect_cvc", "incorrect_postal_code", "incorrect_pin", "expired_card", "insufficient_funds", "card_declined", "authentication_failure", "processing_error", "vault_token_not_found"];
|
|
125
123
|
var processorTransactionPayment_transaction_typeValues = ["charge", "refund", "void"];
|
|
126
124
|
var processorTransactionTransaction_typeValues = ["authorization", "authorization_reversal", "capture", "credit", "echeck_credit", "echeck_sale", "echeck_void", "sale", "void"];
|
|
127
125
|
var refundAllowed_reverse_actionValues = ["void"];
|
|
@@ -153,14 +151,13 @@ function createPayApiClient(options) {
|
|
|
153
151
|
chargeAllowed_reverse_actionValues,
|
|
154
152
|
chargeStateValues,
|
|
155
153
|
createPayApiClient,
|
|
154
|
+
dunningConfigurationExhaustedActionTypeValues,
|
|
156
155
|
embedConfirmApplePayPaymentMethodInputTypeValues,
|
|
157
156
|
embedConfirmBankAccountPaymentMethodInputTypeValues,
|
|
158
157
|
embedConfirmCardPaymentMethodInputTypeValues,
|
|
159
158
|
embedConfirmGooglePayPaymentMethodInputTypeValues,
|
|
160
159
|
externalAccountTypeValues,
|
|
161
160
|
internationalBillingAddressOptionsModeValues,
|
|
162
|
-
lastPaymentErrorCodeValues,
|
|
163
|
-
lastPaymentErrorTypeValues,
|
|
164
161
|
legalEntityDocumentTypeValues,
|
|
165
162
|
legalEntityEntityTypeValues,
|
|
166
163
|
legalEntityOwnershipTypeValues,
|