@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/dist/index.d.mts
CHANGED
|
@@ -349,16 +349,17 @@ interface paths {
|
|
|
349
349
|
get?: never;
|
|
350
350
|
put?: never;
|
|
351
351
|
/**
|
|
352
|
-
* Start review or
|
|
352
|
+
* Start review or approve a legal entity application
|
|
353
353
|
* @description Call this twice.
|
|
354
354
|
*
|
|
355
|
-
* When the application is `submitted`, this
|
|
356
|
-
*
|
|
357
|
-
*
|
|
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
358
|
*
|
|
359
|
-
* When the application is `under_review`, this
|
|
360
|
-
* and moves the application to
|
|
361
|
-
*
|
|
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.
|
|
362
363
|
*/
|
|
363
364
|
post: operations["ApproveLegalEntityApplication"];
|
|
364
365
|
delete?: never;
|
|
@@ -1749,8 +1750,6 @@ interface components {
|
|
|
1749
1750
|
updated_at?: string;
|
|
1750
1751
|
};
|
|
1751
1752
|
/** @enum {string} */
|
|
1752
|
-
LegalEntityStateType: "pending" | "active";
|
|
1753
|
-
/** @enum {string} */
|
|
1754
1753
|
LegalEntityApplicationStateType: "pending" | "submitted" | "needs_information" | "under_review" | "approved" | "denied";
|
|
1755
1754
|
/** @enum {string} */
|
|
1756
1755
|
LegalEntityEntityType: "individual_sole_proprietorship" | "corporation" | "limited_liability_company" | "partnership" | "limited_partnership" | "general_partnership" | "tax_exempt_organization" | "government_agency";
|
|
@@ -1996,7 +1995,6 @@ interface components {
|
|
|
1996
1995
|
business_postal_code?: string;
|
|
1997
1996
|
business_country?: string;
|
|
1998
1997
|
tax_id_last4?: string;
|
|
1999
|
-
state?: components["schemas"]["LegalEntityStateType"];
|
|
2000
1998
|
/** Format: date-time */
|
|
2001
1999
|
created_at?: string;
|
|
2002
2000
|
/** Format: date-time */
|
|
@@ -2006,8 +2004,11 @@ interface components {
|
|
|
2006
2004
|
/** Format: uuid */
|
|
2007
2005
|
id?: string;
|
|
2008
2006
|
legal_name?: string;
|
|
2009
|
-
/**
|
|
2010
|
-
|
|
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;
|
|
2011
2012
|
entity_type?: components["schemas"]["LegalEntityEntityType"];
|
|
2012
2013
|
ownership_type?: components["schemas"]["LegalEntityOwnershipType"];
|
|
2013
2014
|
contact_email?: string;
|
|
@@ -6115,7 +6116,6 @@ declare const cardProfileFailure_reasonValues: ReadonlyArray<FlattenedDeepRequir
|
|
|
6115
6116
|
declare const chargeAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["allowed_reverse_action"]>;
|
|
6116
6117
|
declare const chargeStateValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["state"]>;
|
|
6117
6118
|
declare const externalAccountTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ExternalAccount"]["type"]>;
|
|
6118
|
-
declare const legalEntityStateTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityStateType"]>;
|
|
6119
6119
|
declare const legalEntityApplicationStateTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityApplicationStateType"]>;
|
|
6120
6120
|
declare const legalEntityEntityTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityEntityType"]>;
|
|
6121
6121
|
declare const legalEntityOwnershipTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityOwnershipType"]>;
|
|
@@ -6195,4 +6195,4 @@ declare function createPayApiClient(options: ClientOptions): openapi_fetch.Clien
|
|
|
6195
6195
|
/** A configured Amos Pay API client returned by {@link createPayApiClient}. */
|
|
6196
6196
|
type PayApiClient = ReturnType<typeof createPayApiClient>;
|
|
6197
6197
|
|
|
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,
|
|
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
|
@@ -349,16 +349,17 @@ interface paths {
|
|
|
349
349
|
get?: never;
|
|
350
350
|
put?: never;
|
|
351
351
|
/**
|
|
352
|
-
* Start review or
|
|
352
|
+
* Start review or approve a legal entity application
|
|
353
353
|
* @description Call this twice.
|
|
354
354
|
*
|
|
355
|
-
* When the application is `submitted`, this
|
|
356
|
-
*
|
|
357
|
-
*
|
|
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
358
|
*
|
|
359
|
-
* When the application is `under_review`, this
|
|
360
|
-
* and moves the application to
|
|
361
|
-
*
|
|
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.
|
|
362
363
|
*/
|
|
363
364
|
post: operations["ApproveLegalEntityApplication"];
|
|
364
365
|
delete?: never;
|
|
@@ -1749,8 +1750,6 @@ interface components {
|
|
|
1749
1750
|
updated_at?: string;
|
|
1750
1751
|
};
|
|
1751
1752
|
/** @enum {string} */
|
|
1752
|
-
LegalEntityStateType: "pending" | "active";
|
|
1753
|
-
/** @enum {string} */
|
|
1754
1753
|
LegalEntityApplicationStateType: "pending" | "submitted" | "needs_information" | "under_review" | "approved" | "denied";
|
|
1755
1754
|
/** @enum {string} */
|
|
1756
1755
|
LegalEntityEntityType: "individual_sole_proprietorship" | "corporation" | "limited_liability_company" | "partnership" | "limited_partnership" | "general_partnership" | "tax_exempt_organization" | "government_agency";
|
|
@@ -1996,7 +1995,6 @@ interface components {
|
|
|
1996
1995
|
business_postal_code?: string;
|
|
1997
1996
|
business_country?: string;
|
|
1998
1997
|
tax_id_last4?: string;
|
|
1999
|
-
state?: components["schemas"]["LegalEntityStateType"];
|
|
2000
1998
|
/** Format: date-time */
|
|
2001
1999
|
created_at?: string;
|
|
2002
2000
|
/** Format: date-time */
|
|
@@ -2006,8 +2004,11 @@ interface components {
|
|
|
2006
2004
|
/** Format: uuid */
|
|
2007
2005
|
id?: string;
|
|
2008
2006
|
legal_name?: string;
|
|
2009
|
-
/**
|
|
2010
|
-
|
|
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;
|
|
2011
2012
|
entity_type?: components["schemas"]["LegalEntityEntityType"];
|
|
2012
2013
|
ownership_type?: components["schemas"]["LegalEntityOwnershipType"];
|
|
2013
2014
|
contact_email?: string;
|
|
@@ -6115,7 +6116,6 @@ declare const cardProfileFailure_reasonValues: ReadonlyArray<FlattenedDeepRequir
|
|
|
6115
6116
|
declare const chargeAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["allowed_reverse_action"]>;
|
|
6116
6117
|
declare const chargeStateValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["state"]>;
|
|
6117
6118
|
declare const externalAccountTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ExternalAccount"]["type"]>;
|
|
6118
|
-
declare const legalEntityStateTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityStateType"]>;
|
|
6119
6119
|
declare const legalEntityApplicationStateTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityApplicationStateType"]>;
|
|
6120
6120
|
declare const legalEntityEntityTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityEntityType"]>;
|
|
6121
6121
|
declare const legalEntityOwnershipTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityOwnershipType"]>;
|
|
@@ -6195,4 +6195,4 @@ declare function createPayApiClient(options: ClientOptions): openapi_fetch.Clien
|
|
|
6195
6195
|
/** A configured Amos Pay API client returned by {@link createPayApiClient}. */
|
|
6196
6196
|
type PayApiClient = ReturnType<typeof createPayApiClient>;
|
|
6197
6197
|
|
|
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,
|
|
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
|
@@ -56,7 +56,6 @@ __export(index_exports, {
|
|
|
56
56
|
legalEntityDocumentTypeValues: () => legalEntityDocumentTypeValues,
|
|
57
57
|
legalEntityEntityTypeValues: () => legalEntityEntityTypeValues,
|
|
58
58
|
legalEntityOwnershipTypeValues: () => legalEntityOwnershipTypeValues,
|
|
59
|
-
legalEntityStateTypeValues: () => legalEntityStateTypeValues,
|
|
60
59
|
merchantBusinessCategoryTypeValues: () => merchantBusinessCategoryTypeValues,
|
|
61
60
|
organizationKindValues: () => organizationKindValues,
|
|
62
61
|
originApplepayRegistrationStateTypeValues: () => originApplepayRegistrationStateTypeValues,
|
|
@@ -89,7 +88,6 @@ var cardProfileFailure_reasonValues = ["authorization_failed", "avs_blocked", "b
|
|
|
89
88
|
var chargeAllowed_reverse_actionValues = ["void", "refund"];
|
|
90
89
|
var chargeStateValues = ["cancelled", "errored", "failed", "processing", "requires_capture", "requires_confirmation", "requires_review", "settlement_failed", "succeeded"];
|
|
91
90
|
var externalAccountTypeValues = ["external_card", "external_bank_account"];
|
|
92
|
-
var legalEntityStateTypeValues = ["pending", "active"];
|
|
93
91
|
var legalEntityApplicationStateTypeValues = ["pending", "submitted", "needs_information", "under_review", "approved", "denied"];
|
|
94
92
|
var legalEntityEntityTypeValues = ["individual_sole_proprietorship", "corporation", "limited_liability_company", "partnership", "limited_partnership", "general_partnership", "tax_exempt_organization", "government_agency"];
|
|
95
93
|
var legalEntityOwnershipTypeValues = ["public", "private"];
|
|
@@ -165,7 +163,6 @@ function createPayApiClient(options) {
|
|
|
165
163
|
legalEntityDocumentTypeValues,
|
|
166
164
|
legalEntityEntityTypeValues,
|
|
167
165
|
legalEntityOwnershipTypeValues,
|
|
168
|
-
legalEntityStateTypeValues,
|
|
169
166
|
merchantBusinessCategoryTypeValues,
|
|
170
167
|
organizationKindValues,
|
|
171
168
|
originApplepayRegistrationStateTypeValues,
|