@ricado/api-client 2.5.6 → 2.5.8

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.
@@ -214,7 +214,7 @@ class PackingLineModel extends BaseModel
214
214
  /**
215
215
  * The FreshPack Integration Configuration for this Packing Line
216
216
  *
217
- * @type {?{points: {graders: number, binTypes: number, printerGroups: number, materialGroups: number, rejectCategories: number, productionFacilities: number, marketHolds: number, apiCommunicationStatus: number, currentPackrunClearanceSummary: number, nextPackrunClearanceSummary: number, currentPackrunMarketHolds: ?number, nextPackrunMarketHolds: ?number, apiVersion: number, activePackrunName: number, activeTimeBatch: number}, enabled: boolean, graderIds: number[], apiBaseUrl: string, computerName: string, productionFacilityId: number, classTypeRejectCategoryIds: Array<{classType: string, rejectCategoryId: number}>, packrunSourceTrayClassTypes: ?string[]}}
217
+ * @type {?{points: {graders: number, binTypes: number, printerGroups: number, materialGroups: number, rejectCategories: number, productionFacilities: number, marketHolds: number, varieties: ?number, produces: ?number, growingMethods: ?number, fruitClasses: ?number, fruitSizes: ?number, packStyles: ?number, nssLabelTypes: ?number, multiGrowerBinProducts: ?number, apiCommunicationStatus: number, currentPackrunClearanceSummary: number, nextPackrunClearanceSummary: number, currentPackrunMarketHolds: ?number, nextPackrunMarketHolds: ?number, apiVersion: ?number, activePackrunName: ?number, activeTimeBatch: ?number, classTypeMultiGrowerBinProductIds: ?number}, enabled: boolean, graderIds: number[], apiBaseUrl: string, computerName: string, productionFacilityId: number, classTypeRejectCategoryIds: ?Array<{classType: string, rejectCategoryId: number}>, packrunSourceTrayClassTypes: ?string[]}}
218
218
  * @public
219
219
  */
220
220
  this.freshPackIntegration = null;
@@ -222,7 +222,7 @@ class PackingLineModel extends BaseModel
222
222
  /**
223
223
  * The FreshQuality Integration Configuration for this Packing Line
224
224
  *
225
- * @type {?{points: {currentPackrunSamples: number, apiCommunicationStatus: number, currentPackrunMajorPackingDefects: number, currentPackrunMinorPackingDefects: number, currentPackrunTotalPackingDefects: number, currentPackrunFutureStorageDefects: number, currentPackrunMajorPackingDefectsCount: number, currentPackrunMinorPackingDefectsCount: number, currentPackrunTotalPackingDefectsCount: number, currentPackrunFutureStorageDefectsCount: number, currentPackrunRejectAnalysisSamples: number, sampleTypes: number}, enabled: boolean, username: string, password: string, apiBaseUrl: string, sampleTypeIds: number[], rejectAnalysisSampleTypeIds: number[]}}
225
+ * @type {?{points: {currentPackrunSamples: number, apiCommunicationStatus: number, currentPackrunMajorPackingDefects: number, currentPackrunMinorPackingDefects: number, currentPackrunTotalPackingDefects: number, currentPackrunFutureStorageDefects: number, currentPackrunMajorPackingDefectsCount: number, currentPackrunMinorPackingDefectsCount: number, currentPackrunTotalPackingDefectsCount: number, currentPackrunFutureStorageDefectsCount: number, currentPackrunRejectAnalysisSamples: ?number, sampleTypes: ?number}, enabled: boolean, username: string, password: string, apiBaseUrl: string, sampleTypeIds: number[], rejectAnalysisSampleTypeIds: number[]}}
226
226
  * @public
227
227
  */
228
228
  this.freshQualityIntegration = null;
@@ -5303,6 +5303,174 @@ class PackingLineModel extends BaseModel
5303
5303
  pointsObject.marketHolds = 0;
5304
5304
  }
5305
5305
 
5306
+ if(typeof jsonObject['freshPackIntegration'].points === 'object' && 'varieties' in jsonObject['freshPackIntegration'].points)
5307
+ {
5308
+ pointsObject.varieties = (function(){
5309
+ if(jsonObject['freshPackIntegration'].points.varieties === null)
5310
+ {
5311
+ return null;
5312
+ }
5313
+
5314
+ if(typeof jsonObject['freshPackIntegration'].points.varieties !== 'number')
5315
+ {
5316
+ return Number.isInteger(Number(jsonObject['freshPackIntegration'].points.varieties)) ? Number(jsonObject['freshPackIntegration'].points.varieties) : Math.floor(Number(jsonObject['freshPackIntegration'].points.varieties));
5317
+ }
5318
+
5319
+ return Number.isInteger(jsonObject['freshPackIntegration'].points.varieties) ? jsonObject['freshPackIntegration'].points.varieties : Math.floor(jsonObject['freshPackIntegration'].points.varieties);
5320
+ }());
5321
+ }
5322
+ else
5323
+ {
5324
+ pointsObject.varieties = null;
5325
+ }
5326
+
5327
+ if(typeof jsonObject['freshPackIntegration'].points === 'object' && 'produces' in jsonObject['freshPackIntegration'].points)
5328
+ {
5329
+ pointsObject.produces = (function(){
5330
+ if(jsonObject['freshPackIntegration'].points.produces === null)
5331
+ {
5332
+ return null;
5333
+ }
5334
+
5335
+ if(typeof jsonObject['freshPackIntegration'].points.produces !== 'number')
5336
+ {
5337
+ return Number.isInteger(Number(jsonObject['freshPackIntegration'].points.produces)) ? Number(jsonObject['freshPackIntegration'].points.produces) : Math.floor(Number(jsonObject['freshPackIntegration'].points.produces));
5338
+ }
5339
+
5340
+ return Number.isInteger(jsonObject['freshPackIntegration'].points.produces) ? jsonObject['freshPackIntegration'].points.produces : Math.floor(jsonObject['freshPackIntegration'].points.produces);
5341
+ }());
5342
+ }
5343
+ else
5344
+ {
5345
+ pointsObject.produces = null;
5346
+ }
5347
+
5348
+ if(typeof jsonObject['freshPackIntegration'].points === 'object' && 'growingMethods' in jsonObject['freshPackIntegration'].points)
5349
+ {
5350
+ pointsObject.growingMethods = (function(){
5351
+ if(jsonObject['freshPackIntegration'].points.growingMethods === null)
5352
+ {
5353
+ return null;
5354
+ }
5355
+
5356
+ if(typeof jsonObject['freshPackIntegration'].points.growingMethods !== 'number')
5357
+ {
5358
+ return Number.isInteger(Number(jsonObject['freshPackIntegration'].points.growingMethods)) ? Number(jsonObject['freshPackIntegration'].points.growingMethods) : Math.floor(Number(jsonObject['freshPackIntegration'].points.growingMethods));
5359
+ }
5360
+
5361
+ return Number.isInteger(jsonObject['freshPackIntegration'].points.growingMethods) ? jsonObject['freshPackIntegration'].points.growingMethods : Math.floor(jsonObject['freshPackIntegration'].points.growingMethods);
5362
+ }());
5363
+ }
5364
+ else
5365
+ {
5366
+ pointsObject.growingMethods = null;
5367
+ }
5368
+
5369
+ if(typeof jsonObject['freshPackIntegration'].points === 'object' && 'fruitClasses' in jsonObject['freshPackIntegration'].points)
5370
+ {
5371
+ pointsObject.fruitClasses = (function(){
5372
+ if(jsonObject['freshPackIntegration'].points.fruitClasses === null)
5373
+ {
5374
+ return null;
5375
+ }
5376
+
5377
+ if(typeof jsonObject['freshPackIntegration'].points.fruitClasses !== 'number')
5378
+ {
5379
+ return Number.isInteger(Number(jsonObject['freshPackIntegration'].points.fruitClasses)) ? Number(jsonObject['freshPackIntegration'].points.fruitClasses) : Math.floor(Number(jsonObject['freshPackIntegration'].points.fruitClasses));
5380
+ }
5381
+
5382
+ return Number.isInteger(jsonObject['freshPackIntegration'].points.fruitClasses) ? jsonObject['freshPackIntegration'].points.fruitClasses : Math.floor(jsonObject['freshPackIntegration'].points.fruitClasses);
5383
+ }());
5384
+ }
5385
+ else
5386
+ {
5387
+ pointsObject.fruitClasses = null;
5388
+ }
5389
+
5390
+ if(typeof jsonObject['freshPackIntegration'].points === 'object' && 'fruitSizes' in jsonObject['freshPackIntegration'].points)
5391
+ {
5392
+ pointsObject.fruitSizes = (function(){
5393
+ if(jsonObject['freshPackIntegration'].points.fruitSizes === null)
5394
+ {
5395
+ return null;
5396
+ }
5397
+
5398
+ if(typeof jsonObject['freshPackIntegration'].points.fruitSizes !== 'number')
5399
+ {
5400
+ return Number.isInteger(Number(jsonObject['freshPackIntegration'].points.fruitSizes)) ? Number(jsonObject['freshPackIntegration'].points.fruitSizes) : Math.floor(Number(jsonObject['freshPackIntegration'].points.fruitSizes));
5401
+ }
5402
+
5403
+ return Number.isInteger(jsonObject['freshPackIntegration'].points.fruitSizes) ? jsonObject['freshPackIntegration'].points.fruitSizes : Math.floor(jsonObject['freshPackIntegration'].points.fruitSizes);
5404
+ }());
5405
+ }
5406
+ else
5407
+ {
5408
+ pointsObject.fruitSizes = null;
5409
+ }
5410
+
5411
+ if(typeof jsonObject['freshPackIntegration'].points === 'object' && 'packStyles' in jsonObject['freshPackIntegration'].points)
5412
+ {
5413
+ pointsObject.packStyles = (function(){
5414
+ if(jsonObject['freshPackIntegration'].points.packStyles === null)
5415
+ {
5416
+ return null;
5417
+ }
5418
+
5419
+ if(typeof jsonObject['freshPackIntegration'].points.packStyles !== 'number')
5420
+ {
5421
+ return Number.isInteger(Number(jsonObject['freshPackIntegration'].points.packStyles)) ? Number(jsonObject['freshPackIntegration'].points.packStyles) : Math.floor(Number(jsonObject['freshPackIntegration'].points.packStyles));
5422
+ }
5423
+
5424
+ return Number.isInteger(jsonObject['freshPackIntegration'].points.packStyles) ? jsonObject['freshPackIntegration'].points.packStyles : Math.floor(jsonObject['freshPackIntegration'].points.packStyles);
5425
+ }());
5426
+ }
5427
+ else
5428
+ {
5429
+ pointsObject.packStyles = null;
5430
+ }
5431
+
5432
+ if(typeof jsonObject['freshPackIntegration'].points === 'object' && 'nssLabelTypes' in jsonObject['freshPackIntegration'].points)
5433
+ {
5434
+ pointsObject.nssLabelTypes = (function(){
5435
+ if(jsonObject['freshPackIntegration'].points.nssLabelTypes === null)
5436
+ {
5437
+ return null;
5438
+ }
5439
+
5440
+ if(typeof jsonObject['freshPackIntegration'].points.nssLabelTypes !== 'number')
5441
+ {
5442
+ return Number.isInteger(Number(jsonObject['freshPackIntegration'].points.nssLabelTypes)) ? Number(jsonObject['freshPackIntegration'].points.nssLabelTypes) : Math.floor(Number(jsonObject['freshPackIntegration'].points.nssLabelTypes));
5443
+ }
5444
+
5445
+ return Number.isInteger(jsonObject['freshPackIntegration'].points.nssLabelTypes) ? jsonObject['freshPackIntegration'].points.nssLabelTypes : Math.floor(jsonObject['freshPackIntegration'].points.nssLabelTypes);
5446
+ }());
5447
+ }
5448
+ else
5449
+ {
5450
+ pointsObject.nssLabelTypes = null;
5451
+ }
5452
+
5453
+ if(typeof jsonObject['freshPackIntegration'].points === 'object' && 'multiGrowerBinProducts' in jsonObject['freshPackIntegration'].points)
5454
+ {
5455
+ pointsObject.multiGrowerBinProducts = (function(){
5456
+ if(jsonObject['freshPackIntegration'].points.multiGrowerBinProducts === null)
5457
+ {
5458
+ return null;
5459
+ }
5460
+
5461
+ if(typeof jsonObject['freshPackIntegration'].points.multiGrowerBinProducts !== 'number')
5462
+ {
5463
+ return Number.isInteger(Number(jsonObject['freshPackIntegration'].points.multiGrowerBinProducts)) ? Number(jsonObject['freshPackIntegration'].points.multiGrowerBinProducts) : Math.floor(Number(jsonObject['freshPackIntegration'].points.multiGrowerBinProducts));
5464
+ }
5465
+
5466
+ return Number.isInteger(jsonObject['freshPackIntegration'].points.multiGrowerBinProducts) ? jsonObject['freshPackIntegration'].points.multiGrowerBinProducts : Math.floor(jsonObject['freshPackIntegration'].points.multiGrowerBinProducts);
5467
+ }());
5468
+ }
5469
+ else
5470
+ {
5471
+ pointsObject.multiGrowerBinProducts = null;
5472
+ }
5473
+
5306
5474
  if(typeof jsonObject['freshPackIntegration'].points === 'object' && 'apiCommunicationStatus' in jsonObject['freshPackIntegration'].points)
5307
5475
  {
5308
5476
  pointsObject.apiCommunicationStatus = (function(){
@@ -5396,6 +5564,11 @@ class PackingLineModel extends BaseModel
5396
5564
  if(typeof jsonObject['freshPackIntegration'].points === 'object' && 'apiVersion' in jsonObject['freshPackIntegration'].points)
5397
5565
  {
5398
5566
  pointsObject.apiVersion = (function(){
5567
+ if(jsonObject['freshPackIntegration'].points.apiVersion === null)
5568
+ {
5569
+ return null;
5570
+ }
5571
+
5399
5572
  if(typeof jsonObject['freshPackIntegration'].points.apiVersion !== 'number')
5400
5573
  {
5401
5574
  return Number.isInteger(Number(jsonObject['freshPackIntegration'].points.apiVersion)) ? Number(jsonObject['freshPackIntegration'].points.apiVersion) : Math.floor(Number(jsonObject['freshPackIntegration'].points.apiVersion));
@@ -5406,12 +5579,17 @@ class PackingLineModel extends BaseModel
5406
5579
  }
5407
5580
  else
5408
5581
  {
5409
- pointsObject.apiVersion = 0;
5582
+ pointsObject.apiVersion = null;
5410
5583
  }
5411
5584
 
5412
5585
  if(typeof jsonObject['freshPackIntegration'].points === 'object' && 'activePackrunName' in jsonObject['freshPackIntegration'].points)
5413
5586
  {
5414
5587
  pointsObject.activePackrunName = (function(){
5588
+ if(jsonObject['freshPackIntegration'].points.activePackrunName === null)
5589
+ {
5590
+ return null;
5591
+ }
5592
+
5415
5593
  if(typeof jsonObject['freshPackIntegration'].points.activePackrunName !== 'number')
5416
5594
  {
5417
5595
  return Number.isInteger(Number(jsonObject['freshPackIntegration'].points.activePackrunName)) ? Number(jsonObject['freshPackIntegration'].points.activePackrunName) : Math.floor(Number(jsonObject['freshPackIntegration'].points.activePackrunName));
@@ -5422,12 +5600,17 @@ class PackingLineModel extends BaseModel
5422
5600
  }
5423
5601
  else
5424
5602
  {
5425
- pointsObject.activePackrunName = 0;
5603
+ pointsObject.activePackrunName = null;
5426
5604
  }
5427
5605
 
5428
5606
  if(typeof jsonObject['freshPackIntegration'].points === 'object' && 'activeTimeBatch' in jsonObject['freshPackIntegration'].points)
5429
5607
  {
5430
5608
  pointsObject.activeTimeBatch = (function(){
5609
+ if(jsonObject['freshPackIntegration'].points.activeTimeBatch === null)
5610
+ {
5611
+ return null;
5612
+ }
5613
+
5431
5614
  if(typeof jsonObject['freshPackIntegration'].points.activeTimeBatch !== 'number')
5432
5615
  {
5433
5616
  return Number.isInteger(Number(jsonObject['freshPackIntegration'].points.activeTimeBatch)) ? Number(jsonObject['freshPackIntegration'].points.activeTimeBatch) : Math.floor(Number(jsonObject['freshPackIntegration'].points.activeTimeBatch));
@@ -5438,7 +5621,28 @@ class PackingLineModel extends BaseModel
5438
5621
  }
5439
5622
  else
5440
5623
  {
5441
- pointsObject.activeTimeBatch = 0;
5624
+ pointsObject.activeTimeBatch = null;
5625
+ }
5626
+
5627
+ if(typeof jsonObject['freshPackIntegration'].points === 'object' && 'classTypeMultiGrowerBinProductIds' in jsonObject['freshPackIntegration'].points)
5628
+ {
5629
+ pointsObject.classTypeMultiGrowerBinProductIds = (function(){
5630
+ if(jsonObject['freshPackIntegration'].points.classTypeMultiGrowerBinProductIds === null)
5631
+ {
5632
+ return null;
5633
+ }
5634
+
5635
+ if(typeof jsonObject['freshPackIntegration'].points.classTypeMultiGrowerBinProductIds !== 'number')
5636
+ {
5637
+ return Number.isInteger(Number(jsonObject['freshPackIntegration'].points.classTypeMultiGrowerBinProductIds)) ? Number(jsonObject['freshPackIntegration'].points.classTypeMultiGrowerBinProductIds) : Math.floor(Number(jsonObject['freshPackIntegration'].points.classTypeMultiGrowerBinProductIds));
5638
+ }
5639
+
5640
+ return Number.isInteger(jsonObject['freshPackIntegration'].points.classTypeMultiGrowerBinProductIds) ? jsonObject['freshPackIntegration'].points.classTypeMultiGrowerBinProductIds : Math.floor(jsonObject['freshPackIntegration'].points.classTypeMultiGrowerBinProductIds);
5641
+ }());
5642
+ }
5643
+ else
5644
+ {
5645
+ pointsObject.classTypeMultiGrowerBinProductIds = null;
5442
5646
  }
5443
5647
 
5444
5648
  return pointsObject;
@@ -5463,6 +5667,22 @@ class PackingLineModel extends BaseModel
5463
5667
 
5464
5668
  pointsDefaultValue.marketHolds = 0;
5465
5669
 
5670
+ pointsDefaultValue.varieties = null;
5671
+
5672
+ pointsDefaultValue.produces = null;
5673
+
5674
+ pointsDefaultValue.growingMethods = null;
5675
+
5676
+ pointsDefaultValue.fruitClasses = null;
5677
+
5678
+ pointsDefaultValue.fruitSizes = null;
5679
+
5680
+ pointsDefaultValue.packStyles = null;
5681
+
5682
+ pointsDefaultValue.nssLabelTypes = null;
5683
+
5684
+ pointsDefaultValue.multiGrowerBinProducts = null;
5685
+
5466
5686
  pointsDefaultValue.apiCommunicationStatus = 0;
5467
5687
 
5468
5688
  pointsDefaultValue.currentPackrunClearanceSummary = 0;
@@ -5473,11 +5693,13 @@ class PackingLineModel extends BaseModel
5473
5693
 
5474
5694
  pointsDefaultValue.nextPackrunMarketHolds = null;
5475
5695
 
5476
- pointsDefaultValue.apiVersion = 0;
5696
+ pointsDefaultValue.apiVersion = null;
5697
+
5698
+ pointsDefaultValue.activePackrunName = null;
5477
5699
 
5478
- pointsDefaultValue.activePackrunName = 0;
5700
+ pointsDefaultValue.activeTimeBatch = null;
5479
5701
 
5480
- pointsDefaultValue.activeTimeBatch = 0;
5702
+ pointsDefaultValue.classTypeMultiGrowerBinProductIds = null;
5481
5703
 
5482
5704
  return pointsDefaultValue;
5483
5705
  }());
@@ -5575,6 +5797,11 @@ class PackingLineModel extends BaseModel
5575
5797
  if(typeof jsonObject['freshPackIntegration'] === 'object' && 'classTypeRejectCategoryIds' in jsonObject['freshPackIntegration'])
5576
5798
  {
5577
5799
  freshPackIntegrationObject.classTypeRejectCategoryIds = (function(){
5800
+ if(jsonObject['freshPackIntegration'].classTypeRejectCategoryIds === null)
5801
+ {
5802
+ return null;
5803
+ }
5804
+
5578
5805
  if(Array.isArray(jsonObject['freshPackIntegration'].classTypeRejectCategoryIds) !== true)
5579
5806
  {
5580
5807
  return [];
@@ -5623,7 +5850,7 @@ class PackingLineModel extends BaseModel
5623
5850
  }
5624
5851
  else
5625
5852
  {
5626
- freshPackIntegrationObject.classTypeRejectCategoryIds = [];
5853
+ freshPackIntegrationObject.classTypeRejectCategoryIds = null;
5627
5854
  }
5628
5855
 
5629
5856
  if(typeof jsonObject['freshPackIntegration'] === 'object' && 'packrunSourceTrayClassTypes' in jsonObject['freshPackIntegration'])
@@ -5838,6 +6065,11 @@ class PackingLineModel extends BaseModel
5838
6065
  if(typeof jsonObject['freshQualityIntegration'].points === 'object' && 'currentPackrunRejectAnalysisSamples' in jsonObject['freshQualityIntegration'].points)
5839
6066
  {
5840
6067
  pointsObject.currentPackrunRejectAnalysisSamples = (function(){
6068
+ if(jsonObject['freshQualityIntegration'].points.currentPackrunRejectAnalysisSamples === null)
6069
+ {
6070
+ return null;
6071
+ }
6072
+
5841
6073
  if(typeof jsonObject['freshQualityIntegration'].points.currentPackrunRejectAnalysisSamples !== 'number')
5842
6074
  {
5843
6075
  return Number.isInteger(Number(jsonObject['freshQualityIntegration'].points.currentPackrunRejectAnalysisSamples)) ? Number(jsonObject['freshQualityIntegration'].points.currentPackrunRejectAnalysisSamples) : Math.floor(Number(jsonObject['freshQualityIntegration'].points.currentPackrunRejectAnalysisSamples));
@@ -5848,12 +6080,17 @@ class PackingLineModel extends BaseModel
5848
6080
  }
5849
6081
  else
5850
6082
  {
5851
- pointsObject.currentPackrunRejectAnalysisSamples = 0;
6083
+ pointsObject.currentPackrunRejectAnalysisSamples = null;
5852
6084
  }
5853
6085
 
5854
6086
  if(typeof jsonObject['freshQualityIntegration'].points === 'object' && 'sampleTypes' in jsonObject['freshQualityIntegration'].points)
5855
6087
  {
5856
6088
  pointsObject.sampleTypes = (function(){
6089
+ if(jsonObject['freshQualityIntegration'].points.sampleTypes === null)
6090
+ {
6091
+ return null;
6092
+ }
6093
+
5857
6094
  if(typeof jsonObject['freshQualityIntegration'].points.sampleTypes !== 'number')
5858
6095
  {
5859
6096
  return Number.isInteger(Number(jsonObject['freshQualityIntegration'].points.sampleTypes)) ? Number(jsonObject['freshQualityIntegration'].points.sampleTypes) : Math.floor(Number(jsonObject['freshQualityIntegration'].points.sampleTypes));
@@ -5864,7 +6101,7 @@ class PackingLineModel extends BaseModel
5864
6101
  }
5865
6102
  else
5866
6103
  {
5867
- pointsObject.sampleTypes = 0;
6104
+ pointsObject.sampleTypes = null;
5868
6105
  }
5869
6106
 
5870
6107
  return pointsObject;
@@ -5895,9 +6132,9 @@ class PackingLineModel extends BaseModel
5895
6132
 
5896
6133
  pointsDefaultValue.currentPackrunFutureStorageDefectsCount = 0;
5897
6134
 
5898
- pointsDefaultValue.currentPackrunRejectAnalysisSamples = 0;
6135
+ pointsDefaultValue.currentPackrunRejectAnalysisSamples = null;
5899
6136
 
5900
- pointsDefaultValue.sampleTypes = 0;
6137
+ pointsDefaultValue.sampleTypes = null;
5901
6138
 
5902
6139
  return pointsDefaultValue;
5903
6140
  }());
@@ -254,7 +254,7 @@ class RejectBinScaleModel extends BaseModel
254
254
  /**
255
255
  * The FreshPack Integration Configuration for this Reject Bin Scale
256
256
  *
257
- * @type {?{points: Object, enabled: boolean, materialGroupId: number, binTypeId: number, printerGroupId: ?number, binCardPrintingEnabled: boolean, useWindowsDriverApi: boolean}}
257
+ * @type {?{points: Object, enabled: boolean, materialGroupId: ?number, binTypeId: number, printerGroupId: ?number, binCardPrintingEnabled: boolean, useWindowsDriverApi: boolean}}
258
258
  * @public
259
259
  */
260
260
  this.freshPackIntegration = null;
@@ -1303,6 +1303,11 @@ class RejectBinScaleModel extends BaseModel
1303
1303
  if(typeof jsonObject['freshPackIntegration'] === 'object' && 'materialGroupId' in jsonObject['freshPackIntegration'])
1304
1304
  {
1305
1305
  freshPackIntegrationObject.materialGroupId = (function(){
1306
+ if(jsonObject['freshPackIntegration'].materialGroupId === null)
1307
+ {
1308
+ return null;
1309
+ }
1310
+
1306
1311
  if(typeof jsonObject['freshPackIntegration'].materialGroupId !== 'number')
1307
1312
  {
1308
1313
  return Number.isInteger(Number(jsonObject['freshPackIntegration'].materialGroupId)) ? Number(jsonObject['freshPackIntegration'].materialGroupId) : Math.floor(Number(jsonObject['freshPackIntegration'].materialGroupId));
@@ -1313,7 +1318,7 @@ class RejectBinScaleModel extends BaseModel
1313
1318
  }
1314
1319
  else
1315
1320
  {
1316
- freshPackIntegrationObject.materialGroupId = 0;
1321
+ freshPackIntegrationObject.materialGroupId = null;
1317
1322
  }
1318
1323
 
1319
1324
  if(typeof jsonObject['freshPackIntegration'] === 'object' && 'binTypeId' in jsonObject['freshPackIntegration'])
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '2.5.6';
2
+ export const version = '2.5.8';