@nimee/shared-types 1.0.143 → 1.0.144
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/payment/coupon.d.ts
CHANGED
|
@@ -3,3 +3,18 @@ export declare enum IPaymentCouponTypeEnum {
|
|
|
3
3
|
fixed = "fixed",
|
|
4
4
|
customPrice = "customPrice"
|
|
5
5
|
}
|
|
6
|
+
export interface IPaymentCouponModel {
|
|
7
|
+
_id: string;
|
|
8
|
+
code: string;
|
|
9
|
+
type: IPaymentCouponTypeEnum;
|
|
10
|
+
value: number;
|
|
11
|
+
usageCount: number;
|
|
12
|
+
maxUsageCount: number;
|
|
13
|
+
startDate: Date;
|
|
14
|
+
endDate: Date;
|
|
15
|
+
event: string;
|
|
16
|
+
account: string;
|
|
17
|
+
createdAt: Date;
|
|
18
|
+
updatedAt: Date;
|
|
19
|
+
name: string;
|
|
20
|
+
}
|
|
@@ -2,3 +2,24 @@ export declare enum IFeeCollectionType {
|
|
|
2
2
|
PERCENTAGE_FROM_TICKET = "percentage_from_ticket",
|
|
3
3
|
ON_TOP_OF_TICKET = "on_top_of_ticket"
|
|
4
4
|
}
|
|
5
|
+
export interface IDiscountedPricePerTicket {
|
|
6
|
+
ticketId: string;
|
|
7
|
+
priceAfterDiscount: number;
|
|
8
|
+
coupon?: {
|
|
9
|
+
_id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
};
|
|
12
|
+
endUserSeasonTicket?: {
|
|
13
|
+
_id: string;
|
|
14
|
+
name: string;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export interface IGetPriceResponse {
|
|
18
|
+
finalPriceWithNimiFee: number;
|
|
19
|
+
nimiFee: number;
|
|
20
|
+
nimiFeePercentage: number;
|
|
21
|
+
marketplaceFee: number;
|
|
22
|
+
finalPriceWithNimiFeeForPaymentProvider: number;
|
|
23
|
+
entryPassTicketsUsedForDiscount: number;
|
|
24
|
+
discountedPricePerTicket: IDiscountedPricePerTicket[];
|
|
25
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IEndUserSeasonTicketModel, IPaymentCouponModel } from "../payment";
|
|
1
2
|
import { ITicketModel } from "../event/ticket";
|
|
2
3
|
export interface ITicketInfoModel {
|
|
3
4
|
_id: string;
|
|
@@ -13,6 +14,10 @@ export interface ITicketInfoModel {
|
|
|
13
14
|
rowLabel: string;
|
|
14
15
|
categoryLabel: string;
|
|
15
16
|
endUserSeasonTicket: string;
|
|
17
|
+
coupon: string;
|
|
18
|
+
priceAfterDiscount: number;
|
|
19
|
+
couponObject: IPaymentCouponModel;
|
|
20
|
+
endUserSeasonTicketObject: IEndUserSeasonTicketModel;
|
|
16
21
|
}
|
|
17
22
|
export interface IUserEventModel {
|
|
18
23
|
event: string;
|
package/package.json
CHANGED
package/src/payment/coupon.ts
CHANGED
|
@@ -3,3 +3,18 @@ export enum IPaymentCouponTypeEnum {
|
|
|
3
3
|
fixed = "fixed",
|
|
4
4
|
customPrice = "customPrice",
|
|
5
5
|
}
|
|
6
|
+
export interface IPaymentCouponModel {
|
|
7
|
+
_id: string;
|
|
8
|
+
code: string;
|
|
9
|
+
type: IPaymentCouponTypeEnum;
|
|
10
|
+
value: number;
|
|
11
|
+
usageCount: number;
|
|
12
|
+
maxUsageCount: number;
|
|
13
|
+
startDate: Date;
|
|
14
|
+
endDate: Date;
|
|
15
|
+
event: string;
|
|
16
|
+
account: string;
|
|
17
|
+
createdAt: Date;
|
|
18
|
+
updatedAt: Date;
|
|
19
|
+
name: string;
|
|
20
|
+
}
|
package/src/payment/payment.ts
CHANGED
|
@@ -2,3 +2,26 @@ export enum IFeeCollectionType {
|
|
|
2
2
|
PERCENTAGE_FROM_TICKET = "percentage_from_ticket",
|
|
3
3
|
ON_TOP_OF_TICKET = "on_top_of_ticket",
|
|
4
4
|
}
|
|
5
|
+
|
|
6
|
+
export interface IDiscountedPricePerTicket {
|
|
7
|
+
ticketId: string;
|
|
8
|
+
priceAfterDiscount: number;
|
|
9
|
+
coupon?: {
|
|
10
|
+
_id: string;
|
|
11
|
+
name: string;
|
|
12
|
+
};
|
|
13
|
+
endUserSeasonTicket?: {
|
|
14
|
+
_id: string;
|
|
15
|
+
name: string;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface IGetPriceResponse {
|
|
20
|
+
finalPriceWithNimiFee: number;
|
|
21
|
+
nimiFee: number;
|
|
22
|
+
nimiFeePercentage: number;
|
|
23
|
+
marketplaceFee: number;
|
|
24
|
+
finalPriceWithNimiFeeForPaymentProvider: number;
|
|
25
|
+
entryPassTicketsUsedForDiscount: number;
|
|
26
|
+
discountedPricePerTicket: IDiscountedPricePerTicket[];
|
|
27
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IEndUserSeasonTicketModel, IPaymentCouponModel } from "../payment";
|
|
1
2
|
import { ITicketModel } from "../event/ticket";
|
|
2
3
|
export interface ITicketInfoModel {
|
|
3
4
|
_id: string;
|
|
@@ -13,6 +14,10 @@ export interface ITicketInfoModel {
|
|
|
13
14
|
rowLabel: string;
|
|
14
15
|
categoryLabel: string;
|
|
15
16
|
endUserSeasonTicket: string;
|
|
17
|
+
coupon: string;
|
|
18
|
+
priceAfterDiscount: number;
|
|
19
|
+
couponObject: IPaymentCouponModel;
|
|
20
|
+
endUserSeasonTicketObject: IEndUserSeasonTicketModel;
|
|
16
21
|
}
|
|
17
22
|
export interface IUserEventModel {
|
|
18
23
|
event: string;
|