RICADO Gen 4 API JS Client

RICADO Gen 4 API JS Client

Class

RejectBinWeightModel

Extends
  • BaseModel

Summary

RejectBinWeightModel Constructor

.

Description

Model Class for a Reject Bin Weight

Constructor

protected

new RejectBinWeightModel(siteId)

RejectBinWeightModel Constructor

Parameters

  • siteId number

    The Site ID associated with this Reject Bin Weight

Source

Members

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

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

Methods

static

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

Source