cecon-interfaces 1.4.15 → 1.4.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. package/dist/esm2022/evolution/enums/index.mjs +2 -1
  2. package/dist/esm2022/evolution/enums/integration-types.enum.mjs +6 -0
  3. package/dist/esm2022/mobyo/mobyo-api/interfaces/i-device-checkout-config-tef-api.mjs +1 -1
  4. package/dist/esm2022/mobyo/mobyo-api/interfaces/i-device-checkout-picture.mjs +1 -1
  5. package/dist/esm2022/mobyo/mobyo-api/interfaces/i-order-payment-method-v3.mjs +2 -1
  6. package/dist/esm2022/mobyo/mobyo-api/interfaces/index.mjs +1 -1
  7. package/dist/esm2022/transaction/entities/index.mjs +5 -3
  8. package/dist/esm2022/transaction/entities/transaction-info-resume.entity.mjs +18 -0
  9. package/dist/esm2022/transaction/entities/transaction-resume.entity.mjs +23 -0
  10. package/dist/esm2022/transaction/interfaces/i-transaction-info-resume.mjs +2 -0
  11. package/dist/esm2022/transaction/interfaces/i-transaction-resume.mjs +2 -0
  12. package/dist/esm2022/transaction/interfaces/index.mjs +1 -1
  13. package/dist/evolution/enums/index.d.ts +1 -0
  14. package/dist/evolution/enums/index.js +3 -1
  15. package/dist/evolution/enums/integration-types.enum.d.ts +4 -0
  16. package/dist/evolution/enums/integration-types.enum.js +8 -0
  17. package/dist/fesm2022/cecon-interfaces.mjs +91 -46
  18. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  19. package/dist/mobyo/mobyo-api/interfaces/i-device-checkout-config-tef-api.d.ts +1 -1
  20. package/dist/mobyo/mobyo-api/interfaces/i-device-checkout-picture.d.ts +1 -0
  21. package/dist/mobyo/mobyo-api/interfaces/i-order-payment-method-v3.d.ts +13 -11
  22. package/dist/mobyo/mobyo-api/interfaces/i-order-payment-method-v3.js +1 -0
  23. package/dist/mobyo/mobyo-api/interfaces/index.d.ts +2 -0
  24. package/dist/package.json +1 -1
  25. package/dist/transaction/entities/index.d.ts +4 -2
  26. package/dist/transaction/entities/index.js +9 -5
  27. package/dist/transaction/entities/transaction-info-resume.entity.d.ts +7 -0
  28. package/dist/transaction/entities/transaction-info-resume.entity.js +22 -0
  29. package/dist/transaction/entities/transaction-resume.entity.d.ts +12 -0
  30. package/dist/transaction/entities/transaction-resume.entity.js +27 -0
  31. package/dist/transaction/interfaces/i-transaction-info-resume.d.ts +5 -0
  32. package/dist/transaction/interfaces/i-transaction-info-resume.js +2 -0
  33. package/dist/transaction/interfaces/i-transaction-resume.d.ts +10 -0
  34. package/dist/transaction/interfaces/i-transaction-resume.js +2 -0
  35. package/dist/transaction/interfaces/index.d.ts +3 -1
  36. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
1
  export interface IDeviceCheckoutConfigTefApi {
2
- port: number;
2
+ storeId: string;
3
3
  url: string;
4
4
  }
@@ -5,4 +5,5 @@ export interface IDeviceCheckoutPicture {
5
5
  userblock: string;
6
6
  header: string;
7
7
  banners: Array<string>;
8
+ ordermode: string;
8
9
  }
@@ -1,13 +1,7 @@
1
- import { EOrderPaymentMethod } from "../enum/order-payment-method.enum";
2
- export interface IOrderPaymentPix {
3
- pixKey: string;
4
- urlQrImage: string;
5
- }
6
- export interface IOrderPaymentWallet {
7
- name: string;
8
- }
1
+ import { EOrderPaymentMethod } from '../enum/order-payment-method.enum';
9
2
  export interface IOrderPaymentCard {
10
- brand: string;
3
+ brand: string | null;
4
+ link: string | null;
11
5
  }
12
6
  export interface IOrderPaymentCash {
13
7
  changeFor: Number;
@@ -16,14 +10,22 @@ export interface IOrderPaymentMethodV3 {
16
10
  card: IOrderPaymentCard;
17
11
  cash: IOrderPaymentCash;
18
12
  code: string;
13
+ createdAt: Date | null;
19
14
  currency: 'BRL';
20
15
  id: string;
21
16
  method: EOrderPaymentMethod;
22
- pix?: IOrderPaymentPix;
17
+ paymentId?: string;
18
+ pix: IOrderPaymentPix | null;
23
19
  prepaid: boolean;
24
20
  transaction?: any;
25
21
  type: 'ONLINE' | 'OFFLINE';
26
22
  value: number;
27
23
  wallet: IOrderPaymentWallet;
28
- paymentId?: string;
24
+ }
25
+ export interface IOrderPaymentPix {
26
+ pixKey: string;
27
+ urlQrImage: string;
28
+ }
29
+ export interface IOrderPaymentWallet {
30
+ name: string;
29
31
  }
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ // #endregion Interfaces (5)
@@ -39,9 +39,11 @@ export { IDeviceAppConfig as MobyoIDeviceAppConfig } from './i-device-app-config
39
39
  export { IDeviceCheckout as MobyoIDeviceCheckout } from './i-device-checkout';
40
40
  export { IDeviceCheckoutConfigTef as MobyoIDeviceCheckoutConfigTef } from './i-device-checkout-config-tef';
41
41
  export { IDeviceCheckoutConfigTefApi as MobyoIDeviceCheckoutConfigTefApi } from './i-device-checkout-config-tef-api';
42
+ export { IDeviceCheckoutConfigTefApi } from './i-device-checkout-config-tef-api';
42
43
  export { IDeviceCheckoutConfig as MobyoIDeviceCheckoutConfig } from './i-device-checkout-configs';
43
44
  export { IDeviceCheckoutPaymentsOnline as MobyoIDeviceCheckoutPaymentsOnline } from './i-device-checkout-payments-online';
44
45
  export { IDeviceCheckoutPicture as MobyoIDeviceCheckoutPicture } from './i-device-checkout-picture';
46
+ export { IDeviceCheckoutPicture } from './i-device-checkout-picture';
45
47
  export { IDeviceCustomText as MobyoIDeviceCustomText } from './i-device-custom-text';
46
48
  export { IDeviceMenu as MobyoIDeviceMenu } from './i-device-menu';
47
49
  export { IDeviceScreen as MobyoIDeviceScreen } from './i-device-screen';
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.4.15",
3
+ "version": "1.4.18",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,5 +1,7 @@
1
- export { TransactionEntity } from './transaction.entity';
2
1
  export { FeeDetailEntity } from './fee-detail.entity';
3
2
  export { TransactionBalanceEntity } from './transaction-balance.entity';
4
- export { TransactionTotalEntity } from './transaction-total.entity';
3
+ export { TransactionInfoResumeEntity } from './transaction-info-resume.entity';
5
4
  export { TransactionPaymentMethodEntity } from './transaction-payment-method.entity';
5
+ export { TransactionResumeEntity } from './transaction-resume.entity';
6
+ export { TransactionTotalEntity } from './transaction-total.entity';
7
+ export { TransactionEntity } from './transaction.entity';
@@ -1,13 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TransactionPaymentMethodEntity = exports.TransactionTotalEntity = exports.TransactionBalanceEntity = exports.FeeDetailEntity = exports.TransactionEntity = void 0;
4
- var transaction_entity_1 = require("./transaction.entity");
5
- Object.defineProperty(exports, "TransactionEntity", { enumerable: true, get: function () { return transaction_entity_1.TransactionEntity; } });
3
+ exports.TransactionEntity = exports.TransactionTotalEntity = exports.TransactionResumeEntity = exports.TransactionPaymentMethodEntity = exports.TransactionInfoResumeEntity = exports.TransactionBalanceEntity = exports.FeeDetailEntity = void 0;
6
4
  var fee_detail_entity_1 = require("./fee-detail.entity");
7
5
  Object.defineProperty(exports, "FeeDetailEntity", { enumerable: true, get: function () { return fee_detail_entity_1.FeeDetailEntity; } });
8
6
  var transaction_balance_entity_1 = require("./transaction-balance.entity");
9
7
  Object.defineProperty(exports, "TransactionBalanceEntity", { enumerable: true, get: function () { return transaction_balance_entity_1.TransactionBalanceEntity; } });
10
- var transaction_total_entity_1 = require("./transaction-total.entity");
11
- Object.defineProperty(exports, "TransactionTotalEntity", { enumerable: true, get: function () { return transaction_total_entity_1.TransactionTotalEntity; } });
8
+ var transaction_info_resume_entity_1 = require("./transaction-info-resume.entity");
9
+ Object.defineProperty(exports, "TransactionInfoResumeEntity", { enumerable: true, get: function () { return transaction_info_resume_entity_1.TransactionInfoResumeEntity; } });
12
10
  var transaction_payment_method_entity_1 = require("./transaction-payment-method.entity");
13
11
  Object.defineProperty(exports, "TransactionPaymentMethodEntity", { enumerable: true, get: function () { return transaction_payment_method_entity_1.TransactionPaymentMethodEntity; } });
12
+ var transaction_resume_entity_1 = require("./transaction-resume.entity");
13
+ Object.defineProperty(exports, "TransactionResumeEntity", { enumerable: true, get: function () { return transaction_resume_entity_1.TransactionResumeEntity; } });
14
+ var transaction_total_entity_1 = require("./transaction-total.entity");
15
+ Object.defineProperty(exports, "TransactionTotalEntity", { enumerable: true, get: function () { return transaction_total_entity_1.TransactionTotalEntity; } });
16
+ var transaction_entity_1 = require("./transaction.entity");
17
+ Object.defineProperty(exports, "TransactionEntity", { enumerable: true, get: function () { return transaction_entity_1.TransactionEntity; } });
@@ -0,0 +1,7 @@
1
+ import { ITransactionInfoResume } from '../interfaces/i-transaction-info-resume';
2
+ export declare class TransactionInfoResumeEntity implements ITransactionInfoResume {
3
+ companyId: string;
4
+ companyName: string;
5
+ containerId: string;
6
+ constructor(data?: Partial<TransactionInfoResumeEntity>);
7
+ }
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TransactionInfoResumeEntity = void 0;
4
+ var TransactionInfoResumeEntity = /** @class */ (function () {
5
+ // #endregion Properties (3)
6
+ // #region Constructors (1)
7
+ function TransactionInfoResumeEntity(data) {
8
+ // #region Properties (3)
9
+ this.companyId = '';
10
+ this.companyName = '';
11
+ this.containerId = '';
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 TransactionInfoResumeEntity;
21
+ }());
22
+ exports.TransactionInfoResumeEntity = TransactionInfoResumeEntity;
@@ -0,0 +1,12 @@
1
+ import { EResumeIntervalType } from '../../resume';
2
+ import { ITransactionResume } from '../interfaces/i-transaction-resume';
3
+ import { TransactionInfoResumeEntity } from './transaction-info-resume.entity';
4
+ export declare class TransactionResumeEntity implements ITransactionResume {
5
+ balance: number;
6
+ createdAt: Date;
7
+ id: string;
8
+ info: TransactionInfoResumeEntity;
9
+ interval: EResumeIntervalType;
10
+ updatedAt: Date;
11
+ constructor(data?: Partial<TransactionResumeEntity>);
12
+ }
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TransactionResumeEntity = void 0;
4
+ var resume_1 = require("../../resume");
5
+ var transaction_info_resume_entity_1 = require("./transaction-info-resume.entity");
6
+ var TransactionResumeEntity = /** @class */ (function () {
7
+ // #endregion Properties (6)
8
+ // #region Constructors (1)
9
+ function TransactionResumeEntity(data) {
10
+ // #region Properties (6)
11
+ this.balance = 0;
12
+ this.createdAt = new Date();
13
+ this.id = '';
14
+ this.info = new transaction_info_resume_entity_1.TransactionInfoResumeEntity();
15
+ this.interval = resume_1.EResumeIntervalType.DAY;
16
+ this.updatedAt = new Date();
17
+ if (data) {
18
+ for (var key in data) {
19
+ if (data.hasOwnProperty(key) && key in this) {
20
+ this[key] = data[key];
21
+ }
22
+ }
23
+ }
24
+ }
25
+ return TransactionResumeEntity;
26
+ }());
27
+ exports.TransactionResumeEntity = TransactionResumeEntity;
@@ -0,0 +1,5 @@
1
+ export interface ITransactionInfoResume {
2
+ companyId: string;
3
+ containerId: string;
4
+ companyName: string;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import { EResumeIntervalType } from '../../resume';
2
+ import { ITransactionInfoResume } from './i-transaction-info-resume';
3
+ export interface ITransactionResume {
4
+ balance: number;
5
+ createdAt: Date;
6
+ id: string;
7
+ info: ITransactionInfoResume;
8
+ interval: EResumeIntervalType;
9
+ updatedAt: Date;
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,8 @@
1
1
  export { ITransactionBalance } from './i-balance';
2
- export { IFeeDetail } from './i-fee-detail';
3
2
  export { IFee } from './i-fee';
3
+ export { IFeeDetail } from './i-fee-detail';
4
4
  export { ITransactionPaymentMethod } from './i-payment-method';
5
5
  export { ITransactionTotal } from './i-total';
6
6
  export { ITransaction } from './i-transaction';
7
+ export { ITransactionInfoResume } from './i-transaction-info-resume';
8
+ export { ITransactionResume } from './i-transaction-resume';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.4.15",
3
+ "version": "1.4.18",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",