@amos.com/node 0.1.63 → 0.1.65
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 +24 -4
- package/dist/index.d.ts +24 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/openapi/schema.ts +24 -4
- package/package.json +15 -9
package/dist/index.d.mts
CHANGED
|
@@ -147,10 +147,16 @@ interface paths {
|
|
|
147
147
|
path?: never;
|
|
148
148
|
cookie?: never;
|
|
149
149
|
};
|
|
150
|
-
/**
|
|
150
|
+
/**
|
|
151
|
+
* List all external accounts
|
|
152
|
+
* @description Lists organization-scoped external accounts. X-Account-Id is ignored if sent.
|
|
153
|
+
*/
|
|
151
154
|
get: operations["ListExternalAccounts"];
|
|
152
155
|
put?: never;
|
|
153
|
-
/**
|
|
156
|
+
/**
|
|
157
|
+
* Create an external account
|
|
158
|
+
* @description Creates an organization-scoped external account. X-Account-Id is ignored if sent.
|
|
159
|
+
*/
|
|
154
160
|
post: operations["CreateExternalAccount"];
|
|
155
161
|
delete?: never;
|
|
156
162
|
options?: never;
|
|
@@ -165,7 +171,10 @@ interface paths {
|
|
|
165
171
|
path?: never;
|
|
166
172
|
cookie?: never;
|
|
167
173
|
};
|
|
168
|
-
/**
|
|
174
|
+
/**
|
|
175
|
+
* Retrieve an external account by ID
|
|
176
|
+
* @description Retrieves an organization-scoped external account. X-Account-Id is ignored if sent.
|
|
177
|
+
*/
|
|
169
178
|
get: operations["GetExternalAccount"];
|
|
170
179
|
put?: never;
|
|
171
180
|
post?: never;
|
|
@@ -1315,15 +1324,19 @@ interface components {
|
|
|
1315
1324
|
ttl?: number;
|
|
1316
1325
|
};
|
|
1317
1326
|
BankAccountProfileInput: {
|
|
1327
|
+
/** @description Account holder name. Letters, spaces, hyphens, apostrophes, and periods only. */
|
|
1318
1328
|
account_holder_name?: string;
|
|
1319
1329
|
account_holder_type?: string;
|
|
1320
1330
|
account_type?: string;
|
|
1321
1331
|
bank_name?: string;
|
|
1322
1332
|
currency?: string;
|
|
1333
|
+
/** @description Plaintext bank account number. Stored encrypted at rest. Not returned in API responses. */
|
|
1334
|
+
account_number?: string;
|
|
1323
1335
|
encrypted_account_number?: string;
|
|
1324
1336
|
routing_number?: string;
|
|
1325
1337
|
};
|
|
1326
1338
|
BankAccountProfile: {
|
|
1339
|
+
/** @description Account holder name. Letters, spaces, hyphens, apostrophes, and periods only. */
|
|
1327
1340
|
account_holder_name?: string;
|
|
1328
1341
|
account_holder_type?: string;
|
|
1329
1342
|
account_type?: string;
|
|
@@ -1391,6 +1404,7 @@ interface components {
|
|
|
1391
1404
|
updated_at?: string;
|
|
1392
1405
|
};
|
|
1393
1406
|
CardProfileInput: {
|
|
1407
|
+
/** @description Cardholder name. Letters, spaces, hyphens, apostrophes, and periods only. */
|
|
1394
1408
|
card_holder_name?: string;
|
|
1395
1409
|
cvc?: string;
|
|
1396
1410
|
encrypted_card_number?: string;
|
|
@@ -1412,6 +1426,7 @@ interface components {
|
|
|
1412
1426
|
avs_check?: string;
|
|
1413
1427
|
avs_check_message?: string | null;
|
|
1414
1428
|
brand?: string;
|
|
1429
|
+
/** @description Cardholder name. Letters, spaces, hyphens, apostrophes, and periods only. */
|
|
1415
1430
|
card_holder_name?: string;
|
|
1416
1431
|
cvc_check?: string;
|
|
1417
1432
|
cvc_check_message?: string | null;
|
|
@@ -1565,7 +1580,7 @@ interface components {
|
|
|
1565
1580
|
/** Format: uuid */
|
|
1566
1581
|
id?: string;
|
|
1567
1582
|
/** Format: uuid */
|
|
1568
|
-
|
|
1583
|
+
organization_id?: string;
|
|
1569
1584
|
metadata?: components["schemas"]["Metadata"];
|
|
1570
1585
|
/** @enum {string} */
|
|
1571
1586
|
type?: "external_card" | "external_bank_account";
|
|
@@ -2311,6 +2326,7 @@ interface components {
|
|
|
2311
2326
|
billing_address_attributes?: components["schemas"]["BillingAddressInput"];
|
|
2312
2327
|
card_profile_attributes?: {
|
|
2313
2328
|
brand?: string;
|
|
2329
|
+
/** @description Cardholder name. Letters, spaces, hyphens, apostrophes, and periods only. */
|
|
2314
2330
|
card_holder_name?: string;
|
|
2315
2331
|
cvc?: string;
|
|
2316
2332
|
encrypted_card_number?: string;
|
|
@@ -2325,11 +2341,13 @@ interface components {
|
|
|
2325
2341
|
};
|
|
2326
2342
|
bank_account_profile_attributes?: {
|
|
2327
2343
|
last4?: string;
|
|
2344
|
+
/** @description Account holder name. Letters, spaces, hyphens, apostrophes, and periods only. */
|
|
2328
2345
|
account_holder_name?: string;
|
|
2329
2346
|
account_holder_type?: string;
|
|
2330
2347
|
account_type?: string;
|
|
2331
2348
|
bank_name?: string;
|
|
2332
2349
|
currency?: string;
|
|
2350
|
+
account_number?: string;
|
|
2333
2351
|
encrypted_account_number?: string;
|
|
2334
2352
|
token?: string;
|
|
2335
2353
|
routing_number?: string;
|
|
@@ -2904,6 +2922,8 @@ interface components {
|
|
|
2904
2922
|
XIdempotencyHeader: string;
|
|
2905
2923
|
/** @description Render template JWT required to create a payment or setup intent. */
|
|
2906
2924
|
XRenderTokenHeader: string;
|
|
2925
|
+
/** @description The ID of the account to filter by */
|
|
2926
|
+
AccountIdQuery: string;
|
|
2907
2927
|
/** @description The ID of the customer to filter by */
|
|
2908
2928
|
CustomerIdQuery: string;
|
|
2909
2929
|
/** @description Exact email match (case-insensitive). For substring search, use `q`. */
|
package/dist/index.d.ts
CHANGED
|
@@ -147,10 +147,16 @@ interface paths {
|
|
|
147
147
|
path?: never;
|
|
148
148
|
cookie?: never;
|
|
149
149
|
};
|
|
150
|
-
/**
|
|
150
|
+
/**
|
|
151
|
+
* List all external accounts
|
|
152
|
+
* @description Lists organization-scoped external accounts. X-Account-Id is ignored if sent.
|
|
153
|
+
*/
|
|
151
154
|
get: operations["ListExternalAccounts"];
|
|
152
155
|
put?: never;
|
|
153
|
-
/**
|
|
156
|
+
/**
|
|
157
|
+
* Create an external account
|
|
158
|
+
* @description Creates an organization-scoped external account. X-Account-Id is ignored if sent.
|
|
159
|
+
*/
|
|
154
160
|
post: operations["CreateExternalAccount"];
|
|
155
161
|
delete?: never;
|
|
156
162
|
options?: never;
|
|
@@ -165,7 +171,10 @@ interface paths {
|
|
|
165
171
|
path?: never;
|
|
166
172
|
cookie?: never;
|
|
167
173
|
};
|
|
168
|
-
/**
|
|
174
|
+
/**
|
|
175
|
+
* Retrieve an external account by ID
|
|
176
|
+
* @description Retrieves an organization-scoped external account. X-Account-Id is ignored if sent.
|
|
177
|
+
*/
|
|
169
178
|
get: operations["GetExternalAccount"];
|
|
170
179
|
put?: never;
|
|
171
180
|
post?: never;
|
|
@@ -1315,15 +1324,19 @@ interface components {
|
|
|
1315
1324
|
ttl?: number;
|
|
1316
1325
|
};
|
|
1317
1326
|
BankAccountProfileInput: {
|
|
1327
|
+
/** @description Account holder name. Letters, spaces, hyphens, apostrophes, and periods only. */
|
|
1318
1328
|
account_holder_name?: string;
|
|
1319
1329
|
account_holder_type?: string;
|
|
1320
1330
|
account_type?: string;
|
|
1321
1331
|
bank_name?: string;
|
|
1322
1332
|
currency?: string;
|
|
1333
|
+
/** @description Plaintext bank account number. Stored encrypted at rest. Not returned in API responses. */
|
|
1334
|
+
account_number?: string;
|
|
1323
1335
|
encrypted_account_number?: string;
|
|
1324
1336
|
routing_number?: string;
|
|
1325
1337
|
};
|
|
1326
1338
|
BankAccountProfile: {
|
|
1339
|
+
/** @description Account holder name. Letters, spaces, hyphens, apostrophes, and periods only. */
|
|
1327
1340
|
account_holder_name?: string;
|
|
1328
1341
|
account_holder_type?: string;
|
|
1329
1342
|
account_type?: string;
|
|
@@ -1391,6 +1404,7 @@ interface components {
|
|
|
1391
1404
|
updated_at?: string;
|
|
1392
1405
|
};
|
|
1393
1406
|
CardProfileInput: {
|
|
1407
|
+
/** @description Cardholder name. Letters, spaces, hyphens, apostrophes, and periods only. */
|
|
1394
1408
|
card_holder_name?: string;
|
|
1395
1409
|
cvc?: string;
|
|
1396
1410
|
encrypted_card_number?: string;
|
|
@@ -1412,6 +1426,7 @@ interface components {
|
|
|
1412
1426
|
avs_check?: string;
|
|
1413
1427
|
avs_check_message?: string | null;
|
|
1414
1428
|
brand?: string;
|
|
1429
|
+
/** @description Cardholder name. Letters, spaces, hyphens, apostrophes, and periods only. */
|
|
1415
1430
|
card_holder_name?: string;
|
|
1416
1431
|
cvc_check?: string;
|
|
1417
1432
|
cvc_check_message?: string | null;
|
|
@@ -1565,7 +1580,7 @@ interface components {
|
|
|
1565
1580
|
/** Format: uuid */
|
|
1566
1581
|
id?: string;
|
|
1567
1582
|
/** Format: uuid */
|
|
1568
|
-
|
|
1583
|
+
organization_id?: string;
|
|
1569
1584
|
metadata?: components["schemas"]["Metadata"];
|
|
1570
1585
|
/** @enum {string} */
|
|
1571
1586
|
type?: "external_card" | "external_bank_account";
|
|
@@ -2311,6 +2326,7 @@ interface components {
|
|
|
2311
2326
|
billing_address_attributes?: components["schemas"]["BillingAddressInput"];
|
|
2312
2327
|
card_profile_attributes?: {
|
|
2313
2328
|
brand?: string;
|
|
2329
|
+
/** @description Cardholder name. Letters, spaces, hyphens, apostrophes, and periods only. */
|
|
2314
2330
|
card_holder_name?: string;
|
|
2315
2331
|
cvc?: string;
|
|
2316
2332
|
encrypted_card_number?: string;
|
|
@@ -2325,11 +2341,13 @@ interface components {
|
|
|
2325
2341
|
};
|
|
2326
2342
|
bank_account_profile_attributes?: {
|
|
2327
2343
|
last4?: string;
|
|
2344
|
+
/** @description Account holder name. Letters, spaces, hyphens, apostrophes, and periods only. */
|
|
2328
2345
|
account_holder_name?: string;
|
|
2329
2346
|
account_holder_type?: string;
|
|
2330
2347
|
account_type?: string;
|
|
2331
2348
|
bank_name?: string;
|
|
2332
2349
|
currency?: string;
|
|
2350
|
+
account_number?: string;
|
|
2333
2351
|
encrypted_account_number?: string;
|
|
2334
2352
|
token?: string;
|
|
2335
2353
|
routing_number?: string;
|
|
@@ -2904,6 +2922,8 @@ interface components {
|
|
|
2904
2922
|
XIdempotencyHeader: string;
|
|
2905
2923
|
/** @description Render template JWT required to create a payment or setup intent. */
|
|
2906
2924
|
XRenderTokenHeader: string;
|
|
2925
|
+
/** @description The ID of the account to filter by */
|
|
2926
|
+
AccountIdQuery: string;
|
|
2907
2927
|
/** @description The ID of the customer to filter by */
|
|
2908
2928
|
CustomerIdQuery: string;
|
|
2909
2929
|
/** @description Exact email match (case-insensitive). For substring search, use `q`. */
|