cecon-interfaces 1.4.29 → 1.4.31
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/esm2022/mobyo/mobyo-api/interfaces/i-order-v3.mjs +1 -1
- package/dist/esm2022/mobyo/mobyo-api/interfaces/index.mjs +1 -1
- package/dist/esm2022/order/entities/benefits.entity.mjs +4 -3
- 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 +119 -96
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/mobyo/mobyo-api/interfaces/i-order-v3.d.ts +2 -2
- package/dist/mobyo/mobyo-api/interfaces/index.d.ts +0 -1
- package/dist/order/entities/benefits.entity.d.ts +5 -3
- package/dist/order/entities/benefits.entity.js +3 -2
- package/dist/order/interfaces/i-benefits.d.ts +4 -3
- 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
- package/dist/esm2022/mobyo/mobyo-api/interfaces/i-order-benefits-v3.mjs +0 -2
- package/dist/mobyo/mobyo-api/interfaces/i-order-benefits-v3.d.ts +0 -10
- package/dist/mobyo/mobyo-api/interfaces/i-order-benefits-v3.js +0 -2
@@ -1,10 +1,10 @@
|
|
1
|
+
import { IOrderBenefits } from '../../../order';
|
1
2
|
import { EOrderStatus } from '../../../order/enums/order-status.enum';
|
2
3
|
import { EEngineType } from '../enum/engine-type.enum';
|
3
4
|
import { EOrderV3SalesChannel } from '../enum/order-v3-sales-channel.enum';
|
4
5
|
import { EOrderV3Timing } from '../enum/order-v3-timing.enum';
|
5
6
|
import { EOrderV3Type } from '../enum/order-v3-type.enum';
|
6
7
|
import { IOrderActionV3 } from './i-order-action-v3';
|
7
|
-
import { IOrderBenefitsV3 } from './i-order-benefits-v3';
|
8
8
|
import { IOrderCancellationV3 } from './i-order-cancellation-v3';
|
9
9
|
import { IOrderCustomerV3 } from './i-order-customer-v3';
|
10
10
|
import { IOrderDelivererV3 } from './i-order-deliverer-v3';
|
@@ -19,7 +19,7 @@ import { IOrderTakeoutV3 } from './i-order-takeout-v3';
|
|
19
19
|
import { IOrderTotalV3 } from './i-order-total-v3';
|
20
20
|
export interface IOrderV3 {
|
21
21
|
actions: IOrderActionV3[];
|
22
|
-
benefits:
|
22
|
+
benefits: IOrderBenefits[];
|
23
23
|
cancellation: IOrderCancellationV3;
|
24
24
|
companyId: string;
|
25
25
|
containerId: string;
|
@@ -71,7 +71,6 @@ export { IMerchant as MobyoIMerchant } from './i-merchant';
|
|
71
71
|
export { IMerchantAddress as MobyoIMerchantAddress } from './i-merchant-address';
|
72
72
|
export { IOrderActionV3 as MobyoIOrderActionV3 } from './i-order-action-v3';
|
73
73
|
export { IOrderAditionalFeeV3 as MobyoIOrderAditionalFeeV3 } from './i-order-additional-fees-v3';
|
74
|
-
export { IOrderBenefitsV3 as MobyoIOrderBenefitsV3, ISponsorshipValues } from './i-order-benefits-v3';
|
75
74
|
export { IOrderCancellationV3 as MobyoIOrderCancellationV3 } from './i-order-cancellation-v3';
|
76
75
|
export { IOrderCustomerV3 as MobyoIOrderCustomerV3, IOrdersCustomerPhone as MobyoIOrdersCustomerPhone } from './i-order-customer-v3';
|
77
76
|
export { IOrderDelivererV3 as MobyoIOrderDelivererV3 } from './i-order-deliverer-v3';
|
@@ -1,10 +1,12 @@
|
|
1
1
|
import { SponsorshipValueEntity } from '../../general/entities/sponsorship-value.entity';
|
2
|
-
|
2
|
+
import { EVoucherTargetTypes } from '../../voucher';
|
3
|
+
import { IOrderBenefits } from '../interfaces';
|
4
|
+
export declare class OrderBenefitsEntity implements IOrderBenefits {
|
3
5
|
description: string;
|
4
6
|
id: string;
|
7
|
+
referenceId: string;
|
5
8
|
sponsorshipValues: SponsorshipValueEntity[];
|
6
|
-
target: string;
|
7
|
-
targetId: string;
|
8
9
|
value: number;
|
10
|
+
target: EVoucherTargetTypes;
|
9
11
|
constructor(data?: Partial<OrderBenefitsEntity>);
|
10
12
|
}
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.OrderBenefitsEntity = void 0;
|
4
|
+
var voucher_1 = require("../../voucher");
|
4
5
|
var OrderBenefitsEntity = /** @class */ (function () {
|
5
6
|
// #endregion Properties (6)
|
6
7
|
// #region Constructors (1)
|
@@ -8,10 +9,10 @@ var OrderBenefitsEntity = /** @class */ (function () {
|
|
8
9
|
// #region Properties (6)
|
9
10
|
this.description = '';
|
10
11
|
this.id = '';
|
12
|
+
this.referenceId = '';
|
11
13
|
this.sponsorshipValues = [];
|
12
|
-
this.target = '';
|
13
|
-
this.targetId = '';
|
14
14
|
this.value = 0;
|
15
|
+
this.target = voucher_1.EVoucherTargetTypes.CART;
|
15
16
|
if (data) {
|
16
17
|
for (var key in data) {
|
17
18
|
if (data.hasOwnProperty(key) && key in this) {
|
@@ -1,9 +1,10 @@
|
|
1
1
|
import { ISponsorshipValue } from '../../general/interfaces';
|
2
|
+
import { EVoucherTargetTypes } from '../../voucher';
|
2
3
|
export interface IOrderBenefits {
|
3
|
-
description: string;
|
4
4
|
id: string;
|
5
5
|
sponsorshipValues: ISponsorshipValue[];
|
6
|
-
target:
|
7
|
-
targetId: string;
|
6
|
+
target: EVoucherTargetTypes;
|
8
7
|
value: number;
|
8
|
+
description: string;
|
9
|
+
referenceId: string;
|
9
10
|
}
|
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;
|
package/package.json
CHANGED
@@ -1,2 +0,0 @@
|
|
1
|
-
export {};
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS1vcmRlci1iZW5lZml0cy12My5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9tb2J5by9tb2J5by1hcGkvaW50ZXJmYWNlcy9pLW9yZGVyLWJlbmVmaXRzLXYzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBFVm91Y2hlclRhcmdldFR5cGVzIH0gZnJvbSAnLi4vLi4vLi4vdm91Y2hlcic7XHJcblxyXG5leHBvcnQgaW50ZXJmYWNlIElTcG9uc29yc2hpcFZhbHVlcyB7XHJcbiAgLy8gI3JlZ2lvbiBQcm9wZXJ0aWVzICgyKVxyXG5cclxuICBuYW1lOiBzdHJpbmc7XHJcblxyXG4gIHZhbHVlOiBudW1iZXI7XHJcblxyXG4gIC8vICNlbmRyZWdpb24gUHJvcGVydGllcyAoMilcclxufVxyXG5leHBvcnQgaW50ZXJmYWNlIElPcmRlckJlbmVmaXRzVjMge1xyXG4gIC8vICNyZWdpb24gUHJvcGVydGllcyAoNilcclxuICBzcG9uc29yc2hpcFZhbHVlcz86IElTcG9uc29yc2hpcFZhbHVlc1tdO1xyXG5cclxuICB0YXJnZXQ6IEVWb3VjaGVyVGFyZ2V0VHlwZXM7XHJcblxyXG4gIHZhbHVlOiBudW1iZXI7XHJcblxyXG4gIC8vICNlbmRyZWdpb24gUHJvcGVydGllcyAoNilcclxufVxyXG4iXX0=
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import { EVoucherTargetTypes } from '../../../voucher';
|
2
|
-
export interface ISponsorshipValues {
|
3
|
-
name: string;
|
4
|
-
value: number;
|
5
|
-
}
|
6
|
-
export interface IOrderBenefitsV3 {
|
7
|
-
sponsorshipValues?: ISponsorshipValues[];
|
8
|
-
target: EVoucherTargetTypes;
|
9
|
-
value: number;
|
10
|
-
}
|