@openrails/billing-ui 0.236.0 → 0.238.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 +87 -9
- package/README.md +78 -83
- package/dist/account/account-billing.d.ts +1 -1
- package/dist/account/payment-methods-panel.d.ts +2 -2
- package/dist/authenticate.d.ts +5 -4
- package/dist/buy-button.d.ts +17 -10
- package/dist/client/client.d.ts +52 -23
- package/dist/client/generated/error-codes.d.ts +1 -1
- package/dist/client/generated/routes.d.ts +24 -218
- package/dist/client/generated/wire.d.ts +39 -200
- package/dist/client/index.d.ts +2 -1
- package/dist/client/token-source.d.ts +60 -0
- package/dist/client/types.d.ts +108 -199
- package/dist/client-Bi_lP_M0.js +932 -0
- package/dist/client-Bi_lP_M0.js.map +1 -0
- package/dist/client.js +2 -2
- package/dist/components/eyebrow.d.ts +5 -0
- package/dist/embedded-checkout.d.ts +22 -0
- package/dist/{hooks-2d-XjpuI.js → hooks-Bk80rNv8.js} +99 -90
- package/dist/hooks-Bk80rNv8.js.map +1 -0
- package/dist/index.d.ts +5 -8
- package/dist/index.js +1149 -2163
- package/dist/index.js.map +1 -1
- package/dist/modal.d.ts +3 -9
- package/dist/offers.d.ts +10 -9
- package/dist/psp.d.ts +0 -8
- package/dist/react/config.d.ts +17 -12
- package/dist/react/context.d.ts +3 -1
- package/dist/react/hooks.d.ts +5 -5
- package/dist/react/index.d.ts +1 -1
- package/dist/react.js +2 -2
- 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 -22
- package/dist/client/checkout.d.ts +0 -28
- package/dist/client-BuvolBPT.js +0 -1092
- package/dist/client-BuvolBPT.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/fixtures.d.ts +0 -9
- package/dist/frame.d.ts +0 -47
- package/dist/hooks-2d-XjpuI.js.map +0 -1
- package/dist/lib/rail-meta.d.ts +0 -15
- package/dist/lib/redirect.d.ts +0 -2
- package/dist/source.d.ts +0 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type OpenRailsErrorCode = "admission_captured" | "admission_not_found" | "allowance_meter_not_found" | "allowance_source_in_use" | "allowance_source_invalid" | "already_owned" | "application_required" | "as_of_required" | "authentication_required" | "authentication_unavailable" | "authorization_unavailable" | "billing_archive_integrity" | "billing_archive_invalid_artifact" | "billing_archive_merchant_mismatch" | "billing_archive_not_empty" | "billing_archive_unavailable" | "billing_archive_unsupported_state" | "billing_policy_not_found" | "cancel_unsupported_on_rail" | "captcha_invalid" | "captcha_required" | "card_attempts_blocked" | "card_declined" | "card_not_saved" | "card_requires_https" | "catalog_benefit_overlap" | "catalog_revision_conflict" | "checkout_attempt_closed" | "checkout_attempt_expired" | "checkout_attempts_exhausted" | "
|
|
1
|
+
export type OpenRailsErrorCode = "admission_captured" | "admission_not_found" | "allowance_meter_not_found" | "allowance_source_in_use" | "allowance_source_invalid" | "already_owned" | "application_required" | "as_of_required" | "authentication_required" | "authentication_unavailable" | "authorization_unavailable" | "billing_archive_integrity" | "billing_archive_invalid_artifact" | "billing_archive_merchant_mismatch" | "billing_archive_not_empty" | "billing_archive_unavailable" | "billing_archive_unsupported_state" | "billing_policy_not_found" | "cancel_unsupported_on_rail" | "captcha_invalid" | "captcha_required" | "card_attempts_blocked" | "card_declined" | "card_not_saved" | "card_requires_https" | "catalog_benefit_overlap" | "catalog_revision_conflict" | "checkout_attempt_closed" | "checkout_attempt_expired" | "checkout_attempts_exhausted" | "checkout_embed_origins_required" | "checkout_expired" | "checkout_not_found" | "credential_expired" | "credential_revoked" | "credit_grant_held" | "credit_grant_not_found" | "credit_grant_unavailable" | "csrf_origin_denied" | "currency_unsupported" | "custodian_capture_unavailable" | "customer_action_required" | "customer_email_required" | "customer_not_found" | "customer_payment_unsupported" | "customer_session_required" | "dashboard_invalid" | "database_busy" | "default_payment_method_invalid" | "default_payment_method_required" | "default_rate_card_not_found" | "default_rate_card_required" | "finding_action_failed" | "finding_not_actionable" | "hold_not_found" | "host_event_not_found" | "host_principal_invalid" | "hosted_checkout_unavailable" | "idempotency_key_in_progress" | "idempotency_key_in_use" | "idempotency_key_required" | "idempotency_key_reused" | "insufficient_credits" | "insufficient_funds" | "internal_error" | "invalid_cursor" | "invalid_customer_id" | "invalid_host_event_request" | "invalid_param" | "invalid_payment_method" | "invalid_psp_reference" | "invalid_query" | "invalid_request_body" | "invalid_settlement_status_request" | "invoker_scoped_principal" | "merchant_binding_mismatch" | "merchant_config_read_only" | "merchant_directory_unavailable" | "merchant_not_found" | "merchant_selector_invalid" | "merchant_unresolved" | "meter_in_use" | "meter_rate_card_conflict" | "method_not_allowed" | "metrics_query_invalid" | "model_unavailable" | "network_account_linked" | "network_link_challenge_invalid" | "network_link_conflict" | "network_link_in_use" | "network_terms_required" | "order_action_not_allowed" | "order_has_recurring_line" | "order_line_unavailable" | "order_not_cancelable" | "order_not_payable" | "order_payment_in_progress" | "order_total_changed" | "payment_duplicate_refused" | "payment_exceeds_due" | "payment_failed" | "payment_idempotency_conflict" | "payment_in_progress" | "payment_method_delete_failed" | "payment_method_delete_unsupported" | "payment_method_not_psp_vaulted" | "payment_method_not_usable" | "payment_method_psp_mismatch" | "payment_method_required" | "payment_method_same_vault" | "payment_method_stale" | "payment_method_update_failed" | "payment_method_update_unsupported" | "payment_not_found" | "payment_not_refundable" | "payment_not_retryable" | "payment_option_unavailable" | "payment_provider_rejected" | "permission_required" | "price_change_currency_mismatch" | "price_change_target_archived" | "price_increase_notice_too_short" | "price_key_cadence_conflict" | "price_key_not_found" | "price_migration_not_found" | "price_not_found" | "price_not_sellable" | "product_not_found" | "product_tier_group_conflict" | "product_tier_group_in_use" | "provider_billing_observation_conflict" | "provider_cancel_held" | "provider_operation_conflict" | "provider_operation_has_billing_evidence" | "provider_operation_not_found" | "provider_operation_not_open" | "provider_operation_not_refused" | "provider_operation_refused" | "provider_outcome_unknown" | "psp_claim_requires_proof" | "psp_credentials_rejected" | "psp_exists" | "psp_key_taken" | "psp_last_active" | "psp_not_found" | "purchase_review_resolved" | "quantity_not_allowed" | "rate_card_currency_mismatch" | "rate_card_has_overrides" | "rate_card_product_not_found" | "rate_limit_exceeded" | "rebill_terms_committed" | "refund_failed" | "refund_rail_unavailable" | "refund_unsupported" | "request_body_too_large" | "resource_access_denied" | "resource_conflict" | "resource_not_found" | "revision_mismatch" | "route_not_found" | "running_charge_not_found" | "scheduled_change_exists" | "service_credential_customer_scope_denied" | "service_unavailable" | "solana_rpc_unavailable" | "solana_transaction_refused" | "step_up_required" | "step_up_unavailable" | "stored_credential_required" | "subscription_change_already_scheduled" | "subscription_change_cadence_unsupported" | "subscription_change_credit_exceeds_price" | "subscription_change_cycle_unknown" | "subscription_change_idempotency_conflict" | "subscription_change_idempotency_key_required" | "subscription_change_in_flight" | "subscription_change_period_unknown" | "subscription_change_provider_conflict" | "subscription_change_refused" | "subscription_change_renewal_due" | "subscription_change_requires_linked_plan" | "subscription_change_target_inactive" | "subscription_change_unsupported_on_rail" | "subscription_not_active" | "subscription_not_found" | "subscription_paid_through" | "subscription_resumable" | "trial_unsupported_on_rail" | "unknown_field" | "unsupported_media_type" | "usage_meter_invalid" | "usage_meter_not_found" | "usage_rate_card_invalid" | "webhook_account_mismatch" | "webhook_invalid" | "widget_generation_invalid";
|
|
2
2
|
export type OpenRailsErrorType = "api_error" | "authentication_error" | "authorization_error" | "card_error" | "invalid_request_error" | "rate_limit_error";
|
|
3
3
|
export declare const OPENRAILS_ERROR_CODES: Readonly<Record<OpenRailsErrorCode, {
|
|
4
4
|
status: number;
|
|
@@ -3,7 +3,10 @@ export type OpenRailsRoute = {
|
|
|
3
3
|
path: string;
|
|
4
4
|
group: string;
|
|
5
5
|
auth: string;
|
|
6
|
-
permission:
|
|
6
|
+
permission: {
|
|
7
|
+
merchant: string | null;
|
|
8
|
+
root: string;
|
|
9
|
+
} | null;
|
|
7
10
|
sensitive: boolean;
|
|
8
11
|
mountedWhen: string | null;
|
|
9
12
|
request: string | null;
|
|
@@ -55,91 +58,7 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
55
58
|
readonly errorSets: readonly ["tier:public"];
|
|
56
59
|
}, {
|
|
57
60
|
readonly method: "GET";
|
|
58
|
-
readonly path: "/v1/
|
|
59
|
-
readonly group: "checkout";
|
|
60
|
-
readonly auth: "public";
|
|
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 ["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";
|
|
75
|
-
readonly permission: null;
|
|
76
|
-
readonly sensitive: false;
|
|
77
|
-
readonly mountedWhen: null;
|
|
78
|
-
readonly request: null;
|
|
79
|
-
readonly responses: {
|
|
80
|
-
readonly 200: "CheckoutSession";
|
|
81
|
-
};
|
|
82
|
-
readonly errors: readonly ["card_attempts_blocked", "card_declined", "card_not_saved", "checkout_session_not_found", "checkout_session_unavailable", "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"];
|
|
83
|
-
readonly errorSets: readonly ["tier:checkout_session"];
|
|
84
|
-
}, {
|
|
85
|
-
readonly method: "POST";
|
|
86
|
-
readonly path: "/v1/checkout-sessions/{id}/pay";
|
|
87
|
-
readonly group: "checkout";
|
|
88
|
-
readonly auth: "checkout_session";
|
|
89
|
-
readonly permission: null;
|
|
90
|
-
readonly sensitive: false;
|
|
91
|
-
readonly mountedWhen: null;
|
|
92
|
-
readonly request: "PayCheckoutSessionParams";
|
|
93
|
-
readonly responses: {
|
|
94
|
-
readonly 200: "CheckoutSessionPayResult";
|
|
95
|
-
};
|
|
96
|
-
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", "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"];
|
|
97
|
-
readonly errorSets: readonly ["tier:checkout_session", "request"];
|
|
98
|
-
}, {
|
|
99
|
-
readonly method: "GET";
|
|
100
|
-
readonly path: "/v1/checkout-attempts/{id}/solana-pay";
|
|
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";
|
|
129
|
-
readonly group: "customer";
|
|
130
|
-
readonly auth: "customer";
|
|
131
|
-
readonly permission: null;
|
|
132
|
-
readonly sensitive: false;
|
|
133
|
-
readonly mountedWhen: null;
|
|
134
|
-
readonly request: "MintCheckoutSessionParams";
|
|
135
|
-
readonly responses: {
|
|
136
|
-
readonly 201: "CheckoutSessionLink";
|
|
137
|
-
};
|
|
138
|
-
readonly errors: readonly ["authentication_required", "checkout_offer_unavailable", "checkout_session_unavailable", "customer_action_required", "invalid_param", "resource_conflict", "resource_not_found", "service_unavailable"];
|
|
139
|
-
readonly errorSets: readonly ["tier:customer", "request"];
|
|
140
|
-
}, {
|
|
141
|
-
readonly method: "GET";
|
|
142
|
-
readonly path: "/v1/me/checkout-sessions/{id}";
|
|
61
|
+
readonly path: "/v1/me/config";
|
|
143
62
|
readonly group: "customer";
|
|
144
63
|
readonly auth: "customer";
|
|
145
64
|
readonly permission: null;
|
|
@@ -147,52 +66,10 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
147
66
|
readonly mountedWhen: null;
|
|
148
67
|
readonly request: null;
|
|
149
68
|
readonly responses: {
|
|
150
|
-
readonly 200: "
|
|
69
|
+
readonly 200: "CustomerConfig";
|
|
151
70
|
};
|
|
152
|
-
readonly errors: readonly ["
|
|
71
|
+
readonly errors: readonly ["service_unavailable"];
|
|
153
72
|
readonly errorSets: readonly ["tier:customer"];
|
|
154
|
-
}, {
|
|
155
|
-
readonly method: "POST";
|
|
156
|
-
readonly path: "/v1/me/checkout-sessions/{id}/pay";
|
|
157
|
-
readonly group: "customer";
|
|
158
|
-
readonly auth: "customer";
|
|
159
|
-
readonly permission: null;
|
|
160
|
-
readonly sensitive: false;
|
|
161
|
-
readonly mountedWhen: null;
|
|
162
|
-
readonly request: "PayCheckoutSessionParams";
|
|
163
|
-
readonly responses: {
|
|
164
|
-
readonly 200: "CheckoutSessionPayResult";
|
|
165
|
-
};
|
|
166
|
-
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", "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"];
|
|
167
|
-
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
73
|
}, {
|
|
197
74
|
readonly method: "POST";
|
|
198
75
|
readonly path: "/v1/me/orders/preview";
|
|
@@ -276,7 +153,7 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
276
153
|
readonly responses: {
|
|
277
154
|
readonly 200: "Order";
|
|
278
155
|
};
|
|
279
|
-
readonly errors: readonly ["card_declined", "customer_action_required", "customer_session_required", "payment_failed", "resource_conflict", "resource_not_found", "service_unavailable"];
|
|
156
|
+
readonly errors: readonly ["card_declined", "customer_action_required", "customer_session_required", "invalid_param", "payment_failed", "resource_conflict", "resource_not_found", "service_unavailable"];
|
|
280
157
|
readonly errorSets: readonly ["tier:customer"];
|
|
281
158
|
}, {
|
|
282
159
|
readonly method: "POST";
|
|
@@ -374,7 +251,7 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
374
251
|
readonly responses: {
|
|
375
252
|
readonly 200: "ListPage<Product>";
|
|
376
253
|
};
|
|
377
|
-
readonly errors: readonly ["invalid_query"];
|
|
254
|
+
readonly errors: readonly ["invalid_query", "resource_not_found"];
|
|
378
255
|
readonly errorSets: readonly ["tier:public", "request"];
|
|
379
256
|
}, {
|
|
380
257
|
readonly method: "POST";
|
|
@@ -476,6 +353,21 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
476
353
|
};
|
|
477
354
|
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", "quantity_not_allowed", "rebill_terms_committed", "resource_conflict", "resource_not_found", "scheduled_change_exists", "service_unavailable", "solana_rpc_unavailable", "solana_transaction_refused", "subscription_change_already_scheduled", "subscription_change_credit_exceeds_price", "subscription_change_cycle_unknown", "subscription_change_idempotency_conflict", "subscription_change_idempotency_key_required", "subscription_change_in_flight", "subscription_change_period_unknown", "subscription_change_provider_conflict", "subscription_change_refused", "subscription_change_renewal_due", "subscription_change_requires_linked_plan", "subscription_change_target_inactive", "subscription_change_unsupported_on_rail", "subscription_not_active", "subscription_not_found"];
|
|
478
355
|
readonly errorSets: readonly ["tier:customer", "request"];
|
|
356
|
+
}, {
|
|
357
|
+
readonly method: "POST";
|
|
358
|
+
readonly path: "/v1/me/subscriptions/{id}/confirm";
|
|
359
|
+
readonly group: "customer";
|
|
360
|
+
readonly auth: "customer";
|
|
361
|
+
readonly permission: null;
|
|
362
|
+
readonly sensitive: false;
|
|
363
|
+
readonly mountedWhen: null;
|
|
364
|
+
readonly request: null;
|
|
365
|
+
readonly responses: {
|
|
366
|
+
readonly 200: "SubscriptionChange";
|
|
367
|
+
readonly 202: "SubscriptionChange";
|
|
368
|
+
};
|
|
369
|
+
readonly errors: readonly ["authentication_required", "card_declined", "customer_session_required", "invalid_param", "payment_not_found", "payment_provider_rejected", "resource_conflict", "resource_not_found", "service_unavailable", "subscription_change_refused", "subscription_not_found"];
|
|
370
|
+
readonly errorSets: readonly ["tier:customer"];
|
|
479
371
|
}, {
|
|
480
372
|
readonly method: "POST";
|
|
481
373
|
readonly path: "/v1/me/subscriptions/{id}/change/preview";
|
|
@@ -546,77 +438,6 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
546
438
|
};
|
|
547
439
|
readonly errors: readonly ["currency_unsupported"];
|
|
548
440
|
readonly errorSets: readonly ["tier:customer", "request"];
|
|
549
|
-
}, {
|
|
550
|
-
readonly method: "GET";
|
|
551
|
-
readonly path: "/v1/me/invoices";
|
|
552
|
-
readonly group: "customer";
|
|
553
|
-
readonly auth: "customer";
|
|
554
|
-
readonly permission: null;
|
|
555
|
-
readonly sensitive: false;
|
|
556
|
-
readonly mountedWhen: null;
|
|
557
|
-
readonly request: null;
|
|
558
|
-
readonly responses: {
|
|
559
|
-
readonly 200: "ListPage<Invoice>";
|
|
560
|
-
};
|
|
561
|
-
readonly errors: readonly ["invalid_cursor"];
|
|
562
|
-
readonly errorSets: readonly ["tier:customer", "request"];
|
|
563
|
-
}, {
|
|
564
|
-
readonly method: "GET";
|
|
565
|
-
readonly path: "/v1/me/invoices/{id}";
|
|
566
|
-
readonly group: "customer";
|
|
567
|
-
readonly auth: "customer";
|
|
568
|
-
readonly permission: null;
|
|
569
|
-
readonly sensitive: false;
|
|
570
|
-
readonly mountedWhen: null;
|
|
571
|
-
readonly request: null;
|
|
572
|
-
readonly responses: {
|
|
573
|
-
readonly 200: "Invoice";
|
|
574
|
-
};
|
|
575
|
-
readonly errors: readonly ["invalid_param", "resource_not_found"];
|
|
576
|
-
readonly errorSets: readonly ["tier:customer"];
|
|
577
|
-
}, {
|
|
578
|
-
readonly method: "POST";
|
|
579
|
-
readonly path: "/v1/me/invoices/{id}/pay-now";
|
|
580
|
-
readonly group: "customer";
|
|
581
|
-
readonly auth: "customer";
|
|
582
|
-
readonly permission: null;
|
|
583
|
-
readonly sensitive: false;
|
|
584
|
-
readonly mountedWhen: null;
|
|
585
|
-
readonly request: "PayInvoiceParams";
|
|
586
|
-
readonly responses: {
|
|
587
|
-
readonly 200: "InvoicePayNow";
|
|
588
|
-
readonly 202: "InvoicePayNow";
|
|
589
|
-
};
|
|
590
|
-
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"];
|
|
591
|
-
readonly errorSets: readonly ["tier:customer", "request"];
|
|
592
|
-
}, {
|
|
593
|
-
readonly method: "GET";
|
|
594
|
-
readonly path: "/v1/me/payment-operations/{id}/authentication";
|
|
595
|
-
readonly group: "customer";
|
|
596
|
-
readonly auth: "customer";
|
|
597
|
-
readonly permission: null;
|
|
598
|
-
readonly sensitive: false;
|
|
599
|
-
readonly mountedWhen: null;
|
|
600
|
-
readonly request: null;
|
|
601
|
-
readonly responses: {
|
|
602
|
-
readonly 200: "StripeEngineAuthentication";
|
|
603
|
-
};
|
|
604
|
-
readonly errors: readonly ["card_attempts_blocked", "card_declined", "card_not_saved", "custodian_capture_unavailable", "customer_session_required", "idempotency_key_reused", "insufficient_funds", "invalid_param", "payment_method_required", "payment_method_stale", "payment_not_found", "payment_provider_rejected", "resource_access_denied", "resource_conflict", "resource_not_found", "service_unavailable"];
|
|
605
|
-
readonly errorSets: readonly ["tier:customer"];
|
|
606
|
-
}, {
|
|
607
|
-
readonly method: "POST";
|
|
608
|
-
readonly path: "/v1/me/payment-operations/{id}/authentication/confirm";
|
|
609
|
-
readonly group: "customer";
|
|
610
|
-
readonly auth: "customer";
|
|
611
|
-
readonly permission: null;
|
|
612
|
-
readonly sensitive: false;
|
|
613
|
-
readonly mountedWhen: null;
|
|
614
|
-
readonly request: null;
|
|
615
|
-
readonly responses: {
|
|
616
|
-
readonly 200: "PaymentOperation";
|
|
617
|
-
};
|
|
618
|
-
readonly errors: readonly ["card_attempts_blocked", "card_declined", "card_not_saved", "custodian_capture_unavailable", "customer_session_required", "idempotency_key_reused", "insufficient_funds", "invalid_param", "payment_method_required", "payment_method_stale", "payment_not_found", "payment_provider_rejected", "resource_access_denied", "resource_conflict", "resource_not_found", "service_unavailable"];
|
|
619
|
-
readonly errorSets: readonly ["tier:customer"];
|
|
620
441
|
}, {
|
|
621
442
|
readonly method: "GET";
|
|
622
443
|
readonly path: "/v1/me/payments";
|
|
@@ -673,21 +494,6 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
673
494
|
};
|
|
674
495
|
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"];
|
|
675
496
|
readonly errorSets: readonly ["tier:customer", "request"];
|
|
676
|
-
}, {
|
|
677
|
-
readonly method: "PUT";
|
|
678
|
-
readonly path: "/v1/me/payment-methods/{id}";
|
|
679
|
-
readonly group: "customer";
|
|
680
|
-
readonly auth: "customer";
|
|
681
|
-
readonly permission: null;
|
|
682
|
-
readonly sensitive: false;
|
|
683
|
-
readonly mountedWhen: null;
|
|
684
|
-
readonly request: "ReplacePaymentMethodCardParams";
|
|
685
|
-
readonly responses: {
|
|
686
|
-
readonly 200: "PaymentMethod";
|
|
687
|
-
readonly 202: null;
|
|
688
|
-
};
|
|
689
|
-
readonly errors: readonly ["card_declined", "card_not_saved", "card_requires_https", "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"];
|
|
690
|
-
readonly errorSets: readonly ["tier:customer", "request"];
|
|
691
497
|
}, {
|
|
692
498
|
readonly method: "PATCH";
|
|
693
499
|
readonly path: "/v1/me/payment-methods/{id}";
|