@amos.com/node 0.1.72 → 0.1.74
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 +19 -7
- package/dist/index.d.ts +19 -7
- 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 +21 -9
- package/package.json +1 -1
package/openapi/schema.ts
CHANGED
|
@@ -1380,7 +1380,6 @@ export interface components {
|
|
|
1380
1380
|
/** @description ABA routing number. A nine-digit value must pass the ABA checksum. */
|
|
1381
1381
|
routing_number?: string;
|
|
1382
1382
|
state?: string;
|
|
1383
|
-
token?: string;
|
|
1384
1383
|
/** @description True when the bank account was verified via Plaid Auth. */
|
|
1385
1384
|
verified?: boolean;
|
|
1386
1385
|
/** Format: date-time */
|
|
@@ -1396,6 +1395,7 @@ export interface components {
|
|
|
1396
1395
|
email?: string;
|
|
1397
1396
|
name?: string;
|
|
1398
1397
|
phone?: string;
|
|
1398
|
+
/** @description Required when country is CA, PR, GB, or US. Optional for every other country. */
|
|
1399
1399
|
postal_code?: string;
|
|
1400
1400
|
state?: string;
|
|
1401
1401
|
};
|
|
@@ -1437,7 +1437,7 @@ export interface components {
|
|
|
1437
1437
|
updated_at?: string;
|
|
1438
1438
|
};
|
|
1439
1439
|
CardProfileInput: {
|
|
1440
|
-
/** @description Cardholder name. Letters, spaces,
|
|
1440
|
+
/** @description Cardholder name as stored on the card. 2-26 characters. Letters, numbers, spaces, periods, commas, apostrophes, hyphens, slashes, and ampersands. */
|
|
1441
1441
|
card_holder_name?: string;
|
|
1442
1442
|
cvc?: string;
|
|
1443
1443
|
encrypted_card_number?: string;
|
|
@@ -1459,7 +1459,7 @@ export interface components {
|
|
|
1459
1459
|
avs_check?: string;
|
|
1460
1460
|
avs_check_message?: string | null;
|
|
1461
1461
|
brand?: string;
|
|
1462
|
-
/** @description Cardholder name. Letters, spaces,
|
|
1462
|
+
/** @description Cardholder name as stored on the card. 2-26 characters. Letters, numbers, spaces, periods, commas, apostrophes, hyphens, slashes, and ampersands. */
|
|
1463
1463
|
card_holder_name?: string;
|
|
1464
1464
|
cvc_check?: string;
|
|
1465
1465
|
cvc_check_message?: string | null;
|
|
@@ -1473,9 +1473,15 @@ export interface components {
|
|
|
1473
1473
|
last4?: string;
|
|
1474
1474
|
state?: string;
|
|
1475
1475
|
three_d_secure_supported?: boolean | null;
|
|
1476
|
-
|
|
1476
|
+
/**
|
|
1477
|
+
* Format: uuid
|
|
1478
|
+
* @description Vault UUID for this card. Used for charges and Vault callbacks.
|
|
1479
|
+
*/
|
|
1480
|
+
vault_token?: string;
|
|
1477
1481
|
wallet_provider?: components["schemas"]["WalletProviderType"];
|
|
1478
1482
|
/** Format: date-time */
|
|
1483
|
+
card_updated_at?: string;
|
|
1484
|
+
/** Format: date-time */
|
|
1479
1485
|
created_at?: string;
|
|
1480
1486
|
/** Format: date-time */
|
|
1481
1487
|
updated_at?: string;
|
|
@@ -1950,7 +1956,7 @@ export interface components {
|
|
|
1950
1956
|
/** @enum {string} */
|
|
1951
1957
|
PayoutDirectionType: "credit" | "debit";
|
|
1952
1958
|
/** @enum {string} */
|
|
1953
|
-
PayoutStateType: "pending" | "processing" | "succeeded" | "failed" | "
|
|
1959
|
+
PayoutStateType: "pending" | "processing" | "succeeded" | "failed" | "returned";
|
|
1954
1960
|
/** @enum {string} */
|
|
1955
1961
|
RefundStateType: "pending" | "processing" | "requires_review" | "succeeded" | "cancelled" | "failed";
|
|
1956
1962
|
/** @enum {string} */
|
|
@@ -1962,7 +1968,7 @@ export interface components {
|
|
|
1962
1968
|
/** @enum {string} */
|
|
1963
1969
|
WalletProviderType: "googlepay" | "applepay";
|
|
1964
1970
|
/** @enum {string} */
|
|
1965
|
-
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" | "payment_method.updated" | "payout.
|
|
1971
|
+
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" | "payment_method.updated" | "payout.failed" | "payout.notification_of_change" | "payout.pending" | "payout.processing" | "payout.returned" | "payout.same_day_missed" | "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";
|
|
1966
1972
|
CreateLegalEntityApplicationInput: {
|
|
1967
1973
|
legal_name?: string;
|
|
1968
1974
|
entity_type?: components["schemas"]["LegalEntityEntityType"];
|
|
@@ -2368,7 +2374,7 @@ export interface components {
|
|
|
2368
2374
|
billing_address_attributes?: components["schemas"]["BillingAddressInput"];
|
|
2369
2375
|
card_profile_attributes?: {
|
|
2370
2376
|
brand?: string;
|
|
2371
|
-
/** @description Cardholder name. Letters, spaces,
|
|
2377
|
+
/** @description Cardholder name as stored on the card. 2-26 characters. Letters, numbers, spaces, periods, commas, apostrophes, hyphens, slashes, and ampersands. */
|
|
2372
2378
|
card_holder_name?: string;
|
|
2373
2379
|
cvc?: string;
|
|
2374
2380
|
encrypted_card_number?: string;
|
|
@@ -2491,6 +2497,8 @@ export interface components {
|
|
|
2491
2497
|
direction: components["schemas"]["PayoutDirectionType"];
|
|
2492
2498
|
prefix?: string;
|
|
2493
2499
|
addenda?: string | null;
|
|
2500
|
+
/** @description Request same-day ACH settlement. Allowed before 2:00 PM Central on a Federal Reserve banking day. Defaults to false. */
|
|
2501
|
+
same_day?: boolean;
|
|
2494
2502
|
metadata?: components["schemas"]["Metadata"];
|
|
2495
2503
|
};
|
|
2496
2504
|
CreatePayoutRequest: {
|
|
@@ -2506,6 +2514,8 @@ export interface components {
|
|
|
2506
2514
|
direction: components["schemas"]["PayoutDirectionType"];
|
|
2507
2515
|
prefix?: string;
|
|
2508
2516
|
addenda?: string | null;
|
|
2517
|
+
/** @description Request same-day ACH settlement. Allowed before 2:00 PM Central on a Federal Reserve banking day. Defaults to false. */
|
|
2518
|
+
same_day?: boolean;
|
|
2509
2519
|
metadata?: components["schemas"]["Metadata"];
|
|
2510
2520
|
};
|
|
2511
2521
|
CreateBulkPayoutsRequest: {
|
|
@@ -2531,6 +2541,8 @@ export interface components {
|
|
|
2531
2541
|
payout_batch_id?: string | null;
|
|
2532
2542
|
/** @description ACH return reason code, such as R13, once the payout is returned. */
|
|
2533
2543
|
return_reason_code?: string | null;
|
|
2544
|
+
/** @description True when the payout is still requested for same-day settlement. Set to false when a missed same-day payout is included in a next-day batch. */
|
|
2545
|
+
same_day?: boolean;
|
|
2534
2546
|
state?: components["schemas"]["PayoutStateType"];
|
|
2535
2547
|
/** Format: date-time */
|
|
2536
2548
|
created_at?: string;
|
|
@@ -6198,13 +6210,13 @@ export const allowedBankAccountPaymentMethodTypeValues: ReadonlyArray<FlattenedD
|
|
|
6198
6210
|
export const allowedGooglePayPaymentMethodTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["AllowedGooglePayPaymentMethod"]["type"]> = ["googlepay"];
|
|
6199
6211
|
export const allowedApplePayPaymentMethodTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["AllowedApplePayPaymentMethod"]["type"]> = ["applepay"];
|
|
6200
6212
|
export const payoutDirectionTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PayoutDirectionType"]> = ["credit", "debit"];
|
|
6201
|
-
export const payoutStateTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PayoutStateType"]> = ["pending", "processing", "succeeded", "failed", "
|
|
6213
|
+
export const payoutStateTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PayoutStateType"]> = ["pending", "processing", "succeeded", "failed", "returned"];
|
|
6202
6214
|
export const refundStateTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["RefundStateType"]> = ["pending", "processing", "requires_review", "succeeded", "cancelled", "failed"];
|
|
6203
6215
|
export const subscriptionIntervalTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["SubscriptionIntervalType"]> = ["day", "week", "month", "year"];
|
|
6204
6216
|
export const subscriptionPlanTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["SubscriptionPlanType"]> = ["fixed", "variable"];
|
|
6205
6217
|
export const transactionSourceTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["TransactionSourceType"]> = ["api", "dashboard", "iframe", "system", "subscription", "admin"];
|
|
6206
6218
|
export const walletProviderTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["WalletProviderType"]> = ["googlepay", "applepay"];
|
|
6207
|
-
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", "payment_method.updated", "payout.
|
|
6219
|
+
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", "payment_method.updated", "payout.failed", "payout.notification_of_change", "payout.pending", "payout.processing", "payout.returned", "payout.same_day_missed", "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"];
|
|
6208
6220
|
export const organizationKindValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Organization"]["kind"]> = ["direct", "payfac"];
|
|
6209
6221
|
export const originApplepayRegistrationStateTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["OriginApplepayRegistrationStateType"]> = ["pending", "skipped", "registered", "failed"];
|
|
6210
6222
|
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"];
|