@amos.com/node 0.1.53 → 0.1.54
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 +15 -10
- package/dist/index.d.ts +15 -10
- 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 +14 -9
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -1401,7 +1401,7 @@ interface components {
|
|
|
1401
1401
|
/** Format: uuid */
|
|
1402
1402
|
processor_id?: string;
|
|
1403
1403
|
worldpay_mid?: string;
|
|
1404
|
-
/** @description ACH verification threshold in cents for this account, taken from the
|
|
1404
|
+
/** @description ACH verification threshold in cents for this account, taken from the organization. Amounts at or above this require Plaid verification when the render template enables it. Defaults to 20000 cents. */
|
|
1405
1405
|
ach_threshold?: number;
|
|
1406
1406
|
/** Format: date-time */
|
|
1407
1407
|
created_at?: string;
|
|
@@ -1418,8 +1418,6 @@ interface components {
|
|
|
1418
1418
|
/** Format: uuid */
|
|
1419
1419
|
customer_id?: string;
|
|
1420
1420
|
description?: string | null;
|
|
1421
|
-
failure_code?: string | null;
|
|
1422
|
-
failure_reason?: string | null;
|
|
1423
1421
|
/** @enum {string|null} */
|
|
1424
1422
|
allowed_reverse_action?: "void" | "refund" | null;
|
|
1425
1423
|
metadata?: components["schemas"]["Metadata"];
|
|
@@ -1976,8 +1974,6 @@ interface components {
|
|
|
1976
1974
|
Merchant: {
|
|
1977
1975
|
/** Format: uuid */
|
|
1978
1976
|
id?: string;
|
|
1979
|
-
/** @description ACH verification threshold in cents. Amounts at or above this require Plaid verification. */
|
|
1980
|
-
ach_threshold?: number;
|
|
1981
1977
|
active?: boolean;
|
|
1982
1978
|
/** Format: uuid */
|
|
1983
1979
|
organization_id?: string;
|
|
@@ -2099,6 +2095,8 @@ interface components {
|
|
|
2099
2095
|
/** Format: uuid */
|
|
2100
2096
|
customer_id?: string;
|
|
2101
2097
|
description?: string;
|
|
2098
|
+
/** @description Null after a successful authorization, sale, or capture. */
|
|
2099
|
+
last_payment_error?: components["schemas"]["LastPaymentError"] | null;
|
|
2102
2100
|
metadata?: components["schemas"]["Metadata"];
|
|
2103
2101
|
recurring_payment?: components["schemas"]["RecurringPayment"];
|
|
2104
2102
|
/** Format: uuid */
|
|
@@ -2112,6 +2110,15 @@ interface components {
|
|
|
2112
2110
|
/** Format: date-time */
|
|
2113
2111
|
updated_at?: string;
|
|
2114
2112
|
};
|
|
2113
|
+
/** @description Canonical post-confirm payment failure. Present after a processor decline, processing exception, or missing vault credential. */
|
|
2114
|
+
LastPaymentError: {
|
|
2115
|
+
/** @enum {string} */
|
|
2116
|
+
type: "card_error" | "processing_error";
|
|
2117
|
+
/** @enum {string} */
|
|
2118
|
+
code: "incorrect_number" | "incorrect_cvc" | "incorrect_postal_code" | "incorrect_pin" | "expired_card" | "insufficient_funds" | "card_declined" | "authentication_failure" | "processing_error" | "vault_token_not_found";
|
|
2119
|
+
/** @description Localized, payer-facing explanation of the failure. */
|
|
2120
|
+
message: string;
|
|
2121
|
+
};
|
|
2115
2122
|
/** @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. */
|
|
2116
2123
|
RecurringPayment: {
|
|
2117
2124
|
/** @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. */
|
|
@@ -2352,8 +2359,6 @@ interface components {
|
|
|
2352
2359
|
/** Format: uuid */
|
|
2353
2360
|
customer_id?: string;
|
|
2354
2361
|
description?: string | null;
|
|
2355
|
-
failure_code?: string | null;
|
|
2356
|
-
failure_reason?: string | null;
|
|
2357
2362
|
metadata?: components["schemas"]["Metadata"];
|
|
2358
2363
|
/** Format: uuid */
|
|
2359
2364
|
original_transaction_id?: string;
|
|
@@ -2570,8 +2575,6 @@ interface components {
|
|
|
2570
2575
|
/** Format: uuid */
|
|
2571
2576
|
customer_id?: string;
|
|
2572
2577
|
description?: string | null;
|
|
2573
|
-
failure_code?: string | null;
|
|
2574
|
-
failure_reason?: string | null;
|
|
2575
2578
|
metadata?: components["schemas"]["Metadata"];
|
|
2576
2579
|
/** Format: uuid */
|
|
2577
2580
|
original_transaction_id?: string;
|
|
@@ -5529,6 +5532,8 @@ declare const walletProviderTypeValues: ReadonlyArray<FlattenedDeepRequired<comp
|
|
|
5529
5532
|
declare const webhookEventTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["WebhookEventType"]>;
|
|
5530
5533
|
declare const organizationKindValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Organization"]["kind"]>;
|
|
5531
5534
|
declare const paymentIntentStateValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PaymentIntent"]["state"]>;
|
|
5535
|
+
declare const lastPaymentErrorTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LastPaymentError"]["type"]>;
|
|
5536
|
+
declare const lastPaymentErrorCodeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LastPaymentError"]["code"]>;
|
|
5532
5537
|
declare const processorTransactionPayment_transaction_typeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ProcessorTransaction"]["payment_transaction_type"]>;
|
|
5533
5538
|
declare const processorTransactionTransaction_typeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ProcessorTransaction"]["transaction_type"]>;
|
|
5534
5539
|
declare const refundAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Refund"]["allowed_reverse_action"]>;
|
|
@@ -5574,4 +5579,4 @@ declare function createPayApiClient(options: ClientOptions): openapi_fetch.Clien
|
|
|
5574
5579
|
/** A configured Amos Pay API client returned by {@link createPayApiClient}. */
|
|
5575
5580
|
type PayApiClient = ReturnType<typeof createPayApiClient>;
|
|
5576
5581
|
|
|
5577
|
-
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, 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 };
|
|
5582
|
+
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, lastPaymentErrorCodeValues, lastPaymentErrorTypeValues, 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
|
@@ -1401,7 +1401,7 @@ interface components {
|
|
|
1401
1401
|
/** Format: uuid */
|
|
1402
1402
|
processor_id?: string;
|
|
1403
1403
|
worldpay_mid?: string;
|
|
1404
|
-
/** @description ACH verification threshold in cents for this account, taken from the
|
|
1404
|
+
/** @description ACH verification threshold in cents for this account, taken from the organization. Amounts at or above this require Plaid verification when the render template enables it. Defaults to 20000 cents. */
|
|
1405
1405
|
ach_threshold?: number;
|
|
1406
1406
|
/** Format: date-time */
|
|
1407
1407
|
created_at?: string;
|
|
@@ -1418,8 +1418,6 @@ interface components {
|
|
|
1418
1418
|
/** Format: uuid */
|
|
1419
1419
|
customer_id?: string;
|
|
1420
1420
|
description?: string | null;
|
|
1421
|
-
failure_code?: string | null;
|
|
1422
|
-
failure_reason?: string | null;
|
|
1423
1421
|
/** @enum {string|null} */
|
|
1424
1422
|
allowed_reverse_action?: "void" | "refund" | null;
|
|
1425
1423
|
metadata?: components["schemas"]["Metadata"];
|
|
@@ -1976,8 +1974,6 @@ interface components {
|
|
|
1976
1974
|
Merchant: {
|
|
1977
1975
|
/** Format: uuid */
|
|
1978
1976
|
id?: string;
|
|
1979
|
-
/** @description ACH verification threshold in cents. Amounts at or above this require Plaid verification. */
|
|
1980
|
-
ach_threshold?: number;
|
|
1981
1977
|
active?: boolean;
|
|
1982
1978
|
/** Format: uuid */
|
|
1983
1979
|
organization_id?: string;
|
|
@@ -2099,6 +2095,8 @@ interface components {
|
|
|
2099
2095
|
/** Format: uuid */
|
|
2100
2096
|
customer_id?: string;
|
|
2101
2097
|
description?: string;
|
|
2098
|
+
/** @description Null after a successful authorization, sale, or capture. */
|
|
2099
|
+
last_payment_error?: components["schemas"]["LastPaymentError"] | null;
|
|
2102
2100
|
metadata?: components["schemas"]["Metadata"];
|
|
2103
2101
|
recurring_payment?: components["schemas"]["RecurringPayment"];
|
|
2104
2102
|
/** Format: uuid */
|
|
@@ -2112,6 +2110,15 @@ interface components {
|
|
|
2112
2110
|
/** Format: date-time */
|
|
2113
2111
|
updated_at?: string;
|
|
2114
2112
|
};
|
|
2113
|
+
/** @description Canonical post-confirm payment failure. Present after a processor decline, processing exception, or missing vault credential. */
|
|
2114
|
+
LastPaymentError: {
|
|
2115
|
+
/** @enum {string} */
|
|
2116
|
+
type: "card_error" | "processing_error";
|
|
2117
|
+
/** @enum {string} */
|
|
2118
|
+
code: "incorrect_number" | "incorrect_cvc" | "incorrect_postal_code" | "incorrect_pin" | "expired_card" | "insufficient_funds" | "card_declined" | "authentication_failure" | "processing_error" | "vault_token_not_found";
|
|
2119
|
+
/** @description Localized, payer-facing explanation of the failure. */
|
|
2120
|
+
message: string;
|
|
2121
|
+
};
|
|
2115
2122
|
/** @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. */
|
|
2116
2123
|
RecurringPayment: {
|
|
2117
2124
|
/** @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. */
|
|
@@ -2352,8 +2359,6 @@ interface components {
|
|
|
2352
2359
|
/** Format: uuid */
|
|
2353
2360
|
customer_id?: string;
|
|
2354
2361
|
description?: string | null;
|
|
2355
|
-
failure_code?: string | null;
|
|
2356
|
-
failure_reason?: string | null;
|
|
2357
2362
|
metadata?: components["schemas"]["Metadata"];
|
|
2358
2363
|
/** Format: uuid */
|
|
2359
2364
|
original_transaction_id?: string;
|
|
@@ -2570,8 +2575,6 @@ interface components {
|
|
|
2570
2575
|
/** Format: uuid */
|
|
2571
2576
|
customer_id?: string;
|
|
2572
2577
|
description?: string | null;
|
|
2573
|
-
failure_code?: string | null;
|
|
2574
|
-
failure_reason?: string | null;
|
|
2575
2578
|
metadata?: components["schemas"]["Metadata"];
|
|
2576
2579
|
/** Format: uuid */
|
|
2577
2580
|
original_transaction_id?: string;
|
|
@@ -5529,6 +5532,8 @@ declare const walletProviderTypeValues: ReadonlyArray<FlattenedDeepRequired<comp
|
|
|
5529
5532
|
declare const webhookEventTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["WebhookEventType"]>;
|
|
5530
5533
|
declare const organizationKindValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Organization"]["kind"]>;
|
|
5531
5534
|
declare const paymentIntentStateValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PaymentIntent"]["state"]>;
|
|
5535
|
+
declare const lastPaymentErrorTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LastPaymentError"]["type"]>;
|
|
5536
|
+
declare const lastPaymentErrorCodeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LastPaymentError"]["code"]>;
|
|
5532
5537
|
declare const processorTransactionPayment_transaction_typeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ProcessorTransaction"]["payment_transaction_type"]>;
|
|
5533
5538
|
declare const processorTransactionTransaction_typeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ProcessorTransaction"]["transaction_type"]>;
|
|
5534
5539
|
declare const refundAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Refund"]["allowed_reverse_action"]>;
|
|
@@ -5574,4 +5579,4 @@ declare function createPayApiClient(options: ClientOptions): openapi_fetch.Clien
|
|
|
5574
5579
|
/** A configured Amos Pay API client returned by {@link createPayApiClient}. */
|
|
5575
5580
|
type PayApiClient = ReturnType<typeof createPayApiClient>;
|
|
5576
5581
|
|
|
5577
|
-
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, 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 };
|
|
5582
|
+
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, lastPaymentErrorCodeValues, lastPaymentErrorTypeValues, 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
|
@@ -52,6 +52,8 @@ __export(index_exports, {
|
|
|
52
52
|
embedConfirmGooglePayPaymentMethodInputTypeValues: () => embedConfirmGooglePayPaymentMethodInputTypeValues,
|
|
53
53
|
externalAccountTypeValues: () => externalAccountTypeValues,
|
|
54
54
|
internationalBillingAddressOptionsModeValues: () => internationalBillingAddressOptionsModeValues,
|
|
55
|
+
lastPaymentErrorCodeValues: () => lastPaymentErrorCodeValues,
|
|
56
|
+
lastPaymentErrorTypeValues: () => lastPaymentErrorTypeValues,
|
|
55
57
|
legalEntityDocumentTypeValues: () => legalEntityDocumentTypeValues,
|
|
56
58
|
legalEntityEntityTypeValues: () => legalEntityEntityTypeValues,
|
|
57
59
|
legalEntityOwnershipTypeValues: () => legalEntityOwnershipTypeValues,
|
|
@@ -118,6 +120,8 @@ var walletProviderTypeValues = ["googlepay", "applepay"];
|
|
|
118
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"];
|
|
119
121
|
var organizationKindValues = ["direct", "payfac"];
|
|
120
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"];
|
|
121
125
|
var processorTransactionPayment_transaction_typeValues = ["charge", "refund", "void"];
|
|
122
126
|
var processorTransactionTransaction_typeValues = ["authorization", "authorization_reversal", "capture", "credit", "echeck_credit", "echeck_sale", "echeck_void", "sale", "void"];
|
|
123
127
|
var refundAllowed_reverse_actionValues = ["void"];
|
|
@@ -155,6 +159,8 @@ function createPayApiClient(options) {
|
|
|
155
159
|
embedConfirmGooglePayPaymentMethodInputTypeValues,
|
|
156
160
|
externalAccountTypeValues,
|
|
157
161
|
internationalBillingAddressOptionsModeValues,
|
|
162
|
+
lastPaymentErrorCodeValues,
|
|
163
|
+
lastPaymentErrorTypeValues,
|
|
158
164
|
legalEntityDocumentTypeValues,
|
|
159
165
|
legalEntityEntityTypeValues,
|
|
160
166
|
legalEntityOwnershipTypeValues,
|