Constructor
new PackrunGrowerNotificationModel(siteId)
PackrunGrowerNotificationModel Constructor
Parameters
-
siteId
numberThe Site ID associated with this Packrun Grower Notification
Source
Members
createdTimestampDate
When this Grower Notification was Created
Type
-
Date
Source
deletedboolean
Whether the Packrun Grower Notification has been deleted
Type
-
boolean
Source
emailContactsArray.<{email: string, firstName: string, lastName: ?string}>
An Array of Email Contacts for this Grower Notification
Type
-
Array.<{email: string, firstName: string, lastName: ?string}>
Source
emailRequestObject
The Email Request Status indicating progress when sending Emails
Type
-
Object
Source
idstring
The Packrun Grower Notification ID
Type
-
string
Source
notificationTypestring
The Grower Notification Type
Type
-
string
Source
packingLineIdstring
The Packing Line ID this Grower Notification is associated with
Type
-
string
Source
packrunIdstring
The Packrun ID this Grower Notification is associated with
Type
-
string
Source
siteIdnumber
The Site ID associated with this Packrun Grower Notification
Type
-
number
Source
smsContactsArray.<{mobileNumber: string, firstName: string, lastName: ?string}>
An Array of SMS Contacts for this Grower Notification
Type
-
Array.<{mobileNumber: string, firstName: string, lastName: ?string}>
Source
smsRequestsArray.<{mobileNumber: string, messageId: ?string, messageStatus: ?string, sendRequestCount: number, sendRequestTimestamp: ?Date, sendResponseCode: ?number, sendResponseMessage: ?string, getStatusRequestCount: number, getStatusRequestTimestamp: ?Date, getStatusResponseCode: ?number, getStatusResponseMessage: ?string, completed: boolean}>
The SMS Request Statuses indicating progress when sending SMS Messages
Type
-
Array.<{mobileNumber: string, messageId: ?string, messageStatus: ?string, sendRequestCount: number, sendRequestTimestamp: ?Date, sendResponseCode: ?number, sendResponseMessage: ?string, getStatusRequestCount: number, getStatusRequestTimestamp: ?Date, getStatusResponseCode: ?number, getStatusResponseMessage: ?string, completed: boolean}>
Source
statusstring
Whether the Grower Notification is in the process of being Sent
Type
-
string
Source
updateTimestampDate
When the Packrun Grower Notification was last updated
Type
-
Date
Source
Methods
fromJSON(json, siteId) → {PackrunGrowerNotificationModel}
Create a new PackrunGrowerNotificationModel from a JSON Object or JSON String
Parameters
-
json
Object.<string, any>|stringA JSON Object or JSON String
-
siteId
numberThe Site ID associated with this Packrun Grower Notification
Returns
-
PackrunGrowerNotificationModel