@amos.com/node 0.1.59 → 0.1.61
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 +134 -142
- package/dist/index.d.ts +134 -142
- package/dist/index.js +0 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +0 -2
- package/dist/index.mjs.map +1 -1
- package/openapi/schema.ts +133 -141
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -87,7 +87,15 @@ interface paths {
|
|
|
87
87
|
/** List all customers */
|
|
88
88
|
get: operations["ListCustomers"];
|
|
89
89
|
put?: never;
|
|
90
|
-
/**
|
|
90
|
+
/**
|
|
91
|
+
* Create or reuse a customer
|
|
92
|
+
* @description Creates a registered customer, or returns the existing customer when
|
|
93
|
+
* `email` or `phone` already belongs to one in the organization.
|
|
94
|
+
* When `email` is sent, reuse is by email only; a phone match is not used
|
|
95
|
+
* as a fallback, so a mistyped email cannot attach to another customer.
|
|
96
|
+
* Reuse does not update the existing record; use PUT to change it.
|
|
97
|
+
* Returns 200 for reuse and 201 for create.
|
|
98
|
+
*/
|
|
91
99
|
post: operations["CreateCustomer"];
|
|
92
100
|
delete?: never;
|
|
93
101
|
options?: never;
|
|
@@ -567,26 +575,6 @@ interface paths {
|
|
|
567
575
|
patch?: never;
|
|
568
576
|
trace?: never;
|
|
569
577
|
};
|
|
570
|
-
"/embed/payment_intents/{id}/confirm_with_payment_method": {
|
|
571
|
-
parameters: {
|
|
572
|
-
query?: never;
|
|
573
|
-
header?: never;
|
|
574
|
-
path?: never;
|
|
575
|
-
cookie?: never;
|
|
576
|
-
};
|
|
577
|
-
get?: never;
|
|
578
|
-
put?: never;
|
|
579
|
-
/**
|
|
580
|
-
* Confirm a payment intent with a new payment method (async)
|
|
581
|
-
* @description Legacy async confirmation for migration. Accepts a payment method, enqueues authorization or sale work, and returns 202 with processing_authorization or processing_sale. Prefer POST /embed/payment_intents/{id}/confirm for synchronous processor confirmation.
|
|
582
|
-
*/
|
|
583
|
-
post: operations["ConfirmEmbedPaymentIntentWithPaymentMethod"];
|
|
584
|
-
delete?: never;
|
|
585
|
-
options?: never;
|
|
586
|
-
head?: never;
|
|
587
|
-
patch?: never;
|
|
588
|
-
trace?: never;
|
|
589
|
-
};
|
|
590
578
|
"/payment_intents": {
|
|
591
579
|
parameters: {
|
|
592
580
|
query?: never;
|
|
@@ -913,7 +901,11 @@ interface paths {
|
|
|
913
901
|
};
|
|
914
902
|
/** Retrieve a render template by ID */
|
|
915
903
|
get: operations["GetRenderTemplate"];
|
|
916
|
-
|
|
904
|
+
/**
|
|
905
|
+
* Update a render template by ID
|
|
906
|
+
* @description Replaces the template's origin allowlist. Currency, allowed payment methods, and billing address options cannot be changed.
|
|
907
|
+
*/
|
|
908
|
+
put: operations["UpdateRenderTemplate"];
|
|
917
909
|
post?: never;
|
|
918
910
|
delete?: never;
|
|
919
911
|
options?: never;
|
|
@@ -975,7 +967,7 @@ interface paths {
|
|
|
975
967
|
patch?: never;
|
|
976
968
|
trace?: never;
|
|
977
969
|
};
|
|
978
|
-
"/
|
|
970
|
+
"/setup_intents": {
|
|
979
971
|
parameters: {
|
|
980
972
|
query?: never;
|
|
981
973
|
header?: never;
|
|
@@ -985,26 +977,9 @@ interface paths {
|
|
|
985
977
|
get?: never;
|
|
986
978
|
put?: never;
|
|
987
979
|
/**
|
|
988
|
-
*
|
|
989
|
-
* @description
|
|
980
|
+
* Create a new setup intent
|
|
981
|
+
* @description Creates an organization-scoped setup intent. X-Account-Id is ignored if sent. The customer must belong to the authenticated organization. Returns an embed token whose JWT payload includes organization_id and setup_intent_id.
|
|
990
982
|
*/
|
|
991
|
-
post: operations["ConfirmSetupIntentWithPaymentMethod"];
|
|
992
|
-
delete?: never;
|
|
993
|
-
options?: never;
|
|
994
|
-
head?: never;
|
|
995
|
-
patch?: never;
|
|
996
|
-
trace?: never;
|
|
997
|
-
};
|
|
998
|
-
"/setup_intents": {
|
|
999
|
-
parameters: {
|
|
1000
|
-
query?: never;
|
|
1001
|
-
header?: never;
|
|
1002
|
-
path?: never;
|
|
1003
|
-
cookie?: never;
|
|
1004
|
-
};
|
|
1005
|
-
get?: never;
|
|
1006
|
-
put?: never;
|
|
1007
|
-
/** Create a new setup intent */
|
|
1008
983
|
post: operations["CreateSetupIntent"];
|
|
1009
984
|
delete?: never;
|
|
1010
985
|
options?: never;
|
|
@@ -1280,13 +1255,33 @@ interface components {
|
|
|
1280
1255
|
[key: string]: string[];
|
|
1281
1256
|
};
|
|
1282
1257
|
};
|
|
1283
|
-
/**
|
|
1258
|
+
/**
|
|
1259
|
+
* @description Decoded JWT payload for embed token responses.
|
|
1260
|
+
*
|
|
1261
|
+
* Payment intent tokens include `account_id` and `payment_intent_id`.
|
|
1262
|
+
* Setup intent tokens include `organization_id` and `setup_intent_id`
|
|
1263
|
+
* and do not use `account_id`. Unused fields are null.
|
|
1264
|
+
*/
|
|
1284
1265
|
EmbedTokenJwt: {
|
|
1285
|
-
/**
|
|
1286
|
-
|
|
1287
|
-
|
|
1266
|
+
/**
|
|
1267
|
+
* Format: uuid
|
|
1268
|
+
* @description Present for payment intent embed tokens. Null for setup intents.
|
|
1269
|
+
*/
|
|
1270
|
+
account_id?: string | null;
|
|
1271
|
+
/**
|
|
1272
|
+
* Format: uuid
|
|
1273
|
+
* @description Present for setup intent embed tokens. Null for payment intents.
|
|
1274
|
+
*/
|
|
1275
|
+
organization_id?: string | null;
|
|
1276
|
+
/**
|
|
1277
|
+
* Format: uuid
|
|
1278
|
+
* @description Present for payment intent embed tokens. Null for setup intents.
|
|
1279
|
+
*/
|
|
1288
1280
|
payment_intent_id?: string | null;
|
|
1289
|
-
/**
|
|
1281
|
+
/**
|
|
1282
|
+
* Format: uuid
|
|
1283
|
+
* @description Present for setup intent embed tokens. Null for payment intents.
|
|
1284
|
+
*/
|
|
1290
1285
|
setup_intent_id?: string | null;
|
|
1291
1286
|
};
|
|
1292
1287
|
/** @description Decoded JWT payload for render token responses. */
|
|
@@ -1299,7 +1294,13 @@ interface components {
|
|
|
1299
1294
|
render_template_id?: string;
|
|
1300
1295
|
};
|
|
1301
1296
|
EmbedToken: {
|
|
1302
|
-
/**
|
|
1297
|
+
/**
|
|
1298
|
+
* @description JWT string used for embedded payment and setup intent flows.
|
|
1299
|
+
* When decoded, the JWT payload matches the EmbedTokenJwt schema.
|
|
1300
|
+
* Setup intent tokens are organization-scoped (`organization_id` +
|
|
1301
|
+
* `setup_intent_id`). Payment intent tokens remain account-scoped
|
|
1302
|
+
* (`account_id` + `payment_intent_id`).
|
|
1303
|
+
*/
|
|
1303
1304
|
token?: string;
|
|
1304
1305
|
ttl?: number;
|
|
1305
1306
|
};
|
|
@@ -1329,6 +1330,8 @@ interface components {
|
|
|
1329
1330
|
routing_number?: string;
|
|
1330
1331
|
state?: string;
|
|
1331
1332
|
token?: string;
|
|
1333
|
+
/** @description True when the bank account was verified via Plaid Auth. */
|
|
1334
|
+
verified?: boolean;
|
|
1332
1335
|
/** Format: date-time */
|
|
1333
1336
|
created_at?: string;
|
|
1334
1337
|
/** Format: date-time */
|
|
@@ -1522,12 +1525,9 @@ interface components {
|
|
|
1522
1525
|
/** Format: date-time */
|
|
1523
1526
|
updated_at?: string;
|
|
1524
1527
|
};
|
|
1525
|
-
/** @enum {string} */
|
|
1526
|
-
DunningConfigurationExhaustedActionType: "cancel" | "pause" | "none";
|
|
1527
1528
|
CreateDunningConfigurationInput: {
|
|
1528
1529
|
/** @description Days after a failed collection to retry, in ascending order. */
|
|
1529
1530
|
retry_days: number[];
|
|
1530
|
-
exhausted_action?: components["schemas"]["DunningConfigurationExhaustedActionType"];
|
|
1531
1531
|
enabled?: boolean;
|
|
1532
1532
|
};
|
|
1533
1533
|
CreateDunningConfigurationRequest: {
|
|
@@ -1535,7 +1535,6 @@ interface components {
|
|
|
1535
1535
|
};
|
|
1536
1536
|
UpdateDunningConfigurationInput: {
|
|
1537
1537
|
retry_days?: number[];
|
|
1538
|
-
exhausted_action?: components["schemas"]["DunningConfigurationExhaustedActionType"];
|
|
1539
1538
|
enabled?: boolean;
|
|
1540
1539
|
};
|
|
1541
1540
|
UpdateDunningConfigurationRequest: {
|
|
@@ -1545,7 +1544,6 @@ interface components {
|
|
|
1545
1544
|
/** Format: uuid */
|
|
1546
1545
|
id?: string;
|
|
1547
1546
|
retry_days?: number[];
|
|
1548
|
-
exhausted_action?: components["schemas"]["DunningConfigurationExhaustedActionType"];
|
|
1549
1547
|
enabled?: boolean;
|
|
1550
1548
|
/** Format: date-time */
|
|
1551
1549
|
created_at?: string;
|
|
@@ -2457,6 +2455,14 @@ interface components {
|
|
|
2457
2455
|
CreateRenderTemplateRequest: {
|
|
2458
2456
|
render_template: components["schemas"]["CreateRenderTemplateInput"];
|
|
2459
2457
|
};
|
|
2458
|
+
/** @description Replaces the origin allowlist on an existing render template. Currency, allowed payment methods, and billing address options are not updatable. */
|
|
2459
|
+
UpdateRenderTemplateInput: {
|
|
2460
|
+
/** @description Origin IDs in the current organization. Replaces the current list. At least one origin is required. */
|
|
2461
|
+
origin_ids: string[];
|
|
2462
|
+
};
|
|
2463
|
+
UpdateRenderTemplateRequest: {
|
|
2464
|
+
render_template: components["schemas"]["UpdateRenderTemplateInput"];
|
|
2465
|
+
};
|
|
2460
2466
|
RenderTemplate: {
|
|
2461
2467
|
/** Format: uuid */
|
|
2462
2468
|
id?: string;
|
|
@@ -2470,7 +2476,10 @@ interface components {
|
|
|
2470
2476
|
origins: components["schemas"]["Origin"][];
|
|
2471
2477
|
};
|
|
2472
2478
|
CreateSetupIntentInput: {
|
|
2473
|
-
/**
|
|
2479
|
+
/**
|
|
2480
|
+
* Format: uuid
|
|
2481
|
+
* @description Customer on the authenticated organization.
|
|
2482
|
+
*/
|
|
2474
2483
|
customer_id?: string;
|
|
2475
2484
|
metadata?: components["schemas"]["Metadata"];
|
|
2476
2485
|
};
|
|
@@ -2491,8 +2500,16 @@ interface components {
|
|
|
2491
2500
|
SetupIntent: {
|
|
2492
2501
|
/** Format: uuid */
|
|
2493
2502
|
id?: string;
|
|
2494
|
-
/**
|
|
2495
|
-
|
|
2503
|
+
/**
|
|
2504
|
+
* Format: uuid
|
|
2505
|
+
* @description Legacy account association. Null for organization-scoped setup intents.
|
|
2506
|
+
*/
|
|
2507
|
+
account_id?: string | null;
|
|
2508
|
+
/**
|
|
2509
|
+
* Format: uuid
|
|
2510
|
+
* @description Organization that owns the setup intent.
|
|
2511
|
+
*/
|
|
2512
|
+
organization_id?: string;
|
|
2496
2513
|
/** Format: uuid */
|
|
2497
2514
|
customer_id?: string;
|
|
2498
2515
|
metadata?: components["schemas"]["Metadata"];
|
|
@@ -2982,6 +2999,15 @@ interface operations {
|
|
|
2982
2999
|
};
|
|
2983
3000
|
};
|
|
2984
3001
|
responses: {
|
|
3002
|
+
/** @description Existing customer returned */
|
|
3003
|
+
200: {
|
|
3004
|
+
headers: {
|
|
3005
|
+
[name: string]: unknown;
|
|
3006
|
+
};
|
|
3007
|
+
content: {
|
|
3008
|
+
"application/json": components["schemas"]["Customer"];
|
|
3009
|
+
};
|
|
3010
|
+
};
|
|
2985
3011
|
/** @description Customer created successfully */
|
|
2986
3012
|
201: {
|
|
2987
3013
|
headers: {
|
|
@@ -2991,6 +3017,18 @@ interface operations {
|
|
|
2991
3017
|
"application/json": components["schemas"]["Customer"];
|
|
2992
3018
|
};
|
|
2993
3019
|
};
|
|
3020
|
+
/**
|
|
3021
|
+
* @description Email and phone match different customers, or the email is new and
|
|
3022
|
+
* the phone already belongs to another customer.
|
|
3023
|
+
*/
|
|
3024
|
+
409: {
|
|
3025
|
+
headers: {
|
|
3026
|
+
[name: string]: unknown;
|
|
3027
|
+
};
|
|
3028
|
+
content: {
|
|
3029
|
+
"application/json": components["schemas"]["Error"];
|
|
3030
|
+
};
|
|
3031
|
+
};
|
|
2994
3032
|
/** @description Unprocessable entity */
|
|
2995
3033
|
422: {
|
|
2996
3034
|
headers: {
|
|
@@ -4028,51 +4066,6 @@ interface operations {
|
|
|
4028
4066
|
};
|
|
4029
4067
|
};
|
|
4030
4068
|
};
|
|
4031
|
-
ConfirmEmbedPaymentIntentWithPaymentMethod: {
|
|
4032
|
-
parameters: {
|
|
4033
|
-
query?: never;
|
|
4034
|
-
header?: never;
|
|
4035
|
-
path: {
|
|
4036
|
-
/** @description The ID of the payment intent to confirm */
|
|
4037
|
-
id: string;
|
|
4038
|
-
};
|
|
4039
|
-
cookie?: never;
|
|
4040
|
-
};
|
|
4041
|
-
requestBody: {
|
|
4042
|
-
content: {
|
|
4043
|
-
"application/json": components["schemas"]["ConfirmPaymentIntentWithPaymentMethodRequest"];
|
|
4044
|
-
};
|
|
4045
|
-
};
|
|
4046
|
-
responses: {
|
|
4047
|
-
/** @description Confirmation accepted; authorization or sale continues asynchronously */
|
|
4048
|
-
202: {
|
|
4049
|
-
headers: {
|
|
4050
|
-
[name: string]: unknown;
|
|
4051
|
-
};
|
|
4052
|
-
content: {
|
|
4053
|
-
"application/json": components["schemas"]["PaymentIntent"];
|
|
4054
|
-
};
|
|
4055
|
-
};
|
|
4056
|
-
/** @description Forbidden */
|
|
4057
|
-
403: {
|
|
4058
|
-
headers: {
|
|
4059
|
-
[name: string]: unknown;
|
|
4060
|
-
};
|
|
4061
|
-
content: {
|
|
4062
|
-
"application/json": components["schemas"]["Error"];
|
|
4063
|
-
};
|
|
4064
|
-
};
|
|
4065
|
-
/** @description Unprocessable content */
|
|
4066
|
-
422: {
|
|
4067
|
-
headers: {
|
|
4068
|
-
[name: string]: unknown;
|
|
4069
|
-
};
|
|
4070
|
-
content: {
|
|
4071
|
-
"application/json": components["schemas"]["Error"];
|
|
4072
|
-
};
|
|
4073
|
-
};
|
|
4074
|
-
};
|
|
4075
|
-
};
|
|
4076
4069
|
ListPaymentIntents: {
|
|
4077
4070
|
parameters: {
|
|
4078
4071
|
query?: {
|
|
@@ -4903,24 +4896,38 @@ interface operations {
|
|
|
4903
4896
|
};
|
|
4904
4897
|
};
|
|
4905
4898
|
};
|
|
4906
|
-
|
|
4899
|
+
UpdateRenderTemplate: {
|
|
4907
4900
|
parameters: {
|
|
4908
4901
|
query?: never;
|
|
4909
4902
|
header?: never;
|
|
4910
4903
|
path: {
|
|
4904
|
+
/** @description The ID of the render template to update */
|
|
4911
4905
|
id: string;
|
|
4912
4906
|
};
|
|
4913
4907
|
cookie?: never;
|
|
4914
4908
|
};
|
|
4915
|
-
requestBody
|
|
4909
|
+
requestBody: {
|
|
4910
|
+
content: {
|
|
4911
|
+
"application/json": components["schemas"]["UpdateRenderTemplateRequest"];
|
|
4912
|
+
};
|
|
4913
|
+
};
|
|
4916
4914
|
responses: {
|
|
4917
|
-
/** @description
|
|
4918
|
-
|
|
4915
|
+
/** @description Render template updated successfully */
|
|
4916
|
+
200: {
|
|
4919
4917
|
headers: {
|
|
4920
4918
|
[name: string]: unknown;
|
|
4921
4919
|
};
|
|
4922
4920
|
content: {
|
|
4923
|
-
"application/json": components["schemas"]["
|
|
4921
|
+
"application/json": components["schemas"]["RenderTemplate"];
|
|
4922
|
+
};
|
|
4923
|
+
};
|
|
4924
|
+
/** @description Render template not found */
|
|
4925
|
+
404: {
|
|
4926
|
+
headers: {
|
|
4927
|
+
[name: string]: unknown;
|
|
4928
|
+
};
|
|
4929
|
+
content: {
|
|
4930
|
+
"application/json": components["schemas"]["Error"];
|
|
4924
4931
|
};
|
|
4925
4932
|
};
|
|
4926
4933
|
/** @description Unprocessable entity */
|
|
@@ -4934,46 +4941,50 @@ interface operations {
|
|
|
4934
4941
|
};
|
|
4935
4942
|
};
|
|
4936
4943
|
};
|
|
4937
|
-
|
|
4944
|
+
CreateRenderToken: {
|
|
4938
4945
|
parameters: {
|
|
4939
4946
|
query?: never;
|
|
4940
4947
|
header?: never;
|
|
4941
4948
|
path: {
|
|
4942
|
-
/** @description The ID of the setup intent to retrieve */
|
|
4943
4949
|
id: string;
|
|
4944
4950
|
};
|
|
4945
4951
|
cookie?: never;
|
|
4946
4952
|
};
|
|
4947
4953
|
requestBody?: never;
|
|
4948
4954
|
responses: {
|
|
4949
|
-
/** @description
|
|
4950
|
-
|
|
4955
|
+
/** @description A render token for the render template */
|
|
4956
|
+
201: {
|
|
4951
4957
|
headers: {
|
|
4952
4958
|
[name: string]: unknown;
|
|
4953
4959
|
};
|
|
4954
4960
|
content: {
|
|
4955
|
-
"application/json": components["schemas"]["
|
|
4961
|
+
"application/json": components["schemas"]["RenderToken"];
|
|
4962
|
+
};
|
|
4963
|
+
};
|
|
4964
|
+
/** @description Unprocessable entity */
|
|
4965
|
+
422: {
|
|
4966
|
+
headers: {
|
|
4967
|
+
[name: string]: unknown;
|
|
4968
|
+
};
|
|
4969
|
+
content: {
|
|
4970
|
+
"application/json": components["schemas"]["Error"];
|
|
4956
4971
|
};
|
|
4957
4972
|
};
|
|
4958
4973
|
};
|
|
4959
4974
|
};
|
|
4960
|
-
|
|
4975
|
+
GetSetupIntent: {
|
|
4961
4976
|
parameters: {
|
|
4962
4977
|
query?: never;
|
|
4963
4978
|
header?: never;
|
|
4964
4979
|
path: {
|
|
4965
|
-
/** @description The ID of the setup intent to
|
|
4980
|
+
/** @description The ID of the setup intent to retrieve */
|
|
4966
4981
|
id: string;
|
|
4967
4982
|
};
|
|
4968
4983
|
cookie?: never;
|
|
4969
4984
|
};
|
|
4970
|
-
requestBody
|
|
4971
|
-
content: {
|
|
4972
|
-
"application/json": components["schemas"]["ConfirmSetupIntentWithPaymentMethodRequest"];
|
|
4973
|
-
};
|
|
4974
|
-
};
|
|
4985
|
+
requestBody?: never;
|
|
4975
4986
|
responses: {
|
|
4976
|
-
/** @description
|
|
4987
|
+
/** @description Successful retrieval of setup intent */
|
|
4977
4988
|
200: {
|
|
4978
4989
|
headers: {
|
|
4979
4990
|
[name: string]: unknown;
|
|
@@ -4982,27 +4993,9 @@ interface operations {
|
|
|
4982
4993
|
"application/json": components["schemas"]["SetupIntent"];
|
|
4983
4994
|
};
|
|
4984
4995
|
};
|
|
4985
|
-
/** @description Forbidden */
|
|
4986
|
-
403: {
|
|
4987
|
-
headers: {
|
|
4988
|
-
[name: string]: unknown;
|
|
4989
|
-
};
|
|
4990
|
-
content: {
|
|
4991
|
-
"application/json": components["schemas"]["Error"];
|
|
4992
|
-
};
|
|
4993
|
-
};
|
|
4994
|
-
/** @description Unprocessable content */
|
|
4995
|
-
422: {
|
|
4996
|
-
headers: {
|
|
4997
|
-
[name: string]: unknown;
|
|
4998
|
-
};
|
|
4999
|
-
content: {
|
|
5000
|
-
"application/json": components["schemas"]["Error"];
|
|
5001
|
-
};
|
|
5002
|
-
};
|
|
5003
4996
|
};
|
|
5004
4997
|
};
|
|
5005
|
-
|
|
4998
|
+
ConfirmEmbedSetupIntent: {
|
|
5006
4999
|
parameters: {
|
|
5007
5000
|
query?: never;
|
|
5008
5001
|
header?: never;
|
|
@@ -5018,8 +5011,8 @@ interface operations {
|
|
|
5018
5011
|
};
|
|
5019
5012
|
};
|
|
5020
5013
|
responses: {
|
|
5021
|
-
/** @description Confirmation
|
|
5022
|
-
|
|
5014
|
+
/** @description Confirmation completed after verification succeeded or failed */
|
|
5015
|
+
200: {
|
|
5023
5016
|
headers: {
|
|
5024
5017
|
[name: string]: unknown;
|
|
5025
5018
|
};
|
|
@@ -5713,7 +5706,6 @@ declare const bankAccountProfileFailure_reasonValues: ReadonlyArray<FlattenedDee
|
|
|
5713
5706
|
declare const cardProfileFailure_reasonValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["CardProfile"]["failure_reason"]>;
|
|
5714
5707
|
declare const chargeAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["allowed_reverse_action"]>;
|
|
5715
5708
|
declare const chargeStateValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["state"]>;
|
|
5716
|
-
declare const dunningConfigurationExhaustedActionTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["DunningConfigurationExhaustedActionType"]>;
|
|
5717
5709
|
declare const externalAccountTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ExternalAccount"]["type"]>;
|
|
5718
5710
|
declare const legalEntityEntityTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityEntityType"]>;
|
|
5719
5711
|
declare const legalEntityOwnershipTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityOwnershipType"]>;
|
|
@@ -5793,4 +5785,4 @@ declare function createPayApiClient(options: ClientOptions): openapi_fetch.Clien
|
|
|
5793
5785
|
/** A configured Amos Pay API client returned by {@link createPayApiClient}. */
|
|
5794
5786
|
type PayApiClient = ReturnType<typeof createPayApiClient>;
|
|
5795
5787
|
|
|
5796
|
-
export { type $defs, AMOS_API_BASE_URL_PRODUCTION, AMOS_API_BASE_URL_SANDBOX, AMOS_API_VERSION, type PayApiClient, allowedApplePayPaymentMethodInputTypeValues, allowedApplePayPaymentMethodTypeValues, allowedBankAccountPaymentMethodInputTypeValues, allowedBankAccountPaymentMethodTypeValues, allowedCardPaymentMethodInputTypeValues, allowedCardPaymentMethodTypeValues, allowedGooglePayPaymentMethodInputTypeValues, allowedGooglePayPaymentMethodTypeValues, bankAccountProfileFailure_reasonValues, cardProfileFailure_reasonValues, chargeAllowed_reverse_actionValues, chargeStateValues, type components, createPayApiClient,
|
|
5788
|
+
export { type $defs, AMOS_API_BASE_URL_PRODUCTION, AMOS_API_BASE_URL_SANDBOX, AMOS_API_VERSION, type PayApiClient, allowedApplePayPaymentMethodInputTypeValues, allowedApplePayPaymentMethodTypeValues, allowedBankAccountPaymentMethodInputTypeValues, allowedBankAccountPaymentMethodTypeValues, allowedCardPaymentMethodInputTypeValues, allowedCardPaymentMethodTypeValues, allowedGooglePayPaymentMethodInputTypeValues, allowedGooglePayPaymentMethodTypeValues, bankAccountProfileFailure_reasonValues, cardProfileFailure_reasonValues, chargeAllowed_reverse_actionValues, chargeStateValues, type components, createPayApiClient, embedConfirmApplePayPaymentMethodInputTypeValues, embedConfirmBankAccountPaymentMethodInputTypeValues, embedConfirmCardPaymentMethodInputTypeValues, embedConfirmGooglePayPaymentMethodInputTypeValues, externalAccountTypeValues, internationalBillingAddressOptionsModeValues, legalEntityDocumentTypeValues, legalEntityEntityTypeValues, legalEntityOwnershipTypeValues, merchantBusinessCategoryTypeValues, type operations, organizationKindValues, originApplepayRegistrationStateTypeValues, type paths, paymentIntentCaptureMethodTypeValues, paymentIntentStateValues, paymentLinkAmountTypeValues, paymentMethodTypeValues, payoutDirectionTypeValues, payoutStateTypeValues, processorTransactionPayment_transaction_typeValues, processorTransactionTransaction_typeValues, refundAllowed_reverse_actionValues, refundStateTypeValues, setupIntentStateValues, subscriptionIntervalTypeValues, subscriptionPlanTypeValues, subscriptionStateValues, transactionSourceTypeValues, usOnlyBillingAddressOptionsModeValues, usStateTypeValues, walletProviderTypeValues, webhookEventTypeValues, type webhooks };
|
package/dist/index.js
CHANGED
|
@@ -46,7 +46,6 @@ __export(index_exports, {
|
|
|
46
46
|
chargeAllowed_reverse_actionValues: () => chargeAllowed_reverse_actionValues,
|
|
47
47
|
chargeStateValues: () => chargeStateValues,
|
|
48
48
|
createPayApiClient: () => createPayApiClient,
|
|
49
|
-
dunningConfigurationExhaustedActionTypeValues: () => dunningConfigurationExhaustedActionTypeValues,
|
|
50
49
|
embedConfirmApplePayPaymentMethodInputTypeValues: () => embedConfirmApplePayPaymentMethodInputTypeValues,
|
|
51
50
|
embedConfirmBankAccountPaymentMethodInputTypeValues: () => embedConfirmBankAccountPaymentMethodInputTypeValues,
|
|
52
51
|
embedConfirmCardPaymentMethodInputTypeValues: () => embedConfirmCardPaymentMethodInputTypeValues,
|
|
@@ -87,7 +86,6 @@ var bankAccountProfileFailure_reasonValues = ["activation_failed", "processing_e
|
|
|
87
86
|
var cardProfileFailure_reasonValues = ["authorization_failed", "avs_blocked", "brand_not_allowed", "brand_not_found", "cvc_blocked", "processing_error", "vault_failed"];
|
|
88
87
|
var chargeAllowed_reverse_actionValues = ["void", "refund"];
|
|
89
88
|
var chargeStateValues = ["cancelled", "errored", "failed", "processing", "requires_capture", "requires_confirmation", "requires_review", "settlement_failed", "succeeded"];
|
|
90
|
-
var dunningConfigurationExhaustedActionTypeValues = ["cancel", "pause", "none"];
|
|
91
89
|
var externalAccountTypeValues = ["external_card", "external_bank_account"];
|
|
92
90
|
var legalEntityEntityTypeValues = ["individual_sole_proprietorship", "corporation", "limited_liability_company", "partnership", "limited_partnership", "general_partnership", "tax_exempt_organization", "government_agency"];
|
|
93
91
|
var legalEntityOwnershipTypeValues = ["public", "private"];
|
|
@@ -153,7 +151,6 @@ function createPayApiClient(options) {
|
|
|
153
151
|
chargeAllowed_reverse_actionValues,
|
|
154
152
|
chargeStateValues,
|
|
155
153
|
createPayApiClient,
|
|
156
|
-
dunningConfigurationExhaustedActionTypeValues,
|
|
157
154
|
embedConfirmApplePayPaymentMethodInputTypeValues,
|
|
158
155
|
embedConfirmBankAccountPaymentMethodInputTypeValues,
|
|
159
156
|
embedConfirmCardPaymentMethodInputTypeValues,
|