@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 +11 -6
- package/dist/index.js +233 -227
- package/dist/index.umd.cjs +1 -1
- package/package.json +2 -2
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
|
-
|
|
79
|
-
|
|
80
|
-
|
|
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,
|
|
828
|
+
settings: Record<string, AutoRechargeSettingInput>;
|
|
824
829
|
};
|
|
825
830
|
|
|
826
831
|
declare type SetCustomerInput = {
|