Constructor
new RejectBinWeightModel(siteId)
RejectBinWeightModel Constructor
Parameters
-
siteId
number
The Site ID associated with this Reject Bin Weight
Source
Members
createdTimestampDate
When this Reject Bin Weight was Created
Type
-
Date
Source
deletedboolean
Whether the Reject Bin Weight has been deleted
Type
-
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 Reject Bin Weight ID
Type
-
string
Source
netWeightnumber
The Net Weight Captured by the Reject Bin Scale
Type
-
number
Source
packrunIdstring
The Packrun this Reject Weight is associated with
Type
-
string
Source
rejectBinIdstring
The Reject Bin ID this Reject Weight is associated with
Type
-
string
Source
rejectBinScaleIdstring
The Reject Bin Scale ID this Reject Weight is associated with
Type
-
string
Source
siteIdnumber
The Site ID associated with this Reject Bin Weight
Type
-
number
Source
sourcesArray.<({type: string, sortingTableId: string, sortingTableName: ?string, weights: Array.<{classType: string, weight: number, fruitCount: ?number}>}|{type: string, beltName: ?string, weights: Array.<{classType: string, weight: number, fruitCount: ?number}>}|{type: string, sizerId: string, sizerName: ?string, outletNumber: number, outletName: ?string, weights: Array.<{classType: string, weight: number, fruitCount: ?number}>}|{type: string, mixedNames: Array.<string>, weights: Array.<{classType: string, weight: number, fruitCount: ?number}>})>
The Source Weights that make up the Net Weight
Type
-
Array.<({type: string, sortingTableId: string, sortingTableName: ?string, weights: Array.<{classType: string, weight: number, fruitCount: ?number}>}|{type: string, beltName: ?string, weights: Array.<{classType: string, weight: number, fruitCount: ?number}>}|{type: string, sizerId: string, sizerName: ?string, outletNumber: number, outletName: ?string, weights: Array.<{classType: string, weight: number, fruitCount: ?number}>}|{type: string, mixedNames: Array.<string>, weights: Array.<{classType: string, weight: number, fruitCount: ?number}>})>
Source
updateTimestampDate
When the Reject Bin Weight was last updated
Type
-
Date
Source
Methods
fromJSON(json, siteId) → {RejectBinWeightModel}
Create a new RejectBinWeightModel 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 Reject Bin Weight
Returns
-
RejectBinWeightModel