@amos.com/node 0.1.31 → 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/openapi/schema.ts CHANGED
@@ -1216,7 +1216,7 @@ export interface components {
1216
1216
  account_type?: string;
1217
1217
  bank_name?: string;
1218
1218
  /** @enum {string|null} */
1219
- failure_reason?: "activation_failed" | "processing_error" | "vault_failed" | null;
1219
+ failure_reason?: "activation_failed" | "processing_error" | "vault_failed" | "insufficient_funds" | "verification_failed" | null;
1220
1220
  fingerprint?: string | null;
1221
1221
  last4?: string;
1222
1222
  routing_number?: string;
@@ -1561,6 +1561,7 @@ export interface components {
1561
1561
  billing_address_attributes?: components["schemas"]["BillingAddressInput"];
1562
1562
  card_profile_attributes: components["schemas"]["CardProfileInput"];
1563
1563
  };
1564
+ /** @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. */
1564
1565
  EmbedConfirmBankAccountPaymentMethodInput: {
1565
1566
  /**
1566
1567
  * @description discriminator enum property added by openapi-typescript
@@ -1568,6 +1569,7 @@ export interface components {
1568
1569
  */
1569
1570
  type: "bank_account";
1570
1571
  metadata?: components["schemas"]["Metadata"];
1572
+ plaid?: components["schemas"]["PlaidCredentialsInput"];
1571
1573
  bank_account_profile_attributes: components["schemas"]["BankAccountProfileInput"];
1572
1574
  billing_address_attributes?: components["schemas"]["BillingAddressInput"];
1573
1575
  };
@@ -1591,6 +1593,13 @@ export interface components {
1591
1593
  billing_address_attributes?: components["schemas"]["BillingAddressInput"];
1592
1594
  card_profile_attributes: components["schemas"]["CardProfileInput"];
1593
1595
  };
1596
+ /** @description One-time Plaid Link credentials used to source and verify a bank account when ACH verification is required. */
1597
+ PlaidCredentialsInput: {
1598
+ /** @description Temporary public_token returned by Plaid Link onSuccess. */
1599
+ public_token: string;
1600
+ /** @description Selected Plaid account_id from Link metadata. */
1601
+ account_id: string;
1602
+ };
1594
1603
  AllowedCardPaymentMethodOptions: {
1595
1604
  moto?: boolean;
1596
1605
  };
@@ -1939,11 +1948,21 @@ export interface components {
1939
1948
  /** @enum {string} */
1940
1949
  state?: "requires_payment_method" | "requires_confirmation" | "requires_capture" | "processing_authorization" | "processing_capture" | "processing_sale" | "requires_review" | "succeeded" | "cancelled" | "errored_authorization" | "errored_capture" | "errored_sale";
1941
1950
  statement_descriptor?: string;
1951
+ /** @description True when the intent amount meets or exceeds the configured ACH verification threshold. */
1952
+ requires_ach_verification?: boolean;
1953
+ ach_verification?: components["schemas"]["AchVerification"];
1942
1954
  /** Format: date-time */
1943
1955
  created_at?: string;
1944
1956
  /** Format: date-time */
1945
1957
  updated_at?: string;
1946
1958
  };
1959
+ /** @description Instructions for the embed client to complete ACH verification via Plaid Link. */
1960
+ AchVerification: {
1961
+ /** @enum {string} */
1962
+ type: "plaid_auth";
1963
+ /** @description Short-lived Plaid Link token used to open Link in the embed client. */
1964
+ link_token: string;
1965
+ };
1947
1966
  RecurringPayment: {
1948
1967
  network_transaction_id?: string;
1949
1968
  transaction_link_id?: string;
@@ -3466,7 +3485,10 @@ export interface operations {
3466
3485
  };
3467
3486
  GetEmbedPaymentIntent: {
3468
3487
  parameters: {
3469
- query?: never;
3488
+ query?: {
3489
+ /** @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. */
3490
+ payment_method_type?: "bank_account";
3491
+ };
3470
3492
  header?: never;
3471
3493
  path: {
3472
3494
  /** @description The ID of the payment intent to retrieve */
@@ -5123,7 +5145,8 @@ type ReadonlyArray<T> = [
5123
5145
  ] extends [
5124
5146
  unknown[]
5125
5147
  ] ? Readonly<Exclude<T, undefined>> : Readonly<Exclude<T, undefined>[]>;
5126
- export const bankAccountProfileFailure_reasonValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["BankAccountProfile"]["failure_reason"]> = ["activation_failed", "processing_error", "vault_failed"];
5148
+ export const pathsEmbedPayment_intentsIdGetParametersQueryPayment_method_typeValues: ReadonlyArray<FlattenedDeepRequired<paths>["/embed/payment_intents/{id}"]["get"]["parameters"]["query"]["payment_method_type"]> = ["bank_account"];
5149
+ export const bankAccountProfileFailure_reasonValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["BankAccountProfile"]["failure_reason"]> = ["activation_failed", "processing_error", "vault_failed", "insufficient_funds", "verification_failed"];
5127
5150
  export const cardProfileFailure_reasonValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["CardProfile"]["failure_reason"]> = ["authorization_failed", "avs_blocked", "brand_not_allowed", "brand_not_found", "cvc_blocked", "processing_error", "vault_failed"];
5128
5151
  export const chargeAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["allowed_reverse_action"]> = ["void", "refund"];
5129
5152
  export const chargeStateValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["state"]> = ["cancelled", "errored", "failed", "processing", "requires_capture", "requires_confirmation", "requires_review", "settlement_failed", "succeeded"];
@@ -5155,6 +5178,7 @@ export const transactionSourceTypeValues: ReadonlyArray<FlattenedDeepRequired<co
5155
5178
  export const walletProviderTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["WalletProviderType"]> = ["googlepay", "applepay"];
5156
5179
  export const webhookEventTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["WebhookEventType"]> = ["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"];
5157
5180
  export const paymentIntentStateValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PaymentIntent"]["state"]> = ["requires_payment_method", "requires_confirmation", "requires_capture", "processing_authorization", "processing_capture", "processing_sale", "requires_review", "succeeded", "cancelled", "errored_authorization", "errored_capture", "errored_sale"];
5181
+ export const achVerificationTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["AchVerification"]["type"]> = ["plaid_auth"];
5158
5182
  export const processorTransactionPayment_transaction_typeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ProcessorTransaction"]["payment_transaction_type"]> = ["charge", "refund", "void"];
5159
5183
  export const processorTransactionTransaction_typeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ProcessorTransaction"]["transaction_type"]> = ["authorization", "authorization_reversal", "capture", "credit", "echeck_credit", "echeck_sale", "echeck_void", "sale", "void"];
5160
5184
  export const refundAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Refund"]["allowed_reverse_action"]> = ["void"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amos.com/node",
3
- "version": "0.1.31",
3
+ "version": "0.1.32",
4
4
  "description": "Node.js client for the Amos Pay API.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",