@amos.com/node 0.1.68 → 0.1.70
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 +67 -11
- package/dist/index.d.ts +67 -11
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/openapi/schema.ts +69 -13
- 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.
|
|
156
156
|
*/
|
|
157
157
|
post: operations["CreateExternalAccount"];
|
|
158
158
|
delete?: never;
|
|
@@ -799,7 +799,10 @@ export interface paths {
|
|
|
799
799
|
path?: never;
|
|
800
800
|
cookie?: never;
|
|
801
801
|
};
|
|
802
|
-
/**
|
|
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
|
+
*/
|
|
803
806
|
get: operations["ListProcessorTransactions"];
|
|
804
807
|
put?: never;
|
|
805
808
|
post?: never;
|
|
@@ -809,6 +812,26 @@ export interface paths {
|
|
|
809
812
|
patch?: never;
|
|
810
813
|
trace?: never;
|
|
811
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
|
+
};
|
|
812
835
|
"/products": {
|
|
813
836
|
parameters: {
|
|
814
837
|
query?: never;
|
|
@@ -1339,10 +1362,8 @@ export interface components {
|
|
|
1339
1362
|
account_type?: string;
|
|
1340
1363
|
bank_name?: string;
|
|
1341
1364
|
currency?: string;
|
|
1342
|
-
/** @description
|
|
1365
|
+
/** @description Bank account number. Stored encrypted at rest and not returned in API responses. */
|
|
1343
1366
|
account_number?: string;
|
|
1344
|
-
/** @description Vault-encrypted account number. Required on create when account_number is omitted; ignored for tokenization when account_number is present. */
|
|
1345
|
-
encrypted_account_number?: string;
|
|
1346
1367
|
routing_number?: string;
|
|
1347
1368
|
};
|
|
1348
1369
|
BankAccountProfile: {
|
|
@@ -1805,7 +1826,7 @@ export interface components {
|
|
|
1805
1826
|
billing_address_attributes?: components["schemas"]["BillingAddressInput"];
|
|
1806
1827
|
card_profile_attributes: components["schemas"]["CardProfileInput"];
|
|
1807
1828
|
};
|
|
1808
|
-
/** @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
|
|
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. */
|
|
1809
1830
|
EmbedConfirmBankAccountPaymentMethodInput: {
|
|
1810
1831
|
/**
|
|
1811
1832
|
* @description discriminator enum property added by openapi-typescript
|
|
@@ -1927,7 +1948,7 @@ export interface components {
|
|
|
1927
1948
|
/** @enum {string} */
|
|
1928
1949
|
PayoutDirectionType: "credit" | "debit";
|
|
1929
1950
|
/** @enum {string} */
|
|
1930
|
-
PayoutStateType: "pending" | "processing" | "succeeded" | "failed" | "errored" | "accepted" | "rejected";
|
|
1951
|
+
PayoutStateType: "pending" | "processing" | "succeeded" | "failed" | "errored" | "accepted" | "rejected" | "returned";
|
|
1931
1952
|
/** @enum {string} */
|
|
1932
1953
|
RefundStateType: "pending" | "processing" | "requires_review" | "succeeded" | "cancelled" | "failed";
|
|
1933
1954
|
/** @enum {string} */
|
|
@@ -1939,7 +1960,7 @@ export interface components {
|
|
|
1939
1960
|
/** @enum {string} */
|
|
1940
1961
|
WalletProviderType: "googlepay" | "applepay";
|
|
1941
1962
|
/** @enum {string} */
|
|
1942
|
-
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";
|
|
1963
|
+
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.notification_of_change" | "payout.pending" | "payout.processing" | "payout.rejected" | "payout.returned" | "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
1964
|
CreateLegalEntityApplicationInput: {
|
|
1944
1965
|
legal_name?: string;
|
|
1945
1966
|
entity_type?: components["schemas"]["LegalEntityEntityType"];
|
|
@@ -2001,6 +2022,8 @@ export interface components {
|
|
|
2001
2022
|
/** Format: uuid */
|
|
2002
2023
|
id?: string;
|
|
2003
2024
|
legal_name?: string;
|
|
2025
|
+
/** Format: uuid */
|
|
2026
|
+
organization_id?: string;
|
|
2004
2027
|
/**
|
|
2005
2028
|
* Format: uuid
|
|
2006
2029
|
* @description Set when the application is approved and the legal entity is created.
|
|
@@ -2362,10 +2385,8 @@ export interface components {
|
|
|
2362
2385
|
account_type?: string;
|
|
2363
2386
|
bank_name?: string;
|
|
2364
2387
|
currency?: string;
|
|
2365
|
-
/** @description
|
|
2388
|
+
/** @description Bank account number. Stored encrypted at rest and not returned in API responses. */
|
|
2366
2389
|
account_number?: string;
|
|
2367
|
-
/** @description Vault-encrypted account number. Required on create when account_number is omitted; ignored for tokenization when account_number is present. */
|
|
2368
|
-
encrypted_account_number?: string;
|
|
2369
2390
|
token?: string;
|
|
2370
2391
|
routing_number?: string;
|
|
2371
2392
|
};
|
|
@@ -2503,6 +2524,8 @@ export interface components {
|
|
|
2503
2524
|
public_id?: string;
|
|
2504
2525
|
/** Format: uuid */
|
|
2505
2526
|
payout_batch_id?: string | null;
|
|
2527
|
+
/** @description ACH return reason code, such as R13, once the payout is returned. */
|
|
2528
|
+
return_reason_code?: string | null;
|
|
2506
2529
|
state?: components["schemas"]["PayoutStateType"];
|
|
2507
2530
|
/** Format: date-time */
|
|
2508
2531
|
created_at?: string;
|
|
@@ -4943,6 +4966,8 @@ export interface operations {
|
|
|
4943
4966
|
page?: components["parameters"]["PageQuery"];
|
|
4944
4967
|
/** @description Number of results per page. */
|
|
4945
4968
|
per_page?: components["parameters"]["PerPageQuery"];
|
|
4969
|
+
/** @description The ID of the account to filter by */
|
|
4970
|
+
account_id?: components["parameters"]["AccountIdQuery"];
|
|
4946
4971
|
/** @description The ID of the payment intent to filter by */
|
|
4947
4972
|
payment_intent_id?: components["parameters"]["PaymentIntentIdQuery"];
|
|
4948
4973
|
/** @description The ID of the payment method to filter by */
|
|
@@ -4971,6 +4996,37 @@ export interface operations {
|
|
|
4971
4996
|
};
|
|
4972
4997
|
};
|
|
4973
4998
|
};
|
|
4999
|
+
GetProcessorTransaction: {
|
|
5000
|
+
parameters: {
|
|
5001
|
+
query?: never;
|
|
5002
|
+
header?: never;
|
|
5003
|
+
path: {
|
|
5004
|
+
id: string;
|
|
5005
|
+
};
|
|
5006
|
+
cookie?: never;
|
|
5007
|
+
};
|
|
5008
|
+
requestBody?: never;
|
|
5009
|
+
responses: {
|
|
5010
|
+
/** @description A single processor transaction */
|
|
5011
|
+
200: {
|
|
5012
|
+
headers: {
|
|
5013
|
+
[name: string]: unknown;
|
|
5014
|
+
};
|
|
5015
|
+
content: {
|
|
5016
|
+
"application/json": components["schemas"]["ProcessorTransaction"];
|
|
5017
|
+
};
|
|
5018
|
+
};
|
|
5019
|
+
/** @description Processor transaction not found */
|
|
5020
|
+
404: {
|
|
5021
|
+
headers: {
|
|
5022
|
+
[name: string]: unknown;
|
|
5023
|
+
};
|
|
5024
|
+
content: {
|
|
5025
|
+
"application/json": components["schemas"]["Error"];
|
|
5026
|
+
};
|
|
5027
|
+
};
|
|
5028
|
+
};
|
|
5029
|
+
};
|
|
4974
5030
|
ListProducts: {
|
|
4975
5031
|
parameters: {
|
|
4976
5032
|
query?: {
|
|
@@ -6137,13 +6193,13 @@ export const allowedBankAccountPaymentMethodTypeValues: ReadonlyArray<FlattenedD
|
|
|
6137
6193
|
export const allowedGooglePayPaymentMethodTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["AllowedGooglePayPaymentMethod"]["type"]> = ["googlepay"];
|
|
6138
6194
|
export const allowedApplePayPaymentMethodTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["AllowedApplePayPaymentMethod"]["type"]> = ["applepay"];
|
|
6139
6195
|
export const payoutDirectionTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PayoutDirectionType"]> = ["credit", "debit"];
|
|
6140
|
-
export const payoutStateTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PayoutStateType"]> = ["pending", "processing", "succeeded", "failed", "errored", "accepted", "rejected"];
|
|
6196
|
+
export const payoutStateTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PayoutStateType"]> = ["pending", "processing", "succeeded", "failed", "errored", "accepted", "rejected", "returned"];
|
|
6141
6197
|
export const refundStateTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["RefundStateType"]> = ["pending", "processing", "requires_review", "succeeded", "cancelled", "failed"];
|
|
6142
6198
|
export const subscriptionIntervalTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["SubscriptionIntervalType"]> = ["day", "week", "month", "year"];
|
|
6143
6199
|
export const subscriptionPlanTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["SubscriptionPlanType"]> = ["fixed", "variable"];
|
|
6144
6200
|
export const transactionSourceTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["TransactionSourceType"]> = ["api", "dashboard", "iframe", "system", "subscription", "admin"];
|
|
6145
6201
|
export const walletProviderTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["WalletProviderType"]> = ["googlepay", "applepay"];
|
|
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"];
|
|
6202
|
+
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.notification_of_change", "payout.pending", "payout.processing", "payout.rejected", "payout.returned", "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"];
|
|
6147
6203
|
export const organizationKindValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Organization"]["kind"]> = ["direct", "payfac"];
|
|
6148
6204
|
export const originApplepayRegistrationStateTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["OriginApplepayRegistrationStateType"]> = ["pending", "skipped", "registered", "failed"];
|
|
6149
6205
|
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"];
|