cecon-interfaces 1.1.85 → 1.1.87

Sign up to get free protection for your applications and to get access to all the features.
@@ -17,6 +17,7 @@ export declare class InvoiceEntity implements IInvoice {
17
17
  createdAt: Date;
18
18
  creditCard: InvoiceCreditCardEntity | null;
19
19
  currency: string;
20
+ customerId: string | null;
20
21
  discount: number;
21
22
  dueDateAt: Date;
22
23
  email: string;
@@ -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 (44)
8
+ // #endregion Properties (41)
9
9
  // #region Constructors (1)
10
10
  function InvoiceEntity(data) {
11
- // #region Properties (44)
11
+ // #region Properties (41)
12
12
  this.addition = 0;
13
13
  this.bankSlip = null;
14
14
  this.bankSlipExtraDue = 3;
@@ -18,6 +18,7 @@ var InvoiceEntity = /** @class */ (function () {
18
18
  this.createdAt = new Date();
19
19
  this.creditCard = null;
20
20
  this.currency = 'BRL';
21
+ this.customerId = null;
21
22
  this.discount = 0;
22
23
  this.dueDateAt = new Date(Date.now() + 3 * 24 * 60 * 60 * 1000);
23
24
  this.email = '';
@@ -30,6 +30,7 @@ export interface IInvoice {
30
30
  orderId: string;
31
31
  paidAt: Date | null;
32
32
  partnerId: string | null;
33
+ customerId: string | null;
33
34
  password: string | null;
34
35
  payer: IInvoicePayer;
35
36
  paymentMethod: EPaymentType;
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.1.85",
3
+ "version": "1.1.87",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -24,6 +24,7 @@ export declare class ProductGlobalEntity implements IProductGlobal {
24
24
  name: string;
25
25
  ncm: ProductNcmEntity;
26
26
  netWeight: number;
27
+ createdBy: string;
27
28
  price: number;
28
29
  tags: string[];
29
30
  thumbnail: string | null;
@@ -31,6 +31,7 @@ var ProductGlobalEntity = /** @class */ (function () {
31
31
  this.name = '';
32
32
  this.ncm = new product_ncm_entity_1.ProductNcmEntity();
33
33
  this.netWeight = 0;
34
+ this.createdBy = '';
34
35
  this.price = 0;
35
36
  this.tags = [];
36
37
  this.thumbnail = null;
@@ -49,6 +49,13 @@ export interface IProductGlobal {
49
49
  * @example "Product description"
50
50
  */
51
51
  description: string;
52
+ /**
53
+ * Name of the user who created the product.
54
+ * @minlength 1
55
+ * @maxlength 120
56
+ * @example "User name"
57
+ */
58
+ createdBy: string;
52
59
  /**
53
60
  * Gross weight of the product.
54
61
  * @example 1.5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.1.85",
3
+ "version": "1.1.87",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",