@amos.com/node 0.1.73 → 0.1.75
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 +12 -84
- package/dist/index.d.ts +12 -84
- 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 +11 -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,21 +1456,25 @@ 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;
|
|
1473
1468
|
last4?: string;
|
|
1474
1469
|
state?: string;
|
|
1475
1470
|
three_d_secure_supported?: boolean | null;
|
|
1471
|
+
/** @description Legacy card token. Prefer vault_token for new integrations. */
|
|
1476
1472
|
token?: string;
|
|
1473
|
+
/**
|
|
1474
|
+
* Format: uuid
|
|
1475
|
+
* @description Vault UUID for this card. Used for charges and Vault callbacks.
|
|
1476
|
+
*/
|
|
1477
|
+
vault_token?: string;
|
|
1477
1478
|
wallet_provider?: components["schemas"]["WalletProviderType"];
|
|
1478
1479
|
/** Format: date-time */
|
|
1479
1480
|
card_updated_at?: string;
|
|
@@ -2363,44 +2364,6 @@ export interface components {
|
|
|
2363
2364
|
/** Format: date-time */
|
|
2364
2365
|
updated_at?: string;
|
|
2365
2366
|
};
|
|
2366
|
-
CreatePaymentMethodInput: {
|
|
2367
|
-
/** Format: uuid */
|
|
2368
|
-
customer_id?: string;
|
|
2369
|
-
metadata?: components["schemas"]["Metadata"];
|
|
2370
|
-
billing_address_attributes?: components["schemas"]["BillingAddressInput"];
|
|
2371
|
-
card_profile_attributes?: {
|
|
2372
|
-
brand?: string;
|
|
2373
|
-
/** @description Cardholder name as stored on the card. 2-26 characters. Letters, numbers, spaces, periods, commas, apostrophes, hyphens, slashes, and ampersands. */
|
|
2374
|
-
card_holder_name?: string;
|
|
2375
|
-
cvc?: string;
|
|
2376
|
-
encrypted_card_number?: string;
|
|
2377
|
-
exp_month?: number;
|
|
2378
|
-
exp_year?: number;
|
|
2379
|
-
first6?: string;
|
|
2380
|
-
last4?: string;
|
|
2381
|
-
pan_type?: string;
|
|
2382
|
-
token?: string;
|
|
2383
|
-
wallet_payload?: string;
|
|
2384
|
-
wallet_provider?: components["schemas"]["WalletProviderType"];
|
|
2385
|
-
};
|
|
2386
|
-
bank_account_profile_attributes?: {
|
|
2387
|
-
last4?: string;
|
|
2388
|
-
/** @description Account holder name. Letters, spaces, hyphens, apostrophes, and periods only. */
|
|
2389
|
-
account_holder_name?: string;
|
|
2390
|
-
account_holder_type?: string;
|
|
2391
|
-
account_type?: string;
|
|
2392
|
-
bank_name?: string;
|
|
2393
|
-
currency?: string;
|
|
2394
|
-
/** @description Bank account number. Stored encrypted at rest and not returned in API responses. */
|
|
2395
|
-
account_number?: string;
|
|
2396
|
-
token?: string;
|
|
2397
|
-
/** @description ABA routing number. A nine-digit value must pass the ABA checksum. */
|
|
2398
|
-
routing_number?: string;
|
|
2399
|
-
};
|
|
2400
|
-
};
|
|
2401
|
-
CreatePaymentMethodRequest: {
|
|
2402
|
-
payment_method: components["schemas"]["CreatePaymentMethodInput"];
|
|
2403
|
-
};
|
|
2404
2367
|
UpdateMerchantInput: {
|
|
2405
2368
|
active?: boolean;
|
|
2406
2369
|
business_category?: components["schemas"]["MerchantBusinessCategoryType"];
|
|
@@ -4782,39 +4745,6 @@ export interface operations {
|
|
|
4782
4745
|
};
|
|
4783
4746
|
};
|
|
4784
4747
|
};
|
|
4785
|
-
CreatePaymentMethod: {
|
|
4786
|
-
parameters: {
|
|
4787
|
-
query?: never;
|
|
4788
|
-
header?: never;
|
|
4789
|
-
path?: never;
|
|
4790
|
-
cookie?: never;
|
|
4791
|
-
};
|
|
4792
|
-
requestBody: {
|
|
4793
|
-
content: {
|
|
4794
|
-
"application/json": components["schemas"]["CreatePaymentMethodRequest"];
|
|
4795
|
-
};
|
|
4796
|
-
};
|
|
4797
|
-
responses: {
|
|
4798
|
-
/** @description Payment method created successfully */
|
|
4799
|
-
201: {
|
|
4800
|
-
headers: {
|
|
4801
|
-
[name: string]: unknown;
|
|
4802
|
-
};
|
|
4803
|
-
content: {
|
|
4804
|
-
"application/json": components["schemas"]["PaymentMethod"];
|
|
4805
|
-
};
|
|
4806
|
-
};
|
|
4807
|
-
/** @description Unprocessable entity */
|
|
4808
|
-
422: {
|
|
4809
|
-
headers: {
|
|
4810
|
-
[name: string]: unknown;
|
|
4811
|
-
};
|
|
4812
|
-
content: {
|
|
4813
|
-
"application/json": components["schemas"]["Error"];
|
|
4814
|
-
};
|
|
4815
|
-
};
|
|
4816
|
-
};
|
|
4817
|
-
};
|
|
4818
4748
|
GetPaymentMethod: {
|
|
4819
4749
|
parameters: {
|
|
4820
4750
|
query?: never;
|
|
@@ -6177,8 +6107,6 @@ type ReadonlyArray<T> = [
|
|
|
6177
6107
|
] extends [
|
|
6178
6108
|
unknown[]
|
|
6179
6109
|
] ? Readonly<Exclude<T, undefined>> : Readonly<Exclude<T, undefined>[]>;
|
|
6180
|
-
export const bankAccountProfileFailure_reasonValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["BankAccountProfile"]["failure_reason"]> = ["activation_failed", "processing_error", "vault_failed", "insufficient_funds", "verification_failed"];
|
|
6181
|
-
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"];
|
|
6182
6110
|
export const chargeAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["allowed_reverse_action"]> = ["void", "refund"];
|
|
6183
6111
|
export const chargeStateValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["state"]> = ["cancelled", "errored", "failed", "processing", "requires_capture", "requires_confirmation", "requires_review", "settlement_failed", "succeeded"];
|
|
6184
6112
|
export const externalAccountTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ExternalAccount"]["type"]> = ["external_card", "external_bank_account"];
|