@bondsports/types 2.4.36-squad-c-1 → 2.4.36-squad-c-2
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/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/cart/dto/cart.dto.d.ts +4 -3
- package/dist/types/cart/dto/cart.dto.js.map +1 -1
- package/dist/types/cart/entities/cart-item.entity.d.ts +2 -1
- package/dist/types/cart/entities/cart-item.entity.js.map +1 -1
- package/dist/types/cart/types/classes/cart.classes.d.ts +1 -0
- package/dist/types/cart/types/classes/cart.classes.js.map +1 -1
- package/dist/types/cart/types/interfaces/cart.interfaces.d.ts +3 -0
- package/dist/types/entitlement-group/dto/entitlement-group.dto.d.ts +3 -0
- package/dist/types/entitlement-group/dto/entitlement-group.dto.js +4 -1
- package/dist/types/entitlement-group/dto/entitlement-group.dto.js.map +1 -1
- package/dist/types/payment/entities/Discount.d.ts +2 -0
- package/dist/types/payment/entities/Discount.js.map +1 -1
- package/dist/types/payment/types/interfaces/discount.interfaces.d.ts +1 -0
- package/dist/types/payment/types/interfaces/discount.interfaces.js.map +1 -1
- package/dist/types/product-pricing/types/interfaces/product-pricing.interfaces.d.ts +1 -0
- package/dist/types/reservations/dto/slot.dto.d.ts +3 -0
- package/dist/types/reservations/dto/slot.dto.js.map +1 -1
- package/dist/types/reservations/types/classes/product.classes.d.ts +4 -0
- package/dist/types/reservations/types/classes/product.classes.js.map +1 -1
- package/dist/types/reservations/types/interfaces/slot.interfaces.d.ts +16 -0
- package/dist/types/reservations/types/interfaces/slot.interfaces.js.map +1 -1
- package/package.json +1 -1
|
@@ -103,10 +103,8 @@ export declare class ProductPriceResultDto {
|
|
|
103
103
|
subtotal: number;
|
|
104
104
|
totalPrice: number;
|
|
105
105
|
addonType?: ProductPackageLevelEnum;
|
|
106
|
-
/**
|
|
107
|
-
* used internally to store the original unit price
|
|
108
|
-
*/
|
|
109
106
|
originalUnitPrice?: number;
|
|
107
|
+
discounts?: CartDiscountDto[];
|
|
110
108
|
}
|
|
111
109
|
export declare class ByProductsResultDto {
|
|
112
110
|
products: ProductPriceResultDto[];
|
|
@@ -125,6 +123,9 @@ export declare class CartPricingResultDto {
|
|
|
125
123
|
subtotal: number;
|
|
126
124
|
taxAmount?: number;
|
|
127
125
|
taxes?: CartTaxDto[];
|
|
126
|
+
discounts?: CartDiscountDto[];
|
|
127
|
+
discountAmount?: number;
|
|
128
|
+
discountSubTotal?: number;
|
|
128
129
|
}
|
|
129
130
|
export declare class UpdateProductPriceDto implements IUpdateProductPrice {
|
|
130
131
|
productId: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cart.dto.js","sourceRoot":"","sources":["../../../../src/types/cart/dto/cart.dto.ts"],"names":[],"mappings":";;;AAIA,uDAAwD;AACxD,8EAAyG;AASzG,sDAAkF;AAWlF,MAAa,aAAc,SAAQ,4CAAyB;CAQ3D;AARD,sCAQC;AAED,MAAa,OAAQ,SAAQ,aAAa;CAoCzC;AApCD,0BAoCC;AAED,MAAa,mBAAoB,SAAQ,OAAO;CAAG;AAAnD,kDAAmD;AAEnD,MAAa,aAAa;CASzB;AATD,sCASC;AAED,MAAa,aAAc,SAAQ,aAAa;CAM/C;AAND,sCAMC;AAED,MAAa,YAAY;CAIxB;AAJD,oCAIC;AAED,MAAa,eAAe;CAE3B;AAFD,0CAEC;AAED,MAAa,kBAAkB;CAE9B;AAFD,gDAEC;AAED,MAAa,aAAc,SAAQ,mCAAwB;CAE1D;AAFD,sCAEC;AAED,MAAa,qBAAsB,SAAQ,sCAAmB;CAE7D;AAFD,sDAEC;AAED,MAAa,kBAAmB,SAAQ,6BAAe;CAQtD;AARD,gDAQC;AAED,MAAa,kBAAkB;CAQ9B;AARD,gDAQC;AAED,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAED,MAAa,0BAA0B;CAEtC;AAFD,gEAEC;AAED,MAAa,sBAAsB;CAElC;AAFD,wDAEC;AAED,MAAa,kBAAkB;CAE9B;AAFD,gDAEC;AAED,MAAa,qBAAqB;
|
|
1
|
+
{"version":3,"file":"cart.dto.js","sourceRoot":"","sources":["../../../../src/types/cart/dto/cart.dto.ts"],"names":[],"mappings":";;;AAIA,uDAAwD;AACxD,8EAAyG;AASzG,sDAAkF;AAWlF,MAAa,aAAc,SAAQ,4CAAyB;CAQ3D;AARD,sCAQC;AAED,MAAa,OAAQ,SAAQ,aAAa;CAoCzC;AApCD,0BAoCC;AAED,MAAa,mBAAoB,SAAQ,OAAO;CAAG;AAAnD,kDAAmD;AAEnD,MAAa,aAAa;CASzB;AATD,sCASC;AAED,MAAa,aAAc,SAAQ,aAAa;CAM/C;AAND,sCAMC;AAED,MAAa,YAAY;CAIxB;AAJD,oCAIC;AAED,MAAa,eAAe;CAE3B;AAFD,0CAEC;AAED,MAAa,kBAAkB;CAE9B;AAFD,gDAEC;AAED,MAAa,aAAc,SAAQ,mCAAwB;CAE1D;AAFD,sCAEC;AAED,MAAa,qBAAsB,SAAQ,sCAAmB;CAE7D;AAFD,sDAEC;AAED,MAAa,kBAAmB,SAAQ,6BAAe;CAQtD;AARD,gDAQC;AAED,MAAa,kBAAkB;CAQ9B;AARD,gDAQC;AAED,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAED,MAAa,0BAA0B;CAEtC;AAFD,gEAEC;AAED,MAAa,sBAAsB;CAElC;AAFD,wDAEC;AAED,MAAa,kBAAkB;CAE9B;AAFD,gDAEC;AAED,MAAa,qBAAqB;CA8BjC;AA9BD,sDA8BC;AAED,MAAa,mBAAmB;CAQ/B;AARD,kDAQC;AAED,MAAa,qBAAqB;CAIjC;AAJD,sDAIC;AAED,MAAa,oBAAoB;CAkBhC;AAlBD,oDAkBC;AAED,MAAa,qBAAqB;CAQjC;AARD,sDAQC;AAED,MAAa,yBAAyB;CAIrC;AAJD,8DAIC;AAED,MAAa,2BAA2B;CAIvC;AAJD,kEAIC;AAED,MAAa,mBAAmB;CAQ/B;AARD,kDAQC"}
|
|
@@ -9,9 +9,9 @@ import { Reason } from '../../organization/entities/Reason';
|
|
|
9
9
|
import { Discount } from '../../payment/entities/Discount';
|
|
10
10
|
import { DiscountOnEnum } from '../../payment/types/enums/discount.enums';
|
|
11
11
|
import { Product } from '../../product-pricing/entities/product.entity';
|
|
12
|
-
import { Tax } from '../../taxes/entities/Tax';
|
|
13
12
|
import { PurchaseResourceDto } from '../../purchase/dto/purchase.dto';
|
|
14
13
|
import { ProductTypesEnum, ResourceNameTypeEnum } from '../../services/enums.service';
|
|
14
|
+
import { Tax } from '../../taxes/entities/Tax';
|
|
15
15
|
import { User } from '../../user/entities/User';
|
|
16
16
|
import { WaitlistChild } from '../../waitlist/entities/waitlistChild.entity';
|
|
17
17
|
import { CartItemMetadata, ItemPriceMetadata, ParentResource } from '../types/classes/cart.classes';
|
|
@@ -65,6 +65,7 @@ export declare class CartItem extends OrganizationConnectionBaseEntity {
|
|
|
65
65
|
subtotal?: number;
|
|
66
66
|
totalPrice?: number;
|
|
67
67
|
overrideTotalPrice?: number;
|
|
68
|
+
originalPrice?: number;
|
|
68
69
|
totalUnitPrice: number;
|
|
69
70
|
activityTimes?: ActivityTimes[];
|
|
70
71
|
schedules?: ScheduleDto[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cart-item.entity.js","sourceRoot":"","sources":["../../../../src/types/cart/entities/cart-item.entity.ts"],"names":[],"mappings":";;;AAQA,oGAAiG;AAejG,MAAa,QAAS,SAAQ,mEAAgC;
|
|
1
|
+
{"version":3,"file":"cart-item.entity.js","sourceRoot":"","sources":["../../../../src/types/cart/entities/cart-item.entity.ts"],"names":[],"mappings":";;;AAQA,oGAAiG;AAejG,MAAa,QAAS,SAAQ,mEAAgC;CAuG7D;AAvGD,4BAuGC"}
|
|
@@ -5,6 +5,7 @@ import { IItemPriceMetadata } from '../interfaces/cart.interfaces';
|
|
|
5
5
|
export declare class ItemPriceMetadata implements IItemPriceMetadata {
|
|
6
6
|
priceId: number;
|
|
7
7
|
price: number;
|
|
8
|
+
originalPrice?: number;
|
|
8
9
|
quantity?: number;
|
|
9
10
|
totalPrice?: number;
|
|
10
11
|
activityTimes?: ActivityTimes[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cart.classes.js","sourceRoot":"","sources":["../../../../../src/types/cart/types/classes/cart.classes.ts"],"names":[],"mappings":";;;AAMA,MAAa,iBAAiB;
|
|
1
|
+
{"version":3,"file":"cart.classes.js","sourceRoot":"","sources":["../../../../../src/types/cart/types/classes/cart.classes.ts"],"names":[],"mappings":";;;AAMA,MAAa,iBAAiB;CAY7B;AAZD,8CAYC;AAED,MAAa,cAAc;CAM1B;AAND,wCAMC;AAED,MAAa,gBAAgB;CAI5B;AAJD,4CAIC"}
|
|
@@ -25,11 +25,14 @@ export interface IAddCartItems {
|
|
|
25
25
|
export interface IItemPriceMetadata {
|
|
26
26
|
priceId: number;
|
|
27
27
|
activityTimes?: ActivityTimes[];
|
|
28
|
+
originalPrice?: number;
|
|
28
29
|
price: number;
|
|
29
30
|
quantity?: number;
|
|
30
31
|
totalPrice?: number;
|
|
31
32
|
}
|
|
32
33
|
export interface ICreateCartItem {
|
|
34
|
+
discountId?: number;
|
|
35
|
+
entitlementGroupId?: number;
|
|
33
36
|
parentResourceId?: string;
|
|
34
37
|
productId: number;
|
|
35
38
|
userId?: number;
|
|
@@ -43,6 +43,9 @@ export declare class BaseCreateEntitlementGroupDto {
|
|
|
43
43
|
export declare class CreateEntitlementGroupDto extends BaseCreateEntitlementGroupDto implements ICreateEntitlementGroup {
|
|
44
44
|
terms: CreateEntitlementGroupTermDto[];
|
|
45
45
|
}
|
|
46
|
+
export declare class CreateMultipleEntitlementGroupsDto {
|
|
47
|
+
groups: CreateEntitlementGroupDto[];
|
|
48
|
+
}
|
|
46
49
|
export declare class UpdateEntitlementGroupDto implements IUpdateEntitlementGroup {
|
|
47
50
|
name?: string;
|
|
48
51
|
defaultDiscountPercentage?: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ByOrganizationAndEntitlementGroupIdDto = exports.UpdateEntitlementGroupStatusDto = exports.UpdateEntitlementGroupDto = exports.CreateEntitlementGroupDto = exports.BaseCreateEntitlementGroupDto = exports.CreateEntitlementGroupTermDto = exports.GetPaginatedEntitledProductsOptionsDto = exports.EntitledProductDto = exports.GetPaginatedEntitlementGroupsDto = exports.EntitlementGroupDto = void 0;
|
|
3
|
+
exports.ByOrganizationAndEntitlementGroupIdDto = exports.UpdateEntitlementGroupStatusDto = exports.UpdateEntitlementGroupDto = exports.CreateMultipleEntitlementGroupsDto = exports.CreateEntitlementGroupDto = exports.BaseCreateEntitlementGroupDto = exports.CreateEntitlementGroupTermDto = exports.GetPaginatedEntitledProductsOptionsDto = exports.EntitledProductDto = exports.GetPaginatedEntitlementGroupsDto = exports.EntitlementGroupDto = void 0;
|
|
4
4
|
const general_dto_1 = require("../../dto/general.dto");
|
|
5
5
|
const organization_dto_1 = require("../../organization/dto/organization.dto");
|
|
6
6
|
class EntitlementGroupDto extends organization_dto_1.OrganizationBaseEntityDto {
|
|
@@ -24,6 +24,9 @@ exports.BaseCreateEntitlementGroupDto = BaseCreateEntitlementGroupDto;
|
|
|
24
24
|
class CreateEntitlementGroupDto extends BaseCreateEntitlementGroupDto {
|
|
25
25
|
}
|
|
26
26
|
exports.CreateEntitlementGroupDto = CreateEntitlementGroupDto;
|
|
27
|
+
class CreateMultipleEntitlementGroupsDto {
|
|
28
|
+
}
|
|
29
|
+
exports.CreateMultipleEntitlementGroupsDto = CreateMultipleEntitlementGroupsDto;
|
|
27
30
|
class UpdateEntitlementGroupDto {
|
|
28
31
|
}
|
|
29
32
|
exports.UpdateEntitlementGroupDto = UpdateEntitlementGroupDto;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entitlement-group.dto.js","sourceRoot":"","sources":["../../../../src/types/entitlement-group/dto/entitlement-group.dto.ts"],"names":[],"mappings":";;;AACA,uDAAgF;AAChF,8EAAyG;
|
|
1
|
+
{"version":3,"file":"entitlement-group.dto.js","sourceRoot":"","sources":["../../../../src/types/entitlement-group/dto/entitlement-group.dto.ts"],"names":[],"mappings":";;;AACA,uDAAgF;AAChF,8EAAyG;AAkBzG,MAAa,mBAAoB,SAAQ,4CAAyB;CAgBjE;AAhBD,kDAgBC;AAED,MAAa,gCACZ,SAAQ,gCAAkB;CAU1B;AAXD,4EAWC;AAED,MAAa,kBAAmB,SAAQ,0BAAY;CAUnD;AAVD,gDAUC;AAED,MAAa,sCACZ,SAAQ,gCAAkB;CAM1B;AAPD,wFAOC;AAED,MAAa,6BAA8B,SAAQ,mBAAK;CAIvD;AAJD,sEAIC;AAED,MAAa,6BAA6B;CAMzC;AAND,sEAMC;AAED,MAAa,yBAA0B,SAAQ,6BAA6B;CAE3E;AAFD,8DAEC;AAED,MAAa,kCAAkC;CAE9C;AAFD,gFAEC;AAED,MAAa,yBAAyB;CAQrC;AARD,8DAQC;AAED,MAAa,+BAA+B;CAE3C;AAFD,0EAEC;AAED,MAAa,sCAAuC,SAAQ,sCAAmB;CAE9E;AAFD,wFAEC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EntitlementGroup } from '../../entity/EntitlementGroup';
|
|
1
2
|
import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
|
|
2
3
|
import { ResourceToGL } from '../../gl-codes/entities/resource-to-gl';
|
|
3
4
|
import { ActivityEnum, GenderEnum, PlatformsEnum } from '../../services/enums.service';
|
|
@@ -28,5 +29,6 @@ export declare class Discount extends OrganizationConnectionBaseEntity {
|
|
|
28
29
|
relatedProducts?: IDiscountRelatedProducts;
|
|
29
30
|
promoCode: PromoCode;
|
|
30
31
|
glCodes?: ResourceToGL[];
|
|
32
|
+
entitlementGroup?: EntitlementGroup;
|
|
31
33
|
isValid?: boolean;
|
|
32
34
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Discount.js","sourceRoot":"","sources":["../../../../src/types/payment/entities/Discount.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"Discount.js","sourceRoot":"","sources":["../../../../src/types/payment/entities/Discount.ts"],"names":[],"mappings":";;;AAGA,oGAAiG;AAQjG,MAAa,QAAS,SAAQ,mEAAgC;CAkD7D;AAlDD,4BAkDC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discount.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/interfaces/discount.interfaces.ts"],"names":[],"mappings":";;;AAGA,+EAA+E;AAE/E,mEAAmF;AAqEnF,MAAa,SAAS;
|
|
1
|
+
{"version":3,"file":"discount.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/interfaces/discount.interfaces.ts"],"names":[],"mappings":";;;AAGA,+EAA+E;AAE/E,mEAAmF;AAqEnF,MAAa,SAAS;CA4BrB;AA5BD,8BA4BC"}
|
|
@@ -13,6 +13,7 @@ import { IProductResource } from './product-resource.interfaces';
|
|
|
13
13
|
export interface IGetCurrentPricesOptions {
|
|
14
14
|
userId?: number;
|
|
15
15
|
answers?: QuestionAnswersDto[];
|
|
16
|
+
includeInactive?: boolean;
|
|
16
17
|
resources?: IProductResource[];
|
|
17
18
|
skipProrated?: boolean;
|
|
18
19
|
}
|
|
@@ -22,12 +22,15 @@ export declare class SlotProductMetadataDto implements ISlotProductMetadata {
|
|
|
22
22
|
quantity: number;
|
|
23
23
|
priceId?: number;
|
|
24
24
|
prices?: SlotProductPricesMetadataDto[];
|
|
25
|
+
entitlementGroupId?: number;
|
|
26
|
+
originalPrice?: number;
|
|
25
27
|
}
|
|
26
28
|
export declare class SlotProductPricesMetadataDto implements ISlotProductPricesMetadata {
|
|
27
29
|
priceId: number;
|
|
28
30
|
price: number;
|
|
29
31
|
quantity: number;
|
|
30
32
|
totalPrice: number;
|
|
33
|
+
originalPrice?: number;
|
|
31
34
|
}
|
|
32
35
|
export declare class BaseSlotFieldsDto {
|
|
33
36
|
organizationId?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slot.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/slot.dto.ts"],"names":[],"mappings":";;;AAOA,8EAAoF;AAQpF,wEAU0C;AAa1C,MAAa,sBAAsB;
|
|
1
|
+
{"version":3,"file":"slot.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/slot.dto.ts"],"names":[],"mappings":";;;AAOA,8EAAoF;AAQpF,wEAU0C;AAa1C,MAAa,sBAAsB;CAclC;AAdD,wDAcC;AAED,MAAa,4BAA4B;CAUxC;AAVD,oEAUC;AAED,MAAa,iBAAiB;CAgC7B;AAhCD,8CAgCC;AAED,MAAa,WAAY,SAAQ,iBAAiB;CAgCjD;AAhCD,kCAgCC;AAED,MAAa,OAAQ,SAAQ,WAAW;CAwCvC;AAxCD,0BAwCC;AAED,MAAa,UAAW,SAAQ,4CAAyB;CA0CxD;AA1CD,gCA0CC;AAED,MAAa,gBAAiB,SAAQ,WAAW;CAgBhD;AAhBD,4CAgBC;AAED,MAAa,kBAAkB;CAoC9B;AApCD,gDAoCC;AAED,MAAa,aAAc,SAAQ,iBAAiB;CAsBnD;AAtBD,sCAsBC;AAED,MAAa,YAAa,SAAQ,gBAAgB;CAkBjD;AAlBD,oCAkBC;AAED,MAAa,WAAW;CAsBvB;AAtBD,kCAsBC;AAED,MAAa,YAAY;CAExB;AAFD,oCAEC;AAED,MAAa,WAAW;CAEvB;AAFD,kCAEC;AAED,MAAa,oBAAoB;CAIhC;AAJD,oDAIC;AAED,MAAa,oBAAoB;CAKhC;AALD,oDAKC;AAED,MAAa,gBAAgB;CAc5B;AAdD,4CAcC;AAED,MAAa,kBAAkB;CAoB9B;AApBD,gDAoBC;AAED,MAAa,WAAY,SAAQ,OAAO;CAgBvC;AAhBD,kCAgBC;AAED,MAAa,gBAAgB;CAsB5B;AAtBD,4CAsBC;AArBC,qCAAiB,CAAC,QAAQ,EAE1B,qCAAiB,CAAC,UAAU,EAE5B,qCAAiB,CAAC,UAAU,EAE5B,qCAAiB,CAAC,WAAW,EAE7B,qCAAiB,CAAC,MAAM,EAExB,qCAAiB,CAAC,QAAQ,EAE1B,qCAAiB,CAAC,QAAQ,EAE1B,qCAAiB,CAAC,MAAM,EAExB,qCAAiB,CAAC,eAAe,EAEjC,qCAAiB,CAAC,cAAc,EAEhC,qCAAiB,CAAC,WAAW"}
|
|
@@ -3,6 +3,7 @@ import { ISlotProductMetadata, ISlotProductPricesMetadata } from '../interfaces/
|
|
|
3
3
|
export declare class SlotProductPricesMetadata implements ISlotProductPricesMetadata {
|
|
4
4
|
priceId: number;
|
|
5
5
|
price: number;
|
|
6
|
+
originalPrice?: number;
|
|
6
7
|
quantity: number;
|
|
7
8
|
activityTimes?: ActivityTimes[];
|
|
8
9
|
totalPrice: number;
|
|
@@ -13,4 +14,7 @@ export declare class SlotProductMetadata implements ISlotProductMetadata {
|
|
|
13
14
|
quantity: number;
|
|
14
15
|
priceId?: number;
|
|
15
16
|
prices?: SlotProductPricesMetadata[];
|
|
17
|
+
entitlementGroupId?: number;
|
|
18
|
+
discountId?: number;
|
|
19
|
+
originalPrice?: number;
|
|
16
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product.classes.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/classes/product.classes.ts"],"names":[],"mappings":";;;AAIA,MAAa,yBAAyB;
|
|
1
|
+
{"version":3,"file":"product.classes.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/classes/product.classes.ts"],"names":[],"mappings":";;;AAIA,MAAa,yBAAyB;CAYrC;AAZD,8DAYC;AAED,MAAa,mBAAmB;CAgB/B;AAhBD,kDAgBC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { SportsEnum } from '../../../activities/types/activities.enums';
|
|
2
2
|
import { ActivityTimes } from '../../../entity/ActivityTimes';
|
|
3
|
+
import { Discount } from '../../../payment/entities/Discount';
|
|
3
4
|
import { Product } from '../../../product-pricing/entities/product.entity';
|
|
4
5
|
import { ResourceNameTypeEnum } from '../../../services/enums.service';
|
|
6
|
+
import { IBiggestDiscountForItem } from '../../../services/interfaces.service';
|
|
5
7
|
import { MaintenanceDto } from '../../dto/maintenance.dto';
|
|
6
8
|
import { DurationTypeEnum, DurationUnitTypesEnum, MaintenanceTimingEnum, PrivacySettingsEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, SlotTypeEnum } from '../enums/reservation.enums';
|
|
7
9
|
import { IDraftAddon } from './addon.interfaces';
|
|
@@ -57,8 +59,13 @@ export interface ISpaceWithSlots {
|
|
|
57
59
|
slots: ISlotReservationData[];
|
|
58
60
|
}
|
|
59
61
|
export interface ISlotProductMetadata {
|
|
62
|
+
entitlementGroupId?: number;
|
|
60
63
|
priceId?: number;
|
|
61
64
|
productId: number;
|
|
65
|
+
/**
|
|
66
|
+
* The original price before the entitlement discount was applied
|
|
67
|
+
*/
|
|
68
|
+
originalPrice?: number;
|
|
62
69
|
price: number;
|
|
63
70
|
/**
|
|
64
71
|
* Stores the matching fragment price making up the unit price of the slot
|
|
@@ -69,6 +76,7 @@ export interface ISlotProductMetadata {
|
|
|
69
76
|
export interface ISlotProductPricesMetadata {
|
|
70
77
|
priceId: number;
|
|
71
78
|
activityTimes?: ActivityTimes[];
|
|
79
|
+
originalPrice?: number;
|
|
72
80
|
price: number;
|
|
73
81
|
quantity: number;
|
|
74
82
|
totalPrice: number;
|
|
@@ -92,6 +100,7 @@ export interface ICreateSlotsOptions {
|
|
|
92
100
|
spaceProducts?: Product[];
|
|
93
101
|
sportIds?: number[];
|
|
94
102
|
title?: string;
|
|
103
|
+
userEntitlements?: Map<number, IBiggestDiscountForItem[]>;
|
|
95
104
|
}
|
|
96
105
|
export interface ITimeSlot {
|
|
97
106
|
id?: string | number;
|
|
@@ -156,3 +165,10 @@ export interface IUpdateSlot extends IDraftSlot {
|
|
|
156
165
|
productId?: number;
|
|
157
166
|
productsIds?: number[];
|
|
158
167
|
}
|
|
168
|
+
/**
|
|
169
|
+
* Parameters for applying entitlement discount to slot pricing
|
|
170
|
+
*/
|
|
171
|
+
export interface ISlotDiscount {
|
|
172
|
+
entitlementGroupId?: number;
|
|
173
|
+
discount: Discount;
|
|
174
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slot.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/interfaces/slot.interfaces.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"slot.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/interfaces/slot.interfaces.ts"],"names":[],"mappings":";;;AA0IA,MAAa,SAAS;CA+BrB;AA/BD,8BA+BC"}
|