@amos.com/node 0.1.66 → 0.1.68

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
@@ -155,7 +155,7 @@ interface paths {
155
155
  put?: never;
156
156
  /**
157
157
  * Create an external account
158
- * @description Creates an organization-scoped external account. X-Account-Id is ignored if sent.
158
+ * @description Creates an organization-scoped external account. X-Account-Id is ignored if sent. For bank accounts, send account_number to store the number locally and skip Vault; otherwise send encrypted_account_number to tokenize in Vault.
159
159
  */
160
160
  post: operations["CreateExternalAccount"];
161
161
  delete?: never;
@@ -348,7 +348,19 @@ interface paths {
348
348
  };
349
349
  get?: never;
350
350
  put?: never;
351
- /** Approve a legal entity application */
351
+ /**
352
+ * Start review or approve a legal entity application
353
+ * @description Call this twice.
354
+ *
355
+ * When the application is `submitted`, this moves it to `under_review`.
356
+ * No legal entity is created. Run identity verification for each
357
+ * application principal while the application is `under_review`.
358
+ *
359
+ * When the application is `under_review`, this creates the legal entity,
360
+ * merchants, accounts, and principals and moves the application to
361
+ * `approved`, only if every application principal has a successful
362
+ * identity verification.
363
+ */
352
364
  post: operations["ApproveLegalEntityApplication"];
353
365
  delete?: never;
354
366
  options?: never;
@@ -1330,8 +1342,9 @@ interface components {
1330
1342
  account_type?: string;
1331
1343
  bank_name?: string;
1332
1344
  currency?: string;
1333
- /** @description Plaintext bank account number. Stored encrypted at rest. Not returned in API responses. */
1345
+ /** @description Plaintext bank account number. Stored encrypted at rest and not returned in API responses. When present, Vault tokenization is skipped (payment methods and external bank accounts). */
1334
1346
  account_number?: string;
1347
+ /** @description Vault-encrypted account number. Required on create when account_number is omitted; ignored for tokenization when account_number is present. */
1335
1348
  encrypted_account_number?: string;
1336
1349
  routing_number?: string;
1337
1350
  };
@@ -1737,6 +1750,8 @@ interface components {
1737
1750
  updated_at?: string;
1738
1751
  };
1739
1752
  /** @enum {string} */
1753
+ LegalEntityApplicationStateType: "pending" | "submitted" | "needs_information" | "under_review" | "approved" | "denied";
1754
+ /** @enum {string} */
1740
1755
  LegalEntityEntityType: "individual_sole_proprietorship" | "corporation" | "limited_liability_company" | "partnership" | "limited_partnership" | "general_partnership" | "tax_exempt_organization" | "government_agency";
1741
1756
  /** @enum {string} */
1742
1757
  LegalEntityOwnershipType: "public" | "private";
@@ -1793,7 +1808,7 @@ interface components {
1793
1808
  billing_address_attributes?: components["schemas"]["BillingAddressInput"];
1794
1809
  card_profile_attributes: components["schemas"]["CardProfileInput"];
1795
1810
  };
1796
- /** @description Confirm an embedded intent with a bank account. When ACH verification is required for the intent amount, include plaid credentials and omit bank_account_profile_attributes; routing and account numbers are filled server-side from Plaid Auth. Otherwise provide encrypted_account_number and routing_number on bank_account_profile_attributes. */
1811
+ /** @description Confirm an embedded intent with a bank account. When ACH verification is required for the intent amount, include plaid credentials and omit bank_account_profile_attributes; routing and account numbers are filled server-side from Plaid Auth. Otherwise provide routing_number and either account_number (stored locally, skips Vault) or encrypted_account_number on bank_account_profile_attributes. */
1797
1812
  EmbedConfirmBankAccountPaymentMethodInput: {
1798
1813
  /**
1799
1814
  * @description discriminator enum property added by openapi-typescript
@@ -1927,7 +1942,7 @@ interface components {
1927
1942
  /** @enum {string} */
1928
1943
  WalletProviderType: "googlepay" | "applepay";
1929
1944
  /** @enum {string} */
1930
- 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" | "payout.accepted" | "payout.errored" | "payout.failed" | "payout.pending" | "payout.processing" | "payout.rejected" | "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";
1945
+ 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.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" | "payout.accepted" | "payout.errored" | "payout.failed" | "payout.pending" | "payout.processing" | "payout.rejected" | "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";
1931
1946
  CreateLegalEntityApplicationInput: {
1932
1947
  legal_name?: string;
1933
1948
  entity_type?: components["schemas"]["LegalEntityEntityType"];
@@ -1989,8 +2004,11 @@ interface components {
1989
2004
  /** Format: uuid */
1990
2005
  id?: string;
1991
2006
  legal_name?: string;
1992
- /** Format: uuid */
1993
- legal_entity_id?: string;
2007
+ /**
2008
+ * Format: uuid
2009
+ * @description Set when the application is approved and the legal entity is created.
2010
+ */
2011
+ legal_entity_id?: string | null;
1994
2012
  entity_type?: components["schemas"]["LegalEntityEntityType"];
1995
2013
  ownership_type?: components["schemas"]["LegalEntityOwnershipType"];
1996
2014
  contact_email?: string;
@@ -2001,7 +2019,7 @@ interface components {
2001
2019
  business_state?: string;
2002
2020
  business_postal_code?: string;
2003
2021
  business_country?: string;
2004
- state?: string;
2022
+ state?: components["schemas"]["LegalEntityApplicationStateType"];
2005
2023
  tax_id_last4?: string;
2006
2024
  /** Format: date-time */
2007
2025
  approved_at?: string | null;
@@ -2347,7 +2365,9 @@ interface components {
2347
2365
  account_type?: string;
2348
2366
  bank_name?: string;
2349
2367
  currency?: string;
2368
+ /** @description Plaintext bank account number. Stored encrypted at rest and not returned in API responses. When present, Vault tokenization is skipped. */
2350
2369
  account_number?: string;
2370
+ /** @description Vault-encrypted account number. Required on create when account_number is omitted; ignored for tokenization when account_number is present. */
2351
2371
  encrypted_account_number?: string;
2352
2372
  token?: string;
2353
2373
  routing_number?: string;
@@ -2484,6 +2504,8 @@ interface components {
2484
2504
  organization_id?: string;
2485
2505
  prefix?: string;
2486
2506
  public_id?: string;
2507
+ /** Format: uuid */
2508
+ payout_batch_id?: string | null;
2487
2509
  state?: components["schemas"]["PayoutStateType"];
2488
2510
  /** Format: date-time */
2489
2511
  created_at?: string;
@@ -3812,7 +3834,7 @@ interface operations {
3812
3834
  };
3813
3835
  requestBody?: never;
3814
3836
  responses: {
3815
- /** @description Legal entity application approved successfully */
3837
+ /** @description Application moved to under_review, or approved after identity verification */
3816
3838
  200: {
3817
3839
  headers: {
3818
3840
  [name: string]: unknown;
@@ -3821,7 +3843,7 @@ interface operations {
3821
3843
  "application/json": components["schemas"]["LegalEntityApplication"];
3822
3844
  };
3823
3845
  };
3824
- /** @description Legal entity application could not be approved */
3846
+ /** @description Application could not start review or complete approval */
3825
3847
  422: {
3826
3848
  headers: {
3827
3849
  [name: string]: unknown;
@@ -6094,6 +6116,7 @@ declare const cardProfileFailure_reasonValues: ReadonlyArray<FlattenedDeepRequir
6094
6116
  declare const chargeAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["allowed_reverse_action"]>;
6095
6117
  declare const chargeStateValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["state"]>;
6096
6118
  declare const externalAccountTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ExternalAccount"]["type"]>;
6119
+ declare const legalEntityApplicationStateTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityApplicationStateType"]>;
6097
6120
  declare const legalEntityEntityTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityEntityType"]>;
6098
6121
  declare const legalEntityOwnershipTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityOwnershipType"]>;
6099
6122
  declare const legalEntityDocumentTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityDocumentType"]>;
@@ -6172,4 +6195,4 @@ declare function createPayApiClient(options: ClientOptions): openapi_fetch.Clien
6172
6195
  /** A configured Amos Pay API client returned by {@link createPayApiClient}. */
6173
6196
  type PayApiClient = ReturnType<typeof createPayApiClient>;
6174
6197
 
6175
- 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, 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 };
6198
+ 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 };
package/dist/index.d.ts CHANGED
@@ -155,7 +155,7 @@ interface paths {
155
155
  put?: never;
156
156
  /**
157
157
  * Create an external account
158
- * @description Creates an organization-scoped external account. X-Account-Id is ignored if sent.
158
+ * @description Creates an organization-scoped external account. X-Account-Id is ignored if sent. For bank accounts, send account_number to store the number locally and skip Vault; otherwise send encrypted_account_number to tokenize in Vault.
159
159
  */
160
160
  post: operations["CreateExternalAccount"];
161
161
  delete?: never;
@@ -348,7 +348,19 @@ interface paths {
348
348
  };
349
349
  get?: never;
350
350
  put?: never;
351
- /** Approve a legal entity application */
351
+ /**
352
+ * Start review or approve a legal entity application
353
+ * @description Call this twice.
354
+ *
355
+ * When the application is `submitted`, this moves it to `under_review`.
356
+ * No legal entity is created. Run identity verification for each
357
+ * application principal while the application is `under_review`.
358
+ *
359
+ * When the application is `under_review`, this creates the legal entity,
360
+ * merchants, accounts, and principals and moves the application to
361
+ * `approved`, only if every application principal has a successful
362
+ * identity verification.
363
+ */
352
364
  post: operations["ApproveLegalEntityApplication"];
353
365
  delete?: never;
354
366
  options?: never;
@@ -1330,8 +1342,9 @@ interface components {
1330
1342
  account_type?: string;
1331
1343
  bank_name?: string;
1332
1344
  currency?: string;
1333
- /** @description Plaintext bank account number. Stored encrypted at rest. Not returned in API responses. */
1345
+ /** @description Plaintext bank account number. Stored encrypted at rest and not returned in API responses. When present, Vault tokenization is skipped (payment methods and external bank accounts). */
1334
1346
  account_number?: string;
1347
+ /** @description Vault-encrypted account number. Required on create when account_number is omitted; ignored for tokenization when account_number is present. */
1335
1348
  encrypted_account_number?: string;
1336
1349
  routing_number?: string;
1337
1350
  };
@@ -1737,6 +1750,8 @@ interface components {
1737
1750
  updated_at?: string;
1738
1751
  };
1739
1752
  /** @enum {string} */
1753
+ LegalEntityApplicationStateType: "pending" | "submitted" | "needs_information" | "under_review" | "approved" | "denied";
1754
+ /** @enum {string} */
1740
1755
  LegalEntityEntityType: "individual_sole_proprietorship" | "corporation" | "limited_liability_company" | "partnership" | "limited_partnership" | "general_partnership" | "tax_exempt_organization" | "government_agency";
1741
1756
  /** @enum {string} */
1742
1757
  LegalEntityOwnershipType: "public" | "private";
@@ -1793,7 +1808,7 @@ interface components {
1793
1808
  billing_address_attributes?: components["schemas"]["BillingAddressInput"];
1794
1809
  card_profile_attributes: components["schemas"]["CardProfileInput"];
1795
1810
  };
1796
- /** @description Confirm an embedded intent with a bank account. When ACH verification is required for the intent amount, include plaid credentials and omit bank_account_profile_attributes; routing and account numbers are filled server-side from Plaid Auth. Otherwise provide encrypted_account_number and routing_number on bank_account_profile_attributes. */
1811
+ /** @description Confirm an embedded intent with a bank account. When ACH verification is required for the intent amount, include plaid credentials and omit bank_account_profile_attributes; routing and account numbers are filled server-side from Plaid Auth. Otherwise provide routing_number and either account_number (stored locally, skips Vault) or encrypted_account_number on bank_account_profile_attributes. */
1797
1812
  EmbedConfirmBankAccountPaymentMethodInput: {
1798
1813
  /**
1799
1814
  * @description discriminator enum property added by openapi-typescript
@@ -1927,7 +1942,7 @@ interface components {
1927
1942
  /** @enum {string} */
1928
1943
  WalletProviderType: "googlepay" | "applepay";
1929
1944
  /** @enum {string} */
1930
- 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" | "payout.accepted" | "payout.errored" | "payout.failed" | "payout.pending" | "payout.processing" | "payout.rejected" | "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";
1945
+ 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.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" | "payout.accepted" | "payout.errored" | "payout.failed" | "payout.pending" | "payout.processing" | "payout.rejected" | "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";
1931
1946
  CreateLegalEntityApplicationInput: {
1932
1947
  legal_name?: string;
1933
1948
  entity_type?: components["schemas"]["LegalEntityEntityType"];
@@ -1989,8 +2004,11 @@ interface components {
1989
2004
  /** Format: uuid */
1990
2005
  id?: string;
1991
2006
  legal_name?: string;
1992
- /** Format: uuid */
1993
- legal_entity_id?: string;
2007
+ /**
2008
+ * Format: uuid
2009
+ * @description Set when the application is approved and the legal entity is created.
2010
+ */
2011
+ legal_entity_id?: string | null;
1994
2012
  entity_type?: components["schemas"]["LegalEntityEntityType"];
1995
2013
  ownership_type?: components["schemas"]["LegalEntityOwnershipType"];
1996
2014
  contact_email?: string;
@@ -2001,7 +2019,7 @@ interface components {
2001
2019
  business_state?: string;
2002
2020
  business_postal_code?: string;
2003
2021
  business_country?: string;
2004
- state?: string;
2022
+ state?: components["schemas"]["LegalEntityApplicationStateType"];
2005
2023
  tax_id_last4?: string;
2006
2024
  /** Format: date-time */
2007
2025
  approved_at?: string | null;
@@ -2347,7 +2365,9 @@ interface components {
2347
2365
  account_type?: string;
2348
2366
  bank_name?: string;
2349
2367
  currency?: string;
2368
+ /** @description Plaintext bank account number. Stored encrypted at rest and not returned in API responses. When present, Vault tokenization is skipped. */
2350
2369
  account_number?: string;
2370
+ /** @description Vault-encrypted account number. Required on create when account_number is omitted; ignored for tokenization when account_number is present. */
2351
2371
  encrypted_account_number?: string;
2352
2372
  token?: string;
2353
2373
  routing_number?: string;
@@ -2484,6 +2504,8 @@ interface components {
2484
2504
  organization_id?: string;
2485
2505
  prefix?: string;
2486
2506
  public_id?: string;
2507
+ /** Format: uuid */
2508
+ payout_batch_id?: string | null;
2487
2509
  state?: components["schemas"]["PayoutStateType"];
2488
2510
  /** Format: date-time */
2489
2511
  created_at?: string;
@@ -3812,7 +3834,7 @@ interface operations {
3812
3834
  };
3813
3835
  requestBody?: never;
3814
3836
  responses: {
3815
- /** @description Legal entity application approved successfully */
3837
+ /** @description Application moved to under_review, or approved after identity verification */
3816
3838
  200: {
3817
3839
  headers: {
3818
3840
  [name: string]: unknown;
@@ -3821,7 +3843,7 @@ interface operations {
3821
3843
  "application/json": components["schemas"]["LegalEntityApplication"];
3822
3844
  };
3823
3845
  };
3824
- /** @description Legal entity application could not be approved */
3846
+ /** @description Application could not start review or complete approval */
3825
3847
  422: {
3826
3848
  headers: {
3827
3849
  [name: string]: unknown;
@@ -6094,6 +6116,7 @@ declare const cardProfileFailure_reasonValues: ReadonlyArray<FlattenedDeepRequir
6094
6116
  declare const chargeAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["allowed_reverse_action"]>;
6095
6117
  declare const chargeStateValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["state"]>;
6096
6118
  declare const externalAccountTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ExternalAccount"]["type"]>;
6119
+ declare const legalEntityApplicationStateTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityApplicationStateType"]>;
6097
6120
  declare const legalEntityEntityTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityEntityType"]>;
6098
6121
  declare const legalEntityOwnershipTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityOwnershipType"]>;
6099
6122
  declare const legalEntityDocumentTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityDocumentType"]>;
@@ -6172,4 +6195,4 @@ declare function createPayApiClient(options: ClientOptions): openapi_fetch.Clien
6172
6195
  /** A configured Amos Pay API client returned by {@link createPayApiClient}. */
6173
6196
  type PayApiClient = ReturnType<typeof createPayApiClient>;
6174
6197
 
6175
- 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, 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 };
6198
+ 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 };
package/dist/index.js CHANGED
@@ -52,6 +52,7 @@ __export(index_exports, {
52
52
  embedConfirmGooglePayPaymentMethodInputTypeValues: () => embedConfirmGooglePayPaymentMethodInputTypeValues,
53
53
  externalAccountTypeValues: () => externalAccountTypeValues,
54
54
  internationalBillingAddressOptionsModeValues: () => internationalBillingAddressOptionsModeValues,
55
+ legalEntityApplicationStateTypeValues: () => legalEntityApplicationStateTypeValues,
55
56
  legalEntityDocumentTypeValues: () => legalEntityDocumentTypeValues,
56
57
  legalEntityEntityTypeValues: () => legalEntityEntityTypeValues,
57
58
  legalEntityOwnershipTypeValues: () => legalEntityOwnershipTypeValues,
@@ -87,6 +88,7 @@ var cardProfileFailure_reasonValues = ["authorization_failed", "avs_blocked", "b
87
88
  var chargeAllowed_reverse_actionValues = ["void", "refund"];
88
89
  var chargeStateValues = ["cancelled", "errored", "failed", "processing", "requires_capture", "requires_confirmation", "requires_review", "settlement_failed", "succeeded"];
89
90
  var externalAccountTypeValues = ["external_card", "external_bank_account"];
91
+ var legalEntityApplicationStateTypeValues = ["pending", "submitted", "needs_information", "under_review", "approved", "denied"];
90
92
  var legalEntityEntityTypeValues = ["individual_sole_proprietorship", "corporation", "limited_liability_company", "partnership", "limited_partnership", "general_partnership", "tax_exempt_organization", "government_agency"];
91
93
  var legalEntityOwnershipTypeValues = ["public", "private"];
92
94
  var legalEntityDocumentTypeValues = ["irs_cp_575"];
@@ -116,7 +118,7 @@ var subscriptionIntervalTypeValues = ["day", "week", "month", "year"];
116
118
  var subscriptionPlanTypeValues = ["fixed", "variable"];
117
119
  var transactionSourceTypeValues = ["api", "dashboard", "iframe", "system", "subscription", "admin"];
118
120
  var walletProviderTypeValues = ["googlepay", "applepay"];
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.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", "payout.accepted", "payout.errored", "payout.failed", "payout.pending", "payout.processing", "payout.rejected", "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"];
121
+ 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", "payout.accepted", "payout.errored", "payout.failed", "payout.pending", "payout.processing", "payout.rejected", "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"];
120
122
  var organizationKindValues = ["direct", "payfac"];
121
123
  var originApplepayRegistrationStateTypeValues = ["pending", "skipped", "registered", "failed"];
122
124
  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"];
@@ -157,6 +159,7 @@ function createPayApiClient(options) {
157
159
  embedConfirmGooglePayPaymentMethodInputTypeValues,
158
160
  externalAccountTypeValues,
159
161
  internationalBillingAddressOptionsModeValues,
162
+ legalEntityApplicationStateTypeValues,
160
163
  legalEntityDocumentTypeValues,
161
164
  legalEntityEntityTypeValues,
162
165
  legalEntityOwnershipTypeValues,