@archildata/api-types 0.0.48 → 0.0.49
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 +103 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -104,6 +104,24 @@ export interface paths {
|
|
|
104
104
|
patch?: never;
|
|
105
105
|
trace?: never;
|
|
106
106
|
};
|
|
107
|
+
"/api/billing/profile": {
|
|
108
|
+
parameters: {
|
|
109
|
+
query?: never;
|
|
110
|
+
header?: never;
|
|
111
|
+
path?: never;
|
|
112
|
+
cookie?: never;
|
|
113
|
+
};
|
|
114
|
+
/** Get invoice billing details from Stripe */
|
|
115
|
+
get: operations["getBillingProfile"];
|
|
116
|
+
put?: never;
|
|
117
|
+
post?: never;
|
|
118
|
+
delete?: never;
|
|
119
|
+
options?: never;
|
|
120
|
+
head?: never;
|
|
121
|
+
/** Update invoice billing details in Stripe */
|
|
122
|
+
patch: operations["updateBillingProfile"];
|
|
123
|
+
trace?: never;
|
|
124
|
+
};
|
|
107
125
|
"/api/activity": {
|
|
108
126
|
parameters: {
|
|
109
127
|
query?: never;
|
|
@@ -998,6 +1016,28 @@ export interface components {
|
|
|
998
1016
|
scope: "customer" | "customer_and_subscription";
|
|
999
1017
|
};
|
|
1000
1018
|
};
|
|
1019
|
+
BillingProfile: {
|
|
1020
|
+
/** @enum {string} */
|
|
1021
|
+
billingMode: "not_setup" | "self_serve";
|
|
1022
|
+
name: string;
|
|
1023
|
+
email: string;
|
|
1024
|
+
phone: string;
|
|
1025
|
+
address?: components["schemas"]["BillingAddress"];
|
|
1026
|
+
};
|
|
1027
|
+
BillingProfileValidationError: components["schemas"]["ErrorResponse"] & {
|
|
1028
|
+
/** @enum {string} */
|
|
1029
|
+
code: "invalid_billing_profile";
|
|
1030
|
+
data: {
|
|
1031
|
+
/** @description Validation messages keyed by profile field name. */
|
|
1032
|
+
fieldErrors: {
|
|
1033
|
+
[key: string]: string;
|
|
1034
|
+
};
|
|
1035
|
+
};
|
|
1036
|
+
};
|
|
1037
|
+
ApiResponse_BillingProfile: {
|
|
1038
|
+
success: boolean;
|
|
1039
|
+
data: components["schemas"]["BillingProfile"];
|
|
1040
|
+
};
|
|
1001
1041
|
ActivityEvent: {
|
|
1002
1042
|
accountId: string;
|
|
1003
1043
|
/**
|
|
@@ -2469,6 +2509,69 @@ export interface operations {
|
|
|
2469
2509
|
502: components["responses"]["InternalError"];
|
|
2470
2510
|
};
|
|
2471
2511
|
};
|
|
2512
|
+
getBillingProfile: {
|
|
2513
|
+
parameters: {
|
|
2514
|
+
query?: never;
|
|
2515
|
+
header?: never;
|
|
2516
|
+
path?: never;
|
|
2517
|
+
cookie?: never;
|
|
2518
|
+
};
|
|
2519
|
+
requestBody?: never;
|
|
2520
|
+
responses: {
|
|
2521
|
+
/** @description Billing profile, or empty fields when billing is not set up */
|
|
2522
|
+
200: {
|
|
2523
|
+
headers: {
|
|
2524
|
+
[name: string]: unknown;
|
|
2525
|
+
};
|
|
2526
|
+
content: {
|
|
2527
|
+
"application/json": components["schemas"]["ApiResponse_BillingProfile"];
|
|
2528
|
+
};
|
|
2529
|
+
};
|
|
2530
|
+
403: components["responses"]["Unauthorized"];
|
|
2531
|
+
502: components["responses"]["InternalError"];
|
|
2532
|
+
};
|
|
2533
|
+
};
|
|
2534
|
+
updateBillingProfile: {
|
|
2535
|
+
parameters: {
|
|
2536
|
+
query?: never;
|
|
2537
|
+
header?: never;
|
|
2538
|
+
path?: never;
|
|
2539
|
+
cookie?: never;
|
|
2540
|
+
};
|
|
2541
|
+
requestBody: {
|
|
2542
|
+
content: {
|
|
2543
|
+
"application/json": {
|
|
2544
|
+
name?: string;
|
|
2545
|
+
/** Format: email */
|
|
2546
|
+
email?: string;
|
|
2547
|
+
phone?: string;
|
|
2548
|
+
address?: components["schemas"]["BillingAddressPatch"];
|
|
2549
|
+
};
|
|
2550
|
+
};
|
|
2551
|
+
};
|
|
2552
|
+
responses: {
|
|
2553
|
+
/** @description Saved invoice billing profile */
|
|
2554
|
+
200: {
|
|
2555
|
+
headers: {
|
|
2556
|
+
[name: string]: unknown;
|
|
2557
|
+
};
|
|
2558
|
+
content: {
|
|
2559
|
+
"application/json": components["schemas"]["ApiResponse_BillingProfile"];
|
|
2560
|
+
};
|
|
2561
|
+
};
|
|
2562
|
+
/** @description Invalid profile, with fieldErrors in data */
|
|
2563
|
+
400: {
|
|
2564
|
+
headers: {
|
|
2565
|
+
[name: string]: unknown;
|
|
2566
|
+
};
|
|
2567
|
+
content: {
|
|
2568
|
+
"application/json": components["schemas"]["BillingProfileValidationError"];
|
|
2569
|
+
};
|
|
2570
|
+
};
|
|
2571
|
+
403: components["responses"]["Unauthorized"];
|
|
2572
|
+
502: components["responses"]["InternalError"];
|
|
2573
|
+
};
|
|
2574
|
+
};
|
|
2472
2575
|
listActivity: {
|
|
2473
2576
|
parameters: {
|
|
2474
2577
|
query?: {
|