@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/dist/index.d.mts +14 -14
- package/dist/index.d.ts +14 -14
- package/dist/index.js +0 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +0 -2
- package/dist/index.mjs.map +1 -1
- package/openapi/schema.ts +13 -13
- package/package.json +1 -1
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
|
|
349
|
+
* Start review or approve a legal entity application
|
|
350
350
|
* @description Call this twice.
|
|
351
351
|
*
|
|
352
|
-
* When the application is `submitted`, this
|
|
353
|
-
*
|
|
354
|
-
*
|
|
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
|
|
357
|
-
* and moves the application to
|
|
358
|
-
*
|
|
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
|
-
/**
|
|
2007
|
-
|
|
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"];
|