@nimee/shared-types 1.0.101 → 1.0.102
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.
|
@@ -8,15 +8,15 @@
|
|
|
8
8
|
import mongoose from "mongoose";
|
|
9
9
|
import { IPaymentSeasonTicketIterationType } from "./seasonTicket";
|
|
10
10
|
export interface IEndUserSeasonTicketModel {
|
|
11
|
-
externalId
|
|
12
|
-
externalCode
|
|
13
|
-
paymentDate
|
|
14
|
-
externalSubscriptionUrl
|
|
15
|
-
iterationsCompleted
|
|
16
|
-
iterationsLeft
|
|
17
|
-
iterationsSkipped
|
|
18
|
-
nextDate
|
|
19
|
-
prevDate
|
|
11
|
+
externalId?: string;
|
|
12
|
+
externalCode?: string;
|
|
13
|
+
paymentDate?: Date;
|
|
14
|
+
externalSubscriptionUrl?: string;
|
|
15
|
+
iterationsCompleted?: number;
|
|
16
|
+
iterationsLeft?: number;
|
|
17
|
+
iterationsSkipped?: number;
|
|
18
|
+
nextDate?: Date;
|
|
19
|
+
prevDate?: Date;
|
|
20
20
|
name: string;
|
|
21
21
|
eventTransactionAllowed: number;
|
|
22
22
|
eventTransactionUsed: number;
|
|
@@ -32,12 +32,12 @@ export interface IEndUserSeasonTicketModel {
|
|
|
32
32
|
iterations: number;
|
|
33
33
|
paymentIterationType: IPaymentSeasonTicketIterationType;
|
|
34
34
|
purchaseToken: string;
|
|
35
|
-
startDate
|
|
36
|
-
endDate
|
|
35
|
+
startDate?: Date;
|
|
36
|
+
endDate?: Date;
|
|
37
37
|
token?: string;
|
|
38
|
-
externalSubStatus
|
|
39
|
-
currency
|
|
40
|
-
externalSubscriptionIdOfNimiId
|
|
38
|
+
externalSubStatus?: number;
|
|
39
|
+
currency?: string;
|
|
40
|
+
externalSubscriptionIdOfNimiId?: string;
|
|
41
41
|
}
|
|
42
42
|
export declare enum ISeasonTicketStatusType {
|
|
43
43
|
ACTIVE = "active",// the season ticket is active
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import mongoose from "mongoose";
|
|
2
2
|
import { IPaymentSeasonTicketIterationType } from "./seasonTicket";
|
|
3
3
|
export interface IEndUserSeasonTicketModel {
|
|
4
|
-
externalId
|
|
5
|
-
externalCode
|
|
6
|
-
paymentDate
|
|
7
|
-
externalSubscriptionUrl
|
|
8
|
-
iterationsCompleted
|
|
9
|
-
iterationsLeft
|
|
10
|
-
iterationsSkipped
|
|
11
|
-
nextDate
|
|
12
|
-
prevDate
|
|
4
|
+
externalId?: string; // the id of the season ticket in the payment service
|
|
5
|
+
externalCode?: string; // the code of the season ticket in the payment service
|
|
6
|
+
paymentDate?: Date;
|
|
7
|
+
externalSubscriptionUrl?: string;
|
|
8
|
+
iterationsCompleted?: number;
|
|
9
|
+
iterationsLeft?: number;
|
|
10
|
+
iterationsSkipped?: number;
|
|
11
|
+
nextDate?: Date;
|
|
12
|
+
prevDate?: Date;
|
|
13
13
|
name: string;
|
|
14
14
|
eventTransactionAllowed: number; // how many events can be attended
|
|
15
15
|
eventTransactionUsed: number; // how many events have been attended
|
|
@@ -25,13 +25,13 @@ export interface IEndUserSeasonTicketModel {
|
|
|
25
25
|
iterations: number; // how many payment iterations are there: -1 means infinite
|
|
26
26
|
paymentIterationType: IPaymentSeasonTicketIterationType; // daily, weekly, monthly, yearly
|
|
27
27
|
purchaseToken: string; // the token used to purchase the season ticket
|
|
28
|
-
startDate
|
|
29
|
-
endDate
|
|
28
|
+
startDate?: Date; // the start date of the season ticket - if the seller wants one purchase to be valid for a certain period
|
|
29
|
+
endDate?: Date; // the end date of the season ticket - if the seller wants one purchase to be valid for a certain period
|
|
30
30
|
// so when the end date is over the season ticket is no longer valid and the status should be expired
|
|
31
31
|
token?: string; // the token generated when created this object and use to call createSubscription on the payment service
|
|
32
|
-
externalSubStatus
|
|
33
|
-
currency
|
|
34
|
-
externalSubscriptionIdOfNimiId
|
|
32
|
+
externalSubStatus?: number; // the status of the subscription in the payment service
|
|
33
|
+
currency?: string;
|
|
34
|
+
externalSubscriptionIdOfNimiId?: string;
|
|
35
35
|
}
|
|
36
36
|
export enum ISeasonTicketStatusType {
|
|
37
37
|
ACTIVE = "active", // the season ticket is active
|