@amos.com/node 0.1.74 → 0.1.76
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 +20 -84
- package/dist/index.d.ts +20 -84
- package/dist/index.js +3 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -4
- package/dist/index.mjs.map +1 -1
- package/openapi/schema.ts +19 -83
- package/package.json +1 -1
package/openapi/schema.ts
CHANGED
|
@@ -715,8 +715,7 @@ export interface paths {
|
|
|
715
715
|
*/
|
|
716
716
|
get: operations["ListPaymentMethods"];
|
|
717
717
|
put?: never;
|
|
718
|
-
|
|
719
|
-
post: operations["CreatePaymentMethod"];
|
|
718
|
+
post?: never;
|
|
720
719
|
delete?: never;
|
|
721
720
|
options?: never;
|
|
722
721
|
head?: never;
|
|
@@ -1373,8 +1372,6 @@ export interface components {
|
|
|
1373
1372
|
account_holder_type?: string;
|
|
1374
1373
|
account_type?: string;
|
|
1375
1374
|
bank_name?: string;
|
|
1376
|
-
/** @enum {string|null} */
|
|
1377
|
-
failure_reason?: "activation_failed" | "processing_error" | "vault_failed" | "insufficient_funds" | "verification_failed" | null;
|
|
1378
1375
|
fingerprint?: string | null;
|
|
1379
1376
|
last4?: string;
|
|
1380
1377
|
/** @description ABA routing number. A nine-digit value must pass the ABA checksum. */
|
|
@@ -1437,8 +1434,8 @@ export interface components {
|
|
|
1437
1434
|
updated_at?: string;
|
|
1438
1435
|
};
|
|
1439
1436
|
CardProfileInput: {
|
|
1440
|
-
/** @description Cardholder name as stored on the card. 2-26 characters. Letters, numbers, spaces, periods, commas, apostrophes, hyphens, slashes, and ampersands. */
|
|
1441
|
-
card_holder_name?: string;
|
|
1437
|
+
/** @description Cardholder name as stored on the card. 2-26 characters when present. Letters, numbers, spaces, periods, commas, apostrophes, hyphens, slashes, and ampersands. */
|
|
1438
|
+
card_holder_name?: string | null;
|
|
1442
1439
|
cvc?: string;
|
|
1443
1440
|
encrypted_card_number?: string;
|
|
1444
1441
|
exp_month?: number;
|
|
@@ -1459,14 +1456,12 @@ export interface components {
|
|
|
1459
1456
|
avs_check?: string;
|
|
1460
1457
|
avs_check_message?: string | null;
|
|
1461
1458
|
brand?: string;
|
|
1462
|
-
/** @description Cardholder name as stored on the card. 2-26 characters. Letters, numbers, spaces, periods, commas, apostrophes, hyphens, slashes, and ampersands. */
|
|
1463
|
-
card_holder_name?: string;
|
|
1459
|
+
/** @description Cardholder name as stored on the card. 2-26 characters when present. Letters, numbers, spaces, periods, commas, apostrophes, hyphens, slashes, and ampersands. */
|
|
1460
|
+
card_holder_name?: string | null;
|
|
1464
1461
|
cvc_check?: string;
|
|
1465
1462
|
cvc_check_message?: string | null;
|
|
1466
1463
|
exp_month?: number;
|
|
1467
1464
|
exp_year?: number;
|
|
1468
|
-
/** @enum {string|null} */
|
|
1469
|
-
failure_reason?: "authorization_failed" | "avs_blocked" | "brand_not_allowed" | "brand_not_found" | "cvc_blocked" | "processing_error" | "vault_failed" | null;
|
|
1470
1465
|
first6?: string;
|
|
1471
1466
|
funding?: string | null;
|
|
1472
1467
|
fingerprint?: string | null;
|
|
@@ -1516,6 +1511,7 @@ export interface components {
|
|
|
1516
1511
|
/** Format: uuid */
|
|
1517
1512
|
customer_id?: string;
|
|
1518
1513
|
description?: string | null;
|
|
1514
|
+
failure?: components["schemas"]["PaymentFailure"] | null;
|
|
1519
1515
|
/** @enum {string|null} */
|
|
1520
1516
|
allowed_reverse_action?: "void" | "refund" | null;
|
|
1521
1517
|
metadata?: components["schemas"]["Metadata"];
|
|
@@ -1963,6 +1959,16 @@ export interface components {
|
|
|
1963
1959
|
SubscriptionIntervalType: "day" | "week" | "month" | "year";
|
|
1964
1960
|
/** @enum {string} */
|
|
1965
1961
|
SubscriptionPlanType: "fixed" | "variable";
|
|
1962
|
+
/** @description Why a transaction failed, in terms that are the same for every processor. */
|
|
1963
|
+
PaymentFailure: {
|
|
1964
|
+
/** @description Stable failure code, for example insufficient_funds, issuer_declined or incorrect_cvc. New codes may be added over time, so treat unknown values as generic_decline. */
|
|
1965
|
+
code: string;
|
|
1966
|
+
type: components["schemas"]["PaymentFailureType"];
|
|
1967
|
+
/** @description Human readable explanation. Safe to show to the merchant. */
|
|
1968
|
+
message: string;
|
|
1969
|
+
};
|
|
1970
|
+
/** @enum {string} */
|
|
1971
|
+
PaymentFailureType: "payment_method_error" | "processing_error";
|
|
1966
1972
|
/** @enum {string} */
|
|
1967
1973
|
TransactionSourceType: "api" | "dashboard" | "iframe" | "system" | "subscription" | "admin";
|
|
1968
1974
|
/** @enum {string} */
|
|
@@ -2367,44 +2373,6 @@ export interface components {
|
|
|
2367
2373
|
/** Format: date-time */
|
|
2368
2374
|
updated_at?: string;
|
|
2369
2375
|
};
|
|
2370
|
-
CreatePaymentMethodInput: {
|
|
2371
|
-
/** Format: uuid */
|
|
2372
|
-
customer_id?: string;
|
|
2373
|
-
metadata?: components["schemas"]["Metadata"];
|
|
2374
|
-
billing_address_attributes?: components["schemas"]["BillingAddressInput"];
|
|
2375
|
-
card_profile_attributes?: {
|
|
2376
|
-
brand?: string;
|
|
2377
|
-
/** @description Cardholder name as stored on the card. 2-26 characters. Letters, numbers, spaces, periods, commas, apostrophes, hyphens, slashes, and ampersands. */
|
|
2378
|
-
card_holder_name?: string;
|
|
2379
|
-
cvc?: string;
|
|
2380
|
-
encrypted_card_number?: string;
|
|
2381
|
-
exp_month?: number;
|
|
2382
|
-
exp_year?: number;
|
|
2383
|
-
first6?: string;
|
|
2384
|
-
last4?: string;
|
|
2385
|
-
pan_type?: string;
|
|
2386
|
-
token?: string;
|
|
2387
|
-
wallet_payload?: string;
|
|
2388
|
-
wallet_provider?: components["schemas"]["WalletProviderType"];
|
|
2389
|
-
};
|
|
2390
|
-
bank_account_profile_attributes?: {
|
|
2391
|
-
last4?: string;
|
|
2392
|
-
/** @description Account holder name. Letters, spaces, hyphens, apostrophes, and periods only. */
|
|
2393
|
-
account_holder_name?: string;
|
|
2394
|
-
account_holder_type?: string;
|
|
2395
|
-
account_type?: string;
|
|
2396
|
-
bank_name?: string;
|
|
2397
|
-
currency?: string;
|
|
2398
|
-
/** @description Bank account number. Stored encrypted at rest and not returned in API responses. */
|
|
2399
|
-
account_number?: string;
|
|
2400
|
-
token?: string;
|
|
2401
|
-
/** @description ABA routing number. A nine-digit value must pass the ABA checksum. */
|
|
2402
|
-
routing_number?: string;
|
|
2403
|
-
};
|
|
2404
|
-
};
|
|
2405
|
-
CreatePaymentMethodRequest: {
|
|
2406
|
-
payment_method: components["schemas"]["CreatePaymentMethodInput"];
|
|
2407
|
-
};
|
|
2408
2376
|
UpdateMerchantInput: {
|
|
2409
2377
|
active?: boolean;
|
|
2410
2378
|
business_category?: components["schemas"]["MerchantBusinessCategoryType"];
|
|
@@ -2645,6 +2613,7 @@ export interface components {
|
|
|
2645
2613
|
/** Format: uuid */
|
|
2646
2614
|
customer_id?: string;
|
|
2647
2615
|
description?: string | null;
|
|
2616
|
+
failure?: components["schemas"]["PaymentFailure"] | null;
|
|
2648
2617
|
metadata?: components["schemas"]["Metadata"];
|
|
2649
2618
|
/** Format: uuid */
|
|
2650
2619
|
original_transaction_id?: string;
|
|
@@ -2883,6 +2852,7 @@ export interface components {
|
|
|
2883
2852
|
/** Format: uuid */
|
|
2884
2853
|
customer_id?: string;
|
|
2885
2854
|
description?: string | null;
|
|
2855
|
+
failure?: components["schemas"]["PaymentFailure"] | null;
|
|
2886
2856
|
metadata?: components["schemas"]["Metadata"];
|
|
2887
2857
|
/** Format: uuid */
|
|
2888
2858
|
original_transaction_id?: string;
|
|
@@ -4786,39 +4756,6 @@ export interface operations {
|
|
|
4786
4756
|
};
|
|
4787
4757
|
};
|
|
4788
4758
|
};
|
|
4789
|
-
CreatePaymentMethod: {
|
|
4790
|
-
parameters: {
|
|
4791
|
-
query?: never;
|
|
4792
|
-
header?: never;
|
|
4793
|
-
path?: never;
|
|
4794
|
-
cookie?: never;
|
|
4795
|
-
};
|
|
4796
|
-
requestBody: {
|
|
4797
|
-
content: {
|
|
4798
|
-
"application/json": components["schemas"]["CreatePaymentMethodRequest"];
|
|
4799
|
-
};
|
|
4800
|
-
};
|
|
4801
|
-
responses: {
|
|
4802
|
-
/** @description Payment method created successfully */
|
|
4803
|
-
201: {
|
|
4804
|
-
headers: {
|
|
4805
|
-
[name: string]: unknown;
|
|
4806
|
-
};
|
|
4807
|
-
content: {
|
|
4808
|
-
"application/json": components["schemas"]["PaymentMethod"];
|
|
4809
|
-
};
|
|
4810
|
-
};
|
|
4811
|
-
/** @description Unprocessable entity */
|
|
4812
|
-
422: {
|
|
4813
|
-
headers: {
|
|
4814
|
-
[name: string]: unknown;
|
|
4815
|
-
};
|
|
4816
|
-
content: {
|
|
4817
|
-
"application/json": components["schemas"]["Error"];
|
|
4818
|
-
};
|
|
4819
|
-
};
|
|
4820
|
-
};
|
|
4821
|
-
};
|
|
4822
4759
|
GetPaymentMethod: {
|
|
4823
4760
|
parameters: {
|
|
4824
4761
|
query?: never;
|
|
@@ -6181,8 +6118,6 @@ type ReadonlyArray<T> = [
|
|
|
6181
6118
|
] extends [
|
|
6182
6119
|
unknown[]
|
|
6183
6120
|
] ? Readonly<Exclude<T, undefined>> : Readonly<Exclude<T, undefined>[]>;
|
|
6184
|
-
export const bankAccountProfileFailure_reasonValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["BankAccountProfile"]["failure_reason"]> = ["activation_failed", "processing_error", "vault_failed", "insufficient_funds", "verification_failed"];
|
|
6185
|
-
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"];
|
|
6186
6121
|
export const chargeAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["allowed_reverse_action"]> = ["void", "refund"];
|
|
6187
6122
|
export const chargeStateValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["state"]> = ["cancelled", "errored", "failed", "processing", "requires_capture", "requires_confirmation", "requires_review", "settlement_failed", "succeeded"];
|
|
6188
6123
|
export const externalAccountTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ExternalAccount"]["type"]> = ["external_card", "external_bank_account"];
|
|
@@ -6214,6 +6149,7 @@ export const payoutStateTypeValues: ReadonlyArray<FlattenedDeepRequired<componen
|
|
|
6214
6149
|
export const refundStateTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["RefundStateType"]> = ["pending", "processing", "requires_review", "succeeded", "cancelled", "failed"];
|
|
6215
6150
|
export const subscriptionIntervalTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["SubscriptionIntervalType"]> = ["day", "week", "month", "year"];
|
|
6216
6151
|
export const subscriptionPlanTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["SubscriptionPlanType"]> = ["fixed", "variable"];
|
|
6152
|
+
export const paymentFailureTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PaymentFailureType"]> = ["payment_method_error", "processing_error"];
|
|
6217
6153
|
export const transactionSourceTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["TransactionSourceType"]> = ["api", "dashboard", "iframe", "system", "subscription", "admin"];
|
|
6218
6154
|
export const walletProviderTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["WalletProviderType"]> = ["googlepay", "applepay"];
|
|
6219
6155
|
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"];
|