cecon-interfaces 1.0.15 → 1.0.16
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/company/entities/company.entity.d.ts +38 -0
- package/dist/company/entities/company.entity.js +50 -0
- package/dist/company/entities/index.d.ts +1 -0
- package/dist/company/entities/index.js +6 -0
- package/dist/company/enums/index.d.ts +2 -0
- package/dist/company/enums/index.js +8 -0
- package/dist/company/index.d.ts +3 -3
- package/dist/company/index.js +17 -6
- package/dist/company/interfaces/index.d.ts +1 -0
- package/dist/device/entities/device.entity.d.ts +19 -0
- package/dist/device/entities/device.entity.js +35 -0
- package/dist/device/entities/index.d.ts +3 -0
- package/dist/device/entities/index.js +10 -0
- package/dist/device/entities/metadata.entity.d.ts +6 -0
- package/dist/device/entities/metadata.entity.js +21 -0
- package/dist/device/entities/natigo.entity.d.ts +8 -0
- package/dist/device/entities/natigo.entity.js +23 -0
- package/dist/device/enums/index.d.ts +1 -0
- package/dist/device/enums/index.js +6 -0
- package/dist/device/index.d.ts +3 -4
- package/dist/device/index.js +17 -4
- package/dist/device/interfaces/index.d.ts +3 -0
- package/dist/device/interfaces/index.js +3 -0
- package/dist/esm2022/company/entities/company.entity.mjs +46 -0
- package/dist/esm2022/company/entities/index.mjs +3 -0
- package/dist/esm2022/company/enums/index.mjs +4 -0
- package/dist/esm2022/company/index.mjs +4 -4
- package/dist/esm2022/company/interfaces/index.mjs +2 -0
- package/dist/esm2022/device/entities/device.entity.mjs +31 -0
- package/dist/esm2022/device/entities/index.mjs +5 -0
- package/dist/esm2022/device/entities/metadata.entity.mjs +17 -0
- package/dist/esm2022/device/entities/natigo.entity.mjs +19 -0
- package/dist/esm2022/device/enums/index.mjs +3 -0
- package/dist/esm2022/device/index.mjs +4 -3
- package/dist/esm2022/device/interfaces/index.mjs +3 -0
- package/dist/esm2022/general/entities/address.entity.mjs +24 -0
- package/dist/esm2022/general/entities/coords.entity.mjs +14 -0
- package/dist/esm2022/general/entities/delivery-area.entity.mjs +23 -0
- package/dist/esm2022/general/entities/dellivery-area-fixed.entity.mjs +20 -0
- package/dist/esm2022/general/entities/index.mjs +13 -0
- package/dist/esm2022/general/entities/messager-channel.entity.mjs +18 -0
- package/dist/esm2022/general/entities/mobyo-apiconfig.entity.mjs +21 -0
- package/dist/esm2022/general/entities/origin.entity.mjs +22 -0
- package/dist/esm2022/general/entities/payment-method.entity.mjs +31 -0
- package/dist/esm2022/general/entities/payment-provider-agent.entity.mjs +17 -0
- package/dist/esm2022/general/entities/payment-provider.entity.mjs +29 -0
- package/dist/esm2022/general/entities/payment-token-data.entity.mjs +22 -0
- package/dist/esm2022/general/entities/payment-token.entity.mjs +21 -0
- package/dist/esm2022/general/enums/index.mjs +7 -0
- package/dist/esm2022/general/enums/payment-type.enum.mjs +2 -1
- package/dist/esm2022/general/index.mjs +4 -7
- package/dist/esm2022/general/interfaces/i-address.mjs +1 -1
- package/dist/esm2022/general/interfaces/{i-mobyo-server-api.mjs → i-mobyo-api-config.mjs} +1 -1
- package/dist/esm2022/general/interfaces/i-payment-provider.mjs +1 -1
- package/dist/esm2022/general/interfaces/i-payment-token-data.mjs +3 -0
- package/dist/esm2022/general/interfaces/i-payment-token.mjs +3 -0
- package/dist/esm2022/general/interfaces/index.mjs +3 -0
- package/dist/esm2022/index.mjs +2 -2
- package/dist/esm2022/order/entities/index.mjs +20 -0
- package/dist/esm2022/order/entities/order-additional-fees.entity.mjs +17 -0
- package/dist/esm2022/order/entities/order-benefits-sponsor-ship.entity.mjs +17 -0
- package/dist/esm2022/order/entities/order-benefits.entity.mjs +21 -0
- package/dist/esm2022/order/entities/order-cancellation.entity.mjs +18 -0
- package/dist/esm2022/order/entities/order-customer-phone.entity.mjs +19 -0
- package/dist/esm2022/order/entities/order-customer.entity.mjs +23 -0
- package/dist/esm2022/order/entities/order-item-composition.entity.mjs +21 -0
- package/dist/esm2022/order/entities/order-item-option.entity.mjs +30 -0
- package/dist/esm2022/order/entities/order-item.entity.mjs +36 -0
- package/dist/esm2022/order/entities/order-payment-card.entity.mjs +16 -0
- package/dist/esm2022/order/entities/order-payment-cash.entity.mjs +16 -0
- package/dist/esm2022/order/entities/order-payment-method.entity.mjs +27 -0
- package/dist/esm2022/order/entities/order-payment-pix.entity.mjs +17 -0
- package/dist/esm2022/order/entities/order-payment-wallet.entity.mjs +16 -0
- package/dist/esm2022/order/entities/order-payment.entity.mjs +18 -0
- package/dist/esm2022/order/entities/order-scale-item.entity.mjs +17 -0
- package/dist/esm2022/order/entities/order-scale-price.entity.mjs +17 -0
- package/dist/esm2022/order/entities/order-total.entity.mjs +20 -0
- package/dist/esm2022/order/entities/order.entity.mjs +34 -0
- package/dist/esm2022/order/enums/index.mjs +3 -0
- package/dist/esm2022/{general/enums/order-satus.enum.mjs → order/enums/order-status.enum.mjs} +1 -1
- package/dist/esm2022/order/index.mjs +4 -0
- package/dist/esm2022/order/interfaces/i-order-additional-fee.mjs +2 -0
- package/dist/esm2022/order/interfaces/i-order-benefits-sponsor-ship.mjs +2 -0
- package/dist/esm2022/order/interfaces/i-order-benefits.mjs +2 -0
- package/dist/esm2022/order/interfaces/i-order-cancellation.mjs +2 -0
- package/dist/esm2022/order/interfaces/i-order-customer-phone.mjs +2 -0
- package/dist/esm2022/order/interfaces/i-order-customer.mjs +2 -0
- package/dist/esm2022/order/interfaces/i-order-item-composition.mjs +2 -0
- package/dist/esm2022/order/interfaces/i-order-item-option.mjs +2 -0
- package/dist/esm2022/order/interfaces/i-order-item.mjs +2 -0
- package/dist/esm2022/order/interfaces/i-order-payment-card.mjs +2 -0
- package/dist/esm2022/order/interfaces/i-order-payment-cash.mjs +2 -0
- package/dist/esm2022/order/interfaces/i-order-payment-method.mjs +2 -0
- package/dist/esm2022/order/interfaces/i-order-payment-pix.mjs +2 -0
- package/dist/esm2022/order/interfaces/i-order-payment-wallet.mjs +2 -0
- package/dist/esm2022/order/interfaces/i-order-payment.mjs +2 -0
- package/dist/esm2022/order/interfaces/i-order-scale-item.mjs +2 -0
- package/dist/esm2022/order/interfaces/i-order-scale-price.mjs +2 -0
- package/dist/esm2022/order/interfaces/i-order-total.mjs +2 -0
- package/dist/esm2022/order/interfaces/i-order.mjs +2 -0
- package/dist/esm2022/order/interfaces/index.mjs +2 -0
- package/dist/esm2022/purchases/entities/app-info.entity.mjs +18 -0
- package/dist/esm2022/purchases/entities/index.mjs +3 -0
- package/dist/esm2022/purchases/entities/purchase.entity.mjs +23 -0
- package/dist/esm2022/purchases/index.mjs +3 -3
- package/dist/esm2022/purchases/interfaces/i-purchase.mjs +1 -1
- package/dist/esm2022/purchases/interfaces/index.mjs +2 -0
- package/dist/fesm2022/cecon-interfaces.mjs +876 -31
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/general/entities/address.entity.d.ts +12 -0
- package/dist/general/entities/address.entity.js +28 -0
- package/dist/general/entities/coords.entity.d.ts +5 -0
- package/dist/general/entities/coords.entity.js +18 -0
- package/dist/general/entities/delivery-area.entity.d.ts +12 -0
- package/dist/general/entities/delivery-area.entity.js +27 -0
- package/dist/general/entities/dellivery-area-fixed.entity.d.ts +8 -0
- package/dist/general/entities/dellivery-area-fixed.entity.js +24 -0
- package/dist/general/entities/index.d.ts +12 -0
- package/dist/general/entities/index.js +27 -0
- package/dist/general/entities/messager-channel.entity.d.ts +6 -0
- package/dist/general/entities/messager-channel.entity.js +22 -0
- package/dist/general/entities/mobyo-apiconfig.entity.d.ts +9 -0
- package/dist/general/entities/mobyo-apiconfig.entity.js +25 -0
- package/dist/general/entities/origin.entity.d.ts +10 -0
- package/dist/general/entities/origin.entity.js +26 -0
- package/dist/general/entities/payment-method.entity.d.ts +19 -0
- package/dist/general/entities/payment-method.entity.js +35 -0
- package/dist/general/entities/payment-provider-agent.entity.d.ts +5 -0
- package/dist/general/entities/payment-provider-agent.entity.js +21 -0
- package/dist/general/entities/payment-provider.entity.d.ts +18 -0
- package/dist/general/entities/payment-provider.entity.js +33 -0
- package/dist/general/entities/payment-token-data.entity.d.ts +10 -0
- package/dist/general/entities/payment-token-data.entity.js +26 -0
- package/dist/general/entities/payment-token.entity.d.ts +9 -0
- package/dist/general/entities/payment-token.entity.js +25 -0
- package/dist/general/enums/index.d.ts +6 -0
- package/dist/general/enums/index.js +15 -0
- package/dist/general/enums/payment-type.enum.d.ts +1 -0
- package/dist/general/enums/payment-type.enum.js +1 -0
- package/dist/general/index.d.ts +3 -17
- package/dist/general/index.js +17 -12
- package/dist/general/interfaces/i-address.d.ts +2 -0
- package/dist/general/interfaces/i-payment-provider.d.ts +1 -1
- package/dist/general/interfaces/{i-payment-tokens.d.ts → i-payment-token.d.ts} +1 -1
- package/dist/general/interfaces/index.d.ts +12 -0
- package/dist/general/interfaces/index.js +3 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/order/entities/index.d.ts +19 -0
- package/dist/order/entities/index.js +41 -0
- package/dist/order/entities/order-additional-fees.entity.d.ts +5 -0
- package/dist/order/entities/order-additional-fees.entity.js +21 -0
- package/dist/order/entities/order-benefits-sponsor-ship.entity.d.ts +5 -0
- package/dist/order/entities/order-benefits-sponsor-ship.entity.js +21 -0
- package/dist/order/entities/order-benefits.entity.d.ts +10 -0
- package/dist/order/entities/order-benefits.entity.js +25 -0
- package/dist/order/entities/order-cancellation.entity.d.ts +6 -0
- package/dist/order/entities/order-cancellation.entity.js +22 -0
- package/dist/order/entities/order-customer-phone.entity.d.ts +7 -0
- package/dist/order/entities/order-customer-phone.entity.js +23 -0
- package/dist/order/entities/order-customer.entity.d.ts +11 -0
- package/dist/order/entities/order-customer.entity.js +27 -0
- package/dist/order/entities/order-item-composition.entity.d.ts +9 -0
- package/dist/order/entities/order-item-composition.entity.js +25 -0
- package/dist/order/entities/order-item-option.entity.d.ts +18 -0
- package/dist/order/entities/order-item-option.entity.js +34 -0
- package/dist/order/entities/order-item.entity.d.ts +26 -0
- package/dist/order/entities/order-item.entity.js +40 -0
- package/dist/order/entities/order-payment-card.entity.d.ts +4 -0
- package/dist/order/entities/order-payment-card.entity.js +20 -0
- package/dist/order/entities/order-payment-cash.entity.d.ts +4 -0
- package/dist/order/entities/order-payment-cash.entity.js +20 -0
- package/dist/order/entities/order-payment-method.entity.d.ts +19 -0
- package/dist/order/entities/order-payment-method.entity.js +31 -0
- package/dist/order/entities/order-payment-pix.entity.d.ts +5 -0
- package/dist/order/entities/order-payment-pix.entity.js +21 -0
- package/dist/order/entities/order-payment-wallet.entity.d.ts +4 -0
- package/dist/order/entities/order-payment-wallet.entity.js +20 -0
- package/dist/order/entities/order-payment.entity.d.ts +7 -0
- package/dist/order/entities/order-payment.entity.js +22 -0
- package/dist/order/entities/order-scale-item.entity.d.ts +5 -0
- package/dist/order/entities/order-scale-item.entity.js +21 -0
- package/dist/order/entities/order-scale-price.entity.d.ts +6 -0
- package/dist/order/entities/order-scale-price.entity.js +21 -0
- package/dist/order/entities/order-total.entity.d.ts +8 -0
- package/dist/order/entities/order-total.entity.js +24 -0
- package/dist/order/entities/order.entity.d.ts +27 -0
- package/dist/order/entities/order.entity.js +38 -0
- package/dist/order/enums/index.d.ts +1 -0
- package/dist/order/enums/index.js +6 -0
- package/dist/order/index.d.ts +3 -0
- package/dist/order/index.js +19 -0
- package/dist/order/interfaces/i-order-additional-fee.d.ts +4 -0
- package/dist/order/interfaces/i-order-additional-fee.js +2 -0
- package/dist/order/interfaces/i-order-benefits-sponsor-ship.d.ts +4 -0
- package/dist/order/interfaces/i-order-benefits-sponsor-ship.js +2 -0
- package/dist/order/interfaces/i-order-benefits.d.ts +9 -0
- package/dist/order/interfaces/i-order-benefits.js +2 -0
- package/dist/order/interfaces/i-order-cancellation.d.ts +5 -0
- package/dist/order/interfaces/i-order-cancellation.js +2 -0
- package/dist/order/interfaces/i-order-customer-phone.d.ts +6 -0
- package/dist/order/interfaces/i-order-customer-phone.js +2 -0
- package/dist/order/interfaces/i-order-customer.d.ts +10 -0
- package/dist/order/interfaces/i-order-customer.js +2 -0
- package/dist/order/interfaces/i-order-item-composition.d.ts +8 -0
- package/dist/order/interfaces/i-order-item-composition.js +2 -0
- package/dist/order/interfaces/i-order-item-option.d.ts +17 -0
- package/dist/order/interfaces/i-order-item-option.js +2 -0
- package/dist/order/interfaces/i-order-item.d.ts +25 -0
- package/dist/order/interfaces/i-order-item.js +2 -0
- package/dist/order/interfaces/i-order-payment-card.d.ts +3 -0
- package/dist/order/interfaces/i-order-payment-card.js +2 -0
- package/dist/order/interfaces/i-order-payment-cash.d.ts +3 -0
- package/dist/order/interfaces/i-order-payment-cash.js +2 -0
- package/dist/order/interfaces/i-order-payment-method.d.ts +18 -0
- package/dist/order/interfaces/i-order-payment-method.js +2 -0
- package/dist/order/interfaces/i-order-payment-pix.d.ts +4 -0
- package/dist/order/interfaces/i-order-payment-pix.js +2 -0
- package/dist/order/interfaces/i-order-payment-wallet.d.ts +3 -0
- package/dist/order/interfaces/i-order-payment-wallet.js +2 -0
- package/dist/order/interfaces/i-order-payment.d.ts +6 -0
- package/dist/order/interfaces/i-order-payment.js +2 -0
- package/dist/order/interfaces/i-order-scale-item.d.ts +4 -0
- package/dist/order/interfaces/i-order-scale-item.js +2 -0
- package/dist/order/interfaces/i-order-scale-price.d.ts +5 -0
- package/dist/order/interfaces/i-order-scale-price.js +2 -0
- package/dist/order/interfaces/i-order-total.d.ts +12 -0
- package/dist/order/interfaces/i-order-total.js +2 -0
- package/dist/order/interfaces/i-order.d.ts +26 -0
- package/dist/order/interfaces/i-order.js +2 -0
- package/dist/order/interfaces/index.d.ts +19 -0
- package/dist/order/interfaces/index.js +2 -0
- package/dist/package.json +2 -4
- package/dist/purchases/entities/app-info.entity.d.ts +6 -0
- package/dist/purchases/entities/app-info.entity.js +22 -0
- package/dist/purchases/entities/index.d.ts +2 -0
- package/dist/purchases/entities/index.js +7 -0
- package/dist/purchases/entities/purchase.entity.d.ts +10 -0
- package/dist/purchases/entities/purchase.entity.js +44 -0
- package/dist/purchases/index.d.ts +2 -3
- package/dist/purchases/index.js +16 -1
- package/dist/purchases/interfaces/i-purchase.d.ts +7 -15
- package/dist/purchases/interfaces/index.d.ts +2 -0
- package/dist/purchases/interfaces/index.js +2 -0
- package/package.json +2 -4
- package/tsconfig.json +3 -3
- package/dist/esm2022/general/interfaces/i-payment-tokens-data.mjs +0 -3
- package/dist/esm2022/general/interfaces/i-payment-tokens.mjs +0 -3
- package/dist/esm2022/purchases/interfaces/i-payment-details.mjs +0 -2
- package/dist/purchases/interfaces/i-payment-details.d.ts +0 -17
- /package/dist/{general/interfaces/i-mobyo-server-api.js → company/interfaces/index.js} +0 -0
- /package/dist/general/interfaces/{i-mobyo-server-api.d.ts → i-mobyo-api-config.d.ts} +0 -0
- /package/dist/{purchases/interfaces/i-payment-details.js → general/interfaces/i-mobyo-api-config.js} +0 -0
- /package/dist/general/interfaces/{i-payment-tokens-data.d.ts → i-payment-token-data.d.ts} +0 -0
- /package/dist/general/interfaces/{i-payment-tokens-data.js → i-payment-token-data.js} +0 -0
- /package/dist/general/interfaces/{i-payment-tokens.js → i-payment-token.js} +0 -0
- /package/dist/{general/enums/order-satus.enum.d.ts → order/enums/order-status.enum.d.ts} +0 -0
- /package/dist/{general/enums/order-satus.enum.js → order/enums/order-status.enum.js} +0 -0
@@ -0,0 +1,40 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.OrderItemEntity = void 0;
|
4
|
+
var order_scale_price_entity_1 = require("./order-scale-price.entity");
|
5
|
+
var OrderItemEntity = /** @class */ (function () {
|
6
|
+
// #endregion Properties (20)
|
7
|
+
// #region Constructors (1)
|
8
|
+
function OrderItemEntity(data) {
|
9
|
+
// #region Properties (20)
|
10
|
+
this.composition = [];
|
11
|
+
this.ean = '';
|
12
|
+
this.externalCode = '';
|
13
|
+
this.id = '';
|
14
|
+
this.index = 0;
|
15
|
+
this.name = '';
|
16
|
+
this.observations = '';
|
17
|
+
this.options = [];
|
18
|
+
this.optionsPrice = 0;
|
19
|
+
this.picture = '';
|
20
|
+
this.preparationPlaceId = '';
|
21
|
+
this.price = 0;
|
22
|
+
this.productId = 0;
|
23
|
+
this.quantity = 0;
|
24
|
+
this.scalePrices = new order_scale_price_entity_1.OrderScaleEntity();
|
25
|
+
this.skill = '';
|
26
|
+
this.totalPrice = 0;
|
27
|
+
this.unit = '';
|
28
|
+
this.unitPrice = 0;
|
29
|
+
this.weight = 0;
|
30
|
+
if (data) {
|
31
|
+
for (var key in data) {
|
32
|
+
if (data.hasOwnProperty(key) && key in this) {
|
33
|
+
this[key] = data[key];
|
34
|
+
}
|
35
|
+
}
|
36
|
+
}
|
37
|
+
}
|
38
|
+
return OrderItemEntity;
|
39
|
+
}());
|
40
|
+
exports.OrderItemEntity = OrderItemEntity;
|
@@ -0,0 +1,20 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.OrderPaymentCardEntity = void 0;
|
4
|
+
var OrderPaymentCardEntity = /** @class */ (function () {
|
5
|
+
// #endregion Properties (1)
|
6
|
+
// #region Constructors (1)
|
7
|
+
function OrderPaymentCardEntity(data) {
|
8
|
+
// #region Properties (1)
|
9
|
+
this.brand = '';
|
10
|
+
if (data) {
|
11
|
+
for (var key in data) {
|
12
|
+
if (data.hasOwnProperty(key) && key in this) {
|
13
|
+
this[key] = data[key];
|
14
|
+
}
|
15
|
+
}
|
16
|
+
}
|
17
|
+
}
|
18
|
+
return OrderPaymentCardEntity;
|
19
|
+
}());
|
20
|
+
exports.OrderPaymentCardEntity = OrderPaymentCardEntity;
|
@@ -0,0 +1,20 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.OrderPaymentCashEntity = void 0;
|
4
|
+
var OrderPaymentCashEntity = /** @class */ (function () {
|
5
|
+
// #endregion Properties (1)
|
6
|
+
// #region Constructors (1)
|
7
|
+
function OrderPaymentCashEntity(data) {
|
8
|
+
// #region Properties (1)
|
9
|
+
this.changeFor = 0;
|
10
|
+
if (data) {
|
11
|
+
for (var key in data) {
|
12
|
+
if (data.hasOwnProperty(key) && key in this) {
|
13
|
+
this[key] = data[key];
|
14
|
+
}
|
15
|
+
}
|
16
|
+
}
|
17
|
+
}
|
18
|
+
return OrderPaymentCashEntity;
|
19
|
+
}());
|
20
|
+
exports.OrderPaymentCashEntity = OrderPaymentCashEntity;
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { PaymentTypeEnum } from '../../general';
|
2
|
+
import { OrderPaymentCardEntity } from './order-payment-card.entity';
|
3
|
+
import { OrderPaymentCashEntity } from './order-payment-cash.entity';
|
4
|
+
import { OrderPaymentPixEntity } from './order-payment-pix.entity';
|
5
|
+
import { OrderPaymentWalletEntity } from './order-payment-wallet.entity';
|
6
|
+
export declare class OrderPaymentMethodEntity {
|
7
|
+
card?: OrderPaymentCardEntity | null;
|
8
|
+
cash?: OrderPaymentCashEntity | null;
|
9
|
+
code: string;
|
10
|
+
currency: string;
|
11
|
+
id: string;
|
12
|
+
method: PaymentTypeEnum;
|
13
|
+
pix?: OrderPaymentPixEntity | null;
|
14
|
+
prepaid: boolean;
|
15
|
+
type: 'ONLINE' | 'OFFLINE';
|
16
|
+
value: number;
|
17
|
+
wallet?: OrderPaymentWalletEntity | null;
|
18
|
+
constructor(data?: Partial<OrderPaymentMethodEntity>);
|
19
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.OrderPaymentMethodEntity = void 0;
|
4
|
+
var general_1 = require("../../general");
|
5
|
+
var OrderPaymentMethodEntity = /** @class */ (function () {
|
6
|
+
// #endregion Properties (11)
|
7
|
+
// #region Constructors (1)
|
8
|
+
function OrderPaymentMethodEntity(data) {
|
9
|
+
// #region Properties (11)
|
10
|
+
this.card = null;
|
11
|
+
this.cash = null;
|
12
|
+
this.code = '';
|
13
|
+
this.currency = 'BRL';
|
14
|
+
this.id = '';
|
15
|
+
this.method = general_1.PaymentTypeEnum.CASH;
|
16
|
+
this.pix = null;
|
17
|
+
this.prepaid = false;
|
18
|
+
this.type = 'OFFLINE';
|
19
|
+
this.value = 0;
|
20
|
+
this.wallet = null;
|
21
|
+
if (data) {
|
22
|
+
for (var key in data) {
|
23
|
+
if (data.hasOwnProperty(key) && key in this) {
|
24
|
+
this[key] = data[key];
|
25
|
+
}
|
26
|
+
}
|
27
|
+
}
|
28
|
+
}
|
29
|
+
return OrderPaymentMethodEntity;
|
30
|
+
}());
|
31
|
+
exports.OrderPaymentMethodEntity = OrderPaymentMethodEntity;
|
@@ -0,0 +1,21 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.OrderPaymentPixEntity = void 0;
|
4
|
+
var OrderPaymentPixEntity = /** @class */ (function () {
|
5
|
+
// #endregion Properties (2)
|
6
|
+
// #region Constructors (1)
|
7
|
+
function OrderPaymentPixEntity(data) {
|
8
|
+
// #region Properties (2)
|
9
|
+
this.pixKey = '';
|
10
|
+
this.urlQrImage = '';
|
11
|
+
if (data) {
|
12
|
+
for (var key in data) {
|
13
|
+
if (data.hasOwnProperty(key) && key in this) {
|
14
|
+
this[key] = data[key];
|
15
|
+
}
|
16
|
+
}
|
17
|
+
}
|
18
|
+
}
|
19
|
+
return OrderPaymentPixEntity;
|
20
|
+
}());
|
21
|
+
exports.OrderPaymentPixEntity = OrderPaymentPixEntity;
|
@@ -0,0 +1,20 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.OrderPaymentWalletEntity = void 0;
|
4
|
+
var OrderPaymentWalletEntity = /** @class */ (function () {
|
5
|
+
// #endregion Properties (1)
|
6
|
+
// #region Constructors (1)
|
7
|
+
function OrderPaymentWalletEntity(data) {
|
8
|
+
// #region Properties (1)
|
9
|
+
this.name = '';
|
10
|
+
if (data) {
|
11
|
+
for (var key in data) {
|
12
|
+
if (data.hasOwnProperty(key) && key in this) {
|
13
|
+
this[key] = data[key];
|
14
|
+
}
|
15
|
+
}
|
16
|
+
}
|
17
|
+
}
|
18
|
+
return OrderPaymentWalletEntity;
|
19
|
+
}());
|
20
|
+
exports.OrderPaymentWalletEntity = OrderPaymentWalletEntity;
|
@@ -0,0 +1,22 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.OrderPaymentEntity = void 0;
|
4
|
+
var OrderPaymentEntity = /** @class */ (function () {
|
5
|
+
// #endregion Properties (3)
|
6
|
+
// #region Constructors (1)
|
7
|
+
function OrderPaymentEntity(data) {
|
8
|
+
// #region Properties (3)
|
9
|
+
this.methods = [];
|
10
|
+
this.pending = 0;
|
11
|
+
this.prepaid = 0;
|
12
|
+
if (data) {
|
13
|
+
for (var key in data) {
|
14
|
+
if (data.hasOwnProperty(key) && key in this) {
|
15
|
+
this[key] = data[key];
|
16
|
+
}
|
17
|
+
}
|
18
|
+
}
|
19
|
+
}
|
20
|
+
return OrderPaymentEntity;
|
21
|
+
}());
|
22
|
+
exports.OrderPaymentEntity = OrderPaymentEntity;
|
@@ -0,0 +1,21 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.OrderScaleItemEntity = void 0;
|
4
|
+
var OrderScaleItemEntity = /** @class */ (function () {
|
5
|
+
// #endregion Properties (2)
|
6
|
+
// #region Constructors (1)
|
7
|
+
function OrderScaleItemEntity(data) {
|
8
|
+
// #region Properties (2)
|
9
|
+
this.minQuantity = 0;
|
10
|
+
this.price = 0;
|
11
|
+
if (data) {
|
12
|
+
for (var key in data) {
|
13
|
+
if (data.hasOwnProperty(key) && key in this) {
|
14
|
+
this[key] = data[key];
|
15
|
+
}
|
16
|
+
}
|
17
|
+
}
|
18
|
+
}
|
19
|
+
return OrderScaleItemEntity;
|
20
|
+
}());
|
21
|
+
exports.OrderScaleItemEntity = OrderScaleItemEntity;
|
@@ -0,0 +1,21 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.OrderScaleEntity = void 0;
|
4
|
+
var OrderScaleEntity = /** @class */ (function () {
|
5
|
+
// #endregion Properties (2)
|
6
|
+
// #region Constructors (1)
|
7
|
+
function OrderScaleEntity(data) {
|
8
|
+
// #region Properties (2)
|
9
|
+
this.defaultPrice = 0;
|
10
|
+
this.scales = [];
|
11
|
+
if (data) {
|
12
|
+
for (var key in data) {
|
13
|
+
if (data.hasOwnProperty(key) && key in this) {
|
14
|
+
this[key] = data[key];
|
15
|
+
}
|
16
|
+
}
|
17
|
+
}
|
18
|
+
}
|
19
|
+
return OrderScaleEntity;
|
20
|
+
}());
|
21
|
+
exports.OrderScaleEntity = OrderScaleEntity;
|
@@ -0,0 +1,24 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.OrderTotalEntity = void 0;
|
4
|
+
var OrderTotalEntity = /** @class */ (function () {
|
5
|
+
// #endregion Properties (5)
|
6
|
+
// #region Constructors (1)
|
7
|
+
function OrderTotalEntity(data) {
|
8
|
+
// #region Properties (5)
|
9
|
+
this.additionalFees = 0;
|
10
|
+
this.benefits = 0;
|
11
|
+
this.deliveryFee = 0;
|
12
|
+
this.orderAmount = 0;
|
13
|
+
this.subTotal = 0;
|
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 OrderTotalEntity;
|
23
|
+
}());
|
24
|
+
exports.OrderTotalEntity = OrderTotalEntity;
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { OrderStatusEnum } from '../enums';
|
2
|
+
import { OrderAdditionalFeeEntity } from './order-additional-fees.entity';
|
3
|
+
import { OrderBenefitsEntity } from './order-benefits.entity';
|
4
|
+
import { OrderCancellationEntity } from './order-cancellation.entity';
|
5
|
+
import { OrderCustomerEntity } from './order-customer.entity';
|
6
|
+
import { OrderItemEntity } from './order-item.entity';
|
7
|
+
import { OrderPaymentEntity } from './order-payment.entity';
|
8
|
+
import { OrderTotalEntity } from './order-total.entity';
|
9
|
+
export declare class OrderEntity {
|
10
|
+
additionalFees: OrderAdditionalFeeEntity[];
|
11
|
+
benefits: OrderBenefitsEntity[];
|
12
|
+
cancellation: OrderCancellationEntity;
|
13
|
+
companyId: string;
|
14
|
+
containerId: string;
|
15
|
+
createdAt: number;
|
16
|
+
customer: OrderCustomerEntity;
|
17
|
+
id: string;
|
18
|
+
items: OrderItemEntity[];
|
19
|
+
payments: OrderPaymentEntity;
|
20
|
+
salesChannel: string;
|
21
|
+
sandbox: boolean;
|
22
|
+
status: OrderStatusEnum;
|
23
|
+
total: OrderTotalEntity;
|
24
|
+
updatedAt: number;
|
25
|
+
version: string;
|
26
|
+
constructor(data?: Partial<OrderEntity>);
|
27
|
+
}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.OrderEntity = void 0;
|
4
|
+
var enums_1 = require("../enums");
|
5
|
+
var order_cancellation_entity_1 = require("./order-cancellation.entity");
|
6
|
+
var order_customer_entity_1 = require("./order-customer.entity");
|
7
|
+
var order_payment_entity_1 = require("./order-payment.entity");
|
8
|
+
var order_total_entity_1 = require("./order-total.entity");
|
9
|
+
var OrderEntity = /** @class */ (function () {
|
10
|
+
function OrderEntity(data) {
|
11
|
+
// #region Properties (16)
|
12
|
+
this.additionalFees = [];
|
13
|
+
this.benefits = [];
|
14
|
+
this.cancellation = new order_cancellation_entity_1.OrderCancellationEntity();
|
15
|
+
this.companyId = '';
|
16
|
+
this.containerId = '';
|
17
|
+
this.createdAt = Date.now();
|
18
|
+
this.customer = new order_customer_entity_1.OrderCustomerEntity();
|
19
|
+
this.id = '';
|
20
|
+
this.items = [];
|
21
|
+
this.payments = new order_payment_entity_1.OrderPaymentEntity();
|
22
|
+
this.salesChannel = '';
|
23
|
+
this.sandbox = false;
|
24
|
+
this.status = enums_1.OrderStatusEnum.PENDING;
|
25
|
+
this.total = new order_total_entity_1.OrderTotalEntity();
|
26
|
+
this.updatedAt = Date.now();
|
27
|
+
this.version = '';
|
28
|
+
if (data) {
|
29
|
+
for (var key in data) {
|
30
|
+
if (data.hasOwnProperty(key) && key in this) {
|
31
|
+
this[key] = data[key];
|
32
|
+
}
|
33
|
+
}
|
34
|
+
}
|
35
|
+
}
|
36
|
+
return OrderEntity;
|
37
|
+
}());
|
38
|
+
exports.OrderEntity = OrderEntity;
|
@@ -0,0 +1 @@
|
|
1
|
+
export { OrderStatusEnum } from './order-status.enum';
|
@@ -0,0 +1,6 @@
|
|
1
|
+
"use strict";
|
2
|
+
// index.ts
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
+
exports.OrderStatusEnum = void 0;
|
5
|
+
var order_status_enum_1 = require("./order-status.enum");
|
6
|
+
Object.defineProperty(exports, "OrderStatusEnum", { enumerable: true, get: function () { return order_status_enum_1.OrderStatusEnum; } });
|
@@ -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("./entities"), exports);
|
18
|
+
__exportStar(require("./enums"), exports);
|
19
|
+
__exportStar(require("./interfaces"), exports);
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { IOrdersCustomerPhone } from './i-order-customer-phone';
|
2
|
+
export interface IOrderCustomer {
|
3
|
+
documentNumber: string;
|
4
|
+
email: string;
|
5
|
+
id: string;
|
6
|
+
name: string;
|
7
|
+
ordersCountOnMerchant: number;
|
8
|
+
phone: IOrdersCustomerPhone;
|
9
|
+
picture: string;
|
10
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
export interface IOrderItemOption {
|
2
|
+
ean: string;
|
3
|
+
externalCode: string;
|
4
|
+
id: string;
|
5
|
+
index: number;
|
6
|
+
name: string;
|
7
|
+
options: IOrderItemOption[];
|
8
|
+
optionsPrice: number;
|
9
|
+
preparationPlaceId: string;
|
10
|
+
price: number;
|
11
|
+
productId: string;
|
12
|
+
quantity: number;
|
13
|
+
skill: string;
|
14
|
+
totalPrice: number;
|
15
|
+
unit: string;
|
16
|
+
weight: number;
|
17
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { IOrderItemComposition } from './i-order-item-composition';
|
2
|
+
import { IOrderItemOption } from './i-order-item-option';
|
3
|
+
import { IOrderScale } from './i-order-scale-price';
|
4
|
+
export interface IOrderItem {
|
5
|
+
composition: IOrderItemComposition[];
|
6
|
+
ean: string;
|
7
|
+
externalCode: string;
|
8
|
+
id: string;
|
9
|
+
index: number;
|
10
|
+
name: string;
|
11
|
+
observations: string;
|
12
|
+
options: IOrderItemOption[];
|
13
|
+
optionsPrice: number;
|
14
|
+
picture: string;
|
15
|
+
preparationPlaceId: string;
|
16
|
+
price: number;
|
17
|
+
productId: number;
|
18
|
+
quantity: number;
|
19
|
+
scalePrices: IOrderScale;
|
20
|
+
skill: string;
|
21
|
+
totalPrice: number;
|
22
|
+
unit: string;
|
23
|
+
unitPrice: number;
|
24
|
+
weight: number;
|
25
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { PaymentTypeEnum } from '../../general';
|
2
|
+
import { IOrderPaymentCard } from './i-order-payment-card';
|
3
|
+
import { IOrderPaymentCash } from './i-order-payment-cash';
|
4
|
+
import { IOrderPaymentPix } from './i-order-payment-pix';
|
5
|
+
import { IOrderPaymentWallet } from './i-order-payment-wallet';
|
6
|
+
export interface IOrderPaymentMethod {
|
7
|
+
card?: IOrderPaymentCard;
|
8
|
+
cash?: IOrderPaymentCash;
|
9
|
+
code: string;
|
10
|
+
currency: 'BRL';
|
11
|
+
id: string;
|
12
|
+
method: PaymentTypeEnum;
|
13
|
+
pix?: IOrderPaymentPix;
|
14
|
+
prepaid: boolean;
|
15
|
+
type: 'ONLINE' | 'OFFLINE';
|
16
|
+
value: number;
|
17
|
+
wallet?: IOrderPaymentWallet;
|
18
|
+
}
|