@amos.com/node 0.1.44 → 0.1.45

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
@@ -2056,21 +2056,11 @@ interface components {
2056
2056
  /** @enum {string} */
2057
2057
  state?: "requires_payment_method" | "requires_confirmation" | "requires_capture" | "processing_authorization" | "processing_capture" | "processing_sale" | "requires_review" | "succeeded" | "cancelled" | "errored_authorization" | "errored_capture" | "errored_sale";
2058
2058
  statement_descriptor?: string;
2059
- /** @description True when the intent amount meets or exceeds the configured ACH verification threshold. */
2060
- requires_ach_verification?: boolean;
2061
- ach_verification?: components["schemas"]["AchVerification"];
2062
2059
  /** Format: date-time */
2063
2060
  created_at?: string;
2064
2061
  /** Format: date-time */
2065
2062
  updated_at?: string;
2066
2063
  };
2067
- /** @description Instructions for the embed client to complete ACH verification via Plaid Link. */
2068
- AchVerification: {
2069
- /** @enum {string} */
2070
- type: "plaid_auth";
2071
- /** @description Short-lived Plaid Link token used to open Link in the embed client. */
2072
- link_token: string;
2073
- };
2074
2064
  /** @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. */
2075
2065
  RecurringPayment: {
2076
2066
  /** @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. */
@@ -3683,10 +3673,7 @@ interface operations {
3683
3673
  };
3684
3674
  GetEmbedPaymentIntent: {
3685
3675
  parameters: {
3686
- query?: {
3687
- /** @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. */
3688
- payment_method_type?: "bank_account";
3689
- };
3676
+ query?: never;
3690
3677
  header?: never;
3691
3678
  path: {
3692
3679
  /** @description The ID of the payment intent to retrieve */
@@ -5343,7 +5330,6 @@ type ReadonlyArray<T> = [
5343
5330
  ] extends [
5344
5331
  unknown[]
5345
5332
  ] ? Readonly<Exclude<T, undefined>> : Readonly<Exclude<T, undefined>[]>;
5346
- declare const pathsEmbedPayment_intentsIdGetParametersQueryPayment_method_typeValues: ReadonlyArray<FlattenedDeepRequired<paths>["/embed/payment_intents/{id}"]["get"]["parameters"]["query"]["payment_method_type"]>;
5347
5333
  declare const bankAccountProfileFailure_reasonValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["BankAccountProfile"]["failure_reason"]>;
5348
5334
  declare const cardProfileFailure_reasonValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["CardProfile"]["failure_reason"]>;
5349
5335
  declare const chargeAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["allowed_reverse_action"]>;
@@ -5381,7 +5367,6 @@ declare const walletProviderTypeValues: ReadonlyArray<FlattenedDeepRequired<comp
5381
5367
  declare const webhookEventTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["WebhookEventType"]>;
5382
5368
  declare const organizationKindValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Organization"]["kind"]>;
5383
5369
  declare const paymentIntentStateValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PaymentIntent"]["state"]>;
5384
- declare const achVerificationTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["AchVerification"]["type"]>;
5385
5370
  declare const processorTransactionPayment_transaction_typeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ProcessorTransaction"]["payment_transaction_type"]>;
5386
5371
  declare const processorTransactionTransaction_typeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ProcessorTransaction"]["transaction_type"]>;
5387
5372
  declare const refundAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Refund"]["allowed_reverse_action"]>;
@@ -5427,4 +5412,4 @@ declare function createPayApiClient(options: ClientOptions): openapi_fetch.Clien
5427
5412
  /** A configured Amos Pay API client returned by {@link createPayApiClient}. */
5428
5413
  type PayApiClient = ReturnType<typeof createPayApiClient>;
5429
5414
 
5430
- export { type $defs, AMOS_API_BASE_URL_PRODUCTION, AMOS_API_BASE_URL_SANDBOX, AMOS_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, internationalBillingAddressOptionsModeValues, legalEntityDocumentTypeValues, legalEntityEntityTypeValues, legalEntityOwnershipTypeValues, merchantBusinessCategoryTypeValues, type operations, organizationKindValues, type paths, pathsEmbedPayment_intentsIdGetParametersQueryPayment_method_typeValues, 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 };
5415
+ 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 };
package/dist/index.d.ts CHANGED
@@ -2056,21 +2056,11 @@ interface components {
2056
2056
  /** @enum {string} */
2057
2057
  state?: "requires_payment_method" | "requires_confirmation" | "requires_capture" | "processing_authorization" | "processing_capture" | "processing_sale" | "requires_review" | "succeeded" | "cancelled" | "errored_authorization" | "errored_capture" | "errored_sale";
2058
2058
  statement_descriptor?: string;
2059
- /** @description True when the intent amount meets or exceeds the configured ACH verification threshold. */
2060
- requires_ach_verification?: boolean;
2061
- ach_verification?: components["schemas"]["AchVerification"];
2062
2059
  /** Format: date-time */
2063
2060
  created_at?: string;
2064
2061
  /** Format: date-time */
2065
2062
  updated_at?: string;
2066
2063
  };
2067
- /** @description Instructions for the embed client to complete ACH verification via Plaid Link. */
2068
- AchVerification: {
2069
- /** @enum {string} */
2070
- type: "plaid_auth";
2071
- /** @description Short-lived Plaid Link token used to open Link in the embed client. */
2072
- link_token: string;
2073
- };
2074
2064
  /** @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. */
2075
2065
  RecurringPayment: {
2076
2066
  /** @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. */
@@ -3683,10 +3673,7 @@ interface operations {
3683
3673
  };
3684
3674
  GetEmbedPaymentIntent: {
3685
3675
  parameters: {
3686
- query?: {
3687
- /** @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. */
3688
- payment_method_type?: "bank_account";
3689
- };
3676
+ query?: never;
3690
3677
  header?: never;
3691
3678
  path: {
3692
3679
  /** @description The ID of the payment intent to retrieve */
@@ -5343,7 +5330,6 @@ type ReadonlyArray<T> = [
5343
5330
  ] extends [
5344
5331
  unknown[]
5345
5332
  ] ? Readonly<Exclude<T, undefined>> : Readonly<Exclude<T, undefined>[]>;
5346
- declare const pathsEmbedPayment_intentsIdGetParametersQueryPayment_method_typeValues: ReadonlyArray<FlattenedDeepRequired<paths>["/embed/payment_intents/{id}"]["get"]["parameters"]["query"]["payment_method_type"]>;
5347
5333
  declare const bankAccountProfileFailure_reasonValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["BankAccountProfile"]["failure_reason"]>;
5348
5334
  declare const cardProfileFailure_reasonValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["CardProfile"]["failure_reason"]>;
5349
5335
  declare const chargeAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["allowed_reverse_action"]>;
@@ -5381,7 +5367,6 @@ declare const walletProviderTypeValues: ReadonlyArray<FlattenedDeepRequired<comp
5381
5367
  declare const webhookEventTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["WebhookEventType"]>;
5382
5368
  declare const organizationKindValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Organization"]["kind"]>;
5383
5369
  declare const paymentIntentStateValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PaymentIntent"]["state"]>;
5384
- declare const achVerificationTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["AchVerification"]["type"]>;
5385
5370
  declare const processorTransactionPayment_transaction_typeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ProcessorTransaction"]["payment_transaction_type"]>;
5386
5371
  declare const processorTransactionTransaction_typeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ProcessorTransaction"]["transaction_type"]>;
5387
5372
  declare const refundAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Refund"]["allowed_reverse_action"]>;
@@ -5427,4 +5412,4 @@ declare function createPayApiClient(options: ClientOptions): openapi_fetch.Clien
5427
5412
  /** A configured Amos Pay API client returned by {@link createPayApiClient}. */
5428
5413
  type PayApiClient = ReturnType<typeof createPayApiClient>;
5429
5414
 
5430
- export { type $defs, AMOS_API_BASE_URL_PRODUCTION, AMOS_API_BASE_URL_SANDBOX, AMOS_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, internationalBillingAddressOptionsModeValues, legalEntityDocumentTypeValues, legalEntityEntityTypeValues, legalEntityOwnershipTypeValues, merchantBusinessCategoryTypeValues, type operations, organizationKindValues, type paths, pathsEmbedPayment_intentsIdGetParametersQueryPayment_method_typeValues, 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 };
5415
+ 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 };
package/dist/index.js CHANGED
@@ -33,7 +33,6 @@ __export(index_exports, {
33
33
  AMOS_API_BASE_URL_PRODUCTION: () => AMOS_API_BASE_URL_PRODUCTION,
34
34
  AMOS_API_BASE_URL_SANDBOX: () => AMOS_API_BASE_URL_SANDBOX,
35
35
  AMOS_API_VERSION: () => AMOS_API_VERSION,
36
- achVerificationTypeValues: () => achVerificationTypeValues,
37
36
  allowedApplePayPaymentMethodInputTypeValues: () => allowedApplePayPaymentMethodInputTypeValues,
38
37
  allowedApplePayPaymentMethodTypeValues: () => allowedApplePayPaymentMethodTypeValues,
39
38
  allowedBankAccountPaymentMethodInputTypeValues: () => allowedBankAccountPaymentMethodInputTypeValues,
@@ -58,7 +57,6 @@ __export(index_exports, {
58
57
  legalEntityOwnershipTypeValues: () => legalEntityOwnershipTypeValues,
59
58
  merchantBusinessCategoryTypeValues: () => merchantBusinessCategoryTypeValues,
60
59
  organizationKindValues: () => organizationKindValues,
61
- pathsEmbedPayment_intentsIdGetParametersQueryPayment_method_typeValues: () => pathsEmbedPayment_intentsIdGetParametersQueryPayment_method_typeValues,
62
60
  paymentIntentCaptureMethodTypeValues: () => paymentIntentCaptureMethodTypeValues,
63
61
  paymentIntentStateValues: () => paymentIntentStateValues,
64
62
  paymentLinkAmountTypeValues: () => paymentLinkAmountTypeValues,
@@ -83,7 +81,6 @@ module.exports = __toCommonJS(index_exports);
83
81
  var import_openapi_fetch = __toESM(require("openapi-fetch"));
84
82
 
85
83
  // openapi/schema.ts
86
- var pathsEmbedPayment_intentsIdGetParametersQueryPayment_method_typeValues = ["bank_account"];
87
84
  var bankAccountProfileFailure_reasonValues = ["activation_failed", "processing_error", "vault_failed", "insufficient_funds", "verification_failed"];
88
85
  var cardProfileFailure_reasonValues = ["authorization_failed", "avs_blocked", "brand_not_allowed", "brand_not_found", "cvc_blocked", "processing_error", "vault_failed"];
89
86
  var chargeAllowed_reverse_actionValues = ["void", "refund"];
@@ -121,7 +118,6 @@ var walletProviderTypeValues = ["googlepay", "applepay"];
121
118
  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"];
122
119
  var organizationKindValues = ["direct", "payfac"];
123
120
  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"];
124
- var achVerificationTypeValues = ["plaid_auth"];
125
121
  var processorTransactionPayment_transaction_typeValues = ["charge", "refund", "void"];
126
122
  var processorTransactionTransaction_typeValues = ["authorization", "authorization_reversal", "capture", "credit", "echeck_credit", "echeck_sale", "echeck_void", "sale", "void"];
127
123
  var refundAllowed_reverse_actionValues = ["void"];
@@ -140,7 +136,6 @@ function createPayApiClient(options) {
140
136
  AMOS_API_BASE_URL_PRODUCTION,
141
137
  AMOS_API_BASE_URL_SANDBOX,
142
138
  AMOS_API_VERSION,
143
- achVerificationTypeValues,
144
139
  allowedApplePayPaymentMethodInputTypeValues,
145
140
  allowedApplePayPaymentMethodTypeValues,
146
141
  allowedBankAccountPaymentMethodInputTypeValues,
@@ -165,7 +160,6 @@ function createPayApiClient(options) {
165
160
  legalEntityOwnershipTypeValues,
166
161
  merchantBusinessCategoryTypeValues,
167
162
  organizationKindValues,
168
- pathsEmbedPayment_intentsIdGetParametersQueryPayment_method_typeValues,
169
163
  paymentIntentCaptureMethodTypeValues,
170
164
  paymentIntentStateValues,
171
165
  paymentLinkAmountTypeValues,