@amos.com/node 0.1.65 → 0.1.67

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,18 @@ interface paths {
348
348
  };
349
349
  get?: never;
350
350
  put?: never;
351
- /** Approve a legal entity application */
351
+ /**
352
+ * Start review or complete approval of a legal entity application
353
+ * @description Call this twice.
354
+ *
355
+ * When the application is `submitted`, this creates a `pending` legal entity
356
+ * and principal and moves the application to `under_review`. Identity
357
+ * verification can then be run against that principal.
358
+ *
359
+ * When the application is `under_review`, this activates the legal entity
360
+ * and moves the application to `approved` only if the principal has a
361
+ * successful identity verification.
362
+ */
352
363
  post: operations["ApproveLegalEntityApplication"];
353
364
  delete?: never;
354
365
  options?: never;
@@ -1330,8 +1341,9 @@ interface components {
1330
1341
  account_type?: string;
1331
1342
  bank_name?: string;
1332
1343
  currency?: string;
1333
- /** @description Plaintext bank account number. Stored encrypted at rest. Not returned in API responses. */
1344
+ /** @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
1345
  account_number?: string;
1346
+ /** @description Vault-encrypted account number. Required on create when account_number is omitted; ignored for tokenization when account_number is present. */
1335
1347
  encrypted_account_number?: string;
1336
1348
  routing_number?: string;
1337
1349
  };
@@ -1737,6 +1749,10 @@ interface components {
1737
1749
  updated_at?: string;
1738
1750
  };
1739
1751
  /** @enum {string} */
1752
+ LegalEntityStateType: "pending" | "active";
1753
+ /** @enum {string} */
1754
+ LegalEntityApplicationStateType: "pending" | "submitted" | "needs_information" | "under_review" | "approved" | "denied";
1755
+ /** @enum {string} */
1740
1756
  LegalEntityEntityType: "individual_sole_proprietorship" | "corporation" | "limited_liability_company" | "partnership" | "limited_partnership" | "general_partnership" | "tax_exempt_organization" | "government_agency";
1741
1757
  /** @enum {string} */
1742
1758
  LegalEntityOwnershipType: "public" | "private";
@@ -1793,7 +1809,7 @@ interface components {
1793
1809
  billing_address_attributes?: components["schemas"]["BillingAddressInput"];
1794
1810
  card_profile_attributes: components["schemas"]["CardProfileInput"];
1795
1811
  };
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. */
1812
+ /** @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
1813
  EmbedConfirmBankAccountPaymentMethodInput: {
1798
1814
  /**
1799
1815
  * @description discriminator enum property added by openapi-typescript
@@ -1927,7 +1943,7 @@ interface components {
1927
1943
  /** @enum {string} */
1928
1944
  WalletProviderType: "googlepay" | "applepay";
1929
1945
  /** @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" | "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";
1946
+ 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
1947
  CreateLegalEntityApplicationInput: {
1932
1948
  legal_name?: string;
1933
1949
  entity_type?: components["schemas"]["LegalEntityEntityType"];
@@ -1980,6 +1996,7 @@ interface components {
1980
1996
  business_postal_code?: string;
1981
1997
  business_country?: string;
1982
1998
  tax_id_last4?: string;
1999
+ state?: components["schemas"]["LegalEntityStateType"];
1983
2000
  /** Format: date-time */
1984
2001
  created_at?: string;
1985
2002
  /** Format: date-time */
@@ -2001,7 +2018,7 @@ interface components {
2001
2018
  business_state?: string;
2002
2019
  business_postal_code?: string;
2003
2020
  business_country?: string;
2004
- state?: string;
2021
+ state?: components["schemas"]["LegalEntityApplicationStateType"];
2005
2022
  tax_id_last4?: string;
2006
2023
  /** Format: date-time */
2007
2024
  approved_at?: string | null;
@@ -2347,7 +2364,9 @@ interface components {
2347
2364
  account_type?: string;
2348
2365
  bank_name?: string;
2349
2366
  currency?: string;
2367
+ /** @description Plaintext bank account number. Stored encrypted at rest and not returned in API responses. When present, Vault tokenization is skipped. */
2350
2368
  account_number?: string;
2369
+ /** @description Vault-encrypted account number. Required on create when account_number is omitted; ignored for tokenization when account_number is present. */
2351
2370
  encrypted_account_number?: string;
2352
2371
  token?: string;
2353
2372
  routing_number?: string;
@@ -2484,6 +2503,8 @@ interface components {
2484
2503
  organization_id?: string;
2485
2504
  prefix?: string;
2486
2505
  public_id?: string;
2506
+ /** Format: uuid */
2507
+ payout_batch_id?: string | null;
2487
2508
  state?: components["schemas"]["PayoutStateType"];
2488
2509
  /** Format: date-time */
2489
2510
  created_at?: string;
@@ -3812,7 +3833,7 @@ interface operations {
3812
3833
  };
3813
3834
  requestBody?: never;
3814
3835
  responses: {
3815
- /** @description Legal entity application approved successfully */
3836
+ /** @description Application moved to under_review, or approved after identity verification */
3816
3837
  200: {
3817
3838
  headers: {
3818
3839
  [name: string]: unknown;
@@ -3821,7 +3842,7 @@ interface operations {
3821
3842
  "application/json": components["schemas"]["LegalEntityApplication"];
3822
3843
  };
3823
3844
  };
3824
- /** @description Legal entity application could not be approved */
3845
+ /** @description Application could not start review or complete approval */
3825
3846
  422: {
3826
3847
  headers: {
3827
3848
  [name: string]: unknown;
@@ -6094,6 +6115,8 @@ declare const cardProfileFailure_reasonValues: ReadonlyArray<FlattenedDeepRequir
6094
6115
  declare const chargeAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["allowed_reverse_action"]>;
6095
6116
  declare const chargeStateValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["state"]>;
6096
6117
  declare const externalAccountTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ExternalAccount"]["type"]>;
6118
+ declare const legalEntityStateTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityStateType"]>;
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, legalEntityStateTypeValues, 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,18 @@ interface paths {
348
348
  };
349
349
  get?: never;
350
350
  put?: never;
351
- /** Approve a legal entity application */
351
+ /**
352
+ * Start review or complete approval of a legal entity application
353
+ * @description Call this twice.
354
+ *
355
+ * When the application is `submitted`, this creates a `pending` legal entity
356
+ * and principal and moves the application to `under_review`. Identity
357
+ * verification can then be run against that principal.
358
+ *
359
+ * When the application is `under_review`, this activates the legal entity
360
+ * and moves the application to `approved` only if the principal has a
361
+ * successful identity verification.
362
+ */
352
363
  post: operations["ApproveLegalEntityApplication"];
353
364
  delete?: never;
354
365
  options?: never;
@@ -1330,8 +1341,9 @@ interface components {
1330
1341
  account_type?: string;
1331
1342
  bank_name?: string;
1332
1343
  currency?: string;
1333
- /** @description Plaintext bank account number. Stored encrypted at rest. Not returned in API responses. */
1344
+ /** @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
1345
  account_number?: string;
1346
+ /** @description Vault-encrypted account number. Required on create when account_number is omitted; ignored for tokenization when account_number is present. */
1335
1347
  encrypted_account_number?: string;
1336
1348
  routing_number?: string;
1337
1349
  };
@@ -1737,6 +1749,10 @@ interface components {
1737
1749
  updated_at?: string;
1738
1750
  };
1739
1751
  /** @enum {string} */
1752
+ LegalEntityStateType: "pending" | "active";
1753
+ /** @enum {string} */
1754
+ LegalEntityApplicationStateType: "pending" | "submitted" | "needs_information" | "under_review" | "approved" | "denied";
1755
+ /** @enum {string} */
1740
1756
  LegalEntityEntityType: "individual_sole_proprietorship" | "corporation" | "limited_liability_company" | "partnership" | "limited_partnership" | "general_partnership" | "tax_exempt_organization" | "government_agency";
1741
1757
  /** @enum {string} */
1742
1758
  LegalEntityOwnershipType: "public" | "private";
@@ -1793,7 +1809,7 @@ interface components {
1793
1809
  billing_address_attributes?: components["schemas"]["BillingAddressInput"];
1794
1810
  card_profile_attributes: components["schemas"]["CardProfileInput"];
1795
1811
  };
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. */
1812
+ /** @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
1813
  EmbedConfirmBankAccountPaymentMethodInput: {
1798
1814
  /**
1799
1815
  * @description discriminator enum property added by openapi-typescript
@@ -1927,7 +1943,7 @@ interface components {
1927
1943
  /** @enum {string} */
1928
1944
  WalletProviderType: "googlepay" | "applepay";
1929
1945
  /** @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" | "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";
1946
+ 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
1947
  CreateLegalEntityApplicationInput: {
1932
1948
  legal_name?: string;
1933
1949
  entity_type?: components["schemas"]["LegalEntityEntityType"];
@@ -1980,6 +1996,7 @@ interface components {
1980
1996
  business_postal_code?: string;
1981
1997
  business_country?: string;
1982
1998
  tax_id_last4?: string;
1999
+ state?: components["schemas"]["LegalEntityStateType"];
1983
2000
  /** Format: date-time */
1984
2001
  created_at?: string;
1985
2002
  /** Format: date-time */
@@ -2001,7 +2018,7 @@ interface components {
2001
2018
  business_state?: string;
2002
2019
  business_postal_code?: string;
2003
2020
  business_country?: string;
2004
- state?: string;
2021
+ state?: components["schemas"]["LegalEntityApplicationStateType"];
2005
2022
  tax_id_last4?: string;
2006
2023
  /** Format: date-time */
2007
2024
  approved_at?: string | null;
@@ -2347,7 +2364,9 @@ interface components {
2347
2364
  account_type?: string;
2348
2365
  bank_name?: string;
2349
2366
  currency?: string;
2367
+ /** @description Plaintext bank account number. Stored encrypted at rest and not returned in API responses. When present, Vault tokenization is skipped. */
2350
2368
  account_number?: string;
2369
+ /** @description Vault-encrypted account number. Required on create when account_number is omitted; ignored for tokenization when account_number is present. */
2351
2370
  encrypted_account_number?: string;
2352
2371
  token?: string;
2353
2372
  routing_number?: string;
@@ -2484,6 +2503,8 @@ interface components {
2484
2503
  organization_id?: string;
2485
2504
  prefix?: string;
2486
2505
  public_id?: string;
2506
+ /** Format: uuid */
2507
+ payout_batch_id?: string | null;
2487
2508
  state?: components["schemas"]["PayoutStateType"];
2488
2509
  /** Format: date-time */
2489
2510
  created_at?: string;
@@ -3812,7 +3833,7 @@ interface operations {
3812
3833
  };
3813
3834
  requestBody?: never;
3814
3835
  responses: {
3815
- /** @description Legal entity application approved successfully */
3836
+ /** @description Application moved to under_review, or approved after identity verification */
3816
3837
  200: {
3817
3838
  headers: {
3818
3839
  [name: string]: unknown;
@@ -3821,7 +3842,7 @@ interface operations {
3821
3842
  "application/json": components["schemas"]["LegalEntityApplication"];
3822
3843
  };
3823
3844
  };
3824
- /** @description Legal entity application could not be approved */
3845
+ /** @description Application could not start review or complete approval */
3825
3846
  422: {
3826
3847
  headers: {
3827
3848
  [name: string]: unknown;
@@ -6094,6 +6115,8 @@ declare const cardProfileFailure_reasonValues: ReadonlyArray<FlattenedDeepRequir
6094
6115
  declare const chargeAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["allowed_reverse_action"]>;
6095
6116
  declare const chargeStateValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["state"]>;
6096
6117
  declare const externalAccountTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ExternalAccount"]["type"]>;
6118
+ declare const legalEntityStateTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityStateType"]>;
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, legalEntityStateTypeValues, 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,9 +52,11 @@ __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,
59
+ legalEntityStateTypeValues: () => legalEntityStateTypeValues,
58
60
  merchantBusinessCategoryTypeValues: () => merchantBusinessCategoryTypeValues,
59
61
  organizationKindValues: () => organizationKindValues,
60
62
  originApplepayRegistrationStateTypeValues: () => originApplepayRegistrationStateTypeValues,
@@ -87,6 +89,8 @@ var cardProfileFailure_reasonValues = ["authorization_failed", "avs_blocked", "b
87
89
  var chargeAllowed_reverse_actionValues = ["void", "refund"];
88
90
  var chargeStateValues = ["cancelled", "errored", "failed", "processing", "requires_capture", "requires_confirmation", "requires_review", "settlement_failed", "succeeded"];
89
91
  var externalAccountTypeValues = ["external_card", "external_bank_account"];
92
+ var legalEntityStateTypeValues = ["pending", "active"];
93
+ var legalEntityApplicationStateTypeValues = ["pending", "submitted", "needs_information", "under_review", "approved", "denied"];
90
94
  var legalEntityEntityTypeValues = ["individual_sole_proprietorship", "corporation", "limited_liability_company", "partnership", "limited_partnership", "general_partnership", "tax_exempt_organization", "government_agency"];
91
95
  var legalEntityOwnershipTypeValues = ["public", "private"];
92
96
  var legalEntityDocumentTypeValues = ["irs_cp_575"];
@@ -116,7 +120,7 @@ var subscriptionIntervalTypeValues = ["day", "week", "month", "year"];
116
120
  var subscriptionPlanTypeValues = ["fixed", "variable"];
117
121
  var transactionSourceTypeValues = ["api", "dashboard", "iframe", "system", "subscription", "admin"];
118
122
  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", "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"];
123
+ 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
124
  var organizationKindValues = ["direct", "payfac"];
121
125
  var originApplepayRegistrationStateTypeValues = ["pending", "skipped", "registered", "failed"];
122
126
  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,9 +161,11 @@ function createPayApiClient(options) {
157
161
  embedConfirmGooglePayPaymentMethodInputTypeValues,
158
162
  externalAccountTypeValues,
159
163
  internationalBillingAddressOptionsModeValues,
164
+ legalEntityApplicationStateTypeValues,
160
165
  legalEntityDocumentTypeValues,
161
166
  legalEntityEntityTypeValues,
162
167
  legalEntityOwnershipTypeValues,
168
+ legalEntityStateTypeValues,
163
169
  merchantBusinessCategoryTypeValues,
164
170
  organizationKindValues,
165
171
  originApplepayRegistrationStateTypeValues,