@openrails/billing-ui 0.235.0 → 0.237.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 +155 -0
- package/README.md +103 -103
- package/dist/account/account-billing.d.ts +2 -4
- package/dist/account/payment-methods-panel.d.ts +2 -4
- package/dist/buy-button.d.ts +40 -0
- package/dist/cart.d.ts +18 -0
- package/dist/client/client.d.ts +95 -59
- package/dist/client/errors.d.ts +4 -0
- package/dist/client/generated/error-codes.d.ts +1 -1
- package/dist/client/generated/routes.d.ts +103 -272
- package/dist/client/generated/wire.d.ts +117 -246
- package/dist/client/index.d.ts +2 -2
- package/dist/client/types.d.ts +286 -142
- package/dist/client-D9G1Tgox.js +888 -0
- package/dist/client-D9G1Tgox.js.map +1 -0
- package/dist/client.js +2 -2
- package/dist/components/eyebrow.d.ts +5 -0
- package/dist/components/stripe-card.d.ts +8 -2
- package/dist/components/stripe-wallets.d.ts +12 -0
- package/dist/components/ui/badge.d.ts +1 -1
- package/dist/components/ui/button.d.ts +1 -1
- package/dist/embedded-checkout.d.ts +22 -0
- package/dist/hooks-DYepYVMX.js +526 -0
- package/dist/hooks-DYepYVMX.js.map +1 -0
- package/dist/i18n/context.d.ts +1 -1
- package/dist/index.d.ts +9 -11
- package/dist/index.js +1470 -2178
- package/dist/index.js.map +1 -1
- package/dist/lib/money.d.ts +1 -0
- package/dist/lib/offer-label.d.ts +4 -0
- package/dist/locales/de.js +20 -0
- package/dist/locales/de.js.map +1 -1
- package/dist/locales/en.d.ts +20 -0
- package/dist/locales/en.js +20 -0
- package/dist/locales/en.js.map +1 -1
- package/dist/locales/es.js +20 -0
- package/dist/locales/es.js.map +1 -1
- package/dist/locales/ja.js +11 -0
- package/dist/locales/ja.js.map +1 -1
- package/dist/locales/ko.js +11 -0
- package/dist/locales/ko.js.map +1 -1
- package/dist/locales/zh.js +11 -0
- package/dist/locales/zh.js.map +1 -1
- package/dist/modal.d.ts +3 -9
- package/dist/offers.d.ts +32 -0
- package/dist/order-checkout.d.ts +30 -0
- package/dist/psp.d.ts +0 -8
- package/dist/react/hooks.d.ts +8 -7
- package/dist/react/index.d.ts +1 -1
- package/dist/react/provider.d.ts +24 -2
- package/dist/react.js +2 -33
- package/dist/save-payment-method.d.ts +0 -6
- package/dist/styles.css +1 -1
- package/dist/tokenized-card-form.d.ts +5 -1
- package/dist/types.d.ts +12 -250
- package/docs/payment-form-contract.md +31 -74
- package/package.json +1 -2
- package/dist/checkout-frame.d.ts +0 -17
- package/dist/checkout-page.d.ts +0 -21
- package/dist/checkout.d.ts +0 -24
- package/dist/client-BpzCZes3.js +0 -931
- package/dist/client-BpzCZes3.js.map +0 -1
- package/dist/components/ccbill-fields.d.ts +0 -8
- package/dist/components/methods.d.ts +0 -13
- package/dist/components/summary.d.ts +0 -12
- package/dist/config-qLcHvK0Q.js +0 -341
- package/dist/config-qLcHvK0Q.js.map +0 -1
- package/dist/fixtures.d.ts +0 -9
- package/dist/frame.d.ts +0 -47
- package/dist/lib/rail-meta.d.ts +0 -15
- package/dist/lib/redirect.d.ts +0 -2
- package/dist/provider.d.ts +0 -18
- package/dist/react.js.map +0 -1
- package/dist/source.d.ts +0 -5
|
@@ -54,92 +54,51 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
54
54
|
readonly errors: readonly [];
|
|
55
55
|
readonly errorSets: readonly ["tier:public"];
|
|
56
56
|
}, {
|
|
57
|
-
readonly method: "
|
|
58
|
-
readonly path: "/v1/
|
|
59
|
-
readonly group: "
|
|
60
|
-
readonly auth: "
|
|
61
|
-
readonly permission: null;
|
|
62
|
-
readonly sensitive: false;
|
|
63
|
-
readonly mountedWhen: "solana";
|
|
64
|
-
readonly request: null;
|
|
65
|
-
readonly responses: {
|
|
66
|
-
readonly 200: "SupportedTokensResponse";
|
|
67
|
-
};
|
|
68
|
-
readonly errors: readonly ["credential_custody_transition_required", "resource_conflict"];
|
|
69
|
-
readonly errorSets: readonly ["tier:public", "request"];
|
|
70
|
-
}, {
|
|
71
|
-
readonly method: "GET";
|
|
72
|
-
readonly path: "/v1/checkout-sessions/{id}";
|
|
73
|
-
readonly group: "checkout";
|
|
74
|
-
readonly auth: "checkout_session";
|
|
57
|
+
readonly method: "POST";
|
|
58
|
+
readonly path: "/v1/me/orders/preview";
|
|
59
|
+
readonly group: "customer";
|
|
60
|
+
readonly auth: "customer";
|
|
75
61
|
readonly permission: null;
|
|
76
62
|
readonly sensitive: false;
|
|
77
63
|
readonly mountedWhen: null;
|
|
78
|
-
readonly request:
|
|
64
|
+
readonly request: "PreviewMyOrderParams";
|
|
79
65
|
readonly responses: {
|
|
80
|
-
readonly 200: "
|
|
66
|
+
readonly 200: "OrderPreview";
|
|
81
67
|
};
|
|
82
|
-
readonly errors: readonly ["
|
|
83
|
-
readonly errorSets: readonly ["tier:
|
|
68
|
+
readonly errors: readonly ["already_owned", "invalid_param", "order_line_unavailable", "quantity_not_allowed", "resource_not_found", "service_unavailable"];
|
|
69
|
+
readonly errorSets: readonly ["tier:customer", "request"];
|
|
84
70
|
}, {
|
|
85
71
|
readonly method: "POST";
|
|
86
|
-
readonly path: "/v1/
|
|
87
|
-
readonly group: "
|
|
88
|
-
readonly auth: "
|
|
72
|
+
readonly path: "/v1/me/orders";
|
|
73
|
+
readonly group: "customer";
|
|
74
|
+
readonly auth: "customer";
|
|
89
75
|
readonly permission: null;
|
|
90
76
|
readonly sensitive: false;
|
|
91
77
|
readonly mountedWhen: null;
|
|
92
|
-
readonly request: "
|
|
78
|
+
readonly request: "CreateMyOrderParams";
|
|
93
79
|
readonly responses: {
|
|
94
|
-
readonly 200: "
|
|
80
|
+
readonly 200: "Order";
|
|
81
|
+
readonly 201: "Order";
|
|
95
82
|
};
|
|
96
|
-
readonly errors: readonly ["
|
|
97
|
-
readonly errorSets: readonly ["tier:
|
|
83
|
+
readonly errors: readonly ["already_owned", "card_attempts_blocked", "card_declined", "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_failed", "payment_method_stale", "payment_option_unavailable", "payment_provider_rejected", "quantity_not_allowed", "resource_conflict", "resource_not_found", "service_unavailable"];
|
|
84
|
+
readonly errorSets: readonly ["tier:customer", "request"];
|
|
98
85
|
}, {
|
|
99
86
|
readonly method: "GET";
|
|
100
|
-
readonly path: "/v1/
|
|
101
|
-
readonly group: "checkout";
|
|
102
|
-
readonly auth: "session_id";
|
|
103
|
-
readonly permission: null;
|
|
104
|
-
readonly sensitive: false;
|
|
105
|
-
readonly mountedWhen: "solana";
|
|
106
|
-
readonly request: null;
|
|
107
|
-
readonly responses: {
|
|
108
|
-
readonly 200: "SolanaPayGetResponse";
|
|
109
|
-
};
|
|
110
|
-
readonly errors: readonly ["checkout_attempt_expired", "invalid_param", "resource_conflict", "resource_not_found"];
|
|
111
|
-
readonly errorSets: readonly ["tier:session_id"];
|
|
112
|
-
}, {
|
|
113
|
-
readonly method: "POST";
|
|
114
|
-
readonly path: "/v1/checkout-attempts/{id}/solana-pay";
|
|
115
|
-
readonly group: "checkout";
|
|
116
|
-
readonly auth: "session_id";
|
|
117
|
-
readonly permission: null;
|
|
118
|
-
readonly sensitive: false;
|
|
119
|
-
readonly mountedWhen: "solana";
|
|
120
|
-
readonly request: "SolanaPayPostRequest";
|
|
121
|
-
readonly responses: {
|
|
122
|
-
readonly 200: "SolanaPayPostResponse";
|
|
123
|
-
};
|
|
124
|
-
readonly errors: readonly ["checkout_attempt_expired", "invalid_param", "resource_conflict", "resource_not_found"];
|
|
125
|
-
readonly errorSets: readonly ["tier:session_id", "request"];
|
|
126
|
-
}, {
|
|
127
|
-
readonly method: "POST";
|
|
128
|
-
readonly path: "/v1/me/checkout-sessions";
|
|
87
|
+
readonly path: "/v1/me/orders";
|
|
129
88
|
readonly group: "customer";
|
|
130
89
|
readonly auth: "customer";
|
|
131
90
|
readonly permission: null;
|
|
132
91
|
readonly sensitive: false;
|
|
133
92
|
readonly mountedWhen: null;
|
|
134
|
-
readonly request:
|
|
93
|
+
readonly request: null;
|
|
135
94
|
readonly responses: {
|
|
136
|
-
readonly
|
|
95
|
+
readonly 200: "ListPage<Order>";
|
|
137
96
|
};
|
|
138
|
-
readonly errors: readonly ["
|
|
97
|
+
readonly errors: readonly ["invalid_cursor", "invalid_query", "service_unavailable"];
|
|
139
98
|
readonly errorSets: readonly ["tier:customer", "request"];
|
|
140
99
|
}, {
|
|
141
100
|
readonly method: "GET";
|
|
142
|
-
readonly path: "/v1/me/
|
|
101
|
+
readonly path: "/v1/me/orders/{id}";
|
|
143
102
|
readonly group: "customer";
|
|
144
103
|
readonly auth: "customer";
|
|
145
104
|
readonly permission: null;
|
|
@@ -147,140 +106,111 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
147
106
|
readonly mountedWhen: null;
|
|
148
107
|
readonly request: null;
|
|
149
108
|
readonly responses: {
|
|
150
|
-
readonly 200: "
|
|
109
|
+
readonly 200: "Order";
|
|
151
110
|
};
|
|
152
|
-
readonly errors: readonly ["
|
|
111
|
+
readonly errors: readonly ["resource_not_found", "service_unavailable"];
|
|
153
112
|
readonly errorSets: readonly ["tier:customer"];
|
|
154
113
|
}, {
|
|
155
114
|
readonly method: "POST";
|
|
156
|
-
readonly path: "/v1/me/
|
|
115
|
+
readonly path: "/v1/me/orders/{id}/pay";
|
|
157
116
|
readonly group: "customer";
|
|
158
117
|
readonly auth: "customer";
|
|
159
118
|
readonly permission: null;
|
|
160
119
|
readonly sensitive: false;
|
|
161
120
|
readonly mountedWhen: null;
|
|
162
|
-
readonly request: "
|
|
121
|
+
readonly request: "PayOrderParams";
|
|
163
122
|
readonly responses: {
|
|
164
|
-
readonly 200: "
|
|
123
|
+
readonly 200: "Order";
|
|
165
124
|
};
|
|
166
|
-
readonly errors: readonly ["card_attempts_blocked", "card_declined", "
|
|
125
|
+
readonly errors: readonly ["card_attempts_blocked", "card_declined", "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_failed", "payment_method_stale", "payment_option_unavailable", "payment_provider_rejected", "resource_conflict", "resource_not_found", "service_unavailable"];
|
|
167
126
|
readonly errorSets: readonly ["tier:customer", "request"];
|
|
168
|
-
}, {
|
|
169
|
-
readonly method: "GET";
|
|
170
|
-
readonly path: "/v1/captcha/status";
|
|
171
|
-
readonly group: "checkout";
|
|
172
|
-
readonly auth: "public";
|
|
173
|
-
readonly permission: null;
|
|
174
|
-
readonly sensitive: false;
|
|
175
|
-
readonly mountedWhen: null;
|
|
176
|
-
readonly request: null;
|
|
177
|
-
readonly responses: {
|
|
178
|
-
readonly 200: "CaptchaStatus";
|
|
179
|
-
};
|
|
180
|
-
readonly errors: readonly [];
|
|
181
|
-
readonly errorSets: readonly ["tier:public"];
|
|
182
|
-
}, {
|
|
183
|
-
readonly method: "GET";
|
|
184
|
-
readonly path: "/v1/captcha/client.js";
|
|
185
|
-
readonly group: "checkout";
|
|
186
|
-
readonly auth: "public";
|
|
187
|
-
readonly permission: null;
|
|
188
|
-
readonly sensitive: false;
|
|
189
|
-
readonly mountedWhen: null;
|
|
190
|
-
readonly request: null;
|
|
191
|
-
readonly responses: {
|
|
192
|
-
readonly 200: "application/javascript";
|
|
193
|
-
};
|
|
194
|
-
readonly errors: readonly [];
|
|
195
|
-
readonly errorSets: readonly ["tier:public"];
|
|
196
127
|
}, {
|
|
197
128
|
readonly method: "POST";
|
|
198
|
-
readonly path: "/v1/me/orders/
|
|
129
|
+
readonly path: "/v1/me/orders/{id}/confirm";
|
|
199
130
|
readonly group: "customer";
|
|
200
131
|
readonly auth: "customer";
|
|
201
132
|
readonly permission: null;
|
|
202
133
|
readonly sensitive: false;
|
|
203
134
|
readonly mountedWhen: null;
|
|
204
|
-
readonly request:
|
|
135
|
+
readonly request: null;
|
|
205
136
|
readonly responses: {
|
|
206
|
-
readonly 200: "
|
|
137
|
+
readonly 200: "Order";
|
|
207
138
|
};
|
|
208
|
-
readonly errors: readonly ["
|
|
209
|
-
readonly errorSets: readonly ["tier:customer"
|
|
139
|
+
readonly errors: readonly ["card_declined", "customer_action_required", "customer_session_required", "invalid_param", "payment_failed", "resource_conflict", "resource_not_found", "service_unavailable"];
|
|
140
|
+
readonly errorSets: readonly ["tier:customer"];
|
|
210
141
|
}, {
|
|
211
142
|
readonly method: "POST";
|
|
212
|
-
readonly path: "/v1/me/orders";
|
|
143
|
+
readonly path: "/v1/me/orders/{id}/cancel";
|
|
213
144
|
readonly group: "customer";
|
|
214
145
|
readonly auth: "customer";
|
|
215
146
|
readonly permission: null;
|
|
216
147
|
readonly sensitive: false;
|
|
217
148
|
readonly mountedWhen: null;
|
|
218
|
-
readonly request:
|
|
149
|
+
readonly request: null;
|
|
219
150
|
readonly responses: {
|
|
220
151
|
readonly 200: "Order";
|
|
221
|
-
readonly 201: "Order";
|
|
222
152
|
};
|
|
223
|
-
readonly errors: readonly ["
|
|
224
|
-
readonly errorSets: readonly ["tier:customer"
|
|
153
|
+
readonly errors: readonly ["order_not_cancelable", "resource_not_found", "service_unavailable"];
|
|
154
|
+
readonly errorSets: readonly ["tier:customer"];
|
|
225
155
|
}, {
|
|
226
156
|
readonly method: "GET";
|
|
227
|
-
readonly path: "/v1/
|
|
228
|
-
readonly group: "
|
|
229
|
-
readonly auth: "
|
|
157
|
+
readonly path: "/v1/orders/{id}/solana-pay";
|
|
158
|
+
readonly group: "checkout";
|
|
159
|
+
readonly auth: "public";
|
|
230
160
|
readonly permission: null;
|
|
231
161
|
readonly sensitive: false;
|
|
232
|
-
readonly mountedWhen:
|
|
162
|
+
readonly mountedWhen: "solana";
|
|
233
163
|
readonly request: null;
|
|
234
164
|
readonly responses: {
|
|
235
|
-
readonly 200: "
|
|
165
|
+
readonly 200: "SolanaPayGetResponse";
|
|
236
166
|
};
|
|
237
|
-
readonly errors: readonly ["
|
|
238
|
-
readonly errorSets: readonly ["tier:
|
|
167
|
+
readonly errors: readonly ["order_not_payable", "resource_conflict", "resource_not_found", "service_unavailable"];
|
|
168
|
+
readonly errorSets: readonly ["tier:public"];
|
|
239
169
|
}, {
|
|
240
|
-
readonly method: "
|
|
241
|
-
readonly path: "/v1/
|
|
242
|
-
readonly group: "
|
|
243
|
-
readonly auth: "
|
|
170
|
+
readonly method: "POST";
|
|
171
|
+
readonly path: "/v1/orders/{id}/solana-pay";
|
|
172
|
+
readonly group: "checkout";
|
|
173
|
+
readonly auth: "public";
|
|
244
174
|
readonly permission: null;
|
|
245
175
|
readonly sensitive: false;
|
|
246
|
-
readonly mountedWhen:
|
|
247
|
-
readonly request:
|
|
176
|
+
readonly mountedWhen: "solana";
|
|
177
|
+
readonly request: "SolanaPayPostRequest";
|
|
248
178
|
readonly responses: {
|
|
249
|
-
readonly 200: "
|
|
179
|
+
readonly 200: "SolanaPayPostResponse";
|
|
250
180
|
};
|
|
251
|
-
readonly errors: readonly ["resource_not_found", "service_unavailable"];
|
|
252
|
-
readonly errorSets: readonly ["tier:
|
|
181
|
+
readonly errors: readonly ["invalid_param", "order_not_payable", "resource_conflict", "resource_not_found", "service_unavailable"];
|
|
182
|
+
readonly errorSets: readonly ["tier:public", "request"];
|
|
253
183
|
}, {
|
|
254
|
-
readonly method: "
|
|
255
|
-
readonly path: "/v1/me/
|
|
184
|
+
readonly method: "GET";
|
|
185
|
+
readonly path: "/v1/me/cart";
|
|
256
186
|
readonly group: "customer";
|
|
257
187
|
readonly auth: "customer";
|
|
258
188
|
readonly permission: null;
|
|
259
189
|
readonly sensitive: false;
|
|
260
190
|
readonly mountedWhen: null;
|
|
261
|
-
readonly request:
|
|
191
|
+
readonly request: null;
|
|
262
192
|
readonly responses: {
|
|
263
|
-
readonly 200: "
|
|
193
|
+
readonly 200: "Cart";
|
|
264
194
|
};
|
|
265
|
-
readonly errors: readonly ["
|
|
266
|
-
readonly errorSets: readonly ["tier:customer"
|
|
195
|
+
readonly errors: readonly ["service_unavailable"];
|
|
196
|
+
readonly errorSets: readonly ["tier:customer"];
|
|
267
197
|
}, {
|
|
268
|
-
readonly method: "
|
|
269
|
-
readonly path: "/v1/me/
|
|
198
|
+
readonly method: "PUT";
|
|
199
|
+
readonly path: "/v1/me/cart/lines/{price_id}";
|
|
270
200
|
readonly group: "customer";
|
|
271
201
|
readonly auth: "customer";
|
|
272
202
|
readonly permission: null;
|
|
273
203
|
readonly sensitive: false;
|
|
274
204
|
readonly mountedWhen: null;
|
|
275
|
-
readonly request:
|
|
205
|
+
readonly request: "SetCartLineParams";
|
|
276
206
|
readonly responses: {
|
|
277
|
-
readonly 200: "
|
|
207
|
+
readonly 200: "Cart";
|
|
278
208
|
};
|
|
279
|
-
readonly errors: readonly ["
|
|
280
|
-
readonly errorSets: readonly ["tier:customer"];
|
|
209
|
+
readonly errors: readonly ["invalid_param", "resource_not_found", "service_unavailable"];
|
|
210
|
+
readonly errorSets: readonly ["tier:customer", "request"];
|
|
281
211
|
}, {
|
|
282
|
-
readonly method: "
|
|
283
|
-
readonly path: "/v1/me/
|
|
212
|
+
readonly method: "DELETE";
|
|
213
|
+
readonly path: "/v1/me/cart";
|
|
284
214
|
readonly group: "customer";
|
|
285
215
|
readonly auth: "customer";
|
|
286
216
|
readonly permission: null;
|
|
@@ -288,9 +218,9 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
288
218
|
readonly mountedWhen: null;
|
|
289
219
|
readonly request: null;
|
|
290
220
|
readonly responses: {
|
|
291
|
-
readonly
|
|
221
|
+
readonly 204: null;
|
|
292
222
|
};
|
|
293
|
-
readonly errors: readonly ["
|
|
223
|
+
readonly errors: readonly ["service_unavailable"];
|
|
294
224
|
readonly errorSets: readonly ["tier:customer"];
|
|
295
225
|
}, {
|
|
296
226
|
readonly method: "GET";
|
|
@@ -304,7 +234,7 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
304
234
|
readonly responses: {
|
|
305
235
|
readonly 200: "ListPage<Product>";
|
|
306
236
|
};
|
|
307
|
-
readonly errors: readonly [];
|
|
237
|
+
readonly errors: readonly ["invalid_query"];
|
|
308
238
|
readonly errorSets: readonly ["tier:public", "request"];
|
|
309
239
|
}, {
|
|
310
240
|
readonly method: "POST";
|
|
@@ -434,34 +364,6 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
434
364
|
};
|
|
435
365
|
readonly errors: readonly ["authentication_required", "invalid_cursor", "invalid_param", "invalid_query"];
|
|
436
366
|
readonly errorSets: readonly ["tier:customer", "request"];
|
|
437
|
-
}, {
|
|
438
|
-
readonly method: "GET";
|
|
439
|
-
readonly path: "/v1/me/product-access";
|
|
440
|
-
readonly group: "customer";
|
|
441
|
-
readonly auth: "customer";
|
|
442
|
-
readonly permission: null;
|
|
443
|
-
readonly sensitive: false;
|
|
444
|
-
readonly mountedWhen: null;
|
|
445
|
-
readonly request: null;
|
|
446
|
-
readonly responses: {
|
|
447
|
-
readonly 200: "ListPage<ProductAccessGrant>";
|
|
448
|
-
};
|
|
449
|
-
readonly errors: readonly ["authentication_required", "invalid_cursor", "invalid_param", "invalid_query"];
|
|
450
|
-
readonly errorSets: readonly ["tier:customer", "request"];
|
|
451
|
-
}, {
|
|
452
|
-
readonly method: "GET";
|
|
453
|
-
readonly path: "/v1/me/spend-limits";
|
|
454
|
-
readonly group: "customer";
|
|
455
|
-
readonly auth: "customer";
|
|
456
|
-
readonly permission: null;
|
|
457
|
-
readonly sensitive: false;
|
|
458
|
-
readonly mountedWhen: null;
|
|
459
|
-
readonly request: null;
|
|
460
|
-
readonly responses: {
|
|
461
|
-
readonly 200: "SpendLimits";
|
|
462
|
-
};
|
|
463
|
-
readonly errors: readonly ["currency_unsupported"];
|
|
464
|
-
readonly errorSets: readonly ["tier:customer", "request"];
|
|
465
367
|
}, {
|
|
466
368
|
readonly method: "GET";
|
|
467
369
|
readonly path: "/v1/me";
|
|
@@ -504,49 +406,6 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
504
406
|
};
|
|
505
407
|
readonly errors: readonly ["currency_unsupported"];
|
|
506
408
|
readonly errorSets: readonly ["tier:customer", "request"];
|
|
507
|
-
}, {
|
|
508
|
-
readonly method: "GET";
|
|
509
|
-
readonly path: "/v1/me/invoices";
|
|
510
|
-
readonly group: "customer";
|
|
511
|
-
readonly auth: "customer";
|
|
512
|
-
readonly permission: null;
|
|
513
|
-
readonly sensitive: false;
|
|
514
|
-
readonly mountedWhen: null;
|
|
515
|
-
readonly request: null;
|
|
516
|
-
readonly responses: {
|
|
517
|
-
readonly 200: "ListPage<Invoice>";
|
|
518
|
-
};
|
|
519
|
-
readonly errors: readonly ["invalid_cursor"];
|
|
520
|
-
readonly errorSets: readonly ["tier:customer", "request"];
|
|
521
|
-
}, {
|
|
522
|
-
readonly method: "GET";
|
|
523
|
-
readonly path: "/v1/me/invoices/{id}";
|
|
524
|
-
readonly group: "customer";
|
|
525
|
-
readonly auth: "customer";
|
|
526
|
-
readonly permission: null;
|
|
527
|
-
readonly sensitive: false;
|
|
528
|
-
readonly mountedWhen: null;
|
|
529
|
-
readonly request: null;
|
|
530
|
-
readonly responses: {
|
|
531
|
-
readonly 200: "Invoice";
|
|
532
|
-
};
|
|
533
|
-
readonly errors: readonly ["invalid_param", "resource_not_found"];
|
|
534
|
-
readonly errorSets: readonly ["tier:customer"];
|
|
535
|
-
}, {
|
|
536
|
-
readonly method: "POST";
|
|
537
|
-
readonly path: "/v1/me/invoices/{id}/pay-now";
|
|
538
|
-
readonly group: "customer";
|
|
539
|
-
readonly auth: "customer";
|
|
540
|
-
readonly permission: null;
|
|
541
|
-
readonly sensitive: false;
|
|
542
|
-
readonly mountedWhen: null;
|
|
543
|
-
readonly request: "PayInvoiceParams";
|
|
544
|
-
readonly responses: {
|
|
545
|
-
readonly 200: "InvoicePayNow";
|
|
546
|
-
readonly 202: "InvoicePayNow";
|
|
547
|
-
};
|
|
548
|
-
readonly errors: readonly ["card_declined", "customer_action_required", "customer_payment_unsupported", "invalid_param", "invalid_payment_method", "payment_idempotency_conflict", "payment_in_progress", "payment_method_required", "payment_not_retryable", "payment_provider_rejected", "rebill_terms_committed", "resource_conflict", "resource_not_found", "service_unavailable"];
|
|
549
|
-
readonly errorSets: readonly ["tier:customer", "request"];
|
|
550
409
|
}, {
|
|
551
410
|
readonly method: "GET";
|
|
552
411
|
readonly path: "/v1/me/payment-operations/{id}/authentication";
|
|
@@ -629,22 +488,7 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
629
488
|
readonly responses: {
|
|
630
489
|
readonly 201: "PaymentMethod";
|
|
631
490
|
};
|
|
632
|
-
readonly errors: readonly ["card_attempts_blocked", "card_declined", "card_not_saved", "card_requires_https", "
|
|
633
|
-
readonly errorSets: readonly ["tier:customer", "request"];
|
|
634
|
-
}, {
|
|
635
|
-
readonly method: "PUT";
|
|
636
|
-
readonly path: "/v1/me/payment-methods/{id}";
|
|
637
|
-
readonly group: "customer";
|
|
638
|
-
readonly auth: "customer";
|
|
639
|
-
readonly permission: null;
|
|
640
|
-
readonly sensitive: false;
|
|
641
|
-
readonly mountedWhen: null;
|
|
642
|
-
readonly request: "ReplacePaymentMethodCardParams";
|
|
643
|
-
readonly responses: {
|
|
644
|
-
readonly 200: "PaymentMethod";
|
|
645
|
-
readonly 202: null;
|
|
646
|
-
};
|
|
647
|
-
readonly errors: readonly ["card_declined", "card_not_saved", "card_requires_https", "credential_custody_transition_required", "invalid_param", "payment_method_update_failed", "payment_method_update_retry_required", "payment_method_update_unsupported", "payment_provider_rejected", "resource_conflict", "resource_not_found", "service_unavailable"];
|
|
491
|
+
readonly errors: readonly ["card_attempts_blocked", "card_declined", "card_not_saved", "card_requires_https", "invalid_param", "payment_duplicate_refused", "payment_method_stale", "payment_provider_rejected", "provider_outcome_unknown", "service_unavailable"];
|
|
648
492
|
readonly errorSets: readonly ["tier:customer", "request"];
|
|
649
493
|
}, {
|
|
650
494
|
readonly method: "PATCH";
|
|
@@ -660,20 +504,6 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
660
504
|
};
|
|
661
505
|
readonly errors: readonly ["card_requires_https", "invalid_param", "payment_method_not_usable", "payment_method_update_unsupported", "payment_provider_rejected", "provider_outcome_unknown", "resource_not_found", "service_unavailable"];
|
|
662
506
|
readonly errorSets: readonly ["tier:customer", "request"];
|
|
663
|
-
}, {
|
|
664
|
-
readonly method: "POST";
|
|
665
|
-
readonly path: "/v1/me/payment-methods/{id}/verify";
|
|
666
|
-
readonly group: "customer";
|
|
667
|
-
readonly auth: "customer";
|
|
668
|
-
readonly permission: null;
|
|
669
|
-
readonly sensitive: false;
|
|
670
|
-
readonly mountedWhen: null;
|
|
671
|
-
readonly request: null;
|
|
672
|
-
readonly responses: {
|
|
673
|
-
readonly 200: "PaymentMethod";
|
|
674
|
-
};
|
|
675
|
-
readonly errors: readonly ["card_attempts_blocked", "card_declined", "insufficient_funds", "invalid_param", "payment_method_not_usable", "payment_method_update_unsupported", "payment_provider_rejected", "provider_outcome_unknown", "resource_not_found", "service_unavailable"];
|
|
676
|
-
readonly errorSets: readonly ["tier:customer"];
|
|
677
507
|
}, {
|
|
678
508
|
readonly method: "DELETE";
|
|
679
509
|
readonly path: "/v1/me/payment-methods/{id}";
|
|
@@ -691,35 +521,35 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
691
521
|
readonly errorSets: readonly ["tier:customer"];
|
|
692
522
|
}, {
|
|
693
523
|
readonly method: "POST";
|
|
694
|
-
readonly path: "/v1/me/payment-
|
|
524
|
+
readonly path: "/v1/me/payment-methods/{id}/confirm";
|
|
695
525
|
readonly group: "customer";
|
|
696
526
|
readonly auth: "customer";
|
|
697
527
|
readonly permission: null;
|
|
698
528
|
readonly sensitive: false;
|
|
699
529
|
readonly mountedWhen: null;
|
|
700
|
-
readonly request:
|
|
530
|
+
readonly request: null;
|
|
701
531
|
readonly responses: {
|
|
702
|
-
readonly 200: "
|
|
532
|
+
readonly 200: "PaymentMethod";
|
|
703
533
|
};
|
|
704
|
-
readonly errors: readonly ["
|
|
705
|
-
readonly errorSets: readonly ["tier:customer"
|
|
534
|
+
readonly errors: readonly ["card_declined", "payment_provider_rejected", "resource_not_found", "service_unavailable"];
|
|
535
|
+
readonly errorSets: readonly ["tier:customer"];
|
|
706
536
|
}, {
|
|
707
|
-
readonly method: "
|
|
708
|
-
readonly path: "/v1/me/
|
|
537
|
+
readonly method: "POST";
|
|
538
|
+
readonly path: "/v1/me/stripe/billing-portal-sessions";
|
|
709
539
|
readonly group: "customer";
|
|
710
540
|
readonly auth: "customer";
|
|
711
541
|
readonly permission: null;
|
|
712
542
|
readonly sensitive: false;
|
|
713
|
-
readonly mountedWhen:
|
|
543
|
+
readonly mountedWhen: "stripe_portal";
|
|
714
544
|
readonly request: null;
|
|
715
545
|
readonly responses: {
|
|
716
|
-
readonly 200: "
|
|
546
|
+
readonly 200: "StripePortalSession";
|
|
717
547
|
};
|
|
718
|
-
readonly errors: readonly ["
|
|
548
|
+
readonly errors: readonly ["invalid_param", "resource_not_found", "route_not_found"];
|
|
719
549
|
readonly errorSets: readonly ["tier:customer"];
|
|
720
550
|
}, {
|
|
721
|
-
readonly method: "
|
|
722
|
-
readonly path: "/v1/me/
|
|
551
|
+
readonly method: "GET";
|
|
552
|
+
readonly path: "/v1/me/notifications";
|
|
723
553
|
readonly group: "customer";
|
|
724
554
|
readonly auth: "customer";
|
|
725
555
|
readonly permission: null;
|
|
@@ -727,51 +557,52 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
727
557
|
readonly mountedWhen: null;
|
|
728
558
|
readonly request: null;
|
|
729
559
|
readonly responses: {
|
|
730
|
-
readonly 200: "
|
|
560
|
+
readonly 200: "ListPage<Notification>";
|
|
731
561
|
};
|
|
732
|
-
readonly errors: readonly ["
|
|
733
|
-
readonly errorSets: readonly ["tier:customer"];
|
|
562
|
+
readonly errors: readonly ["invalid_cursor"];
|
|
563
|
+
readonly errorSets: readonly ["tier:customer", "request"];
|
|
734
564
|
}, {
|
|
735
565
|
readonly method: "POST";
|
|
736
|
-
readonly path: "/v1/me/
|
|
566
|
+
readonly path: "/v1/me/notifications/read";
|
|
737
567
|
readonly group: "customer";
|
|
738
568
|
readonly auth: "customer";
|
|
739
569
|
readonly permission: null;
|
|
740
570
|
readonly sensitive: false;
|
|
741
|
-
readonly mountedWhen:
|
|
742
|
-
readonly request:
|
|
571
|
+
readonly mountedWhen: null;
|
|
572
|
+
readonly request: "MarkNotificationsReadParams";
|
|
743
573
|
readonly responses: {
|
|
744
|
-
readonly 200: "
|
|
574
|
+
readonly 200: "CustomerNotificationLookup";
|
|
745
575
|
};
|
|
746
|
-
readonly errors: readonly ["invalid_param"
|
|
747
|
-
readonly errorSets: readonly ["tier:customer"];
|
|
576
|
+
readonly errors: readonly ["invalid_param"];
|
|
577
|
+
readonly errorSets: readonly ["tier:customer", "request"];
|
|
748
578
|
}, {
|
|
749
|
-
readonly method: "
|
|
750
|
-
readonly path: "/v1/me/
|
|
579
|
+
readonly method: "POST";
|
|
580
|
+
readonly path: "/v1/me/network-link/challenges";
|
|
751
581
|
readonly group: "customer";
|
|
752
582
|
readonly auth: "customer";
|
|
753
583
|
readonly permission: null;
|
|
754
584
|
readonly sensitive: false;
|
|
755
|
-
readonly mountedWhen:
|
|
585
|
+
readonly mountedWhen: "customer_network";
|
|
756
586
|
readonly request: null;
|
|
757
587
|
readonly responses: {
|
|
758
|
-
readonly
|
|
588
|
+
readonly 201: "NetworkLinkChallenge";
|
|
759
589
|
};
|
|
760
|
-
readonly errors: readonly ["
|
|
761
|
-
readonly errorSets: readonly ["tier:customer"
|
|
590
|
+
readonly errors: readonly ["service_unavailable"];
|
|
591
|
+
readonly errorSets: readonly ["tier:customer"];
|
|
762
592
|
}, {
|
|
763
593
|
readonly method: "POST";
|
|
764
|
-
readonly path: "/v1/me/
|
|
594
|
+
readonly path: "/v1/me/network-link";
|
|
765
595
|
readonly group: "customer";
|
|
766
596
|
readonly auth: "customer";
|
|
767
597
|
readonly permission: null;
|
|
768
598
|
readonly sensitive: false;
|
|
769
|
-
readonly mountedWhen:
|
|
770
|
-
readonly request: "
|
|
599
|
+
readonly mountedWhen: "customer_network";
|
|
600
|
+
readonly request: "CreateNetworkLinkParams";
|
|
771
601
|
readonly responses: {
|
|
772
|
-
readonly 200: "
|
|
602
|
+
readonly 200: "CustomerLink";
|
|
603
|
+
readonly 201: "CustomerLink";
|
|
773
604
|
};
|
|
774
|
-
readonly errors: readonly ["
|
|
605
|
+
readonly errors: readonly ["network_account_linked", "network_link_challenge_invalid", "network_link_conflict", "network_terms_required", "service_unavailable"];
|
|
775
606
|
readonly errorSets: readonly ["tier:customer", "request"];
|
|
776
607
|
}];
|
|
777
608
|
export declare const OPENRAILS_ERROR_SETS: Readonly<Record<string, readonly string[]>>;
|