@openrails/billing-ui 0.260.2 → 0.261.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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type OpenRailsErrorCode = "admission_captured" | "admission_not_found" | "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_platform_cards" | "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" | "card_vault_unknown" | "catalog_benefit_overlap" | "catalog_revision_conflict" | "charge_psp_incompatible" | "charge_psp_unknown" | "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_issuer_mismatch" | "customer_not_found" | "customer_payment_unsupported" | "customer_session_required" | "customer_tenant_mismatch" | "dashboard_invalid" | "database_busy" | "default_payment_method_invalid" | "default_payment_method_required" | "default_rate_card_not_found" | "destructive_actions_held" | "embed_origins_required" | "entitlement_required" | "finding_action_failed" | "finding_not_actionable" | "finding_requires_merchant_config" | "hold_not_found" | "host_event_not_found" | "host_principal_invalid" | "idempotency_key_in_use" | "idempotency_key_required" | "idempotency_key_reused" | "insufficient_credits" | "insufficient_funds" | "internal_error" | "invalid_cursor" | "invalid_customer_id" | "
|
|
1
|
+
export type OpenRailsErrorCode = "admission_captured" | "admission_not_found" | "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_platform_cards" | "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" | "card_vault_unknown" | "catalog_benefit_overlap" | "catalog_revision_conflict" | "charge_psp_incompatible" | "charge_psp_unknown" | "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_issuer_mismatch" | "customer_not_found" | "customer_payment_unsupported" | "customer_session_required" | "customer_tenant_mismatch" | "dashboard_invalid" | "database_busy" | "default_payment_method_invalid" | "default_payment_method_required" | "default_rate_card_not_found" | "destructive_actions_held" | "embed_origins_required" | "entitlement_required" | "event_cursor_expired" | "finding_action_failed" | "finding_not_actionable" | "finding_requires_merchant_config" | "hold_not_found" | "host_event_not_found" | "host_principal_invalid" | "idempotency_key_in_use" | "idempotency_key_required" | "idempotency_key_reused" | "insufficient_credits" | "insufficient_funds" | "internal_error" | "invalid_cursor" | "invalid_customer_id" | "invalid_param" | "invalid_payment_method" | "invalid_psp_reference" | "invalid_query" | "invalid_request_body" | "invalid_settlement_status_request" | "invoker_scoped_principal" | "merchant_config_read_only" | "merchant_mismatch" | "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_attempt_closed" | "order_attempt_expired" | "order_has_recurring_line" | "order_line_unavailable" | "order_not_cancelable" | "order_not_payable" | "order_payment_in_progress" | "order_total_changed" | "pay_url_attempts_exhausted" | "pay_url_expired" | "pay_url_not_found" | "pay_url_unavailable" | "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" | "platform_vault_mixed_class" | "platform_vault_unavailable" | "platform_vault_unreachable" | "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_in_use" | "product_not_found" | "product_tier_group_conflict" | "product_tier_group_in_use" | "provider_cancel_held" | "provider_outcome_unknown" | "provider_price_unreadable" | "provider_writes_disabled" | "provider_writes_held" | "psp_claim_requires_proof" | "psp_credentials_rejected" | "psp_environment_refused" | "psp_exists" | "psp_key_taken" | "psp_last_active" | "psp_not_found" | "purchase_review_resolved" | "quantity_not_allowed" | "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_not_priced" | "usage_rate_card_invalid" | "webhook_account_mismatch" | "webhook_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;
|
|
@@ -2291,6 +2291,23 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
2291
2291
|
};
|
|
2292
2292
|
readonly errors: readonly ["invalid_param", "service_unavailable"];
|
|
2293
2293
|
readonly errorSets: readonly ["tier:merchant", "request"];
|
|
2294
|
+
}, {
|
|
2295
|
+
readonly method: "GET";
|
|
2296
|
+
readonly path: "/v1/app/events";
|
|
2297
|
+
readonly group: "app";
|
|
2298
|
+
readonly auth: "application";
|
|
2299
|
+
readonly permission: {
|
|
2300
|
+
readonly merchant: "merchant:events:read";
|
|
2301
|
+
readonly root: "root:events:read";
|
|
2302
|
+
};
|
|
2303
|
+
readonly sensitive: false;
|
|
2304
|
+
readonly mountedWhen: null;
|
|
2305
|
+
readonly request: null;
|
|
2306
|
+
readonly responses: {
|
|
2307
|
+
readonly 200: "EventPage";
|
|
2308
|
+
};
|
|
2309
|
+
readonly errors: readonly ["event_cursor_expired", "invalid_cursor", "invalid_param", "invalid_query"];
|
|
2310
|
+
readonly errorSets: readonly ["tier:application", "request"];
|
|
2294
2311
|
}, {
|
|
2295
2312
|
readonly method: "GET";
|
|
2296
2313
|
readonly path: "/v1/merchant/destructive-holds";
|
|
@@ -2325,108 +2342,6 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
2325
2342
|
};
|
|
2326
2343
|
readonly errors: readonly ["invalid_param", "permission_required", "resource_conflict", "resource_not_found", "service_unavailable"];
|
|
2327
2344
|
readonly errorSets: readonly ["tier:merchant", "request"];
|
|
2328
|
-
}, {
|
|
2329
|
-
readonly method: "POST";
|
|
2330
|
-
readonly path: "/v1/app/notification-consumers/{name}";
|
|
2331
|
-
readonly group: "app";
|
|
2332
|
-
readonly auth: "application";
|
|
2333
|
-
readonly permission: {
|
|
2334
|
-
readonly merchant: "merchant:events:read";
|
|
2335
|
-
readonly root: "root:events:read";
|
|
2336
|
-
};
|
|
2337
|
-
readonly sensitive: false;
|
|
2338
|
-
readonly mountedWhen: null;
|
|
2339
|
-
readonly request: null;
|
|
2340
|
-
readonly responses: {
|
|
2341
|
-
readonly 204: null;
|
|
2342
|
-
};
|
|
2343
|
-
readonly errors: readonly ["invalid_param"];
|
|
2344
|
-
readonly errorSets: readonly ["tier:application"];
|
|
2345
|
-
}, {
|
|
2346
|
-
readonly method: "GET";
|
|
2347
|
-
readonly path: "/v1/app/notification-consumers/{name}/events";
|
|
2348
|
-
readonly group: "app";
|
|
2349
|
-
readonly auth: "application";
|
|
2350
|
-
readonly permission: {
|
|
2351
|
-
readonly merchant: "merchant:events:read";
|
|
2352
|
-
readonly root: "root:events:read";
|
|
2353
|
-
};
|
|
2354
|
-
readonly sensitive: false;
|
|
2355
|
-
readonly mountedWhen: null;
|
|
2356
|
-
readonly request: null;
|
|
2357
|
-
readonly responses: {
|
|
2358
|
-
readonly 200: "NotificationEvents";
|
|
2359
|
-
};
|
|
2360
|
-
readonly errors: readonly ["invalid_param", "resource_not_found"];
|
|
2361
|
-
readonly errorSets: readonly ["tier:application", "request"];
|
|
2362
|
-
}, {
|
|
2363
|
-
readonly method: "POST";
|
|
2364
|
-
readonly path: "/v1/app/notification-consumers/{name}/acknowledge";
|
|
2365
|
-
readonly group: "app";
|
|
2366
|
-
readonly auth: "application";
|
|
2367
|
-
readonly permission: {
|
|
2368
|
-
readonly merchant: "merchant:events:read";
|
|
2369
|
-
readonly root: "root:events:read";
|
|
2370
|
-
};
|
|
2371
|
-
readonly sensitive: false;
|
|
2372
|
-
readonly mountedWhen: null;
|
|
2373
|
-
readonly request: "AcknowledgeNotificationEventsParams";
|
|
2374
|
-
readonly responses: {
|
|
2375
|
-
readonly 204: null;
|
|
2376
|
-
};
|
|
2377
|
-
readonly errors: readonly ["invalid_param", "resource_not_found"];
|
|
2378
|
-
readonly errorSets: readonly ["tier:application", "request"];
|
|
2379
|
-
}, {
|
|
2380
|
-
readonly method: "DELETE";
|
|
2381
|
-
readonly path: "/v1/app/notification-consumers/{name}";
|
|
2382
|
-
readonly group: "app";
|
|
2383
|
-
readonly auth: "application";
|
|
2384
|
-
readonly permission: {
|
|
2385
|
-
readonly merchant: "merchant:events:read";
|
|
2386
|
-
readonly root: "root:events:read";
|
|
2387
|
-
};
|
|
2388
|
-
readonly sensitive: false;
|
|
2389
|
-
readonly mountedWhen: null;
|
|
2390
|
-
readonly request: null;
|
|
2391
|
-
readonly responses: {
|
|
2392
|
-
readonly 204: null;
|
|
2393
|
-
};
|
|
2394
|
-
readonly errors: readonly ["invalid_param"];
|
|
2395
|
-
readonly errorSets: readonly ["tier:application"];
|
|
2396
|
-
}, {
|
|
2397
|
-
readonly method: "GET";
|
|
2398
|
-
readonly path: "/v1/app/host-events";
|
|
2399
|
-
readonly group: "app";
|
|
2400
|
-
readonly auth: "application";
|
|
2401
|
-
readonly permission: {
|
|
2402
|
-
readonly merchant: "merchant:events:read";
|
|
2403
|
-
readonly root: "root:events:read";
|
|
2404
|
-
};
|
|
2405
|
-
readonly sensitive: false;
|
|
2406
|
-
readonly mountedWhen: null;
|
|
2407
|
-
readonly request: null;
|
|
2408
|
-
readonly responses: {
|
|
2409
|
-
readonly 200: "ListPage<HostEvent>";
|
|
2410
|
-
};
|
|
2411
|
-
readonly errors: readonly ["invalid_cursor", "invalid_host_event_request"];
|
|
2412
|
-
readonly errorSets: readonly ["tier:application", "request"];
|
|
2413
|
-
}, {
|
|
2414
|
-
readonly method: "POST";
|
|
2415
|
-
readonly path: "/v1/app/host-events/acknowledge";
|
|
2416
|
-
readonly group: "app";
|
|
2417
|
-
readonly auth: "application";
|
|
2418
|
-
readonly permission: {
|
|
2419
|
-
readonly merchant: "merchant:events:read";
|
|
2420
|
-
readonly root: "root:events:read";
|
|
2421
|
-
};
|
|
2422
|
-
readonly sensitive: false;
|
|
2423
|
-
readonly mountedWhen: null;
|
|
2424
|
-
readonly request: "AcknowledgeHostEventsParams";
|
|
2425
|
-
readonly responses: {
|
|
2426
|
-
readonly 200: "HostEventLookup";
|
|
2427
|
-
};
|
|
2428
|
-
readonly errors: readonly ["invalid_param"];
|
|
2429
|
-
readonly errorSets: readonly ["tier:application", "request"];
|
|
2430
2345
|
}, {
|
|
2431
2346
|
readonly method: "GET";
|
|
2432
2347
|
readonly path: "/v1/admin/access";
|
|
@@ -6,12 +6,6 @@ export type AccessTenure = {
|
|
|
6
6
|
as_of: string;
|
|
7
7
|
seconds: Record<string, number> | null;
|
|
8
8
|
};
|
|
9
|
-
export type AcknowledgeHostEventsParams = {
|
|
10
|
-
host_event_ids?: string[];
|
|
11
|
-
};
|
|
12
|
-
export type AcknowledgeNotificationEventsParams = {
|
|
13
|
-
notification_ids?: string[];
|
|
14
|
-
};
|
|
15
9
|
export type AdminAccess = {
|
|
16
10
|
admin: "none" | "read" | "update";
|
|
17
11
|
catalog: "none" | "read" | "update";
|
|
@@ -185,18 +179,6 @@ export type Balance = {
|
|
|
185
179
|
as_of: string;
|
|
186
180
|
depletes_at: string | null;
|
|
187
181
|
};
|
|
188
|
-
export type BalanceHostEvent = {
|
|
189
|
-
customer_id: string;
|
|
190
|
-
currency: string;
|
|
191
|
-
available_amount: string;
|
|
192
|
-
owed_amount: string;
|
|
193
|
-
accrual_rate_per_hour: string;
|
|
194
|
-
usage_rate_per_hour: string;
|
|
195
|
-
low_balance_amount: string;
|
|
196
|
-
as_of: string;
|
|
197
|
-
depletes_at: string | null;
|
|
198
|
-
runway_ends_at: string | null;
|
|
199
|
-
};
|
|
200
182
|
export type BalanceNoticeAmount = {
|
|
201
183
|
currency: string;
|
|
202
184
|
amount: string;
|
|
@@ -698,12 +680,6 @@ export type CustomerNetwork = {
|
|
|
698
680
|
linked_at: string;
|
|
699
681
|
method: "connect" | "payment_page" | "sign_in";
|
|
700
682
|
};
|
|
701
|
-
export type CustomerNetworkHostEvent = {
|
|
702
|
-
customer_id: string;
|
|
703
|
-
account_id: string;
|
|
704
|
-
method: "connect" | "payment_page" | "sign_in" | null;
|
|
705
|
-
revoked_by: "account_deleted" | "customer" | "merchant_left" | null;
|
|
706
|
-
};
|
|
707
683
|
export type CustomerSettings = {
|
|
708
684
|
credit_limits: CreditLimit[];
|
|
709
685
|
trust_levels: TrustLevel[];
|
|
@@ -884,17 +860,6 @@ export type DefaultPaymentMethod = {
|
|
|
884
860
|
currency: string;
|
|
885
861
|
payment_method_id: string;
|
|
886
862
|
};
|
|
887
|
-
export type DelinquencyHostEvent = {
|
|
888
|
-
customer_id: string;
|
|
889
|
-
currency: string;
|
|
890
|
-
from_state: string;
|
|
891
|
-
to_state: string;
|
|
892
|
-
overdue_started_at?: string;
|
|
893
|
-
overdue_amount: string;
|
|
894
|
-
overdue_orders: number;
|
|
895
|
-
grace_days: number;
|
|
896
|
-
amount_floor: string;
|
|
897
|
-
};
|
|
898
863
|
export type DestructiveHold = {
|
|
899
864
|
id: string;
|
|
900
865
|
merchant_id: string;
|
|
@@ -907,10 +872,6 @@ export type DestructiveHold = {
|
|
|
907
872
|
opened_at: string;
|
|
908
873
|
cleared_at: string | null;
|
|
909
874
|
};
|
|
910
|
-
export type DestructiveHoldEvent = {
|
|
911
|
-
hold_id: string;
|
|
912
|
-
scope: string;
|
|
913
|
-
};
|
|
914
875
|
export type DriftField = {
|
|
915
876
|
field: string;
|
|
916
877
|
openrails_value: string;
|
|
@@ -963,6 +924,26 @@ export type ErrorDetails = {
|
|
|
963
924
|
metadata?: Record<string, unknown>;
|
|
964
925
|
order?: Order;
|
|
965
926
|
};
|
|
927
|
+
export type Event = {
|
|
928
|
+
id: string;
|
|
929
|
+
merchant_id: string;
|
|
930
|
+
source: string;
|
|
931
|
+
type: string;
|
|
932
|
+
version: number;
|
|
933
|
+
occurred_at: string;
|
|
934
|
+
subject: EventSubject;
|
|
935
|
+
data: unknown | null;
|
|
936
|
+
};
|
|
937
|
+
export type EventPage = {
|
|
938
|
+
events: Event[];
|
|
939
|
+
next_cursor: string;
|
|
940
|
+
has_more: boolean;
|
|
941
|
+
retention_seconds: number;
|
|
942
|
+
};
|
|
943
|
+
export type EventSubject = {
|
|
944
|
+
type: string;
|
|
945
|
+
id: string;
|
|
946
|
+
};
|
|
966
947
|
export type ExtendAdmissionBatchParams = {
|
|
967
948
|
items?: ExtendAdmissionParams[];
|
|
968
949
|
};
|
|
@@ -1028,24 +1009,6 @@ export type HeldEntitlements = {
|
|
|
1028
1009
|
keys: string[];
|
|
1029
1010
|
truncated: boolean;
|
|
1030
1011
|
};
|
|
1031
|
-
export type HostEvent = {
|
|
1032
|
-
destructive_hold: DestructiveHoldEvent | null;
|
|
1033
|
-
id: string;
|
|
1034
|
-
merchant_id: string;
|
|
1035
|
-
type: "balance.depleted" | "balance.low" | "customer.network_linked" | "customer.network_unlinked" | "delinquency.cleared" | "delinquency.entered" | "delinquency.grace" | "destructive.hold_cleared" | "destructive.hold_opened" | "mandate.revoked" | "order.canceled" | "order.completed" | "order.expired" | "order.payment_failed" | "order.requires_action" | "order.voided" | "payment.settled" | "product.entitlements_changed";
|
|
1036
|
-
occurred_at: string;
|
|
1037
|
-
acknowledged_at: string | null;
|
|
1038
|
-
payment: PaymentSettledEvent | null;
|
|
1039
|
-
delinquency: DelinquencyHostEvent | null;
|
|
1040
|
-
product_entitlements: ProductEntitlementsChangedEvent | null;
|
|
1041
|
-
order: OrderHostEvent | null;
|
|
1042
|
-
customer_network: CustomerNetworkHostEvent | null;
|
|
1043
|
-
mandate: MandateHostEvent | null;
|
|
1044
|
-
balance: BalanceHostEvent | null;
|
|
1045
|
-
};
|
|
1046
|
-
export type HostEventLookup = {
|
|
1047
|
-
host_events: Record<string, HostEvent | null> | null;
|
|
1048
|
-
};
|
|
1049
1012
|
export type InvoiceContact = {
|
|
1050
1013
|
name: string;
|
|
1051
1014
|
email: string;
|
|
@@ -1085,14 +1048,6 @@ export type Mandate = {
|
|
|
1085
1048
|
accepted_at: string;
|
|
1086
1049
|
created_at: string;
|
|
1087
1050
|
};
|
|
1088
|
-
export type MandateHostEvent = {
|
|
1089
|
-
mandate_id: string;
|
|
1090
|
-
kind: "card_on_file" | "recurring" | "unscheduled";
|
|
1091
|
-
customer_id: string;
|
|
1092
|
-
currency: string;
|
|
1093
|
-
subscription_id: string | null;
|
|
1094
|
-
revoked_at: string;
|
|
1095
|
-
};
|
|
1096
1051
|
export type Matrix = {
|
|
1097
1052
|
dimension: string;
|
|
1098
1053
|
cells: Record<string, MatrixCell> | null;
|
|
@@ -1270,19 +1225,6 @@ export type NextAction = {
|
|
|
1270
1225
|
psp_id: string | null;
|
|
1271
1226
|
payload: Record<string, string> | null;
|
|
1272
1227
|
};
|
|
1273
|
-
export type NotificationEvent = {
|
|
1274
|
-
id: string;
|
|
1275
|
-
merchant_id: string;
|
|
1276
|
-
customer_id: string;
|
|
1277
|
-
event_type: string;
|
|
1278
|
-
data: unknown | null;
|
|
1279
|
-
created_at: string;
|
|
1280
|
-
action_requested?: boolean;
|
|
1281
|
-
optional?: boolean;
|
|
1282
|
-
};
|
|
1283
|
-
export type NotificationEvents = {
|
|
1284
|
-
data: NotificationEvent[];
|
|
1285
|
-
};
|
|
1286
1228
|
export type Order = {
|
|
1287
1229
|
id: string;
|
|
1288
1230
|
customer_id: string;
|
|
@@ -1313,16 +1255,6 @@ export type Order = {
|
|
|
1313
1255
|
uncollectible_at: string | null;
|
|
1314
1256
|
created_at: string;
|
|
1315
1257
|
};
|
|
1316
|
-
export type OrderHostEvent = {
|
|
1317
|
-
order_id: string;
|
|
1318
|
-
customer_id: string;
|
|
1319
|
-
status: "canceled" | "complete" | "expired" | "open" | "processing" | "uncollectible" | "void";
|
|
1320
|
-
payment_status: "processing" | "requires_action" | "requires_payment_method" | "succeeded";
|
|
1321
|
-
total: string;
|
|
1322
|
-
currency: string;
|
|
1323
|
-
number: number | null;
|
|
1324
|
-
payment_id: string | null;
|
|
1325
|
-
};
|
|
1326
1258
|
export type OrderLine = {
|
|
1327
1259
|
id: string;
|
|
1328
1260
|
price_id: string | null;
|
|
@@ -1676,14 +1608,6 @@ export type PaymentRecovery = {
|
|
|
1676
1608
|
blocked_reason?: string;
|
|
1677
1609
|
order_id?: string;
|
|
1678
1610
|
};
|
|
1679
|
-
export type PaymentSettledEvent = {
|
|
1680
|
-
payment_id: string;
|
|
1681
|
-
customer_id: string;
|
|
1682
|
-
order_id?: string;
|
|
1683
|
-
subscription_id?: string;
|
|
1684
|
-
amount: string;
|
|
1685
|
-
currency: string;
|
|
1686
|
-
};
|
|
1687
1611
|
export type PerUnitPrice = {
|
|
1688
1612
|
unit_amount?: string;
|
|
1689
1613
|
divide_by?: number;
|
|
@@ -1839,13 +1763,6 @@ export type ProductAccessGrant = {
|
|
|
1839
1763
|
created_at: string;
|
|
1840
1764
|
updated_at: string;
|
|
1841
1765
|
};
|
|
1842
|
-
export type ProductEntitlementsChangedEvent = {
|
|
1843
|
-
product_id: string;
|
|
1844
|
-
product_key: string;
|
|
1845
|
-
added: string[];
|
|
1846
|
-
removed: string[];
|
|
1847
|
-
holders: number;
|
|
1848
|
-
};
|
|
1849
1766
|
export type ProductSummary = {
|
|
1850
1767
|
id: string;
|
|
1851
1768
|
key: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openrails/billing-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.261.0",
|
|
4
4
|
"description": "Embeddable OpenRails purchase and account-billing UI: client, React hooks and styled components.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
"vite-plugin-dts": "^5.0.3",
|
|
115
115
|
"vitest": "^4.1.11",
|
|
116
116
|
"@tanstack/react-query": "^5.101.4",
|
|
117
|
-
"@openrails/auth-ui": "1.
|
|
117
|
+
"@openrails/auth-ui": "1.34.1",
|
|
118
118
|
"react-router-dom": "7.18.2"
|
|
119
119
|
},
|
|
120
120
|
"peerDependenciesMeta": {
|