@amos.com/node 0.1.72 → 0.1.73
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 +14 -6
- package/dist/index.d.ts +14 -6
- 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 +16 -8
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1383,7 +1383,6 @@ interface components {
|
|
|
1383
1383
|
/** @description ABA routing number. A nine-digit value must pass the ABA checksum. */
|
|
1384
1384
|
routing_number?: string;
|
|
1385
1385
|
state?: string;
|
|
1386
|
-
token?: string;
|
|
1387
1386
|
/** @description True when the bank account was verified via Plaid Auth. */
|
|
1388
1387
|
verified?: boolean;
|
|
1389
1388
|
/** Format: date-time */
|
|
@@ -1399,6 +1398,7 @@ interface components {
|
|
|
1399
1398
|
email?: string;
|
|
1400
1399
|
name?: string;
|
|
1401
1400
|
phone?: string;
|
|
1401
|
+
/** @description Required when country is CA, PR, GB, or US. Optional for every other country. */
|
|
1402
1402
|
postal_code?: string;
|
|
1403
1403
|
state?: string;
|
|
1404
1404
|
};
|
|
@@ -1440,7 +1440,7 @@ interface components {
|
|
|
1440
1440
|
updated_at?: string;
|
|
1441
1441
|
};
|
|
1442
1442
|
CardProfileInput: {
|
|
1443
|
-
/** @description Cardholder name. Letters, spaces,
|
|
1443
|
+
/** @description Cardholder name as stored on the card. 2-26 characters. Letters, numbers, spaces, periods, commas, apostrophes, hyphens, slashes, and ampersands. */
|
|
1444
1444
|
card_holder_name?: string;
|
|
1445
1445
|
cvc?: string;
|
|
1446
1446
|
encrypted_card_number?: string;
|
|
@@ -1462,7 +1462,7 @@ interface components {
|
|
|
1462
1462
|
avs_check?: string;
|
|
1463
1463
|
avs_check_message?: string | null;
|
|
1464
1464
|
brand?: string;
|
|
1465
|
-
/** @description Cardholder name. Letters, spaces,
|
|
1465
|
+
/** @description Cardholder name as stored on the card. 2-26 characters. Letters, numbers, spaces, periods, commas, apostrophes, hyphens, slashes, and ampersands. */
|
|
1466
1466
|
card_holder_name?: string;
|
|
1467
1467
|
cvc_check?: string;
|
|
1468
1468
|
cvc_check_message?: string | null;
|
|
@@ -1479,6 +1479,8 @@ interface components {
|
|
|
1479
1479
|
token?: string;
|
|
1480
1480
|
wallet_provider?: components["schemas"]["WalletProviderType"];
|
|
1481
1481
|
/** Format: date-time */
|
|
1482
|
+
card_updated_at?: string;
|
|
1483
|
+
/** Format: date-time */
|
|
1482
1484
|
created_at?: string;
|
|
1483
1485
|
/** Format: date-time */
|
|
1484
1486
|
updated_at?: string;
|
|
@@ -1953,7 +1955,7 @@ interface components {
|
|
|
1953
1955
|
/** @enum {string} */
|
|
1954
1956
|
PayoutDirectionType: "credit" | "debit";
|
|
1955
1957
|
/** @enum {string} */
|
|
1956
|
-
PayoutStateType: "pending" | "processing" | "succeeded" | "failed" | "
|
|
1958
|
+
PayoutStateType: "pending" | "processing" | "succeeded" | "failed" | "returned";
|
|
1957
1959
|
/** @enum {string} */
|
|
1958
1960
|
RefundStateType: "pending" | "processing" | "requires_review" | "succeeded" | "cancelled" | "failed";
|
|
1959
1961
|
/** @enum {string} */
|
|
@@ -1965,7 +1967,7 @@ interface components {
|
|
|
1965
1967
|
/** @enum {string} */
|
|
1966
1968
|
WalletProviderType: "googlepay" | "applepay";
|
|
1967
1969
|
/** @enum {string} */
|
|
1968
|
-
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.
|
|
1970
|
+
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";
|
|
1969
1971
|
CreateLegalEntityApplicationInput: {
|
|
1970
1972
|
legal_name?: string;
|
|
1971
1973
|
entity_type?: components["schemas"]["LegalEntityEntityType"];
|
|
@@ -2371,7 +2373,7 @@ interface components {
|
|
|
2371
2373
|
billing_address_attributes?: components["schemas"]["BillingAddressInput"];
|
|
2372
2374
|
card_profile_attributes?: {
|
|
2373
2375
|
brand?: string;
|
|
2374
|
-
/** @description Cardholder name. Letters, spaces,
|
|
2376
|
+
/** @description Cardholder name as stored on the card. 2-26 characters. Letters, numbers, spaces, periods, commas, apostrophes, hyphens, slashes, and ampersands. */
|
|
2375
2377
|
card_holder_name?: string;
|
|
2376
2378
|
cvc?: string;
|
|
2377
2379
|
encrypted_card_number?: string;
|
|
@@ -2494,6 +2496,8 @@ interface components {
|
|
|
2494
2496
|
direction: components["schemas"]["PayoutDirectionType"];
|
|
2495
2497
|
prefix?: string;
|
|
2496
2498
|
addenda?: string | null;
|
|
2499
|
+
/** @description Request same-day ACH settlement. Allowed before 2:00 PM Central on a Federal Reserve banking day. Defaults to false. */
|
|
2500
|
+
same_day?: boolean;
|
|
2497
2501
|
metadata?: components["schemas"]["Metadata"];
|
|
2498
2502
|
};
|
|
2499
2503
|
CreatePayoutRequest: {
|
|
@@ -2509,6 +2513,8 @@ interface components {
|
|
|
2509
2513
|
direction: components["schemas"]["PayoutDirectionType"];
|
|
2510
2514
|
prefix?: string;
|
|
2511
2515
|
addenda?: string | null;
|
|
2516
|
+
/** @description Request same-day ACH settlement. Allowed before 2:00 PM Central on a Federal Reserve banking day. Defaults to false. */
|
|
2517
|
+
same_day?: boolean;
|
|
2512
2518
|
metadata?: components["schemas"]["Metadata"];
|
|
2513
2519
|
};
|
|
2514
2520
|
CreateBulkPayoutsRequest: {
|
|
@@ -2534,6 +2540,8 @@ interface components {
|
|
|
2534
2540
|
payout_batch_id?: string | null;
|
|
2535
2541
|
/** @description ACH return reason code, such as R13, once the payout is returned. */
|
|
2536
2542
|
return_reason_code?: string | null;
|
|
2543
|
+
/** @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. */
|
|
2544
|
+
same_day?: boolean;
|
|
2537
2545
|
state?: components["schemas"]["PayoutStateType"];
|
|
2538
2546
|
/** Format: date-time */
|
|
2539
2547
|
created_at?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1383,7 +1383,6 @@ interface components {
|
|
|
1383
1383
|
/** @description ABA routing number. A nine-digit value must pass the ABA checksum. */
|
|
1384
1384
|
routing_number?: string;
|
|
1385
1385
|
state?: string;
|
|
1386
|
-
token?: string;
|
|
1387
1386
|
/** @description True when the bank account was verified via Plaid Auth. */
|
|
1388
1387
|
verified?: boolean;
|
|
1389
1388
|
/** Format: date-time */
|
|
@@ -1399,6 +1398,7 @@ interface components {
|
|
|
1399
1398
|
email?: string;
|
|
1400
1399
|
name?: string;
|
|
1401
1400
|
phone?: string;
|
|
1401
|
+
/** @description Required when country is CA, PR, GB, or US. Optional for every other country. */
|
|
1402
1402
|
postal_code?: string;
|
|
1403
1403
|
state?: string;
|
|
1404
1404
|
};
|
|
@@ -1440,7 +1440,7 @@ interface components {
|
|
|
1440
1440
|
updated_at?: string;
|
|
1441
1441
|
};
|
|
1442
1442
|
CardProfileInput: {
|
|
1443
|
-
/** @description Cardholder name. Letters, spaces,
|
|
1443
|
+
/** @description Cardholder name as stored on the card. 2-26 characters. Letters, numbers, spaces, periods, commas, apostrophes, hyphens, slashes, and ampersands. */
|
|
1444
1444
|
card_holder_name?: string;
|
|
1445
1445
|
cvc?: string;
|
|
1446
1446
|
encrypted_card_number?: string;
|
|
@@ -1462,7 +1462,7 @@ interface components {
|
|
|
1462
1462
|
avs_check?: string;
|
|
1463
1463
|
avs_check_message?: string | null;
|
|
1464
1464
|
brand?: string;
|
|
1465
|
-
/** @description Cardholder name. Letters, spaces,
|
|
1465
|
+
/** @description Cardholder name as stored on the card. 2-26 characters. Letters, numbers, spaces, periods, commas, apostrophes, hyphens, slashes, and ampersands. */
|
|
1466
1466
|
card_holder_name?: string;
|
|
1467
1467
|
cvc_check?: string;
|
|
1468
1468
|
cvc_check_message?: string | null;
|
|
@@ -1479,6 +1479,8 @@ interface components {
|
|
|
1479
1479
|
token?: string;
|
|
1480
1480
|
wallet_provider?: components["schemas"]["WalletProviderType"];
|
|
1481
1481
|
/** Format: date-time */
|
|
1482
|
+
card_updated_at?: string;
|
|
1483
|
+
/** Format: date-time */
|
|
1482
1484
|
created_at?: string;
|
|
1483
1485
|
/** Format: date-time */
|
|
1484
1486
|
updated_at?: string;
|
|
@@ -1953,7 +1955,7 @@ interface components {
|
|
|
1953
1955
|
/** @enum {string} */
|
|
1954
1956
|
PayoutDirectionType: "credit" | "debit";
|
|
1955
1957
|
/** @enum {string} */
|
|
1956
|
-
PayoutStateType: "pending" | "processing" | "succeeded" | "failed" | "
|
|
1958
|
+
PayoutStateType: "pending" | "processing" | "succeeded" | "failed" | "returned";
|
|
1957
1959
|
/** @enum {string} */
|
|
1958
1960
|
RefundStateType: "pending" | "processing" | "requires_review" | "succeeded" | "cancelled" | "failed";
|
|
1959
1961
|
/** @enum {string} */
|
|
@@ -1965,7 +1967,7 @@ interface components {
|
|
|
1965
1967
|
/** @enum {string} */
|
|
1966
1968
|
WalletProviderType: "googlepay" | "applepay";
|
|
1967
1969
|
/** @enum {string} */
|
|
1968
|
-
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.
|
|
1970
|
+
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";
|
|
1969
1971
|
CreateLegalEntityApplicationInput: {
|
|
1970
1972
|
legal_name?: string;
|
|
1971
1973
|
entity_type?: components["schemas"]["LegalEntityEntityType"];
|
|
@@ -2371,7 +2373,7 @@ interface components {
|
|
|
2371
2373
|
billing_address_attributes?: components["schemas"]["BillingAddressInput"];
|
|
2372
2374
|
card_profile_attributes?: {
|
|
2373
2375
|
brand?: string;
|
|
2374
|
-
/** @description Cardholder name. Letters, spaces,
|
|
2376
|
+
/** @description Cardholder name as stored on the card. 2-26 characters. Letters, numbers, spaces, periods, commas, apostrophes, hyphens, slashes, and ampersands. */
|
|
2375
2377
|
card_holder_name?: string;
|
|
2376
2378
|
cvc?: string;
|
|
2377
2379
|
encrypted_card_number?: string;
|
|
@@ -2494,6 +2496,8 @@ interface components {
|
|
|
2494
2496
|
direction: components["schemas"]["PayoutDirectionType"];
|
|
2495
2497
|
prefix?: string;
|
|
2496
2498
|
addenda?: string | null;
|
|
2499
|
+
/** @description Request same-day ACH settlement. Allowed before 2:00 PM Central on a Federal Reserve banking day. Defaults to false. */
|
|
2500
|
+
same_day?: boolean;
|
|
2497
2501
|
metadata?: components["schemas"]["Metadata"];
|
|
2498
2502
|
};
|
|
2499
2503
|
CreatePayoutRequest: {
|
|
@@ -2509,6 +2513,8 @@ interface components {
|
|
|
2509
2513
|
direction: components["schemas"]["PayoutDirectionType"];
|
|
2510
2514
|
prefix?: string;
|
|
2511
2515
|
addenda?: string | null;
|
|
2516
|
+
/** @description Request same-day ACH settlement. Allowed before 2:00 PM Central on a Federal Reserve banking day. Defaults to false. */
|
|
2517
|
+
same_day?: boolean;
|
|
2512
2518
|
metadata?: components["schemas"]["Metadata"];
|
|
2513
2519
|
};
|
|
2514
2520
|
CreateBulkPayoutsRequest: {
|
|
@@ -2534,6 +2540,8 @@ interface components {
|
|
|
2534
2540
|
payout_batch_id?: string | null;
|
|
2535
2541
|
/** @description ACH return reason code, such as R13, once the payout is returned. */
|
|
2536
2542
|
return_reason_code?: string | null;
|
|
2543
|
+
/** @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. */
|
|
2544
|
+
same_day?: boolean;
|
|
2537
2545
|
state?: components["schemas"]["PayoutStateType"];
|
|
2538
2546
|
/** Format: date-time */
|
|
2539
2547
|
created_at?: string;
|
package/dist/index.js
CHANGED
|
@@ -112,13 +112,13 @@ var allowedBankAccountPaymentMethodTypeValues = ["bank_account"];
|
|
|
112
112
|
var allowedGooglePayPaymentMethodTypeValues = ["googlepay"];
|
|
113
113
|
var allowedApplePayPaymentMethodTypeValues = ["applepay"];
|
|
114
114
|
var payoutDirectionTypeValues = ["credit", "debit"];
|
|
115
|
-
var payoutStateTypeValues = ["pending", "processing", "succeeded", "failed", "
|
|
115
|
+
var payoutStateTypeValues = ["pending", "processing", "succeeded", "failed", "returned"];
|
|
116
116
|
var refundStateTypeValues = ["pending", "processing", "requires_review", "succeeded", "cancelled", "failed"];
|
|
117
117
|
var subscriptionIntervalTypeValues = ["day", "week", "month", "year"];
|
|
118
118
|
var subscriptionPlanTypeValues = ["fixed", "variable"];
|
|
119
119
|
var transactionSourceTypeValues = ["api", "dashboard", "iframe", "system", "subscription", "admin"];
|
|
120
120
|
var walletProviderTypeValues = ["googlepay", "applepay"];
|
|
121
|
-
var webhookEventTypeValues = ["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.
|
|
121
|
+
var webhookEventTypeValues = ["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"];
|
|
122
122
|
var organizationKindValues = ["direct", "payfac"];
|
|
123
123
|
var originApplepayRegistrationStateTypeValues = ["pending", "skipped", "registered", "failed"];
|
|
124
124
|
var paymentIntentStateValues = ["requires_payment_method", "requires_confirmation", "requires_capture", "processing_authorization", "processing_capture", "processing_sale", "requires_review", "succeeded", "cancelled", "errored_authorization", "errored_capture", "errored_sale"];
|