@amos.com/node 0.1.66 → 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 +32 -9
- package/dist/index.d.ts +32 -9
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -1
- package/dist/index.mjs.map +1 -1
- package/openapi/schema.ts +32 -9
- package/package.json +1 -1
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.
|
|
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.
|
|
156
156
|
*/
|
|
157
157
|
post: operations["CreateExternalAccount"];
|
|
158
158
|
delete?: never;
|
|
@@ -345,7 +345,18 @@ export interface paths {
|
|
|
345
345
|
};
|
|
346
346
|
get?: never;
|
|
347
347
|
put?: never;
|
|
348
|
-
/**
|
|
348
|
+
/**
|
|
349
|
+
* Start review or complete approval of a legal entity application
|
|
350
|
+
* @description Call this twice.
|
|
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.
|
|
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.
|
|
359
|
+
*/
|
|
349
360
|
post: operations["ApproveLegalEntityApplication"];
|
|
350
361
|
delete?: never;
|
|
351
362
|
options?: never;
|
|
@@ -1327,8 +1338,9 @@ export interface components {
|
|
|
1327
1338
|
account_type?: string;
|
|
1328
1339
|
bank_name?: string;
|
|
1329
1340
|
currency?: string;
|
|
1330
|
-
/** @description Plaintext bank account number. Stored encrypted at rest
|
|
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). */
|
|
1331
1342
|
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. */
|
|
1332
1344
|
encrypted_account_number?: string;
|
|
1333
1345
|
routing_number?: string;
|
|
1334
1346
|
};
|
|
@@ -1734,6 +1746,10 @@ export interface components {
|
|
|
1734
1746
|
updated_at?: string;
|
|
1735
1747
|
};
|
|
1736
1748
|
/** @enum {string} */
|
|
1749
|
+
LegalEntityStateType: "pending" | "active";
|
|
1750
|
+
/** @enum {string} */
|
|
1751
|
+
LegalEntityApplicationStateType: "pending" | "submitted" | "needs_information" | "under_review" | "approved" | "denied";
|
|
1752
|
+
/** @enum {string} */
|
|
1737
1753
|
LegalEntityEntityType: "individual_sole_proprietorship" | "corporation" | "limited_liability_company" | "partnership" | "limited_partnership" | "general_partnership" | "tax_exempt_organization" | "government_agency";
|
|
1738
1754
|
/** @enum {string} */
|
|
1739
1755
|
LegalEntityOwnershipType: "public" | "private";
|
|
@@ -1790,7 +1806,7 @@ export interface components {
|
|
|
1790
1806
|
billing_address_attributes?: components["schemas"]["BillingAddressInput"];
|
|
1791
1807
|
card_profile_attributes: components["schemas"]["CardProfileInput"];
|
|
1792
1808
|
};
|
|
1793
|
-
/** @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
|
|
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. */
|
|
1794
1810
|
EmbedConfirmBankAccountPaymentMethodInput: {
|
|
1795
1811
|
/**
|
|
1796
1812
|
* @description discriminator enum property added by openapi-typescript
|
|
@@ -1924,7 +1940,7 @@ export interface components {
|
|
|
1924
1940
|
/** @enum {string} */
|
|
1925
1941
|
WalletProviderType: "googlepay" | "applepay";
|
|
1926
1942
|
/** @enum {string} */
|
|
1927
|
-
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" | "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";
|
|
1943
|
+
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";
|
|
1928
1944
|
CreateLegalEntityApplicationInput: {
|
|
1929
1945
|
legal_name?: string;
|
|
1930
1946
|
entity_type?: components["schemas"]["LegalEntityEntityType"];
|
|
@@ -1977,6 +1993,7 @@ export interface components {
|
|
|
1977
1993
|
business_postal_code?: string;
|
|
1978
1994
|
business_country?: string;
|
|
1979
1995
|
tax_id_last4?: string;
|
|
1996
|
+
state?: components["schemas"]["LegalEntityStateType"];
|
|
1980
1997
|
/** Format: date-time */
|
|
1981
1998
|
created_at?: string;
|
|
1982
1999
|
/** Format: date-time */
|
|
@@ -1998,7 +2015,7 @@ export interface components {
|
|
|
1998
2015
|
business_state?: string;
|
|
1999
2016
|
business_postal_code?: string;
|
|
2000
2017
|
business_country?: string;
|
|
2001
|
-
state?:
|
|
2018
|
+
state?: components["schemas"]["LegalEntityApplicationStateType"];
|
|
2002
2019
|
tax_id_last4?: string;
|
|
2003
2020
|
/** Format: date-time */
|
|
2004
2021
|
approved_at?: string | null;
|
|
@@ -2344,7 +2361,9 @@ export interface components {
|
|
|
2344
2361
|
account_type?: string;
|
|
2345
2362
|
bank_name?: string;
|
|
2346
2363
|
currency?: string;
|
|
2364
|
+
/** @description Plaintext bank account number. Stored encrypted at rest and not returned in API responses. When present, Vault tokenization is skipped. */
|
|
2347
2365
|
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. */
|
|
2348
2367
|
encrypted_account_number?: string;
|
|
2349
2368
|
token?: string;
|
|
2350
2369
|
routing_number?: string;
|
|
@@ -2481,6 +2500,8 @@ export interface components {
|
|
|
2481
2500
|
organization_id?: string;
|
|
2482
2501
|
prefix?: string;
|
|
2483
2502
|
public_id?: string;
|
|
2503
|
+
/** Format: uuid */
|
|
2504
|
+
payout_batch_id?: string | null;
|
|
2484
2505
|
state?: components["schemas"]["PayoutStateType"];
|
|
2485
2506
|
/** Format: date-time */
|
|
2486
2507
|
created_at?: string;
|
|
@@ -3809,7 +3830,7 @@ export interface operations {
|
|
|
3809
3830
|
};
|
|
3810
3831
|
requestBody?: never;
|
|
3811
3832
|
responses: {
|
|
3812
|
-
/** @description
|
|
3833
|
+
/** @description Application moved to under_review, or approved after identity verification */
|
|
3813
3834
|
200: {
|
|
3814
3835
|
headers: {
|
|
3815
3836
|
[name: string]: unknown;
|
|
@@ -3818,7 +3839,7 @@ export interface operations {
|
|
|
3818
3839
|
"application/json": components["schemas"]["LegalEntityApplication"];
|
|
3819
3840
|
};
|
|
3820
3841
|
};
|
|
3821
|
-
/** @description
|
|
3842
|
+
/** @description Application could not start review or complete approval */
|
|
3822
3843
|
422: {
|
|
3823
3844
|
headers: {
|
|
3824
3845
|
[name: string]: unknown;
|
|
@@ -6091,6 +6112,8 @@ export const cardProfileFailure_reasonValues: ReadonlyArray<FlattenedDeepRequire
|
|
|
6091
6112
|
export const chargeAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["allowed_reverse_action"]> = ["void", "refund"];
|
|
6092
6113
|
export const chargeStateValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["state"]> = ["cancelled", "errored", "failed", "processing", "requires_capture", "requires_confirmation", "requires_review", "settlement_failed", "succeeded"];
|
|
6093
6114
|
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
|
+
export const legalEntityApplicationStateTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityApplicationStateType"]> = ["pending", "submitted", "needs_information", "under_review", "approved", "denied"];
|
|
6094
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"];
|
|
6095
6118
|
export const legalEntityOwnershipTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityOwnershipType"]> = ["public", "private"];
|
|
6096
6119
|
export const legalEntityDocumentTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityDocumentType"]> = ["irs_cp_575"];
|
|
@@ -6120,7 +6143,7 @@ export const subscriptionIntervalTypeValues: ReadonlyArray<FlattenedDeepRequired
|
|
|
6120
6143
|
export const subscriptionPlanTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["SubscriptionPlanType"]> = ["fixed", "variable"];
|
|
6121
6144
|
export const transactionSourceTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["TransactionSourceType"]> = ["api", "dashboard", "iframe", "system", "subscription", "admin"];
|
|
6122
6145
|
export const walletProviderTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["WalletProviderType"]> = ["googlepay", "applepay"];
|
|
6123
|
-
export const webhookEventTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["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", "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"];
|
|
6146
|
+
export const webhookEventTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["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"];
|
|
6124
6147
|
export const organizationKindValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Organization"]["kind"]> = ["direct", "payfac"];
|
|
6125
6148
|
export const originApplepayRegistrationStateTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["OriginApplepayRegistrationStateType"]> = ["pending", "skipped", "registered", "failed"];
|
|
6126
6149
|
export const paymentIntentStateValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PaymentIntent"]["state"]> = ["requires_payment_method", "requires_confirmation", "requires_capture", "processing_authorization", "processing_capture", "processing_sale", "requires_review", "succeeded", "cancelled", "errored_authorization", "errored_capture", "errored_sale"];
|