@amos.com/node 0.1.74 → 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 +8 -84
- package/dist/index.d.ts +8 -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 +7 -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,20 +1456,20 @@ 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. */
|
|
1472
|
+
token?: string;
|
|
1476
1473
|
/**
|
|
1477
1474
|
* Format: uuid
|
|
1478
1475
|
* @description Vault UUID for this card. Used for charges and Vault callbacks.
|
|
@@ -2367,44 +2364,6 @@ export interface components {
|
|
|
2367
2364
|
/** Format: date-time */
|
|
2368
2365
|
updated_at?: string;
|
|
2369
2366
|
};
|
|
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
2367
|
UpdateMerchantInput: {
|
|
2409
2368
|
active?: boolean;
|
|
2410
2369
|
business_category?: components["schemas"]["MerchantBusinessCategoryType"];
|
|
@@ -4786,39 +4745,6 @@ export interface operations {
|
|
|
4786
4745
|
};
|
|
4787
4746
|
};
|
|
4788
4747
|
};
|
|
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
4748
|
GetPaymentMethod: {
|
|
4823
4749
|
parameters: {
|
|
4824
4750
|
query?: never;
|
|
@@ -6181,8 +6107,6 @@ type ReadonlyArray<T> = [
|
|
|
6181
6107
|
] extends [
|
|
6182
6108
|
unknown[]
|
|
6183
6109
|
] ? 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
6110
|
export const chargeAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["allowed_reverse_action"]> = ["void", "refund"];
|
|
6187
6111
|
export const chargeStateValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["state"]> = ["cancelled", "errored", "failed", "processing", "requires_capture", "requires_confirmation", "requires_review", "settlement_failed", "succeeded"];
|
|
6188
6112
|
export const externalAccountTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ExternalAccount"]["type"]> = ["external_card", "external_bank_account"];
|