@bondsports/types 2.0.46 → 2.0.47
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-item.dto.d.ts +33 -0
- package/dist/types/cart/dto/cart-item.dto.js +11 -0
- package/dist/types/cart/dto/cart-item.dto.js.map +1 -0
- package/dist/types/cart/dto/cart.dto.d.ts +38 -0
- package/dist/types/cart/dto/cart.dto.js +24 -0
- package/dist/types/cart/dto/cart.dto.js.map +1 -0
- package/dist/types/cart/dto/index.d.ts +2 -0
- package/dist/types/cart/dto/index.js +19 -0
- package/dist/types/cart/dto/index.js.map +1 -0
- package/dist/types/cart/entities/cart-item.entity.d.ts +34 -0
- package/dist/types/cart/entities/cart-item.entity.js +8 -0
- package/dist/types/cart/entities/cart-item.entity.js.map +1 -0
- package/dist/types/cart/entities/cart.entity.d.ts +23 -0
- package/dist/types/cart/entities/cart.entity.js +8 -0
- package/dist/types/cart/entities/cart.entity.js.map +1 -0
- package/dist/types/cart/entities/index.d.ts +2 -0
- package/dist/types/cart/entities/index.js +19 -0
- package/dist/types/cart/entities/index.js.map +1 -0
- package/dist/types/cart/index.d.ts +3 -0
- package/dist/types/cart/index.js +20 -0
- package/dist/types/cart/index.js.map +1 -0
- package/dist/types/cart/types/enums/cart.enums.d.ts +12 -0
- package/dist/types/cart/types/enums/cart.enums.js +18 -0
- package/dist/types/cart/types/enums/cart.enums.js.map +1 -0
- package/dist/types/cart/types/enums/index.d.ts +1 -0
- package/dist/types/cart/types/enums/index.js +18 -0
- package/dist/types/cart/types/enums/index.js.map +1 -0
- package/dist/types/cart/types/index.d.ts +2 -0
- package/dist/types/cart/types/index.js +19 -0
- package/dist/types/cart/types/index.js.map +1 -0
- package/dist/types/cart/types/interfaces/cart.interfaces.d.ts +28 -0
- package/dist/types/cart/types/interfaces/cart.interfaces.js +3 -0
- package/dist/types/cart/types/interfaces/cart.interfaces.js.map +1 -0
- package/dist/types/cart/types/interfaces/index.d.ts +2 -0
- package/dist/types/cart/types/interfaces/index.js +19 -0
- package/dist/types/cart/types/interfaces/index.js.map +1 -0
- package/dist/types/cart/types/interfaces/validate-cart.interfaces.d.ts +11 -0
- package/dist/types/cart/types/interfaces/validate-cart.interfaces.js +3 -0
- package/dist/types/cart/types/interfaces/validate-cart.interfaces.js.map +1 -0
- package/dist/types/dto/customer.dto.d.ts +0 -3
- package/dist/types/dto/customer.dto.js +1 -4
- package/dist/types/dto/customer.dto.js.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +1 -0
- package/dist/types/index.js.map +1 -1
- package/dist/types/programs-seasons/entities/ProgramSeason.js.map +1 -1
- package/dist/types/punch-pass/dto/punch-pass.dto.d.ts +9 -10
- package/dist/types/punch-pass/dto/punch-pass.dto.js +2 -2
- package/dist/types/punch-pass/dto/punch-pass.dto.js.map +1 -1
- package/dist/types/purchase/types/interfaces/purchase.interfaces.d.ts +0 -5
- package/dist/types/user/dto/user.dto.d.ts +1 -4
- package/dist/types/user/dto/user.dto.js +3 -6
- package/dist/types/user/dto/user.dto.js.map +1 -1
- package/dist/types/user-activities/dto/user-activities.dto.d.ts +3 -3
- package/dist/types/user-activities/dto/user-activities.dto.js +2 -2
- package/dist/types/user-activities/dto/user-activities.dto.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Product } from '../../entity/Product';
|
|
2
|
+
import { OrganizationBaseEntityDto } from '../../organization/dto/organization.dto';
|
|
3
|
+
import { SimpleDiscountDto } from '../../payment/dto/discount.dto';
|
|
4
|
+
import { ResourceDto } from '../../spaces/dto/resource.dto';
|
|
5
|
+
import { CartStatusEnum } from '../types/enums/cart.enums';
|
|
6
|
+
export declare class CartItemDto extends OrganizationBaseEntityDto {
|
|
7
|
+
cartId: number;
|
|
8
|
+
userId?: number;
|
|
9
|
+
productId: number;
|
|
10
|
+
product?: Product;
|
|
11
|
+
price: number;
|
|
12
|
+
unitPrice?: number;
|
|
13
|
+
quantity?: number;
|
|
14
|
+
status: CartStatusEnum;
|
|
15
|
+
errors?: string[];
|
|
16
|
+
ordinal?: number;
|
|
17
|
+
percentage?: number;
|
|
18
|
+
isTaxInclusive?: boolean;
|
|
19
|
+
entitlementGroupId?: number;
|
|
20
|
+
parentId?: number;
|
|
21
|
+
parent?: CartItemDto;
|
|
22
|
+
taxItem?: CartItemDto;
|
|
23
|
+
children?: CartItemDto[];
|
|
24
|
+
discountId?: number;
|
|
25
|
+
discount?: SimpleDiscountDto;
|
|
26
|
+
resources?: ResourceDto[];
|
|
27
|
+
}
|
|
28
|
+
export declare class AddCartItemDto {
|
|
29
|
+
productId: number;
|
|
30
|
+
unitPrice: number;
|
|
31
|
+
quantity?: number;
|
|
32
|
+
userId?: number;
|
|
33
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AddCartItemDto = exports.CartItemDto = void 0;
|
|
4
|
+
const organization_dto_1 = require("../../organization/dto/organization.dto");
|
|
5
|
+
class CartItemDto extends organization_dto_1.OrganizationBaseEntityDto {
|
|
6
|
+
}
|
|
7
|
+
exports.CartItemDto = CartItemDto;
|
|
8
|
+
class AddCartItemDto {
|
|
9
|
+
}
|
|
10
|
+
exports.AddCartItemDto = AddCartItemDto;
|
|
11
|
+
//# sourceMappingURL=cart-item.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cart-item.dto.js","sourceRoot":"","sources":["../../../../src/types/cart/dto/cart-item.dto.ts"],"names":[],"mappings":";;;AACA,8EAAoF;AAKpF,MAAa,WAAY,SAAQ,4CAAyB;CAwCzD;AAxCD,kCAwCC;AAED,MAAa,cAAc;CAQ1B;AARD,wCAQC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { OrganizationBaseEntityDto } from '../../organization/dto/organization.dto';
|
|
2
|
+
import { CurrencyEnum, PlatformsEnum } from '../../services/enums.service';
|
|
3
|
+
import { ByOrganizationAndUserDto, SimpleUserDto } from '../../user/dto/user.dto';
|
|
4
|
+
import { CartStateEnum, CartStatusEnum } from '../types/enums/cart.enums';
|
|
5
|
+
import { AddCartItemDto, CartItemDto } from './cart-item.dto';
|
|
6
|
+
export declare class CartDto extends OrganizationBaseEntityDto {
|
|
7
|
+
createdAt: Date;
|
|
8
|
+
price: number;
|
|
9
|
+
state: CartStateEnum;
|
|
10
|
+
status: CartStatusEnum;
|
|
11
|
+
creatorId: number;
|
|
12
|
+
ownerId: number;
|
|
13
|
+
owner: SimpleUserDto;
|
|
14
|
+
currency: CurrencyEnum;
|
|
15
|
+
shiftId?: number;
|
|
16
|
+
platform: PlatformsEnum;
|
|
17
|
+
lastActiveTime: Date;
|
|
18
|
+
lastFetchedTime: Date;
|
|
19
|
+
cartItems: CartItemDto[];
|
|
20
|
+
}
|
|
21
|
+
export declare class UpdateCartDto {
|
|
22
|
+
ownerId?: number;
|
|
23
|
+
currency?: CurrencyEnum;
|
|
24
|
+
}
|
|
25
|
+
export declare class CreateCartDto extends UpdateCartDto {
|
|
26
|
+
shiftId?: number;
|
|
27
|
+
platform: PlatformsEnum;
|
|
28
|
+
cartItems?: AddCartItemDto[];
|
|
29
|
+
}
|
|
30
|
+
export declare class AddCartItemsDto {
|
|
31
|
+
cartItems: AddCartItemDto[];
|
|
32
|
+
}
|
|
33
|
+
export declare class CartItemsIdsDto {
|
|
34
|
+
cartItemsIds: number[];
|
|
35
|
+
}
|
|
36
|
+
export declare class ByOrganizationCartDto extends ByOrganizationAndUserDto {
|
|
37
|
+
cartId: number;
|
|
38
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ByOrganizationCartDto = exports.CartItemsIdsDto = exports.AddCartItemsDto = exports.CreateCartDto = exports.UpdateCartDto = exports.CartDto = void 0;
|
|
4
|
+
const organization_dto_1 = require("../../organization/dto/organization.dto");
|
|
5
|
+
const user_dto_1 = require("../../user/dto/user.dto");
|
|
6
|
+
class CartDto extends organization_dto_1.OrganizationBaseEntityDto {
|
|
7
|
+
}
|
|
8
|
+
exports.CartDto = CartDto;
|
|
9
|
+
class UpdateCartDto {
|
|
10
|
+
}
|
|
11
|
+
exports.UpdateCartDto = UpdateCartDto;
|
|
12
|
+
class CreateCartDto extends UpdateCartDto {
|
|
13
|
+
}
|
|
14
|
+
exports.CreateCartDto = CreateCartDto;
|
|
15
|
+
class AddCartItemsDto {
|
|
16
|
+
}
|
|
17
|
+
exports.AddCartItemsDto = AddCartItemsDto;
|
|
18
|
+
class CartItemsIdsDto {
|
|
19
|
+
}
|
|
20
|
+
exports.CartItemsIdsDto = CartItemsIdsDto;
|
|
21
|
+
class ByOrganizationCartDto extends user_dto_1.ByOrganizationAndUserDto {
|
|
22
|
+
}
|
|
23
|
+
exports.ByOrganizationCartDto = ByOrganizationCartDto;
|
|
24
|
+
//# sourceMappingURL=cart.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cart.dto.js","sourceRoot":"","sources":["../../../../src/types/cart/dto/cart.dto.ts"],"names":[],"mappings":";;;AAAA,8EAAoF;AAEpF,sDAAkF;AAIlF,MAAa,OAAQ,SAAQ,4CAAyB;CA0BrD;AA1BD,0BA0BC;AAED,MAAa,aAAa;CAIzB;AAJD,sCAIC;AAED,MAAa,aAAc,SAAQ,aAAa;CAM/C;AAND,sCAMC;AAED,MAAa,eAAe;CAE3B;AAFD,0CAEC;AAED,MAAa,eAAe;CAE3B;AAFD,0CAEC;AAED,MAAa,qBAAsB,SAAQ,mCAAwB;CAElE;AAFD,sDAEC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./cart-item.dto"), exports);
|
|
18
|
+
__exportStar(require("./cart.dto"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/cart/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,6CAA2B"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { EntitlementGroup } from '../../entity/EntitlementGroup';
|
|
2
|
+
import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
|
|
3
|
+
import { Product } from '../../entity/Product';
|
|
4
|
+
import { Discount } from '../../payment/entities/Discount';
|
|
5
|
+
import { ProductTypesEnum } from '../../services/enums.service';
|
|
6
|
+
import { ResourceDto } from '../../spaces/dto/resource.dto';
|
|
7
|
+
import { CartStatusEnum } from '../types/enums/cart.enums';
|
|
8
|
+
import { Cart } from './cart.entity';
|
|
9
|
+
export declare class CartItem extends OrganizationConnectionBaseEntity {
|
|
10
|
+
deletedAt?: Date;
|
|
11
|
+
cartId: number;
|
|
12
|
+
cart: Cart;
|
|
13
|
+
userId: number;
|
|
14
|
+
productId: number;
|
|
15
|
+
product: Product;
|
|
16
|
+
productType: ProductTypesEnum;
|
|
17
|
+
price: number;
|
|
18
|
+
unitPrice?: number;
|
|
19
|
+
quantity?: number;
|
|
20
|
+
status: CartStatusEnum;
|
|
21
|
+
errors?: string[];
|
|
22
|
+
ordinal?: number;
|
|
23
|
+
percentage?: number;
|
|
24
|
+
isTaxInclusive?: boolean;
|
|
25
|
+
entitlementGroupId?: number;
|
|
26
|
+
entitlementGroup?: EntitlementGroup;
|
|
27
|
+
parentId?: number;
|
|
28
|
+
parent?: CartItem;
|
|
29
|
+
children?: CartItem[];
|
|
30
|
+
taxItem?: CartItem;
|
|
31
|
+
discountId?: number;
|
|
32
|
+
discount?: Discount;
|
|
33
|
+
resources?: ResourceDto[];
|
|
34
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CartItem = void 0;
|
|
4
|
+
const OrganizationConnectionBaseEntity_1 = require("../../entity/OrganizationConnectionBaseEntity");
|
|
5
|
+
class CartItem extends OrganizationConnectionBaseEntity_1.OrganizationConnectionBaseEntity {
|
|
6
|
+
}
|
|
7
|
+
exports.CartItem = CartItem;
|
|
8
|
+
//# sourceMappingURL=cart-item.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cart-item.entity.js","sourceRoot":"","sources":["../../../../src/types/cart/entities/cart-item.entity.ts"],"names":[],"mappings":";;;AAEA,oGAAiG;AAQjG,MAAa,QAAS,SAAQ,mEAAgC;CAgD7D;AAhDD,4BAgDC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { UserAnswersDto } from '../../dto/application.dto';
|
|
2
|
+
import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
|
|
3
|
+
import { Answer } from '../../questionnaires/entities/Answer';
|
|
4
|
+
import { CurrencyEnum, PlatformsEnum } from '../../services/enums.service';
|
|
5
|
+
import { User } from '../../user/entities/User';
|
|
6
|
+
import { CartStateEnum, CartStatusEnum } from '../types/enums/cart.enums';
|
|
7
|
+
import { CartItem } from './cart-item.entity';
|
|
8
|
+
export declare class Cart extends OrganizationConnectionBaseEntity {
|
|
9
|
+
deletedAt?: Date;
|
|
10
|
+
price: number;
|
|
11
|
+
state: CartStateEnum;
|
|
12
|
+
status: CartStatusEnum;
|
|
13
|
+
creatorId: number;
|
|
14
|
+
ownerId: number;
|
|
15
|
+
owner: User;
|
|
16
|
+
currency: CurrencyEnum;
|
|
17
|
+
shiftId?: number;
|
|
18
|
+
platform?: PlatformsEnum;
|
|
19
|
+
lastActiveTime: Date;
|
|
20
|
+
lastFetchedTime: Date;
|
|
21
|
+
cartItems: CartItem[];
|
|
22
|
+
answers: Answer[] | UserAnswersDto[];
|
|
23
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Cart = void 0;
|
|
4
|
+
const OrganizationConnectionBaseEntity_1 = require("../../entity/OrganizationConnectionBaseEntity");
|
|
5
|
+
class Cart extends OrganizationConnectionBaseEntity_1.OrganizationConnectionBaseEntity {
|
|
6
|
+
}
|
|
7
|
+
exports.Cart = Cart;
|
|
8
|
+
//# sourceMappingURL=cart.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cart.entity.js","sourceRoot":"","sources":["../../../../src/types/cart/entities/cart.entity.ts"],"names":[],"mappings":";;;AAEA,oGAAiG;AAOjG,MAAa,IAAK,SAAQ,mEAAgC;CA4BzD;AA5BD,oBA4BC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./cart-item.entity"), exports);
|
|
18
|
+
__exportStar(require("./cart.entity"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/cart/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,gDAA8B"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./dto"), exports);
|
|
18
|
+
__exportStar(require("./entities"), exports);
|
|
19
|
+
__exportStar(require("./types"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/cart/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,6CAA2B;AAC3B,0CAAwB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare enum CartStateEnum {
|
|
2
|
+
ACTIVE = "active",
|
|
3
|
+
CANCELLED = "cancelled",
|
|
4
|
+
CLEARED = "cleared",
|
|
5
|
+
INVOICED = "invoiced"
|
|
6
|
+
}
|
|
7
|
+
export declare enum CartStatusEnum {
|
|
8
|
+
VALID = "valid",
|
|
9
|
+
INVALID = "invalid",
|
|
10
|
+
UNKNOWN = "unknown",
|
|
11
|
+
PROCESSING = "processing"
|
|
12
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CartStatusEnum = exports.CartStateEnum = void 0;
|
|
4
|
+
var CartStateEnum;
|
|
5
|
+
(function (CartStateEnum) {
|
|
6
|
+
CartStateEnum["ACTIVE"] = "active";
|
|
7
|
+
CartStateEnum["CANCELLED"] = "cancelled";
|
|
8
|
+
CartStateEnum["CLEARED"] = "cleared";
|
|
9
|
+
CartStateEnum["INVOICED"] = "invoiced";
|
|
10
|
+
})(CartStateEnum = exports.CartStateEnum || (exports.CartStateEnum = {}));
|
|
11
|
+
var CartStatusEnum;
|
|
12
|
+
(function (CartStatusEnum) {
|
|
13
|
+
CartStatusEnum["VALID"] = "valid";
|
|
14
|
+
CartStatusEnum["INVALID"] = "invalid";
|
|
15
|
+
CartStatusEnum["UNKNOWN"] = "unknown";
|
|
16
|
+
CartStatusEnum["PROCESSING"] = "processing";
|
|
17
|
+
})(CartStatusEnum = exports.CartStatusEnum || (exports.CartStatusEnum = {}));
|
|
18
|
+
//# sourceMappingURL=cart.enums.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cart.enums.js","sourceRoot":"","sources":["../../../../../src/types/cart/types/enums/cart.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAKX;AALD,WAAY,aAAa;IACxB,kCAAiB,CAAA;IACjB,wCAAuB,CAAA;IACvB,oCAAmB,CAAA;IACnB,sCAAqB,CAAA;AACtB,CAAC,EALW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAKxB;AAED,IAAY,cAKX;AALD,WAAY,cAAc;IACzB,iCAAe,CAAA;IACf,qCAAmB,CAAA;IACnB,qCAAmB,CAAA;IACnB,2CAAyB,CAAA;AAC1B,CAAC,EALW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAKzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './cart.enums';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./cart.enums"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/cart/types/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./enums"), exports);
|
|
18
|
+
__exportStar(require("./interfaces"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/cart/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,+CAA6B"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Product } from '../../../entity/Product';
|
|
2
|
+
import { IPricesOfProductsResults } from '../../../services/interfaces.service';
|
|
3
|
+
import { ResourceDto } from '../../../spaces/dto/resource.dto';
|
|
4
|
+
import { Cart } from '../../entities/cart.entity';
|
|
5
|
+
export interface IAddCartItems {
|
|
6
|
+
cartId: number;
|
|
7
|
+
userId: number;
|
|
8
|
+
cartItems: ICreateCartItem[];
|
|
9
|
+
cart?: Cart;
|
|
10
|
+
}
|
|
11
|
+
export interface ICreateCartItem {
|
|
12
|
+
productId: number;
|
|
13
|
+
unitPrice: number;
|
|
14
|
+
quantity?: number;
|
|
15
|
+
userId?: number;
|
|
16
|
+
resources?: ResourceDto[];
|
|
17
|
+
}
|
|
18
|
+
export interface IValidateCartOptions {
|
|
19
|
+
overridePrice?: boolean;
|
|
20
|
+
skipValidations?: boolean;
|
|
21
|
+
}
|
|
22
|
+
export interface IValidateCartResult {
|
|
23
|
+
currentPrices: IPricesOfProductsResults[];
|
|
24
|
+
productsDict?: {
|
|
25
|
+
[key: number]: Product;
|
|
26
|
+
};
|
|
27
|
+
productsDataDeprecated?: Product[];
|
|
28
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cart.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/cart/types/interfaces/cart.interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./cart.interfaces"), exports);
|
|
18
|
+
__exportStar(require("./validate-cart.interfaces"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/cart/types/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,6DAA2C"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IPricesOfProductsResults } from '../../../services/interfaces.service';
|
|
2
|
+
export type PriceValidationResult = {
|
|
3
|
+
currentPrices: IPricesOfProductsResults[];
|
|
4
|
+
};
|
|
5
|
+
export type TotalSumValidationResult = PriceValidationResult & {
|
|
6
|
+
currentPricesSum: number;
|
|
7
|
+
downpaymentsSum: number;
|
|
8
|
+
};
|
|
9
|
+
export interface IPricingValidator<TReturn = PriceValidationResult> {
|
|
10
|
+
validate(): TReturn;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate-cart.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/cart/types/interfaces/validate-cart.interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -24,9 +24,6 @@ export declare class ImportRentalsFromCSV extends ImportCustomerFromCSV {
|
|
|
24
24
|
export declare class ByOrganizationIdCustomerIdDto extends ByOrganizationIdDto {
|
|
25
25
|
customerId: number;
|
|
26
26
|
}
|
|
27
|
-
export declare class ByOrganizationIdUserIdDto extends ByOrganizationIdDto {
|
|
28
|
-
userId: number;
|
|
29
|
-
}
|
|
30
27
|
export declare class FindCustomersByOrganizationIdFiltersDto extends PaginationQuery {
|
|
31
28
|
nameSearch?: string;
|
|
32
29
|
fuzzy?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CustomerDto = exports.CustomerNoteDto = exports.AddCustomerNotesDto = exports.FindCustomersByOrganizationIdFiltersDto = exports.
|
|
3
|
+
exports.CustomerDto = exports.CustomerNoteDto = exports.AddCustomerNotesDto = exports.FindCustomersByOrganizationIdFiltersDto = exports.ByOrganizationIdCustomerIdDto = exports.ImportRentalsFromCSV = exports.ImportDashCustomerDto = exports.ImportProgramsFileDto = exports.ImportCustomerFromCSV = exports.ImportProductsFromDB = exports.FindByMembershipIdDto = void 0;
|
|
4
4
|
const organization_dto_1 = require("../organization/dto/organization.dto");
|
|
5
5
|
const general_dto_1 = require("./general.dto");
|
|
6
6
|
class FindByMembershipIdDto extends organization_dto_1.ByOrganizationIdDto {
|
|
@@ -24,9 +24,6 @@ exports.ImportRentalsFromCSV = ImportRentalsFromCSV;
|
|
|
24
24
|
class ByOrganizationIdCustomerIdDto extends organization_dto_1.ByOrganizationIdDto {
|
|
25
25
|
}
|
|
26
26
|
exports.ByOrganizationIdCustomerIdDto = ByOrganizationIdCustomerIdDto;
|
|
27
|
-
class ByOrganizationIdUserIdDto extends organization_dto_1.ByOrganizationIdDto {
|
|
28
|
-
}
|
|
29
|
-
exports.ByOrganizationIdUserIdDto = ByOrganizationIdUserIdDto;
|
|
30
27
|
class FindCustomersByOrganizationIdFiltersDto extends general_dto_1.PaginationQuery {
|
|
31
28
|
}
|
|
32
29
|
exports.FindCustomersByOrganizationIdFiltersDto = FindCustomersByOrganizationIdFiltersDto;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer.dto.js","sourceRoot":"","sources":["../../../src/types/dto/customer.dto.ts"],"names":[],"mappings":";;;AAAA,2EAA2E;AAE3E,+CAAgD;AAEhD,MAAa,qBAAsB,SAAQ,sCAAmB;CAE7D;AAFD,sDAEC;AAED,MAAa,oBAAoB;CAEhC;AAFD,oDAEC;AAED,MAAa,qBAAqB;CAIjC;AAJD,sDAIC;AAED,MAAa,qBAAsB,SAAQ,qBAAqB;CAE/D;AAFD,sDAEC;AAED,MAAa,qBAAsB,SAAQ,qBAAqB;CAI/D;AAJD,sDAIC;AAED,MAAa,oBAAqB,SAAQ,qBAAqB;CAE9D;AAFD,oDAEC;AAED,MAAa,6BAA8B,SAAQ,sCAAmB;CAErE;AAFD,sEAEC;AAED,MAAa,
|
|
1
|
+
{"version":3,"file":"customer.dto.js","sourceRoot":"","sources":["../../../src/types/dto/customer.dto.ts"],"names":[],"mappings":";;;AAAA,2EAA2E;AAE3E,+CAAgD;AAEhD,MAAa,qBAAsB,SAAQ,sCAAmB;CAE7D;AAFD,sDAEC;AAED,MAAa,oBAAoB;CAEhC;AAFD,oDAEC;AAED,MAAa,qBAAqB;CAIjC;AAJD,sDAIC;AAED,MAAa,qBAAsB,SAAQ,qBAAqB;CAE/D;AAFD,sDAEC;AAED,MAAa,qBAAsB,SAAQ,qBAAqB;CAI/D;AAJD,sDAIC;AAED,MAAa,oBAAqB,SAAQ,qBAAqB;CAE9D;AAFD,oDAEC;AAED,MAAa,6BAA8B,SAAQ,sCAAmB;CAErE;AAFD,sEAEC;AAED,MAAa,uCAAwC,SAAQ,6BAAe;CAQ3E;AARD,0FAQC;AAED,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAED,MAAa,eAAe;CAM3B;AAND,0CAMC;AAED,MAAa,WAAW;CA8CvB;AA9CD,kCA8CC"}
|
package/dist/types/index.d.ts
CHANGED
package/dist/types/index.js
CHANGED
|
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./activities"), exports);
|
|
18
|
+
__exportStar(require("./cart"), exports);
|
|
18
19
|
__exportStar(require("./communication"), exports);
|
|
19
20
|
__exportStar(require("./customers"), exports);
|
|
20
21
|
__exportStar(require("./dto"), exports);
|
package/dist/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,kDAAgC;AAChC,8CAA4B;AAC5B,wCAAsB;AACtB,2CAAyB;AACzB,kDAAgC;AAChC,wCAAsB;AACtB,6CAA2B;AAC3B,2CAAyB;AACzB,gDAA8B;AAC9B,4CAA0B;AAC1B,2CAAyB;AACzB,0CAAwB;AACxB,+CAA6B;AAC7B,2CAAyB;AACzB,mDAAiC;AACjC,0CAAwB;AACxB,kDAAgC;AAChC,iDAA+B;AAC/B,4CAA0B;AAC1B,4CAA0B;AAC1B,oDAAkC;AAClC,6CAA2B;AAC3B,qDAAmC;AACnC,+CAA6B;AAC7B,6CAA2B;AAC3B,mDAAiC;AACjC,iDAA+B;AAC/B,sDAAoC;AACpC,0CAAwB;AACxB,6CAA2B;AAC3B,2CAAyB;AACzB,2CAAyB;AACzB,yCAAuB;AACvB,oDAAkC;AAClC,yCAAuB;AACvB,4CAA0B;AAC1B,6CAA2B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,yCAAuB;AACvB,kDAAgC;AAChC,8CAA4B;AAC5B,wCAAsB;AACtB,2CAAyB;AACzB,kDAAgC;AAChC,wCAAsB;AACtB,6CAA2B;AAC3B,2CAAyB;AACzB,gDAA8B;AAC9B,4CAA0B;AAC1B,2CAAyB;AACzB,0CAAwB;AACxB,+CAA6B;AAC7B,2CAAyB;AACzB,mDAAiC;AACjC,0CAAwB;AACxB,kDAAgC;AAChC,iDAA+B;AAC/B,4CAA0B;AAC1B,4CAA0B;AAC1B,oDAAkC;AAClC,6CAA2B;AAC3B,qDAAmC;AACnC,+CAA6B;AAC7B,6CAA2B;AAC3B,mDAAiC;AACjC,iDAA+B;AAC/B,sDAAoC;AACpC,0CAAwB;AACxB,6CAA2B;AAC3B,2CAAyB;AACzB,2CAAyB;AACzB,yCAAuB;AACvB,oDAAkC;AAClC,yCAAuB;AACvB,4CAA0B;AAC1B,6CAA2B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProgramSeason.js","sourceRoot":"","sources":["../../../../src/types/programs-seasons/entities/ProgramSeason.ts"],"names":[],"mappings":";;;AAeA,gEAA6D;
|
|
1
|
+
{"version":3,"file":"ProgramSeason.js","sourceRoot":"","sources":["../../../../src/types/programs-seasons/entities/ProgramSeason.ts"],"names":[],"mappings":";;;AAeA,gEAA6D;AAuB7D,MAAa,aAAc,SAAQ,+BAAc;CA+HhD;AA/HD,sCA+HC"}
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { SimpleProgramDto } from '../../programs/dto/program.dto';
|
|
2
|
-
import { SimpleSessionDto } from '../../programs-seasons/dto/program-seasons.dto';
|
|
3
|
-
import { SimpleProductDto } from '../../dto/product.dto';
|
|
4
|
-
import { SimpleResourceDto } from '../../spaces/dto/resource.dto';
|
|
5
|
-
import { SimpleFacilityDto } from '../../dto/facilities.dto';
|
|
6
1
|
import { SimpleEventDto } from '../../dto/events.dto';
|
|
7
|
-
import {
|
|
8
|
-
import { PaymentIdDto } from '../../payment/dto/payment.dto';
|
|
9
|
-
import { PunchPassFilterByEnum, PunchPassOrderByEnum, PunchPassSearchByEnum } from '../types/enums';
|
|
2
|
+
import { SimpleFacilityDto } from '../../dto/facilities.dto';
|
|
10
3
|
import { PaginationQuery } from '../../dto/general.dto';
|
|
4
|
+
import { SimpleProductDto } from '../../dto/product.dto';
|
|
5
|
+
import { PaymentIdDto } from '../../payment/dto/payment.dto';
|
|
11
6
|
import { PaymentStatusEnum } from '../../payment/types/enums/payment.enums';
|
|
12
|
-
import {
|
|
7
|
+
import { SimpleSessionDto } from '../../programs-seasons/dto/program-seasons.dto';
|
|
8
|
+
import { SimpleProgramDto } from '../../programs/dto/program.dto';
|
|
13
9
|
import { OrderByEnum } from '../../services/enums.service';
|
|
10
|
+
import { SimpleResourceDto } from '../../spaces/dto/resource.dto';
|
|
11
|
+
import { ByOrganizationAndUserDto, SimpleUserDto } from '../../user/dto/user.dto';
|
|
12
|
+
import { PunchPassFilterByEnum, PunchPassOrderByEnum, PunchPassSearchByEnum } from '../types/enums';
|
|
14
13
|
export declare class PunchPassFinancialInfoDto {
|
|
15
14
|
price: number;
|
|
16
15
|
invoiceId: number;
|
|
@@ -55,6 +54,6 @@ export declare class GetPassEventsDto {
|
|
|
55
54
|
includeResources?: boolean;
|
|
56
55
|
orderBy?: OrderByEnum;
|
|
57
56
|
}
|
|
58
|
-
export declare class ByPassIdOrganizationIdUserIdDto extends
|
|
57
|
+
export declare class ByPassIdOrganizationIdUserIdDto extends ByOrganizationAndUserDto {
|
|
59
58
|
passId: number;
|
|
60
59
|
}
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ByPassIdOrganizationIdUserIdDto = exports.GetPassEventsDto = exports.GetPassesOptionsDto = exports.PunchPassEventDto = exports.PunchPassInfoDto = exports.PunchPassFinancialInfoDto = void 0;
|
|
4
4
|
const events_dto_1 = require("../../dto/events.dto");
|
|
5
5
|
const general_dto_1 = require("../../dto/general.dto");
|
|
6
|
-
const
|
|
6
|
+
const user_dto_1 = require("../../user/dto/user.dto");
|
|
7
7
|
class PunchPassFinancialInfoDto {
|
|
8
8
|
}
|
|
9
9
|
exports.PunchPassFinancialInfoDto = PunchPassFinancialInfoDto;
|
|
@@ -19,7 +19,7 @@ exports.GetPassesOptionsDto = GetPassesOptionsDto;
|
|
|
19
19
|
class GetPassEventsDto {
|
|
20
20
|
}
|
|
21
21
|
exports.GetPassEventsDto = GetPassEventsDto;
|
|
22
|
-
class ByPassIdOrganizationIdUserIdDto extends
|
|
22
|
+
class ByPassIdOrganizationIdUserIdDto extends user_dto_1.ByOrganizationAndUserDto {
|
|
23
23
|
}
|
|
24
24
|
exports.ByPassIdOrganizationIdUserIdDto = ByPassIdOrganizationIdUserIdDto;
|
|
25
25
|
//# sourceMappingURL=punch-pass.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"punch-pass.dto.js","sourceRoot":"","sources":["../../../../src/types/punch-pass/dto/punch-pass.dto.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"punch-pass.dto.js","sourceRoot":"","sources":["../../../../src/types/punch-pass/dto/punch-pass.dto.ts"],"names":[],"mappings":";;;AAAA,qDAAsD;AAEtD,uDAAwD;AAQxD,sDAAkF;AAGlF,MAAa,yBAAyB;CAcrC;AAdD,8DAcC;AAED,MAAa,gBAAgB;CAwB5B;AAxBD,4CAwBC;AAED,MAAa,iBAAkB,SAAQ,2BAAc;CAMpD;AAND,8CAMC;AAED,MAAa,mBAAoB,SAAQ,6BAAe;CAcvD;AAdD,kDAcC;AAED,MAAa,gBAAgB;CAU5B;AAVD,4CAUC;AAED,MAAa,+BAAgC,SAAQ,mCAAwB;CAE5E;AAFD,0EAEC"}
|
|
@@ -5,7 +5,6 @@ import { Payment } from '../../../payment/entities/Payment';
|
|
|
5
5
|
import { FuturePaymentStatusEnum } from '../../../payment/types/enums/payment.enums';
|
|
6
6
|
import { SaveInvoicePayment } from '../../../payment/types/interfaces/payment.interfaces';
|
|
7
7
|
import { CurrencyEnum, LineItemsStatusEnum, ProductSubTypesEnum, ProductTypesEnum } from '../../../services/enums.service';
|
|
8
|
-
import { IPricesOfProductsResults } from '../../../services/interfaces.service';
|
|
9
8
|
export type UserCount = {
|
|
10
9
|
male: number;
|
|
11
10
|
female: number;
|
|
@@ -31,10 +30,6 @@ export interface ILineItem {
|
|
|
31
30
|
quantity: number;
|
|
32
31
|
totalPrice?: number;
|
|
33
32
|
}
|
|
34
|
-
export interface IValidateCartResult {
|
|
35
|
-
currentPrices: IPricesOfProductsResults[];
|
|
36
|
-
productsData: Product[];
|
|
37
|
-
}
|
|
38
33
|
export interface ChargeInvoice extends SaveInvoicePayment {
|
|
39
34
|
amountToPay: number;
|
|
40
35
|
}
|