cecon-interfaces 1.7.68 → 1.7.70

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,6 @@
1
+ import { INatipayMercadoPago } from '../interfaces/i-mercado-pago';
2
+ export declare class NatipayOrderMercadoPagoEntity implements INatipayMercadoPago {
3
+ preferenceId: string;
4
+ qrOrderId: string;
5
+ constructor(data?: Partial<NatipayOrderMercadoPagoEntity>);
6
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NatipayOrderMercadoPagoEntity = void 0;
4
+ var NatipayOrderMercadoPagoEntity = /** @class */ (function () {
5
+ function NatipayOrderMercadoPagoEntity(data) {
6
+ this.preferenceId = '';
7
+ this.qrOrderId = '';
8
+ if (data) {
9
+ for (var key in data) {
10
+ if (data.hasOwnProperty(key) && key in this) {
11
+ this[key] = data[key];
12
+ }
13
+ }
14
+ }
15
+ }
16
+ return NatipayOrderMercadoPagoEntity;
17
+ }());
18
+ exports.NatipayOrderMercadoPagoEntity = NatipayOrderMercadoPagoEntity;
@@ -1,5 +1,5 @@
1
- import { INatiapyOrderItem } from '../interfaces';
2
- export declare class NatipayOrderItemEntity implements INatiapyOrderItem {
1
+ import { INatipayOrderItem } from '../interfaces';
2
+ export declare class NatipayOrderItemEntity implements INatipayOrderItem {
3
3
  externalCode: string;
4
4
  id: string;
5
5
  index: number;
@@ -3,6 +3,7 @@ import { IOrderAdditionalFee, IOrderBenefits, IOrderCancellation, IOrderCustomer
3
3
  import { ENatipayOrderStatus } from '../enums';
4
4
  import { INatipayOrder } from '../interfaces/i-order';
5
5
  import { NatipayOrderItemEntity } from './item.entity';
6
+ import { NatipayOrderMercadoPagoEntity } from './item.entity copy';
6
7
  export declare class NatipayOrderEntity implements INatipayOrder {
7
8
  additionalFees: IOrderAdditionalFee[];
8
9
  benefits: IOrderBenefits[];
@@ -16,13 +17,14 @@ export declare class NatipayOrderEntity implements INatipayOrder {
16
17
  id: string;
17
18
  invoiceId: string | null;
18
19
  items: NatipayOrderItemEntity[];
20
+ mercadoPago: NatipayOrderMercadoPagoEntity | null;
19
21
  payments: IOrderPayment | null;
20
- preferenceId: string;
21
22
  reference: string;
22
23
  salesChannel: string;
23
24
  sandbox: boolean;
24
25
  status: ENatipayOrderStatus;
25
26
  total: OrderTotalEntity;
27
+ transactionId: string | null;
26
28
  updatedAt: Date;
27
29
  version: string;
28
30
  constructor(data?: Partial<NatipayOrderEntity>);
@@ -18,13 +18,14 @@ var NatipayOrderEntity = /** @class */ (function () {
18
18
  this.id = '';
19
19
  this.invoiceId = null;
20
20
  this.items = [];
21
+ this.mercadoPago = null;
21
22
  this.payments = null;
22
- this.preferenceId = '';
23
23
  this.reference = '';
24
24
  this.salesChannel = '';
25
25
  this.sandbox = false;
26
26
  this.status = enums_1.ENatipayOrderStatus.PLACED;
27
27
  this.total = new order_1.OrderTotalEntity();
28
+ this.transactionId = null;
28
29
  this.updatedAt = new Date();
29
30
  this.version = '';
30
31
  if (data) {
@@ -1,4 +1,4 @@
1
- export interface INatiapyOrderItem {
1
+ export interface INatipayOrderItem {
2
2
  externalCode: string;
3
3
  id: string;
4
4
  index: number;
@@ -0,0 +1,4 @@
1
+ export interface INatipayMercadoPago {
2
+ preferenceId: string;
3
+ qrOrderId: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,8 @@
1
1
  import { EFrom } from '../../../general';
2
2
  import { IOrderAdditionalFee, IOrderBenefits, IOrderCancellation, IOrderCustomer, IOrderPayment, IOrderTotal } from '../../../order';
3
3
  import { ENatipayOrderStatus } from '../enums';
4
- import { INatiapyOrderItem } from './i-item';
4
+ import { INatipayOrderItem } from './i-item';
5
+ import { INatipayMercadoPago } from './i-mercado-pago';
5
6
  export interface INatipayOrder {
6
7
  additionalFees: IOrderAdditionalFee[];
7
8
  benefits: IOrderBenefits[];
@@ -14,14 +15,15 @@ export interface INatipayOrder {
14
15
  from: EFrom;
15
16
  id: string;
16
17
  invoiceId: string | null;
17
- items: INatiapyOrderItem[];
18
+ items: INatipayOrderItem[];
19
+ mercadoPago: INatipayMercadoPago | null;
18
20
  payments: IOrderPayment | null;
19
- preferenceId: string;
20
21
  reference: string;
21
22
  salesChannel: string;
22
23
  sandbox: boolean;
23
24
  status: ENatipayOrderStatus;
24
25
  total: IOrderTotal;
26
+ transactionId: string | null;
25
27
  updatedAt: Date;
26
28
  version: string;
27
29
  }
@@ -1,2 +1,2 @@
1
- export { INatiapyOrderItem } from './i-item';
1
+ export { INatipayOrderItem } from './i-item';
2
2
  export { INatipayOrder } from './i-order';
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.7.68",
3
+ "version": "1.7.70",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.7.68",
3
+ "version": "1.7.70",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",