@amos.com/node 0.1.42 → 0.1.44
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 +45 -6
- package/dist/index.d.ts +45 -6
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/openapi/schema.ts +46 -7
- package/package.json +1 -1
package/openapi/schema.ts
CHANGED
|
@@ -1272,6 +1272,28 @@ export interface components {
|
|
|
1272
1272
|
/** Format: date-time */
|
|
1273
1273
|
updated_at?: string;
|
|
1274
1274
|
};
|
|
1275
|
+
MailingAddressInput: {
|
|
1276
|
+
address_line1?: string;
|
|
1277
|
+
address_line2?: string | null;
|
|
1278
|
+
city?: string;
|
|
1279
|
+
country?: string;
|
|
1280
|
+
name?: string;
|
|
1281
|
+
postal_code?: string;
|
|
1282
|
+
state?: string;
|
|
1283
|
+
};
|
|
1284
|
+
MailingAddress: {
|
|
1285
|
+
address_line1?: string;
|
|
1286
|
+
address_line2?: string | null;
|
|
1287
|
+
city?: string;
|
|
1288
|
+
country?: string;
|
|
1289
|
+
name?: string;
|
|
1290
|
+
postal_code?: string;
|
|
1291
|
+
state?: string;
|
|
1292
|
+
/** Format: date-time */
|
|
1293
|
+
created_at?: string;
|
|
1294
|
+
/** Format: date-time */
|
|
1295
|
+
updated_at?: string;
|
|
1296
|
+
};
|
|
1275
1297
|
CardProfileInput: {
|
|
1276
1298
|
card_holder_name?: string;
|
|
1277
1299
|
cvc?: string;
|
|
@@ -1376,6 +1398,7 @@ export interface components {
|
|
|
1376
1398
|
name?: string;
|
|
1377
1399
|
email?: string;
|
|
1378
1400
|
phone?: string;
|
|
1401
|
+
mailing_address_attributes?: components["schemas"]["MailingAddressInput"];
|
|
1379
1402
|
metadata?: components["schemas"]["Metadata"];
|
|
1380
1403
|
};
|
|
1381
1404
|
CreateCustomerRequest: {
|
|
@@ -1387,6 +1410,7 @@ export interface components {
|
|
|
1387
1410
|
/** Format: uuid */
|
|
1388
1411
|
payment_method_id?: string;
|
|
1389
1412
|
phone?: string;
|
|
1413
|
+
mailing_address_attributes?: components["schemas"]["MailingAddressInput"];
|
|
1390
1414
|
metadata?: components["schemas"]["Metadata"];
|
|
1391
1415
|
};
|
|
1392
1416
|
UpdateCustomerRequest: {
|
|
@@ -1406,6 +1430,7 @@ export interface components {
|
|
|
1406
1430
|
payment_method_id?: string;
|
|
1407
1431
|
phone?: string;
|
|
1408
1432
|
type?: string;
|
|
1433
|
+
mailing_address?: components["schemas"]["MailingAddress"];
|
|
1409
1434
|
/** Format: date-time */
|
|
1410
1435
|
created_at?: string;
|
|
1411
1436
|
/** Format: date-time */
|
|
@@ -1750,7 +1775,7 @@ export interface components {
|
|
|
1750
1775
|
/** @enum {string} */
|
|
1751
1776
|
WalletProviderType: "googlepay" | "applepay";
|
|
1752
1777
|
/** @enum {string} */
|
|
1753
|
-
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" | "processor_transaction.completed" | "reconciliation.created" | "refund.cancelled" | "refund.created" | "refund.failed" | "refund.pending" | "refund.processing" | "refund.requires_review" | "refund.succeeded" | "void.created" | "void.failed" | "void.pending" | "void.processing" | "void.requires_review" | "void.succeeded";
|
|
1778
|
+
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" | "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";
|
|
1754
1779
|
CreateLegalEntityApplicationInput: {
|
|
1755
1780
|
legal_name?: string;
|
|
1756
1781
|
entity_type?: components["schemas"]["LegalEntityEntityType"];
|
|
@@ -1897,6 +1922,8 @@ export interface components {
|
|
|
1897
1922
|
Merchant: {
|
|
1898
1923
|
/** Format: uuid */
|
|
1899
1924
|
id?: string;
|
|
1925
|
+
/** @description ACH verification threshold in cents. Amounts at or above this require Plaid verification. */
|
|
1926
|
+
ach_threshold?: number;
|
|
1900
1927
|
active?: boolean;
|
|
1901
1928
|
/** Format: uuid */
|
|
1902
1929
|
organization_id?: string;
|
|
@@ -1927,6 +1954,7 @@ export interface components {
|
|
|
1927
1954
|
primary_contact_phone?: string;
|
|
1928
1955
|
purchase_currency?: string;
|
|
1929
1956
|
settlement_currency?: string;
|
|
1957
|
+
state_province?: string;
|
|
1930
1958
|
street_address1?: string;
|
|
1931
1959
|
street_address2?: string;
|
|
1932
1960
|
sub_merchant_id?: string;
|
|
@@ -2590,7 +2618,7 @@ export interface components {
|
|
|
2590
2618
|
XIdempotencyHeader: string;
|
|
2591
2619
|
/** @description The ID of the customer to filter by */
|
|
2592
2620
|
CustomerIdQuery: string;
|
|
2593
|
-
/** @description
|
|
2621
|
+
/** @description Exact email match (case-insensitive). For substring search, use `q`. */
|
|
2594
2622
|
EmailQuery: string;
|
|
2595
2623
|
/** @description The external account ID to filter by */
|
|
2596
2624
|
ExternalAccountIdQuery: string;
|
|
@@ -2612,8 +2640,14 @@ export interface components {
|
|
|
2612
2640
|
PayoutStateQuery: components["schemas"]["PayoutStateType"];
|
|
2613
2641
|
/** @description Number of results per page. */
|
|
2614
2642
|
PerPageQuery: number;
|
|
2615
|
-
/** @description
|
|
2643
|
+
/** @description Exact phone match (normalized to E.164 when possible). For substring search, use `q`. */
|
|
2616
2644
|
PhoneQuery: string;
|
|
2645
|
+
/** @description Exact name match (case-insensitive). For substring search, use `q`. */
|
|
2646
|
+
NameQuery: string;
|
|
2647
|
+
/** @description Exact customer type match (e.g. RegisteredCustomer, GuestCustomer). */
|
|
2648
|
+
CustomerTypeQuery: string;
|
|
2649
|
+
/** @description Substring search across name, email, and phone (case-insensitive). */
|
|
2650
|
+
QQuery: string;
|
|
2617
2651
|
/** @description The ID of the webhook request to filter by */
|
|
2618
2652
|
WebhookRequestIdQuery: string;
|
|
2619
2653
|
};
|
|
@@ -2785,11 +2819,16 @@ export interface operations {
|
|
|
2785
2819
|
page?: components["parameters"]["PageQuery"];
|
|
2786
2820
|
/** @description Number of results per page. */
|
|
2787
2821
|
per_page?: components["parameters"]["PerPageQuery"];
|
|
2788
|
-
/** @description
|
|
2822
|
+
/** @description Exact email match (case-insensitive). For substring search, use `q`. */
|
|
2789
2823
|
email?: components["parameters"]["EmailQuery"];
|
|
2790
|
-
/** @description
|
|
2824
|
+
/** @description Exact phone match (normalized to E.164 when possible). For substring search, use `q`. */
|
|
2791
2825
|
phone?: components["parameters"]["PhoneQuery"];
|
|
2792
|
-
|
|
2826
|
+
/** @description Exact name match (case-insensitive). For substring search, use `q`. */
|
|
2827
|
+
name?: components["parameters"]["NameQuery"];
|
|
2828
|
+
/** @description Exact customer type match (e.g. RegisteredCustomer, GuestCustomer). */
|
|
2829
|
+
type?: components["parameters"]["CustomerTypeQuery"];
|
|
2830
|
+
/** @description Substring search across name, email, and phone (case-insensitive). */
|
|
2831
|
+
q?: components["parameters"]["QQuery"];
|
|
2793
2832
|
};
|
|
2794
2833
|
header?: never;
|
|
2795
2834
|
path?: never;
|
|
@@ -5336,7 +5375,7 @@ export const subscriptionIntervalTypeValues: ReadonlyArray<FlattenedDeepRequired
|
|
|
5336
5375
|
export const subscriptionPlanTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["SubscriptionPlanType"]> = ["fixed", "variable"];
|
|
5337
5376
|
export const transactionSourceTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["TransactionSourceType"]> = ["api", "dashboard", "iframe", "system", "subscription", "admin"];
|
|
5338
5377
|
export const walletProviderTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["WalletProviderType"]> = ["googlepay", "applepay"];
|
|
5339
|
-
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", "processor_transaction.completed", "reconciliation.created", "refund.cancelled", "refund.created", "refund.failed", "refund.pending", "refund.processing", "refund.requires_review", "refund.succeeded", "void.created", "void.failed", "void.pending", "void.processing", "void.requires_review", "void.succeeded"];
|
|
5378
|
+
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", "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"];
|
|
5340
5379
|
export const organizationKindValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Organization"]["kind"]> = ["direct", "payfac"];
|
|
5341
5380
|
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"];
|
|
5342
5381
|
export const achVerificationTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["AchVerification"]["type"]> = ["plaid_auth"];
|