@openrails/billing-ui 0.255.0 → 0.256.1
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/README.md +6 -5
- package/dist/account/cancel-dialog.d.ts +2 -2
- package/dist/account/subscriptions-panel.d.ts +1 -2
- package/dist/admin/lib/api/types.d.ts +1 -1
- package/dist/admin/messages.d.ts +8 -8
- package/dist/admin/pages/catalog/price-format.d.ts +3 -1
- package/dist/admin/pages/catalog/psp-links.d.ts +1 -1
- package/dist/{admin-catalog-rrFZd5N8.js → admin-catalog-C0QRANp7.js} +8 -11
- package/dist/{admin-catalog-rrFZd5N8.js.map → admin-catalog-C0QRANp7.js.map} +1 -1
- package/dist/{admin-detail-Cq59e14B.js → admin-detail-qetSqVDt.js} +2 -2
- package/dist/{admin-detail-Cq59e14B.js.map → admin-detail-qetSqVDt.js.map} +1 -1
- package/dist/{admin-price-detail-Bwk9PXHP.js → admin-price-detail-C9CJwLeM.js} +101 -128
- package/dist/admin-price-detail-C9CJwLeM.js.map +1 -0
- package/dist/{admin-price-format-DM1qORWI.js → admin-price-format-BVUpDoSC.js} +5 -1
- package/dist/admin-price-format-BVUpDoSC.js.map +1 -0
- package/dist/{admin-price-wizard-ByD7j8mB.js → admin-price-wizard-DAkDGWkH.js} +123 -124
- package/dist/admin-price-wizard-DAkDGWkH.js.map +1 -0
- package/dist/{admin-settings-D_8L1Hho.js → admin-settings-_0T6mLFx.js} +1 -5
- package/dist/admin-settings-_0T6mLFx.js.map +1 -0
- package/dist/admin.css +1 -1
- package/dist/admin.js +14 -14
- package/dist/admin.js.map +1 -1
- package/dist/client/client.d.ts +4 -4
- package/dist/client/generated/error-codes.d.ts +1 -1
- package/dist/client/generated/routes.d.ts +30 -13
- package/dist/client/generated/wire.d.ts +62 -23
- package/dist/client/types.d.ts +119 -20
- package/dist/{client-B301IAQD.js → client-Bs2YY-PV.js} +19 -3
- package/dist/client-Bs2YY-PV.js.map +1 -0
- package/dist/client.js +1 -1
- package/dist/{hooks-DARbMTwv.js → hooks-CCA-6uEa.js} +134 -123
- package/dist/{hooks-DARbMTwv.js.map → hooks-CCA-6uEa.js.map} +1 -1
- package/dist/index.js +729 -716
- package/dist/index.js.map +1 -1
- package/dist/locales/de.js +1 -0
- package/dist/locales/de.js.map +1 -1
- package/dist/locales/en.d.ts +1 -0
- package/dist/locales/en.js +1 -0
- package/dist/locales/en.js.map +1 -1
- package/dist/locales/es.js +1 -0
- package/dist/locales/es.js.map +1 -1
- package/dist/locales/ja.js +1 -0
- package/dist/locales/ja.js.map +1 -1
- package/dist/locales/ko.js +1 -0
- package/dist/locales/ko.js.map +1 -1
- package/dist/locales/zh.js +1 -0
- package/dist/locales/zh.js.map +1 -1
- package/dist/react/hooks.d.ts +3 -4
- package/dist/react.js +1 -1
- package/package.json +1 -1
- package/dist/admin-price-detail-Bwk9PXHP.js.map +0 -1
- package/dist/admin-price-format-DM1qORWI.js.map +0 -1
- package/dist/admin-price-wizard-ByD7j8mB.js.map +0 -1
- package/dist/admin-settings-D_8L1Hho.js.map +0 -1
- package/dist/client-B301IAQD.js.map +0 -1
package/dist/client/client.d.ts
CHANGED
|
@@ -94,13 +94,13 @@ export declare function createBillingClient(options?: BillingClientOptions): {
|
|
|
94
94
|
/** Includes `recovery` (list rows do not). */
|
|
95
95
|
getSubscription(subscriptionId: string, signal?: AbortSignal): Promise<Subscription>;
|
|
96
96
|
/**
|
|
97
|
-
* Cancels at period end
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
* repeat with `signature`.
|
|
97
|
+
* Cancels at period end without a wallet. `revokeOnChain` also requests
|
|
98
|
+
* an optional Solana wallet step in `next_action`; the local cancellation
|
|
99
|
+
* is already effective. Complete the step and repeat with `signature`.
|
|
101
100
|
*/
|
|
102
101
|
cancelSubscription(subscriptionId: string, input: {
|
|
103
102
|
reason: string;
|
|
103
|
+
revokeOnChain?: boolean;
|
|
104
104
|
signature?: string;
|
|
105
105
|
}): Promise<Subscription>;
|
|
106
106
|
/** Undoes a scheduled cancel before the period ends. */
|
|
@@ -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" | "
|
|
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" | "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" | "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_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;
|
|
@@ -546,7 +546,24 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
546
546
|
readonly responses: {
|
|
547
547
|
readonly 201: "Price";
|
|
548
548
|
};
|
|
549
|
-
readonly errors: readonly ["catalog_benefit_overlap", "price_key_cadence_conflict", "price_key_not_found", "price_not_found", "product_not_found", "resource_conflict", "revision_mismatch", "trial_unsupported_on_rail"];
|
|
549
|
+
readonly errors: readonly ["catalog_benefit_overlap", "price_key_cadence_conflict", "price_key_not_found", "price_not_found", "price_not_sellable", "product_not_found", "resource_conflict", "revision_mismatch", "trial_unsupported_on_rail"];
|
|
550
|
+
readonly errorSets: readonly ["tier:merchant", "request"];
|
|
551
|
+
}, {
|
|
552
|
+
readonly method: "POST";
|
|
553
|
+
readonly path: "/v1/catalog/provider-prices";
|
|
554
|
+
readonly group: "catalog";
|
|
555
|
+
readonly auth: "merchant";
|
|
556
|
+
readonly permission: {
|
|
557
|
+
readonly merchant: "merchant:catalog:manage";
|
|
558
|
+
readonly root: "root:catalog:manage";
|
|
559
|
+
};
|
|
560
|
+
readonly sensitive: false;
|
|
561
|
+
readonly mountedWhen: null;
|
|
562
|
+
readonly request: "CreateProviderPriceParams";
|
|
563
|
+
readonly responses: {
|
|
564
|
+
readonly 201: "Price";
|
|
565
|
+
};
|
|
566
|
+
readonly errors: readonly ["catalog_benefit_overlap", "price_key_cadence_conflict", "price_key_not_found", "price_not_found", "price_not_sellable", "product_not_found", "provider_price_unreadable", "resource_conflict", "revision_mismatch", "trial_unsupported_on_rail"];
|
|
550
567
|
readonly errorSets: readonly ["tier:merchant", "request"];
|
|
551
568
|
}, {
|
|
552
569
|
readonly method: "GET";
|
|
@@ -563,7 +580,7 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
563
580
|
readonly responses: {
|
|
564
581
|
readonly 200: "ListPage<Price>";
|
|
565
582
|
};
|
|
566
|
-
readonly errors: readonly ["catalog_benefit_overlap", "price_key_cadence_conflict", "price_key_not_found", "price_not_found", "product_not_found", "resource_conflict", "revision_mismatch", "trial_unsupported_on_rail"];
|
|
583
|
+
readonly errors: readonly ["catalog_benefit_overlap", "price_key_cadence_conflict", "price_key_not_found", "price_not_found", "price_not_sellable", "product_not_found", "resource_conflict", "revision_mismatch", "trial_unsupported_on_rail"];
|
|
567
584
|
readonly errorSets: readonly ["tier:merchant", "request"];
|
|
568
585
|
}, {
|
|
569
586
|
readonly method: "GET";
|
|
@@ -580,7 +597,7 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
580
597
|
readonly responses: {
|
|
581
598
|
readonly 200: "Price";
|
|
582
599
|
};
|
|
583
|
-
readonly errors: readonly ["catalog_benefit_overlap", "price_key_cadence_conflict", "price_key_not_found", "price_not_found", "product_not_found", "resource_conflict", "revision_mismatch", "trial_unsupported_on_rail"];
|
|
600
|
+
readonly errors: readonly ["catalog_benefit_overlap", "price_key_cadence_conflict", "price_key_not_found", "price_not_found", "price_not_sellable", "product_not_found", "resource_conflict", "revision_mismatch", "trial_unsupported_on_rail"];
|
|
584
601
|
readonly errorSets: readonly ["tier:merchant", "request"];
|
|
585
602
|
}, {
|
|
586
603
|
readonly method: "GET";
|
|
@@ -597,7 +614,7 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
597
614
|
readonly responses: {
|
|
598
615
|
readonly 200: "ListPage<PriceKeyMovement>";
|
|
599
616
|
};
|
|
600
|
-
readonly errors: readonly ["catalog_benefit_overlap", "price_key_cadence_conflict", "price_key_not_found", "price_not_found", "product_not_found", "resource_conflict", "revision_mismatch", "trial_unsupported_on_rail"];
|
|
617
|
+
readonly errors: readonly ["catalog_benefit_overlap", "price_key_cadence_conflict", "price_key_not_found", "price_not_found", "price_not_sellable", "product_not_found", "resource_conflict", "revision_mismatch", "trial_unsupported_on_rail"];
|
|
601
618
|
readonly errorSets: readonly ["tier:merchant", "request"];
|
|
602
619
|
}, {
|
|
603
620
|
readonly method: "PATCH";
|
|
@@ -614,7 +631,7 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
614
631
|
readonly responses: {
|
|
615
632
|
readonly 200: "Price";
|
|
616
633
|
};
|
|
617
|
-
readonly errors: readonly ["catalog_benefit_overlap", "price_key_cadence_conflict", "price_key_not_found", "price_not_found", "product_not_found", "resource_conflict", "revision_mismatch", "trial_unsupported_on_rail"];
|
|
634
|
+
readonly errors: readonly ["catalog_benefit_overlap", "price_key_cadence_conflict", "price_key_not_found", "price_not_found", "price_not_sellable", "product_not_found", "resource_conflict", "revision_mismatch", "trial_unsupported_on_rail"];
|
|
618
635
|
readonly errorSets: readonly ["tier:merchant", "request"];
|
|
619
636
|
}, {
|
|
620
637
|
readonly method: "GET";
|
|
@@ -665,7 +682,7 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
665
682
|
readonly responses: {
|
|
666
683
|
readonly 200: "Subscription";
|
|
667
684
|
};
|
|
668
|
-
readonly errors: readonly ["cancel_unsupported_on_rail", "
|
|
685
|
+
readonly errors: readonly ["cancel_unsupported_on_rail", "invalid_param", "payment_in_progress", "provider_cancel_held", "resource_conflict", "subscription_not_active", "subscription_not_found"];
|
|
669
686
|
readonly errorSets: readonly ["tier:merchant", "request"];
|
|
670
687
|
}, {
|
|
671
688
|
readonly method: "POST";
|
|
@@ -682,7 +699,7 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
682
699
|
readonly responses: {
|
|
683
700
|
readonly 200: "Subscription";
|
|
684
701
|
};
|
|
685
|
-
readonly errors: readonly ["invalid_param", "subscription_not_found"];
|
|
702
|
+
readonly errors: readonly ["invalid_param", "service_unavailable", "solana_rpc_unavailable", "subscription_not_found"];
|
|
686
703
|
readonly errorSets: readonly ["tier:merchant"];
|
|
687
704
|
}, {
|
|
688
705
|
readonly method: "POST";
|
|
@@ -847,7 +864,7 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
847
864
|
readonly responses: {
|
|
848
865
|
readonly 200: "Subscription";
|
|
849
866
|
};
|
|
850
|
-
readonly errors: readonly ["authentication_required", "invalid_param", "service_unavailable", "subscription_not_found"];
|
|
867
|
+
readonly errors: readonly ["authentication_required", "invalid_param", "service_unavailable", "solana_rpc_unavailable", "subscription_not_found"];
|
|
851
868
|
readonly errorSets: readonly ["tier:customer"];
|
|
852
869
|
}, {
|
|
853
870
|
readonly method: "PUT";
|
|
@@ -1775,7 +1792,7 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
1775
1792
|
readonly responses: {
|
|
1776
1793
|
readonly 200: "AgreementRevocation";
|
|
1777
1794
|
};
|
|
1778
|
-
readonly errors: readonly ["cancel_unsupported_on_rail", "
|
|
1795
|
+
readonly errors: readonly ["cancel_unsupported_on_rail", "invalid_param", "payment_in_progress", "provider_cancel_held", "resource_not_found", "service_unavailable", "subscription_not_active"];
|
|
1779
1796
|
readonly errorSets: readonly ["tier:customer"];
|
|
1780
1797
|
}, {
|
|
1781
1798
|
readonly method: "GET";
|
|
@@ -1809,7 +1826,7 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
1809
1826
|
readonly responses: {
|
|
1810
1827
|
readonly 201: "PSP";
|
|
1811
1828
|
};
|
|
1812
|
-
readonly errors: readonly ["invalid_param", "platform_vault_unreachable", "psp_claim_requires_proof", "psp_credentials_rejected", "
|
|
1829
|
+
readonly errors: readonly ["invalid_param", "platform_vault_mixed_class", "platform_vault_unreachable", "psp_claim_requires_proof", "psp_credentials_rejected", "psp_environment_refused", "psp_exists", "psp_key_taken", "revision_mismatch", "service_unavailable"];
|
|
1813
1830
|
readonly errorSets: readonly ["tier:merchant", "request"];
|
|
1814
1831
|
}, {
|
|
1815
1832
|
readonly method: "GET";
|
|
@@ -1925,7 +1942,7 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
1925
1942
|
readonly responses: {
|
|
1926
1943
|
readonly 200: "MerchantConfigurationState";
|
|
1927
1944
|
};
|
|
1928
|
-
readonly errors: readonly ["
|
|
1945
|
+
readonly errors: readonly ["card_vault_unknown", "charge_psp_incompatible", "charge_psp_unknown", "invalid_param", "platform_vault_mixed_class", "platform_vault_unavailable", "platform_vault_unreachable", "resource_conflict", "revision_mismatch", "service_unavailable"];
|
|
1929
1946
|
readonly errorSets: readonly ["tier:merchant", "request"];
|
|
1930
1947
|
}, {
|
|
1931
1948
|
readonly method: "GET";
|
|
@@ -2508,7 +2525,7 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
2508
2525
|
readonly responses: {
|
|
2509
2526
|
readonly 200: "Subscription";
|
|
2510
2527
|
};
|
|
2511
|
-
readonly errors: readonly ["authentication_required", "invalid_param", "service_unavailable", "subscription_not_found"];
|
|
2528
|
+
readonly errors: readonly ["authentication_required", "invalid_param", "service_unavailable", "solana_rpc_unavailable", "subscription_not_found"];
|
|
2512
2529
|
readonly errorSets: readonly ["tier:network"];
|
|
2513
2530
|
}, {
|
|
2514
2531
|
readonly method: "PUT";
|
|
@@ -2635,7 +2652,7 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
2635
2652
|
readonly responses: {
|
|
2636
2653
|
readonly 200: "AgreementRevocation";
|
|
2637
2654
|
};
|
|
2638
|
-
readonly errors: readonly ["cancel_unsupported_on_rail", "
|
|
2655
|
+
readonly errors: readonly ["cancel_unsupported_on_rail", "invalid_param", "payment_in_progress", "provider_cancel_held", "resource_not_found", "service_unavailable", "subscription_not_active"];
|
|
2639
2656
|
readonly errorSets: readonly ["tier:network"];
|
|
2640
2657
|
}];
|
|
2641
2658
|
export declare const OPENRAILS_ERROR_SETS: Readonly<Record<string, readonly string[]>>;
|
|
@@ -130,7 +130,7 @@ export type ApplyPrice = {
|
|
|
130
130
|
trial_duration_hours?: number | null;
|
|
131
131
|
customer_amount?: CustomerAmount | null;
|
|
132
132
|
quantity?: Quantity | null;
|
|
133
|
-
|
|
133
|
+
sell_via?: string[] | null;
|
|
134
134
|
amount?: string;
|
|
135
135
|
access_duration?: string | null;
|
|
136
136
|
billing_interval?: string | null;
|
|
@@ -147,8 +147,24 @@ export type ApplyProduct = {
|
|
|
147
147
|
required_entitlements?: string[];
|
|
148
148
|
credit_grant?: CreditGrantSpec | null;
|
|
149
149
|
prices?: Record<string, ApplyPrice>;
|
|
150
|
+
provider_prices?: Record<string, ApplyProviderPrice>;
|
|
150
151
|
rate_cards?: RateCard[] | null;
|
|
151
152
|
};
|
|
153
|
+
export type ApplyProviderPrice = {
|
|
154
|
+
psp?: string;
|
|
155
|
+
plan_id?: string;
|
|
156
|
+
price_id?: string;
|
|
157
|
+
flex_id?: string;
|
|
158
|
+
recurring_billing_option_id?: string;
|
|
159
|
+
currency?: string;
|
|
160
|
+
unit_amount?: string;
|
|
161
|
+
billing_interval_hours?: number;
|
|
162
|
+
access_duration_hours?: number | null;
|
|
163
|
+
trial_unit_amount?: string;
|
|
164
|
+
trial_duration_hours?: number;
|
|
165
|
+
one_off?: boolean;
|
|
166
|
+
archived?: boolean | null;
|
|
167
|
+
};
|
|
152
168
|
export type AskCatalogParams = {
|
|
153
169
|
question?: string;
|
|
154
170
|
};
|
|
@@ -339,6 +355,7 @@ export type CatalogApplicationReceipt = {
|
|
|
339
355
|
entitlement_changes: EntitlementChange[];
|
|
340
356
|
changes: CatalogChange[];
|
|
341
357
|
conflicts: CatalogConflict[];
|
|
358
|
+
warnings: CatalogWarning[];
|
|
342
359
|
};
|
|
343
360
|
export type CatalogChange = {
|
|
344
361
|
object: "meter" | "price" | "product";
|
|
@@ -377,6 +394,12 @@ export type CatalogFieldConflict = {
|
|
|
377
394
|
set_by: string;
|
|
378
395
|
set_at: string;
|
|
379
396
|
};
|
|
397
|
+
export type CatalogWarning = {
|
|
398
|
+
key: string;
|
|
399
|
+
product_key: string;
|
|
400
|
+
refused: boolean;
|
|
401
|
+
message: string;
|
|
402
|
+
};
|
|
380
403
|
export type ChangeBasis = {
|
|
381
404
|
row_version: number | null;
|
|
382
405
|
absent_rail_id: string | null;
|
|
@@ -498,7 +521,7 @@ export type CreatePriceParams = {
|
|
|
498
521
|
billing_interval_hours?: number;
|
|
499
522
|
trial_unit_amount?: string;
|
|
500
523
|
trial_duration_hours?: number;
|
|
501
|
-
|
|
524
|
+
sell_via?: string[];
|
|
502
525
|
archived?: boolean;
|
|
503
526
|
expected_revision?: number;
|
|
504
527
|
};
|
|
@@ -533,6 +556,24 @@ export type CreateProductParams = {
|
|
|
533
556
|
ownership?: "consumable" | "extend" | "unique";
|
|
534
557
|
archived?: boolean;
|
|
535
558
|
};
|
|
559
|
+
export type CreateProviderPriceParams = {
|
|
560
|
+
product_id?: string;
|
|
561
|
+
product_key?: string;
|
|
562
|
+
key?: string;
|
|
563
|
+
psp?: string;
|
|
564
|
+
plan_id?: string;
|
|
565
|
+
price_id?: string;
|
|
566
|
+
flex_id?: string;
|
|
567
|
+
recurring_billing_option_id?: string;
|
|
568
|
+
currency?: string;
|
|
569
|
+
unit_amount?: string;
|
|
570
|
+
billing_interval_hours?: number;
|
|
571
|
+
access_duration_hours?: number | null;
|
|
572
|
+
trial_unit_amount?: string;
|
|
573
|
+
trial_duration_hours?: number;
|
|
574
|
+
one_off?: boolean;
|
|
575
|
+
archived?: boolean;
|
|
576
|
+
};
|
|
536
577
|
export type CreateProvisioningTokenParams = {
|
|
537
578
|
name?: string;
|
|
538
579
|
};
|
|
@@ -606,6 +647,7 @@ export type CustomerAmount = {
|
|
|
606
647
|
};
|
|
607
648
|
export type CustomerCancelSubscriptionParams = {
|
|
608
649
|
reason?: string;
|
|
650
|
+
revoke_on_chain?: boolean;
|
|
609
651
|
signature?: string;
|
|
610
652
|
};
|
|
611
653
|
export type CustomerChangeSubscriptionParams = {
|
|
@@ -1029,7 +1071,6 @@ export type MatrixCell = {
|
|
|
1029
1071
|
export type MerchantConfigurationState = {
|
|
1030
1072
|
revision: number;
|
|
1031
1073
|
display_name: string;
|
|
1032
|
-
sandbox: boolean;
|
|
1033
1074
|
profile?: MerchantProfile;
|
|
1034
1075
|
collection_threshold?: string;
|
|
1035
1076
|
monthly_floor?: string;
|
|
@@ -1043,7 +1084,8 @@ export type MerchantConfigurationState = {
|
|
|
1043
1084
|
dunning_policy?: DunningPolicy;
|
|
1044
1085
|
payment_page?: MerchantPaymentPageSettings;
|
|
1045
1086
|
balance_notices?: BalanceNoticeSettings;
|
|
1046
|
-
|
|
1087
|
+
card_vault?: string;
|
|
1088
|
+
charge_psps?: string[];
|
|
1047
1089
|
billing_policies?: BillingPolicy[];
|
|
1048
1090
|
billing_policy_bindings?: BillingPolicyBinding[];
|
|
1049
1091
|
delegated_invoker_wasted_spend_limits?: BudgetWindow[];
|
|
@@ -1374,14 +1416,6 @@ export type PSPCredential = {
|
|
|
1374
1416
|
configured: boolean;
|
|
1375
1417
|
validated_at: string | null;
|
|
1376
1418
|
};
|
|
1377
|
-
export type PSPLinkState = {
|
|
1378
|
-
status: "error" | "linked" | "pending_manual_link" | "sync_disabled";
|
|
1379
|
-
ids: Record<string, string> | null;
|
|
1380
|
-
lookup_key: string;
|
|
1381
|
-
sync_status: "drifted" | "in_sync" | "missing" | "never_synced" | "sync_disabled" | "unknown";
|
|
1382
|
-
drift: DriftField[];
|
|
1383
|
-
message: string;
|
|
1384
|
-
};
|
|
1385
1419
|
export type PSPPaymentConfig = {
|
|
1386
1420
|
psp_id: string;
|
|
1387
1421
|
key: string;
|
|
@@ -1550,12 +1584,6 @@ export type PaymentSettledEvent = {
|
|
|
1550
1584
|
amount: string;
|
|
1551
1585
|
currency: string;
|
|
1552
1586
|
};
|
|
1553
|
-
export type PendingAction = {
|
|
1554
|
-
psp: string;
|
|
1555
|
-
action: string;
|
|
1556
|
-
hint: string;
|
|
1557
|
-
patch_required: Record<string, Record<string, Record<string, string>>> | null;
|
|
1558
|
-
};
|
|
1559
1587
|
export type PerUnitPrice = {
|
|
1560
1588
|
unit_amount?: string;
|
|
1561
1589
|
divide_by?: number;
|
|
@@ -1596,10 +1624,12 @@ export type Price = {
|
|
|
1596
1624
|
currency: string;
|
|
1597
1625
|
access_duration_hours: number | null;
|
|
1598
1626
|
billing_interval_hours: number | null;
|
|
1627
|
+
billing_interval_months: number | null;
|
|
1599
1628
|
trial_unit_amount: string | null;
|
|
1600
1629
|
trial_duration_hours: number | null;
|
|
1601
|
-
|
|
1602
|
-
|
|
1630
|
+
sell_via: string[];
|
|
1631
|
+
provider: PriceProvider | null;
|
|
1632
|
+
solana_plan: string | null;
|
|
1603
1633
|
created_at: string;
|
|
1604
1634
|
updated_at: string;
|
|
1605
1635
|
};
|
|
@@ -1662,6 +1692,15 @@ export type PriceMigrationRailCounts = {
|
|
|
1662
1692
|
requires_action: number;
|
|
1663
1693
|
skipped: number;
|
|
1664
1694
|
};
|
|
1695
|
+
export type PriceProvider = {
|
|
1696
|
+
access_duration_default: boolean;
|
|
1697
|
+
psp: string;
|
|
1698
|
+
psp_id: string;
|
|
1699
|
+
rail: string;
|
|
1700
|
+
ids: Record<string, string> | null;
|
|
1701
|
+
sync_status: "drifted" | "in_sync" | "missing" | "sync_disabled" | "unknown";
|
|
1702
|
+
drift: DriftField[];
|
|
1703
|
+
};
|
|
1665
1704
|
export type Product = {
|
|
1666
1705
|
revision: number;
|
|
1667
1706
|
id: string;
|
|
@@ -2047,7 +2086,6 @@ export type UpdateCustomerParams = {
|
|
|
2047
2086
|
export type UpdateMerchantConfigurationParams = {
|
|
2048
2087
|
expected_revision?: number | null;
|
|
2049
2088
|
display_name?: string;
|
|
2050
|
-
sandbox?: boolean;
|
|
2051
2089
|
profile?: MerchantProfile;
|
|
2052
2090
|
collection_threshold?: string;
|
|
2053
2091
|
monthly_floor?: string;
|
|
@@ -2061,7 +2099,8 @@ export type UpdateMerchantConfigurationParams = {
|
|
|
2061
2099
|
dunning_policy?: DunningPolicy;
|
|
2062
2100
|
payment_page?: MerchantPaymentPageSettings;
|
|
2063
2101
|
balance_notices?: BalanceNoticeSettings;
|
|
2064
|
-
|
|
2102
|
+
card_vault?: string;
|
|
2103
|
+
charge_psps?: string[];
|
|
2065
2104
|
billing_policies?: BillingPolicy[];
|
|
2066
2105
|
billing_policy_bindings?: BillingPolicyBinding[];
|
|
2067
2106
|
delegated_invoker_wasted_spend_limits?: BudgetWindow[];
|
|
@@ -2083,7 +2122,7 @@ export type UpdatePaymentMethodParams = {
|
|
|
2083
2122
|
};
|
|
2084
2123
|
export type UpdatePriceParams = {
|
|
2085
2124
|
archived?: boolean | null;
|
|
2086
|
-
|
|
2125
|
+
sell_via?: string[] | null;
|
|
2087
2126
|
expected_revision?: number;
|
|
2088
2127
|
};
|
|
2089
2128
|
export type UpdateProductParams = {
|
package/dist/client/types.d.ts
CHANGED
|
@@ -30,8 +30,17 @@ export interface ListPage<T> {
|
|
|
30
30
|
export declare const subscriptionStatusSchema: z.ZodString;
|
|
31
31
|
/** `pending | active | past_due | awaiting_method | unverified | canceled`; kept open for new values. */
|
|
32
32
|
export type SubscriptionStatus = "pending" | "active" | "past_due" | "awaiting_method" | "unverified" | "canceled" | (string & {});
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
/** The provider that owns and runs a provider price. */
|
|
34
|
+
export declare const priceProviderSchema: z.ZodObject<{
|
|
35
|
+
psp_id: z.ZodString;
|
|
36
|
+
access_duration_default: z.ZodOptional<z.ZodBoolean>;
|
|
37
|
+
drift: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
38
|
+
field: z.ZodString;
|
|
39
|
+
openrails_value: z.ZodString;
|
|
40
|
+
remote_value: z.ZodString;
|
|
41
|
+
}, z.core.$strip>>>>;
|
|
42
|
+
psp: z.ZodString;
|
|
43
|
+
rail: z.ZodString;
|
|
35
44
|
ids: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
36
45
|
sync_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
46
|
}, z.core.$strip>;
|
|
@@ -55,13 +64,28 @@ export declare const priceSchema: z.ZodObject<{
|
|
|
55
64
|
currency: z.ZodString;
|
|
56
65
|
access_duration_hours: z.ZodNullable<z.ZodNumber>;
|
|
57
66
|
billing_interval_hours: z.ZodNullable<z.ZodNumber>;
|
|
67
|
+
billing_interval_months: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
68
|
+
quantity: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
69
|
+
min: z.ZodNumber;
|
|
70
|
+
max: z.ZodNumber;
|
|
71
|
+
}, z.core.$strip>>>;
|
|
72
|
+
solana_plan: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
73
|
trial_unit_amount: z.ZodNullable<z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
59
74
|
trial_duration_hours: z.ZodNullable<z.ZodNumber>;
|
|
60
|
-
|
|
61
|
-
|
|
75
|
+
sell_via: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
76
|
+
provider: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
77
|
+
psp_id: z.ZodString;
|
|
78
|
+
access_duration_default: z.ZodOptional<z.ZodBoolean>;
|
|
79
|
+
drift: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
80
|
+
field: z.ZodString;
|
|
81
|
+
openrails_value: z.ZodString;
|
|
82
|
+
remote_value: z.ZodString;
|
|
83
|
+
}, z.core.$strip>>>>;
|
|
84
|
+
psp: z.ZodString;
|
|
85
|
+
rail: z.ZodString;
|
|
62
86
|
ids: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
63
87
|
sync_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
64
|
-
}, z.core.$strip
|
|
88
|
+
}, z.core.$strip>>>;
|
|
65
89
|
created_at: z.ZodString;
|
|
66
90
|
updated_at: z.ZodString;
|
|
67
91
|
}, z.core.$strip>;
|
|
@@ -170,13 +194,28 @@ export declare const subscriptionSchema: z.ZodObject<{
|
|
|
170
194
|
currency: z.ZodString;
|
|
171
195
|
access_duration_hours: z.ZodNullable<z.ZodNumber>;
|
|
172
196
|
billing_interval_hours: z.ZodNullable<z.ZodNumber>;
|
|
197
|
+
billing_interval_months: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
198
|
+
quantity: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
199
|
+
min: z.ZodNumber;
|
|
200
|
+
max: z.ZodNumber;
|
|
201
|
+
}, z.core.$strip>>>;
|
|
202
|
+
solana_plan: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
173
203
|
trial_unit_amount: z.ZodNullable<z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
174
204
|
trial_duration_hours: z.ZodNullable<z.ZodNumber>;
|
|
175
|
-
|
|
176
|
-
|
|
205
|
+
sell_via: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
206
|
+
provider: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
207
|
+
psp_id: z.ZodString;
|
|
208
|
+
access_duration_default: z.ZodOptional<z.ZodBoolean>;
|
|
209
|
+
drift: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
210
|
+
field: z.ZodString;
|
|
211
|
+
openrails_value: z.ZodString;
|
|
212
|
+
remote_value: z.ZodString;
|
|
213
|
+
}, z.core.$strip>>>>;
|
|
214
|
+
psp: z.ZodString;
|
|
215
|
+
rail: z.ZodString;
|
|
177
216
|
ids: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
178
217
|
sync_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
179
|
-
}, z.core.$strip
|
|
218
|
+
}, z.core.$strip>>>;
|
|
180
219
|
created_at: z.ZodString;
|
|
181
220
|
updated_at: z.ZodString;
|
|
182
221
|
}, z.core.$strip>>>;
|
|
@@ -209,13 +248,28 @@ export declare const subscriptionSchema: z.ZodObject<{
|
|
|
209
248
|
currency: z.ZodString;
|
|
210
249
|
access_duration_hours: z.ZodNullable<z.ZodNumber>;
|
|
211
250
|
billing_interval_hours: z.ZodNullable<z.ZodNumber>;
|
|
251
|
+
billing_interval_months: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
252
|
+
quantity: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
253
|
+
min: z.ZodNumber;
|
|
254
|
+
max: z.ZodNumber;
|
|
255
|
+
}, z.core.$strip>>>;
|
|
256
|
+
solana_plan: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
212
257
|
trial_unit_amount: z.ZodNullable<z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
213
258
|
trial_duration_hours: z.ZodNullable<z.ZodNumber>;
|
|
214
|
-
|
|
215
|
-
|
|
259
|
+
sell_via: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
260
|
+
provider: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
261
|
+
psp_id: z.ZodString;
|
|
262
|
+
access_duration_default: z.ZodOptional<z.ZodBoolean>;
|
|
263
|
+
drift: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
264
|
+
field: z.ZodString;
|
|
265
|
+
openrails_value: z.ZodString;
|
|
266
|
+
remote_value: z.ZodString;
|
|
267
|
+
}, z.core.$strip>>>>;
|
|
268
|
+
psp: z.ZodString;
|
|
269
|
+
rail: z.ZodString;
|
|
216
270
|
ids: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
217
271
|
sync_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
218
|
-
}, z.core.$strip
|
|
272
|
+
}, z.core.$strip>>>;
|
|
219
273
|
created_at: z.ZodString;
|
|
220
274
|
updated_at: z.ZodString;
|
|
221
275
|
}, z.core.$strip>>>;
|
|
@@ -590,13 +644,28 @@ export declare const productSchema: z.ZodObject<{
|
|
|
590
644
|
currency: z.ZodString;
|
|
591
645
|
access_duration_hours: z.ZodNullable<z.ZodNumber>;
|
|
592
646
|
billing_interval_hours: z.ZodNullable<z.ZodNumber>;
|
|
647
|
+
billing_interval_months: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
648
|
+
quantity: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
649
|
+
min: z.ZodNumber;
|
|
650
|
+
max: z.ZodNumber;
|
|
651
|
+
}, z.core.$strip>>>;
|
|
652
|
+
solana_plan: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
593
653
|
trial_unit_amount: z.ZodNullable<z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
594
654
|
trial_duration_hours: z.ZodNullable<z.ZodNumber>;
|
|
595
|
-
|
|
596
|
-
|
|
655
|
+
sell_via: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
656
|
+
provider: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
657
|
+
psp_id: z.ZodString;
|
|
658
|
+
access_duration_default: z.ZodOptional<z.ZodBoolean>;
|
|
659
|
+
drift: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
660
|
+
field: z.ZodString;
|
|
661
|
+
openrails_value: z.ZodString;
|
|
662
|
+
remote_value: z.ZodString;
|
|
663
|
+
}, z.core.$strip>>>>;
|
|
664
|
+
psp: z.ZodString;
|
|
665
|
+
rail: z.ZodString;
|
|
597
666
|
ids: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
598
667
|
sync_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
599
|
-
}, z.core.$strip
|
|
668
|
+
}, z.core.$strip>>>;
|
|
600
669
|
created_at: z.ZodString;
|
|
601
670
|
updated_at: z.ZodString;
|
|
602
671
|
}, z.core.$strip>>>>, z.ZodTransform<{
|
|
@@ -618,11 +687,26 @@ export declare const productSchema: z.ZodObject<{
|
|
|
618
687
|
min_amount: string;
|
|
619
688
|
max_amount: string;
|
|
620
689
|
} | null | undefined;
|
|
621
|
-
|
|
622
|
-
|
|
690
|
+
billing_interval_months?: number | null | undefined;
|
|
691
|
+
quantity?: {
|
|
692
|
+
min: number;
|
|
693
|
+
max: number;
|
|
694
|
+
} | null | undefined;
|
|
695
|
+
solana_plan?: string | null | undefined;
|
|
696
|
+
sell_via?: string[] | null | undefined;
|
|
697
|
+
provider?: {
|
|
698
|
+
psp_id: string;
|
|
699
|
+
psp: string;
|
|
700
|
+
rail: string;
|
|
701
|
+
access_duration_default?: boolean | undefined;
|
|
702
|
+
drift?: {
|
|
703
|
+
field: string;
|
|
704
|
+
openrails_value: string;
|
|
705
|
+
remote_value: string;
|
|
706
|
+
}[] | null | undefined;
|
|
623
707
|
ids?: Record<string, string> | null | undefined;
|
|
624
708
|
sync_status?: string | null | undefined;
|
|
625
|
-
}
|
|
709
|
+
} | null | undefined;
|
|
626
710
|
}[], {
|
|
627
711
|
id: string;
|
|
628
712
|
key: string;
|
|
@@ -642,11 +726,26 @@ export declare const productSchema: z.ZodObject<{
|
|
|
642
726
|
min_amount: string;
|
|
643
727
|
max_amount: string;
|
|
644
728
|
} | null | undefined;
|
|
645
|
-
|
|
646
|
-
|
|
729
|
+
billing_interval_months?: number | null | undefined;
|
|
730
|
+
quantity?: {
|
|
731
|
+
min: number;
|
|
732
|
+
max: number;
|
|
733
|
+
} | null | undefined;
|
|
734
|
+
solana_plan?: string | null | undefined;
|
|
735
|
+
sell_via?: string[] | null | undefined;
|
|
736
|
+
provider?: {
|
|
737
|
+
psp_id: string;
|
|
738
|
+
psp: string;
|
|
739
|
+
rail: string;
|
|
740
|
+
access_duration_default?: boolean | undefined;
|
|
741
|
+
drift?: {
|
|
742
|
+
field: string;
|
|
743
|
+
openrails_value: string;
|
|
744
|
+
remote_value: string;
|
|
745
|
+
}[] | null | undefined;
|
|
647
746
|
ids?: Record<string, string> | null | undefined;
|
|
648
747
|
sync_status?: string | null | undefined;
|
|
649
|
-
}
|
|
748
|
+
} | null | undefined;
|
|
650
749
|
}[] | null | undefined>>;
|
|
651
750
|
created_at: z.ZodString;
|
|
652
751
|
updated_at: z.ZodString;
|
|
@@ -228,7 +228,15 @@ var k = e.string().refine(C, "amount must be an int64 string"), A = e.string(),
|
|
|
228
228
|
data: e.array(t).nullish().transform((e) => e ?? []),
|
|
229
229
|
next_cursor: e.string().nullish().transform((e) => e ?? null)
|
|
230
230
|
}), ie = e.string(), ae = e.object({
|
|
231
|
-
|
|
231
|
+
psp_id: e.string(),
|
|
232
|
+
access_duration_default: e.boolean().optional(),
|
|
233
|
+
drift: e.array(e.object({
|
|
234
|
+
field: e.string(),
|
|
235
|
+
openrails_value: e.string(),
|
|
236
|
+
remote_value: e.string()
|
|
237
|
+
})).nullish(),
|
|
238
|
+
psp: e.string(),
|
|
239
|
+
rail: e.string(),
|
|
232
240
|
ids: e.record(e.string(), e.string()).nullish(),
|
|
233
241
|
sync_status: e.string().nullish()
|
|
234
242
|
}), M = e.object({
|
|
@@ -246,9 +254,16 @@ var k = e.string().refine(C, "amount must be an int64 string"), A = e.string(),
|
|
|
246
254
|
currency: e.string(),
|
|
247
255
|
access_duration_hours: e.number().nullable(),
|
|
248
256
|
billing_interval_hours: e.number().nullable(),
|
|
257
|
+
billing_interval_months: e.number().int().positive().nullish(),
|
|
258
|
+
quantity: e.object({
|
|
259
|
+
min: e.number().int().positive(),
|
|
260
|
+
max: e.number().int().positive()
|
|
261
|
+
}).nullish(),
|
|
262
|
+
solana_plan: e.string().nullish(),
|
|
249
263
|
trial_unit_amount: k.nullable(),
|
|
250
264
|
trial_duration_hours: e.number().nullable(),
|
|
251
|
-
|
|
265
|
+
sell_via: e.array(e.string()).nullish(),
|
|
266
|
+
provider: ae.nullish(),
|
|
252
267
|
created_at: A,
|
|
253
268
|
updated_at: A
|
|
254
269
|
}), N = e.object({
|
|
@@ -777,6 +792,7 @@ function De(e = {}) {
|
|
|
777
792
|
method: "POST",
|
|
778
793
|
body: {
|
|
779
794
|
reason: t.reason.trim(),
|
|
795
|
+
revoke_on_chain: t.revokeOnChain,
|
|
780
796
|
signature: t.signature
|
|
781
797
|
}
|
|
782
798
|
});
|
|
@@ -986,4 +1002,4 @@ var $ = (e) => e instanceof X || e instanceof Error && e.name === "WalletRejecte
|
|
|
986
1002
|
//#endregion
|
|
987
1003
|
export { o as A, u as C, r as D, n as E, i as O, f as S, t as T, y as _, De as a, _ as b, Ce as c, T as d, te as f, C as g, O as h, X as i, a as k, Y as l, re as m, be as n, Se as o, ne as p, we as r, $ as s, xe as t, J as u, v, c as w, d as x, m as y };
|
|
988
1004
|
|
|
989
|
-
//# sourceMappingURL=client-
|
|
1005
|
+
//# sourceMappingURL=client-Bs2YY-PV.js.map
|