cecon-interfaces 1.0.14 → 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 +1 -1
- 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 +1 -1
- 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,12 @@
|
|
1
|
+
export interface IOrderTotal {
|
2
|
+
/** Valor final, equivalente ao subTotal + deliveryFee - benefits */
|
3
|
+
additionalFees: number;
|
4
|
+
/** Valor consolidado dos descontos aplicados ao pedido */
|
5
|
+
benefits: number;
|
6
|
+
/** Valor total de entrega */
|
7
|
+
deliveryFee: number;
|
8
|
+
/** Montante total representado pelo preço dos itens no pedido */
|
9
|
+
orderAmount: number;
|
10
|
+
/** Subtotal do pedido */
|
11
|
+
subTotal: number;
|
12
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import { OrderStatusEnum } from '../enums';
|
2
|
+
import { IOrderAdditionalFee } from './i-order-additional-fee';
|
3
|
+
import { IOrderBenefits } from './i-order-benefits';
|
4
|
+
import { IOrderCancellation } from './i-order-cancellation';
|
5
|
+
import { IOrderCustomer } from './i-order-customer';
|
6
|
+
import { IOrderItem } from './i-order-item';
|
7
|
+
import { IOrderPayment } from './i-order-payment';
|
8
|
+
import { IOrderTotal } from './i-order-total';
|
9
|
+
export interface IOrder {
|
10
|
+
additionalFees: IOrderAdditionalFee[];
|
11
|
+
benefits: IOrderBenefits[];
|
12
|
+
cancellation: IOrderCancellation;
|
13
|
+
companyId: string;
|
14
|
+
containerId: string;
|
15
|
+
createdAt: Date;
|
16
|
+
customer: IOrderCustomer;
|
17
|
+
id: string;
|
18
|
+
sandbox: boolean;
|
19
|
+
items: IOrderItem[];
|
20
|
+
payments: IOrderPayment;
|
21
|
+
salesChannel: string;
|
22
|
+
status: OrderStatusEnum;
|
23
|
+
total: IOrderTotal;
|
24
|
+
updatedAt: number;
|
25
|
+
version: string;
|
26
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
export { IOrder } from './i-order';
|
2
|
+
export { IOrderAdditionalFee } from './i-order-additional-fee';
|
3
|
+
export { IOrderBenefits } from './i-order-benefits';
|
4
|
+
export { ISponsorshipValues } from './i-order-benefits-sponsor-ship';
|
5
|
+
export { IOrderCancellation } from './i-order-cancellation';
|
6
|
+
export { IOrderCustomer } from './i-order-customer';
|
7
|
+
export { IOrdersCustomerPhone } from './i-order-customer-phone';
|
8
|
+
export { IOrderItem } from './i-order-item';
|
9
|
+
export { IOrderItemComposition } from './i-order-item-composition';
|
10
|
+
export { IOrderItemOption } from './i-order-item-option';
|
11
|
+
export { IOrderPayment } from './i-order-payment';
|
12
|
+
export { IOrderPaymentCard } from './i-order-payment-card';
|
13
|
+
export { IOrderPaymentCash } from './i-order-payment-cash';
|
14
|
+
export { IOrderPaymentMethod } from './i-order-payment-method';
|
15
|
+
export { IOrderPaymentPix } from './i-order-payment-pix';
|
16
|
+
export { IOrderPaymentWallet } from './i-order-payment-wallet';
|
17
|
+
export { IOrderScaleItem } from './i-order-scale-item';
|
18
|
+
export { IOrderScale } from './i-order-scale-price';
|
19
|
+
export { IOrderTotal } from './i-order-total';
|
package/dist/package.json
CHANGED
@@ -0,0 +1,22 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.AppInfoEntity = void 0;
|
4
|
+
var AppInfoEntity = /** @class */ (function () {
|
5
|
+
// #endregion Properties (3)
|
6
|
+
// #region Constructors (1)
|
7
|
+
function AppInfoEntity(data) {
|
8
|
+
// #region Properties (3)
|
9
|
+
this.appId = '';
|
10
|
+
this.name = '';
|
11
|
+
this.version = '';
|
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 AppInfoEntity;
|
21
|
+
}());
|
22
|
+
exports.AppInfoEntity = AppInfoEntity;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PurchaseEntity = exports.AppInfoEntity = void 0;
|
4
|
+
var app_info_entity_1 = require("./app-info.entity");
|
5
|
+
Object.defineProperty(exports, "AppInfoEntity", { enumerable: true, get: function () { return app_info_entity_1.AppInfoEntity; } });
|
6
|
+
var purchase_entity_1 = require("./purchase.entity");
|
7
|
+
Object.defineProperty(exports, "PurchaseEntity", { enumerable: true, get: function () { return purchase_entity_1.PurchaseEntity; } });
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { PaymentProviderEnum } from '../../general/enums/providers.enum';
|
2
|
+
import { OrderEntity } from '../../order';
|
3
|
+
import { AppInfoEntity } from './app-info.entity';
|
4
|
+
export declare class PurchaseEntity extends OrderEntity {
|
5
|
+
additionalNotes?: string;
|
6
|
+
appInfo: AppInfoEntity;
|
7
|
+
deviceUid: string;
|
8
|
+
providerName: PaymentProviderEnum;
|
9
|
+
constructor(data?: Partial<PurchaseEntity>);
|
10
|
+
}
|
@@ -0,0 +1,44 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
3
|
+
var extendStatics = function (d, b) {
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
7
|
+
return extendStatics(d, b);
|
8
|
+
};
|
9
|
+
return function (d, b) {
|
10
|
+
if (typeof b !== "function" && b !== null)
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
12
|
+
extendStatics(d, b);
|
13
|
+
function __() { this.constructor = d; }
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
15
|
+
};
|
16
|
+
})();
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
18
|
+
exports.PurchaseEntity = void 0;
|
19
|
+
var providers_enum_1 = require("../../general/enums/providers.enum");
|
20
|
+
var order_1 = require("../../order");
|
21
|
+
var app_info_entity_1 = require("./app-info.entity");
|
22
|
+
var PurchaseEntity = /** @class */ (function (_super) {
|
23
|
+
__extends(PurchaseEntity, _super);
|
24
|
+
// #endregion Properties (4)
|
25
|
+
// #region Constructors (1)
|
26
|
+
function PurchaseEntity(data) {
|
27
|
+
var _this = _super.call(this) || this;
|
28
|
+
// #region Properties (4)
|
29
|
+
_this.additionalNotes = '';
|
30
|
+
_this.appInfo = new app_info_entity_1.AppInfoEntity();
|
31
|
+
_this.deviceUid = '';
|
32
|
+
_this.providerName = providers_enum_1.PaymentProviderEnum.iugu;
|
33
|
+
if (data) {
|
34
|
+
for (var key in data) {
|
35
|
+
if (data.hasOwnProperty(key) && key in _this) {
|
36
|
+
_this[key] = data[key];
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}
|
40
|
+
return _this;
|
41
|
+
}
|
42
|
+
return PurchaseEntity;
|
43
|
+
}(order_1.OrderEntity));
|
44
|
+
exports.PurchaseEntity = PurchaseEntity;
|
@@ -1,3 +1,2 @@
|
|
1
|
-
export
|
2
|
-
export
|
3
|
-
export { IPurchase } from './interfaces/i-purchase';
|
1
|
+
export * from './entities';
|
2
|
+
export * from './interfaces';
|
package/dist/purchases/index.js
CHANGED
@@ -1,3 +1,18 @@
|
|
1
1
|
"use strict";
|
2
|
-
|
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
|
+
};
|
3
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./entities"), exports);
|
18
|
+
__exportStar(require("./interfaces"), exports);
|
@@ -1,26 +1,18 @@
|
|
1
1
|
import { PaymentProviderEnum } from '../../general/enums/providers.enum';
|
2
|
+
import { IOrder } from '../../order';
|
2
3
|
import { IAppInfo } from './i-app-info';
|
3
|
-
import { IPaymentDetails } from './i-payment-details';
|
4
4
|
/**
|
5
5
|
* Representa uma compra dentro do sistema.
|
6
6
|
* Esta interface fornece uma separação clara de diferentes aspectos da compra,
|
7
7
|
* como detalhes do pagamento e informações sobre o aplicativo.
|
8
8
|
*/
|
9
|
-
export interface IPurchase {
|
10
|
-
/**
|
11
|
-
|
12
|
-
/** ID da empresa associada à compra. */
|
13
|
-
companyId: string;
|
14
|
-
/** ID do dispositivo para o qual o aplicativo foi ativado. */
|
15
|
-
deviceUid: string;
|
9
|
+
export interface IPurchase extends IOrder {
|
10
|
+
/** Qualquer informação adicional ou notas relacionadas à compra. */
|
11
|
+
additionalNotes?: string;
|
16
12
|
/** Informações sobre o aplicativo ou módulo ativado. */
|
17
13
|
appInfo: IAppInfo;
|
18
|
-
/**
|
19
|
-
|
14
|
+
/** ID do dispositivo para o qual o aplicativo foi ativado. */
|
15
|
+
deviceUid: string;
|
20
16
|
/** Identificação da origem do pagamento ex: DESENFILA */
|
21
|
-
|
22
|
-
/** Detalhes específicos do pagamento. */
|
23
|
-
paymentDetails: IPaymentDetails;
|
24
|
-
/** Qualquer informação adicional ou notas relacionadas à compra. */
|
25
|
-
additionalNotes?: string;
|
17
|
+
providerName: PaymentProviderEnum;
|
26
18
|
}
|
package/package.json
CHANGED
package/tsconfig.json
CHANGED
@@ -16,15 +16,15 @@
|
|
16
16
|
"purchase/*"
|
17
17
|
]
|
18
18
|
},
|
19
|
-
"target": "
|
19
|
+
"target": "es6",
|
20
20
|
"declaration": true,
|
21
21
|
"declarationDir": "./dist",
|
22
22
|
"experimentalDecorators": true,
|
23
23
|
"esModuleInterop": true,
|
24
24
|
"outDir": "./dist",
|
25
25
|
"lib": [
|
26
|
-
"
|
27
|
-
"
|
26
|
+
"es6",
|
27
|
+
"dom"
|
28
28
|
],
|
29
29
|
"strict": true
|
30
30
|
},
|
@@ -1,3 +0,0 @@
|
|
1
|
-
// src/models/base.entity.ts
|
2
|
-
export {};
|
3
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS1wYXltZW50LXRva2Vucy1kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2dlbmVyYWwvaW50ZXJmYWNlcy9pLXBheW1lbnQtdG9rZW5zLWRhdGEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsNEJBQTRCIiwic291cmNlc0NvbnRlbnQiOlsiLy8gc3JjL21vZGVscy9iYXNlLmVudGl0eS50c1xuXG5leHBvcnQgaW50ZXJmYWNlIElQYXltZW50VG9rZW5EYXRhIHtcbiAgICAvLyAjcmVnaW9uIFByb3BlcnRpZXMgKDcpXG5cbiAgICBiaW46IHN0cmluZztcbiAgICBicmFuZDogc3RyaW5nO1xuICAgIGRpc3BsYXlOdW1iZXI6IHN0cmluZztcbiAgICBmaXJzdERpZ2l0czogc3RyaW5nO1xuICAgIG1hc2tlZE51bWJlcjogc3RyaW5nO1xuICAgIG1vbnRoOiBudW1iZXI7XG4gICAgeWVhcjogbnVtYmVyO1xuXG4gICAgLy8gI2VuZHJlZ2lvbiBQcm9wZXJ0aWVzICg3KVxufVxuIl19
|
@@ -1,3 +0,0 @@
|
|
1
|
-
// src/models/base.entity.ts
|
2
|
-
export {};
|
3
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS1wYXltZW50LXRva2Vucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9nZW5lcmFsL2ludGVyZmFjZXMvaS1wYXltZW50LXRva2Vucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSw0QkFBNEIiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBzcmMvbW9kZWxzL2Jhc2UuZW50aXR5LnRzXG5cbmltcG9ydCB7IElQYXltZW50VG9rZW5EYXRhIH0gZnJvbSAnLi9pLXBheW1lbnQtdG9rZW5zLWRhdGEnO1xuXG5cbmV4cG9ydCBpbnRlcmZhY2UgSVBheW1lbnRUb2tlbiB7XG4gICAgLy8gI3JlZ2lvbiBQcm9wZXJ0aWVzICg1KVxuXG4gICAgY3VzdG9tZXJJZDogc3RyaW5nO1xuICAgIGRhdGE6IElQYXltZW50VG9rZW5EYXRhO1xuICAgIGRlc2NyaXB0aW9uOiBzdHJpbmc7XG4gICAgaWQ6IHN0cmluZztcbiAgICBpdGVtVHlwZTogc3RyaW5nO1xuXG4gICAgLy8gI2VuZHJlZ2lvbiBQcm9wZXJ0aWVzICg1KVxufVxuIl19
|
@@ -1,2 +0,0 @@
|
|
1
|
-
export {};
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS1wYXltZW50LWRldGFpbHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvcHVyY2hhc2VzL2ludGVyZmFjZXMvaS1wYXltZW50LWRldGFpbHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFBheW1lbnRUeXBlRW51bSB9IGZyb20gJy4uLy4uL2dlbmVyYWwnO1xuaW1wb3J0IHsgT3JkZXJTdGF0dXNFbnVtIH0gZnJvbSAnLi4vLi4vZ2VuZXJhbC9lbnVtcy9vcmRlci1zYXR1cy5lbnVtJztcblxuLyoqXG4gKiBSZXByZXNlbnRhIG9zIGRldGFsaGVzIGVzcGVjw61maWNvcyBkbyBwYWdhbWVudG8gZGUgdW1hIGNvbXByYS5cbiAqL1xuZXhwb3J0IGludGVyZmFjZSBJUGF5bWVudERldGFpbHMge1xuICAgIC8qKiBUaXBvIGRlIG3DqXRvZG8gZGUgcGFnYW1lbnRvIHVzYWRvIChwb3IgZXhlbXBsbywgY2FydMOjbyBkZSBjcsOpZGl0bywgUGF5UGFsKS4gKi9cbiAgICBtZXRob2Q6IFBheW1lbnRUeXBlRW51bTtcblxuICAgIC8qKiBJZGVudGlmaWNhZG9yIMO6bmljbyBwYXJhIGEgdHJhbnNhw6fDo28gZGUgcGFnYW1lbnRvLiAqL1xuICAgIHRyYW5zYWN0aW9uSWQ6IHN0cmluZztcblxuICAgIC8qKiBNb250YW50ZSB0b3RhbCBwYWdvLiAqL1xuICAgIGFtb3VudDogbnVtYmVyO1xuXG4gICAgLyoqIE1vZWRhIG5hIHF1YWwgbyBwYWdhbWVudG8gZm9pIHJlYWxpemFkbyAocG9yIGV4ZW1wbG86ICdVU0QnLCAnQlJMJykuICovXG4gICAgY3VycmVuY3k6IHN0cmluZztcblxuICAgIC8qKiBFc3RhZG8gYXR1YWwgZGEgdHJhbnNhw6fDo28gKHBvciBleGVtcGxvLCBwZW5kZW50ZSwgY29uY2x1w61kbykuICovXG4gICAgc3RhdHVzOiBPcmRlclN0YXR1c0VudW07XG59XG4iXX0=
|
@@ -1,17 +0,0 @@
|
|
1
|
-
import { PaymentTypeEnum } from '../../general';
|
2
|
-
import { OrderStatusEnum } from '../../general/enums/order-satus.enum';
|
3
|
-
/**
|
4
|
-
* Representa os detalhes específicos do pagamento de uma compra.
|
5
|
-
*/
|
6
|
-
export interface IPaymentDetails {
|
7
|
-
/** Tipo de método de pagamento usado (por exemplo, cartão de crédito, PayPal). */
|
8
|
-
method: PaymentTypeEnum;
|
9
|
-
/** Identificador único para a transação de pagamento. */
|
10
|
-
transactionId: string;
|
11
|
-
/** Montante total pago. */
|
12
|
-
amount: number;
|
13
|
-
/** Moeda na qual o pagamento foi realizado (por exemplo: 'USD', 'BRL'). */
|
14
|
-
currency: string;
|
15
|
-
/** Estado atual da transação (por exemplo, pendente, concluído). */
|
16
|
-
status: OrderStatusEnum;
|
17
|
-
}
|
File without changes
|
File without changes
|
/package/dist/{purchases/interfaces/i-payment-details.js → general/interfaces/i-mobyo-api-config.js}
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|