@digital8/lighting-illusions-ts-sdk 0.0.2734 → 0.0.2736

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.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @digital8/lighting-illusions-ts-sdk@0.0.2734
1
+ ## @digital8/lighting-illusions-ts-sdk@0.0.2736
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @digital8/lighting-illusions-ts-sdk@0.0.2734 --save
39
+ npm install @digital8/lighting-illusions-ts-sdk@0.0.2736 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -38,7 +38,7 @@ export interface AddressFrontendResource {
38
38
  * @type {string}
39
39
  * @memberof AddressFrontendResource
40
40
  */
41
- company?: string | null;
41
+ company: string;
42
42
  /**
43
43
  *
44
44
  * @type {string}
@@ -24,6 +24,8 @@ exports.AddressFrontendResourceToJSONTyped = AddressFrontendResourceToJSONTyped;
24
24
  function instanceOfAddressFrontendResource(value) {
25
25
  if (!('addresseeName' in value) || value['addresseeName'] === undefined)
26
26
  return false;
27
+ if (!('company' in value) || value['company'] === undefined)
28
+ return false;
27
29
  if (!('line1' in value) || value['line1'] === undefined)
28
30
  return false;
29
31
  if (!('postcode' in value) || value['postcode'] === undefined)
@@ -49,7 +51,7 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
49
51
  'id': json['id'] == null ? undefined : json['id'],
50
52
  'type': json['type'] == null ? undefined : json['type'],
51
53
  'addresseeName': json['addresseeName'],
52
- 'company': json['company'] == null ? undefined : json['company'],
54
+ 'company': json['company'],
53
55
  'line1': json['line1'],
54
56
  'line2': json['line2'] == null ? undefined : json['line2'],
55
57
  'postcode': json['postcode'],
@@ -69,7 +69,7 @@ export interface ExternalApiLogResource {
69
69
  * @type {string}
70
70
  * @memberof ExternalApiLogResource
71
71
  */
72
- requestPayload?: string | null;
72
+ requestPayload: string;
73
73
  /**
74
74
  *
75
75
  * @type {string}
@@ -39,6 +39,8 @@ function instanceOfExternalApiLogResource(value) {
39
39
  return false;
40
40
  if (!('isSuccess' in value) || value['isSuccess'] === undefined)
41
41
  return false;
42
+ if (!('requestPayload' in value) || value['requestPayload'] === undefined)
43
+ return false;
42
44
  if (!('responsePayload' in value) || value['responsePayload'] === undefined)
43
45
  return false;
44
46
  if (!('site' in value) || value['site'] === undefined)
@@ -61,7 +63,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
61
63
  'endpoint': json['endpoint'],
62
64
  'responseCode': json['responseCode'],
63
65
  'isSuccess': json['isSuccess'],
64
- 'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
66
+ 'requestPayload': json['requestPayload'],
65
67
  'responsePayload': json['responsePayload'],
66
68
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
67
69
  'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
@@ -39,7 +39,7 @@ export interface OrderFulfillmentResource {
39
39
  * @type {string}
40
40
  * @memberof OrderFulfillmentResource
41
41
  */
42
- trackingNumber?: string | null;
42
+ trackingNumber: string;
43
43
  /**
44
44
  *
45
45
  * @type {string}
@@ -29,6 +29,8 @@ function instanceOfOrderFulfillmentResource(value) {
29
29
  return false;
30
30
  if (!('dateShipped' in value) || value['dateShipped'] === undefined)
31
31
  return false;
32
+ if (!('trackingNumber' in value) || value['trackingNumber'] === undefined)
33
+ return false;
32
34
  if (!('trackingCompany' in value) || value['trackingCompany'] === undefined)
33
35
  return false;
34
36
  if (!('docnum' in value) || value['docnum'] === undefined)
@@ -50,7 +52,7 @@ function OrderFulfillmentResourceFromJSONTyped(json, ignoreDiscriminator) {
50
52
  'id': json['id'],
51
53
  'orderId': json['orderId'],
52
54
  'dateShipped': (new Date(json['dateShipped'])),
53
- 'trackingNumber': json['trackingNumber'] == null ? undefined : json['trackingNumber'],
55
+ 'trackingNumber': json['trackingNumber'],
54
56
  'trackingUrl': json['trackingUrl'] == null ? undefined : json['trackingUrl'],
55
57
  'trackingCompany': json['trackingCompany'],
56
58
  'docnum': json['docnum'],
@@ -44,7 +44,7 @@ export interface StoreFrontendResource {
44
44
  * @type {string}
45
45
  * @memberof StoreFrontendResource
46
46
  */
47
- website: string;
47
+ website?: string | null;
48
48
  /**
49
49
  *
50
50
  * @type {string}
@@ -74,7 +74,7 @@ export interface StoreFrontendResource {
74
74
  * @type {string}
75
75
  * @memberof StoreFrontendResource
76
76
  */
77
- tagLine: string;
77
+ tagLine?: string | null;
78
78
  /**
79
79
  *
80
80
  * @type {string}
@@ -28,16 +28,12 @@ function instanceOfStoreFrontendResource(value) {
28
28
  return false;
29
29
  if (!('email' in value) || value['email'] === undefined)
30
30
  return false;
31
- if (!('website' in value) || value['website'] === undefined)
32
- return false;
33
31
  if (!('phone' in value) || value['phone'] === undefined)
34
32
  return false;
35
33
  if (!('latitude' in value) || value['latitude'] === undefined)
36
34
  return false;
37
35
  if (!('longitude' in value) || value['longitude'] === undefined)
38
36
  return false;
39
- if (!('tagLine' in value) || value['tagLine'] === undefined)
40
- return false;
41
37
  if (!('specialDates' in value) || value['specialDates'] === undefined)
42
38
  return false;
43
39
  if (!('suppliers' in value) || value['suppliers'] === undefined)
@@ -56,12 +52,12 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
56
52
  'siteId': json['siteId'],
57
53
  'name': json['name'],
58
54
  'email': json['email'],
59
- 'website': json['website'],
55
+ 'website': json['website'] == null ? undefined : json['website'],
60
56
  'phone': json['phone'],
61
57
  'address': json['address'] == null ? undefined : json['address'],
62
58
  'latitude': json['latitude'],
63
59
  'longitude': json['longitude'],
64
- 'tagLine': json['tagLine'],
60
+ 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
65
61
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
66
62
  'specialDates': json['specialDates'],
67
63
  'suppliers': json['suppliers'],
@@ -57,7 +57,7 @@ export interface StoreListResource {
57
57
  * @type {string}
58
58
  * @memberof StoreListResource
59
59
  */
60
- tagLine?: string | null;
60
+ tagLine: string;
61
61
  /**
62
62
  *
63
63
  * @type {string}
@@ -33,6 +33,8 @@ function instanceOfStoreListResource(value) {
33
33
  return false;
34
34
  if (!('latitude' in value) || value['latitude'] === undefined)
35
35
  return false;
36
+ if (!('tagLine' in value) || value['tagLine'] === undefined)
37
+ return false;
36
38
  if (!('email' in value) || value['email'] === undefined)
37
39
  return false;
38
40
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
@@ -55,7 +57,7 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
55
57
  'phone': json['phone'],
56
58
  'longitude': json['longitude'],
57
59
  'latitude': json['latitude'],
58
- 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
60
+ 'tagLine': json['tagLine'],
59
61
  'email': json['email'],
60
62
  'website': json['website'] == null ? undefined : json['website'],
61
63
  'netsuiteId': json['netsuiteId'],
@@ -60,7 +60,7 @@ export interface StoreResource {
60
60
  * @type {string}
61
61
  * @memberof StoreResource
62
62
  */
63
- tagLine?: string | null;
63
+ tagLine: string;
64
64
  /**
65
65
  *
66
66
  * @type {string}
@@ -36,6 +36,8 @@ function instanceOfStoreResource(value) {
36
36
  return false;
37
37
  if (!('latitude' in value) || value['latitude'] === undefined)
38
38
  return false;
39
+ if (!('tagLine' in value) || value['tagLine'] === undefined)
40
+ return false;
39
41
  if (!('email' in value) || value['email'] === undefined)
40
42
  return false;
41
43
  if (!('website' in value) || value['website'] === undefined)
@@ -66,7 +68,7 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
66
68
  'phone': json['phone'],
67
69
  'longitude': json['longitude'],
68
70
  'latitude': json['latitude'],
69
- 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
71
+ 'tagLine': json['tagLine'],
70
72
  'email': json['email'],
71
73
  'website': json['website'],
72
74
  'netsuiteId': json['netsuiteId'],
@@ -9,7 +9,10 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { TransactionType } from './TransactionType';
12
13
  import type { PaymentMethod } from './PaymentMethod';
14
+ import type { PaymentSource } from './PaymentSource';
15
+ import type { PaymentStatus } from './PaymentStatus';
13
16
  /**
14
17
  *
15
18
  * @export
@@ -24,10 +27,10 @@ export interface TransactionListResource {
24
27
  id: number;
25
28
  /**
26
29
  *
27
- * @type {string}
30
+ * @type {PaymentSource}
28
31
  * @memberof TransactionListResource
29
32
  */
30
- paymentSource: string;
33
+ paymentSource: PaymentSource;
31
34
  /**
32
35
  *
33
36
  * @type {PaymentMethod}
@@ -36,16 +39,16 @@ export interface TransactionListResource {
36
39
  paymentMethod: PaymentMethod;
37
40
  /**
38
41
  *
39
- * @type {string}
42
+ * @type {TransactionType}
40
43
  * @memberof TransactionListResource
41
44
  */
42
- type: string;
45
+ type: TransactionType;
43
46
  /**
44
47
  *
45
- * @type {string}
48
+ * @type {PaymentStatus}
46
49
  * @memberof TransactionListResource
47
50
  */
48
- status: string;
51
+ status: PaymentStatus;
49
52
  /**
50
53
  *
51
54
  * @type {number}
@@ -18,7 +18,10 @@ exports.TransactionListResourceFromJSON = TransactionListResourceFromJSON;
18
18
  exports.TransactionListResourceFromJSONTyped = TransactionListResourceFromJSONTyped;
19
19
  exports.TransactionListResourceToJSON = TransactionListResourceToJSON;
20
20
  exports.TransactionListResourceToJSONTyped = TransactionListResourceToJSONTyped;
21
+ var TransactionType_1 = require("./TransactionType");
21
22
  var PaymentMethod_1 = require("./PaymentMethod");
23
+ var PaymentSource_1 = require("./PaymentSource");
24
+ var PaymentStatus_1 = require("./PaymentStatus");
22
25
  /**
23
26
  * Check if a given object implements the TransactionListResource interface.
24
27
  */
@@ -54,10 +57,10 @@ function TransactionListResourceFromJSONTyped(json, ignoreDiscriminator) {
54
57
  }
55
58
  return {
56
59
  'id': json['id'],
57
- 'paymentSource': json['paymentSource'],
60
+ 'paymentSource': (0, PaymentSource_1.PaymentSourceFromJSON)(json['paymentSource']),
58
61
  'paymentMethod': (0, PaymentMethod_1.PaymentMethodFromJSON)(json['paymentMethod']),
59
- 'type': json['type'],
60
- 'status': json['status'],
62
+ 'type': (0, TransactionType_1.TransactionTypeFromJSON)(json['type']),
63
+ 'status': (0, PaymentStatus_1.PaymentStatusFromJSON)(json['status']),
61
64
  'totalAmount': json['totalAmount'],
62
65
  'surcharge': json['surcharge'],
63
66
  'refundedAmount': json['refundedAmount'],
@@ -81,10 +84,10 @@ function TransactionListResourceToJSONTyped(value, ignoreDiscriminator) {
81
84
  }
82
85
  return {
83
86
  'id': value['id'],
84
- 'paymentSource': value['paymentSource'],
87
+ 'paymentSource': (0, PaymentSource_1.PaymentSourceToJSON)(value['paymentSource']),
85
88
  'paymentMethod': (0, PaymentMethod_1.PaymentMethodToJSON)(value['paymentMethod']),
86
- 'type': value['type'],
87
- 'status': value['status'],
89
+ 'type': (0, TransactionType_1.TransactionTypeToJSON)(value['type']),
90
+ 'status': (0, PaymentStatus_1.PaymentStatusToJSON)(value['status']),
88
91
  'totalAmount': value['totalAmount'],
89
92
  'surcharge': value['surcharge'],
90
93
  'refundedAmount': value['refundedAmount'],
@@ -9,7 +9,10 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { TransactionType } from './TransactionType';
12
13
  import type { PaymentMethod } from './PaymentMethod';
14
+ import type { PaymentSource } from './PaymentSource';
15
+ import type { PaymentStatus } from './PaymentStatus';
13
16
  /**
14
17
  *
15
18
  * @export
@@ -24,10 +27,10 @@ export interface TransactionLiteResource {
24
27
  id?: number | null;
25
28
  /**
26
29
  *
27
- * @type {string}
30
+ * @type {PaymentSource}
28
31
  * @memberof TransactionLiteResource
29
32
  */
30
- paymentSource: string;
33
+ paymentSource: PaymentSource;
31
34
  /**
32
35
  *
33
36
  * @type {PaymentMethod}
@@ -42,16 +45,16 @@ export interface TransactionLiteResource {
42
45
  paymentMethodThumbnail: string;
43
46
  /**
44
47
  *
45
- * @type {string}
48
+ * @type {TransactionType}
46
49
  * @memberof TransactionLiteResource
47
50
  */
48
- type: string;
51
+ type: TransactionType;
49
52
  /**
50
53
  *
51
- * @type {string}
54
+ * @type {PaymentStatus}
52
55
  * @memberof TransactionLiteResource
53
56
  */
54
- status: string;
57
+ status: PaymentStatus;
55
58
  /**
56
59
  *
57
60
  * @type {number}
@@ -18,7 +18,10 @@ exports.TransactionLiteResourceFromJSON = TransactionLiteResourceFromJSON;
18
18
  exports.TransactionLiteResourceFromJSONTyped = TransactionLiteResourceFromJSONTyped;
19
19
  exports.TransactionLiteResourceToJSON = TransactionLiteResourceToJSON;
20
20
  exports.TransactionLiteResourceToJSONTyped = TransactionLiteResourceToJSONTyped;
21
+ var TransactionType_1 = require("./TransactionType");
21
22
  var PaymentMethod_1 = require("./PaymentMethod");
23
+ var PaymentSource_1 = require("./PaymentSource");
24
+ var PaymentStatus_1 = require("./PaymentStatus");
22
25
  /**
23
26
  * Check if a given object implements the TransactionLiteResource interface.
24
27
  */
@@ -52,11 +55,11 @@ function TransactionLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
52
55
  }
53
56
  return {
54
57
  'id': json['id'] == null ? undefined : json['id'],
55
- 'paymentSource': json['paymentSource'],
58
+ 'paymentSource': (0, PaymentSource_1.PaymentSourceFromJSON)(json['paymentSource']),
56
59
  'paymentMethod': (0, PaymentMethod_1.PaymentMethodFromJSON)(json['paymentMethod']),
57
60
  'paymentMethodThumbnail': json['paymentMethodThumbnail'],
58
- 'type': json['type'],
59
- 'status': json['status'],
61
+ 'type': (0, TransactionType_1.TransactionTypeFromJSON)(json['type']),
62
+ 'status': (0, PaymentStatus_1.PaymentStatusFromJSON)(json['status']),
60
63
  'amount': json['amount'],
61
64
  'surcharge': json['surcharge'],
62
65
  'totalAmount': json['totalAmount'],
@@ -76,11 +79,11 @@ function TransactionLiteResourceToJSONTyped(value, ignoreDiscriminator) {
76
79
  }
77
80
  return {
78
81
  'id': value['id'],
79
- 'paymentSource': value['paymentSource'],
82
+ 'paymentSource': (0, PaymentSource_1.PaymentSourceToJSON)(value['paymentSource']),
80
83
  'paymentMethod': (0, PaymentMethod_1.PaymentMethodToJSON)(value['paymentMethod']),
81
84
  'paymentMethodThumbnail': value['paymentMethodThumbnail'],
82
- 'type': value['type'],
83
- 'status': value['status'],
85
+ 'type': (0, TransactionType_1.TransactionTypeToJSON)(value['type']),
86
+ 'status': (0, PaymentStatus_1.PaymentStatusToJSON)(value['status']),
84
87
  'amount': value['amount'],
85
88
  'surcharge': value['surcharge'],
86
89
  'totalAmount': value['totalAmount'],
@@ -9,7 +9,10 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { TransactionType } from './TransactionType';
12
13
  import type { PaymentMethod } from './PaymentMethod';
14
+ import type { PaymentSource } from './PaymentSource';
15
+ import type { PaymentStatus } from './PaymentStatus';
13
16
  /**
14
17
  *
15
18
  * @export
@@ -24,10 +27,10 @@ export interface TransactionResource {
24
27
  id?: number | null;
25
28
  /**
26
29
  *
27
- * @type {string}
30
+ * @type {PaymentSource}
28
31
  * @memberof TransactionResource
29
32
  */
30
- paymentSource: string;
33
+ paymentSource: PaymentSource;
31
34
  /**
32
35
  *
33
36
  * @type {PaymentMethod}
@@ -36,16 +39,16 @@ export interface TransactionResource {
36
39
  paymentMethod: PaymentMethod;
37
40
  /**
38
41
  *
39
- * @type {string}
42
+ * @type {TransactionType}
40
43
  * @memberof TransactionResource
41
44
  */
42
- type: string;
45
+ type: TransactionType;
43
46
  /**
44
47
  *
45
- * @type {string}
48
+ * @type {PaymentStatus}
46
49
  * @memberof TransactionResource
47
50
  */
48
- status: string;
51
+ status: PaymentStatus;
49
52
  /**
50
53
  *
51
54
  * @type {number}
@@ -18,7 +18,10 @@ exports.TransactionResourceFromJSON = TransactionResourceFromJSON;
18
18
  exports.TransactionResourceFromJSONTyped = TransactionResourceFromJSONTyped;
19
19
  exports.TransactionResourceToJSON = TransactionResourceToJSON;
20
20
  exports.TransactionResourceToJSONTyped = TransactionResourceToJSONTyped;
21
+ var TransactionType_1 = require("./TransactionType");
21
22
  var PaymentMethod_1 = require("./PaymentMethod");
23
+ var PaymentSource_1 = require("./PaymentSource");
24
+ var PaymentStatus_1 = require("./PaymentStatus");
22
25
  /**
23
26
  * Check if a given object implements the TransactionResource interface.
24
27
  */
@@ -54,10 +57,10 @@ function TransactionResourceFromJSONTyped(json, ignoreDiscriminator) {
54
57
  }
55
58
  return {
56
59
  'id': json['id'] == null ? undefined : json['id'],
57
- 'paymentSource': json['paymentSource'],
60
+ 'paymentSource': (0, PaymentSource_1.PaymentSourceFromJSON)(json['paymentSource']),
58
61
  'paymentMethod': (0, PaymentMethod_1.PaymentMethodFromJSON)(json['paymentMethod']),
59
- 'type': json['type'],
60
- 'status': json['status'],
62
+ 'type': (0, TransactionType_1.TransactionTypeFromJSON)(json['type']),
63
+ 'status': (0, PaymentStatus_1.PaymentStatusFromJSON)(json['status']),
61
64
  'amount': json['amount'],
62
65
  'surcharge': json['surcharge'],
63
66
  'totalAmount': json['totalAmount'],
@@ -83,10 +86,10 @@ function TransactionResourceToJSONTyped(value, ignoreDiscriminator) {
83
86
  }
84
87
  return {
85
88
  'id': value['id'],
86
- 'paymentSource': value['paymentSource'],
89
+ 'paymentSource': (0, PaymentSource_1.PaymentSourceToJSON)(value['paymentSource']),
87
90
  'paymentMethod': (0, PaymentMethod_1.PaymentMethodToJSON)(value['paymentMethod']),
88
- 'type': value['type'],
89
- 'status': value['status'],
91
+ 'type': (0, TransactionType_1.TransactionTypeToJSON)(value['type']),
92
+ 'status': (0, PaymentStatus_1.PaymentStatusToJSON)(value['status']),
90
93
  'amount': value['amount'],
91
94
  'surcharge': value['surcharge'],
92
95
  'totalAmount': value['totalAmount'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/lighting-illusions-ts-sdk",
3
- "version": "0.0.2734",
3
+ "version": "0.0.2736",
4
4
  "description": "OpenAPI client for @digital8/lighting-illusions-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -42,7 +42,7 @@ export interface AddressFrontendResource {
42
42
  * @type {string}
43
43
  * @memberof AddressFrontendResource
44
44
  */
45
- company?: string | null;
45
+ company: string;
46
46
  /**
47
47
  *
48
48
  * @type {string}
@@ -92,6 +92,7 @@ export interface AddressFrontendResource {
92
92
  */
93
93
  export function instanceOfAddressFrontendResource(value: object): value is AddressFrontendResource {
94
94
  if (!('addresseeName' in value) || value['addresseeName'] === undefined) return false;
95
+ if (!('company' in value) || value['company'] === undefined) return false;
95
96
  if (!('line1' in value) || value['line1'] === undefined) return false;
96
97
  if (!('postcode' in value) || value['postcode'] === undefined) return false;
97
98
  if (!('suburb' in value) || value['suburb'] === undefined) return false;
@@ -114,7 +115,7 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
114
115
  'id': json['id'] == null ? undefined : json['id'],
115
116
  'type': json['type'] == null ? undefined : json['type'],
116
117
  'addresseeName': json['addresseeName'],
117
- 'company': json['company'] == null ? undefined : json['company'],
118
+ 'company': json['company'],
118
119
  'line1': json['line1'],
119
120
  'line2': json['line2'] == null ? undefined : json['line2'],
120
121
  'postcode': json['postcode'],
@@ -80,7 +80,7 @@ export interface ExternalApiLogResource {
80
80
  * @type {string}
81
81
  * @memberof ExternalApiLogResource
82
82
  */
83
- requestPayload?: string | null;
83
+ requestPayload: string;
84
84
  /**
85
85
  *
86
86
  * @type {string}
@@ -113,6 +113,7 @@ export function instanceOfExternalApiLogResource(value: object): value is Extern
113
113
  if (!('endpoint' in value) || value['endpoint'] === undefined) return false;
114
114
  if (!('responseCode' in value) || value['responseCode'] === undefined) return false;
115
115
  if (!('isSuccess' in value) || value['isSuccess'] === undefined) return false;
116
+ if (!('requestPayload' in value) || value['requestPayload'] === undefined) return false;
116
117
  if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
117
118
  if (!('site' in value) || value['site'] === undefined) return false;
118
119
  return true;
@@ -136,7 +137,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
136
137
  'endpoint': json['endpoint'],
137
138
  'responseCode': json['responseCode'],
138
139
  'isSuccess': json['isSuccess'],
139
- 'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
140
+ 'requestPayload': json['requestPayload'],
140
141
  'responsePayload': json['responsePayload'],
141
142
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
142
143
  'site': SiteLiteResourceFromJSON(json['site']),
@@ -50,7 +50,7 @@ export interface OrderFulfillmentResource {
50
50
  * @type {string}
51
51
  * @memberof OrderFulfillmentResource
52
52
  */
53
- trackingNumber?: string | null;
53
+ trackingNumber: string;
54
54
  /**
55
55
  *
56
56
  * @type {string}
@@ -102,6 +102,7 @@ export function instanceOfOrderFulfillmentResource(value: object): value is Orde
102
102
  if (!('id' in value) || value['id'] === undefined) return false;
103
103
  if (!('orderId' in value) || value['orderId'] === undefined) return false;
104
104
  if (!('dateShipped' in value) || value['dateShipped'] === undefined) return false;
105
+ if (!('trackingNumber' in value) || value['trackingNumber'] === undefined) return false;
105
106
  if (!('trackingCompany' in value) || value['trackingCompany'] === undefined) return false;
106
107
  if (!('docnum' in value) || value['docnum'] === undefined) return false;
107
108
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
@@ -122,7 +123,7 @@ export function OrderFulfillmentResourceFromJSONTyped(json: any, ignoreDiscrimin
122
123
  'id': json['id'],
123
124
  'orderId': json['orderId'],
124
125
  'dateShipped': (new Date(json['dateShipped'])),
125
- 'trackingNumber': json['trackingNumber'] == null ? undefined : json['trackingNumber'],
126
+ 'trackingNumber': json['trackingNumber'],
126
127
  'trackingUrl': json['trackingUrl'] == null ? undefined : json['trackingUrl'],
127
128
  'trackingCompany': json['trackingCompany'],
128
129
  'docnum': json['docnum'],
@@ -48,7 +48,7 @@ export interface StoreFrontendResource {
48
48
  * @type {string}
49
49
  * @memberof StoreFrontendResource
50
50
  */
51
- website: string;
51
+ website?: string | null;
52
52
  /**
53
53
  *
54
54
  * @type {string}
@@ -78,7 +78,7 @@ export interface StoreFrontendResource {
78
78
  * @type {string}
79
79
  * @memberof StoreFrontendResource
80
80
  */
81
- tagLine: string;
81
+ tagLine?: string | null;
82
82
  /**
83
83
  *
84
84
  * @type {string}
@@ -106,11 +106,9 @@ export function instanceOfStoreFrontendResource(value: object): value is StoreFr
106
106
  if (!('siteId' in value) || value['siteId'] === undefined) return false;
107
107
  if (!('name' in value) || value['name'] === undefined) return false;
108
108
  if (!('email' in value) || value['email'] === undefined) return false;
109
- if (!('website' in value) || value['website'] === undefined) return false;
110
109
  if (!('phone' in value) || value['phone'] === undefined) return false;
111
110
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
112
111
  if (!('longitude' in value) || value['longitude'] === undefined) return false;
113
- if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
114
112
  if (!('specialDates' in value) || value['specialDates'] === undefined) return false;
115
113
  if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
116
114
  return true;
@@ -130,12 +128,12 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
130
128
  'siteId': json['siteId'],
131
129
  'name': json['name'],
132
130
  'email': json['email'],
133
- 'website': json['website'],
131
+ 'website': json['website'] == null ? undefined : json['website'],
134
132
  'phone': json['phone'],
135
133
  'address': json['address'] == null ? undefined : json['address'],
136
134
  'latitude': json['latitude'],
137
135
  'longitude': json['longitude'],
138
- 'tagLine': json['tagLine'],
136
+ 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
139
137
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
140
138
  'specialDates': json['specialDates'],
141
139
  'suppliers': json['suppliers'],
@@ -68,7 +68,7 @@ export interface StoreListResource {
68
68
  * @type {string}
69
69
  * @memberof StoreListResource
70
70
  */
71
- tagLine?: string | null;
71
+ tagLine: string;
72
72
  /**
73
73
  *
74
74
  * @type {string}
@@ -110,6 +110,7 @@ export function instanceOfStoreListResource(value: object): value is StoreListRe
110
110
  if (!('phone' in value) || value['phone'] === undefined) return false;
111
111
  if (!('longitude' in value) || value['longitude'] === undefined) return false;
112
112
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
113
+ if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
113
114
  if (!('email' in value) || value['email'] === undefined) return false;
114
115
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
115
116
  if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
@@ -132,7 +133,7 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
132
133
  'phone': json['phone'],
133
134
  'longitude': json['longitude'],
134
135
  'latitude': json['latitude'],
135
- 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
136
+ 'tagLine': json['tagLine'],
136
137
  'email': json['email'],
137
138
  'website': json['website'] == null ? undefined : json['website'],
138
139
  'netsuiteId': json['netsuiteId'],
@@ -89,7 +89,7 @@ export interface StoreResource {
89
89
  * @type {string}
90
90
  * @memberof StoreResource
91
91
  */
92
- tagLine?: string | null;
92
+ tagLine: string;
93
93
  /**
94
94
  *
95
95
  * @type {string}
@@ -149,6 +149,7 @@ export function instanceOfStoreResource(value: object): value is StoreResource {
149
149
  if (!('phone' in value) || value['phone'] === undefined) return false;
150
150
  if (!('longitude' in value) || value['longitude'] === undefined) return false;
151
151
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
152
+ if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
152
153
  if (!('email' in value) || value['email'] === undefined) return false;
153
154
  if (!('website' in value) || value['website'] === undefined) return false;
154
155
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
@@ -175,7 +176,7 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
175
176
  'phone': json['phone'],
176
177
  'longitude': json['longitude'],
177
178
  'latitude': json['latitude'],
178
- 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
179
+ 'tagLine': json['tagLine'],
179
180
  'email': json['email'],
180
181
  'website': json['website'],
181
182
  'netsuiteId': json['netsuiteId'],
@@ -13,6 +13,13 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { TransactionType } from './TransactionType';
17
+ import {
18
+ TransactionTypeFromJSON,
19
+ TransactionTypeFromJSONTyped,
20
+ TransactionTypeToJSON,
21
+ TransactionTypeToJSONTyped,
22
+ } from './TransactionType';
16
23
  import type { PaymentMethod } from './PaymentMethod';
17
24
  import {
18
25
  PaymentMethodFromJSON,
@@ -20,6 +27,20 @@ import {
20
27
  PaymentMethodToJSON,
21
28
  PaymentMethodToJSONTyped,
22
29
  } from './PaymentMethod';
30
+ import type { PaymentSource } from './PaymentSource';
31
+ import {
32
+ PaymentSourceFromJSON,
33
+ PaymentSourceFromJSONTyped,
34
+ PaymentSourceToJSON,
35
+ PaymentSourceToJSONTyped,
36
+ } from './PaymentSource';
37
+ import type { PaymentStatus } from './PaymentStatus';
38
+ import {
39
+ PaymentStatusFromJSON,
40
+ PaymentStatusFromJSONTyped,
41
+ PaymentStatusToJSON,
42
+ PaymentStatusToJSONTyped,
43
+ } from './PaymentStatus';
23
44
 
24
45
  /**
25
46
  *
@@ -35,10 +56,10 @@ export interface TransactionListResource {
35
56
  id: number;
36
57
  /**
37
58
  *
38
- * @type {string}
59
+ * @type {PaymentSource}
39
60
  * @memberof TransactionListResource
40
61
  */
41
- paymentSource: string;
62
+ paymentSource: PaymentSource;
42
63
  /**
43
64
  *
44
65
  * @type {PaymentMethod}
@@ -47,16 +68,16 @@ export interface TransactionListResource {
47
68
  paymentMethod: PaymentMethod;
48
69
  /**
49
70
  *
50
- * @type {string}
71
+ * @type {TransactionType}
51
72
  * @memberof TransactionListResource
52
73
  */
53
- type: string;
74
+ type: TransactionType;
54
75
  /**
55
76
  *
56
- * @type {string}
77
+ * @type {PaymentStatus}
57
78
  * @memberof TransactionListResource
58
79
  */
59
- status: string;
80
+ status: PaymentStatus;
60
81
  /**
61
82
  *
62
83
  * @type {number}
@@ -149,10 +170,10 @@ export function TransactionListResourceFromJSONTyped(json: any, ignoreDiscrimina
149
170
  return {
150
171
 
151
172
  'id': json['id'],
152
- 'paymentSource': json['paymentSource'],
173
+ 'paymentSource': PaymentSourceFromJSON(json['paymentSource']),
153
174
  'paymentMethod': PaymentMethodFromJSON(json['paymentMethod']),
154
- 'type': json['type'],
155
- 'status': json['status'],
175
+ 'type': TransactionTypeFromJSON(json['type']),
176
+ 'status': PaymentStatusFromJSON(json['status']),
156
177
  'totalAmount': json['totalAmount'],
157
178
  'surcharge': json['surcharge'],
158
179
  'refundedAmount': json['refundedAmount'],
@@ -178,10 +199,10 @@ export function TransactionListResourceToJSONTyped(value?: TransactionListResour
178
199
  return {
179
200
 
180
201
  'id': value['id'],
181
- 'paymentSource': value['paymentSource'],
202
+ 'paymentSource': PaymentSourceToJSON(value['paymentSource']),
182
203
  'paymentMethod': PaymentMethodToJSON(value['paymentMethod']),
183
- 'type': value['type'],
184
- 'status': value['status'],
204
+ 'type': TransactionTypeToJSON(value['type']),
205
+ 'status': PaymentStatusToJSON(value['status']),
185
206
  'totalAmount': value['totalAmount'],
186
207
  'surcharge': value['surcharge'],
187
208
  'refundedAmount': value['refundedAmount'],
@@ -13,6 +13,13 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { TransactionType } from './TransactionType';
17
+ import {
18
+ TransactionTypeFromJSON,
19
+ TransactionTypeFromJSONTyped,
20
+ TransactionTypeToJSON,
21
+ TransactionTypeToJSONTyped,
22
+ } from './TransactionType';
16
23
  import type { PaymentMethod } from './PaymentMethod';
17
24
  import {
18
25
  PaymentMethodFromJSON,
@@ -20,6 +27,20 @@ import {
20
27
  PaymentMethodToJSON,
21
28
  PaymentMethodToJSONTyped,
22
29
  } from './PaymentMethod';
30
+ import type { PaymentSource } from './PaymentSource';
31
+ import {
32
+ PaymentSourceFromJSON,
33
+ PaymentSourceFromJSONTyped,
34
+ PaymentSourceToJSON,
35
+ PaymentSourceToJSONTyped,
36
+ } from './PaymentSource';
37
+ import type { PaymentStatus } from './PaymentStatus';
38
+ import {
39
+ PaymentStatusFromJSON,
40
+ PaymentStatusFromJSONTyped,
41
+ PaymentStatusToJSON,
42
+ PaymentStatusToJSONTyped,
43
+ } from './PaymentStatus';
23
44
 
24
45
  /**
25
46
  *
@@ -35,10 +56,10 @@ export interface TransactionLiteResource {
35
56
  id?: number | null;
36
57
  /**
37
58
  *
38
- * @type {string}
59
+ * @type {PaymentSource}
39
60
  * @memberof TransactionLiteResource
40
61
  */
41
- paymentSource: string;
62
+ paymentSource: PaymentSource;
42
63
  /**
43
64
  *
44
65
  * @type {PaymentMethod}
@@ -53,16 +74,16 @@ export interface TransactionLiteResource {
53
74
  paymentMethodThumbnail: string;
54
75
  /**
55
76
  *
56
- * @type {string}
77
+ * @type {TransactionType}
57
78
  * @memberof TransactionLiteResource
58
79
  */
59
- type: string;
80
+ type: TransactionType;
60
81
  /**
61
82
  *
62
- * @type {string}
83
+ * @type {PaymentStatus}
63
84
  * @memberof TransactionLiteResource
64
85
  */
65
- status: string;
86
+ status: PaymentStatus;
66
87
  /**
67
88
  *
68
89
  * @type {number}
@@ -130,11 +151,11 @@ export function TransactionLiteResourceFromJSONTyped(json: any, ignoreDiscrimina
130
151
  return {
131
152
 
132
153
  'id': json['id'] == null ? undefined : json['id'],
133
- 'paymentSource': json['paymentSource'],
154
+ 'paymentSource': PaymentSourceFromJSON(json['paymentSource']),
134
155
  'paymentMethod': PaymentMethodFromJSON(json['paymentMethod']),
135
156
  'paymentMethodThumbnail': json['paymentMethodThumbnail'],
136
- 'type': json['type'],
137
- 'status': json['status'],
157
+ 'type': TransactionTypeFromJSON(json['type']),
158
+ 'status': PaymentStatusFromJSON(json['status']),
138
159
  'amount': json['amount'],
139
160
  'surcharge': json['surcharge'],
140
161
  'totalAmount': json['totalAmount'],
@@ -156,11 +177,11 @@ export function TransactionLiteResourceToJSONTyped(value?: TransactionLiteResour
156
177
  return {
157
178
 
158
179
  'id': value['id'],
159
- 'paymentSource': value['paymentSource'],
180
+ 'paymentSource': PaymentSourceToJSON(value['paymentSource']),
160
181
  'paymentMethod': PaymentMethodToJSON(value['paymentMethod']),
161
182
  'paymentMethodThumbnail': value['paymentMethodThumbnail'],
162
- 'type': value['type'],
163
- 'status': value['status'],
183
+ 'type': TransactionTypeToJSON(value['type']),
184
+ 'status': PaymentStatusToJSON(value['status']),
164
185
  'amount': value['amount'],
165
186
  'surcharge': value['surcharge'],
166
187
  'totalAmount': value['totalAmount'],
@@ -13,6 +13,13 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { TransactionType } from './TransactionType';
17
+ import {
18
+ TransactionTypeFromJSON,
19
+ TransactionTypeFromJSONTyped,
20
+ TransactionTypeToJSON,
21
+ TransactionTypeToJSONTyped,
22
+ } from './TransactionType';
16
23
  import type { PaymentMethod } from './PaymentMethod';
17
24
  import {
18
25
  PaymentMethodFromJSON,
@@ -20,6 +27,20 @@ import {
20
27
  PaymentMethodToJSON,
21
28
  PaymentMethodToJSONTyped,
22
29
  } from './PaymentMethod';
30
+ import type { PaymentSource } from './PaymentSource';
31
+ import {
32
+ PaymentSourceFromJSON,
33
+ PaymentSourceFromJSONTyped,
34
+ PaymentSourceToJSON,
35
+ PaymentSourceToJSONTyped,
36
+ } from './PaymentSource';
37
+ import type { PaymentStatus } from './PaymentStatus';
38
+ import {
39
+ PaymentStatusFromJSON,
40
+ PaymentStatusFromJSONTyped,
41
+ PaymentStatusToJSON,
42
+ PaymentStatusToJSONTyped,
43
+ } from './PaymentStatus';
23
44
 
24
45
  /**
25
46
  *
@@ -35,10 +56,10 @@ export interface TransactionResource {
35
56
  id?: number | null;
36
57
  /**
37
58
  *
38
- * @type {string}
59
+ * @type {PaymentSource}
39
60
  * @memberof TransactionResource
40
61
  */
41
- paymentSource: string;
62
+ paymentSource: PaymentSource;
42
63
  /**
43
64
  *
44
65
  * @type {PaymentMethod}
@@ -47,16 +68,16 @@ export interface TransactionResource {
47
68
  paymentMethod: PaymentMethod;
48
69
  /**
49
70
  *
50
- * @type {string}
71
+ * @type {TransactionType}
51
72
  * @memberof TransactionResource
52
73
  */
53
- type: string;
74
+ type: TransactionType;
54
75
  /**
55
76
  *
56
- * @type {string}
77
+ * @type {PaymentStatus}
57
78
  * @memberof TransactionResource
58
79
  */
59
- status: string;
80
+ status: PaymentStatus;
60
81
  /**
61
82
  *
62
83
  * @type {number}
@@ -161,10 +182,10 @@ export function TransactionResourceFromJSONTyped(json: any, ignoreDiscriminator:
161
182
  return {
162
183
 
163
184
  'id': json['id'] == null ? undefined : json['id'],
164
- 'paymentSource': json['paymentSource'],
185
+ 'paymentSource': PaymentSourceFromJSON(json['paymentSource']),
165
186
  'paymentMethod': PaymentMethodFromJSON(json['paymentMethod']),
166
- 'type': json['type'],
167
- 'status': json['status'],
187
+ 'type': TransactionTypeFromJSON(json['type']),
188
+ 'status': PaymentStatusFromJSON(json['status']),
168
189
  'amount': json['amount'],
169
190
  'surcharge': json['surcharge'],
170
191
  'totalAmount': json['totalAmount'],
@@ -192,10 +213,10 @@ export function TransactionResourceToJSONTyped(value?: TransactionResource | nul
192
213
  return {
193
214
 
194
215
  'id': value['id'],
195
- 'paymentSource': value['paymentSource'],
216
+ 'paymentSource': PaymentSourceToJSON(value['paymentSource']),
196
217
  'paymentMethod': PaymentMethodToJSON(value['paymentMethod']),
197
- 'type': value['type'],
198
- 'status': value['status'],
218
+ 'type': TransactionTypeToJSON(value['type']),
219
+ 'status': PaymentStatusToJSON(value['status']),
199
220
  'amount': value['amount'],
200
221
  'surcharge': value['surcharge'],
201
222
  'totalAmount': value['totalAmount'],