@revkeen/sdk 1.20260628.1235 → 1.20260629.1241
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.mts +16 -3
- package/dist/index.d.ts +16 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -3204,9 +3204,13 @@ type Price = {
|
|
|
3204
3204
|
*/
|
|
3205
3205
|
currency: string;
|
|
3206
3206
|
/**
|
|
3207
|
-
* Price in minor units (cents)
|
|
3207
|
+
* Price in minor units (cents). Null when the per-unit rate is sub-penny — see `unit_amount_decimal`.
|
|
3208
3208
|
*/
|
|
3209
3209
|
unit_amount: number | null;
|
|
3210
|
+
/**
|
|
3211
|
+
* Exact per-unit rate in minor units as a decimal string (sub-penny safe, e.g. "0.02" = 0.02 pence). Set when the rate is not a whole minor unit; mirrors Stripe's `unit_amount_decimal`.
|
|
3212
|
+
*/
|
|
3213
|
+
unit_amount_decimal?: string | null;
|
|
3210
3214
|
/**
|
|
3211
3215
|
* Price type
|
|
3212
3216
|
*/
|
|
@@ -3677,9 +3681,13 @@ type CreateMeterPriceRequest = {
|
|
|
3677
3681
|
*/
|
|
3678
3682
|
currency: string;
|
|
3679
3683
|
/**
|
|
3680
|
-
* Price per unit in minor units (for per_unit)
|
|
3684
|
+
* Price per unit in minor units (for per_unit). For a sub-penny rate use `unit_amount_decimal`.
|
|
3681
3685
|
*/
|
|
3682
3686
|
unit_amount_minor?: number;
|
|
3687
|
+
/**
|
|
3688
|
+
* Exact per-unit rate in minor units as a decimal string (sub-penny safe, e.g. "0.02" = 0.02 pence). Takes precedence over `unit_amount_minor`. Mirrors Stripe's `unit_amount_decimal`.
|
|
3689
|
+
*/
|
|
3690
|
+
unit_amount_decimal?: string;
|
|
3683
3691
|
/**
|
|
3684
3692
|
* Base charge per period in minor units
|
|
3685
3693
|
*/
|
|
@@ -3729,6 +3737,7 @@ type MeterPriceListResponse = {
|
|
|
3729
3737
|
*/
|
|
3730
3738
|
type UpdateMeterPriceRequest = {
|
|
3731
3739
|
unit_amount_minor?: number;
|
|
3740
|
+
unit_amount_decimal?: string;
|
|
3732
3741
|
flat_fee_minor?: number;
|
|
3733
3742
|
package_size?: number;
|
|
3734
3743
|
cost_per_unit_minor?: number;
|
|
@@ -5989,9 +5998,13 @@ type UsageBalanceMeter = {
|
|
|
5989
5998
|
*/
|
|
5990
5999
|
tiers_mode: string | null;
|
|
5991
6000
|
/**
|
|
5992
|
-
* Per-unit amount in minor currency units when applicable
|
|
6001
|
+
* Per-unit amount in minor currency units when applicable. Null when the rate is sub-penny — see `unit_amount_decimal`.
|
|
5993
6002
|
*/
|
|
5994
6003
|
unit_amount_minor: number | null;
|
|
6004
|
+
/**
|
|
6005
|
+
* Exact per-unit rate in minor units as a decimal string (sub-penny safe, e.g. "0.02"). Mirrors Stripe's `unit_amount_decimal`.
|
|
6006
|
+
*/
|
|
6007
|
+
unit_amount_decimal?: string | null;
|
|
5995
6008
|
/**
|
|
5996
6009
|
* Package size when package-style metered pricing is configured
|
|
5997
6010
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -3204,9 +3204,13 @@ type Price = {
|
|
|
3204
3204
|
*/
|
|
3205
3205
|
currency: string;
|
|
3206
3206
|
/**
|
|
3207
|
-
* Price in minor units (cents)
|
|
3207
|
+
* Price in minor units (cents). Null when the per-unit rate is sub-penny — see `unit_amount_decimal`.
|
|
3208
3208
|
*/
|
|
3209
3209
|
unit_amount: number | null;
|
|
3210
|
+
/**
|
|
3211
|
+
* Exact per-unit rate in minor units as a decimal string (sub-penny safe, e.g. "0.02" = 0.02 pence). Set when the rate is not a whole minor unit; mirrors Stripe's `unit_amount_decimal`.
|
|
3212
|
+
*/
|
|
3213
|
+
unit_amount_decimal?: string | null;
|
|
3210
3214
|
/**
|
|
3211
3215
|
* Price type
|
|
3212
3216
|
*/
|
|
@@ -3677,9 +3681,13 @@ type CreateMeterPriceRequest = {
|
|
|
3677
3681
|
*/
|
|
3678
3682
|
currency: string;
|
|
3679
3683
|
/**
|
|
3680
|
-
* Price per unit in minor units (for per_unit)
|
|
3684
|
+
* Price per unit in minor units (for per_unit). For a sub-penny rate use `unit_amount_decimal`.
|
|
3681
3685
|
*/
|
|
3682
3686
|
unit_amount_minor?: number;
|
|
3687
|
+
/**
|
|
3688
|
+
* Exact per-unit rate in minor units as a decimal string (sub-penny safe, e.g. "0.02" = 0.02 pence). Takes precedence over `unit_amount_minor`. Mirrors Stripe's `unit_amount_decimal`.
|
|
3689
|
+
*/
|
|
3690
|
+
unit_amount_decimal?: string;
|
|
3683
3691
|
/**
|
|
3684
3692
|
* Base charge per period in minor units
|
|
3685
3693
|
*/
|
|
@@ -3729,6 +3737,7 @@ type MeterPriceListResponse = {
|
|
|
3729
3737
|
*/
|
|
3730
3738
|
type UpdateMeterPriceRequest = {
|
|
3731
3739
|
unit_amount_minor?: number;
|
|
3740
|
+
unit_amount_decimal?: string;
|
|
3732
3741
|
flat_fee_minor?: number;
|
|
3733
3742
|
package_size?: number;
|
|
3734
3743
|
cost_per_unit_minor?: number;
|
|
@@ -5989,9 +5998,13 @@ type UsageBalanceMeter = {
|
|
|
5989
5998
|
*/
|
|
5990
5999
|
tiers_mode: string | null;
|
|
5991
6000
|
/**
|
|
5992
|
-
* Per-unit amount in minor currency units when applicable
|
|
6001
|
+
* Per-unit amount in minor currency units when applicable. Null when the rate is sub-penny — see `unit_amount_decimal`.
|
|
5993
6002
|
*/
|
|
5994
6003
|
unit_amount_minor: number | null;
|
|
6004
|
+
/**
|
|
6005
|
+
* Exact per-unit rate in minor units as a decimal string (sub-penny safe, e.g. "0.02"). Mirrors Stripe's `unit_amount_decimal`.
|
|
6006
|
+
*/
|
|
6007
|
+
unit_amount_decimal?: string | null;
|
|
5995
6008
|
/**
|
|
5996
6009
|
* Package size when package-style metered pricing is configured
|
|
5997
6010
|
*/
|