RICADO Gen 4 API JS Client

RICADO Gen 4 API JS Client

Class

CompacSizerPackrunSummaryModel

Extends
  • BaseModel

Summary

CompacSizerPackrunSummaryModel Constructor

.

Description

Model Class for a Compac Sizer Packrun Summary

Constructor

protected

new CompacSizerPackrunSummaryModel(siteId)

CompacSizerPackrunSummaryModel Constructor

Parameters

  • siteId number

    The Site ID associated with this Compac Sizer Packrun Summary

Source

Members

outletProductChangesArray.<{timestamp: Date, outletNumber: number, productId: string, productName: ?string, outletProductChangeId: string}>

An Array of Outlet Product Changes

Type

  • Array.<{timestamp: Date, outletNumber: number, productId: string, productName: ?string, outletProductChangeId: string}>

Source

outletSummariesArray.<{name: string, type: string, number: number, totals: Array.<{classType: ?string, fruitSize: string, packType: ?string, weight: number, fruitCount: number, packCount: ?number}>}>

An Array of Packrun Summary Data Objects for each Outlet

Type

  • Array.<{name: string, type: string, number: number, totals: Array.<{classType: ?string, fruitSize: string, packType: ?string, weight: number, fruitCount: number, packCount: ?number}>}>

Source

Methods

static

fromJSON(json, siteId) → {CompacSizerPackrunSummaryModel}

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

Returns

  • CompacSizerPackrunSummaryModel

Source