@openrails/billing-ui 0.233.2 → 0.234.0
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/CHANGELOG.md +14 -0
- package/dist/client/client.d.ts +6 -1
- package/dist/client/generated/error-codes.d.ts +1 -1
- package/dist/client/generated/routes.d.ts +111 -122
- package/dist/client/generated/wire.d.ts +118 -28
- package/dist/client/index.d.ts +1 -1
- package/dist/client/types.d.ts +92 -33
- package/dist/{client-DXUPzA8C.js → client-CWX6QpLa.js} +68 -37
- package/dist/client-CWX6QpLa.js.map +1 -0
- package/dist/client.js +1 -1
- package/dist/{config-BQELtBh4.js → config-DZ97SQG2.js} +2 -2
- package/dist/{config-BQELtBh4.js.map → config-DZ97SQG2.js.map} +1 -1
- package/dist/index.js +2 -2
- package/dist/react.js +1 -1
- package/package.json +1 -1
- package/dist/client-DXUPzA8C.js.map +0 -1
|
@@ -3,11 +3,9 @@ export type OpenRailsRoute = {
|
|
|
3
3
|
path: string;
|
|
4
4
|
group: string;
|
|
5
5
|
auth: string;
|
|
6
|
-
guards: readonly string[];
|
|
7
6
|
permission: string | null;
|
|
8
7
|
sensitive: boolean;
|
|
9
8
|
mountedWhen: string | null;
|
|
10
|
-
scope: "self_service" | "billing_management" | "subscription_management" | null;
|
|
11
9
|
request: string | null;
|
|
12
10
|
responses: Readonly<Record<number, string | null>>;
|
|
13
11
|
errors: readonly string[];
|
|
@@ -18,11 +16,9 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
18
16
|
readonly path: "/health/live";
|
|
19
17
|
readonly group: "meta";
|
|
20
18
|
readonly auth: "public";
|
|
21
|
-
readonly guards: readonly [];
|
|
22
19
|
readonly permission: null;
|
|
23
20
|
readonly sensitive: false;
|
|
24
21
|
readonly mountedWhen: null;
|
|
25
|
-
readonly scope: null;
|
|
26
22
|
readonly request: null;
|
|
27
23
|
readonly responses: {
|
|
28
24
|
readonly 200: "Health";
|
|
@@ -34,11 +30,9 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
34
30
|
readonly path: "/health/ready";
|
|
35
31
|
readonly group: "meta";
|
|
36
32
|
readonly auth: "public";
|
|
37
|
-
readonly guards: readonly [];
|
|
38
33
|
readonly permission: null;
|
|
39
34
|
readonly sensitive: false;
|
|
40
35
|
readonly mountedWhen: null;
|
|
41
|
-
readonly scope: null;
|
|
42
36
|
readonly request: null;
|
|
43
37
|
readonly responses: {
|
|
44
38
|
readonly 200: "Health";
|
|
@@ -50,11 +44,9 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
50
44
|
readonly path: "/metrics";
|
|
51
45
|
readonly group: "meta";
|
|
52
46
|
readonly auth: "public";
|
|
53
|
-
readonly guards: readonly [];
|
|
54
47
|
readonly permission: null;
|
|
55
48
|
readonly sensitive: false;
|
|
56
49
|
readonly mountedWhen: null;
|
|
57
|
-
readonly scope: null;
|
|
58
50
|
readonly request: null;
|
|
59
51
|
readonly responses: {
|
|
60
52
|
readonly 200: "text/plain";
|
|
@@ -66,11 +58,9 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
66
58
|
readonly path: "/v1/config";
|
|
67
59
|
readonly group: "meta";
|
|
68
60
|
readonly auth: "public";
|
|
69
|
-
readonly guards: readonly [];
|
|
70
61
|
readonly permission: null;
|
|
71
62
|
readonly sensitive: false;
|
|
72
63
|
readonly mountedWhen: null;
|
|
73
|
-
readonly scope: null;
|
|
74
64
|
readonly request: null;
|
|
75
65
|
readonly responses: {
|
|
76
66
|
readonly 200: "PublicConfig";
|
|
@@ -82,11 +72,9 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
82
72
|
readonly path: "/v1/solana/tokens";
|
|
83
73
|
readonly group: "checkout";
|
|
84
74
|
readonly auth: "public";
|
|
85
|
-
readonly guards: readonly [];
|
|
86
75
|
readonly permission: null;
|
|
87
76
|
readonly sensitive: false;
|
|
88
77
|
readonly mountedWhen: "solana";
|
|
89
|
-
readonly scope: null;
|
|
90
78
|
readonly request: null;
|
|
91
79
|
readonly responses: {
|
|
92
80
|
readonly 200: "SupportedTokensResponse";
|
|
@@ -98,43 +86,37 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
98
86
|
readonly path: "/v1/checkout-sessions/{id}";
|
|
99
87
|
readonly group: "checkout";
|
|
100
88
|
readonly auth: "checkout_session";
|
|
101
|
-
readonly guards: readonly [];
|
|
102
89
|
readonly permission: null;
|
|
103
90
|
readonly sensitive: false;
|
|
104
91
|
readonly mountedWhen: null;
|
|
105
|
-
readonly scope: null;
|
|
106
92
|
readonly request: null;
|
|
107
93
|
readonly responses: {
|
|
108
94
|
readonly 200: "CheckoutSession";
|
|
109
95
|
};
|
|
110
|
-
readonly errors: readonly ["card_attempts_blocked", "card_declined", "card_not_saved", "checkout_session_not_found", "checkout_session_unavailable", "credential_custody_transition_required", "
|
|
96
|
+
readonly errors: readonly ["card_attempts_blocked", "card_declined", "card_not_saved", "checkout_session_not_found", "checkout_session_unavailable", "credential_custody_transition_required", "idempotency_key_reused", "insufficient_funds", "invalid_param", "payment_method_required", "payment_method_stale", "payment_provider_rejected", "resource_access_denied", "resource_conflict", "resource_not_found", "service_unavailable", "subscription_paid_through", "subscription_resumable"];
|
|
111
97
|
readonly errorSets: readonly ["tier:checkout_session"];
|
|
112
98
|
}, {
|
|
113
99
|
readonly method: "POST";
|
|
114
100
|
readonly path: "/v1/checkout-sessions/{id}/pay";
|
|
115
101
|
readonly group: "checkout";
|
|
116
102
|
readonly auth: "checkout_session";
|
|
117
|
-
readonly guards: readonly [];
|
|
118
103
|
readonly permission: null;
|
|
119
104
|
readonly sensitive: false;
|
|
120
105
|
readonly mountedWhen: null;
|
|
121
|
-
readonly scope: null;
|
|
122
106
|
readonly request: "PayCheckoutSessionParams";
|
|
123
107
|
readonly responses: {
|
|
124
108
|
readonly 200: "CheckoutSessionPayResult";
|
|
125
109
|
};
|
|
126
|
-
readonly errors: readonly ["card_attempts_blocked", "card_declined", "card_not_saved", "card_requires_https", "checkout_offer_unavailable", "checkout_payment_in_progress", "checkout_request_invalid", "checkout_session_expired", "checkout_session_not_found", "checkout_session_unavailable", "credential_custody_transition_required", "
|
|
110
|
+
readonly errors: readonly ["card_attempts_blocked", "card_declined", "card_not_saved", "card_requires_https", "checkout_offer_unavailable", "checkout_payment_in_progress", "checkout_request_invalid", "checkout_session_expired", "checkout_session_not_found", "checkout_session_unavailable", "credential_custody_transition_required", "customer_proof_required", "idempotency_key_reused", "insufficient_funds", "invalid_param", "payment_method_required", "payment_method_stale", "payment_provider_rejected", "resource_access_denied", "resource_conflict", "resource_not_found", "service_unavailable", "subscription_paid_through", "subscription_resumable"];
|
|
127
111
|
readonly errorSets: readonly ["tier:checkout_session", "request"];
|
|
128
112
|
}, {
|
|
129
113
|
readonly method: "GET";
|
|
130
114
|
readonly path: "/v1/checkout-attempts/{id}/solana-pay";
|
|
131
115
|
readonly group: "checkout";
|
|
132
116
|
readonly auth: "session_id";
|
|
133
|
-
readonly guards: readonly [];
|
|
134
117
|
readonly permission: null;
|
|
135
118
|
readonly sensitive: false;
|
|
136
119
|
readonly mountedWhen: "solana";
|
|
137
|
-
readonly scope: null;
|
|
138
120
|
readonly request: null;
|
|
139
121
|
readonly responses: {
|
|
140
122
|
readonly 200: "SolanaPayGetResponse";
|
|
@@ -146,11 +128,9 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
146
128
|
readonly path: "/v1/checkout-attempts/{id}/solana-pay";
|
|
147
129
|
readonly group: "checkout";
|
|
148
130
|
readonly auth: "session_id";
|
|
149
|
-
readonly guards: readonly [];
|
|
150
131
|
readonly permission: null;
|
|
151
132
|
readonly sensitive: false;
|
|
152
133
|
readonly mountedWhen: "solana";
|
|
153
|
-
readonly scope: null;
|
|
154
134
|
readonly request: "SolanaPayPostRequest";
|
|
155
135
|
readonly responses: {
|
|
156
136
|
readonly 200: "SolanaPayPostResponse";
|
|
@@ -162,59 +142,51 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
162
142
|
readonly path: "/v1/me/checkout-sessions";
|
|
163
143
|
readonly group: "customer";
|
|
164
144
|
readonly auth: "customer";
|
|
165
|
-
readonly guards: readonly [];
|
|
166
145
|
readonly permission: null;
|
|
167
146
|
readonly sensitive: false;
|
|
168
147
|
readonly mountedWhen: null;
|
|
169
|
-
readonly scope: "self_service";
|
|
170
148
|
readonly request: "MintCheckoutSessionParams";
|
|
171
149
|
readonly responses: {
|
|
172
150
|
readonly 201: "CheckoutSessionLink";
|
|
173
151
|
};
|
|
174
|
-
readonly errors: readonly ["authentication_required", "checkout_offer_unavailable", "checkout_session_unavailable", "customer_action_required", "
|
|
152
|
+
readonly errors: readonly ["authentication_required", "checkout_offer_unavailable", "checkout_session_unavailable", "customer_action_required", "invalid_param", "resource_conflict", "resource_not_found", "service_unavailable"];
|
|
175
153
|
readonly errorSets: readonly ["tier:customer", "request"];
|
|
176
154
|
}, {
|
|
177
155
|
readonly method: "GET";
|
|
178
156
|
readonly path: "/v1/me/checkout-sessions/{id}";
|
|
179
157
|
readonly group: "customer";
|
|
180
158
|
readonly auth: "customer";
|
|
181
|
-
readonly guards: readonly [];
|
|
182
159
|
readonly permission: null;
|
|
183
160
|
readonly sensitive: false;
|
|
184
161
|
readonly mountedWhen: null;
|
|
185
|
-
readonly scope: "billing_management";
|
|
186
162
|
readonly request: null;
|
|
187
163
|
readonly responses: {
|
|
188
164
|
readonly 200: "CheckoutSession";
|
|
189
165
|
};
|
|
190
|
-
readonly errors: readonly ["card_attempts_blocked", "card_declined", "card_not_saved", "checkout_session_not_found", "checkout_session_unavailable", "credential_custody_transition_required", "
|
|
166
|
+
readonly errors: readonly ["card_attempts_blocked", "card_declined", "card_not_saved", "checkout_session_not_found", "checkout_session_unavailable", "credential_custody_transition_required", "idempotency_key_reused", "insufficient_funds", "invalid_param", "payment_method_required", "payment_method_stale", "payment_provider_rejected", "resource_access_denied", "resource_conflict", "resource_not_found", "service_unavailable", "subscription_paid_through", "subscription_resumable"];
|
|
191
167
|
readonly errorSets: readonly ["tier:customer"];
|
|
192
168
|
}, {
|
|
193
169
|
readonly method: "POST";
|
|
194
170
|
readonly path: "/v1/me/checkout-sessions/{id}/pay";
|
|
195
171
|
readonly group: "customer";
|
|
196
172
|
readonly auth: "customer";
|
|
197
|
-
readonly guards: readonly [];
|
|
198
173
|
readonly permission: null;
|
|
199
174
|
readonly sensitive: false;
|
|
200
175
|
readonly mountedWhen: null;
|
|
201
|
-
readonly scope: "billing_management";
|
|
202
176
|
readonly request: "PayCheckoutSessionParams";
|
|
203
177
|
readonly responses: {
|
|
204
178
|
readonly 200: "CheckoutSessionPayResult";
|
|
205
179
|
};
|
|
206
|
-
readonly errors: readonly ["card_attempts_blocked", "card_declined", "card_not_saved", "card_requires_https", "checkout_offer_unavailable", "checkout_payment_in_progress", "checkout_request_invalid", "checkout_session_expired", "checkout_session_not_found", "checkout_session_unavailable", "credential_custody_transition_required", "customer_action_required", "
|
|
180
|
+
readonly errors: readonly ["card_attempts_blocked", "card_declined", "card_not_saved", "card_requires_https", "checkout_offer_unavailable", "checkout_payment_in_progress", "checkout_request_invalid", "checkout_session_expired", "checkout_session_not_found", "checkout_session_unavailable", "credential_custody_transition_required", "customer_action_required", "customer_proof_required", "idempotency_key_reused", "insufficient_funds", "invalid_param", "payment_method_required", "payment_method_stale", "payment_provider_rejected", "resource_access_denied", "resource_conflict", "resource_not_found", "service_unavailable", "subscription_paid_through", "subscription_resumable"];
|
|
207
181
|
readonly errorSets: readonly ["tier:customer", "request"];
|
|
208
182
|
}, {
|
|
209
183
|
readonly method: "GET";
|
|
210
184
|
readonly path: "/v1/captcha/status";
|
|
211
185
|
readonly group: "checkout";
|
|
212
186
|
readonly auth: "public";
|
|
213
|
-
readonly guards: readonly [];
|
|
214
187
|
readonly permission: null;
|
|
215
188
|
readonly sensitive: false;
|
|
216
189
|
readonly mountedWhen: null;
|
|
217
|
-
readonly scope: null;
|
|
218
190
|
readonly request: null;
|
|
219
191
|
readonly responses: {
|
|
220
192
|
readonly 200: "CaptchaStatus";
|
|
@@ -226,27 +198,122 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
226
198
|
readonly path: "/v1/captcha/client.js";
|
|
227
199
|
readonly group: "checkout";
|
|
228
200
|
readonly auth: "public";
|
|
229
|
-
readonly guards: readonly [];
|
|
230
201
|
readonly permission: null;
|
|
231
202
|
readonly sensitive: false;
|
|
232
203
|
readonly mountedWhen: null;
|
|
233
|
-
readonly scope: null;
|
|
234
204
|
readonly request: null;
|
|
235
205
|
readonly responses: {
|
|
236
206
|
readonly 200: "application/javascript";
|
|
237
207
|
};
|
|
238
208
|
readonly errors: readonly [];
|
|
239
209
|
readonly errorSets: readonly ["tier:public"];
|
|
210
|
+
}, {
|
|
211
|
+
readonly method: "POST";
|
|
212
|
+
readonly path: "/v1/me/orders/preview";
|
|
213
|
+
readonly group: "customer";
|
|
214
|
+
readonly auth: "customer";
|
|
215
|
+
readonly permission: null;
|
|
216
|
+
readonly sensitive: false;
|
|
217
|
+
readonly mountedWhen: null;
|
|
218
|
+
readonly request: "PreviewOrderParams";
|
|
219
|
+
readonly responses: {
|
|
220
|
+
readonly 200: "OrderPreview";
|
|
221
|
+
};
|
|
222
|
+
readonly errors: readonly ["already_owned", "invalid_param", "order_line_unavailable", "quantity_not_allowed", "resource_not_found", "service_unavailable"];
|
|
223
|
+
readonly errorSets: readonly ["tier:customer", "request"];
|
|
224
|
+
}, {
|
|
225
|
+
readonly method: "POST";
|
|
226
|
+
readonly path: "/v1/me/orders";
|
|
227
|
+
readonly group: "customer";
|
|
228
|
+
readonly auth: "customer";
|
|
229
|
+
readonly permission: null;
|
|
230
|
+
readonly sensitive: false;
|
|
231
|
+
readonly mountedWhen: null;
|
|
232
|
+
readonly request: "CreateOrderParams";
|
|
233
|
+
readonly responses: {
|
|
234
|
+
readonly 200: "Order";
|
|
235
|
+
readonly 201: "Order";
|
|
236
|
+
};
|
|
237
|
+
readonly errors: readonly ["already_owned", "card_attempts_blocked", "customer_action_required", "idempotency_key_in_use", "idempotency_key_required", "idempotency_key_reused", "invalid_param", "order_line_unavailable", "order_not_payable", "order_payment_in_progress", "order_total_changed", "payment_method_stale", "payment_option_unavailable", "quantity_not_allowed", "resource_conflict", "resource_not_found", "service_unavailable"];
|
|
238
|
+
readonly errorSets: readonly ["tier:customer", "request"];
|
|
239
|
+
}, {
|
|
240
|
+
readonly method: "GET";
|
|
241
|
+
readonly path: "/v1/me/orders";
|
|
242
|
+
readonly group: "customer";
|
|
243
|
+
readonly auth: "customer";
|
|
244
|
+
readonly permission: null;
|
|
245
|
+
readonly sensitive: false;
|
|
246
|
+
readonly mountedWhen: null;
|
|
247
|
+
readonly request: null;
|
|
248
|
+
readonly responses: {
|
|
249
|
+
readonly 200: "ListPage<Order>";
|
|
250
|
+
};
|
|
251
|
+
readonly errors: readonly ["invalid_cursor", "service_unavailable"];
|
|
252
|
+
readonly errorSets: readonly ["tier:customer", "request"];
|
|
253
|
+
}, {
|
|
254
|
+
readonly method: "GET";
|
|
255
|
+
readonly path: "/v1/me/orders/{id}";
|
|
256
|
+
readonly group: "customer";
|
|
257
|
+
readonly auth: "customer";
|
|
258
|
+
readonly permission: null;
|
|
259
|
+
readonly sensitive: false;
|
|
260
|
+
readonly mountedWhen: null;
|
|
261
|
+
readonly request: null;
|
|
262
|
+
readonly responses: {
|
|
263
|
+
readonly 200: "Order";
|
|
264
|
+
};
|
|
265
|
+
readonly errors: readonly ["resource_not_found", "service_unavailable"];
|
|
266
|
+
readonly errorSets: readonly ["tier:customer"];
|
|
267
|
+
}, {
|
|
268
|
+
readonly method: "POST";
|
|
269
|
+
readonly path: "/v1/me/orders/{id}/pay";
|
|
270
|
+
readonly group: "customer";
|
|
271
|
+
readonly auth: "customer";
|
|
272
|
+
readonly permission: null;
|
|
273
|
+
readonly sensitive: false;
|
|
274
|
+
readonly mountedWhen: null;
|
|
275
|
+
readonly request: "PayOrderParams";
|
|
276
|
+
readonly responses: {
|
|
277
|
+
readonly 200: "Order";
|
|
278
|
+
};
|
|
279
|
+
readonly errors: readonly ["card_attempts_blocked", "customer_action_required", "idempotency_key_in_use", "idempotency_key_required", "idempotency_key_reused", "invalid_param", "order_not_payable", "order_payment_in_progress", "order_total_changed", "payment_method_stale", "payment_option_unavailable", "resource_conflict", "resource_not_found", "service_unavailable"];
|
|
280
|
+
readonly errorSets: readonly ["tier:customer", "request"];
|
|
281
|
+
}, {
|
|
282
|
+
readonly method: "POST";
|
|
283
|
+
readonly path: "/v1/me/orders/{id}/confirm";
|
|
284
|
+
readonly group: "customer";
|
|
285
|
+
readonly auth: "customer";
|
|
286
|
+
readonly permission: null;
|
|
287
|
+
readonly sensitive: false;
|
|
288
|
+
readonly mountedWhen: null;
|
|
289
|
+
readonly request: null;
|
|
290
|
+
readonly responses: {
|
|
291
|
+
readonly 200: "Order";
|
|
292
|
+
};
|
|
293
|
+
readonly errors: readonly ["customer_action_required", "customer_session_required", "resource_conflict", "resource_not_found", "service_unavailable"];
|
|
294
|
+
readonly errorSets: readonly ["tier:customer"];
|
|
295
|
+
}, {
|
|
296
|
+
readonly method: "POST";
|
|
297
|
+
readonly path: "/v1/me/orders/{id}/cancel";
|
|
298
|
+
readonly group: "customer";
|
|
299
|
+
readonly auth: "customer";
|
|
300
|
+
readonly permission: null;
|
|
301
|
+
readonly sensitive: false;
|
|
302
|
+
readonly mountedWhen: null;
|
|
303
|
+
readonly request: null;
|
|
304
|
+
readonly responses: {
|
|
305
|
+
readonly 200: "Order";
|
|
306
|
+
};
|
|
307
|
+
readonly errors: readonly ["order_not_cancelable", "resource_not_found", "service_unavailable"];
|
|
308
|
+
readonly errorSets: readonly ["tier:customer"];
|
|
240
309
|
}, {
|
|
241
310
|
readonly method: "GET";
|
|
242
311
|
readonly path: "/v1/catalog/products";
|
|
243
312
|
readonly group: "checkout";
|
|
244
313
|
readonly auth: "public";
|
|
245
|
-
readonly guards: readonly [];
|
|
246
314
|
readonly permission: null;
|
|
247
315
|
readonly sensitive: false;
|
|
248
316
|
readonly mountedWhen: null;
|
|
249
|
-
readonly scope: null;
|
|
250
317
|
readonly request: null;
|
|
251
318
|
readonly responses: {
|
|
252
319
|
readonly 200: "ListPage<Product>";
|
|
@@ -258,11 +325,9 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
258
325
|
readonly path: "/v1/me/subscriptions/{id}/cancel";
|
|
259
326
|
readonly group: "customer";
|
|
260
327
|
readonly auth: "customer";
|
|
261
|
-
readonly guards: readonly [];
|
|
262
328
|
readonly permission: null;
|
|
263
329
|
readonly sensitive: false;
|
|
264
330
|
readonly mountedWhen: null;
|
|
265
|
-
readonly scope: "subscription_management";
|
|
266
331
|
readonly request: "CustomerCancelSubscriptionParams";
|
|
267
332
|
readonly responses: {
|
|
268
333
|
readonly 200: "Subscription";
|
|
@@ -274,11 +339,9 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
274
339
|
readonly path: "/v1/me/subscriptions/{id}/resume";
|
|
275
340
|
readonly group: "customer";
|
|
276
341
|
readonly auth: "customer";
|
|
277
|
-
readonly guards: readonly [];
|
|
278
342
|
readonly permission: null;
|
|
279
343
|
readonly sensitive: false;
|
|
280
344
|
readonly mountedWhen: null;
|
|
281
|
-
readonly scope: "subscription_management";
|
|
282
345
|
readonly request: null;
|
|
283
346
|
readonly responses: {
|
|
284
347
|
readonly 200: "Subscription";
|
|
@@ -290,27 +353,23 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
290
353
|
readonly path: "/v1/me/subscriptions/{id}/payment-method";
|
|
291
354
|
readonly group: "customer";
|
|
292
355
|
readonly auth: "customer";
|
|
293
|
-
readonly guards: readonly [];
|
|
294
356
|
readonly permission: null;
|
|
295
357
|
readonly sensitive: false;
|
|
296
358
|
readonly mountedWhen: null;
|
|
297
|
-
readonly scope: "subscription_management";
|
|
298
359
|
readonly request: "SetSubscriptionPaymentMethodParams";
|
|
299
360
|
readonly responses: {
|
|
300
361
|
readonly 200: "Subscription";
|
|
301
362
|
};
|
|
302
|
-
readonly errors: readonly ["authentication_required", "invalid_param", "payment_method_not_psp_vaulted", "payment_method_psp_mismatch", "payment_method_same_vault", "rebill_terms_committed", "resource_conflict", "resource_not_found", "service_unavailable"];
|
|
363
|
+
readonly errors: readonly ["authentication_required", "card_declined", "invalid_param", "payment_method_not_psp_vaulted", "payment_method_psp_mismatch", "payment_method_same_vault", "payment_provider_rejected", "rebill_terms_committed", "resource_conflict", "resource_not_found", "service_unavailable"];
|
|
303
364
|
readonly errorSets: readonly ["tier:customer", "request"];
|
|
304
365
|
}, {
|
|
305
366
|
readonly method: "GET";
|
|
306
367
|
readonly path: "/v1/me/subscriptions";
|
|
307
368
|
readonly group: "customer";
|
|
308
369
|
readonly auth: "customer";
|
|
309
|
-
readonly guards: readonly [];
|
|
310
370
|
readonly permission: null;
|
|
311
371
|
readonly sensitive: false;
|
|
312
372
|
readonly mountedWhen: null;
|
|
313
|
-
readonly scope: "billing_management";
|
|
314
373
|
readonly request: null;
|
|
315
374
|
readonly responses: {
|
|
316
375
|
readonly 200: "ListPage<Subscription>";
|
|
@@ -322,11 +381,9 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
322
381
|
readonly path: "/v1/me/subscriptions/{id}";
|
|
323
382
|
readonly group: "customer";
|
|
324
383
|
readonly auth: "customer";
|
|
325
|
-
readonly guards: readonly [];
|
|
326
384
|
readonly permission: null;
|
|
327
385
|
readonly sensitive: false;
|
|
328
386
|
readonly mountedWhen: null;
|
|
329
|
-
readonly scope: "billing_management";
|
|
330
387
|
readonly request: null;
|
|
331
388
|
readonly responses: {
|
|
332
389
|
readonly 200: "Subscription";
|
|
@@ -338,11 +395,9 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
338
395
|
readonly path: "/v1/me/subscriptions/{id}/retry-now";
|
|
339
396
|
readonly group: "customer";
|
|
340
397
|
readonly auth: "customer";
|
|
341
|
-
readonly guards: readonly [];
|
|
342
398
|
readonly permission: null;
|
|
343
399
|
readonly sensitive: false;
|
|
344
400
|
readonly mountedWhen: null;
|
|
345
|
-
readonly scope: "billing_management";
|
|
346
401
|
readonly request: "RetrySubscriptionNowParams";
|
|
347
402
|
readonly responses: {
|
|
348
403
|
readonly 200: "SubscriptionRetryNowResult";
|
|
@@ -355,44 +410,38 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
355
410
|
readonly path: "/v1/me/subscriptions/{id}/change-tier";
|
|
356
411
|
readonly group: "customer";
|
|
357
412
|
readonly auth: "customer";
|
|
358
|
-
readonly guards: readonly [];
|
|
359
413
|
readonly permission: null;
|
|
360
414
|
readonly sensitive: false;
|
|
361
415
|
readonly mountedWhen: null;
|
|
362
|
-
readonly scope: "self_service";
|
|
363
416
|
readonly request: "CustomerChangeTierParams";
|
|
364
417
|
readonly responses: {
|
|
365
418
|
readonly 200: "TierChange";
|
|
366
419
|
readonly 202: "TierChange";
|
|
367
420
|
};
|
|
368
|
-
readonly errors: readonly ["authentication_required", "card_declined", "customer_action_required", "customer_email_required", "invalid_param", "payment_duplicate_refused", "payment_method_stale", "payment_provider_rejected", "
|
|
421
|
+
readonly errors: readonly ["authentication_required", "card_declined", "customer_action_required", "customer_email_required", "invalid_param", "payment_duplicate_refused", "payment_method_stale", "payment_provider_rejected", "price_change_currency_mismatch", "price_not_found", "product_not_found", "rebill_terms_committed", "resource_conflict", "resource_not_found", "scheduled_change_exists", "service_unavailable", "solana_rpc_unavailable", "solana_transaction_refused", "subscription_not_active", "subscription_not_found", "tier_change_in_flight", "tier_change_period_unknown", "tier_change_provider_conflict", "tier_change_refused", "tier_change_requires_linked_plan", "tier_change_target_inactive", "tier_change_unsupported_on_rail"];
|
|
369
422
|
readonly errorSets: readonly ["tier:customer", "request"];
|
|
370
423
|
}, {
|
|
371
424
|
readonly method: "POST";
|
|
372
425
|
readonly path: "/v1/me/subscriptions/{id}/change-tier/preview";
|
|
373
426
|
readonly group: "customer";
|
|
374
427
|
readonly auth: "customer";
|
|
375
|
-
readonly guards: readonly [];
|
|
376
428
|
readonly permission: null;
|
|
377
429
|
readonly sensitive: false;
|
|
378
430
|
readonly mountedWhen: null;
|
|
379
|
-
readonly scope: "self_service";
|
|
380
431
|
readonly request: "ChangeTierParams";
|
|
381
432
|
readonly responses: {
|
|
382
433
|
readonly 200: "TierChangePreview";
|
|
383
434
|
};
|
|
384
|
-
readonly errors: readonly ["authentication_required", "card_declined", "customer_email_required", "invalid_param", "payment_method_stale", "payment_provider_rejected", "
|
|
435
|
+
readonly errors: readonly ["authentication_required", "card_declined", "customer_email_required", "invalid_param", "payment_method_stale", "payment_provider_rejected", "price_change_currency_mismatch", "price_not_found", "product_not_found", "resource_conflict", "resource_not_found", "service_unavailable", "subscription_not_active", "subscription_not_found", "tier_change_in_flight", "tier_change_period_unknown", "tier_change_provider_conflict", "tier_change_requires_linked_plan", "tier_change_target_inactive", "tier_change_unsupported_on_rail"];
|
|
385
436
|
readonly errorSets: readonly ["tier:customer", "request"];
|
|
386
437
|
}, {
|
|
387
438
|
readonly method: "GET";
|
|
388
439
|
readonly path: "/v1/me/entitlements";
|
|
389
440
|
readonly group: "customer";
|
|
390
441
|
readonly auth: "customer";
|
|
391
|
-
readonly guards: readonly [];
|
|
392
442
|
readonly permission: null;
|
|
393
443
|
readonly sensitive: false;
|
|
394
444
|
readonly mountedWhen: null;
|
|
395
|
-
readonly scope: "billing_management";
|
|
396
445
|
readonly request: null;
|
|
397
446
|
readonly responses: {
|
|
398
447
|
readonly 200: "ListPage<CustomerEntitlement>";
|
|
@@ -404,11 +453,9 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
404
453
|
readonly path: "/v1/me/product-access";
|
|
405
454
|
readonly group: "customer";
|
|
406
455
|
readonly auth: "customer";
|
|
407
|
-
readonly guards: readonly [];
|
|
408
456
|
readonly permission: null;
|
|
409
457
|
readonly sensitive: false;
|
|
410
458
|
readonly mountedWhen: null;
|
|
411
|
-
readonly scope: "billing_management";
|
|
412
459
|
readonly request: null;
|
|
413
460
|
readonly responses: {
|
|
414
461
|
readonly 200: "ListPage<ProductAccessGrant>";
|
|
@@ -420,11 +467,9 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
420
467
|
readonly path: "/v1/me/spend-limits";
|
|
421
468
|
readonly group: "customer";
|
|
422
469
|
readonly auth: "customer";
|
|
423
|
-
readonly guards: readonly [];
|
|
424
470
|
readonly permission: null;
|
|
425
471
|
readonly sensitive: false;
|
|
426
472
|
readonly mountedWhen: null;
|
|
427
|
-
readonly scope: "billing_management";
|
|
428
473
|
readonly request: null;
|
|
429
474
|
readonly responses: {
|
|
430
475
|
readonly 200: "SpendLimits";
|
|
@@ -433,30 +478,26 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
433
478
|
readonly errorSets: readonly ["tier:customer", "request"];
|
|
434
479
|
}, {
|
|
435
480
|
readonly method: "GET";
|
|
436
|
-
readonly path: "/v1/me
|
|
481
|
+
readonly path: "/v1/me";
|
|
437
482
|
readonly group: "customer";
|
|
438
483
|
readonly auth: "customer";
|
|
439
|
-
readonly guards: readonly [];
|
|
440
484
|
readonly permission: null;
|
|
441
485
|
readonly sensitive: false;
|
|
442
486
|
readonly mountedWhen: null;
|
|
443
|
-
readonly scope: "billing_management";
|
|
444
487
|
readonly request: null;
|
|
445
488
|
readonly responses: {
|
|
446
|
-
readonly 200: "
|
|
489
|
+
readonly 200: "CustomerAccount";
|
|
447
490
|
};
|
|
448
|
-
readonly errors: readonly [
|
|
449
|
-
readonly errorSets: readonly ["tier:customer"
|
|
491
|
+
readonly errors: readonly [];
|
|
492
|
+
readonly errorSets: readonly ["tier:customer"];
|
|
450
493
|
}, {
|
|
451
494
|
readonly method: "GET";
|
|
452
495
|
readonly path: "/v1/me/balance/transactions";
|
|
453
496
|
readonly group: "customer";
|
|
454
497
|
readonly auth: "customer";
|
|
455
|
-
readonly guards: readonly [];
|
|
456
498
|
readonly permission: null;
|
|
457
499
|
readonly sensitive: false;
|
|
458
500
|
readonly mountedWhen: null;
|
|
459
|
-
readonly scope: "billing_management";
|
|
460
501
|
readonly request: null;
|
|
461
502
|
readonly responses: {
|
|
462
503
|
readonly 200: "ListPage<BalanceTransaction>";
|
|
@@ -468,11 +509,9 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
468
509
|
readonly path: "/v1/me/usage";
|
|
469
510
|
readonly group: "customer";
|
|
470
511
|
readonly auth: "customer";
|
|
471
|
-
readonly guards: readonly [];
|
|
472
512
|
readonly permission: null;
|
|
473
513
|
readonly sensitive: false;
|
|
474
514
|
readonly mountedWhen: null;
|
|
475
|
-
readonly scope: "billing_management";
|
|
476
515
|
readonly request: null;
|
|
477
516
|
readonly responses: {
|
|
478
517
|
readonly 200: "Usage";
|
|
@@ -484,11 +523,9 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
484
523
|
readonly path: "/v1/me/invoices";
|
|
485
524
|
readonly group: "customer";
|
|
486
525
|
readonly auth: "customer";
|
|
487
|
-
readonly guards: readonly [];
|
|
488
526
|
readonly permission: null;
|
|
489
527
|
readonly sensitive: false;
|
|
490
528
|
readonly mountedWhen: null;
|
|
491
|
-
readonly scope: "billing_management";
|
|
492
529
|
readonly request: null;
|
|
493
530
|
readonly responses: {
|
|
494
531
|
readonly 200: "ListPage<Invoice>";
|
|
@@ -500,11 +537,9 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
500
537
|
readonly path: "/v1/me/invoices/{id}";
|
|
501
538
|
readonly group: "customer";
|
|
502
539
|
readonly auth: "customer";
|
|
503
|
-
readonly guards: readonly [];
|
|
504
540
|
readonly permission: null;
|
|
505
541
|
readonly sensitive: false;
|
|
506
542
|
readonly mountedWhen: null;
|
|
507
|
-
readonly scope: "billing_management";
|
|
508
543
|
readonly request: null;
|
|
509
544
|
readonly responses: {
|
|
510
545
|
readonly 200: "Invoice";
|
|
@@ -516,11 +551,9 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
516
551
|
readonly path: "/v1/me/invoices/{id}/pay-now";
|
|
517
552
|
readonly group: "customer";
|
|
518
553
|
readonly auth: "customer";
|
|
519
|
-
readonly guards: readonly [];
|
|
520
554
|
readonly permission: null;
|
|
521
555
|
readonly sensitive: false;
|
|
522
556
|
readonly mountedWhen: null;
|
|
523
|
-
readonly scope: "billing_management";
|
|
524
557
|
readonly request: "PayInvoiceParams";
|
|
525
558
|
readonly responses: {
|
|
526
559
|
readonly 200: "InvoicePayNow";
|
|
@@ -533,11 +566,9 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
533
566
|
readonly path: "/v1/me/payment-operations/{id}/authentication";
|
|
534
567
|
readonly group: "customer";
|
|
535
568
|
readonly auth: "customer";
|
|
536
|
-
readonly guards: readonly [];
|
|
537
569
|
readonly permission: null;
|
|
538
570
|
readonly sensitive: false;
|
|
539
571
|
readonly mountedWhen: null;
|
|
540
|
-
readonly scope: "billing_management";
|
|
541
572
|
readonly request: null;
|
|
542
573
|
readonly responses: {
|
|
543
574
|
readonly 200: "StripeEngineAuthentication";
|
|
@@ -549,11 +580,9 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
549
580
|
readonly path: "/v1/me/payment-operations/{id}/authentication/confirm";
|
|
550
581
|
readonly group: "customer";
|
|
551
582
|
readonly auth: "customer";
|
|
552
|
-
readonly guards: readonly [];
|
|
553
583
|
readonly permission: null;
|
|
554
584
|
readonly sensitive: false;
|
|
555
585
|
readonly mountedWhen: null;
|
|
556
|
-
readonly scope: "billing_management";
|
|
557
586
|
readonly request: null;
|
|
558
587
|
readonly responses: {
|
|
559
588
|
readonly 200: "PaymentOperation";
|
|
@@ -565,11 +594,9 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
565
594
|
readonly path: "/v1/me/payments";
|
|
566
595
|
readonly group: "customer";
|
|
567
596
|
readonly auth: "customer";
|
|
568
|
-
readonly guards: readonly [];
|
|
569
597
|
readonly permission: null;
|
|
570
598
|
readonly sensitive: false;
|
|
571
599
|
readonly mountedWhen: null;
|
|
572
|
-
readonly scope: "billing_management";
|
|
573
600
|
readonly request: null;
|
|
574
601
|
readonly responses: {
|
|
575
602
|
readonly 200: "ListPage<Payment>";
|
|
@@ -581,11 +608,9 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
581
608
|
readonly path: "/v1/me/collection-payment-method";
|
|
582
609
|
readonly group: "customer";
|
|
583
610
|
readonly auth: "customer";
|
|
584
|
-
readonly guards: readonly [];
|
|
585
611
|
readonly permission: null;
|
|
586
612
|
readonly sensitive: false;
|
|
587
613
|
readonly mountedWhen: null;
|
|
588
|
-
readonly scope: "subscription_management";
|
|
589
614
|
readonly request: "CollectionPaymentMethod";
|
|
590
615
|
readonly responses: {
|
|
591
616
|
readonly 200: "CollectionPaymentMethod";
|
|
@@ -597,11 +622,9 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
597
622
|
readonly path: "/v1/me/payment-methods";
|
|
598
623
|
readonly group: "customer";
|
|
599
624
|
readonly auth: "customer";
|
|
600
|
-
readonly guards: readonly [];
|
|
601
625
|
readonly permission: null;
|
|
602
626
|
readonly sensitive: false;
|
|
603
627
|
readonly mountedWhen: null;
|
|
604
|
-
readonly scope: "billing_management";
|
|
605
628
|
readonly request: null;
|
|
606
629
|
readonly responses: {
|
|
607
630
|
readonly 200: "ListPage<PaymentMethod>";
|
|
@@ -613,11 +636,9 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
613
636
|
readonly path: "/v1/me/payment-methods";
|
|
614
637
|
readonly group: "customer";
|
|
615
638
|
readonly auth: "customer";
|
|
616
|
-
readonly guards: readonly [];
|
|
617
639
|
readonly permission: null;
|
|
618
640
|
readonly sensitive: false;
|
|
619
641
|
readonly mountedWhen: null;
|
|
620
|
-
readonly scope: "billing_management";
|
|
621
642
|
readonly request: "CreatePaymentMethodParams";
|
|
622
643
|
readonly responses: {
|
|
623
644
|
readonly 201: "PaymentMethod";
|
|
@@ -629,11 +650,9 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
629
650
|
readonly path: "/v1/me/payment-methods/{id}";
|
|
630
651
|
readonly group: "customer";
|
|
631
652
|
readonly auth: "customer";
|
|
632
|
-
readonly guards: readonly [];
|
|
633
653
|
readonly permission: null;
|
|
634
654
|
readonly sensitive: false;
|
|
635
655
|
readonly mountedWhen: null;
|
|
636
|
-
readonly scope: "billing_management";
|
|
637
656
|
readonly request: "ReplacePaymentMethodCardParams";
|
|
638
657
|
readonly responses: {
|
|
639
658
|
readonly 200: "PaymentMethod";
|
|
@@ -646,11 +665,9 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
646
665
|
readonly path: "/v1/me/payment-methods/{id}";
|
|
647
666
|
readonly group: "customer";
|
|
648
667
|
readonly auth: "customer";
|
|
649
|
-
readonly guards: readonly [];
|
|
650
668
|
readonly permission: null;
|
|
651
669
|
readonly sensitive: false;
|
|
652
670
|
readonly mountedWhen: null;
|
|
653
|
-
readonly scope: "billing_management";
|
|
654
671
|
readonly request: null;
|
|
655
672
|
readonly responses: {
|
|
656
673
|
readonly 202: null;
|
|
@@ -663,11 +680,9 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
663
680
|
readonly path: "/v1/me/payment-method-setups";
|
|
664
681
|
readonly group: "customer";
|
|
665
682
|
readonly auth: "customer";
|
|
666
|
-
readonly guards: readonly [];
|
|
667
683
|
readonly permission: null;
|
|
668
684
|
readonly sensitive: false;
|
|
669
685
|
readonly mountedWhen: null;
|
|
670
|
-
readonly scope: "billing_management";
|
|
671
686
|
readonly request: "PaymentMethodSetupParams";
|
|
672
687
|
readonly responses: {
|
|
673
688
|
readonly 200: "PaymentMethodSetup";
|
|
@@ -679,11 +694,9 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
679
694
|
readonly path: "/v1/me/payment-method-setups/{id}";
|
|
680
695
|
readonly group: "customer";
|
|
681
696
|
readonly auth: "customer";
|
|
682
|
-
readonly guards: readonly [];
|
|
683
697
|
readonly permission: null;
|
|
684
698
|
readonly sensitive: false;
|
|
685
699
|
readonly mountedWhen: null;
|
|
686
|
-
readonly scope: "billing_management";
|
|
687
700
|
readonly request: null;
|
|
688
701
|
readonly responses: {
|
|
689
702
|
readonly 200: "PaymentMethodSetup";
|
|
@@ -695,11 +708,9 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
695
708
|
readonly path: "/v1/me/payment-method-setups/{id}/confirm";
|
|
696
709
|
readonly group: "customer";
|
|
697
710
|
readonly auth: "customer";
|
|
698
|
-
readonly guards: readonly [];
|
|
699
711
|
readonly permission: null;
|
|
700
712
|
readonly sensitive: false;
|
|
701
713
|
readonly mountedWhen: null;
|
|
702
|
-
readonly scope: "billing_management";
|
|
703
714
|
readonly request: null;
|
|
704
715
|
readonly responses: {
|
|
705
716
|
readonly 200: "PaymentMethodSetup";
|
|
@@ -711,11 +722,9 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
711
722
|
readonly path: "/v1/me/billing-portal";
|
|
712
723
|
readonly group: "customer";
|
|
713
724
|
readonly auth: "customer";
|
|
714
|
-
readonly guards: readonly [];
|
|
715
725
|
readonly permission: null;
|
|
716
726
|
readonly sensitive: false;
|
|
717
727
|
readonly mountedWhen: "stripe_portal";
|
|
718
|
-
readonly scope: "self_service";
|
|
719
728
|
readonly request: null;
|
|
720
729
|
readonly responses: {
|
|
721
730
|
readonly 200: "PortalResponse";
|
|
@@ -727,43 +736,23 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
727
736
|
readonly path: "/v1/me/notifications";
|
|
728
737
|
readonly group: "customer";
|
|
729
738
|
readonly auth: "customer";
|
|
730
|
-
readonly guards: readonly [];
|
|
731
739
|
readonly permission: null;
|
|
732
740
|
readonly sensitive: false;
|
|
733
741
|
readonly mountedWhen: null;
|
|
734
|
-
readonly scope: "billing_management";
|
|
735
742
|
readonly request: null;
|
|
736
743
|
readonly responses: {
|
|
737
744
|
readonly 200: "ListPage<Notification>";
|
|
738
745
|
};
|
|
739
746
|
readonly errors: readonly ["invalid_cursor"];
|
|
740
747
|
readonly errorSets: readonly ["tier:customer", "request"];
|
|
741
|
-
}, {
|
|
742
|
-
readonly method: "GET";
|
|
743
|
-
readonly path: "/v1/me/notifications/unread-count";
|
|
744
|
-
readonly group: "customer";
|
|
745
|
-
readonly auth: "customer";
|
|
746
|
-
readonly guards: readonly [];
|
|
747
|
-
readonly permission: null;
|
|
748
|
-
readonly sensitive: false;
|
|
749
|
-
readonly mountedWhen: null;
|
|
750
|
-
readonly scope: "billing_management";
|
|
751
|
-
readonly request: null;
|
|
752
|
-
readonly responses: {
|
|
753
|
-
readonly 200: "UnreadCount";
|
|
754
|
-
};
|
|
755
|
-
readonly errors: readonly [];
|
|
756
|
-
readonly errorSets: readonly ["tier:customer"];
|
|
757
748
|
}, {
|
|
758
749
|
readonly method: "POST";
|
|
759
750
|
readonly path: "/v1/me/notifications/read";
|
|
760
751
|
readonly group: "customer";
|
|
761
752
|
readonly auth: "customer";
|
|
762
|
-
readonly guards: readonly [];
|
|
763
753
|
readonly permission: null;
|
|
764
754
|
readonly sensitive: false;
|
|
765
755
|
readonly mountedWhen: null;
|
|
766
|
-
readonly scope: "billing_management";
|
|
767
756
|
readonly request: "MarkNotificationsReadParams";
|
|
768
757
|
readonly responses: {
|
|
769
758
|
readonly 200: "CustomerNotificationLookup";
|