@openrails/billing-ui 0.268.3 → 0.269.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/dist/admin/context.d.ts +164 -62
- package/dist/admin/lib/api/endpoints.d.ts +3 -7
- package/dist/admin/lib/api/import-endpoints.d.ts +44 -0
- package/dist/admin/lib/api/index.d.ts +17 -7
- package/dist/admin/lib/api/types.d.ts +0 -29
- package/dist/admin/lib/import-queries.d.ts +66 -0
- package/dist/admin/lib/mutations.d.ts +1 -5
- package/dist/admin/lib/queries.d.ts +6 -20
- package/dist/admin/messages.d.ts +176 -6
- package/dist/admin/pages/catalog/index.d.ts +0 -1
- package/dist/admin/pages/imports/detail.d.ts +2 -0
- package/dist/admin/pages/imports/index.d.ts +2 -0
- package/dist/admin/pages/imports/mapping-csv.d.ts +10 -0
- package/dist/admin/pages/imports/progress.d.ts +21 -0
- package/dist/admin/pages/imports/records.d.ts +2 -0
- package/dist/admin/pages/imports/shared.d.ts +22 -0
- package/dist/admin/pages/parked/index.d.ts +2 -0
- package/dist/admin/pages/proposals/grouping.d.ts +13 -0
- package/dist/admin/pages/proposals/index.d.ts +2 -0
- package/dist/admin/pages/provider-prices/index.d.ts +2 -0
- package/dist/admin/pages/provider-prices/map-dialog.d.ts +11 -0
- package/dist/admin/routes.d.ts +1 -1
- package/dist/{admin-attempts-BLeeKABa.js → admin-attempts-DQTg0UzZ.js} +82 -82
- package/dist/{admin-attempts-BLeeKABa.js.map → admin-attempts-DQTg0UzZ.js.map} +1 -1
- package/dist/{admin-auth-DWVWxDup.js → admin-auth-1aZIgXiS.js} +2 -2
- package/dist/{admin-auth-DWVWxDup.js.map → admin-auth-1aZIgXiS.js.map} +1 -1
- package/dist/{admin-badge-CrEqD9Ew.js → admin-badge-pgG6D9-a.js} +2 -2
- package/dist/{admin-badge-CrEqD9Ew.js.map → admin-badge-pgG6D9-a.js.map} +1 -1
- package/dist/{admin-button-a7bDFgp0.js → admin-button-CrcYk5r0.js} +2 -2
- package/dist/{admin-button-a7bDFgp0.js.map → admin-button-CrcYk5r0.js.map} +1 -1
- package/dist/{admin-capabilities-QYUuJXvG.js → admin-capabilities-BDcZeHL_.js} +2 -2
- package/dist/{admin-capabilities-QYUuJXvG.js.map → admin-capabilities-BDcZeHL_.js.map} +1 -1
- package/dist/{admin-card-D1tz8Lbh.js → admin-card-DvTMc5Se.js} +2 -2
- package/dist/{admin-card-D1tz8Lbh.js.map → admin-card-DvTMc5Se.js.map} +1 -1
- package/dist/{admin-catalog-ggiDgWsR.js → admin-catalog-BlF5mnu4.js} +285 -382
- package/dist/admin-catalog-BlF5mnu4.js.map +1 -0
- package/dist/{admin-dom-VkcwevWr.js → admin-cursor-pager-CIb3Jw2F.js} +20 -25
- package/dist/admin-cursor-pager-CIb3Jw2F.js.map +1 -0
- package/dist/{admin-customers-BVMg-gUv.js → admin-customers-EpfoWDh-.js} +13 -13
- package/dist/{admin-customers-BVMg-gUv.js.map → admin-customers-EpfoWDh-.js.map} +1 -1
- package/dist/{admin-dashboard-Cc13i8i9.js → admin-dashboard-CJE63yz4.js} +46 -46
- package/dist/{admin-dashboard-Cc13i8i9.js.map → admin-dashboard-CJE63yz4.js.map} +1 -1
- package/dist/{admin-data-table-BL84xKKF.js → admin-data-table-hvFcJepL.js} +16 -16
- package/dist/{admin-data-table-BL84xKKF.js.map → admin-data-table-hvFcJepL.js.map} +1 -1
- package/dist/{admin-detail-CaEwBdX9.js → admin-detail-BRP6pL7t.js} +51 -51
- package/dist/{admin-detail-CaEwBdX9.js.map → admin-detail-BRP6pL7t.js.map} +1 -1
- package/dist/{admin-detail-9YAep3ts.js → admin-detail-CRzFb_pa.js} +232 -232
- package/dist/{admin-detail-9YAep3ts.js.map → admin-detail-CRzFb_pa.js.map} +1 -1
- package/dist/admin-detail-Ceod8AXy.js +299 -0
- package/dist/admin-detail-Ceod8AXy.js.map +1 -0
- package/dist/{admin-detail-C8t5jBps.js → admin-detail-QLxU8r-5.js} +62 -62
- package/dist/{admin-detail-C8t5jBps.js.map → admin-detail-QLxU8r-5.js.map} +1 -1
- package/dist/admin-detail-pPC8Q9l-.js +710 -0
- package/dist/{admin-detail-D2zcz_Xm.js.map → admin-detail-pPC8Q9l-.js.map} +1 -1
- package/dist/{admin-dialog-CiAw5vx-.js → admin-dialog-BSRf9Zre.js} +24 -24
- package/dist/{admin-dialog-CiAw5vx-.js.map → admin-dialog-BSRf9Zre.js.map} +1 -1
- package/dist/admin-dom-C7Y7A6Wa.js +8 -0
- package/dist/admin-dom-C7Y7A6Wa.js.map +1 -0
- package/dist/{admin-dropdown-menu-CYJbmqK2.js → admin-dropdown-menu-D0E5rwmn.js} +2 -2
- package/dist/{admin-dropdown-menu-CYJbmqK2.js.map → admin-dropdown-menu-D0E5rwmn.js.map} +1 -1
- package/dist/{admin-fact-card-BHTpDlaX.js → admin-fact-card-BPSVhS15.js} +2 -2
- package/dist/{admin-fact-card-BHTpDlaX.js.map → admin-fact-card-BPSVhS15.js.map} +1 -1
- package/dist/{admin-health-BUnjbvYR.js → admin-health-D0L5Kig7.js} +84 -84
- package/dist/{admin-health-BUnjbvYR.js.map → admin-health-D0L5Kig7.js.map} +1 -1
- package/dist/admin-imports-TCOljTgw.js +269 -0
- package/dist/admin-imports-TCOljTgw.js.map +1 -0
- package/dist/{admin-input-C-S_RGGo.js → admin-input-DJAK9nmk.js} +2 -2
- package/dist/{admin-input-C-S_RGGo.js.map → admin-input-DJAK9nmk.js.map} +1 -1
- package/dist/{admin-label-DPVYDdSO.js → admin-label-aviN9Gng.js} +2 -2
- package/dist/{admin-label-DPVYDdSO.js.map → admin-label-aviN9Gng.js.map} +1 -1
- package/dist/{admin-linked-table-row-D-gbTT7a.js → admin-linked-table-row-BGr7JXeM.js} +6 -6
- package/dist/{admin-linked-table-row-D-gbTT7a.js.map → admin-linked-table-row-BGr7JXeM.js.map} +1 -1
- package/dist/admin-map-dialog-DpGaIq52.js +135 -0
- package/dist/admin-map-dialog-DpGaIq52.js.map +1 -0
- package/dist/admin-mapping-csv-FtkyTBmk.js +56 -0
- package/dist/admin-mapping-csv-FtkyTBmk.js.map +1 -0
- package/dist/{admin-metering-BjbL0jjT.js → admin-metering-D-e-37Jn.js} +285 -285
- package/dist/{admin-metering-BjbL0jjT.js.map → admin-metering-D-e-37Jn.js.map} +1 -1
- package/dist/admin-ops-CQP4TzWM.js +235 -0
- package/dist/admin-ops-CQP4TzWM.js.map +1 -0
- package/dist/{admin-orders-BVW9-Fs9.js → admin-orders-BJ7W5S8P.js} +32 -32
- package/dist/{admin-orders-BVW9-Fs9.js.map → admin-orders-BJ7W5S8P.js.map} +1 -1
- package/dist/admin-parked-7HL8mOjw.js +193 -0
- package/dist/admin-parked-7HL8mOjw.js.map +1 -0
- package/dist/{admin-payments-C5MsFFmm.js → admin-payments-CzkzqYA1.js} +17 -17
- package/dist/{admin-payments-C5MsFFmm.js.map → admin-payments-CzkzqYA1.js.map} +1 -1
- package/dist/{admin-price-detail-D517JYHB.js → admin-price-detail-CSI5oKdb.js} +74 -74
- package/dist/{admin-price-detail-D517JYHB.js.map → admin-price-detail-CSI5oKdb.js.map} +1 -1
- package/dist/{admin-price-wizard-bj36o3ux.js → admin-price-wizard-CBEcNGvP.js} +38 -38
- package/dist/{admin-price-wizard-bj36o3ux.js.map → admin-price-wizard-CBEcNGvP.js.map} +1 -1
- package/dist/admin-proposals-dtgijWKz.js +375 -0
- package/dist/admin-proposals-dtgijWKz.js.map +1 -0
- package/dist/admin-provider-prices-ChuponcZ.js +246 -0
- package/dist/admin-provider-prices-ChuponcZ.js.map +1 -0
- package/dist/{admin-range-picker-D2aFF8IV.js → admin-range-picker-De36L-AP.js} +12 -12
- package/dist/{admin-range-picker-D2aFF8IV.js.map → admin-range-picker-De36L-AP.js.map} +1 -1
- package/dist/admin-records-CUHUOXAU.js +391 -0
- package/dist/admin-records-CUHUOXAU.js.map +1 -0
- package/dist/{admin-reports-D-ob04d4.js → admin-reports-BFGS_PWf.js} +45 -45
- package/dist/{admin-reports-D-ob04d4.js.map → admin-reports-BFGS_PWf.js.map} +1 -1
- package/dist/{admin-select-C8O7nx72.js → admin-select-BUcEU5Rg.js} +2 -2
- package/dist/{admin-select-C8O7nx72.js.map → admin-select-BUcEU5Rg.js.map} +1 -1
- package/dist/{admin-settings-Bs6cLcqi.js → admin-settings-DYC-c7mJ.js} +296 -296
- package/dist/{admin-settings-Bs6cLcqi.js.map → admin-settings-DYC-c7mJ.js.map} +1 -1
- package/dist/admin-shared-CzG8Pan3.js +222 -0
- package/dist/admin-shared-CzG8Pan3.js.map +1 -0
- package/dist/{admin-skeleton-wfocg2PJ.js → admin-skeleton-B0yzYY_X.js} +2 -2
- package/dist/{admin-skeleton-wfocg2PJ.js.map → admin-skeleton-B0yzYY_X.js.map} +1 -1
- package/dist/{admin-status-badge-D_gDMrht.js → admin-status-badge-0-K37EfN.js} +7 -2
- package/dist/admin-status-badge-0-K37EfN.js.map +1 -0
- package/dist/{admin-subscriptions-DYR1RGMO.js → admin-subscriptions-CvW-YFs0.js} +74 -74
- package/dist/{admin-subscriptions-DYR1RGMO.js.map → admin-subscriptions-CvW-YFs0.js.map} +1 -1
- package/dist/{admin-switch-F5D0AYjT.js → admin-switch-DDorugaw.js} +2 -2
- package/dist/{admin-switch-F5D0AYjT.js.map → admin-switch-DDorugaw.js.map} +1 -1
- package/dist/{admin-table-nUij5fLc.js → admin-table-BU6Tie69.js} +2 -2
- package/dist/{admin-table-nUij5fLc.js.map → admin-table-BU6Tie69.js.map} +1 -1
- package/dist/{admin-tabs-C3myjKdr.js → admin-tabs-D5lqdVcC.js} +2 -2
- package/dist/{admin-tabs-C3myjKdr.js.map → admin-tabs-D5lqdVcC.js.map} +1 -1
- package/dist/{admin-textarea-v-L-PXIc.js → admin-textarea-Dc6lnEub.js} +2 -2
- package/dist/{admin-textarea-v-L-PXIc.js.map → admin-textarea-Dc6lnEub.js.map} +1 -1
- package/dist/{admin-typed-confirm-dialog-BLgpuikW.js → admin-typed-confirm-dialog-Bk6XxmPb.js} +6 -6
- package/dist/{admin-typed-confirm-dialog-BLgpuikW.js.map → admin-typed-confirm-dialog-Bk6XxmPb.js.map} +1 -1
- package/dist/{admin-utils-6yE4YIVI.js → admin-utils-B9eEBNsR.js} +398 -146
- package/dist/admin-utils-B9eEBNsR.js.map +1 -0
- package/dist/{admin-widget-viz-BiEfckd4.js → admin-widget-viz-8aukE3v_.js} +34 -34
- package/dist/{admin-widget-viz-BiEfckd4.js.map → admin-widget-viz-8aukE3v_.js.map} +1 -1
- package/dist/admin.css +1 -1
- package/dist/admin.js +489 -264
- package/dist/admin.js.map +1 -1
- package/dist/client/generated/error-codes.d.ts +1 -1
- package/dist/client/generated/routes.d.ts +94 -22
- package/dist/client/generated/wire.d.ts +89 -14
- package/dist/index.js +1 -1
- package/dist/styles.css +1 -1
- package/package.json +2 -2
- package/dist/admin-catalog-ggiDgWsR.js.map +0 -1
- package/dist/admin-detail-D2zcz_Xm.js +0 -710
- package/dist/admin-dom-VkcwevWr.js.map +0 -1
- package/dist/admin-ops-DT8epiXg.js +0 -217
- package/dist/admin-ops-DT8epiXg.js.map +0 -1
- package/dist/admin-status-badge-D_gDMrht.js.map +0 -1
- package/dist/admin-utils-6yE4YIVI.js.map +0 -1
|
@@ -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" | "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" | "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";
|
|
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" | "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" | "person_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_import_in_progress" | "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;
|
|
@@ -10,6 +10,7 @@ export type OpenRailsRoute = {
|
|
|
10
10
|
sensitive: boolean;
|
|
11
11
|
mountedWhen: string | null;
|
|
12
12
|
consoleOnly?: true;
|
|
13
|
+
person?: true;
|
|
13
14
|
request: string | null;
|
|
14
15
|
responses: Readonly<Record<number, string | null>>;
|
|
15
16
|
errors: readonly string[];
|
|
@@ -2036,23 +2037,6 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
2036
2037
|
};
|
|
2037
2038
|
readonly errors: readonly ["invalid_param"];
|
|
2038
2039
|
readonly errorSets: readonly ["tier:merchant", "request"];
|
|
2039
|
-
}, {
|
|
2040
|
-
readonly method: "POST";
|
|
2041
|
-
readonly path: "/v1/merchant/psps/refresh";
|
|
2042
|
-
readonly group: "merchant_config";
|
|
2043
|
-
readonly auth: "merchant";
|
|
2044
|
-
readonly permission: {
|
|
2045
|
-
readonly merchant: "merchant:config:manage";
|
|
2046
|
-
readonly root: "root:config:manage";
|
|
2047
|
-
};
|
|
2048
|
-
readonly sensitive: false;
|
|
2049
|
-
readonly mountedWhen: null;
|
|
2050
|
-
readonly request: null;
|
|
2051
|
-
readonly responses: {
|
|
2052
|
-
readonly 202: "PSPRefresh";
|
|
2053
|
-
};
|
|
2054
|
-
readonly errors: readonly ["service_unavailable"];
|
|
2055
|
-
readonly errorSets: readonly ["tier:merchant"];
|
|
2056
2040
|
}, {
|
|
2057
2041
|
readonly method: "POST";
|
|
2058
2042
|
readonly path: "/v1/webhooks/{rail}/{account_id}";
|
|
@@ -2235,7 +2219,7 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
2235
2219
|
readonly responses: {
|
|
2236
2220
|
readonly 202: "PSPImport";
|
|
2237
2221
|
};
|
|
2238
|
-
readonly errors: readonly ["invalid_param", "psp_not_found", "service_unavailable"];
|
|
2222
|
+
readonly errors: readonly ["invalid_param", "psp_import_in_progress", "psp_not_found", "service_unavailable"];
|
|
2239
2223
|
readonly errorSets: readonly ["tier:merchant", "request"];
|
|
2240
2224
|
}, {
|
|
2241
2225
|
readonly method: "GET";
|
|
@@ -2252,7 +2236,7 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
2252
2236
|
readonly responses: {
|
|
2253
2237
|
readonly 200: "ListPage<PSPImport>";
|
|
2254
2238
|
};
|
|
2255
|
-
readonly errors: readonly ["invalid_cursor", "invalid_query", "service_unavailable"];
|
|
2239
|
+
readonly errors: readonly ["invalid_cursor", "invalid_param", "invalid_query", "psp_not_found", "service_unavailable"];
|
|
2256
2240
|
readonly errorSets: readonly ["tier:merchant", "request"];
|
|
2257
2241
|
}, {
|
|
2258
2242
|
readonly method: "GET";
|
|
@@ -2335,9 +2319,9 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
2335
2319
|
readonly mountedWhen: null;
|
|
2336
2320
|
readonly request: "LinkPSPImportParams";
|
|
2337
2321
|
readonly responses: {
|
|
2338
|
-
readonly
|
|
2322
|
+
readonly 202: "PSPImport";
|
|
2339
2323
|
};
|
|
2340
|
-
readonly errors: readonly ["invalid_param", "resource_conflict", "resource_not_found", "service_unavailable"];
|
|
2324
|
+
readonly errors: readonly ["invalid_param", "psp_import_in_progress", "resource_conflict", "resource_not_found", "service_unavailable"];
|
|
2341
2325
|
readonly errorSets: readonly ["tier:merchant", "request"];
|
|
2342
2326
|
}, {
|
|
2343
2327
|
readonly method: "POST";
|
|
@@ -2350,11 +2334,12 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
2350
2334
|
};
|
|
2351
2335
|
readonly sensitive: false;
|
|
2352
2336
|
readonly mountedWhen: null;
|
|
2337
|
+
readonly person: true;
|
|
2353
2338
|
readonly request: null;
|
|
2354
2339
|
readonly responses: {
|
|
2355
2340
|
readonly 202: "PSPImport";
|
|
2356
2341
|
};
|
|
2357
|
-
readonly errors: readonly ["invalid_param", "
|
|
2342
|
+
readonly errors: readonly ["invalid_param", "person_required", "psp_import_in_progress", "resource_conflict", "resource_not_found", "service_unavailable"];
|
|
2358
2343
|
readonly errorSets: readonly ["tier:merchant"];
|
|
2359
2344
|
}, {
|
|
2360
2345
|
readonly method: "POST";
|
|
@@ -2373,6 +2358,40 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
2373
2358
|
};
|
|
2374
2359
|
readonly errors: readonly ["invalid_param", "service_unavailable"];
|
|
2375
2360
|
readonly errorSets: readonly ["tier:merchant", "request"];
|
|
2361
|
+
}, {
|
|
2362
|
+
readonly method: "GET";
|
|
2363
|
+
readonly path: "/v1/merchant/provider-catalog";
|
|
2364
|
+
readonly group: "merchant_config";
|
|
2365
|
+
readonly auth: "merchant";
|
|
2366
|
+
readonly permission: {
|
|
2367
|
+
readonly merchant: "merchant:config:read";
|
|
2368
|
+
readonly root: "root:config:read";
|
|
2369
|
+
};
|
|
2370
|
+
readonly sensitive: false;
|
|
2371
|
+
readonly mountedWhen: null;
|
|
2372
|
+
readonly request: null;
|
|
2373
|
+
readonly responses: {
|
|
2374
|
+
readonly 200: "ListPage<ProviderCatalogObject>";
|
|
2375
|
+
};
|
|
2376
|
+
readonly errors: readonly ["invalid_cursor", "invalid_param", "invalid_query", "psp_not_found", "resource_not_found", "service_unavailable"];
|
|
2377
|
+
readonly errorSets: readonly ["tier:merchant", "request"];
|
|
2378
|
+
}, {
|
|
2379
|
+
readonly method: "GET";
|
|
2380
|
+
readonly path: "/v1/merchant/parked-subscriptions";
|
|
2381
|
+
readonly group: "merchant_config";
|
|
2382
|
+
readonly auth: "merchant";
|
|
2383
|
+
readonly permission: {
|
|
2384
|
+
readonly merchant: "merchant:config:read";
|
|
2385
|
+
readonly root: "root:config:read";
|
|
2386
|
+
};
|
|
2387
|
+
readonly sensitive: false;
|
|
2388
|
+
readonly mountedWhen: null;
|
|
2389
|
+
readonly request: null;
|
|
2390
|
+
readonly responses: {
|
|
2391
|
+
readonly 200: "ListPage<ParkedSubscription>";
|
|
2392
|
+
};
|
|
2393
|
+
readonly errors: readonly ["invalid_cursor", "invalid_param", "invalid_query", "psp_not_found", "service_unavailable"];
|
|
2394
|
+
readonly errorSets: readonly ["tier:merchant", "request"];
|
|
2376
2395
|
}, {
|
|
2377
2396
|
readonly method: "GET";
|
|
2378
2397
|
readonly path: "/v1/app/events";
|
|
@@ -2540,6 +2559,59 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
2540
2559
|
};
|
|
2541
2560
|
readonly errors: readonly ["invalid_param", "resource_not_found", "service_unavailable"];
|
|
2542
2561
|
readonly errorSets: readonly ["tier:merchant"];
|
|
2562
|
+
}, {
|
|
2563
|
+
readonly method: "GET";
|
|
2564
|
+
readonly path: "/v1/merchant/proposals";
|
|
2565
|
+
readonly group: "merchant_config";
|
|
2566
|
+
readonly auth: "merchant";
|
|
2567
|
+
readonly permission: {
|
|
2568
|
+
readonly merchant: "merchant:config:read";
|
|
2569
|
+
readonly root: "root:config:read";
|
|
2570
|
+
};
|
|
2571
|
+
readonly sensitive: false;
|
|
2572
|
+
readonly mountedWhen: null;
|
|
2573
|
+
readonly request: null;
|
|
2574
|
+
readonly responses: {
|
|
2575
|
+
readonly 200: "ListPage<Finding>";
|
|
2576
|
+
};
|
|
2577
|
+
readonly errors: readonly ["invalid_cursor", "invalid_param", "invalid_query", "service_unavailable"];
|
|
2578
|
+
readonly errorSets: readonly ["tier:merchant", "request"];
|
|
2579
|
+
}, {
|
|
2580
|
+
readonly method: "POST";
|
|
2581
|
+
readonly path: "/v1/merchant/proposals/approve";
|
|
2582
|
+
readonly group: "merchant_config";
|
|
2583
|
+
readonly auth: "merchant";
|
|
2584
|
+
readonly permission: {
|
|
2585
|
+
readonly merchant: "merchant:config:manage";
|
|
2586
|
+
readonly root: "root:config:manage";
|
|
2587
|
+
};
|
|
2588
|
+
readonly sensitive: false;
|
|
2589
|
+
readonly mountedWhen: null;
|
|
2590
|
+
readonly person: true;
|
|
2591
|
+
readonly request: "ApproveProposalsParams";
|
|
2592
|
+
readonly responses: {
|
|
2593
|
+
readonly 200: "ProposalResults";
|
|
2594
|
+
};
|
|
2595
|
+
readonly errors: readonly ["idempotency_key_in_use", "idempotency_key_required", "idempotency_key_reused", "invalid_param", "person_required", "service_unavailable"];
|
|
2596
|
+
readonly errorSets: readonly ["tier:merchant", "request"];
|
|
2597
|
+
}, {
|
|
2598
|
+
readonly method: "POST";
|
|
2599
|
+
readonly path: "/v1/merchant/proposals/dismiss";
|
|
2600
|
+
readonly group: "merchant_config";
|
|
2601
|
+
readonly auth: "merchant";
|
|
2602
|
+
readonly permission: {
|
|
2603
|
+
readonly merchant: "merchant:config:manage";
|
|
2604
|
+
readonly root: "root:config:manage";
|
|
2605
|
+
};
|
|
2606
|
+
readonly sensitive: false;
|
|
2607
|
+
readonly mountedWhen: null;
|
|
2608
|
+
readonly person: true;
|
|
2609
|
+
readonly request: "DismissProposalsParams";
|
|
2610
|
+
readonly responses: {
|
|
2611
|
+
readonly 200: "ProposalResults";
|
|
2612
|
+
};
|
|
2613
|
+
readonly errors: readonly ["invalid_param", "person_required", "service_unavailable"];
|
|
2614
|
+
readonly errorSets: readonly ["tier:merchant", "request"];
|
|
2543
2615
|
}, {
|
|
2544
2616
|
readonly method: "POST";
|
|
2545
2617
|
readonly path: "/v1/merchant/findings/{id}/resolve";
|
|
@@ -163,6 +163,10 @@ export type ApplyProviderPrice = {
|
|
|
163
163
|
one_off?: boolean;
|
|
164
164
|
archived?: boolean | null;
|
|
165
165
|
};
|
|
166
|
+
export type ApproveProposalsParams = {
|
|
167
|
+
ids?: string[];
|
|
168
|
+
notes?: string;
|
|
169
|
+
};
|
|
166
170
|
export type AskCatalogParams = {
|
|
167
171
|
question?: string;
|
|
168
172
|
};
|
|
@@ -465,7 +469,6 @@ export type CreatePSPImportParams = {
|
|
|
465
469
|
psp?: PSPRef;
|
|
466
470
|
history_since?: string;
|
|
467
471
|
rules?: PSPImportRule[];
|
|
468
|
-
products?: PSPImportProduct[];
|
|
469
472
|
};
|
|
470
473
|
export type CreatePSPParams = {
|
|
471
474
|
key?: string;
|
|
@@ -717,6 +720,7 @@ export type DeclaredBilling = {
|
|
|
717
720
|
default_psp?: PSPRef;
|
|
718
721
|
customers?: DeclaredCustomer[];
|
|
719
722
|
payment_methods?: DeclaredPaymentMethod[];
|
|
723
|
+
psp_customers?: DeclaredPSPCustomer[];
|
|
720
724
|
subscriptions?: DeclaredSubscription[];
|
|
721
725
|
transactions?: DeclaredTransaction[];
|
|
722
726
|
admin_grants?: DeclaredAdminGrant[];
|
|
@@ -749,6 +753,13 @@ export type DeclaredOrderLine = {
|
|
|
749
753
|
description?: string;
|
|
750
754
|
access_ends_at?: string;
|
|
751
755
|
};
|
|
756
|
+
export type DeclaredPSPCustomer = {
|
|
757
|
+
source_id?: string;
|
|
758
|
+
customer?: string;
|
|
759
|
+
rail?: string;
|
|
760
|
+
psp?: PSPRef;
|
|
761
|
+
remote_customer_ref?: string;
|
|
762
|
+
};
|
|
752
763
|
export type DeclaredPaymentMethod = {
|
|
753
764
|
customer?: string;
|
|
754
765
|
rail?: string;
|
|
@@ -864,6 +875,10 @@ export type DestructiveHold = {
|
|
|
864
875
|
opened_at: string;
|
|
865
876
|
cleared_at: string | null;
|
|
866
877
|
};
|
|
878
|
+
export type DismissProposalsParams = {
|
|
879
|
+
ids?: string[];
|
|
880
|
+
notes?: string;
|
|
881
|
+
};
|
|
867
882
|
export type DriftField = {
|
|
868
883
|
field: string;
|
|
869
884
|
openrails_value: string;
|
|
@@ -967,13 +982,14 @@ export type Finding = {
|
|
|
967
982
|
resolved_by: string | null;
|
|
968
983
|
operator_notes: string | null;
|
|
969
984
|
source: "pull" | "verification" | null;
|
|
985
|
+
pull_id: string | null;
|
|
970
986
|
change: FindingChange | null;
|
|
971
987
|
approval_run_id: string | null;
|
|
972
988
|
created_at: string;
|
|
973
989
|
updated_at: string;
|
|
974
990
|
};
|
|
975
991
|
export type FindingChange = {
|
|
976
|
-
kind: "adopt_subscription" | "cancel_provider_schedule" | "cancel_subscription" | "collect_skipped_renewal" | "create_subscription" | "record_charge" | "record_refund" | "refund_charge_after_cancel" | "revoke_access" | "update_card";
|
|
992
|
+
kind: "adopt_subscription" | "cancel_provider_schedule" | "cancel_subscription" | "collect_skipped_renewal" | "correct_subscription" | "create_subscription" | "record_charge" | "record_refund" | "refund_charge_after_cancel" | "revoke_access" | "update_card";
|
|
977
993
|
subject: ChangeSubject;
|
|
978
994
|
customer_id: string | null;
|
|
979
995
|
from: Record<string, unknown> | null;
|
|
@@ -1016,6 +1032,7 @@ export type InvoiceProfile = {
|
|
|
1016
1032
|
};
|
|
1017
1033
|
export type LinkPSPImportParams = {
|
|
1018
1034
|
links?: PSPImportLink[];
|
|
1035
|
+
prices?: PSPImportPriceLink[];
|
|
1019
1036
|
};
|
|
1020
1037
|
export type LowBalanceLine = {
|
|
1021
1038
|
currency: string;
|
|
@@ -1374,21 +1391,23 @@ export type PSPImport = {
|
|
|
1374
1391
|
id: string;
|
|
1375
1392
|
psp: string;
|
|
1376
1393
|
rail: string;
|
|
1394
|
+
origin: "manual" | "onboarding";
|
|
1377
1395
|
status: "applied" | "applying" | "failed" | "pulled" | "pulling";
|
|
1378
1396
|
history_since: string | null;
|
|
1379
1397
|
history_through: string | null;
|
|
1380
1398
|
pulled_at: string | null;
|
|
1381
1399
|
applied_at: string | null;
|
|
1382
1400
|
error: string | null;
|
|
1401
|
+
error_code: "psp_credentials_rejected" | "psp_not_readable" | "pull_roster_implausible" | null;
|
|
1383
1402
|
rules: PSPImportRule[];
|
|
1384
|
-
products: PSPImportProduct[];
|
|
1385
1403
|
counts: PSPImportCount[];
|
|
1404
|
+
proposals: PSPImportProposals;
|
|
1386
1405
|
created_at: string;
|
|
1387
1406
|
updated_at: string;
|
|
1388
1407
|
};
|
|
1389
1408
|
export type PSPImportCount = {
|
|
1390
1409
|
kind: "customer" | "subscription" | "transaction";
|
|
1391
|
-
state: "blocked" | "conflict" | "imported" | "linked" | "unmatched";
|
|
1410
|
+
state: "blocked" | "conflict" | "held" | "imported" | "linked" | "unmatched";
|
|
1392
1411
|
records: number;
|
|
1393
1412
|
};
|
|
1394
1413
|
export type PSPImportFact = {
|
|
@@ -1408,10 +1427,16 @@ export type PSPImportMappingsResult = {
|
|
|
1408
1427
|
set: number;
|
|
1409
1428
|
deleted: number;
|
|
1410
1429
|
};
|
|
1411
|
-
export type
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1430
|
+
export type PSPImportPriceLink = {
|
|
1431
|
+
record?: string;
|
|
1432
|
+
price?: string | null;
|
|
1433
|
+
};
|
|
1434
|
+
export type PSPImportProposals = {
|
|
1435
|
+
open: number;
|
|
1436
|
+
corrections: number;
|
|
1437
|
+
approved: number;
|
|
1438
|
+
dismissed: number;
|
|
1439
|
+
superseded: number;
|
|
1415
1440
|
};
|
|
1416
1441
|
export type PSPImportRecord = {
|
|
1417
1442
|
id: string;
|
|
@@ -1422,9 +1447,10 @@ export type PSPImportRecord = {
|
|
|
1422
1447
|
subscription_ref: string | null;
|
|
1423
1448
|
occurred_at: string | null;
|
|
1424
1449
|
facts: PSPImportFact[];
|
|
1425
|
-
state: "blocked" | "conflict" | "imported" | "linked" | "unmatched";
|
|
1450
|
+
state: "blocked" | "conflict" | "held" | "imported" | "linked" | "unmatched";
|
|
1426
1451
|
customer: string | null;
|
|
1427
1452
|
linked_via: string | null;
|
|
1453
|
+
manual_price: string | null;
|
|
1428
1454
|
reason: string | null;
|
|
1429
1455
|
updated_at: string;
|
|
1430
1456
|
};
|
|
@@ -1450,10 +1476,6 @@ export type PSPRef = {
|
|
|
1450
1476
|
id?: string;
|
|
1451
1477
|
key?: string;
|
|
1452
1478
|
};
|
|
1453
|
-
export type PSPRefresh = {
|
|
1454
|
-
status: string;
|
|
1455
|
-
job_id: string;
|
|
1456
|
-
};
|
|
1457
1479
|
export type PSPRoutingCandidate = {
|
|
1458
1480
|
psp: string;
|
|
1459
1481
|
rail: "ccbill" | "nmi" | "solana" | "stripe";
|
|
@@ -1483,6 +1505,22 @@ export type PackagePrice = {
|
|
|
1483
1505
|
package_size?: number;
|
|
1484
1506
|
free_units?: number;
|
|
1485
1507
|
};
|
|
1508
|
+
export type ParkedSubscription = {
|
|
1509
|
+
id: string;
|
|
1510
|
+
psp: string;
|
|
1511
|
+
rail: string;
|
|
1512
|
+
subscription_ref: string;
|
|
1513
|
+
reason: "customer_unlinked" | "price_unmapped" | "product_held";
|
|
1514
|
+
price_ref: string | null;
|
|
1515
|
+
customer_ref: string | null;
|
|
1516
|
+
import_owned: boolean;
|
|
1517
|
+
evidence: unknown | null;
|
|
1518
|
+
parked_at: string;
|
|
1519
|
+
last_seen_at: string;
|
|
1520
|
+
released_at: string | null;
|
|
1521
|
+
released_by: "converged" | "gone" | "landed" | null;
|
|
1522
|
+
subscription_id: string | null;
|
|
1523
|
+
};
|
|
1486
1524
|
export type PayOrderParams = {
|
|
1487
1525
|
payment?: OrderPaymentParams;
|
|
1488
1526
|
expected_total?: string;
|
|
@@ -1708,6 +1746,7 @@ export type PriceProvider = {
|
|
|
1708
1746
|
psp_id: string;
|
|
1709
1747
|
rail: string;
|
|
1710
1748
|
ids: Record<string, string> | null;
|
|
1749
|
+
retired: boolean;
|
|
1711
1750
|
sync_status: "drifted" | "in_sync" | "missing" | "sync_disabled" | "unknown";
|
|
1712
1751
|
drift: DriftField[];
|
|
1713
1752
|
};
|
|
@@ -1758,6 +1797,43 @@ export type ProductSummary = {
|
|
|
1758
1797
|
tier_rank: number;
|
|
1759
1798
|
archived: boolean;
|
|
1760
1799
|
};
|
|
1800
|
+
export type ProposalError = {
|
|
1801
|
+
code: string;
|
|
1802
|
+
message: string;
|
|
1803
|
+
};
|
|
1804
|
+
export type ProposalResult = {
|
|
1805
|
+
id: string;
|
|
1806
|
+
outcome: "already_resolved" | "approved" | "dismissed" | "failed" | "foreign" | "held" | "superseded";
|
|
1807
|
+
finding: Finding | null;
|
|
1808
|
+
execution: Record<string, unknown> | null;
|
|
1809
|
+
error: ProposalError | null;
|
|
1810
|
+
};
|
|
1811
|
+
export type ProposalResults = {
|
|
1812
|
+
run_id: string | null;
|
|
1813
|
+
data: ProposalResult[];
|
|
1814
|
+
};
|
|
1815
|
+
export type ProviderCatalogObject = {
|
|
1816
|
+
kind: "price" | "product";
|
|
1817
|
+
ref: string;
|
|
1818
|
+
product_ref: string | null;
|
|
1819
|
+
name: string | null;
|
|
1820
|
+
active: boolean;
|
|
1821
|
+
deleted_at: string | null;
|
|
1822
|
+
retired: boolean;
|
|
1823
|
+
terms: ProviderCatalogTerms | null;
|
|
1824
|
+
observed_at: string;
|
|
1825
|
+
observed_via: string;
|
|
1826
|
+
price: string | null;
|
|
1827
|
+
subscriptions: number | null;
|
|
1828
|
+
parked: number | null;
|
|
1829
|
+
finding: string | null;
|
|
1830
|
+
};
|
|
1831
|
+
export type ProviderCatalogTerms = {
|
|
1832
|
+
stated_amount: string | null;
|
|
1833
|
+
currency: string | null;
|
|
1834
|
+
billing_interval_hours: number | null;
|
|
1835
|
+
billing_interval_months: number | null;
|
|
1836
|
+
};
|
|
1761
1837
|
export type ProvisioningToken = {
|
|
1762
1838
|
id: string;
|
|
1763
1839
|
name: string;
|
|
@@ -2201,7 +2277,6 @@ export type UpdateMerchantConfigurationParams = {
|
|
|
2201
2277
|
};
|
|
2202
2278
|
export type UpdatePSPImportParams = {
|
|
2203
2279
|
rules?: PSPImportRule[];
|
|
2204
|
-
products?: PSPImportProduct[];
|
|
2205
2280
|
};
|
|
2206
2281
|
export type UpdatePSPParams = {
|
|
2207
2282
|
expected_revision?: number | null;
|