cecon-interfaces 1.4.30 → 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 +3 -3
- package/dist/esm2022/order/interfaces/i-benefits.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +117 -118
- 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 +4 -3
- package/dist/order/entities/benefits.entity.js +2 -2
- package/dist/order/interfaces/i-benefits.d.ts +4 -4
- package/dist/package.json +1 -1
- 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,11 +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;
|
5
7
|
referenceId: string;
|
6
8
|
sponsorshipValues: SponsorshipValueEntity[];
|
7
|
-
target: string;
|
8
|
-
targetId: string;
|
9
9
|
value: number;
|
10
|
+
target: EVoucherTargetTypes;
|
10
11
|
constructor(data?: Partial<OrderBenefitsEntity>);
|
11
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)
|
@@ -10,9 +11,8 @@ var OrderBenefitsEntity = /** @class */ (function () {
|
|
10
11
|
this.id = '';
|
11
12
|
this.referenceId = '';
|
12
13
|
this.sponsorshipValues = [];
|
13
|
-
this.target = '';
|
14
|
-
this.targetId = '';
|
15
14
|
this.value = 0;
|
15
|
+
this.target = voucher_1.EVoucherTargetTypes.CART;
|
16
16
|
if (data) {
|
17
17
|
for (var key in data) {
|
18
18
|
if (data.hasOwnProperty(key) && key in this) {
|
@@ -1,10 +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
|
-
referenceId: string;
|
6
5
|
sponsorshipValues: ISponsorshipValue[];
|
7
|
-
target:
|
8
|
-
targetId: string;
|
6
|
+
target: EVoucherTargetTypes;
|
9
7
|
value: number;
|
8
|
+
description: string;
|
9
|
+
referenceId: string;
|
10
10
|
}
|
package/dist/package.json
CHANGED
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
|
-
}
|