@ricado/api-client 2.6.1 → 2.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. package/dist/ricado.api.client.js +1 -1
  2. package/lib/Controllers/Packhouse/Site/ReemoonSizerBatchController.js +915 -0
  3. package/lib/Controllers/Packhouse/Site/ReemoonSizerController.js +300 -0
  4. package/lib/Controllers/Packhouse/Site/ReemoonSizerOutletProductChangeController.js +885 -0
  5. package/lib/Controllers/Packhouse/Site/ReemoonSizerPackrunSummaryController.js +914 -0
  6. package/lib/Controllers/Packhouse/Site/index.js +12 -0
  7. package/lib/Models/Packhouse/Site/ReemoonSizerBatchModel.js +547 -0
  8. package/lib/Models/Packhouse/Site/ReemoonSizerModel.js +1272 -0
  9. package/lib/Models/Packhouse/Site/ReemoonSizerOutletProductChangeModel.js +293 -0
  10. package/lib/Models/Packhouse/Site/ReemoonSizerPackrunSummaryModel.js +461 -0
  11. package/lib/Models/Packhouse/Site/index.js +12 -0
  12. package/lib/PackageVersion.js +1 -1
  13. package/lib/index.d.ts +7125 -5162
  14. package/package.json +1 -1
  15. package/src/Controllers/Packhouse/Site/ReemoonSizerBatchController.js +1046 -0
  16. package/src/Controllers/Packhouse/Site/ReemoonSizerController.js +277 -0
  17. package/src/Controllers/Packhouse/Site/ReemoonSizerOutletProductChangeController.js +1016 -0
  18. package/src/Controllers/Packhouse/Site/ReemoonSizerPackrunSummaryController.js +1045 -0
  19. package/src/Controllers/Packhouse/Site/index.js +8 -0
  20. package/src/Models/Packhouse/Site/ReemoonSizerBatchModel.js +596 -0
  21. package/src/Models/Packhouse/Site/ReemoonSizerModel.js +1576 -0
  22. package/src/Models/Packhouse/Site/ReemoonSizerOutletProductChangeModel.js +280 -0
  23. package/src/Models/Packhouse/Site/ReemoonSizerPackrunSummaryModel.js +501 -0
  24. package/src/Models/Packhouse/Site/index.js +8 -0
  25. package/src/PackageVersion.js +1 -1
@@ -0,0 +1,280 @@
1
+ /**
2
+ * File Auto-Generated by the RICADO Gen 4 PHP API Project
3
+ *
4
+ * Do Not Edit this File Manually!
5
+ */
6
+
7
+ import BaseModel from '../../../Models/BaseModel';
8
+
9
+ /**
10
+ * Model Class for a Reemoon Sizer Outlet Product Change
11
+ *
12
+ * @class
13
+ * @hideconstructor
14
+ * @extends BaseModel
15
+ */
16
+ class ReemoonSizerOutletProductChangeModel extends BaseModel
17
+ {
18
+ /**
19
+ * ReemoonSizerOutletProductChangeModel Constructor
20
+ *
21
+ * @protected
22
+ * @param {number} siteId The Site ID associated with this Reemoon Sizer Outlet Product Change
23
+ */
24
+ constructor(siteId)
25
+ {
26
+ super();
27
+
28
+ /**
29
+ * The Reemoon Sizer Outlet Product Change ID
30
+ *
31
+ * @type {string}
32
+ * @public
33
+ */
34
+ this.id = "";
35
+
36
+ /**
37
+ * The Reemoon Sizer ID this Outlet Change is associated with
38
+ *
39
+ * @type {string}
40
+ * @public
41
+ */
42
+ this.reemoonSizerId = "";
43
+
44
+ /**
45
+ * The Sizer Outlet Number this Outlet Change is associated with
46
+ *
47
+ * @type {string}
48
+ * @public
49
+ */
50
+ this.outletNumber = "";
51
+
52
+ /**
53
+ * When this Outlet Change occurred
54
+ *
55
+ * @type {Date}
56
+ * @public
57
+ */
58
+ this.createdTimestamp = new Date();
59
+
60
+ /**
61
+ * The ID of the Previous Product that was active on the Outlet
62
+ *
63
+ * @type {?number}
64
+ * @public
65
+ */
66
+ this.previousProductId = null;
67
+
68
+ /**
69
+ * The Name of the Previous Product that was active on the Outlet
70
+ *
71
+ * @type {?string}
72
+ * @public
73
+ */
74
+ this.previousProductName = null;
75
+
76
+ /**
77
+ * The ID of the New Product that is now active on the Outlet
78
+ *
79
+ * @type {number}
80
+ * @public
81
+ */
82
+ this.newProductId = 0;
83
+
84
+ /**
85
+ * The Name of the New Product that is now active on the Outlet
86
+ *
87
+ * @type {string}
88
+ * @public
89
+ */
90
+ this.newProductName = "";
91
+
92
+ /**
93
+ * Whether the Reemoon Sizer Outlet Product Change has been deleted
94
+ *
95
+ * @type {boolean}
96
+ * @public
97
+ */
98
+ this.deleted = false;
99
+
100
+ /**
101
+ * When the Reemoon Sizer Outlet Product Change was last updated
102
+ *
103
+ * @type {Date}
104
+ * @public
105
+ */
106
+ this.updateTimestamp = new Date();
107
+
108
+ /**
109
+ * The Site ID associated with this Reemoon Sizer Outlet Product Change
110
+ *
111
+ * @type {number}
112
+ * @public
113
+ */
114
+ this.siteId = siteId;
115
+ }
116
+
117
+ /**
118
+ * Create a new **ReemoonSizerOutletProductChangeModel** from a JSON Object or JSON String
119
+ *
120
+ * @static
121
+ * @public
122
+ * @param {Object<string, any>|string} json A JSON Object or JSON String
123
+ * @param {number} siteId The Site ID associated with this Reemoon Sizer Outlet Product Change
124
+ * @return {ReemoonSizerOutletProductChangeModel}
125
+ */
126
+ static fromJSON(json, siteId)
127
+ {
128
+ let model = new ReemoonSizerOutletProductChangeModel(siteId);
129
+
130
+ /**
131
+ * The JSON Object
132
+ *
133
+ * @type {Object<string, any>}
134
+ */
135
+ let jsonObject = {};
136
+
137
+ if(typeof json === 'string')
138
+ {
139
+ jsonObject = JSON.parse(json);
140
+ }
141
+ else if(typeof json === 'object')
142
+ {
143
+ jsonObject = json;
144
+ }
145
+
146
+ if('id' in jsonObject)
147
+ {
148
+ model.id = (function(){
149
+ if(typeof jsonObject['id'] !== 'string')
150
+ {
151
+ return String(jsonObject['id']);
152
+ }
153
+
154
+ return jsonObject['id'];
155
+ }());
156
+ }
157
+
158
+ if('reemoonSizerId' in jsonObject)
159
+ {
160
+ model.reemoonSizerId = (function(){
161
+ if(typeof jsonObject['reemoonSizerId'] !== 'string')
162
+ {
163
+ return String(jsonObject['reemoonSizerId']);
164
+ }
165
+
166
+ return jsonObject['reemoonSizerId'];
167
+ }());
168
+ }
169
+
170
+ if('outletNumber' in jsonObject)
171
+ {
172
+ model.outletNumber = (function(){
173
+ if(typeof jsonObject['outletNumber'] !== 'string')
174
+ {
175
+ return String(jsonObject['outletNumber']);
176
+ }
177
+
178
+ return jsonObject['outletNumber'];
179
+ }());
180
+ }
181
+
182
+ if('createdTimestamp' in jsonObject)
183
+ {
184
+ model.createdTimestamp = (function(){
185
+ if(typeof jsonObject['createdTimestamp'] !== 'string')
186
+ {
187
+ return new Date(String(jsonObject['createdTimestamp']));
188
+ }
189
+
190
+ return new Date(jsonObject['createdTimestamp']);
191
+ }());
192
+ }
193
+
194
+ if('previousProductId' in jsonObject)
195
+ {
196
+ model.previousProductId = (function(){
197
+ if(jsonObject['previousProductId'] === null)
198
+ {
199
+ return null;
200
+ }
201
+
202
+ if(typeof jsonObject['previousProductId'] !== 'number')
203
+ {
204
+ return Number.isInteger(Number(jsonObject['previousProductId'])) ? Number(jsonObject['previousProductId']) : Math.floor(Number(jsonObject['previousProductId']));
205
+ }
206
+
207
+ return Number.isInteger(jsonObject['previousProductId']) ? jsonObject['previousProductId'] : Math.floor(jsonObject['previousProductId']);
208
+ }());
209
+ }
210
+
211
+ if('previousProductName' in jsonObject)
212
+ {
213
+ model.previousProductName = (function(){
214
+ if(jsonObject['previousProductName'] === null)
215
+ {
216
+ return null;
217
+ }
218
+
219
+ if(typeof jsonObject['previousProductName'] !== 'string')
220
+ {
221
+ return String(jsonObject['previousProductName']);
222
+ }
223
+
224
+ return jsonObject['previousProductName'];
225
+ }());
226
+ }
227
+
228
+ if('newProductId' in jsonObject)
229
+ {
230
+ model.newProductId = (function(){
231
+ if(typeof jsonObject['newProductId'] !== 'number')
232
+ {
233
+ return Number.isInteger(Number(jsonObject['newProductId'])) ? Number(jsonObject['newProductId']) : Math.floor(Number(jsonObject['newProductId']));
234
+ }
235
+
236
+ return Number.isInteger(jsonObject['newProductId']) ? jsonObject['newProductId'] : Math.floor(jsonObject['newProductId']);
237
+ }());
238
+ }
239
+
240
+ if('newProductName' in jsonObject)
241
+ {
242
+ model.newProductName = (function(){
243
+ if(typeof jsonObject['newProductName'] !== 'string')
244
+ {
245
+ return String(jsonObject['newProductName']);
246
+ }
247
+
248
+ return jsonObject['newProductName'];
249
+ }());
250
+ }
251
+
252
+ if('deleted' in jsonObject)
253
+ {
254
+ model.deleted = (function(){
255
+ if(typeof jsonObject['deleted'] !== 'boolean')
256
+ {
257
+ return Boolean(jsonObject['deleted']);
258
+ }
259
+
260
+ return jsonObject['deleted'];
261
+ }());
262
+ }
263
+
264
+ if('updateTimestamp' in jsonObject)
265
+ {
266
+ model.updateTimestamp = (function(){
267
+ if(typeof jsonObject['updateTimestamp'] !== 'string')
268
+ {
269
+ return new Date(String(jsonObject['updateTimestamp']));
270
+ }
271
+
272
+ return new Date(jsonObject['updateTimestamp']);
273
+ }());
274
+ }
275
+
276
+ return model;
277
+ }
278
+ }
279
+
280
+ export default ReemoonSizerOutletProductChangeModel;