@amos.com/node 0.1.74 → 0.1.76

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
@@ -718,8 +718,7 @@ interface paths {
718
718
  */
719
719
  get: operations["ListPaymentMethods"];
720
720
  put?: never;
721
- /** Create a payment method */
722
- post: operations["CreatePaymentMethod"];
721
+ post?: never;
723
722
  delete?: never;
724
723
  options?: never;
725
724
  head?: never;
@@ -1376,8 +1375,6 @@ interface components {
1376
1375
  account_holder_type?: string;
1377
1376
  account_type?: string;
1378
1377
  bank_name?: string;
1379
- /** @enum {string|null} */
1380
- failure_reason?: "activation_failed" | "processing_error" | "vault_failed" | "insufficient_funds" | "verification_failed" | null;
1381
1378
  fingerprint?: string | null;
1382
1379
  last4?: string;
1383
1380
  /** @description ABA routing number. A nine-digit value must pass the ABA checksum. */
@@ -1440,8 +1437,8 @@ interface components {
1440
1437
  updated_at?: string;
1441
1438
  };
1442
1439
  CardProfileInput: {
1443
- /** @description Cardholder name as stored on the card. 2-26 characters. Letters, numbers, spaces, periods, commas, apostrophes, hyphens, slashes, and ampersands. */
1444
- card_holder_name?: string;
1440
+ /** @description Cardholder name as stored on the card. 2-26 characters when present. Letters, numbers, spaces, periods, commas, apostrophes, hyphens, slashes, and ampersands. */
1441
+ card_holder_name?: string | null;
1445
1442
  cvc?: string;
1446
1443
  encrypted_card_number?: string;
1447
1444
  exp_month?: number;
@@ -1462,14 +1459,12 @@ interface components {
1462
1459
  avs_check?: string;
1463
1460
  avs_check_message?: string | null;
1464
1461
  brand?: string;
1465
- /** @description Cardholder name as stored on the card. 2-26 characters. Letters, numbers, spaces, periods, commas, apostrophes, hyphens, slashes, and ampersands. */
1466
- card_holder_name?: string;
1462
+ /** @description Cardholder name as stored on the card. 2-26 characters when present. Letters, numbers, spaces, periods, commas, apostrophes, hyphens, slashes, and ampersands. */
1463
+ card_holder_name?: string | null;
1467
1464
  cvc_check?: string;
1468
1465
  cvc_check_message?: string | null;
1469
1466
  exp_month?: number;
1470
1467
  exp_year?: number;
1471
- /** @enum {string|null} */
1472
- failure_reason?: "authorization_failed" | "avs_blocked" | "brand_not_allowed" | "brand_not_found" | "cvc_blocked" | "processing_error" | "vault_failed" | null;
1473
1468
  first6?: string;
1474
1469
  funding?: string | null;
1475
1470
  fingerprint?: string | null;
@@ -1519,6 +1514,7 @@ interface components {
1519
1514
  /** Format: uuid */
1520
1515
  customer_id?: string;
1521
1516
  description?: string | null;
1517
+ failure?: components["schemas"]["PaymentFailure"] | null;
1522
1518
  /** @enum {string|null} */
1523
1519
  allowed_reverse_action?: "void" | "refund" | null;
1524
1520
  metadata?: components["schemas"]["Metadata"];
@@ -1966,6 +1962,16 @@ interface components {
1966
1962
  SubscriptionIntervalType: "day" | "week" | "month" | "year";
1967
1963
  /** @enum {string} */
1968
1964
  SubscriptionPlanType: "fixed" | "variable";
1965
+ /** @description Why a transaction failed, in terms that are the same for every processor. */
1966
+ PaymentFailure: {
1967
+ /** @description Stable failure code, for example insufficient_funds, issuer_declined or incorrect_cvc. New codes may be added over time, so treat unknown values as generic_decline. */
1968
+ code: string;
1969
+ type: components["schemas"]["PaymentFailureType"];
1970
+ /** @description Human readable explanation. Safe to show to the merchant. */
1971
+ message: string;
1972
+ };
1973
+ /** @enum {string} */
1974
+ PaymentFailureType: "payment_method_error" | "processing_error";
1969
1975
  /** @enum {string} */
1970
1976
  TransactionSourceType: "api" | "dashboard" | "iframe" | "system" | "subscription" | "admin";
1971
1977
  /** @enum {string} */
@@ -2370,44 +2376,6 @@ interface components {
2370
2376
  /** Format: date-time */
2371
2377
  updated_at?: string;
2372
2378
  };
2373
- CreatePaymentMethodInput: {
2374
- /** Format: uuid */
2375
- customer_id?: string;
2376
- metadata?: components["schemas"]["Metadata"];
2377
- billing_address_attributes?: components["schemas"]["BillingAddressInput"];
2378
- card_profile_attributes?: {
2379
- brand?: string;
2380
- /** @description Cardholder name as stored on the card. 2-26 characters. Letters, numbers, spaces, periods, commas, apostrophes, hyphens, slashes, and ampersands. */
2381
- card_holder_name?: string;
2382
- cvc?: string;
2383
- encrypted_card_number?: string;
2384
- exp_month?: number;
2385
- exp_year?: number;
2386
- first6?: string;
2387
- last4?: string;
2388
- pan_type?: string;
2389
- token?: string;
2390
- wallet_payload?: string;
2391
- wallet_provider?: components["schemas"]["WalletProviderType"];
2392
- };
2393
- bank_account_profile_attributes?: {
2394
- last4?: string;
2395
- /** @description Account holder name. Letters, spaces, hyphens, apostrophes, and periods only. */
2396
- account_holder_name?: string;
2397
- account_holder_type?: string;
2398
- account_type?: string;
2399
- bank_name?: string;
2400
- currency?: string;
2401
- /** @description Bank account number. Stored encrypted at rest and not returned in API responses. */
2402
- account_number?: string;
2403
- token?: string;
2404
- /** @description ABA routing number. A nine-digit value must pass the ABA checksum. */
2405
- routing_number?: string;
2406
- };
2407
- };
2408
- CreatePaymentMethodRequest: {
2409
- payment_method: components["schemas"]["CreatePaymentMethodInput"];
2410
- };
2411
2379
  UpdateMerchantInput: {
2412
2380
  active?: boolean;
2413
2381
  business_category?: components["schemas"]["MerchantBusinessCategoryType"];
@@ -2648,6 +2616,7 @@ interface components {
2648
2616
  /** Format: uuid */
2649
2617
  customer_id?: string;
2650
2618
  description?: string | null;
2619
+ failure?: components["schemas"]["PaymentFailure"] | null;
2651
2620
  metadata?: components["schemas"]["Metadata"];
2652
2621
  /** Format: uuid */
2653
2622
  original_transaction_id?: string;
@@ -2886,6 +2855,7 @@ interface components {
2886
2855
  /** Format: uuid */
2887
2856
  customer_id?: string;
2888
2857
  description?: string | null;
2858
+ failure?: components["schemas"]["PaymentFailure"] | null;
2889
2859
  metadata?: components["schemas"]["Metadata"];
2890
2860
  /** Format: uuid */
2891
2861
  original_transaction_id?: string;
@@ -4789,39 +4759,6 @@ interface operations {
4789
4759
  };
4790
4760
  };
4791
4761
  };
4792
- CreatePaymentMethod: {
4793
- parameters: {
4794
- query?: never;
4795
- header?: never;
4796
- path?: never;
4797
- cookie?: never;
4798
- };
4799
- requestBody: {
4800
- content: {
4801
- "application/json": components["schemas"]["CreatePaymentMethodRequest"];
4802
- };
4803
- };
4804
- responses: {
4805
- /** @description Payment method created successfully */
4806
- 201: {
4807
- headers: {
4808
- [name: string]: unknown;
4809
- };
4810
- content: {
4811
- "application/json": components["schemas"]["PaymentMethod"];
4812
- };
4813
- };
4814
- /** @description Unprocessable entity */
4815
- 422: {
4816
- headers: {
4817
- [name: string]: unknown;
4818
- };
4819
- content: {
4820
- "application/json": components["schemas"]["Error"];
4821
- };
4822
- };
4823
- };
4824
- };
4825
4762
  GetPaymentMethod: {
4826
4763
  parameters: {
4827
4764
  query?: never;
@@ -6184,8 +6121,6 @@ type ReadonlyArray<T> = [
6184
6121
  ] extends [
6185
6122
  unknown[]
6186
6123
  ] ? Readonly<Exclude<T, undefined>> : Readonly<Exclude<T, undefined>[]>;
6187
- declare const bankAccountProfileFailure_reasonValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["BankAccountProfile"]["failure_reason"]>;
6188
- declare const cardProfileFailure_reasonValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["CardProfile"]["failure_reason"]>;
6189
6124
  declare const chargeAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["allowed_reverse_action"]>;
6190
6125
  declare const chargeStateValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["state"]>;
6191
6126
  declare const externalAccountTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ExternalAccount"]["type"]>;
@@ -6217,6 +6152,7 @@ declare const payoutStateTypeValues: ReadonlyArray<FlattenedDeepRequired<compone
6217
6152
  declare const refundStateTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["RefundStateType"]>;
6218
6153
  declare const subscriptionIntervalTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["SubscriptionIntervalType"]>;
6219
6154
  declare const subscriptionPlanTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["SubscriptionPlanType"]>;
6155
+ declare const paymentFailureTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PaymentFailureType"]>;
6220
6156
  declare const transactionSourceTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["TransactionSourceType"]>;
6221
6157
  declare const walletProviderTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["WalletProviderType"]>;
6222
6158
  declare const webhookEventTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["WebhookEventType"]>;
@@ -6268,4 +6204,4 @@ declare function createPayApiClient(options: ClientOptions): openapi_fetch.Clien
6268
6204
  /** A configured Amos Pay API client returned by {@link createPayApiClient}. */
6269
6205
  type PayApiClient = ReturnType<typeof createPayApiClient>;
6270
6206
 
6271
- 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, legalEntityApplicationStateTypeValues, legalEntityDocumentTypeValues, legalEntityEntityTypeValues, legalEntityOwnershipTypeValues, merchantBusinessCategoryTypeValues, type operations, organizationKindValues, originApplepayRegistrationStateTypeValues, 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 };
6207
+ 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, chargeAllowed_reverse_actionValues, chargeStateValues, type components, createPayApiClient, embedConfirmApplePayPaymentMethodInputTypeValues, embedConfirmBankAccountPaymentMethodInputTypeValues, embedConfirmCardPaymentMethodInputTypeValues, embedConfirmGooglePayPaymentMethodInputTypeValues, externalAccountTypeValues, internationalBillingAddressOptionsModeValues, legalEntityApplicationStateTypeValues, legalEntityDocumentTypeValues, legalEntityEntityTypeValues, legalEntityOwnershipTypeValues, merchantBusinessCategoryTypeValues, type operations, organizationKindValues, originApplepayRegistrationStateTypeValues, type paths, paymentFailureTypeValues, 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
@@ -718,8 +718,7 @@ interface paths {
718
718
  */
719
719
  get: operations["ListPaymentMethods"];
720
720
  put?: never;
721
- /** Create a payment method */
722
- post: operations["CreatePaymentMethod"];
721
+ post?: never;
723
722
  delete?: never;
724
723
  options?: never;
725
724
  head?: never;
@@ -1376,8 +1375,6 @@ interface components {
1376
1375
  account_holder_type?: string;
1377
1376
  account_type?: string;
1378
1377
  bank_name?: string;
1379
- /** @enum {string|null} */
1380
- failure_reason?: "activation_failed" | "processing_error" | "vault_failed" | "insufficient_funds" | "verification_failed" | null;
1381
1378
  fingerprint?: string | null;
1382
1379
  last4?: string;
1383
1380
  /** @description ABA routing number. A nine-digit value must pass the ABA checksum. */
@@ -1440,8 +1437,8 @@ interface components {
1440
1437
  updated_at?: string;
1441
1438
  };
1442
1439
  CardProfileInput: {
1443
- /** @description Cardholder name as stored on the card. 2-26 characters. Letters, numbers, spaces, periods, commas, apostrophes, hyphens, slashes, and ampersands. */
1444
- card_holder_name?: string;
1440
+ /** @description Cardholder name as stored on the card. 2-26 characters when present. Letters, numbers, spaces, periods, commas, apostrophes, hyphens, slashes, and ampersands. */
1441
+ card_holder_name?: string | null;
1445
1442
  cvc?: string;
1446
1443
  encrypted_card_number?: string;
1447
1444
  exp_month?: number;
@@ -1462,14 +1459,12 @@ interface components {
1462
1459
  avs_check?: string;
1463
1460
  avs_check_message?: string | null;
1464
1461
  brand?: string;
1465
- /** @description Cardholder name as stored on the card. 2-26 characters. Letters, numbers, spaces, periods, commas, apostrophes, hyphens, slashes, and ampersands. */
1466
- card_holder_name?: string;
1462
+ /** @description Cardholder name as stored on the card. 2-26 characters when present. Letters, numbers, spaces, periods, commas, apostrophes, hyphens, slashes, and ampersands. */
1463
+ card_holder_name?: string | null;
1467
1464
  cvc_check?: string;
1468
1465
  cvc_check_message?: string | null;
1469
1466
  exp_month?: number;
1470
1467
  exp_year?: number;
1471
- /** @enum {string|null} */
1472
- failure_reason?: "authorization_failed" | "avs_blocked" | "brand_not_allowed" | "brand_not_found" | "cvc_blocked" | "processing_error" | "vault_failed" | null;
1473
1468
  first6?: string;
1474
1469
  funding?: string | null;
1475
1470
  fingerprint?: string | null;
@@ -1519,6 +1514,7 @@ interface components {
1519
1514
  /** Format: uuid */
1520
1515
  customer_id?: string;
1521
1516
  description?: string | null;
1517
+ failure?: components["schemas"]["PaymentFailure"] | null;
1522
1518
  /** @enum {string|null} */
1523
1519
  allowed_reverse_action?: "void" | "refund" | null;
1524
1520
  metadata?: components["schemas"]["Metadata"];
@@ -1966,6 +1962,16 @@ interface components {
1966
1962
  SubscriptionIntervalType: "day" | "week" | "month" | "year";
1967
1963
  /** @enum {string} */
1968
1964
  SubscriptionPlanType: "fixed" | "variable";
1965
+ /** @description Why a transaction failed, in terms that are the same for every processor. */
1966
+ PaymentFailure: {
1967
+ /** @description Stable failure code, for example insufficient_funds, issuer_declined or incorrect_cvc. New codes may be added over time, so treat unknown values as generic_decline. */
1968
+ code: string;
1969
+ type: components["schemas"]["PaymentFailureType"];
1970
+ /** @description Human readable explanation. Safe to show to the merchant. */
1971
+ message: string;
1972
+ };
1973
+ /** @enum {string} */
1974
+ PaymentFailureType: "payment_method_error" | "processing_error";
1969
1975
  /** @enum {string} */
1970
1976
  TransactionSourceType: "api" | "dashboard" | "iframe" | "system" | "subscription" | "admin";
1971
1977
  /** @enum {string} */
@@ -2370,44 +2376,6 @@ interface components {
2370
2376
  /** Format: date-time */
2371
2377
  updated_at?: string;
2372
2378
  };
2373
- CreatePaymentMethodInput: {
2374
- /** Format: uuid */
2375
- customer_id?: string;
2376
- metadata?: components["schemas"]["Metadata"];
2377
- billing_address_attributes?: components["schemas"]["BillingAddressInput"];
2378
- card_profile_attributes?: {
2379
- brand?: string;
2380
- /** @description Cardholder name as stored on the card. 2-26 characters. Letters, numbers, spaces, periods, commas, apostrophes, hyphens, slashes, and ampersands. */
2381
- card_holder_name?: string;
2382
- cvc?: string;
2383
- encrypted_card_number?: string;
2384
- exp_month?: number;
2385
- exp_year?: number;
2386
- first6?: string;
2387
- last4?: string;
2388
- pan_type?: string;
2389
- token?: string;
2390
- wallet_payload?: string;
2391
- wallet_provider?: components["schemas"]["WalletProviderType"];
2392
- };
2393
- bank_account_profile_attributes?: {
2394
- last4?: string;
2395
- /** @description Account holder name. Letters, spaces, hyphens, apostrophes, and periods only. */
2396
- account_holder_name?: string;
2397
- account_holder_type?: string;
2398
- account_type?: string;
2399
- bank_name?: string;
2400
- currency?: string;
2401
- /** @description Bank account number. Stored encrypted at rest and not returned in API responses. */
2402
- account_number?: string;
2403
- token?: string;
2404
- /** @description ABA routing number. A nine-digit value must pass the ABA checksum. */
2405
- routing_number?: string;
2406
- };
2407
- };
2408
- CreatePaymentMethodRequest: {
2409
- payment_method: components["schemas"]["CreatePaymentMethodInput"];
2410
- };
2411
2379
  UpdateMerchantInput: {
2412
2380
  active?: boolean;
2413
2381
  business_category?: components["schemas"]["MerchantBusinessCategoryType"];
@@ -2648,6 +2616,7 @@ interface components {
2648
2616
  /** Format: uuid */
2649
2617
  customer_id?: string;
2650
2618
  description?: string | null;
2619
+ failure?: components["schemas"]["PaymentFailure"] | null;
2651
2620
  metadata?: components["schemas"]["Metadata"];
2652
2621
  /** Format: uuid */
2653
2622
  original_transaction_id?: string;
@@ -2886,6 +2855,7 @@ interface components {
2886
2855
  /** Format: uuid */
2887
2856
  customer_id?: string;
2888
2857
  description?: string | null;
2858
+ failure?: components["schemas"]["PaymentFailure"] | null;
2889
2859
  metadata?: components["schemas"]["Metadata"];
2890
2860
  /** Format: uuid */
2891
2861
  original_transaction_id?: string;
@@ -4789,39 +4759,6 @@ interface operations {
4789
4759
  };
4790
4760
  };
4791
4761
  };
4792
- CreatePaymentMethod: {
4793
- parameters: {
4794
- query?: never;
4795
- header?: never;
4796
- path?: never;
4797
- cookie?: never;
4798
- };
4799
- requestBody: {
4800
- content: {
4801
- "application/json": components["schemas"]["CreatePaymentMethodRequest"];
4802
- };
4803
- };
4804
- responses: {
4805
- /** @description Payment method created successfully */
4806
- 201: {
4807
- headers: {
4808
- [name: string]: unknown;
4809
- };
4810
- content: {
4811
- "application/json": components["schemas"]["PaymentMethod"];
4812
- };
4813
- };
4814
- /** @description Unprocessable entity */
4815
- 422: {
4816
- headers: {
4817
- [name: string]: unknown;
4818
- };
4819
- content: {
4820
- "application/json": components["schemas"]["Error"];
4821
- };
4822
- };
4823
- };
4824
- };
4825
4762
  GetPaymentMethod: {
4826
4763
  parameters: {
4827
4764
  query?: never;
@@ -6184,8 +6121,6 @@ type ReadonlyArray<T> = [
6184
6121
  ] extends [
6185
6122
  unknown[]
6186
6123
  ] ? Readonly<Exclude<T, undefined>> : Readonly<Exclude<T, undefined>[]>;
6187
- declare const bankAccountProfileFailure_reasonValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["BankAccountProfile"]["failure_reason"]>;
6188
- declare const cardProfileFailure_reasonValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["CardProfile"]["failure_reason"]>;
6189
6124
  declare const chargeAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["allowed_reverse_action"]>;
6190
6125
  declare const chargeStateValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["state"]>;
6191
6126
  declare const externalAccountTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ExternalAccount"]["type"]>;
@@ -6217,6 +6152,7 @@ declare const payoutStateTypeValues: ReadonlyArray<FlattenedDeepRequired<compone
6217
6152
  declare const refundStateTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["RefundStateType"]>;
6218
6153
  declare const subscriptionIntervalTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["SubscriptionIntervalType"]>;
6219
6154
  declare const subscriptionPlanTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["SubscriptionPlanType"]>;
6155
+ declare const paymentFailureTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PaymentFailureType"]>;
6220
6156
  declare const transactionSourceTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["TransactionSourceType"]>;
6221
6157
  declare const walletProviderTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["WalletProviderType"]>;
6222
6158
  declare const webhookEventTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["WebhookEventType"]>;
@@ -6268,4 +6204,4 @@ declare function createPayApiClient(options: ClientOptions): openapi_fetch.Clien
6268
6204
  /** A configured Amos Pay API client returned by {@link createPayApiClient}. */
6269
6205
  type PayApiClient = ReturnType<typeof createPayApiClient>;
6270
6206
 
6271
- 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, legalEntityApplicationStateTypeValues, legalEntityDocumentTypeValues, legalEntityEntityTypeValues, legalEntityOwnershipTypeValues, merchantBusinessCategoryTypeValues, type operations, organizationKindValues, originApplepayRegistrationStateTypeValues, 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 };
6207
+ 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, chargeAllowed_reverse_actionValues, chargeStateValues, type components, createPayApiClient, embedConfirmApplePayPaymentMethodInputTypeValues, embedConfirmBankAccountPaymentMethodInputTypeValues, embedConfirmCardPaymentMethodInputTypeValues, embedConfirmGooglePayPaymentMethodInputTypeValues, externalAccountTypeValues, internationalBillingAddressOptionsModeValues, legalEntityApplicationStateTypeValues, legalEntityDocumentTypeValues, legalEntityEntityTypeValues, legalEntityOwnershipTypeValues, merchantBusinessCategoryTypeValues, type operations, organizationKindValues, originApplepayRegistrationStateTypeValues, type paths, paymentFailureTypeValues, 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
@@ -41,8 +41,6 @@ __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,
46
44
  chargeAllowed_reverse_actionValues: () => chargeAllowed_reverse_actionValues,
47
45
  chargeStateValues: () => chargeStateValues,
48
46
  createPayApiClient: () => createPayApiClient,
@@ -59,6 +57,7 @@ __export(index_exports, {
59
57
  merchantBusinessCategoryTypeValues: () => merchantBusinessCategoryTypeValues,
60
58
  organizationKindValues: () => organizationKindValues,
61
59
  originApplepayRegistrationStateTypeValues: () => originApplepayRegistrationStateTypeValues,
60
+ paymentFailureTypeValues: () => paymentFailureTypeValues,
62
61
  paymentIntentCaptureMethodTypeValues: () => paymentIntentCaptureMethodTypeValues,
63
62
  paymentIntentStateValues: () => paymentIntentStateValues,
64
63
  paymentLinkAmountTypeValues: () => paymentLinkAmountTypeValues,
@@ -83,8 +82,6 @@ module.exports = __toCommonJS(index_exports);
83
82
  var import_openapi_fetch = __toESM(require("openapi-fetch"));
84
83
 
85
84
  // openapi/schema.ts
86
- var bankAccountProfileFailure_reasonValues = ["activation_failed", "processing_error", "vault_failed", "insufficient_funds", "verification_failed"];
87
- var cardProfileFailure_reasonValues = ["authorization_failed", "avs_blocked", "brand_not_allowed", "brand_not_found", "cvc_blocked", "processing_error", "vault_failed"];
88
85
  var chargeAllowed_reverse_actionValues = ["void", "refund"];
89
86
  var chargeStateValues = ["cancelled", "errored", "failed", "processing", "requires_capture", "requires_confirmation", "requires_review", "settlement_failed", "succeeded"];
90
87
  var externalAccountTypeValues = ["external_card", "external_bank_account"];
@@ -116,6 +113,7 @@ var payoutStateTypeValues = ["pending", "processing", "succeeded", "failed", "re
116
113
  var refundStateTypeValues = ["pending", "processing", "requires_review", "succeeded", "cancelled", "failed"];
117
114
  var subscriptionIntervalTypeValues = ["day", "week", "month", "year"];
118
115
  var subscriptionPlanTypeValues = ["fixed", "variable"];
116
+ var paymentFailureTypeValues = ["payment_method_error", "processing_error"];
119
117
  var transactionSourceTypeValues = ["api", "dashboard", "iframe", "system", "subscription", "admin"];
120
118
  var walletProviderTypeValues = ["googlepay", "applepay"];
121
119
  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.active", "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", "legal_entity_application.under_review", "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", "payment_method.updated", "payout.failed", "payout.notification_of_change", "payout.pending", "payout.processing", "payout.returned", "payout.same_day_missed", "payout.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"];
@@ -148,8 +146,6 @@ function createPayApiClient(options) {
148
146
  allowedCardPaymentMethodTypeValues,
149
147
  allowedGooglePayPaymentMethodInputTypeValues,
150
148
  allowedGooglePayPaymentMethodTypeValues,
151
- bankAccountProfileFailure_reasonValues,
152
- cardProfileFailure_reasonValues,
153
149
  chargeAllowed_reverse_actionValues,
154
150
  chargeStateValues,
155
151
  createPayApiClient,
@@ -166,6 +162,7 @@ function createPayApiClient(options) {
166
162
  merchantBusinessCategoryTypeValues,
167
163
  organizationKindValues,
168
164
  originApplepayRegistrationStateTypeValues,
165
+ paymentFailureTypeValues,
169
166
  paymentIntentCaptureMethodTypeValues,
170
167
  paymentIntentStateValues,
171
168
  paymentLinkAmountTypeValues,