Constructor
new CompacSizerBinWeightModel(siteId)
CompacSizerBinWeightModel Constructor
Parameters
-
siteId
number
The Site ID associated with this Compac Sizer Bin Weight
Source
Members
compacSizerIdstring
The Compac Sizer ID this Bin Weight is associated with
Type
-
string
Source
createdTimestampDate
When this Bin Weight was Created
Type
-
Date
Source
deletedboolean
Whether the Compac Sizer Bin Weight has been deleted
Type
-
boolean
Source
freshPackMultiGrowerBinsArray.<{classType: string, binNumber: ?string, printBinCard: boolean, binNumberApi: ?{requestCount: number, requestTimestamp: ?Date, responseCode: ?number, responseMessage: ?string, completed: boolean}, binCardApi: ?{requestCount: number, requestTimestamp: ?Date, responseCode: ?number, responseMessage: ?string, completed: boolean}}>
The Multi-Grower Bins that will be submitted to FreshPack
Type
-
Array.<{classType: string, binNumber: ?string, printBinCard: boolean, binNumberApi: ?{requestCount: number, requestTimestamp: ?Date, responseCode: ?number, responseMessage: ?string, completed: boolean}, binCardApi: ?{requestCount: number, requestTimestamp: ?Date, responseCode: ?number, responseMessage: ?string, completed: boolean}}>
Source
freshPackMultiGrowerBinWeightsArray.<{classType: string, weight: number, weightApi: ?{requestCount: number, requestTimestamp: ?Date, responseCode: ?number, responseMessage: ?string, completed: boolean}}>
The Multi-Grower Bin Weights that will be submitted to FreshPack
Type
-
Array.<{classType: string, weight: number, weightApi: ?{requestCount: number, requestTimestamp: ?Date, responseCode: ?number, responseMessage: ?string, completed: boolean}}>
Source
idstring
The Compac Sizer Bin Weight ID
Type
-
string
Source
packrunIdstring
The Packrun ID associated with this Bin Weight
Type
-
string
Source
siteIdnumber
The Site ID associated with this Compac Sizer Bin Weight
Type
-
number
Source
sourcesArray.<({type: string, outletNumber: number, outletName: ?string, weights: Array.<{classType: string, weight: number, fruitCount: ?number}>}|{type: string, weights: Array.<{classType: string, weight: number, fruitCount: ?number}>})>
The Sources and Weights that make up this Bin Weight
Type
-
Array.<({type: string, outletNumber: number, outletName: ?string, weights: Array.<{classType: string, weight: number, fruitCount: ?number}>}|{type: string, weights: Array.<{classType: string, weight: number, fruitCount: ?number}>})>
Source
timeBatchIdstring
The Time Batch ID associated with this Bin Weight
Type
-
string
Source
updateTimestampDate
When the Compac Sizer Bin Weight was last updated
Type
-
Date
Source
Methods
fromJSON(json, siteId) → {CompacSizerBinWeightModel}
Create a new CompacSizerBinWeightModel from a JSON Object or JSON String
Parameters
-
json
Object.<string, any>
|string
A JSON Object or JSON String
-
siteId
number
The Site ID associated with this Compac Sizer Bin Weight
Returns
-
CompacSizerBinWeightModel