cecon-interfaces 1.1.91 → 1.1.92
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/esm2022/general/entities/address.entity.mjs +4 -4
- package/dist/esm2022/general/interfaces/i-address.mjs +1 -1
- package/dist/esm2022/invoice/entities/invoice-item.entity.mjs +4 -3
- package/dist/esm2022/invoice/entities/invoice.entity.mjs +4 -3
- package/dist/esm2022/invoice/interfaces/i-invoice-item.mjs +1 -1
- package/dist/esm2022/invoice/interfaces/i-invoice.mjs +1 -1
- package/dist/esm2022/order/entities/delivery.entity.mjs +12 -0
- package/dist/esm2022/order/entities/index.mjs +3 -1
- package/dist/esm2022/order/entities/merchant.entity.mjs +20 -0
- package/dist/esm2022/order/entities/order.entity.mjs +10 -3
- package/dist/esm2022/order/enums/delivery-mode.enum.mjs +7 -0
- package/dist/esm2022/order/enums/index.mjs +4 -1
- package/dist/esm2022/order/enums/order-timing.enum.mjs +6 -0
- package/dist/esm2022/order/enums/order-type.enum.mjs +7 -0
- package/dist/esm2022/order/interfaces/i-delivery.mjs +2 -0
- package/dist/esm2022/order/interfaces/i-merchant.mjs +2 -0
- package/dist/esm2022/order/interfaces/i-order.mjs +1 -1
- package/dist/esm2022/order/interfaces/index.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +67 -9
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/general/entities/address.entity.d.ts +4 -3
- package/dist/general/entities/address.entity.js +3 -3
- package/dist/general/interfaces/i-address.d.ts +2 -2
- package/dist/invoice/entities/invoice-item.entity.d.ts +1 -0
- package/dist/invoice/entities/invoice-item.entity.js +3 -2
- package/dist/invoice/entities/invoice.entity.d.ts +2 -0
- package/dist/invoice/entities/invoice.entity.js +3 -2
- package/dist/invoice/interfaces/i-invoice-item.d.ts +1 -0
- package/dist/invoice/interfaces/i-invoice.d.ts +2 -0
- package/dist/order/entities/delivery.entity.d.ts +11 -0
- package/dist/order/entities/delivery.entity.js +19 -0
- package/dist/order/entities/index.d.ts +2 -0
- package/dist/order/entities/index.js +5 -1
- package/dist/order/entities/merchant.entity.d.ts +10 -0
- package/dist/order/entities/merchant.entity.js +24 -0
- package/dist/order/entities/order.entity.d.ts +6 -1
- package/dist/order/entities/order.entity.js +8 -1
- package/dist/order/enums/delivery-mode.enum.d.ts +5 -0
- package/dist/order/enums/delivery-mode.enum.js +9 -0
- package/dist/order/enums/index.d.ts +3 -0
- package/dist/order/enums/index.js +7 -1
- package/dist/order/enums/order-timing.enum.d.ts +4 -0
- package/dist/order/enums/order-timing.enum.js +8 -0
- package/dist/order/enums/order-type.enum.d.ts +5 -0
- package/dist/order/enums/order-type.enum.js +9 -0
- package/dist/order/interfaces/i-delivery.d.ts +10 -0
- package/dist/order/interfaces/i-delivery.js +2 -0
- package/dist/order/interfaces/i-merchant.d.ts +7 -0
- package/dist/order/interfaces/i-merchant.js +2 -0
- package/dist/order/interfaces/i-order.d.ts +6 -1
- package/dist/order/interfaces/index.d.ts +2 -0
- package/dist/package.json +1 -1
- package/package.json +1 -1
@@ -1,12 +1,13 @@
|
|
1
|
+
import { IAddress } from '../interfaces';
|
1
2
|
import { CoordsEntity } from './coords.entity';
|
2
|
-
export declare class AddressEntity {
|
3
|
+
export declare class AddressEntity implements IAddress {
|
3
4
|
city: string;
|
4
|
-
complement
|
5
|
+
complement: string | null;
|
6
|
+
coords: CoordsEntity;
|
5
7
|
neighborhood: string;
|
6
8
|
postalCode: string;
|
7
9
|
state: string;
|
8
10
|
streetName: string;
|
9
11
|
streetNumber: string;
|
10
|
-
coords: CoordsEntity;
|
11
12
|
constructor(data?: Partial<AddressEntity>);
|
12
13
|
}
|
@@ -3,18 +3,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AddressEntity = void 0;
|
4
4
|
var coords_entity_1 = require("./coords.entity");
|
5
5
|
var AddressEntity = /** @class */ (function () {
|
6
|
-
// #endregion Properties (
|
6
|
+
// #endregion Properties (8)
|
7
7
|
// #region Constructors (1)
|
8
8
|
function AddressEntity(data) {
|
9
|
-
// #region Properties (
|
9
|
+
// #region Properties (8)
|
10
10
|
this.city = '';
|
11
11
|
this.complement = '';
|
12
|
+
this.coords = new coords_entity_1.CoordsEntity();
|
12
13
|
this.neighborhood = '';
|
13
14
|
this.postalCode = '';
|
14
15
|
this.state = '';
|
15
16
|
this.streetName = '';
|
16
17
|
this.streetNumber = '';
|
17
|
-
this.coords = new coords_entity_1.CoordsEntity();
|
18
18
|
if (data) {
|
19
19
|
for (var key in data) {
|
20
20
|
if (data.hasOwnProperty(key) && key in this) {
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import { ICoords } from './i-coords';
|
2
2
|
export interface IAddress {
|
3
3
|
city: string;
|
4
|
-
complement
|
4
|
+
complement: string | null;
|
5
5
|
neighborhood: string;
|
6
6
|
postalCode: string;
|
7
7
|
state: string;
|
8
8
|
streetName: string;
|
9
9
|
streetNumber: string;
|
10
|
-
coords
|
10
|
+
coords: ICoords;
|
11
11
|
}
|
@@ -2,11 +2,12 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.InvoiceItemEntity = void 0;
|
4
4
|
var InvoiceItemEntity = /** @class */ (function () {
|
5
|
-
// #endregion Properties (
|
5
|
+
// #endregion Properties (4)
|
6
6
|
// #region Constructors (1)
|
7
7
|
function InvoiceItemEntity(data) {
|
8
|
-
// #region Properties (
|
8
|
+
// #region Properties (4)
|
9
9
|
this.description = '';
|
10
|
+
this.isRefunded = false;
|
10
11
|
this.quantity = 1;
|
11
12
|
this.unitPrice = 0;
|
12
13
|
if (data) {
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { EPaymentType, PaymentProviderEntity } from '../../general';
|
2
|
+
import { IOrder } from '../../order';
|
2
3
|
import { EInvoiceStatus } from '../enums';
|
3
4
|
import { IInvoice } from '../interfaces';
|
4
5
|
import { InvoiceBankSlipEntity } from './invoice-bank-slip.entity';
|
@@ -30,6 +31,7 @@ export declare class InvoiceEntity implements IInvoice {
|
|
30
31
|
notes: string;
|
31
32
|
notificationUrl: string;
|
32
33
|
orderId: string;
|
34
|
+
orders: IOrder[] | null;
|
33
35
|
paidAt: Date | null;
|
34
36
|
partnerId: string;
|
35
37
|
password: string | null;
|
@@ -5,10 +5,10 @@ var general_1 = require("../../general");
|
|
5
5
|
var enums_1 = require("../enums");
|
6
6
|
var invoice_payer_entity_1 = require("./invoice-payer.entity");
|
7
7
|
var InvoiceEntity = /** @class */ (function () {
|
8
|
-
// #endregion Properties (
|
8
|
+
// #endregion Properties (42)
|
9
9
|
// #region Constructors (1)
|
10
10
|
function InvoiceEntity(data) {
|
11
|
-
// #region Properties (
|
11
|
+
// #region Properties (42)
|
12
12
|
this.addition = 0;
|
13
13
|
this.bankSlip = null;
|
14
14
|
this.bankSlipExtraDue = 3;
|
@@ -31,6 +31,7 @@ var InvoiceEntity = /** @class */ (function () {
|
|
31
31
|
this.notes = '';
|
32
32
|
this.notificationUrl = '';
|
33
33
|
this.orderId = '';
|
34
|
+
this.orders = [];
|
34
35
|
this.paidAt = null;
|
35
36
|
this.partnerId = '';
|
36
37
|
this.password = null;
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { EPaymentType, IPaymentProvider } from '../../general';
|
2
|
+
import { IOrder } from '../../order';
|
2
3
|
import { EInvoiceStatus } from '../enums';
|
3
4
|
import { IInvoiceBankSlip } from './i-invoice-bank-slip';
|
4
5
|
import { IInvoiceCreditCard } from './i-invoice-credit-card';
|
@@ -33,6 +34,7 @@ export interface IInvoice {
|
|
33
34
|
customerId: string | null;
|
34
35
|
password: string | null;
|
35
36
|
payer: IInvoicePayer;
|
37
|
+
orders: IOrder[] | null;
|
36
38
|
paymentMethod: EPaymentType;
|
37
39
|
paymentProvider: IPaymentProvider | null;
|
38
40
|
phoneNumberNotification: string | null;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { AddressEntity } from '../../general';
|
2
|
+
import { EOrderDeliveryMode } from '../enums/delivery-mode.enum';
|
3
|
+
import { IOrderDelivery } from '../interfaces';
|
4
|
+
export declare class OrderDeliveryEntity implements IOrderDelivery {
|
5
|
+
deliveredBy: string;
|
6
|
+
deliveryAddress: AddressEntity;
|
7
|
+
deliveryDateTime: string;
|
8
|
+
minimumCartValue: number;
|
9
|
+
mode: EOrderDeliveryMode;
|
10
|
+
preferential: boolean;
|
11
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.OrderDeliveryEntity = void 0;
|
4
|
+
var general_1 = require("../../general");
|
5
|
+
var delivery_mode_enum_1 = require("../enums/delivery-mode.enum");
|
6
|
+
var OrderDeliveryEntity = /** @class */ (function () {
|
7
|
+
function OrderDeliveryEntity() {
|
8
|
+
// #region Properties (6)
|
9
|
+
this.deliveredBy = '';
|
10
|
+
this.deliveryAddress = new general_1.AddressEntity();
|
11
|
+
this.deliveryDateTime = '';
|
12
|
+
this.minimumCartValue = 0;
|
13
|
+
this.mode = delivery_mode_enum_1.EOrderDeliveryMode.DEFAULT;
|
14
|
+
this.preferential = false;
|
15
|
+
// #endregion Properties (6)
|
16
|
+
}
|
17
|
+
return OrderDeliveryEntity;
|
18
|
+
}());
|
19
|
+
exports.OrderDeliveryEntity = OrderDeliveryEntity;
|
@@ -3,9 +3,11 @@ export { OrderBenefitsEntity } from './benefits.entity';
|
|
3
3
|
export { OrderCancellationEntity } from './cancellation.entity';
|
4
4
|
export { OrdersCustomerPhoneEntity } from './customer-phone.entity';
|
5
5
|
export { OrderCustomerEntity } from './customer.entity';
|
6
|
+
export { OrderDeliveryEntity } from './delivery.entity';
|
6
7
|
export { OrderItemCompositionEntity } from './item-composition.entity';
|
7
8
|
export { OrderItemOptionEntity } from './item-option.entity';
|
8
9
|
export { OrderItemEntity } from './item.entity';
|
10
|
+
export { OrderMerchantEntity } from './merchant.entity';
|
9
11
|
export { OrderEntity } from './order.entity';
|
10
12
|
export { OrderPaymentCardEntity } from './payment-card.entity';
|
11
13
|
export { OrderPaymentCashEntity } from './payment-cash.entity';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.OrderTotalEntity = exports.OrderScaleEntity = exports.OrderScaleItemEntity = exports.OrderPaymentEntity = exports.OrderPaymentWalletEntity = exports.OrderPaymentPixEntity = exports.OrderPaymentMethodEntity = exports.OrderPaymentCashEntity = exports.OrderPaymentCardEntity = exports.OrderEntity = exports.OrderItemEntity = exports.OrderItemOptionEntity = exports.OrderItemCompositionEntity = exports.OrderCustomerEntity = exports.OrdersCustomerPhoneEntity = exports.OrderCancellationEntity = exports.OrderBenefitsEntity = exports.OrderAdditionalFeeEntity = void 0;
|
3
|
+
exports.OrderTotalEntity = exports.OrderScaleEntity = exports.OrderScaleItemEntity = exports.OrderPaymentEntity = exports.OrderPaymentWalletEntity = exports.OrderPaymentPixEntity = exports.OrderPaymentMethodEntity = exports.OrderPaymentCashEntity = exports.OrderPaymentCardEntity = exports.OrderEntity = exports.OrderMerchantEntity = exports.OrderItemEntity = exports.OrderItemOptionEntity = exports.OrderItemCompositionEntity = exports.OrderDeliveryEntity = exports.OrderCustomerEntity = exports.OrdersCustomerPhoneEntity = exports.OrderCancellationEntity = exports.OrderBenefitsEntity = exports.OrderAdditionalFeeEntity = void 0;
|
4
4
|
var additional_fees_entity_1 = require("./additional-fees.entity");
|
5
5
|
Object.defineProperty(exports, "OrderAdditionalFeeEntity", { enumerable: true, get: function () { return additional_fees_entity_1.OrderAdditionalFeeEntity; } });
|
6
6
|
var benefits_entity_1 = require("./benefits.entity");
|
@@ -11,12 +11,16 @@ var customer_phone_entity_1 = require("./customer-phone.entity");
|
|
11
11
|
Object.defineProperty(exports, "OrdersCustomerPhoneEntity", { enumerable: true, get: function () { return customer_phone_entity_1.OrdersCustomerPhoneEntity; } });
|
12
12
|
var customer_entity_1 = require("./customer.entity");
|
13
13
|
Object.defineProperty(exports, "OrderCustomerEntity", { enumerable: true, get: function () { return customer_entity_1.OrderCustomerEntity; } });
|
14
|
+
var delivery_entity_1 = require("./delivery.entity");
|
15
|
+
Object.defineProperty(exports, "OrderDeliveryEntity", { enumerable: true, get: function () { return delivery_entity_1.OrderDeliveryEntity; } });
|
14
16
|
var item_composition_entity_1 = require("./item-composition.entity");
|
15
17
|
Object.defineProperty(exports, "OrderItemCompositionEntity", { enumerable: true, get: function () { return item_composition_entity_1.OrderItemCompositionEntity; } });
|
16
18
|
var item_option_entity_1 = require("./item-option.entity");
|
17
19
|
Object.defineProperty(exports, "OrderItemOptionEntity", { enumerable: true, get: function () { return item_option_entity_1.OrderItemOptionEntity; } });
|
18
20
|
var item_entity_1 = require("./item.entity");
|
19
21
|
Object.defineProperty(exports, "OrderItemEntity", { enumerable: true, get: function () { return item_entity_1.OrderItemEntity; } });
|
22
|
+
var merchant_entity_1 = require("./merchant.entity");
|
23
|
+
Object.defineProperty(exports, "OrderMerchantEntity", { enumerable: true, get: function () { return merchant_entity_1.OrderMerchantEntity; } });
|
20
24
|
var order_entity_1 = require("./order.entity");
|
21
25
|
Object.defineProperty(exports, "OrderEntity", { enumerable: true, get: function () { return order_entity_1.OrderEntity; } });
|
22
26
|
var payment_card_entity_1 = require("./payment-card.entity");
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { EDocType } from '../../general';
|
2
|
+
import { IOrderMerchant } from '../interfaces/i-merchant';
|
3
|
+
export declare class OrderMerchantEntity implements IOrderMerchant {
|
4
|
+
description: string | null;
|
5
|
+
doc: string | null;
|
6
|
+
docType: EDocType | null;
|
7
|
+
id: string | null;
|
8
|
+
name: string | null;
|
9
|
+
constructor(data?: Partial<OrderMerchantEntity>);
|
10
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.OrderMerchantEntity = void 0;
|
4
|
+
var OrderMerchantEntity = /** @class */ (function () {
|
5
|
+
// #endregion Properties (5)
|
6
|
+
// #region Constructors (1)
|
7
|
+
function OrderMerchantEntity(data) {
|
8
|
+
// #region Properties (5)
|
9
|
+
this.description = null;
|
10
|
+
this.doc = null;
|
11
|
+
this.docType = null;
|
12
|
+
this.id = null;
|
13
|
+
this.name = null;
|
14
|
+
if (data) {
|
15
|
+
for (var key in data) {
|
16
|
+
if (data.hasOwnProperty(key) && key in this) {
|
17
|
+
this[key] = data[key];
|
18
|
+
}
|
19
|
+
}
|
20
|
+
}
|
21
|
+
}
|
22
|
+
return OrderMerchantEntity;
|
23
|
+
}());
|
24
|
+
exports.OrderMerchantEntity = OrderMerchantEntity;
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { OrderStatusEnum } from '../enums';
|
1
|
+
import { EOrderTiming, OrderStatusEnum } from '../enums';
|
2
|
+
import { EOrderType } from '../enums/order-type.enum';
|
2
3
|
import { IOrder } from '../interfaces';
|
3
4
|
import { OrderAdditionalFeeEntity } from './additional-fees.entity';
|
4
5
|
import { OrderBenefitsEntity } from './benefits.entity';
|
@@ -15,9 +16,13 @@ export declare class OrderEntity implements IOrder {
|
|
15
16
|
containerId: string;
|
16
17
|
createdAt: Date;
|
17
18
|
customer: OrderCustomerEntity;
|
19
|
+
displayId: string;
|
18
20
|
id: string;
|
19
21
|
items: OrderItemEntity[];
|
22
|
+
orderTiming: EOrderTiming;
|
23
|
+
orderType: EOrderType;
|
20
24
|
payments: OrderPaymentEntity;
|
25
|
+
reference: string | null;
|
21
26
|
salesChannel: string;
|
22
27
|
sandbox: boolean;
|
23
28
|
status: OrderStatusEnum;
|
@@ -2,13 +2,16 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.OrderEntity = void 0;
|
4
4
|
var enums_1 = require("../enums");
|
5
|
+
var order_type_enum_1 = require("../enums/order-type.enum");
|
5
6
|
var cancellation_entity_1 = require("./cancellation.entity");
|
6
7
|
var customer_entity_1 = require("./customer.entity");
|
7
8
|
var payment_entity_1 = require("./payment.entity");
|
8
9
|
var total_entity_1 = require("./total.entity");
|
9
10
|
var OrderEntity = /** @class */ (function () {
|
11
|
+
// #endregion Properties (20)
|
12
|
+
// #region Constructors (1)
|
10
13
|
function OrderEntity(data) {
|
11
|
-
// #region Properties (
|
14
|
+
// #region Properties (20)
|
12
15
|
this.additionalFees = [];
|
13
16
|
this.benefits = [];
|
14
17
|
this.cancellation = new cancellation_entity_1.OrderCancellationEntity();
|
@@ -16,9 +19,13 @@ var OrderEntity = /** @class */ (function () {
|
|
16
19
|
this.containerId = '';
|
17
20
|
this.createdAt = new Date();
|
18
21
|
this.customer = new customer_entity_1.OrderCustomerEntity();
|
22
|
+
this.displayId = '';
|
19
23
|
this.id = '';
|
20
24
|
this.items = [];
|
25
|
+
this.orderTiming = enums_1.EOrderTiming.IMMEDIATE;
|
26
|
+
this.orderType = order_type_enum_1.EOrderType.DELIVERY;
|
21
27
|
this.payments = new payment_entity_1.OrderPaymentEntity();
|
28
|
+
this.reference = null;
|
22
29
|
this.salesChannel = '';
|
23
30
|
this.sandbox = false;
|
24
31
|
this.status = enums_1.OrderStatusEnum.PENDING;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.EOrderDeliveryMode = void 0;
|
4
|
+
var EOrderDeliveryMode;
|
5
|
+
(function (EOrderDeliveryMode) {
|
6
|
+
EOrderDeliveryMode["DEFAULT"] = "DEFAULT";
|
7
|
+
EOrderDeliveryMode["ECONOMIC"] = "ECONOMIC";
|
8
|
+
EOrderDeliveryMode["EXPRESS"] = "EXPRESS";
|
9
|
+
})(EOrderDeliveryMode || (exports.EOrderDeliveryMode = EOrderDeliveryMode = {}));
|
@@ -1,6 +1,12 @@
|
|
1
1
|
"use strict";
|
2
2
|
// index.ts
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
-
exports.OrderStatusEnum = void 0;
|
4
|
+
exports.EOrderType = exports.EOrderTiming = exports.OrderStatusEnum = exports.EOrderDeliveryMode = void 0;
|
5
|
+
var delivery_mode_enum_1 = require("./delivery-mode.enum");
|
6
|
+
Object.defineProperty(exports, "EOrderDeliveryMode", { enumerable: true, get: function () { return delivery_mode_enum_1.EOrderDeliveryMode; } });
|
5
7
|
var order_status_enum_1 = require("./order-status.enum");
|
6
8
|
Object.defineProperty(exports, "OrderStatusEnum", { enumerable: true, get: function () { return order_status_enum_1.OrderStatusEnum; } });
|
9
|
+
var order_timing_enum_1 = require("./order-timing.enum");
|
10
|
+
Object.defineProperty(exports, "EOrderTiming", { enumerable: true, get: function () { return order_timing_enum_1.EOrderTiming; } });
|
11
|
+
var order_type_enum_1 = require("./order-type.enum");
|
12
|
+
Object.defineProperty(exports, "EOrderType", { enumerable: true, get: function () { return order_type_enum_1.EOrderType; } });
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.EOrderTiming = void 0;
|
4
|
+
var EOrderTiming;
|
5
|
+
(function (EOrderTiming) {
|
6
|
+
EOrderTiming["IMMEDIATE"] = "IMMEDIATE";
|
7
|
+
EOrderTiming["SCHEDULED"] = "SCHEDULED";
|
8
|
+
})(EOrderTiming || (exports.EOrderTiming = EOrderTiming = {}));
|
@@ -0,0 +1,9 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.EOrderType = void 0;
|
4
|
+
var EOrderType;
|
5
|
+
(function (EOrderType) {
|
6
|
+
EOrderType["DELIVERY"] = "DELIVERY";
|
7
|
+
EOrderType["INDOOR"] = "INDOOR";
|
8
|
+
EOrderType["TAKEOUT"] = "TAKEOUT";
|
9
|
+
})(EOrderType || (exports.EOrderType = EOrderType = {}));
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { IAddress } from '../../general';
|
2
|
+
import { EOrderDeliveryMode } from '../enums/delivery-mode.enum';
|
3
|
+
export interface IOrderDelivery {
|
4
|
+
deliveredBy: string;
|
5
|
+
deliveryAddress: IAddress;
|
6
|
+
deliveryDateTime: string;
|
7
|
+
minimumCartValue: number;
|
8
|
+
mode: EOrderDeliveryMode | null;
|
9
|
+
preferential: boolean;
|
10
|
+
}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { OrderStatusEnum } from '../enums';
|
2
|
+
import { EOrderType } from '../enums/order-type.enum';
|
2
3
|
import { IOrderAdditionalFee } from './i-additional-fee';
|
3
4
|
import { IOrderBenefits } from './i-benefits';
|
4
5
|
import { IOrderCancellation } from './i-cancellation';
|
@@ -14,11 +15,15 @@ export interface IOrder {
|
|
14
15
|
containerId: string;
|
15
16
|
createdAt: Date;
|
16
17
|
customer: IOrderCustomer;
|
18
|
+
displayId: string;
|
19
|
+
orderTiming: string;
|
17
20
|
id: string;
|
18
|
-
sandbox: boolean;
|
19
21
|
items: IOrderItem[];
|
22
|
+
orderType: EOrderType;
|
20
23
|
payments: IOrderPayment | null;
|
21
24
|
salesChannel: string;
|
25
|
+
reference: string | null;
|
26
|
+
sandbox: boolean;
|
22
27
|
status: OrderStatusEnum;
|
23
28
|
total: IOrderTotal;
|
24
29
|
updatedAt: Date;
|
@@ -3,9 +3,11 @@ export { IOrderBenefits } from './i-benefits';
|
|
3
3
|
export { IOrderCancellation } from './i-cancellation';
|
4
4
|
export { IOrderCustomer } from './i-customer';
|
5
5
|
export { IOrdersCustomerPhone } from './i-customer-phone';
|
6
|
+
export { IOrderDelivery } from './i-delivery';
|
6
7
|
export { IOrderItem } from './i-item';
|
7
8
|
export { IOrderItemComposition } from './i-item-composition';
|
8
9
|
export { IOrderItemOption } from './i-item-option';
|
10
|
+
export { IOrderMerchant } from './i-merchant';
|
9
11
|
export { IOrder } from './i-order';
|
10
12
|
export { IOrderPayment } from './i-payment';
|
11
13
|
export { IOrderPaymentCard } from './i-payment-card';
|
package/dist/package.json
CHANGED