@amos.com/node 0.1.30 → 0.1.32

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
@@ -1219,7 +1219,7 @@ interface components {
1219
1219
  account_type?: string;
1220
1220
  bank_name?: string;
1221
1221
  /** @enum {string|null} */
1222
- failure_reason?: "activation_failed" | "processing_error" | "vault_failed" | null;
1222
+ failure_reason?: "activation_failed" | "processing_error" | "vault_failed" | "insufficient_funds" | "verification_failed" | null;
1223
1223
  fingerprint?: string | null;
1224
1224
  last4?: string;
1225
1225
  routing_number?: string;
@@ -1564,6 +1564,7 @@ interface components {
1564
1564
  billing_address_attributes?: components["schemas"]["BillingAddressInput"];
1565
1565
  card_profile_attributes: components["schemas"]["CardProfileInput"];
1566
1566
  };
1567
+ /** @description Confirm an embedded intent with a bank account. When ACH verification is required for the intent amount, include plaid credentials; routing and account numbers are filled server-side from Plaid Auth. Otherwise provide encrypted_account_number and routing_number on bank_account_profile_attributes. */
1567
1568
  EmbedConfirmBankAccountPaymentMethodInput: {
1568
1569
  /**
1569
1570
  * @description discriminator enum property added by openapi-typescript
@@ -1571,6 +1572,7 @@ interface components {
1571
1572
  */
1572
1573
  type: "bank_account";
1573
1574
  metadata?: components["schemas"]["Metadata"];
1575
+ plaid?: components["schemas"]["PlaidCredentialsInput"];
1574
1576
  bank_account_profile_attributes: components["schemas"]["BankAccountProfileInput"];
1575
1577
  billing_address_attributes?: components["schemas"]["BillingAddressInput"];
1576
1578
  };
@@ -1594,6 +1596,13 @@ interface components {
1594
1596
  billing_address_attributes?: components["schemas"]["BillingAddressInput"];
1595
1597
  card_profile_attributes: components["schemas"]["CardProfileInput"];
1596
1598
  };
1599
+ /** @description One-time Plaid Link credentials used to source and verify a bank account when ACH verification is required. */
1600
+ PlaidCredentialsInput: {
1601
+ /** @description Temporary public_token returned by Plaid Link onSuccess. */
1602
+ public_token: string;
1603
+ /** @description Selected Plaid account_id from Link metadata. */
1604
+ account_id: string;
1605
+ };
1597
1606
  AllowedCardPaymentMethodOptions: {
1598
1607
  moto?: boolean;
1599
1608
  };
@@ -1900,15 +1909,14 @@ interface components {
1900
1909
  CreatePaymentIntentRequest: {
1901
1910
  payment_intent: components["schemas"]["CreatePaymentIntentInput"];
1902
1911
  };
1903
- ConfirmPaymentIntentWithPaymentMethodInput: {
1904
- /** Format: uuid */
1905
- payment_method_id?: string;
1906
- payment_method: components["schemas"]["EmbedConfirmPaymentMethodInput"];
1907
- } | {
1912
+ ConfirmPaymentIntentWithPaymentMethodIdInput: {
1908
1913
  /** Format: uuid */
1909
1914
  payment_method_id: string;
1910
- payment_method?: components["schemas"]["EmbedConfirmPaymentMethodInput"];
1911
1915
  };
1916
+ ConfirmPaymentIntentWithEmbeddedPaymentMethodInput: {
1917
+ payment_method: components["schemas"]["EmbedConfirmPaymentMethodInput"];
1918
+ };
1919
+ ConfirmPaymentIntentWithPaymentMethodInput: components["schemas"]["ConfirmPaymentIntentWithPaymentMethodIdInput"] | components["schemas"]["ConfirmPaymentIntentWithEmbeddedPaymentMethodInput"];
1912
1920
  ConfirmPaymentIntentWithPaymentMethodRequest: {
1913
1921
  payment_intent: components["schemas"]["ConfirmPaymentIntentWithPaymentMethodInput"];
1914
1922
  };
@@ -1943,11 +1951,21 @@ interface components {
1943
1951
  /** @enum {string} */
1944
1952
  state?: "requires_payment_method" | "requires_confirmation" | "requires_capture" | "processing_authorization" | "processing_capture" | "processing_sale" | "requires_review" | "succeeded" | "cancelled" | "errored_authorization" | "errored_capture" | "errored_sale";
1945
1953
  statement_descriptor?: string;
1954
+ /** @description True when the intent amount meets or exceeds the configured ACH verification threshold. */
1955
+ requires_ach_verification?: boolean;
1956
+ ach_verification?: components["schemas"]["AchVerification"];
1946
1957
  /** Format: date-time */
1947
1958
  created_at?: string;
1948
1959
  /** Format: date-time */
1949
1960
  updated_at?: string;
1950
1961
  };
1962
+ /** @description Instructions for the embed client to complete ACH verification via Plaid Link. */
1963
+ AchVerification: {
1964
+ /** @enum {string} */
1965
+ type: "plaid_auth";
1966
+ /** @description Short-lived Plaid Link token used to open Link in the embed client. */
1967
+ link_token: string;
1968
+ };
1951
1969
  RecurringPayment: {
1952
1970
  network_transaction_id?: string;
1953
1971
  transaction_link_id?: string;
@@ -2231,15 +2249,14 @@ interface components {
2231
2249
  CreateSetupIntentRequest: {
2232
2250
  setup_intent: components["schemas"]["CreateSetupIntentInput"];
2233
2251
  };
2234
- ConfirmSetupIntentWithPaymentMethodInput: {
2235
- /** Format: uuid */
2236
- payment_method_id?: string;
2237
- payment_method: components["schemas"]["EmbedConfirmPaymentMethodInput"];
2238
- } | {
2252
+ ConfirmSetupIntentWithPaymentMethodIdInput: {
2239
2253
  /** Format: uuid */
2240
2254
  payment_method_id: string;
2241
- payment_method?: components["schemas"]["EmbedConfirmPaymentMethodInput"];
2242
2255
  };
2256
+ ConfirmSetupIntentWithEmbeddedPaymentMethodInput: {
2257
+ payment_method: components["schemas"]["EmbedConfirmPaymentMethodInput"];
2258
+ };
2259
+ ConfirmSetupIntentWithPaymentMethodInput: components["schemas"]["ConfirmSetupIntentWithPaymentMethodIdInput"] | components["schemas"]["ConfirmSetupIntentWithEmbeddedPaymentMethodInput"];
2243
2260
  ConfirmSetupIntentWithPaymentMethodRequest: {
2244
2261
  setup_intent: components["schemas"]["ConfirmSetupIntentWithPaymentMethodInput"];
2245
2262
  };
@@ -3471,7 +3488,10 @@ interface operations {
3471
3488
  };
3472
3489
  GetEmbedPaymentIntent: {
3473
3490
  parameters: {
3474
- query?: never;
3491
+ query?: {
3492
+ /** @description When set to bank_account and ACH verification is required for the intent amount, the response includes ach_verification.link_token for Plaid Link. */
3493
+ payment_method_type?: "bank_account";
3494
+ };
3475
3495
  header?: never;
3476
3496
  path: {
3477
3497
  /** @description The ID of the payment intent to retrieve */
@@ -5128,6 +5148,7 @@ type ReadonlyArray<T> = [
5128
5148
  ] extends [
5129
5149
  unknown[]
5130
5150
  ] ? Readonly<Exclude<T, undefined>> : Readonly<Exclude<T, undefined>[]>;
5151
+ declare const pathsEmbedPayment_intentsIdGetParametersQueryPayment_method_typeValues: ReadonlyArray<FlattenedDeepRequired<paths>["/embed/payment_intents/{id}"]["get"]["parameters"]["query"]["payment_method_type"]>;
5131
5152
  declare const bankAccountProfileFailure_reasonValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["BankAccountProfile"]["failure_reason"]>;
5132
5153
  declare const cardProfileFailure_reasonValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["CardProfile"]["failure_reason"]>;
5133
5154
  declare const chargeAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["allowed_reverse_action"]>;
@@ -5160,6 +5181,7 @@ declare const transactionSourceTypeValues: ReadonlyArray<FlattenedDeepRequired<c
5160
5181
  declare const walletProviderTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["WalletProviderType"]>;
5161
5182
  declare const webhookEventTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["WebhookEventType"]>;
5162
5183
  declare const paymentIntentStateValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PaymentIntent"]["state"]>;
5184
+ declare const achVerificationTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["AchVerification"]["type"]>;
5163
5185
  declare const processorTransactionPayment_transaction_typeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ProcessorTransaction"]["payment_transaction_type"]>;
5164
5186
  declare const processorTransactionTransaction_typeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ProcessorTransaction"]["transaction_type"]>;
5165
5187
  declare const refundAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Refund"]["allowed_reverse_action"]>;
@@ -5207,4 +5229,4 @@ declare function createPayApiClient(options: ClientOptions): openapi_fetch.Clien
5207
5229
  /** A configured Amos Pay API client returned by {@link createPayApiClient}. */
5208
5230
  type PayApiClient = ReturnType<typeof createPayApiClient>;
5209
5231
 
5210
- export { type $defs, PAY_API_BASE_URL_PRODUCTION, PAY_API_BASE_URL_SANDBOX, PAY_API_VERSION, type PayApiClient, allowedApplePayPaymentMethodInputTypeValues, allowedApplePayPaymentMethodTypeValues, allowedBankAccountPaymentMethodInputTypeValues, allowedBankAccountPaymentMethodTypeValues, allowedCardPaymentMethodInputTypeValues, allowedCardPaymentMethodTypeValues, allowedGooglePayPaymentMethodInputTypeValues, allowedGooglePayPaymentMethodTypeValues, bankAccountProfileFailure_reasonValues, cardProfileFailure_reasonValues, chargeAllowed_reverse_actionValues, chargeStateValues, type components, createPayApiClient, embedConfirmApplePayPaymentMethodInputTypeValues, embedConfirmBankAccountPaymentMethodInputTypeValues, embedConfirmCardPaymentMethodInputTypeValues, embedConfirmGooglePayPaymentMethodInputTypeValues, externalAccountTypeValues, legalEntityDocumentTypeValues, legalEntityEntityTypeValues, legalEntityOwnershipTypeValues, merchantBusinessCategoryTypeValues, type operations, type paths, paymentIntentStateValues, paymentLinkAmountTypeValues, paymentMethodTypeValues, payoutDirectionTypeValues, payoutStateTypeValues, processorTransactionPayment_transaction_typeValues, processorTransactionTransaction_typeValues, refundAllowed_reverse_actionValues, refundStateTypeValues, setupIntentStateValues, subscriptionIntervalTypeValues, subscriptionPlanTypeValues, subscriptionStateValues, transactionSourceTypeValues, walletProviderTypeValues, webhookEventTypeValues, type webhooks };
5232
+ export { type $defs, PAY_API_BASE_URL_PRODUCTION, PAY_API_BASE_URL_SANDBOX, PAY_API_VERSION, type PayApiClient, achVerificationTypeValues, allowedApplePayPaymentMethodInputTypeValues, allowedApplePayPaymentMethodTypeValues, allowedBankAccountPaymentMethodInputTypeValues, allowedBankAccountPaymentMethodTypeValues, allowedCardPaymentMethodInputTypeValues, allowedCardPaymentMethodTypeValues, allowedGooglePayPaymentMethodInputTypeValues, allowedGooglePayPaymentMethodTypeValues, bankAccountProfileFailure_reasonValues, cardProfileFailure_reasonValues, chargeAllowed_reverse_actionValues, chargeStateValues, type components, createPayApiClient, embedConfirmApplePayPaymentMethodInputTypeValues, embedConfirmBankAccountPaymentMethodInputTypeValues, embedConfirmCardPaymentMethodInputTypeValues, embedConfirmGooglePayPaymentMethodInputTypeValues, externalAccountTypeValues, legalEntityDocumentTypeValues, legalEntityEntityTypeValues, legalEntityOwnershipTypeValues, merchantBusinessCategoryTypeValues, type operations, type paths, pathsEmbedPayment_intentsIdGetParametersQueryPayment_method_typeValues, paymentIntentStateValues, paymentLinkAmountTypeValues, paymentMethodTypeValues, payoutDirectionTypeValues, payoutStateTypeValues, processorTransactionPayment_transaction_typeValues, processorTransactionTransaction_typeValues, refundAllowed_reverse_actionValues, refundStateTypeValues, setupIntentStateValues, subscriptionIntervalTypeValues, subscriptionPlanTypeValues, subscriptionStateValues, transactionSourceTypeValues, walletProviderTypeValues, webhookEventTypeValues, type webhooks };
package/dist/index.d.ts CHANGED
@@ -1219,7 +1219,7 @@ interface components {
1219
1219
  account_type?: string;
1220
1220
  bank_name?: string;
1221
1221
  /** @enum {string|null} */
1222
- failure_reason?: "activation_failed" | "processing_error" | "vault_failed" | null;
1222
+ failure_reason?: "activation_failed" | "processing_error" | "vault_failed" | "insufficient_funds" | "verification_failed" | null;
1223
1223
  fingerprint?: string | null;
1224
1224
  last4?: string;
1225
1225
  routing_number?: string;
@@ -1564,6 +1564,7 @@ interface components {
1564
1564
  billing_address_attributes?: components["schemas"]["BillingAddressInput"];
1565
1565
  card_profile_attributes: components["schemas"]["CardProfileInput"];
1566
1566
  };
1567
+ /** @description Confirm an embedded intent with a bank account. When ACH verification is required for the intent amount, include plaid credentials; routing and account numbers are filled server-side from Plaid Auth. Otherwise provide encrypted_account_number and routing_number on bank_account_profile_attributes. */
1567
1568
  EmbedConfirmBankAccountPaymentMethodInput: {
1568
1569
  /**
1569
1570
  * @description discriminator enum property added by openapi-typescript
@@ -1571,6 +1572,7 @@ interface components {
1571
1572
  */
1572
1573
  type: "bank_account";
1573
1574
  metadata?: components["schemas"]["Metadata"];
1575
+ plaid?: components["schemas"]["PlaidCredentialsInput"];
1574
1576
  bank_account_profile_attributes: components["schemas"]["BankAccountProfileInput"];
1575
1577
  billing_address_attributes?: components["schemas"]["BillingAddressInput"];
1576
1578
  };
@@ -1594,6 +1596,13 @@ interface components {
1594
1596
  billing_address_attributes?: components["schemas"]["BillingAddressInput"];
1595
1597
  card_profile_attributes: components["schemas"]["CardProfileInput"];
1596
1598
  };
1599
+ /** @description One-time Plaid Link credentials used to source and verify a bank account when ACH verification is required. */
1600
+ PlaidCredentialsInput: {
1601
+ /** @description Temporary public_token returned by Plaid Link onSuccess. */
1602
+ public_token: string;
1603
+ /** @description Selected Plaid account_id from Link metadata. */
1604
+ account_id: string;
1605
+ };
1597
1606
  AllowedCardPaymentMethodOptions: {
1598
1607
  moto?: boolean;
1599
1608
  };
@@ -1900,15 +1909,14 @@ interface components {
1900
1909
  CreatePaymentIntentRequest: {
1901
1910
  payment_intent: components["schemas"]["CreatePaymentIntentInput"];
1902
1911
  };
1903
- ConfirmPaymentIntentWithPaymentMethodInput: {
1904
- /** Format: uuid */
1905
- payment_method_id?: string;
1906
- payment_method: components["schemas"]["EmbedConfirmPaymentMethodInput"];
1907
- } | {
1912
+ ConfirmPaymentIntentWithPaymentMethodIdInput: {
1908
1913
  /** Format: uuid */
1909
1914
  payment_method_id: string;
1910
- payment_method?: components["schemas"]["EmbedConfirmPaymentMethodInput"];
1911
1915
  };
1916
+ ConfirmPaymentIntentWithEmbeddedPaymentMethodInput: {
1917
+ payment_method: components["schemas"]["EmbedConfirmPaymentMethodInput"];
1918
+ };
1919
+ ConfirmPaymentIntentWithPaymentMethodInput: components["schemas"]["ConfirmPaymentIntentWithPaymentMethodIdInput"] | components["schemas"]["ConfirmPaymentIntentWithEmbeddedPaymentMethodInput"];
1912
1920
  ConfirmPaymentIntentWithPaymentMethodRequest: {
1913
1921
  payment_intent: components["schemas"]["ConfirmPaymentIntentWithPaymentMethodInput"];
1914
1922
  };
@@ -1943,11 +1951,21 @@ interface components {
1943
1951
  /** @enum {string} */
1944
1952
  state?: "requires_payment_method" | "requires_confirmation" | "requires_capture" | "processing_authorization" | "processing_capture" | "processing_sale" | "requires_review" | "succeeded" | "cancelled" | "errored_authorization" | "errored_capture" | "errored_sale";
1945
1953
  statement_descriptor?: string;
1954
+ /** @description True when the intent amount meets or exceeds the configured ACH verification threshold. */
1955
+ requires_ach_verification?: boolean;
1956
+ ach_verification?: components["schemas"]["AchVerification"];
1946
1957
  /** Format: date-time */
1947
1958
  created_at?: string;
1948
1959
  /** Format: date-time */
1949
1960
  updated_at?: string;
1950
1961
  };
1962
+ /** @description Instructions for the embed client to complete ACH verification via Plaid Link. */
1963
+ AchVerification: {
1964
+ /** @enum {string} */
1965
+ type: "plaid_auth";
1966
+ /** @description Short-lived Plaid Link token used to open Link in the embed client. */
1967
+ link_token: string;
1968
+ };
1951
1969
  RecurringPayment: {
1952
1970
  network_transaction_id?: string;
1953
1971
  transaction_link_id?: string;
@@ -2231,15 +2249,14 @@ interface components {
2231
2249
  CreateSetupIntentRequest: {
2232
2250
  setup_intent: components["schemas"]["CreateSetupIntentInput"];
2233
2251
  };
2234
- ConfirmSetupIntentWithPaymentMethodInput: {
2235
- /** Format: uuid */
2236
- payment_method_id?: string;
2237
- payment_method: components["schemas"]["EmbedConfirmPaymentMethodInput"];
2238
- } | {
2252
+ ConfirmSetupIntentWithPaymentMethodIdInput: {
2239
2253
  /** Format: uuid */
2240
2254
  payment_method_id: string;
2241
- payment_method?: components["schemas"]["EmbedConfirmPaymentMethodInput"];
2242
2255
  };
2256
+ ConfirmSetupIntentWithEmbeddedPaymentMethodInput: {
2257
+ payment_method: components["schemas"]["EmbedConfirmPaymentMethodInput"];
2258
+ };
2259
+ ConfirmSetupIntentWithPaymentMethodInput: components["schemas"]["ConfirmSetupIntentWithPaymentMethodIdInput"] | components["schemas"]["ConfirmSetupIntentWithEmbeddedPaymentMethodInput"];
2243
2260
  ConfirmSetupIntentWithPaymentMethodRequest: {
2244
2261
  setup_intent: components["schemas"]["ConfirmSetupIntentWithPaymentMethodInput"];
2245
2262
  };
@@ -3471,7 +3488,10 @@ interface operations {
3471
3488
  };
3472
3489
  GetEmbedPaymentIntent: {
3473
3490
  parameters: {
3474
- query?: never;
3491
+ query?: {
3492
+ /** @description When set to bank_account and ACH verification is required for the intent amount, the response includes ach_verification.link_token for Plaid Link. */
3493
+ payment_method_type?: "bank_account";
3494
+ };
3475
3495
  header?: never;
3476
3496
  path: {
3477
3497
  /** @description The ID of the payment intent to retrieve */
@@ -5128,6 +5148,7 @@ type ReadonlyArray<T> = [
5128
5148
  ] extends [
5129
5149
  unknown[]
5130
5150
  ] ? Readonly<Exclude<T, undefined>> : Readonly<Exclude<T, undefined>[]>;
5151
+ declare const pathsEmbedPayment_intentsIdGetParametersQueryPayment_method_typeValues: ReadonlyArray<FlattenedDeepRequired<paths>["/embed/payment_intents/{id}"]["get"]["parameters"]["query"]["payment_method_type"]>;
5131
5152
  declare const bankAccountProfileFailure_reasonValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["BankAccountProfile"]["failure_reason"]>;
5132
5153
  declare const cardProfileFailure_reasonValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["CardProfile"]["failure_reason"]>;
5133
5154
  declare const chargeAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["allowed_reverse_action"]>;
@@ -5160,6 +5181,7 @@ declare const transactionSourceTypeValues: ReadonlyArray<FlattenedDeepRequired<c
5160
5181
  declare const walletProviderTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["WalletProviderType"]>;
5161
5182
  declare const webhookEventTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["WebhookEventType"]>;
5162
5183
  declare const paymentIntentStateValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PaymentIntent"]["state"]>;
5184
+ declare const achVerificationTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["AchVerification"]["type"]>;
5163
5185
  declare const processorTransactionPayment_transaction_typeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ProcessorTransaction"]["payment_transaction_type"]>;
5164
5186
  declare const processorTransactionTransaction_typeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ProcessorTransaction"]["transaction_type"]>;
5165
5187
  declare const refundAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Refund"]["allowed_reverse_action"]>;
@@ -5207,4 +5229,4 @@ declare function createPayApiClient(options: ClientOptions): openapi_fetch.Clien
5207
5229
  /** A configured Amos Pay API client returned by {@link createPayApiClient}. */
5208
5230
  type PayApiClient = ReturnType<typeof createPayApiClient>;
5209
5231
 
5210
- export { type $defs, PAY_API_BASE_URL_PRODUCTION, PAY_API_BASE_URL_SANDBOX, PAY_API_VERSION, type PayApiClient, allowedApplePayPaymentMethodInputTypeValues, allowedApplePayPaymentMethodTypeValues, allowedBankAccountPaymentMethodInputTypeValues, allowedBankAccountPaymentMethodTypeValues, allowedCardPaymentMethodInputTypeValues, allowedCardPaymentMethodTypeValues, allowedGooglePayPaymentMethodInputTypeValues, allowedGooglePayPaymentMethodTypeValues, bankAccountProfileFailure_reasonValues, cardProfileFailure_reasonValues, chargeAllowed_reverse_actionValues, chargeStateValues, type components, createPayApiClient, embedConfirmApplePayPaymentMethodInputTypeValues, embedConfirmBankAccountPaymentMethodInputTypeValues, embedConfirmCardPaymentMethodInputTypeValues, embedConfirmGooglePayPaymentMethodInputTypeValues, externalAccountTypeValues, legalEntityDocumentTypeValues, legalEntityEntityTypeValues, legalEntityOwnershipTypeValues, merchantBusinessCategoryTypeValues, type operations, type paths, paymentIntentStateValues, paymentLinkAmountTypeValues, paymentMethodTypeValues, payoutDirectionTypeValues, payoutStateTypeValues, processorTransactionPayment_transaction_typeValues, processorTransactionTransaction_typeValues, refundAllowed_reverse_actionValues, refundStateTypeValues, setupIntentStateValues, subscriptionIntervalTypeValues, subscriptionPlanTypeValues, subscriptionStateValues, transactionSourceTypeValues, walletProviderTypeValues, webhookEventTypeValues, type webhooks };
5232
+ export { type $defs, PAY_API_BASE_URL_PRODUCTION, PAY_API_BASE_URL_SANDBOX, PAY_API_VERSION, type PayApiClient, achVerificationTypeValues, allowedApplePayPaymentMethodInputTypeValues, allowedApplePayPaymentMethodTypeValues, allowedBankAccountPaymentMethodInputTypeValues, allowedBankAccountPaymentMethodTypeValues, allowedCardPaymentMethodInputTypeValues, allowedCardPaymentMethodTypeValues, allowedGooglePayPaymentMethodInputTypeValues, allowedGooglePayPaymentMethodTypeValues, bankAccountProfileFailure_reasonValues, cardProfileFailure_reasonValues, chargeAllowed_reverse_actionValues, chargeStateValues, type components, createPayApiClient, embedConfirmApplePayPaymentMethodInputTypeValues, embedConfirmBankAccountPaymentMethodInputTypeValues, embedConfirmCardPaymentMethodInputTypeValues, embedConfirmGooglePayPaymentMethodInputTypeValues, externalAccountTypeValues, legalEntityDocumentTypeValues, legalEntityEntityTypeValues, legalEntityOwnershipTypeValues, merchantBusinessCategoryTypeValues, type operations, type paths, pathsEmbedPayment_intentsIdGetParametersQueryPayment_method_typeValues, paymentIntentStateValues, paymentLinkAmountTypeValues, paymentMethodTypeValues, payoutDirectionTypeValues, payoutStateTypeValues, processorTransactionPayment_transaction_typeValues, processorTransactionTransaction_typeValues, refundAllowed_reverse_actionValues, refundStateTypeValues, setupIntentStateValues, subscriptionIntervalTypeValues, subscriptionPlanTypeValues, subscriptionStateValues, transactionSourceTypeValues, walletProviderTypeValues, webhookEventTypeValues, type webhooks };
package/dist/index.js CHANGED
@@ -33,6 +33,7 @@ __export(index_exports, {
33
33
  PAY_API_BASE_URL_PRODUCTION: () => PAY_API_BASE_URL_PRODUCTION,
34
34
  PAY_API_BASE_URL_SANDBOX: () => PAY_API_BASE_URL_SANDBOX,
35
35
  PAY_API_VERSION: () => PAY_API_VERSION,
36
+ achVerificationTypeValues: () => achVerificationTypeValues,
36
37
  allowedApplePayPaymentMethodInputTypeValues: () => allowedApplePayPaymentMethodInputTypeValues,
37
38
  allowedApplePayPaymentMethodTypeValues: () => allowedApplePayPaymentMethodTypeValues,
38
39
  allowedBankAccountPaymentMethodInputTypeValues: () => allowedBankAccountPaymentMethodInputTypeValues,
@@ -55,6 +56,7 @@ __export(index_exports, {
55
56
  legalEntityEntityTypeValues: () => legalEntityEntityTypeValues,
56
57
  legalEntityOwnershipTypeValues: () => legalEntityOwnershipTypeValues,
57
58
  merchantBusinessCategoryTypeValues: () => merchantBusinessCategoryTypeValues,
59
+ pathsEmbedPayment_intentsIdGetParametersQueryPayment_method_typeValues: () => pathsEmbedPayment_intentsIdGetParametersQueryPayment_method_typeValues,
58
60
  paymentIntentStateValues: () => paymentIntentStateValues,
59
61
  paymentLinkAmountTypeValues: () => paymentLinkAmountTypeValues,
60
62
  paymentMethodTypeValues: () => paymentMethodTypeValues,
@@ -76,7 +78,8 @@ module.exports = __toCommonJS(index_exports);
76
78
  var import_openapi_fetch = __toESM(require("openapi-fetch"));
77
79
 
78
80
  // openapi/schema.ts
79
- var bankAccountProfileFailure_reasonValues = ["activation_failed", "processing_error", "vault_failed"];
81
+ var pathsEmbedPayment_intentsIdGetParametersQueryPayment_method_typeValues = ["bank_account"];
82
+ var bankAccountProfileFailure_reasonValues = ["activation_failed", "processing_error", "vault_failed", "insufficient_funds", "verification_failed"];
80
83
  var cardProfileFailure_reasonValues = ["authorization_failed", "avs_blocked", "brand_not_allowed", "brand_not_found", "cvc_blocked", "processing_error", "vault_failed"];
81
84
  var chargeAllowed_reverse_actionValues = ["void", "refund"];
82
85
  var chargeStateValues = ["cancelled", "errored", "failed", "processing", "requires_capture", "requires_confirmation", "requires_review", "settlement_failed", "succeeded"];
@@ -108,6 +111,7 @@ var transactionSourceTypeValues = ["api", "dashboard", "iframe", "system", "subs
108
111
  var walletProviderTypeValues = ["googlepay", "applepay"];
109
112
  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", "void.created", "void.failed", "void.pending", "void.processing", "void.requires_review", "void.succeeded"];
110
113
  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"];
114
+ var achVerificationTypeValues = ["plaid_auth"];
111
115
  var processorTransactionPayment_transaction_typeValues = ["charge", "refund", "void"];
112
116
  var processorTransactionTransaction_typeValues = ["authorization", "authorization_reversal", "capture", "credit", "echeck_credit", "echeck_sale", "echeck_void", "sale", "void"];
113
117
  var refundAllowed_reverse_actionValues = ["void"];
@@ -126,6 +130,7 @@ function createPayApiClient(options) {
126
130
  PAY_API_BASE_URL_PRODUCTION,
127
131
  PAY_API_BASE_URL_SANDBOX,
128
132
  PAY_API_VERSION,
133
+ achVerificationTypeValues,
129
134
  allowedApplePayPaymentMethodInputTypeValues,
130
135
  allowedApplePayPaymentMethodTypeValues,
131
136
  allowedBankAccountPaymentMethodInputTypeValues,
@@ -148,6 +153,7 @@ function createPayApiClient(options) {
148
153
  legalEntityEntityTypeValues,
149
154
  legalEntityOwnershipTypeValues,
150
155
  merchantBusinessCategoryTypeValues,
156
+ pathsEmbedPayment_intentsIdGetParametersQueryPayment_method_typeValues,
151
157
  paymentIntentStateValues,
152
158
  paymentLinkAmountTypeValues,
153
159
  paymentMethodTypeValues,