cecon-interfaces 1.1.82 → 1.1.83

Sign up to get free protection for your applications and to get access to all the features.
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.1.82",
3
+ "version": "1.1.83",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -29,7 +29,7 @@ export declare class ProductGlobalEntity implements IProductGlobal {
29
29
  thumbnail: string | null;
30
30
  updatedAt: Date;
31
31
  width: number;
32
- constructor(data?: Partial<ProductGlobalEntity>, bluesoft?: IBlueSoft, ref?: number);
32
+ constructor(data?: Partial<ProductGlobalEntity>, bluesoft?: IBlueSoft);
33
33
  private getGtinFromGtins;
34
34
  private currencyStringToNumber;
35
35
  }
@@ -8,7 +8,7 @@ var product_ncm_entity_1 = require("./product-ncm.entity");
8
8
  var ProductGlobalEntity = /** @class */ (function () {
9
9
  // #endregion Properties (26)
10
10
  // #region Constructors (1)
11
- function ProductGlobalEntity(data, bluesoft, ref) {
11
+ function ProductGlobalEntity(data, bluesoft) {
12
12
  var _a, _b, _c, _d;
13
13
  // #region Properties (26)
14
14
  this.active = true;
@@ -51,8 +51,8 @@ var ProductGlobalEntity = /** @class */ (function () {
51
51
  this.id = '';
52
52
  this.length = bluesoft.length || 0;
53
53
  this.maxPrice = bluesoft.maxPrice || 0;
54
- this.measureQuantity = ((_b = (_a = this.getGtinFromGtins(ref || 0, bluesoft.gtins)) === null || _a === void 0 ? void 0 : _a.commercialUnit) === null || _b === void 0 ? void 0 : _b.quantityPackaging) || 1;
55
- this.measureUnit = ((_d = (_c = this.getGtinFromGtins(ref || 0, bluesoft.gtins)) === null || _c === void 0 ? void 0 : _c.commercialUnit) === null || _d === void 0 ? void 0 : _d.typePackaging) || 'Unidade';
54
+ this.measureQuantity = ((_b = (_a = this.getGtinFromGtins(bluesoft.gtin || 0, bluesoft.gtins)) === null || _a === void 0 ? void 0 : _a.commercialUnit) === null || _b === void 0 ? void 0 : _b.quantityPackaging) || 1;
55
+ this.measureUnit = ((_d = (_c = this.getGtinFromGtins(bluesoft.gtin || 0, bluesoft.gtins)) === null || _c === void 0 ? void 0 : _c.commercialUnit) === null || _d === void 0 ? void 0 : _d.typePackaging) || 'Unidade';
56
56
  this.minPrice = bluesoft.minPrice || 0;
57
57
  this.name = bluesoft.description || '';
58
58
  this.ncm = new product_ncm_entity_1.ProductNcmEntity(bluesoft.ncm);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.1.82",
3
+ "version": "1.1.83",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",