@archildata/api-types 0.0.47 → 0.0.48
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/index.d.ts +135 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -41,6 +41,29 @@ export interface paths {
|
|
|
41
41
|
patch?: never;
|
|
42
42
|
trace?: never;
|
|
43
43
|
};
|
|
44
|
+
"/api/billing/payment-methods/{paymentMethodID}": {
|
|
45
|
+
parameters: {
|
|
46
|
+
query?: never;
|
|
47
|
+
header?: never;
|
|
48
|
+
path: {
|
|
49
|
+
paymentMethodID: string;
|
|
50
|
+
};
|
|
51
|
+
cookie?: never;
|
|
52
|
+
};
|
|
53
|
+
get?: never;
|
|
54
|
+
put?: never;
|
|
55
|
+
post?: never;
|
|
56
|
+
/**
|
|
57
|
+
* Delete a saved payment method
|
|
58
|
+
* @description Deletes the saved payment method from the Archil account. To use the same card again, add it as a new payment method.
|
|
59
|
+
*/
|
|
60
|
+
delete: operations["deleteBillingPaymentMethod"];
|
|
61
|
+
options?: never;
|
|
62
|
+
head?: never;
|
|
63
|
+
/** Edit a saved card's billing name or address */
|
|
64
|
+
patch: operations["updateBillingPaymentMethod"];
|
|
65
|
+
trace?: never;
|
|
66
|
+
};
|
|
44
67
|
"/api/billing/setup-intents": {
|
|
45
68
|
parameters: {
|
|
46
69
|
query?: never;
|
|
@@ -50,7 +73,10 @@ export interface paths {
|
|
|
50
73
|
};
|
|
51
74
|
get?: never;
|
|
52
75
|
put?: never;
|
|
53
|
-
/**
|
|
76
|
+
/**
|
|
77
|
+
* Start card setup with Stripe Elements
|
|
78
|
+
* @description Confirm the returned SetupIntent with Stripe Elements in the client.
|
|
79
|
+
*/
|
|
54
80
|
post: operations["createBillingSetupIntent"];
|
|
55
81
|
delete?: never;
|
|
56
82
|
options?: never;
|
|
@@ -915,10 +941,41 @@ export interface components {
|
|
|
915
941
|
/** Format: int64 */
|
|
916
942
|
expYear: number;
|
|
917
943
|
};
|
|
944
|
+
billingDetails?: {
|
|
945
|
+
name: string;
|
|
946
|
+
address?: components["schemas"]["BillingAddress"];
|
|
947
|
+
};
|
|
918
948
|
isCustomerDefault: boolean;
|
|
919
949
|
isSubscriptionDefault: boolean;
|
|
920
950
|
isDefault: boolean;
|
|
921
951
|
};
|
|
952
|
+
BillingAddress: {
|
|
953
|
+
line1: string;
|
|
954
|
+
line2: string;
|
|
955
|
+
city: string;
|
|
956
|
+
state: string;
|
|
957
|
+
postalCode: string;
|
|
958
|
+
country: string;
|
|
959
|
+
};
|
|
960
|
+
BillingAddressPatch: {
|
|
961
|
+
line1?: string;
|
|
962
|
+
line2?: string;
|
|
963
|
+
city?: string;
|
|
964
|
+
state?: string;
|
|
965
|
+
postalCode?: string;
|
|
966
|
+
country?: string;
|
|
967
|
+
};
|
|
968
|
+
ApiResponse_BillingPaymentMethod: {
|
|
969
|
+
success: boolean;
|
|
970
|
+
data: components["schemas"]["BillingPaymentMethod"];
|
|
971
|
+
};
|
|
972
|
+
ApiResponse_BillingMethodRemoved: {
|
|
973
|
+
success: boolean;
|
|
974
|
+
data: {
|
|
975
|
+
id: string;
|
|
976
|
+
removed: boolean;
|
|
977
|
+
};
|
|
978
|
+
};
|
|
922
979
|
ApiResponse_BillingPaymentMethods: {
|
|
923
980
|
success: boolean;
|
|
924
981
|
data: components["schemas"]["BillingPaymentMethod"][];
|
|
@@ -2248,6 +2305,83 @@ export interface operations {
|
|
|
2248
2305
|
};
|
|
2249
2306
|
};
|
|
2250
2307
|
};
|
|
2308
|
+
deleteBillingPaymentMethod: {
|
|
2309
|
+
parameters: {
|
|
2310
|
+
query?: never;
|
|
2311
|
+
header?: never;
|
|
2312
|
+
path: {
|
|
2313
|
+
paymentMethodID: string;
|
|
2314
|
+
};
|
|
2315
|
+
cookie?: never;
|
|
2316
|
+
};
|
|
2317
|
+
requestBody?: never;
|
|
2318
|
+
responses: {
|
|
2319
|
+
/** @description Saved payment method deleted from the Archil account */
|
|
2320
|
+
200: {
|
|
2321
|
+
headers: {
|
|
2322
|
+
[name: string]: unknown;
|
|
2323
|
+
};
|
|
2324
|
+
content: {
|
|
2325
|
+
"application/json": components["schemas"]["ApiResponse_BillingMethodRemoved"];
|
|
2326
|
+
};
|
|
2327
|
+
};
|
|
2328
|
+
400: components["responses"]["ValidationError"];
|
|
2329
|
+
/** @description Missing, invalid, or disallowed credential */
|
|
2330
|
+
401: {
|
|
2331
|
+
headers: {
|
|
2332
|
+
[name: string]: unknown;
|
|
2333
|
+
};
|
|
2334
|
+
content: {
|
|
2335
|
+
"text/plain": string;
|
|
2336
|
+
};
|
|
2337
|
+
};
|
|
2338
|
+
404: components["responses"]["NotFound"];
|
|
2339
|
+
409: components["responses"]["ValidationError"];
|
|
2340
|
+
502: components["responses"]["InternalError"];
|
|
2341
|
+
};
|
|
2342
|
+
};
|
|
2343
|
+
updateBillingPaymentMethod: {
|
|
2344
|
+
parameters: {
|
|
2345
|
+
query?: never;
|
|
2346
|
+
header?: never;
|
|
2347
|
+
path: {
|
|
2348
|
+
paymentMethodID: string;
|
|
2349
|
+
};
|
|
2350
|
+
cookie?: never;
|
|
2351
|
+
};
|
|
2352
|
+
requestBody: {
|
|
2353
|
+
content: {
|
|
2354
|
+
"application/json": {
|
|
2355
|
+
name?: string;
|
|
2356
|
+
address?: components["schemas"]["BillingAddressPatch"];
|
|
2357
|
+
};
|
|
2358
|
+
};
|
|
2359
|
+
};
|
|
2360
|
+
responses: {
|
|
2361
|
+
/** @description Updated safe method details */
|
|
2362
|
+
200: {
|
|
2363
|
+
headers: {
|
|
2364
|
+
[name: string]: unknown;
|
|
2365
|
+
};
|
|
2366
|
+
content: {
|
|
2367
|
+
"application/json": components["schemas"]["ApiResponse_BillingPaymentMethod"];
|
|
2368
|
+
};
|
|
2369
|
+
};
|
|
2370
|
+
400: components["responses"]["ValidationError"];
|
|
2371
|
+
/** @description Missing, invalid, or disallowed credential */
|
|
2372
|
+
401: {
|
|
2373
|
+
headers: {
|
|
2374
|
+
[name: string]: unknown;
|
|
2375
|
+
};
|
|
2376
|
+
content: {
|
|
2377
|
+
"text/plain": string;
|
|
2378
|
+
};
|
|
2379
|
+
};
|
|
2380
|
+
404: components["responses"]["NotFound"];
|
|
2381
|
+
409: components["responses"]["ValidationError"];
|
|
2382
|
+
502: components["responses"]["InternalError"];
|
|
2383
|
+
};
|
|
2384
|
+
};
|
|
2251
2385
|
createBillingSetupIntent: {
|
|
2252
2386
|
parameters: {
|
|
2253
2387
|
query?: never;
|