@amos.com/node 0.1.52 → 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 CHANGED
@@ -916,6 +916,26 @@ interface paths {
916
916
  patch?: never;
917
917
  trace?: never;
918
918
  };
919
+ "/embed/setup_intents/{id}/confirm": {
920
+ parameters: {
921
+ query?: never;
922
+ header?: never;
923
+ path?: never;
924
+ cookie?: never;
925
+ };
926
+ get?: never;
927
+ put?: never;
928
+ /**
929
+ * Confirm a setup intent and wait for card verification
930
+ * @description Confirms the setup intent and, for cards, blocks until processor verification completes. Returns 200 with the post-verification state (for example succeeded, requires_payment_method, or requires_review). Bank account setups succeed without a processor authorization.
931
+ */
932
+ post: operations["ConfirmEmbedSetupIntent"];
933
+ delete?: never;
934
+ options?: never;
935
+ head?: never;
936
+ patch?: never;
937
+ trace?: never;
938
+ };
919
939
  "/embed/setup_intents/{id}/confirm_with_payment_method": {
920
940
  parameters: {
921
941
  query?: never;
@@ -925,7 +945,10 @@ interface paths {
925
945
  };
926
946
  get?: never;
927
947
  put?: never;
928
- /** Confirm a setup intent with a new payment method */
948
+ /**
949
+ * Confirm a setup intent with a new payment method (async)
950
+ * @description Legacy async confirmation for migration. Accepts a payment method and, for cards, enqueues verification. Returns 202 with verifying or succeeded. Prefer POST /embed/setup_intents/{id}/confirm for synchronous confirmation.
951
+ */
929
952
  post: operations["ConfirmSetupIntentWithPaymentMethod"];
930
953
  delete?: never;
931
954
  options?: never;
@@ -1378,7 +1401,7 @@ interface components {
1378
1401
  /** Format: uuid */
1379
1402
  processor_id?: string;
1380
1403
  worldpay_mid?: string;
1381
- /** @description ACH verification threshold in cents for this account, taken from the merchant. When the organization sets ach_threshold, that value is used instead. Amounts at or above this require Plaid verification when the render template enables it. */
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. */
1382
1405
  ach_threshold?: number;
1383
1406
  /** Format: date-time */
1384
1407
  created_at?: string;
@@ -1395,8 +1418,6 @@ interface components {
1395
1418
  /** Format: uuid */
1396
1419
  customer_id?: string;
1397
1420
  description?: string | null;
1398
- failure_code?: string | null;
1399
- failure_reason?: string | null;
1400
1421
  /** @enum {string|null} */
1401
1422
  allowed_reverse_action?: "void" | "refund" | null;
1402
1423
  metadata?: components["schemas"]["Metadata"];
@@ -1953,8 +1974,6 @@ interface components {
1953
1974
  Merchant: {
1954
1975
  /** Format: uuid */
1955
1976
  id?: string;
1956
- /** @description ACH verification threshold in cents. Amounts at or above this require Plaid verification. */
1957
- ach_threshold?: number;
1958
1977
  active?: boolean;
1959
1978
  /** Format: uuid */
1960
1979
  organization_id?: string;
@@ -2076,6 +2095,8 @@ interface components {
2076
2095
  /** Format: uuid */
2077
2096
  customer_id?: string;
2078
2097
  description?: string;
2098
+ /** @description Null after a successful authorization, sale, or capture. */
2099
+ last_payment_error?: components["schemas"]["LastPaymentError"] | null;
2079
2100
  metadata?: components["schemas"]["Metadata"];
2080
2101
  recurring_payment?: components["schemas"]["RecurringPayment"];
2081
2102
  /** Format: uuid */
@@ -2089,6 +2110,15 @@ interface components {
2089
2110
  /** Format: date-time */
2090
2111
  updated_at?: string;
2091
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
+ };
2092
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. */
2093
2123
  RecurringPayment: {
2094
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. */
@@ -2329,8 +2359,6 @@ interface components {
2329
2359
  /** Format: uuid */
2330
2360
  customer_id?: string;
2331
2361
  description?: string | null;
2332
- failure_code?: string | null;
2333
- failure_reason?: string | null;
2334
2362
  metadata?: components["schemas"]["Metadata"];
2335
2363
  /** Format: uuid */
2336
2364
  original_transaction_id?: string;
@@ -2547,8 +2575,6 @@ interface components {
2547
2575
  /** Format: uuid */
2548
2576
  customer_id?: string;
2549
2577
  description?: string | null;
2550
- failure_code?: string | null;
2551
- failure_reason?: string | null;
2552
2578
  metadata?: components["schemas"]["Metadata"];
2553
2579
  /** Format: uuid */
2554
2580
  original_transaction_id?: string;
@@ -4708,6 +4734,60 @@ interface operations {
4708
4734
  };
4709
4735
  };
4710
4736
  };
4737
+ ConfirmEmbedSetupIntent: {
4738
+ parameters: {
4739
+ query?: never;
4740
+ header?: never;
4741
+ path: {
4742
+ /** @description The ID of the setup intent to confirm */
4743
+ id: string;
4744
+ };
4745
+ cookie?: never;
4746
+ };
4747
+ requestBody: {
4748
+ content: {
4749
+ "application/json": components["schemas"]["ConfirmSetupIntentWithPaymentMethodRequest"];
4750
+ };
4751
+ };
4752
+ responses: {
4753
+ /** @description Confirmation completed after verification succeeded or failed */
4754
+ 200: {
4755
+ headers: {
4756
+ [name: string]: unknown;
4757
+ };
4758
+ content: {
4759
+ "application/json": components["schemas"]["SetupIntent"];
4760
+ };
4761
+ };
4762
+ /** @description Already-started confirmation returned without a new processor request */
4763
+ 202: {
4764
+ headers: {
4765
+ [name: string]: unknown;
4766
+ };
4767
+ content: {
4768
+ "application/json": components["schemas"]["SetupIntent"];
4769
+ };
4770
+ };
4771
+ /** @description Forbidden */
4772
+ 403: {
4773
+ headers: {
4774
+ [name: string]: unknown;
4775
+ };
4776
+ content: {
4777
+ "application/json": components["schemas"]["Error"];
4778
+ };
4779
+ };
4780
+ /** @description Unprocessable content */
4781
+ 422: {
4782
+ headers: {
4783
+ [name: string]: unknown;
4784
+ };
4785
+ content: {
4786
+ "application/json": components["schemas"]["Error"];
4787
+ };
4788
+ };
4789
+ };
4790
+ };
4711
4791
  ConfirmSetupIntentWithPaymentMethod: {
4712
4792
  parameters: {
4713
4793
  query?: never;
@@ -4724,7 +4804,7 @@ interface operations {
4724
4804
  };
4725
4805
  };
4726
4806
  responses: {
4727
- /** @description Successful confirmation of setup intent */
4807
+ /** @description Confirmation accepted; card verification continues asynchronously */
4728
4808
  202: {
4729
4809
  headers: {
4730
4810
  [name: string]: unknown;
@@ -5452,6 +5532,8 @@ declare const walletProviderTypeValues: ReadonlyArray<FlattenedDeepRequired<comp
5452
5532
  declare const webhookEventTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["WebhookEventType"]>;
5453
5533
  declare const organizationKindValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Organization"]["kind"]>;
5454
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"]>;
5455
5537
  declare const processorTransactionPayment_transaction_typeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ProcessorTransaction"]["payment_transaction_type"]>;
5456
5538
  declare const processorTransactionTransaction_typeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ProcessorTransaction"]["transaction_type"]>;
5457
5539
  declare const refundAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Refund"]["allowed_reverse_action"]>;
@@ -5497,4 +5579,4 @@ declare function createPayApiClient(options: ClientOptions): openapi_fetch.Clien
5497
5579
  /** A configured Amos Pay API client returned by {@link createPayApiClient}. */
5498
5580
  type PayApiClient = ReturnType<typeof createPayApiClient>;
5499
5581
 
5500
- 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
@@ -916,6 +916,26 @@ interface paths {
916
916
  patch?: never;
917
917
  trace?: never;
918
918
  };
919
+ "/embed/setup_intents/{id}/confirm": {
920
+ parameters: {
921
+ query?: never;
922
+ header?: never;
923
+ path?: never;
924
+ cookie?: never;
925
+ };
926
+ get?: never;
927
+ put?: never;
928
+ /**
929
+ * Confirm a setup intent and wait for card verification
930
+ * @description Confirms the setup intent and, for cards, blocks until processor verification completes. Returns 200 with the post-verification state (for example succeeded, requires_payment_method, or requires_review). Bank account setups succeed without a processor authorization.
931
+ */
932
+ post: operations["ConfirmEmbedSetupIntent"];
933
+ delete?: never;
934
+ options?: never;
935
+ head?: never;
936
+ patch?: never;
937
+ trace?: never;
938
+ };
919
939
  "/embed/setup_intents/{id}/confirm_with_payment_method": {
920
940
  parameters: {
921
941
  query?: never;
@@ -925,7 +945,10 @@ interface paths {
925
945
  };
926
946
  get?: never;
927
947
  put?: never;
928
- /** Confirm a setup intent with a new payment method */
948
+ /**
949
+ * Confirm a setup intent with a new payment method (async)
950
+ * @description Legacy async confirmation for migration. Accepts a payment method and, for cards, enqueues verification. Returns 202 with verifying or succeeded. Prefer POST /embed/setup_intents/{id}/confirm for synchronous confirmation.
951
+ */
929
952
  post: operations["ConfirmSetupIntentWithPaymentMethod"];
930
953
  delete?: never;
931
954
  options?: never;
@@ -1378,7 +1401,7 @@ interface components {
1378
1401
  /** Format: uuid */
1379
1402
  processor_id?: string;
1380
1403
  worldpay_mid?: string;
1381
- /** @description ACH verification threshold in cents for this account, taken from the merchant. When the organization sets ach_threshold, that value is used instead. Amounts at or above this require Plaid verification when the render template enables it. */
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. */
1382
1405
  ach_threshold?: number;
1383
1406
  /** Format: date-time */
1384
1407
  created_at?: string;
@@ -1395,8 +1418,6 @@ interface components {
1395
1418
  /** Format: uuid */
1396
1419
  customer_id?: string;
1397
1420
  description?: string | null;
1398
- failure_code?: string | null;
1399
- failure_reason?: string | null;
1400
1421
  /** @enum {string|null} */
1401
1422
  allowed_reverse_action?: "void" | "refund" | null;
1402
1423
  metadata?: components["schemas"]["Metadata"];
@@ -1953,8 +1974,6 @@ interface components {
1953
1974
  Merchant: {
1954
1975
  /** Format: uuid */
1955
1976
  id?: string;
1956
- /** @description ACH verification threshold in cents. Amounts at or above this require Plaid verification. */
1957
- ach_threshold?: number;
1958
1977
  active?: boolean;
1959
1978
  /** Format: uuid */
1960
1979
  organization_id?: string;
@@ -2076,6 +2095,8 @@ interface components {
2076
2095
  /** Format: uuid */
2077
2096
  customer_id?: string;
2078
2097
  description?: string;
2098
+ /** @description Null after a successful authorization, sale, or capture. */
2099
+ last_payment_error?: components["schemas"]["LastPaymentError"] | null;
2079
2100
  metadata?: components["schemas"]["Metadata"];
2080
2101
  recurring_payment?: components["schemas"]["RecurringPayment"];
2081
2102
  /** Format: uuid */
@@ -2089,6 +2110,15 @@ interface components {
2089
2110
  /** Format: date-time */
2090
2111
  updated_at?: string;
2091
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
+ };
2092
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. */
2093
2123
  RecurringPayment: {
2094
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. */
@@ -2329,8 +2359,6 @@ interface components {
2329
2359
  /** Format: uuid */
2330
2360
  customer_id?: string;
2331
2361
  description?: string | null;
2332
- failure_code?: string | null;
2333
- failure_reason?: string | null;
2334
2362
  metadata?: components["schemas"]["Metadata"];
2335
2363
  /** Format: uuid */
2336
2364
  original_transaction_id?: string;
@@ -2547,8 +2575,6 @@ interface components {
2547
2575
  /** Format: uuid */
2548
2576
  customer_id?: string;
2549
2577
  description?: string | null;
2550
- failure_code?: string | null;
2551
- failure_reason?: string | null;
2552
2578
  metadata?: components["schemas"]["Metadata"];
2553
2579
  /** Format: uuid */
2554
2580
  original_transaction_id?: string;
@@ -4708,6 +4734,60 @@ interface operations {
4708
4734
  };
4709
4735
  };
4710
4736
  };
4737
+ ConfirmEmbedSetupIntent: {
4738
+ parameters: {
4739
+ query?: never;
4740
+ header?: never;
4741
+ path: {
4742
+ /** @description The ID of the setup intent to confirm */
4743
+ id: string;
4744
+ };
4745
+ cookie?: never;
4746
+ };
4747
+ requestBody: {
4748
+ content: {
4749
+ "application/json": components["schemas"]["ConfirmSetupIntentWithPaymentMethodRequest"];
4750
+ };
4751
+ };
4752
+ responses: {
4753
+ /** @description Confirmation completed after verification succeeded or failed */
4754
+ 200: {
4755
+ headers: {
4756
+ [name: string]: unknown;
4757
+ };
4758
+ content: {
4759
+ "application/json": components["schemas"]["SetupIntent"];
4760
+ };
4761
+ };
4762
+ /** @description Already-started confirmation returned without a new processor request */
4763
+ 202: {
4764
+ headers: {
4765
+ [name: string]: unknown;
4766
+ };
4767
+ content: {
4768
+ "application/json": components["schemas"]["SetupIntent"];
4769
+ };
4770
+ };
4771
+ /** @description Forbidden */
4772
+ 403: {
4773
+ headers: {
4774
+ [name: string]: unknown;
4775
+ };
4776
+ content: {
4777
+ "application/json": components["schemas"]["Error"];
4778
+ };
4779
+ };
4780
+ /** @description Unprocessable content */
4781
+ 422: {
4782
+ headers: {
4783
+ [name: string]: unknown;
4784
+ };
4785
+ content: {
4786
+ "application/json": components["schemas"]["Error"];
4787
+ };
4788
+ };
4789
+ };
4790
+ };
4711
4791
  ConfirmSetupIntentWithPaymentMethod: {
4712
4792
  parameters: {
4713
4793
  query?: never;
@@ -4724,7 +4804,7 @@ interface operations {
4724
4804
  };
4725
4805
  };
4726
4806
  responses: {
4727
- /** @description Successful confirmation of setup intent */
4807
+ /** @description Confirmation accepted; card verification continues asynchronously */
4728
4808
  202: {
4729
4809
  headers: {
4730
4810
  [name: string]: unknown;
@@ -5452,6 +5532,8 @@ declare const walletProviderTypeValues: ReadonlyArray<FlattenedDeepRequired<comp
5452
5532
  declare const webhookEventTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["WebhookEventType"]>;
5453
5533
  declare const organizationKindValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Organization"]["kind"]>;
5454
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"]>;
5455
5537
  declare const processorTransactionPayment_transaction_typeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ProcessorTransaction"]["payment_transaction_type"]>;
5456
5538
  declare const processorTransactionTransaction_typeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ProcessorTransaction"]["transaction_type"]>;
5457
5539
  declare const refundAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Refund"]["allowed_reverse_action"]>;
@@ -5497,4 +5579,4 @@ declare function createPayApiClient(options: ClientOptions): openapi_fetch.Clien
5497
5579
  /** A configured Amos Pay API client returned by {@link createPayApiClient}. */
5498
5580
  type PayApiClient = ReturnType<typeof createPayApiClient>;
5499
5581
 
5500
- 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,