@amos.com/node 0.1.43 → 0.1.45
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 +46 -22
- package/dist/index.d.ts +46 -22
- package/dist/index.js +0 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +0 -4
- package/dist/index.mjs.map +1 -1
- package/openapi/schema.ts +45 -21
- 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 */
|
|
@@ -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;
|
|
@@ -2025,21 +2053,11 @@ export interface components {
|
|
|
2025
2053
|
/** @enum {string} */
|
|
2026
2054
|
state?: "requires_payment_method" | "requires_confirmation" | "requires_capture" | "processing_authorization" | "processing_capture" | "processing_sale" | "requires_review" | "succeeded" | "cancelled" | "errored_authorization" | "errored_capture" | "errored_sale";
|
|
2027
2055
|
statement_descriptor?: string;
|
|
2028
|
-
/** @description True when the intent amount meets or exceeds the configured ACH verification threshold. */
|
|
2029
|
-
requires_ach_verification?: boolean;
|
|
2030
|
-
ach_verification?: components["schemas"]["AchVerification"];
|
|
2031
2056
|
/** Format: date-time */
|
|
2032
2057
|
created_at?: string;
|
|
2033
2058
|
/** Format: date-time */
|
|
2034
2059
|
updated_at?: string;
|
|
2035
2060
|
};
|
|
2036
|
-
/** @description Instructions for the embed client to complete ACH verification via Plaid Link. */
|
|
2037
|
-
AchVerification: {
|
|
2038
|
-
/** @enum {string} */
|
|
2039
|
-
type: "plaid_auth";
|
|
2040
|
-
/** @description Short-lived Plaid Link token used to open Link in the embed client. */
|
|
2041
|
-
link_token: string;
|
|
2042
|
-
};
|
|
2043
2061
|
/** @description How this payment intent relates to a recurring series. Use `initial` for the first charge that establishes the series. Use `network_transaction_id` and/or `transaction_link_id` for subsequent merchant-initiated charges. Do not combine `initial` with network identifiers on the same request. */
|
|
2044
2062
|
RecurringPayment: {
|
|
2045
2063
|
/** @description When true, marks the first payment in a recurring series so the processor can treat it as an initial recurring / credential-on-file setup transaction. */
|
|
@@ -2590,7 +2608,7 @@ export interface components {
|
|
|
2590
2608
|
XIdempotencyHeader: string;
|
|
2591
2609
|
/** @description The ID of the customer to filter by */
|
|
2592
2610
|
CustomerIdQuery: string;
|
|
2593
|
-
/** @description
|
|
2611
|
+
/** @description Exact email match (case-insensitive). For substring search, use `q`. */
|
|
2594
2612
|
EmailQuery: string;
|
|
2595
2613
|
/** @description The external account ID to filter by */
|
|
2596
2614
|
ExternalAccountIdQuery: string;
|
|
@@ -2612,8 +2630,14 @@ export interface components {
|
|
|
2612
2630
|
PayoutStateQuery: components["schemas"]["PayoutStateType"];
|
|
2613
2631
|
/** @description Number of results per page. */
|
|
2614
2632
|
PerPageQuery: number;
|
|
2615
|
-
/** @description
|
|
2633
|
+
/** @description Exact phone match (normalized to E.164 when possible). For substring search, use `q`. */
|
|
2616
2634
|
PhoneQuery: string;
|
|
2635
|
+
/** @description Exact name match (case-insensitive). For substring search, use `q`. */
|
|
2636
|
+
NameQuery: string;
|
|
2637
|
+
/** @description Exact customer type match (e.g. RegisteredCustomer, GuestCustomer). */
|
|
2638
|
+
CustomerTypeQuery: string;
|
|
2639
|
+
/** @description Substring search across name, email, and phone (case-insensitive). */
|
|
2640
|
+
QQuery: string;
|
|
2617
2641
|
/** @description The ID of the webhook request to filter by */
|
|
2618
2642
|
WebhookRequestIdQuery: string;
|
|
2619
2643
|
};
|
|
@@ -2785,11 +2809,16 @@ export interface operations {
|
|
|
2785
2809
|
page?: components["parameters"]["PageQuery"];
|
|
2786
2810
|
/** @description Number of results per page. */
|
|
2787
2811
|
per_page?: components["parameters"]["PerPageQuery"];
|
|
2788
|
-
/** @description
|
|
2812
|
+
/** @description Exact email match (case-insensitive). For substring search, use `q`. */
|
|
2789
2813
|
email?: components["parameters"]["EmailQuery"];
|
|
2790
|
-
/** @description
|
|
2814
|
+
/** @description Exact phone match (normalized to E.164 when possible). For substring search, use `q`. */
|
|
2791
2815
|
phone?: components["parameters"]["PhoneQuery"];
|
|
2792
|
-
|
|
2816
|
+
/** @description Exact name match (case-insensitive). For substring search, use `q`. */
|
|
2817
|
+
name?: components["parameters"]["NameQuery"];
|
|
2818
|
+
/** @description Exact customer type match (e.g. RegisteredCustomer, GuestCustomer). */
|
|
2819
|
+
type?: components["parameters"]["CustomerTypeQuery"];
|
|
2820
|
+
/** @description Substring search across name, email, and phone (case-insensitive). */
|
|
2821
|
+
q?: components["parameters"]["QQuery"];
|
|
2793
2822
|
};
|
|
2794
2823
|
header?: never;
|
|
2795
2824
|
path?: never;
|
|
@@ -3641,10 +3670,7 @@ export interface operations {
|
|
|
3641
3670
|
};
|
|
3642
3671
|
GetEmbedPaymentIntent: {
|
|
3643
3672
|
parameters: {
|
|
3644
|
-
query?:
|
|
3645
|
-
/** @description When set to bank_account and ACH verification is required for the intent amount, the response includes ach_verification.link_token for Plaid Link. */
|
|
3646
|
-
payment_method_type?: "bank_account";
|
|
3647
|
-
};
|
|
3673
|
+
query?: never;
|
|
3648
3674
|
header?: never;
|
|
3649
3675
|
path: {
|
|
3650
3676
|
/** @description The ID of the payment intent to retrieve */
|
|
@@ -5301,7 +5327,6 @@ type ReadonlyArray<T> = [
|
|
|
5301
5327
|
] extends [
|
|
5302
5328
|
unknown[]
|
|
5303
5329
|
] ? Readonly<Exclude<T, undefined>> : Readonly<Exclude<T, undefined>[]>;
|
|
5304
|
-
export const pathsEmbedPayment_intentsIdGetParametersQueryPayment_method_typeValues: ReadonlyArray<FlattenedDeepRequired<paths>["/embed/payment_intents/{id}"]["get"]["parameters"]["query"]["payment_method_type"]> = ["bank_account"];
|
|
5305
5330
|
export const bankAccountProfileFailure_reasonValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["BankAccountProfile"]["failure_reason"]> = ["activation_failed", "processing_error", "vault_failed", "insufficient_funds", "verification_failed"];
|
|
5306
5331
|
export const cardProfileFailure_reasonValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["CardProfile"]["failure_reason"]> = ["authorization_failed", "avs_blocked", "brand_not_allowed", "brand_not_found", "cvc_blocked", "processing_error", "vault_failed"];
|
|
5307
5332
|
export const chargeAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["allowed_reverse_action"]> = ["void", "refund"];
|
|
@@ -5339,7 +5364,6 @@ export const walletProviderTypeValues: ReadonlyArray<FlattenedDeepRequired<compo
|
|
|
5339
5364
|
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
5365
|
export const organizationKindValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Organization"]["kind"]> = ["direct", "payfac"];
|
|
5341
5366
|
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
|
-
export const achVerificationTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["AchVerification"]["type"]> = ["plaid_auth"];
|
|
5343
5367
|
export const processorTransactionPayment_transaction_typeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ProcessorTransaction"]["payment_transaction_type"]> = ["charge", "refund", "void"];
|
|
5344
5368
|
export const processorTransactionTransaction_typeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ProcessorTransaction"]["transaction_type"]> = ["authorization", "authorization_reversal", "capture", "credit", "echeck_credit", "echeck_sale", "echeck_void", "sale", "void"];
|
|
5345
5369
|
export const refundAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Refund"]["allowed_reverse_action"]> = ["void"];
|