cecon-interfaces 1.4.29 → 1.4.30
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/esm2022/order/entities/benefits.entity.mjs +2 -1
- package/dist/esm2022/order/interfaces/i-benefits.mjs +1 -1
- package/dist/esm2022/voucher/entities/index.mjs +2 -1
- package/dist/esm2022/voucher/entities/voucher-customer.entity.mjs +25 -0
- package/dist/fesm2022/cecon-interfaces.mjs +25 -1
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/order/entities/benefits.entity.d.ts +1 -0
- package/dist/order/entities/benefits.entity.js +1 -0
- package/dist/order/interfaces/i-benefits.d.ts +1 -0
- package/dist/package.json +1 -1
- package/dist/voucher/entities/index.d.ts +1 -0
- package/dist/voucher/entities/index.js +3 -1
- package/dist/voucher/entities/voucher-customer.entity.d.ts +17 -0
- package/dist/voucher/entities/voucher-customer.entity.js +29 -0
- package/package.json +1 -1
@@ -2,6 +2,7 @@ import { SponsorshipValueEntity } from '../../general/entities/sponsorship-value
|
|
2
2
|
export declare class OrderBenefitsEntity {
|
3
3
|
description: string;
|
4
4
|
id: string;
|
5
|
+
referenceId: string;
|
5
6
|
sponsorshipValues: SponsorshipValueEntity[];
|
6
7
|
target: string;
|
7
8
|
targetId: string;
|
package/dist/package.json
CHANGED
@@ -1,9 +1,11 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.VoucherEntity = exports.VoucherSponsorshipEntity = exports.CampaignRuleEntity = void 0;
|
3
|
+
exports.VoucherCustomerEntity = exports.VoucherEntity = exports.VoucherSponsorshipEntity = exports.CampaignRuleEntity = void 0;
|
4
4
|
var voucher_rule_entity_1 = require("./voucher-rule.entity");
|
5
5
|
Object.defineProperty(exports, "CampaignRuleEntity", { enumerable: true, get: function () { return voucher_rule_entity_1.CampaignRuleEntity; } });
|
6
6
|
var voucher_sponsorship_entity_1 = require("./voucher-sponsorship.entity");
|
7
7
|
Object.defineProperty(exports, "VoucherSponsorshipEntity", { enumerable: true, get: function () { return voucher_sponsorship_entity_1.VoucherSponsorshipEntity; } });
|
8
8
|
var voucher_entity_1 = require("./voucher.entity");
|
9
9
|
Object.defineProperty(exports, "VoucherEntity", { enumerable: true, get: function () { return voucher_entity_1.VoucherEntity; } });
|
10
|
+
var voucher_customer_entity_1 = require("./voucher-customer.entity");
|
11
|
+
Object.defineProperty(exports, "VoucherCustomerEntity", { enumerable: true, get: function () { return voucher_customer_entity_1.VoucherCustomerEntity; } });
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { AddressEntity, CoordsEntity } from '../../general';
|
2
|
+
import { OrderTotalEntity } from '../../order';
|
3
|
+
import { IVoucherCustomer } from '../interfaces';
|
4
|
+
export declare class VoucherCustomerEntity implements IVoucherCustomer {
|
5
|
+
customerId: string;
|
6
|
+
cords: CoordsEntity;
|
7
|
+
address: AddressEntity;
|
8
|
+
phoneNumber: string;
|
9
|
+
meta: string;
|
10
|
+
id: string;
|
11
|
+
itensCount: number;
|
12
|
+
total: OrderTotalEntity;
|
13
|
+
averageAmount: number;
|
14
|
+
createdAt: Date;
|
15
|
+
updatedAt: Date;
|
16
|
+
constructor(data?: Partial<VoucherCustomerEntity>);
|
17
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.VoucherCustomerEntity = void 0;
|
4
|
+
var general_1 = require("../../general");
|
5
|
+
var order_1 = require("../../order");
|
6
|
+
var VoucherCustomerEntity = /** @class */ (function () {
|
7
|
+
function VoucherCustomerEntity(data) {
|
8
|
+
this.customerId = '';
|
9
|
+
this.cords = new general_1.CoordsEntity();
|
10
|
+
this.address = new general_1.AddressEntity();
|
11
|
+
this.phoneNumber = '';
|
12
|
+
this.meta = ''; // JSON meta
|
13
|
+
this.id = '';
|
14
|
+
this.itensCount = 0;
|
15
|
+
this.total = new order_1.OrderTotalEntity();
|
16
|
+
this.averageAmount = 0; // total.subTotal / itensCount
|
17
|
+
this.createdAt = new Date();
|
18
|
+
this.updatedAt = new Date();
|
19
|
+
if (data) {
|
20
|
+
for (var key in data) {
|
21
|
+
if (data.hasOwnProperty(key) && key in this) {
|
22
|
+
this[key] = data[key];
|
23
|
+
}
|
24
|
+
}
|
25
|
+
}
|
26
|
+
}
|
27
|
+
return VoucherCustomerEntity;
|
28
|
+
}());
|
29
|
+
exports.VoucherCustomerEntity = VoucherCustomerEntity;
|