RICADO Gen 4 API JS Client

RICADO Gen 4 API JS Client

Class

CompacSizerBinWeightModel

Extends
  • BaseModel

Summary

CompacSizerBinWeightModel Constructor

.

Description

Model Class for a Compac Sizer Bin Weight

Constructor

protected

new CompacSizerBinWeightModel(siteId)

CompacSizerBinWeightModel Constructor

Parameters

  • siteId number

    The Site ID associated with this Compac Sizer Bin Weight

Source

Members

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

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

Methods

static

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

Source