@nimee/shared-types 1.0.303 → 1.0.305
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.
|
@@ -37,6 +37,8 @@ export interface ISeasonTicketModel {
|
|
|
37
37
|
isEnabled: boolean;
|
|
38
38
|
paymentIterationType: IPaymentSeasonTicketIterationType;
|
|
39
39
|
iterations: number;
|
|
40
|
+
validityDuration?: number;
|
|
41
|
+
validityUnit?: ISeasonTicketValidityUnit;
|
|
40
42
|
seasonTicketType: ISeasonTicketType;
|
|
41
43
|
entryPassTicketsAllowedPerEvent?: number;
|
|
42
44
|
entryPassTotalTicketsAllowed?: number;
|
|
@@ -76,3 +78,9 @@ export declare enum ISeasonTicketType {
|
|
|
76
78
|
SEASON_TICKET = "season-ticket",
|
|
77
79
|
ENTRY_PASS = "entry-pass"
|
|
78
80
|
}
|
|
81
|
+
export declare enum ISeasonTicketValidityUnit {
|
|
82
|
+
DAY = "day",
|
|
83
|
+
WEEK = "week",
|
|
84
|
+
MONTH = "month",
|
|
85
|
+
YEAR = "year"
|
|
86
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ISeasonTicketType = exports.IPaymentSeasonTicketIterationType = void 0;
|
|
3
|
+
exports.ISeasonTicketValidityUnit = exports.ISeasonTicketType = exports.IPaymentSeasonTicketIterationType = void 0;
|
|
4
4
|
var IPaymentSeasonTicketIterationType;
|
|
5
5
|
(function (IPaymentSeasonTicketIterationType) {
|
|
6
6
|
IPaymentSeasonTicketIterationType[IPaymentSeasonTicketIterationType["DAILY"] = 1] = "DAILY";
|
|
@@ -14,4 +14,11 @@ var ISeasonTicketType;
|
|
|
14
14
|
ISeasonTicketType["SEASON_TICKET"] = "season-ticket";
|
|
15
15
|
ISeasonTicketType["ENTRY_PASS"] = "entry-pass";
|
|
16
16
|
})(ISeasonTicketType || (exports.ISeasonTicketType = ISeasonTicketType = {}));
|
|
17
|
+
var ISeasonTicketValidityUnit;
|
|
18
|
+
(function (ISeasonTicketValidityUnit) {
|
|
19
|
+
ISeasonTicketValidityUnit["DAY"] = "day";
|
|
20
|
+
ISeasonTicketValidityUnit["WEEK"] = "week";
|
|
21
|
+
ISeasonTicketValidityUnit["MONTH"] = "month";
|
|
22
|
+
ISeasonTicketValidityUnit["YEAR"] = "year";
|
|
23
|
+
})(ISeasonTicketValidityUnit || (exports.ISeasonTicketValidityUnit = ISeasonTicketValidityUnit = {}));
|
|
17
24
|
//# sourceMappingURL=seasonTicket.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"seasonTicket.js","sourceRoot":"","sources":["../../src/payment/seasonTicket.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"seasonTicket.js","sourceRoot":"","sources":["../../src/payment/seasonTicket.ts"],"names":[],"mappings":";;;AAiDA,IAAY,iCAMX;AAND,WAAY,iCAAiC;IAC3C,2FAAS,CAAA;IACT,6FAAU,CAAA;IACV,+FAAW,CAAA;IACX,6FAAU,CAAA;IACV,iGAAY,CAAA;AACd,CAAC,EANW,iCAAiC,iDAAjC,iCAAiC,QAM5C;AAED,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,oDAA+B,CAAA;IAC/B,8CAAyB,CAAA;AAC3B,CAAC,EAHW,iBAAiB,iCAAjB,iBAAiB,QAG5B;AAED,IAAY,yBAKX;AALD,WAAY,yBAAyB;IACnC,wCAAW,CAAA;IACX,0CAAa,CAAA;IACb,4CAAe,CAAA;IACf,0CAAa,CAAA;AACf,CAAC,EALW,yBAAyB,yCAAzB,yBAAyB,QAKpC"}
|
package/package.json
CHANGED
|
@@ -12,6 +12,10 @@ export interface ISeasonTicketModel {
|
|
|
12
12
|
isEnabled: boolean;
|
|
13
13
|
paymentIterationType: IPaymentSeasonTicketIterationType;
|
|
14
14
|
iterations: number;
|
|
15
|
+
// ONE_TIME (type 5) only: validity window used to derive the subscription's
|
|
16
|
+
// endDate at purchase. When unset, one-time subscriptions are perpetual.
|
|
17
|
+
validityDuration?: number;
|
|
18
|
+
validityUnit?: ISeasonTicketValidityUnit;
|
|
15
19
|
seasonTicketType: ISeasonTicketType;
|
|
16
20
|
entryPassTicketsAllowedPerEvent?: number;
|
|
17
21
|
entryPassTotalTicketsAllowed?: number;
|
|
@@ -55,3 +59,10 @@ export enum ISeasonTicketType {
|
|
|
55
59
|
SEASON_TICKET = "season-ticket",
|
|
56
60
|
ENTRY_PASS = "entry-pass",
|
|
57
61
|
}
|
|
62
|
+
|
|
63
|
+
export enum ISeasonTicketValidityUnit {
|
|
64
|
+
DAY = "day",
|
|
65
|
+
WEEK = "week",
|
|
66
|
+
MONTH = "month",
|
|
67
|
+
YEAR = "year",
|
|
68
|
+
}
|