@amos.com/node 0.1.67 → 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/openapi/schema.ts CHANGED
@@ -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;
@@ -1746,8 +1747,6 @@ export interface components {
1746
1747
  updated_at?: string;
1747
1748
  };
1748
1749
  /** @enum {string} */
1749
- LegalEntityStateType: "pending" | "active";
1750
- /** @enum {string} */
1751
1750
  LegalEntityApplicationStateType: "pending" | "submitted" | "needs_information" | "under_review" | "approved" | "denied";
1752
1751
  /** @enum {string} */
1753
1752
  LegalEntityEntityType: "individual_sole_proprietorship" | "corporation" | "limited_liability_company" | "partnership" | "limited_partnership" | "general_partnership" | "tax_exempt_organization" | "government_agency";
@@ -1993,7 +1992,6 @@ export interface components {
1993
1992
  business_postal_code?: string;
1994
1993
  business_country?: string;
1995
1994
  tax_id_last4?: string;
1996
- state?: components["schemas"]["LegalEntityStateType"];
1997
1995
  /** Format: date-time */
1998
1996
  created_at?: string;
1999
1997
  /** Format: date-time */
@@ -2003,8 +2001,11 @@ export interface components {
2003
2001
  /** Format: uuid */
2004
2002
  id?: string;
2005
2003
  legal_name?: string;
2006
- /** Format: uuid */
2007
- legal_entity_id?: string;
2004
+ /**
2005
+ * Format: uuid
2006
+ * @description Set when the application is approved and the legal entity is created.
2007
+ */
2008
+ legal_entity_id?: string | null;
2008
2009
  entity_type?: components["schemas"]["LegalEntityEntityType"];
2009
2010
  ownership_type?: components["schemas"]["LegalEntityOwnershipType"];
2010
2011
  contact_email?: string;
@@ -6112,7 +6113,6 @@ export const cardProfileFailure_reasonValues: ReadonlyArray<FlattenedDeepRequire
6112
6113
  export const chargeAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["allowed_reverse_action"]> = ["void", "refund"];
6113
6114
  export const chargeStateValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["state"]> = ["cancelled", "errored", "failed", "processing", "requires_capture", "requires_confirmation", "requires_review", "settlement_failed", "succeeded"];
6114
6115
  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
6116
  export const legalEntityApplicationStateTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityApplicationStateType"]> = ["pending", "submitted", "needs_information", "under_review", "approved", "denied"];
6117
6117
  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
6118
  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.68",
4
4
  "description": "Node.js client for the Amos Pay API.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",