@revenuecat/purchases-typescript-internal-esm 14.0.2 → 14.2.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 +1 -0
- package/dist/index.js +1 -0
- package/dist/offerings.d.ts +6 -6
- package/dist/virtualCurrency.d.ts +36 -0
- package/dist/virtualCurrency.js +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/offerings.d.ts
CHANGED
|
@@ -95,21 +95,21 @@ export interface PurchasesStoreProduct {
|
|
|
95
95
|
* divided by 4. Note that this value may be an approximation. For Google subscriptions,
|
|
96
96
|
* this value will use the basePlan to calculate the value.
|
|
97
97
|
*/
|
|
98
|
-
readonly pricePerWeek: number;
|
|
98
|
+
readonly pricePerWeek: number | null;
|
|
99
99
|
/**
|
|
100
100
|
* Null for INAPP products. The price of the PurchasesStoreProduct in a monthly recurrence.
|
|
101
101
|
* This means that, for example, if the period is annual, the price will be
|
|
102
102
|
* divided by 12. Note that this value may be an approximation. For Google subscriptions,
|
|
103
103
|
* this value will use the basePlan to calculate the value.
|
|
104
104
|
*/
|
|
105
|
-
readonly pricePerMonth: number;
|
|
105
|
+
readonly pricePerMonth: number | null;
|
|
106
106
|
/**
|
|
107
107
|
* Null for INAPP products. The price of the PurchasesStoreProduct in a yearly recurrence.
|
|
108
108
|
* This means that, for example, if the period is monthly, the price will be multiplied by
|
|
109
109
|
* 12. Note that this value may be an approximation. For Google subscriptions, this value
|
|
110
110
|
* will use the basePlan to calculate the value.
|
|
111
111
|
*/
|
|
112
|
-
readonly pricePerYear: number;
|
|
112
|
+
readonly pricePerYear: number | null;
|
|
113
113
|
/**
|
|
114
114
|
* Null for INAPP products. The price of the PurchasesStoreProduct formatted for the current
|
|
115
115
|
* locale in a weekly recurrence. This means that, for example, if the period is monthly,
|
|
@@ -117,7 +117,7 @@ export interface PurchasesStoreProduct {
|
|
|
117
117
|
* given locale. Note that this value may be an approximation. For Google subscriptions,
|
|
118
118
|
* this value will use the basePlan to calculate the value.
|
|
119
119
|
*/
|
|
120
|
-
readonly pricePerWeekString: string;
|
|
120
|
+
readonly pricePerWeekString: string | null;
|
|
121
121
|
/**
|
|
122
122
|
* Null for INAPP products. The price of the PurchasesStoreProduct formatted for the current
|
|
123
123
|
* locale in a monthly recurrence. This means that, for example, if the period is annual,
|
|
@@ -125,7 +125,7 @@ export interface PurchasesStoreProduct {
|
|
|
125
125
|
* given locale. Note that this value may be an approximation. For Google subscriptions,
|
|
126
126
|
* this value will use the basePlan to calculate the value.
|
|
127
127
|
*/
|
|
128
|
-
readonly pricePerMonthString: string;
|
|
128
|
+
readonly pricePerMonthString: string | null;
|
|
129
129
|
/**
|
|
130
130
|
* Null for INAPP products. The price of the PurchasesStoreProduct formatted for the current
|
|
131
131
|
* locale in a yearly recurrence. This means that, for example, if the period is monthly,
|
|
@@ -133,7 +133,7 @@ export interface PurchasesStoreProduct {
|
|
|
133
133
|
* given locale. Note that this value may be an approximation. For Google subscriptions,
|
|
134
134
|
* this value will use the basePlan to calculate the value.
|
|
135
135
|
*/
|
|
136
|
-
readonly pricePerYearString: string;
|
|
136
|
+
readonly pricePerYearString: string | null;
|
|
137
137
|
/**
|
|
138
138
|
* Currency code for price and original price.
|
|
139
139
|
* Contains the currency code value of defaultOption for Google Play.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The VirtualCurrencies object contains all the virtual currencies associated to the user.
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
export interface PurchasesVirtualCurrencies {
|
|
6
|
+
/**
|
|
7
|
+
* Map of all VirtualCurrency (`PurchasesVirtualCurrency`) objects keyed by virtual currency code.
|
|
8
|
+
*/
|
|
9
|
+
readonly all: {
|
|
10
|
+
[key: string]: PurchasesVirtualCurrency;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* The VirtualCurrency object represents information about a virtual currency in the app.
|
|
15
|
+
* Use this object to access information about a virtual currency, such as its current balance.
|
|
16
|
+
*
|
|
17
|
+
* @public
|
|
18
|
+
*/
|
|
19
|
+
export interface PurchasesVirtualCurrency {
|
|
20
|
+
/**
|
|
21
|
+
* The virtual currency's balance.
|
|
22
|
+
*/
|
|
23
|
+
readonly balance: number;
|
|
24
|
+
/**
|
|
25
|
+
* The virtual currency's name.
|
|
26
|
+
*/
|
|
27
|
+
readonly name: string;
|
|
28
|
+
/**
|
|
29
|
+
* The virtual currency's code.
|
|
30
|
+
*/
|
|
31
|
+
readonly code: string;
|
|
32
|
+
/**
|
|
33
|
+
* The virtual currency'sdescription defined in the RevenueCat dashboard.
|
|
34
|
+
*/
|
|
35
|
+
readonly serverDescription: string | null;
|
|
36
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@revenuecat/purchases-typescript-internal-esm",
|
|
3
3
|
"title": "Purchases typescript internal shared code",
|
|
4
|
-
"version": "14.0
|
|
4
|
+
"version": "14.2.0",
|
|
5
5
|
"description": "Typescript code to be used by RevenueCat's hybrid SDKs. Not meant for external usage.",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|