RICADO Gen 4 API JS Client

RICADO Gen 4 API JS Client

Class

PackingLineModel

Extends
  • BaseModel

Summary

PackingLineModel Constructor

.

Description

Model Class for a Packing Line

Constructor

protected

new PackingLineModel(siteId)

PackingLineModel Constructor

Parameters

  • siteId number

    The Site ID associated with this Packing Line

Source

Members

classTypesArray.<{name: string, points: {currentPackrunPercentage: number, currentPackrunWeight: ?number}, classType: string}>

The Class Types that are defined for this Packing Line

Type

  • Array.<{name: string, points: {currentPackrunPercentage: number, currentPackrunWeight: ?number}, classType: string}>

Source

sizersArray.<{id: string, displayOrder: number, ownedBySecondaryPackingLine: boolean}>

The Sizer Objects that belong to this Packing Line

Type

  • Array.<{id: string, displayOrder: number, ownedBySecondaryPackingLine: boolean}>

Source

Methods

static

fromJSON(json, siteId) → {PackingLineModel}

Create a new PackingLineModel 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 Packing Line

Returns

  • PackingLineModel

Source