@bpinternal/billing-ui 0.14.2 → 0.15.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/index.d.ts CHANGED
@@ -74,11 +74,16 @@ export declare type AutoRechargeDialogProps = {
74
74
 
75
75
  export declare type AutoRechargeSetting = AutoRechargeSettings[string];
76
76
 
77
- /**
78
- * Auto-recharge settings, keyed by feature (e.g. 'ai_spend' for the AI-spend
79
- * credit wallet). `threshold`/`chunkSize`/`maxAmount` are nano-dollars
80
- * (1e9 nano = $1) and must be multiples of $5 (5_000_000_000).
81
- */
77
+ export declare type AutoRechargeSettingInput = {
78
+ enabled?: boolean;
79
+ targetType?: 'addon' | 'credit_grant';
80
+ thresholdType?: 'percentage' | 'remaining_amount';
81
+ threshold?: number;
82
+ addonId?: string;
83
+ chunkSize?: number | null;
84
+ maxAmount?: number | null;
85
+ };
86
+
82
87
  export declare type AutoRechargeSettings = Awaited<ReturnType<BillingClient['getAutoRechargeSettings']>>['settings'];
83
88
 
84
89
  /**
@@ -820,7 +825,7 @@ export declare type SelectProps = SelectHTMLAttributes<HTMLSelectElement> & {
820
825
  };
821
826
 
822
827
  export declare type SetAutoRechargeSettingsInput = {
823
- settings: Record<string, AutoRechargeSetting>;
828
+ settings: Record<string, AutoRechargeSettingInput>;
824
829
  };
825
830
 
826
831
  declare type SetCustomerInput = {