@amos.com/node 0.1.67 → 0.1.69

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
@@ -152,7 +152,7 @@ export interface paths {
152
152
  put?: never;
153
153
  /**
154
154
  * Create an external account
155
- * @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.
155
+ * @description Creates an organization-scoped external account. X-Account-Id is ignored if sent.
156
156
  */
157
157
  post: operations["CreateExternalAccount"];
158
158
  delete?: never;
@@ -346,16 +346,17 @@ export interface paths {
346
346
  get?: never;
347
347
  put?: never;
348
348
  /**
349
- * Start review or complete approval of a legal entity application
349
+ * Start review or approve a legal entity application
350
350
  * @description Call this twice.
351
351
  *
352
- * When the application is `submitted`, this creates a `pending` legal entity
353
- * and principal and moves the application to `under_review`. Identity
354
- * verification can then be run against that principal.
352
+ * When the application is `submitted`, this moves it to `under_review`.
353
+ * No legal entity is created. Run identity verification for each
354
+ * application principal while the application is `under_review`.
355
355
  *
356
- * When the application is `under_review`, this activates the legal entity
357
- * and moves the application to `approved` only if the principal has a
358
- * successful identity verification.
356
+ * When the application is `under_review`, this creates the legal entity,
357
+ * merchants, accounts, and principals and moves the application to
358
+ * `approved`, only if every application principal has a successful
359
+ * identity verification.
359
360
  */
360
361
  post: operations["ApproveLegalEntityApplication"];
361
362
  delete?: never;
@@ -798,7 +799,10 @@ export interface paths {
798
799
  path?: never;
799
800
  cookie?: never;
800
801
  };
801
- /** List all processor transactions */
802
+ /**
803
+ * List all processor transactions
804
+ * @description Lists organization-scoped processor transactions across all accounts in the organization. X-Account-Id is ignored if sent; use the account_id query parameter to filter to a single account.
805
+ */
802
806
  get: operations["ListProcessorTransactions"];
803
807
  put?: never;
804
808
  post?: never;
@@ -808,6 +812,26 @@ export interface paths {
808
812
  patch?: never;
809
813
  trace?: never;
810
814
  };
815
+ "/processor_transactions/{id}": {
816
+ parameters: {
817
+ query?: never;
818
+ header?: never;
819
+ path?: never;
820
+ cookie?: never;
821
+ };
822
+ /**
823
+ * Retrieve a processor transaction by ID
824
+ * @description Retrieves an organization-scoped processor transaction. X-Account-Id is ignored if sent. Returns 404 if the transaction belongs to another organization.
825
+ */
826
+ get: operations["GetProcessorTransaction"];
827
+ put?: never;
828
+ post?: never;
829
+ delete?: never;
830
+ options?: never;
831
+ head?: never;
832
+ patch?: never;
833
+ trace?: never;
834
+ };
811
835
  "/products": {
812
836
  parameters: {
813
837
  query?: never;
@@ -1338,10 +1362,8 @@ export interface components {
1338
1362
  account_type?: string;
1339
1363
  bank_name?: string;
1340
1364
  currency?: string;
1341
- /** @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). */
1365
+ /** @description Bank account number. Stored encrypted at rest and not returned in API responses. */
1342
1366
  account_number?: string;
1343
- /** @description Vault-encrypted account number. Required on create when account_number is omitted; ignored for tokenization when account_number is present. */
1344
- encrypted_account_number?: string;
1345
1367
  routing_number?: string;
1346
1368
  };
1347
1369
  BankAccountProfile: {
@@ -1746,8 +1768,6 @@ export interface components {
1746
1768
  updated_at?: string;
1747
1769
  };
1748
1770
  /** @enum {string} */
1749
- LegalEntityStateType: "pending" | "active";
1750
- /** @enum {string} */
1751
1771
  LegalEntityApplicationStateType: "pending" | "submitted" | "needs_information" | "under_review" | "approved" | "denied";
1752
1772
  /** @enum {string} */
1753
1773
  LegalEntityEntityType: "individual_sole_proprietorship" | "corporation" | "limited_liability_company" | "partnership" | "limited_partnership" | "general_partnership" | "tax_exempt_organization" | "government_agency";
@@ -1806,7 +1826,7 @@ export interface components {
1806
1826
  billing_address_attributes?: components["schemas"]["BillingAddressInput"];
1807
1827
  card_profile_attributes: components["schemas"]["CardProfileInput"];
1808
1828
  };
1809
- /** @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. */
1829
+ /** @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 account_number on bank_account_profile_attributes. */
1810
1830
  EmbedConfirmBankAccountPaymentMethodInput: {
1811
1831
  /**
1812
1832
  * @description discriminator enum property added by openapi-typescript
@@ -1993,7 +2013,6 @@ export interface components {
1993
2013
  business_postal_code?: string;
1994
2014
  business_country?: string;
1995
2015
  tax_id_last4?: string;
1996
- state?: components["schemas"]["LegalEntityStateType"];
1997
2016
  /** Format: date-time */
1998
2017
  created_at?: string;
1999
2018
  /** Format: date-time */
@@ -2004,7 +2023,12 @@ export interface components {
2004
2023
  id?: string;
2005
2024
  legal_name?: string;
2006
2025
  /** Format: uuid */
2007
- legal_entity_id?: string;
2026
+ organization_id?: string;
2027
+ /**
2028
+ * Format: uuid
2029
+ * @description Set when the application is approved and the legal entity is created.
2030
+ */
2031
+ legal_entity_id?: string | null;
2008
2032
  entity_type?: components["schemas"]["LegalEntityEntityType"];
2009
2033
  ownership_type?: components["schemas"]["LegalEntityOwnershipType"];
2010
2034
  contact_email?: string;
@@ -2361,10 +2385,8 @@ export interface components {
2361
2385
  account_type?: string;
2362
2386
  bank_name?: string;
2363
2387
  currency?: string;
2364
- /** @description Plaintext bank account number. Stored encrypted at rest and not returned in API responses. When present, Vault tokenization is skipped. */
2388
+ /** @description Bank account number. Stored encrypted at rest and not returned in API responses. */
2365
2389
  account_number?: string;
2366
- /** @description Vault-encrypted account number. Required on create when account_number is omitted; ignored for tokenization when account_number is present. */
2367
- encrypted_account_number?: string;
2368
2390
  token?: string;
2369
2391
  routing_number?: string;
2370
2392
  };
@@ -4942,6 +4964,8 @@ export interface operations {
4942
4964
  page?: components["parameters"]["PageQuery"];
4943
4965
  /** @description Number of results per page. */
4944
4966
  per_page?: components["parameters"]["PerPageQuery"];
4967
+ /** @description The ID of the account to filter by */
4968
+ account_id?: components["parameters"]["AccountIdQuery"];
4945
4969
  /** @description The ID of the payment intent to filter by */
4946
4970
  payment_intent_id?: components["parameters"]["PaymentIntentIdQuery"];
4947
4971
  /** @description The ID of the payment method to filter by */
@@ -4970,6 +4994,37 @@ export interface operations {
4970
4994
  };
4971
4995
  };
4972
4996
  };
4997
+ GetProcessorTransaction: {
4998
+ parameters: {
4999
+ query?: never;
5000
+ header?: never;
5001
+ path: {
5002
+ id: string;
5003
+ };
5004
+ cookie?: never;
5005
+ };
5006
+ requestBody?: never;
5007
+ responses: {
5008
+ /** @description A single processor transaction */
5009
+ 200: {
5010
+ headers: {
5011
+ [name: string]: unknown;
5012
+ };
5013
+ content: {
5014
+ "application/json": components["schemas"]["ProcessorTransaction"];
5015
+ };
5016
+ };
5017
+ /** @description Processor transaction not found */
5018
+ 404: {
5019
+ headers: {
5020
+ [name: string]: unknown;
5021
+ };
5022
+ content: {
5023
+ "application/json": components["schemas"]["Error"];
5024
+ };
5025
+ };
5026
+ };
5027
+ };
4973
5028
  ListProducts: {
4974
5029
  parameters: {
4975
5030
  query?: {
@@ -6112,7 +6167,6 @@ export const cardProfileFailure_reasonValues: ReadonlyArray<FlattenedDeepRequire
6112
6167
  export const chargeAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["allowed_reverse_action"]> = ["void", "refund"];
6113
6168
  export const chargeStateValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["state"]> = ["cancelled", "errored", "failed", "processing", "requires_capture", "requires_confirmation", "requires_review", "settlement_failed", "succeeded"];
6114
6169
  export const externalAccountTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ExternalAccount"]["type"]> = ["external_card", "external_bank_account"];
6115
- export const legalEntityStateTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityStateType"]> = ["pending", "active"];
6116
6170
  export const legalEntityApplicationStateTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityApplicationStateType"]> = ["pending", "submitted", "needs_information", "under_review", "approved", "denied"];
6117
6171
  export const legalEntityEntityTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityEntityType"]> = ["individual_sole_proprietorship", "corporation", "limited_liability_company", "partnership", "limited_partnership", "general_partnership", "tax_exempt_organization", "government_agency"];
6118
6172
  export const legalEntityOwnershipTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityOwnershipType"]> = ["public", "private"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amos.com/node",
3
- "version": "0.1.67",
3
+ "version": "0.1.69",
4
4
  "description": "Node.js client for the Amos Pay API.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",