RICADO Gen 4 API JS Client

RICADO Gen 4 API JS Client

Class

FreshPackPackrunSummaryModel

Extends
  • BaseModel

Summary

FreshPackPackrunSummaryModel Constructor

.

Description

Model Class for a FreshPack Packrun Summary

Constructor

protected

new FreshPackPackrunSummaryModel(siteId)

FreshPackPackrunSummaryModel Constructor

Parameters

  • siteId number

    The Site ID associated with this FreshPack Packrun Summary

Source

Members

clearanceSummariesArray.<{fruitSize: ?string, tasteBand: ?string, maturityProtocol: ?string, harvestProtocol: ?string, clearanceDate: ?Date, kiwiStartDate: ?Date, trayEstimate: ?number, protocolADate: ?Date, protocolBDate: ?Date, protocolCDate: ?Date, protocolNDate: ?Date, useNIRPacking: ?boolean}>

An Array of Clearance Summary Data Objects for all Sizes

Type

  • Array.<{fruitSize: ?string, tasteBand: ?string, maturityProtocol: ?string, harvestProtocol: ?string, clearanceDate: ?Date, kiwiStartDate: ?Date, trayEstimate: ?number, protocolADate: ?Date, protocolBDate: ?Date, protocolCDate: ?Date, protocolNDate: ?Date, useNIRPacking: ?boolean}>

Source

traySummariesArray.<{classType: string, fruitSize: ?string, trayCount: number, averageTrayWeight: number, weight: number}>

An Array of Tray Summary Data Objects for all Sizes and Class Types

Type

  • Array.<{classType: string, fruitSize: ?string, trayCount: number, averageTrayWeight: number, weight: number}>

Source

Methods

static

fromJSON(json, siteId) → {FreshPackPackrunSummaryModel}

Create a new FreshPackPackrunSummaryModel 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 FreshPack Packrun Summary

Returns

  • FreshPackPackrunSummaryModel

Source