@bondsports/types 2.2.26 → 2.2.28
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/payment/dto/discount.dto.d.ts +25 -4
- package/dist/types/payment/dto/discount.dto.js +19 -1
- package/dist/types/payment/dto/discount.dto.js.map +1 -1
- package/dist/types/pricing/entities/Price.d.ts +1 -0
- package/dist/types/pricing/entities/Price.js.map +1 -1
- package/dist/types/product-pricing/dto/product-pricing.dto.d.ts +1 -0
- package/dist/types/product-pricing/dto/product-pricing.dto.js.map +1 -1
- package/dist/types/product-pricing/dto/product.dto.d.ts +3 -0
- package/dist/types/product-pricing/dto/product.dto.js.map +1 -1
- package/dist/types/product-pricing/dto/rental-product.dto.d.ts +2 -0
- package/dist/types/product-pricing/dto/rental-product.dto.js.map +1 -1
- package/dist/types/product-pricing/entities/Product.d.ts +3 -1
- package/dist/types/product-pricing/entities/Product.js.map +1 -1
- package/dist/types/product-pricing/types/interfaces/product-pricing.interfaces.d.ts +1 -0
- package/dist/types/purchase/dto/purchase.dto.d.ts +3 -2
- package/dist/types/purchase/dto/purchase.dto.js +1 -2
- package/dist/types/purchase/dto/purchase.dto.js.map +1 -1
- package/dist/types/services/interfaces.service.d.ts +11 -0
- package/dist/types/services/interfaces.service.js.map +1 -1
- package/package.json +1 -1
@@ -1,9 +1,9 @@
|
|
1
|
-
import { PaginationQuery } from '../../dto/general.dto';
|
1
|
+
import { IdDto, PaginationQuery } from '../../dto/general.dto';
|
2
2
|
import { ResourceGlDto } from '../../gl-codes/dto/resource-to-gl.dto';
|
3
3
|
import { OrganizationBaseEntityDto } from '../../organization/dto/organization.dto';
|
4
|
-
import { ActivityEnum, CurrencyEnum, MembershipTypeEnum, PlatformsEnum, ProgramTypesEnum } from '../../services/enums.service';
|
4
|
+
import { ActivityEnum, CurrencyEnum, DiscountMethodsEnum, MembershipTypeEnum, PlatformsEnum, ProgramTypesEnum } from '../../services/enums.service';
|
5
5
|
import { DiscountTypeEnum, InvoiceDiscountOnEnum } from '../types/enums/discount.enums';
|
6
|
-
import { IDiscountRelatedMemberships, IDiscountRelatedProductIds, IDiscountRelatedProducts, IDiscountRelatedProgramTypes, IDiscountRelatedPrograms, ISetDiscount, ISetDiscounts } from '../types/interfaces/discount.interfaces';
|
6
|
+
import { IDiscountRelatedMemberships, IDiscountRelatedProductIds, IDiscountRelatedProducts, IDiscountRelatedProgramTypes, IDiscountRelatedPrograms, ISetDiscount, ISetDiscounts, IDiscountRelatedEntitlements } from '../types/interfaces/discount.interfaces';
|
7
7
|
import { CreateNoteDto } from './payment.dto';
|
8
8
|
export declare class DiscountRelatedProductIdsDto implements IDiscountRelatedProductIds {
|
9
9
|
included?: number[];
|
@@ -24,14 +24,19 @@ export declare class DiscountRelatedMembershipsDto implements IDiscountRelatedMe
|
|
24
24
|
[MembershipTypeEnum.FIXED]?: DiscountRelatedProductIdsDto;
|
25
25
|
[MembershipTypeEnum.ROLLING]?: DiscountRelatedProductIdsDto;
|
26
26
|
}
|
27
|
+
export declare class DiscountRelatedEntitlementsDto implements IDiscountRelatedEntitlements {
|
28
|
+
groupId: number;
|
29
|
+
productIds: number[];
|
30
|
+
}
|
27
31
|
export declare class DiscountRelatedProductsDto implements IDiscountRelatedProducts {
|
28
32
|
programs?: DiscountRelatedProgramsDto;
|
29
33
|
memberships?: DiscountRelatedMembershipsDto;
|
30
34
|
leagues?: DiscountRelatedProductIdsDto;
|
31
35
|
goods?: DiscountRelatedProductIdsDto;
|
36
|
+
entitlement?: DiscountRelatedEntitlementsDto;
|
32
37
|
}
|
33
38
|
declare class DiscountFieldsDto {
|
34
|
-
name
|
39
|
+
name?: string;
|
35
40
|
type: DiscountTypeEnum;
|
36
41
|
percentageValue?: number;
|
37
42
|
fixValue?: number;
|
@@ -124,4 +129,20 @@ export declare class ItemDiscountDto extends OrganizationBaseEntityDto {
|
|
124
129
|
price: number;
|
125
130
|
unitPrice: number;
|
126
131
|
}
|
132
|
+
export declare class EntitlementDiscountGroupDto {
|
133
|
+
name: string;
|
134
|
+
id: number;
|
135
|
+
}
|
136
|
+
export declare class EntitlementDiscountDto extends IdDto {
|
137
|
+
organizationId: number;
|
138
|
+
groupId: number;
|
139
|
+
discountMethod: DiscountMethodsEnum;
|
140
|
+
discountValue: number;
|
141
|
+
group: EntitlementDiscountGroupDto;
|
142
|
+
}
|
143
|
+
export declare class CreateEntitlementDiscountDto extends CreateDiscountDto {
|
144
|
+
groupId: number;
|
145
|
+
productIds?: number[];
|
146
|
+
type: DiscountTypeEnum;
|
147
|
+
}
|
127
148
|
export {};
|
@@ -1,9 +1,10 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.ItemDiscountDto = exports.RemoveDiscountsDto = exports.RemoveDiscountDto = exports.SetDiscountsDto = exports.SetDiscountDto = exports.UpdateDiscountsDto = exports.CreateDiscountsDto = exports.UpdateDiscountDto = exports.CreateDiscountDto = exports.GetDiscountsDto = exports.SimpleDiscountDto = exports.DiscountDto = exports.DiscountRelatedProductsDto = exports.DiscountRelatedMembershipsDto = exports.DiscountRelatedProgramsDto = exports.DiscountRelatedProgramTypesDto = exports.DiscountRelatedProductIdsDto = void 0;
|
3
|
+
exports.CreateEntitlementDiscountDto = exports.EntitlementDiscountDto = exports.EntitlementDiscountGroupDto = exports.ItemDiscountDto = exports.RemoveDiscountsDto = exports.RemoveDiscountDto = exports.SetDiscountsDto = exports.SetDiscountDto = exports.UpdateDiscountsDto = exports.CreateDiscountsDto = exports.UpdateDiscountDto = exports.CreateDiscountDto = exports.GetDiscountsDto = exports.SimpleDiscountDto = exports.DiscountDto = exports.DiscountRelatedProductsDto = exports.DiscountRelatedEntitlementsDto = exports.DiscountRelatedMembershipsDto = exports.DiscountRelatedProgramsDto = exports.DiscountRelatedProgramTypesDto = exports.DiscountRelatedProductIdsDto = 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
|
const enums_service_1 = require("../../services/enums.service");
|
7
|
+
const discount_enums_1 = require("../types/enums/discount.enums");
|
7
8
|
class DiscountRelatedProductIdsDto {
|
8
9
|
}
|
9
10
|
exports.DiscountRelatedProductIdsDto = DiscountRelatedProductIdsDto;
|
@@ -18,6 +19,9 @@ class DiscountRelatedMembershipsDto {
|
|
18
19
|
}
|
19
20
|
exports.DiscountRelatedMembershipsDto = DiscountRelatedMembershipsDto;
|
20
21
|
enums_service_1.MembershipTypeEnum.FIXED, enums_service_1.MembershipTypeEnum.ROLLING;
|
22
|
+
class DiscountRelatedEntitlementsDto {
|
23
|
+
}
|
24
|
+
exports.DiscountRelatedEntitlementsDto = DiscountRelatedEntitlementsDto;
|
21
25
|
class DiscountRelatedProductsDto {
|
22
26
|
}
|
23
27
|
exports.DiscountRelatedProductsDto = DiscountRelatedProductsDto;
|
@@ -59,4 +63,18 @@ exports.RemoveDiscountsDto = RemoveDiscountsDto;
|
|
59
63
|
class ItemDiscountDto extends organization_dto_1.OrganizationBaseEntityDto {
|
60
64
|
}
|
61
65
|
exports.ItemDiscountDto = ItemDiscountDto;
|
66
|
+
class EntitlementDiscountGroupDto {
|
67
|
+
}
|
68
|
+
exports.EntitlementDiscountGroupDto = EntitlementDiscountGroupDto;
|
69
|
+
class EntitlementDiscountDto extends general_dto_1.IdDto {
|
70
|
+
}
|
71
|
+
exports.EntitlementDiscountDto = EntitlementDiscountDto;
|
72
|
+
class CreateEntitlementDiscountDto extends CreateDiscountDto {
|
73
|
+
constructor() {
|
74
|
+
super(...arguments);
|
75
|
+
// set default value
|
76
|
+
this.type = discount_enums_1.DiscountTypeEnum.ENTITLEMENT_GROUP;
|
77
|
+
}
|
78
|
+
}
|
79
|
+
exports.CreateEntitlementDiscountDto = CreateEntitlementDiscountDto;
|
62
80
|
//# sourceMappingURL=discount.dto.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"discount.dto.js","sourceRoot":"","sources":["../../../../src/types/payment/dto/discount.dto.ts"],"names":[],"mappings":";;;AAAA,
|
1
|
+
{"version":3,"file":"discount.dto.js","sourceRoot":"","sources":["../../../../src/types/payment/dto/discount.dto.ts"],"names":[],"mappings":";;;AAAA,uDAA+D;AAE/D,8EAAoF;AACpF,gEAOsC;AACtC,kEAAwF;AAaxF,MAAa,4BAA4B;CAIxC;AAJD,oEAIC;AAED,MAAa,8BAA8B;CAU1C;AAVD,wEAUC;AATC,gCAAgB,CAAC,KAAK,EAEtB,gCAAgB,CAAC,MAAM,EAEvB,gCAAgB,CAAC,IAAI,EAErB,gCAAgB,CAAC,SAAS,EAE1B,gCAAgB,CAAC,MAAM;AAGzB,MAAa,0BAA0B;CAItC;AAJD,gEAIC;AAED,MAAa,6BAA6B;CAIzC;AAJD,sEAIC;AAHC,kCAAkB,CAAC,KAAK,EAExB,kCAAkB,CAAC,OAAO;AAG5B,MAAa,8BAA8B;CAI1C;AAJD,wEAIC;AAED,MAAa,0BAA0B;CAUtC;AAVD,gEAUC;AAED,MAAM,iBAAiB;CAoBtB;AAED,MAAa,WAAY,SAAQ,iBAAiB;CAYjD;AAZD,kCAYC;AAED,MAAa,iBAAkB,SAAQ,4CAAyB;CAQ/D;AARD,8CAQC;AAED,MAAa,eAAgB,SAAQ,6BAAe;CAMnD;AAND,0CAMC;AAED,MAAa,iBAAkB,SAAQ,iBAAiB;CAMvD;AAND,8CAMC;AAED,MAAa,iBAAiB;CAwB7B;AAxBD,8CAwBC;AAED,MAAa,kBAAkB;CAE9B;AAFD,gDAEC;AAED,MAAa,kBAAkB;CAE9B;AAFD,gDAEC;AAED,MAAa,cAAc;CAU1B;AAVD,wCAUC;AAED,MAAa,eAAe;CAQ3B;AARD,0CAQC;AAED,MAAa,iBAAiB;CAI7B;AAJD,8CAIC;AAED,MAAa,kBAAkB;CAM9B;AAND,gDAMC;AAED,MAAa,eAAgB,SAAQ,4CAAyB;CA4B7D;AA5BD,0CA4BC;AAED,MAAa,2BAA2B;CAIvC;AAJD,kEAIC;AAED,MAAa,sBAAuB,SAAQ,mBAAK;CAUhD;AAVD,wDAUC;AAED,MAAa,4BAA6B,SAAQ,iBAAiB;IAAnE;;QAKC,oBAAoB;QACpB,SAAI,GAAqB,iCAAgB,CAAC,iBAAiB,CAAC;IAC7D,CAAC;CAAA;AAPD,oEAOC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Price.js","sourceRoot":"","sources":["../../../../src/types/pricing/entities/Price.ts"],"names":[],"mappings":";;;AAEA,oGAAiG;AAIjG,MAAa,KAAM,SAAQ,mEAAgC;
|
1
|
+
{"version":3,"file":"Price.js","sourceRoot":"","sources":["../../../../src/types/pricing/entities/Price.ts"],"names":[],"mappings":";;;AAEA,oGAAiG;AAIjG,MAAa,KAAM,SAAQ,mEAAgC;CAiC1D;AAjCD,sBAiCC"}
|
@@ -68,6 +68,7 @@ export declare class GetProductsByTypeQueryDto extends PaginationQuery implement
|
|
68
68
|
includeArchived?: boolean;
|
69
69
|
includeCurrentPrice?: boolean;
|
70
70
|
includePricesSchedule?: boolean;
|
71
|
+
includeEntitlementDiscounts?: boolean;
|
71
72
|
facilitiesIds?: number[];
|
72
73
|
resourcesIds?: number[];
|
73
74
|
excludeResourceIds?: number[];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"product-pricing.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product-pricing.dto.ts"],"names":[],"mappings":";;;AACA,uDAAwD;AACxD,8EAA8E;AAM9E,MAAa,qBAAqB;CAUjC;AAVD,sDAUC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,sBAAuB,SAAQ,sCAAmB;CAE9D;AAFD,wDAEC;AAED,MAAa,2BAA4B,SAAQ,sCAAmB;CAAG;AAAvE,kEAAuE;AAEvE,MAAa,kBAAmB,SAAQ,6BAAe;CAEtD;AAFD,gDAEC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC;AAED,MAAa,oBAAoB;CAQhC;AARD,oDAQC;AAED,MAAa,sBAAsB;CAElC;AAFD,wDAEC;AAED,MAAa,oBAAoB;CAUhC;AAVD,oDAUC;AAED,MAAa,iBAAiB;CAE7B;AAFD,8CAEC;AAED,MAAa,0BAA0B;CAMtC;AAND,gEAMC;AAED,MAAa,UAAU;CAEtB;AAFD,gCAEC;AAED,MAAa,oBAAqB,SAAQ,sCAAmB;CAE5D;AAFD,oDAEC;AAED,MAAa,yBAA0B,SAAQ,6BAAe;
|
1
|
+
{"version":3,"file":"product-pricing.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product-pricing.dto.ts"],"names":[],"mappings":";;;AACA,uDAAwD;AACxD,8EAA8E;AAM9E,MAAa,qBAAqB;CAUjC;AAVD,sDAUC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,sBAAuB,SAAQ,sCAAmB;CAE9D;AAFD,wDAEC;AAED,MAAa,2BAA4B,SAAQ,sCAAmB;CAAG;AAAvE,kEAAuE;AAEvE,MAAa,kBAAmB,SAAQ,6BAAe;CAEtD;AAFD,gDAEC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC;AAED,MAAa,oBAAoB;CAQhC;AARD,oDAQC;AAED,MAAa,sBAAsB;CAElC;AAFD,wDAEC;AAED,MAAa,oBAAoB;CAUhC;AAVD,oDAUC;AAED,MAAa,iBAAiB;CAE7B;AAFD,8CAEC;AAED,MAAa,0BAA0B;CAMtC;AAND,gEAMC;AAED,MAAa,UAAU;CAEtB;AAFD,gCAEC;AAED,MAAa,oBAAqB,SAAQ,sCAAmB;CAE5D;AAFD,oDAEC;AAED,MAAa,yBAA0B,SAAQ,6BAAe;CAgC7D;AAhCD,8DAgCC"}
|
@@ -9,6 +9,7 @@ import { ProductPackage } from '../../entity/ProductPackage';
|
|
9
9
|
import { ProductsReservedForCustomers } from '../../entity/ProductsReservedForCustomers';
|
10
10
|
import { ProductsUsers } from '../../entity/ProductsUsers';
|
11
11
|
import { ResourceGlDto } from '../../gl-codes/dto/resource-to-gl.dto';
|
12
|
+
import { EntitlementDiscountDto } from '../../payment/dto/discount.dto';
|
12
13
|
import { CreatePaymentPlanDto, PaymentPlanDto } from '../../payment/dto/payment-plan.dto';
|
13
14
|
import { ProductPaymentPlan } from '../../payment/entities/ProductPaymentPlan';
|
14
15
|
import { CreateGroupPricingWithProduct, CreatePriceDto } from '../../pricing/dto/pricing.dto';
|
@@ -201,6 +202,8 @@ export declare class DeprecatedProductDto extends BaseProductDto {
|
|
201
202
|
export declare class ProductDto extends BaseProductDto {
|
202
203
|
productPaymentPlans?: PaymentPlanDto[];
|
203
204
|
pricingSchedules?: IPricingSchedule[];
|
205
|
+
status?: ActivityEnum;
|
206
|
+
entitlementDiscounts?: EntitlementDiscountDto[];
|
204
207
|
}
|
205
208
|
export declare class ResourceProductDto {
|
206
209
|
id: number;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"product.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product.dto.ts"],"names":[],"mappings":";;;AAGA,uDAAsE;
|
1
|
+
{"version":3,"file":"product.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product.dto.ts"],"names":[],"mappings":";;;AAGA,uDAAsE;AAiCtE,MAAa,kBAAkB;CAE9B;AAFD,gDAEC;AAED,MAAa,iCAAiC;CAU7C;AAVD,8EAUC;AAED,MAAa,2BAA2B;CAUvC;AAVD,kEAUC;AAED,MAAa,gBAAgB;CAgF5B;AAhFD,4CAgFC;AAED,MAAa,gBAAiB,SAAQ,gBAAgB;CAMrD;AAND,4CAMC;AAED,MAAa,yBAAyB;CAIrC;AAJD,8DAIC;AAED,MAAa,yBAAyB;CAKrC;AALD,8DAKC;AAED,MAAa,sBAAsB;CAGlC;AAHD,wDAGC;AAED,MAAa,cAAe,SAAQ,6BAAe;CAQlD;AARD,wCAQC;AAED,MAAa,cAAe,SAAQ,6BAAe;CAwBlD;AAxBD,wCAwBC;AAED,MAAa,sBAAsB;CASlC;AATD,wDASC;AAED,MAAa,0BAA2B,SAAQ,6BAAe;CAM9D;AAND,gEAMC;AAED,MAAa,gBAAiB,SAAQ,0BAAY;CAIjD;AAJD,4CAIC;AAED,MAAa,cAAc;CA8G1B;AA9GD,wCA8GC;AAED,MAAa,oBAAqB,SAAQ,cAAc;CAEvD;AAFD,oDAEC;AAED,MAAa,UAAW,SAAQ,cAAc;CAQ7C;AARD,gCAQC;AAED,MAAa,kBAAkB;CAU9B;AAVD,gDAUC"}
|
@@ -4,6 +4,7 @@ import { CreatePriceDto } from '../../pricing/dto/pricing.dto';
|
|
4
4
|
import { CreateRentalProductAddonDto } from './product.dto';
|
5
5
|
import { BasicActivityTimesDto } from '../../dto/activityTimes.dto';
|
6
6
|
import { PriceTypeEnum } from '../../pricing/types/pricing.enums';
|
7
|
+
import { CreateEntitlementDiscountDto } from '../../payment/dto/discount.dto';
|
7
8
|
export declare class CreateRentalProductDto {
|
8
9
|
id?: number;
|
9
10
|
name: string;
|
@@ -39,4 +40,5 @@ export declare class CreateRentalProductPackageDto {
|
|
39
40
|
resources?: ResourceDto[];
|
40
41
|
addons?: CreateRentalProductAddonDto[];
|
41
42
|
extraParticipantsPrice?: CreatePriceDto;
|
43
|
+
entitlementDiscounts?: CreateEntitlementDiscountDto[];
|
42
44
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"rental-product.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/rental-product.dto.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"rental-product.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/rental-product.dto.ts"],"names":[],"mappings":";;;AAQA,MAAa,sBAAsB;CAkClC;AAlCD,wDAkCC;AAED,MAAa,4BAA4B;CAIxC;AAJD,oEAIC;AAED,MAAa,qBAAqB;CAMjC;AAND,sDAMC;AAED,MAAa,6BAA6B;CAczC;AAdD,sEAcC"}
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { ActivityTimes } from '../../entity/ActivityTimes';
|
2
2
|
import { Customer } from '../../entity/Customer';
|
3
|
+
import { Facility } from '../../entity/Facility';
|
3
4
|
import { GroupItemsPricing } from '../../entity/GroupItemsPricing';
|
4
5
|
import { LineItems } from '../../entity/LineItems';
|
5
6
|
import { Membership } from '../../entity/Membership';
|
@@ -12,13 +13,13 @@ import { PurchasedResource } from '../../entity/PurchasedResources';
|
|
12
13
|
import { VariantTitle } from '../../entity/VariantTitles';
|
13
14
|
import { Variant } from '../../entity/Variants';
|
14
15
|
import { ResourceGlDto } from '../../gl-codes/dto/resource-to-gl.dto';
|
16
|
+
import { Discount } from '../../payment/entities/Discount';
|
15
17
|
import { ProductPaymentPlan } from '../../payment/entities/ProductPaymentPlan';
|
16
18
|
import { Price } from '../../pricing/entities/Price';
|
17
19
|
import { ResourceSetting } from '../../resource-settings/entities/resource-setting.entity';
|
18
20
|
import { ActivityEnum, AddonTimePeriodEnum, ProductSubTypesEnum, ProductTypesEnum } from '../../services/enums.service';
|
19
21
|
import { IChildProduct, IResourcesAvailability } from '../../services/interfaces.service';
|
20
22
|
import { ProductResourceDto } from '../dto/product-resource.dto';
|
21
|
-
import { Facility } from '../../entity/Facility';
|
22
23
|
import { ProductStateEnum } from '../types/enums/product.enums';
|
23
24
|
import { IPricingSchedule } from '../types/interfaces/product-pricing.interfaces';
|
24
25
|
export declare class Product extends OrganizationConnectionBaseEntity {
|
@@ -52,6 +53,7 @@ export declare class Product extends OrganizationConnectionBaseEntity {
|
|
52
53
|
deletedAt?: Date;
|
53
54
|
isProRated: boolean;
|
54
55
|
entitledPrices?: GroupItemsPricing[];
|
56
|
+
entitlementDiscounts?: Discount[];
|
55
57
|
defaultPriceId?: number;
|
56
58
|
tax: number;
|
57
59
|
isTaxInclusive: boolean;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Product.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/Product.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"Product.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/Product.ts"],"names":[],"mappings":";;;AAmBA,oGAAiG;AAoBjG,MAAa,OAAQ,SAAQ,mEAAgC;CA2H5D;AA3HD,0BA2HC"}
|
@@ -22,6 +22,7 @@ export interface IGetProductsByTypeOptions extends IPagination {
|
|
22
22
|
resourcesIds?: number[];
|
23
23
|
excludeResourceIds?: number[];
|
24
24
|
excludeProductIds?: number[];
|
25
|
+
includeEntitlementDiscounts?: boolean;
|
25
26
|
statuses?: ActivityEnum[];
|
26
27
|
sports?: SportsEnum[];
|
27
28
|
search?: string;
|
@@ -7,7 +7,6 @@ import { ByOrganizationIdDto } from '../../organization/dto/organization.dto';
|
|
7
7
|
import { ScheduledPaymentDto } from '../../payment/dto/payment-plan.dto';
|
8
8
|
import { Payment } from '../../payment/entities/Payment';
|
9
9
|
import { FuturePaymentStatusEnum, PaymentMethodTypeEnum, PaymentStatusEnum } from '../../payment/types/enums/payment.enums';
|
10
|
-
import { ResourceDto } from '../../resources/dto/resource.dto';
|
11
10
|
import { PlatformsEnum, ResourceNameTypeEnum } from '../../services/enums.service';
|
12
11
|
import { IPurchaseCart, IPurchasePayment } from '../types/interfaces/purchase.interfaces';
|
13
12
|
export declare class PurchasePaymentDto implements IPurchasePayment {
|
@@ -45,7 +44,9 @@ export declare class PurchaseRequestDto {
|
|
45
44
|
installmentId?: number;
|
46
45
|
isAutoRenewal?: boolean;
|
47
46
|
}
|
48
|
-
export declare class PurchaseResourceDto
|
47
|
+
export declare class PurchaseResourceDto {
|
48
|
+
id: number;
|
49
|
+
type: ResourceNameTypeEnum;
|
49
50
|
startDate?: Date;
|
50
51
|
resourceIdToRenew?: number;
|
51
52
|
}
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PurchaseCartDto = exports.PurchaseResultDto = exports.ValidateParticipantDto = exports.PartialPaymentAsUserDto = exports.AddItemsDto = exports.RedeemPunchCardRequestDto = exports.PartialPaymentRequestDto = exports.ScheduledPaymentRequestBodyDto = exports.ScheduledPaymentRequestDto = exports.ScheduledPaymentConsumerRequestDto = exports.PurchaseProductDto = exports.PurchaseResourceDto = exports.PurchaseRequestDto = exports.ChargeRentalsReuqestDto = exports.PurchasePaymentDto = void 0;
|
4
4
|
const invoice_dto_1 = require("../../invoice/dto/invoice.dto");
|
5
5
|
const organization_dto_1 = require("../../organization/dto/organization.dto");
|
6
|
-
const resource_dto_1 = require("../../resources/dto/resource.dto");
|
7
6
|
class PurchasePaymentDto {
|
8
7
|
}
|
9
8
|
exports.PurchasePaymentDto = PurchasePaymentDto;
|
@@ -13,7 +12,7 @@ exports.ChargeRentalsReuqestDto = ChargeRentalsReuqestDto;
|
|
13
12
|
class PurchaseRequestDto {
|
14
13
|
}
|
15
14
|
exports.PurchaseRequestDto = PurchaseRequestDto;
|
16
|
-
class PurchaseResourceDto
|
15
|
+
class PurchaseResourceDto {
|
17
16
|
}
|
18
17
|
exports.PurchaseResourceDto = PurchaseResourceDto;
|
19
18
|
class PurchaseProductDto {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"purchase.dto.js","sourceRoot":"","sources":["../../../../src/types/purchase/dto/purchase.dto.ts"],"names":[],"mappings":";;;AAIA,+DAA+D;AAC/D,8EAA8E;
|
1
|
+
{"version":3,"file":"purchase.dto.js","sourceRoot":"","sources":["../../../../src/types/purchase/dto/purchase.dto.ts"],"names":[],"mappings":";;;AAIA,+DAA+D;AAC/D,8EAA8E;AAY9E,MAAa,kBAAkB;CAQ9B;AARD,gDAQC;AAED,MAAa,uBAAuB;CAkBnC;AAlBD,0DAkBC;AAED,MAAa,kBAAkB;CAiC9B;AAjCD,gDAiCC;AAED,MAAa,mBAAmB;CAQ/B;AARD,kDAQC;AAED,MAAa,kBAAkB;CA6B9B;AA7BD,gDA6BC;AAED,MAAa,kCAAkC;CAM9C;AAND,gFAMC;AAED,MAAa,0BAA2B,SAAQ,sCAAmB;CAIlE;AAJD,gEAIC;AAED,MAAa,8BAA8B;CAU1C;AAVD,wEAUC;AAED,MAAa,wBAAwB;CAgBpC;AAhBD,4DAgBC;AAED,MAAa,yBAAyB;CAQrC;AARD,8DAQC;AAED,MAAa,WAAW;IAAxB;QAGC,qBAAgB,GAAG,KAAK,CAAC;QAEzB,aAAQ,GAAG,KAAK,CAAC;IAClB,CAAC;CAAA;AAND,kCAMC;AAED,MAAa,uBAAuB;CAUnC;AAVD,0DAUC;AAED,MAAa,sBAAsB;CAElC;AAFD,wDAEC;AAED,MAAa,iBAAiB;CAU7B;AAVD,8CAUC;AAED,MAAa,eAAgB,SAAQ,4BAAc;CAUlD;AAVD,0CAUC"}
|
@@ -13,6 +13,7 @@ import { Answer } from '../questionnaires/entities/Answer';
|
|
13
13
|
import { Event } from './../entity/Events';
|
14
14
|
import { Product } from '../product-pricing/entities/Product';
|
15
15
|
import { AddonTimePeriodEnum, CurrencyEnum, EntitlementTermsTypesEnum, GenderEnum, LevelOfPlayEnum, MembershipStatusEnum, PackageProductsRelationTypeEnum, ProductSubTypesEnum, ProductTypesEnum, ProgramTypesEnum, PurchasedResourceStatusEnum, RegistrationValidationStatusEnum, RegistrationWindowStatusEnum, ResourceNameTypeEnum, SlotTypeEnum, SportsEnum } from './enums.service';
|
16
|
+
import { Discount } from '../payment/entities/Discount';
|
16
17
|
export interface IEntitlementTerms {
|
17
18
|
type: EntitlementTermsTypesEnum;
|
18
19
|
id?: number;
|
@@ -32,6 +33,15 @@ export interface ILowestPriceForItem {
|
|
32
33
|
price: number;
|
33
34
|
overridesPrice: boolean;
|
34
35
|
}
|
36
|
+
export interface IBiggestDiscountForItem {
|
37
|
+
itemId: number;
|
38
|
+
itemType: ResourceNameTypeEnum;
|
39
|
+
groupId: number;
|
40
|
+
groupName?: string;
|
41
|
+
discount: Discount;
|
42
|
+
overridesPrice: boolean;
|
43
|
+
price?: number;
|
44
|
+
}
|
35
45
|
export interface IResourcesAvailability {
|
36
46
|
resourceType: ResourceNameTypeEnum;
|
37
47
|
quantity: number;
|
@@ -106,6 +116,7 @@ export interface IPricesOfProductsResults {
|
|
106
116
|
unitPrice: number;
|
107
117
|
groupId?: number;
|
108
118
|
groupName?: string;
|
119
|
+
discountId?: number;
|
109
120
|
originalPrice?: number;
|
110
121
|
priceWithoutTax: number;
|
111
122
|
tax: number;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"interfaces.service.js","sourceRoot":"","sources":["../../../src/types/services/interfaces.service.ts"],"names":[],"mappings":";;;AAQA,8EAA2E;AAI3E,+CAA2C;AAE3C,mDAiByB;
|
1
|
+
{"version":3,"file":"interfaces.service.js","sourceRoot":"","sources":["../../../src/types/services/interfaces.service.ts"],"names":[],"mappings":";;;AAQA,8EAA2E;AAI3E,+CAA2C;AAE3C,mDAiByB;AAkFzB,MAAa,qBAAsB,SAAQ,6BAAa;IAAxD;;QACC,gBAAW,GAAyB,oCAAoB,CAAC,cAAc,CAAC;IAEzE,CAAC;CAAA;AAHD,sDAGC;AAED,MAAa,oBAAqB,SAAQ,cAAK;IAA/C;;QACC,gBAAW,GAAyB,oCAAoB,CAAC,KAAK,CAAC;IAEhE,CAAC;CAAA;AAHD,oDAGC"}
|