Constructor
protected
new PackTypeModel(siteId)
PackTypeModel Constructor
Parameters
-
siteId
number
The Site ID associated with this Pack Type
Source
Members
codestring
The Code for this Pack Type
Type
-
string
Source
deletedboolean
Whether the Pack Type has been deleted
Type
-
boolean
Source
descriptionstring
An Optional Description for this Pack Type
Type
-
string
Source
formstring
The Physical Form of this Pack Type
Type
-
string
Source
fruitSizesArray.<{size: string, count: number}>
An Array of Fruit Sizes Defined for this Pack Type
Type
-
Array.<{size: string, count: number}>
Source
idstring
The Pack Type ID
Type
-
string
Source
namestring
The Name for this Pack Type
Type
-
string
Source
siteIdnumber
The Site ID associated with this Pack Type
Type
-
number
Source
updateTimestampDate
When the Pack Type was last updated
Type
-
Date
Source
Methods
static
fromJSON(json, siteId) → {PackTypeModel}
Create a new PackTypeModel 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 Pack Type
Returns
-
PackTypeModel