@archildata/api-types 0.0.49 → 0.0.50
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 +208 -12
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export interface paths {
|
|
|
13
13
|
};
|
|
14
14
|
/**
|
|
15
15
|
* Get billing summary
|
|
16
|
-
* @description Returns the selected account's billing state and available actions.
|
|
16
|
+
* @description Returns the selected account's billing state and available actions. Accounts that share billing also share subscription and open-invoice information.
|
|
17
17
|
*/
|
|
18
18
|
get: operations["getBillingSummary"];
|
|
19
19
|
put?: never;
|
|
@@ -74,8 +74,8 @@ export interface paths {
|
|
|
74
74
|
get?: never;
|
|
75
75
|
put?: never;
|
|
76
76
|
/**
|
|
77
|
-
* Start card setup
|
|
78
|
-
* @description
|
|
77
|
+
* Start card setup
|
|
78
|
+
* @description Use the returned clientSecret to confirm card details in the client's payment form.
|
|
79
79
|
*/
|
|
80
80
|
post: operations["createBillingSetupIntent"];
|
|
81
81
|
delete?: never;
|
|
@@ -93,8 +93,8 @@ export interface paths {
|
|
|
93
93
|
};
|
|
94
94
|
get?: never;
|
|
95
95
|
/**
|
|
96
|
-
* Set the default method
|
|
97
|
-
* @description Provide a saved method ID or a
|
|
96
|
+
* Set the default payment method
|
|
97
|
+
* @description Provide a saved payment method ID or a completed card setup ID. The payment method must belong to the selected account. This action does not pay outstanding invoices. Accounts with multiple billable subscriptions must contact support.
|
|
98
98
|
*/
|
|
99
99
|
put: operations["setBillingDefaultPaymentMethod"];
|
|
100
100
|
post?: never;
|
|
@@ -111,17 +111,57 @@ export interface paths {
|
|
|
111
111
|
path?: never;
|
|
112
112
|
cookie?: never;
|
|
113
113
|
};
|
|
114
|
-
/** Get invoice billing details
|
|
114
|
+
/** Get invoice billing details */
|
|
115
115
|
get: operations["getBillingProfile"];
|
|
116
116
|
put?: never;
|
|
117
117
|
post?: never;
|
|
118
118
|
delete?: never;
|
|
119
119
|
options?: never;
|
|
120
120
|
head?: never;
|
|
121
|
-
/** Update invoice billing details
|
|
121
|
+
/** Update invoice billing details */
|
|
122
122
|
patch: operations["updateBillingProfile"];
|
|
123
123
|
trace?: never;
|
|
124
124
|
};
|
|
125
|
+
"/api/billing/invoices": {
|
|
126
|
+
parameters: {
|
|
127
|
+
query?: never;
|
|
128
|
+
header?: never;
|
|
129
|
+
path?: never;
|
|
130
|
+
cookie?: never;
|
|
131
|
+
};
|
|
132
|
+
/**
|
|
133
|
+
* List account invoices
|
|
134
|
+
* @description Returns invoice summaries for the selected account's billing profile. Accounts that share billing have the same invoice history. The default page size is 24; use limit to request between 1 and 100 invoices. When nextCursor is returned, pass its value as cursor to fetch the next page.
|
|
135
|
+
*/
|
|
136
|
+
get: operations["listBillingInvoices"];
|
|
137
|
+
put?: never;
|
|
138
|
+
post?: never;
|
|
139
|
+
delete?: never;
|
|
140
|
+
options?: never;
|
|
141
|
+
head?: never;
|
|
142
|
+
patch?: never;
|
|
143
|
+
trace?: never;
|
|
144
|
+
};
|
|
145
|
+
"/api/billing/invoices/{invoiceID}": {
|
|
146
|
+
parameters: {
|
|
147
|
+
query?: never;
|
|
148
|
+
header?: never;
|
|
149
|
+
path?: never;
|
|
150
|
+
cookie?: never;
|
|
151
|
+
};
|
|
152
|
+
/**
|
|
153
|
+
* Get invoice details and a PDF download link
|
|
154
|
+
* @description Returns invoice details and an optional invoicePdf download link. Line items and credit notes are paginated independently; limit applies to each section and defaults to 24, with values from 1 to 100 accepted. A true partialData value means at least one section has more items. To continue a section, pass its lineNextCursor as lineCursor or its creditNoteNextCursor as creditNoteCursor. Retrieve a new PDF link when needed rather than storing it for later use.
|
|
155
|
+
*/
|
|
156
|
+
get: operations["getBillingInvoice"];
|
|
157
|
+
put?: never;
|
|
158
|
+
post?: never;
|
|
159
|
+
delete?: never;
|
|
160
|
+
options?: never;
|
|
161
|
+
head?: never;
|
|
162
|
+
patch?: never;
|
|
163
|
+
trace?: never;
|
|
164
|
+
};
|
|
125
165
|
"/api/activity": {
|
|
126
166
|
parameters: {
|
|
127
167
|
query?: never;
|
|
@@ -877,7 +917,7 @@ export interface components {
|
|
|
877
917
|
code?: string;
|
|
878
918
|
};
|
|
879
919
|
BillingOwner: {
|
|
880
|
-
/** @description Selected account ID
|
|
920
|
+
/** @description Selected account ID. */
|
|
881
921
|
accountId: string;
|
|
882
922
|
/** @enum {string} */
|
|
883
923
|
type: "personal" | "organization";
|
|
@@ -930,7 +970,7 @@ export interface components {
|
|
|
930
970
|
billingMode: "not_setup" | "self_serve" | "managed";
|
|
931
971
|
/** @enum {string} */
|
|
932
972
|
plan: "developer" | "team" | "enterprise" | "unknown";
|
|
933
|
-
/** @description
|
|
973
|
+
/** @description Current subscription status, `none`, or `managed`. */
|
|
934
974
|
subscriptionStatus: string;
|
|
935
975
|
billingPeriod?: components["schemas"]["BillingPeriod"];
|
|
936
976
|
/**
|
|
@@ -1038,6 +1078,87 @@ export interface components {
|
|
|
1038
1078
|
success: boolean;
|
|
1039
1079
|
data: components["schemas"]["BillingProfile"];
|
|
1040
1080
|
};
|
|
1081
|
+
BillingInvoiceSummary: {
|
|
1082
|
+
id: string;
|
|
1083
|
+
number: string;
|
|
1084
|
+
/** Format: int64 */
|
|
1085
|
+
date: number;
|
|
1086
|
+
status: string;
|
|
1087
|
+
currency: string;
|
|
1088
|
+
/** Format: int64 */
|
|
1089
|
+
totalCents: number;
|
|
1090
|
+
/** Format: int64 */
|
|
1091
|
+
amountDueCents: number;
|
|
1092
|
+
/** Format: int64 */
|
|
1093
|
+
amountPaidCents: number;
|
|
1094
|
+
/** Format: int64 */
|
|
1095
|
+
amountRemainingCents: number;
|
|
1096
|
+
};
|
|
1097
|
+
ApiResponse_BillingInvoices: {
|
|
1098
|
+
success: boolean;
|
|
1099
|
+
data: components["schemas"]["BillingInvoiceSummary"][];
|
|
1100
|
+
nextCursor?: string;
|
|
1101
|
+
};
|
|
1102
|
+
BillingInvoiceTax: {
|
|
1103
|
+
/** Format: int64 */
|
|
1104
|
+
amountCents: number;
|
|
1105
|
+
/** Format: int64 */
|
|
1106
|
+
taxableAmountCents: number;
|
|
1107
|
+
type: string;
|
|
1108
|
+
};
|
|
1109
|
+
BillingInvoiceCredit: {
|
|
1110
|
+
/** Format: int64 */
|
|
1111
|
+
amountCents: number;
|
|
1112
|
+
type: string;
|
|
1113
|
+
};
|
|
1114
|
+
BillingInvoiceLine: {
|
|
1115
|
+
id: string;
|
|
1116
|
+
description: string;
|
|
1117
|
+
/** Format: int64 */
|
|
1118
|
+
amountCents: number;
|
|
1119
|
+
currency: string;
|
|
1120
|
+
/** Format: int64 */
|
|
1121
|
+
quantity: number;
|
|
1122
|
+
period?: components["schemas"]["BillingPeriod"];
|
|
1123
|
+
taxes: components["schemas"]["BillingInvoiceTax"][];
|
|
1124
|
+
pretaxCredits: components["schemas"]["BillingInvoiceCredit"][];
|
|
1125
|
+
};
|
|
1126
|
+
BillingCreditNote: {
|
|
1127
|
+
id: string;
|
|
1128
|
+
number: string;
|
|
1129
|
+
/** Format: int64 */
|
|
1130
|
+
date: number;
|
|
1131
|
+
status: string;
|
|
1132
|
+
type: string;
|
|
1133
|
+
currency: string;
|
|
1134
|
+
/** Format: int64 */
|
|
1135
|
+
totalCents: number;
|
|
1136
|
+
/** Format: int64 */
|
|
1137
|
+
prePaymentAmountCents: number;
|
|
1138
|
+
/** Format: int64 */
|
|
1139
|
+
postPaymentAmountCents: number;
|
|
1140
|
+
};
|
|
1141
|
+
BillingInvoiceDetail: components["schemas"]["BillingInvoiceSummary"] & {
|
|
1142
|
+
/** Format: int64 */
|
|
1143
|
+
subtotalCents: number;
|
|
1144
|
+
/** Format: int64 */
|
|
1145
|
+
prePaymentCreditNotesAmountCents: number;
|
|
1146
|
+
/** Format: int64 */
|
|
1147
|
+
postPaymentCreditNotesAmountCents: number;
|
|
1148
|
+
taxes: components["schemas"]["BillingInvoiceTax"][];
|
|
1149
|
+
pretaxCredits: components["schemas"]["BillingInvoiceCredit"][];
|
|
1150
|
+
lines: components["schemas"]["BillingInvoiceLine"][];
|
|
1151
|
+
creditNotes: components["schemas"]["BillingCreditNote"][];
|
|
1152
|
+
lineNextCursor?: string;
|
|
1153
|
+
creditNoteNextCursor?: string;
|
|
1154
|
+
partialData: boolean;
|
|
1155
|
+
/** Format: uri */
|
|
1156
|
+
invoicePdf?: string;
|
|
1157
|
+
};
|
|
1158
|
+
ApiResponse_BillingInvoiceDetail: {
|
|
1159
|
+
success: boolean;
|
|
1160
|
+
data: components["schemas"]["BillingInvoiceDetail"];
|
|
1161
|
+
};
|
|
1041
1162
|
ActivityEvent: {
|
|
1042
1163
|
accountId: string;
|
|
1043
1164
|
/**
|
|
@@ -2398,7 +2519,7 @@ export interface operations {
|
|
|
2398
2519
|
};
|
|
2399
2520
|
};
|
|
2400
2521
|
responses: {
|
|
2401
|
-
/** @description Updated
|
|
2522
|
+
/** @description Updated payment method details */
|
|
2402
2523
|
200: {
|
|
2403
2524
|
headers: {
|
|
2404
2525
|
[name: string]: unknown;
|
|
@@ -2431,7 +2552,7 @@ export interface operations {
|
|
|
2431
2552
|
};
|
|
2432
2553
|
requestBody?: never;
|
|
2433
2554
|
responses: {
|
|
2434
|
-
/** @description
|
|
2555
|
+
/** @description Card setup ID and client secret for confirmation */
|
|
2435
2556
|
200: {
|
|
2436
2557
|
headers: {
|
|
2437
2558
|
[name: string]: unknown;
|
|
@@ -2485,7 +2606,7 @@ export interface operations {
|
|
|
2485
2606
|
};
|
|
2486
2607
|
};
|
|
2487
2608
|
responses: {
|
|
2488
|
-
/** @description
|
|
2609
|
+
/** @description Default payment method updated */
|
|
2489
2610
|
200: {
|
|
2490
2611
|
headers: {
|
|
2491
2612
|
[name: string]: unknown;
|
|
@@ -2572,6 +2693,81 @@ export interface operations {
|
|
|
2572
2693
|
502: components["responses"]["InternalError"];
|
|
2573
2694
|
};
|
|
2574
2695
|
};
|
|
2696
|
+
listBillingInvoices: {
|
|
2697
|
+
parameters: {
|
|
2698
|
+
query?: {
|
|
2699
|
+
limit?: number;
|
|
2700
|
+
/** @description Pagination cursor from a previous response */
|
|
2701
|
+
cursor?: components["parameters"]["Cursor"];
|
|
2702
|
+
};
|
|
2703
|
+
header?: never;
|
|
2704
|
+
path?: never;
|
|
2705
|
+
cookie?: never;
|
|
2706
|
+
};
|
|
2707
|
+
requestBody?: never;
|
|
2708
|
+
responses: {
|
|
2709
|
+
/** @description Invoice summaries and an optional next-page cursor */
|
|
2710
|
+
200: {
|
|
2711
|
+
headers: {
|
|
2712
|
+
[name: string]: unknown;
|
|
2713
|
+
};
|
|
2714
|
+
content: {
|
|
2715
|
+
"application/json": components["schemas"]["ApiResponse_BillingInvoices"];
|
|
2716
|
+
};
|
|
2717
|
+
};
|
|
2718
|
+
400: components["responses"]["ValidationError"];
|
|
2719
|
+
401: components["responses"]["Unauthorized"];
|
|
2720
|
+
/** @description Billing is managed by Archil (`managed_billing`) */
|
|
2721
|
+
409: {
|
|
2722
|
+
headers: {
|
|
2723
|
+
[name: string]: unknown;
|
|
2724
|
+
};
|
|
2725
|
+
content: {
|
|
2726
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
2727
|
+
};
|
|
2728
|
+
};
|
|
2729
|
+
502: components["responses"]["InternalError"];
|
|
2730
|
+
};
|
|
2731
|
+
};
|
|
2732
|
+
getBillingInvoice: {
|
|
2733
|
+
parameters: {
|
|
2734
|
+
query?: {
|
|
2735
|
+
limit?: number;
|
|
2736
|
+
lineCursor?: string;
|
|
2737
|
+
creditNoteCursor?: string;
|
|
2738
|
+
};
|
|
2739
|
+
header?: never;
|
|
2740
|
+
path: {
|
|
2741
|
+
invoiceID: string;
|
|
2742
|
+
};
|
|
2743
|
+
cookie?: never;
|
|
2744
|
+
};
|
|
2745
|
+
requestBody?: never;
|
|
2746
|
+
responses: {
|
|
2747
|
+
/** @description Invoice details with paginated line items and credit notes */
|
|
2748
|
+
200: {
|
|
2749
|
+
headers: {
|
|
2750
|
+
[name: string]: unknown;
|
|
2751
|
+
};
|
|
2752
|
+
content: {
|
|
2753
|
+
"application/json": components["schemas"]["ApiResponse_BillingInvoiceDetail"];
|
|
2754
|
+
};
|
|
2755
|
+
};
|
|
2756
|
+
400: components["responses"]["ValidationError"];
|
|
2757
|
+
401: components["responses"]["Unauthorized"];
|
|
2758
|
+
404: components["responses"]["NotFound"];
|
|
2759
|
+
/** @description Billing is managed by Archil (`managed_billing`) */
|
|
2760
|
+
409: {
|
|
2761
|
+
headers: {
|
|
2762
|
+
[name: string]: unknown;
|
|
2763
|
+
};
|
|
2764
|
+
content: {
|
|
2765
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
2766
|
+
};
|
|
2767
|
+
};
|
|
2768
|
+
502: components["responses"]["InternalError"];
|
|
2769
|
+
};
|
|
2770
|
+
};
|
|
2575
2771
|
listActivity: {
|
|
2576
2772
|
parameters: {
|
|
2577
2773
|
query?: {
|