RICADO Gen 4 API JS Client

RICADO Gen 4 API JS Client

Class

RejectBinModel

Extends
  • BaseModel

Summary

RejectBinModel Constructor

.

Description

Model Class for a Reject Bin

Constructor

protected

new RejectBinModel(siteId)

RejectBinModel Constructor

Parameters

  • siteId number

    The Site ID associated with this Reject Bin

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

Methods

static

fromJSON(json, siteId) → {RejectBinModel}

Create a new RejectBinModel 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

Returns

  • RejectBinModel

Source