@archildata/api-types 0.0.44 → 0.0.45
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 +160 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -24,6 +24,40 @@ export interface paths {
|
|
|
24
24
|
patch?: never;
|
|
25
25
|
trace?: never;
|
|
26
26
|
};
|
|
27
|
+
"/api/billing/payment-methods": {
|
|
28
|
+
parameters: {
|
|
29
|
+
query?: never;
|
|
30
|
+
header?: never;
|
|
31
|
+
path?: never;
|
|
32
|
+
cookie?: never;
|
|
33
|
+
};
|
|
34
|
+
/** List saved billing payment methods */
|
|
35
|
+
get: operations["listBillingPaymentMethods"];
|
|
36
|
+
put?: never;
|
|
37
|
+
post?: never;
|
|
38
|
+
delete?: never;
|
|
39
|
+
options?: never;
|
|
40
|
+
head?: never;
|
|
41
|
+
patch?: never;
|
|
42
|
+
trace?: never;
|
|
43
|
+
};
|
|
44
|
+
"/api/billing/setup-intents": {
|
|
45
|
+
parameters: {
|
|
46
|
+
query?: never;
|
|
47
|
+
header?: never;
|
|
48
|
+
path?: never;
|
|
49
|
+
cookie?: never;
|
|
50
|
+
};
|
|
51
|
+
get?: never;
|
|
52
|
+
put?: never;
|
|
53
|
+
/** Start card setup with Stripe Elements */
|
|
54
|
+
post: operations["createBillingSetupIntent"];
|
|
55
|
+
delete?: never;
|
|
56
|
+
options?: never;
|
|
57
|
+
head?: never;
|
|
58
|
+
patch?: never;
|
|
59
|
+
trace?: never;
|
|
60
|
+
};
|
|
27
61
|
"/api/activity": {
|
|
28
62
|
parameters: {
|
|
29
63
|
query?: never;
|
|
@@ -801,6 +835,33 @@ export interface components {
|
|
|
801
835
|
success: boolean;
|
|
802
836
|
data: components["schemas"]["BillingSummary"];
|
|
803
837
|
};
|
|
838
|
+
BillingPaymentMethod: {
|
|
839
|
+
id: string;
|
|
840
|
+
type: string;
|
|
841
|
+
card?: {
|
|
842
|
+
brand: string;
|
|
843
|
+
last4: string;
|
|
844
|
+
/** Format: int64 */
|
|
845
|
+
expMonth: number;
|
|
846
|
+
/** Format: int64 */
|
|
847
|
+
expYear: number;
|
|
848
|
+
};
|
|
849
|
+
isCustomerDefault: boolean;
|
|
850
|
+
isSubscriptionDefault: boolean;
|
|
851
|
+
isDefault: boolean;
|
|
852
|
+
};
|
|
853
|
+
ApiResponse_BillingPaymentMethods: {
|
|
854
|
+
success: boolean;
|
|
855
|
+
data: components["schemas"]["BillingPaymentMethod"][];
|
|
856
|
+
nextCursor?: string;
|
|
857
|
+
};
|
|
858
|
+
ApiResponse_BillingSetupIntent: {
|
|
859
|
+
success: boolean;
|
|
860
|
+
data: {
|
|
861
|
+
id: string;
|
|
862
|
+
clientSecret: string;
|
|
863
|
+
};
|
|
864
|
+
};
|
|
804
865
|
ActivityEvent: {
|
|
805
866
|
accountId: string;
|
|
806
867
|
/**
|
|
@@ -2017,6 +2078,105 @@ export interface operations {
|
|
|
2017
2078
|
};
|
|
2018
2079
|
};
|
|
2019
2080
|
};
|
|
2081
|
+
listBillingPaymentMethods: {
|
|
2082
|
+
parameters: {
|
|
2083
|
+
query?: {
|
|
2084
|
+
limit?: number;
|
|
2085
|
+
/** @description Pagination cursor from a previous response */
|
|
2086
|
+
cursor?: components["parameters"]["Cursor"];
|
|
2087
|
+
};
|
|
2088
|
+
header?: never;
|
|
2089
|
+
path?: never;
|
|
2090
|
+
cookie?: never;
|
|
2091
|
+
};
|
|
2092
|
+
requestBody?: never;
|
|
2093
|
+
responses: {
|
|
2094
|
+
/** @description Saved methods, with a cursor when more remain */
|
|
2095
|
+
200: {
|
|
2096
|
+
headers: {
|
|
2097
|
+
[name: string]: unknown;
|
|
2098
|
+
};
|
|
2099
|
+
content: {
|
|
2100
|
+
"application/json": components["schemas"]["ApiResponse_BillingPaymentMethods"];
|
|
2101
|
+
};
|
|
2102
|
+
};
|
|
2103
|
+
400: components["responses"]["ValidationError"];
|
|
2104
|
+
/** @description Missing, invalid, or disallowed credential */
|
|
2105
|
+
401: {
|
|
2106
|
+
headers: {
|
|
2107
|
+
[name: string]: unknown;
|
|
2108
|
+
};
|
|
2109
|
+
content: {
|
|
2110
|
+
"text/plain": string;
|
|
2111
|
+
};
|
|
2112
|
+
};
|
|
2113
|
+
/** @description Billing is managed by Archil (`managed_billing`) */
|
|
2114
|
+
409: {
|
|
2115
|
+
headers: {
|
|
2116
|
+
[name: string]: unknown;
|
|
2117
|
+
};
|
|
2118
|
+
content: {
|
|
2119
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
2120
|
+
};
|
|
2121
|
+
};
|
|
2122
|
+
/** @description Payment methods could not be loaded */
|
|
2123
|
+
502: {
|
|
2124
|
+
headers: {
|
|
2125
|
+
[name: string]: unknown;
|
|
2126
|
+
};
|
|
2127
|
+
content: {
|
|
2128
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
2129
|
+
};
|
|
2130
|
+
};
|
|
2131
|
+
};
|
|
2132
|
+
};
|
|
2133
|
+
createBillingSetupIntent: {
|
|
2134
|
+
parameters: {
|
|
2135
|
+
query?: never;
|
|
2136
|
+
header?: never;
|
|
2137
|
+
path?: never;
|
|
2138
|
+
cookie?: never;
|
|
2139
|
+
};
|
|
2140
|
+
requestBody?: never;
|
|
2141
|
+
responses: {
|
|
2142
|
+
/** @description SetupIntent for client-side confirmation */
|
|
2143
|
+
200: {
|
|
2144
|
+
headers: {
|
|
2145
|
+
[name: string]: unknown;
|
|
2146
|
+
};
|
|
2147
|
+
content: {
|
|
2148
|
+
"application/json": components["schemas"]["ApiResponse_BillingSetupIntent"];
|
|
2149
|
+
};
|
|
2150
|
+
};
|
|
2151
|
+
/** @description Missing, invalid, or disallowed credential */
|
|
2152
|
+
401: {
|
|
2153
|
+
headers: {
|
|
2154
|
+
[name: string]: unknown;
|
|
2155
|
+
};
|
|
2156
|
+
content: {
|
|
2157
|
+
"text/plain": string;
|
|
2158
|
+
};
|
|
2159
|
+
};
|
|
2160
|
+
/** @description Billing is managed by Archil (`managed_billing`) */
|
|
2161
|
+
409: {
|
|
2162
|
+
headers: {
|
|
2163
|
+
[name: string]: unknown;
|
|
2164
|
+
};
|
|
2165
|
+
content: {
|
|
2166
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
2167
|
+
};
|
|
2168
|
+
};
|
|
2169
|
+
/** @description Card setup could not be started */
|
|
2170
|
+
502: {
|
|
2171
|
+
headers: {
|
|
2172
|
+
[name: string]: unknown;
|
|
2173
|
+
};
|
|
2174
|
+
content: {
|
|
2175
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
2176
|
+
};
|
|
2177
|
+
};
|
|
2178
|
+
};
|
|
2179
|
+
};
|
|
2020
2180
|
listActivity: {
|
|
2021
2181
|
parameters: {
|
|
2022
2182
|
query?: {
|