@quesmed/types-rn 2.6.113 → 2.6.115
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/models/Subscription.d.ts
CHANGED
|
@@ -11,14 +11,20 @@ export declare enum ECancelReasons {
|
|
|
11
11
|
TOO_EXPENSIVE = "too_expensive",
|
|
12
12
|
UNUSED = "unused"
|
|
13
13
|
}
|
|
14
|
+
export declare enum ESubSource {
|
|
15
|
+
STRIPE = 0,
|
|
16
|
+
REVENUE_CAT = 1
|
|
17
|
+
}
|
|
14
18
|
export interface ISubscription {
|
|
15
19
|
id: Id;
|
|
16
20
|
createdAt: number | Date;
|
|
17
21
|
updatedAt: number | Date;
|
|
18
22
|
startedAt: number | Date;
|
|
23
|
+
renewedAt: number | Date | null;
|
|
19
24
|
endedAt: number | Date;
|
|
20
25
|
periodEndAt: number | Date;
|
|
21
26
|
stripeSubscriptionId: string;
|
|
27
|
+
purchaseSource: ESubSource | null;
|
|
22
28
|
userId: Id;
|
|
23
29
|
user?: IUser;
|
|
24
30
|
productId: Id;
|
package/models/Subscription.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ECancelReasons = void 0;
|
|
3
|
+
exports.ESubSource = exports.ECancelReasons = void 0;
|
|
4
4
|
// These options are only available for feedback in stripe, we cannot modify them
|
|
5
5
|
var ECancelReasons;
|
|
6
6
|
(function (ECancelReasons) {
|
|
@@ -13,3 +13,8 @@ var ECancelReasons;
|
|
|
13
13
|
ECancelReasons["TOO_EXPENSIVE"] = "too_expensive";
|
|
14
14
|
ECancelReasons["UNUSED"] = "unused";
|
|
15
15
|
})(ECancelReasons = exports.ECancelReasons || (exports.ECancelReasons = {}));
|
|
16
|
+
var ESubSource;
|
|
17
|
+
(function (ESubSource) {
|
|
18
|
+
ESubSource[ESubSource["STRIPE"] = 0] = "STRIPE";
|
|
19
|
+
ESubSource[ESubSource["REVENUE_CAT"] = 1] = "REVENUE_CAT";
|
|
20
|
+
})(ESubSource = exports.ESubSource || (exports.ESubSource = {}));
|
package/package.json
CHANGED