@digital8/lighting-illusions-ts-sdk 0.0.2729 → 0.0.2731

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 (32) hide show
  1. package/README.md +2 -2
  2. package/dist/models/AddressFrontendResource.d.ts +1 -1
  3. package/dist/models/AddressFrontendResource.js +1 -3
  4. package/dist/models/OrderFulfillmentResource.d.ts +2 -2
  5. package/dist/models/OrderFulfillmentResource.js +2 -6
  6. package/dist/models/SearchTransactionsRequest.d.ts +3 -2
  7. package/dist/models/SearchTransactionsRequest.js +3 -2
  8. package/dist/models/StoreFrontendResource.d.ts +2 -2
  9. package/dist/models/StoreFrontendResource.js +4 -4
  10. package/dist/models/StoreListResource.d.ts +2 -2
  11. package/dist/models/StoreListResource.js +4 -4
  12. package/dist/models/StoreResource.d.ts +1 -1
  13. package/dist/models/StoreResource.js +3 -1
  14. package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
  15. package/dist/models/StoreSpecialDateFrontendResource.js +3 -1
  16. package/dist/models/TransactionListResource.d.ts +3 -2
  17. package/dist/models/TransactionListResource.js +3 -2
  18. package/dist/models/TransactionLiteResource.d.ts +3 -2
  19. package/dist/models/TransactionLiteResource.js +3 -2
  20. package/dist/models/TransactionResource.d.ts +3 -2
  21. package/dist/models/TransactionResource.js +3 -2
  22. package/package.json +1 -1
  23. package/src/models/AddressFrontendResource.ts +2 -3
  24. package/src/models/OrderFulfillmentResource.ts +4 -6
  25. package/src/models/SearchTransactionsRequest.ts +12 -4
  26. package/src/models/StoreFrontendResource.ts +5 -5
  27. package/src/models/StoreListResource.ts +5 -5
  28. package/src/models/StoreResource.ts +3 -2
  29. package/src/models/StoreSpecialDateFrontendResource.ts +4 -3
  30. package/src/models/TransactionListResource.ts +14 -4
  31. package/src/models/TransactionLiteResource.ts +14 -4
  32. package/src/models/TransactionResource.ts +14 -4
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @digital8/lighting-illusions-ts-sdk@0.0.2729
1
+ ## @digital8/lighting-illusions-ts-sdk@0.0.2731
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.2729 --save
39
+ npm install @digital8/lighting-illusions-ts-sdk@0.0.2731 --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;
41
+ company?: string | null;
42
42
  /**
43
43
  *
44
44
  * @type {string}
@@ -24,8 +24,6 @@ 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;
29
27
  if (!('line1' in value) || value['line1'] === undefined)
30
28
  return false;
31
29
  if (!('postcode' in value) || value['postcode'] === undefined)
@@ -51,7 +49,7 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
51
49
  'id': json['id'] == null ? undefined : json['id'],
52
50
  'type': json['type'] == null ? undefined : json['type'],
53
51
  'addresseeName': json['addresseeName'],
54
- 'company': json['company'],
52
+ 'company': json['company'] == null ? undefined : json['company'],
55
53
  'line1': json['line1'],
56
54
  'line2': json['line2'] == null ? undefined : json['line2'],
57
55
  'postcode': json['postcode'],
@@ -39,13 +39,13 @@ export interface OrderFulfillmentResource {
39
39
  * @type {string}
40
40
  * @memberof OrderFulfillmentResource
41
41
  */
42
- trackingNumber: string;
42
+ trackingNumber?: string | null;
43
43
  /**
44
44
  *
45
45
  * @type {string}
46
46
  * @memberof OrderFulfillmentResource
47
47
  */
48
- trackingUrl: string;
48
+ trackingUrl?: string | null;
49
49
  /**
50
50
  *
51
51
  * @type {string}
@@ -29,10 +29,6 @@ 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;
34
- if (!('trackingUrl' in value) || value['trackingUrl'] === undefined)
35
- return false;
36
32
  if (!('trackingCompany' in value) || value['trackingCompany'] === undefined)
37
33
  return false;
38
34
  if (!('docnum' in value) || value['docnum'] === undefined)
@@ -54,8 +50,8 @@ function OrderFulfillmentResourceFromJSONTyped(json, ignoreDiscriminator) {
54
50
  'id': json['id'],
55
51
  'orderId': json['orderId'],
56
52
  'dateShipped': (new Date(json['dateShipped'])),
57
- 'trackingNumber': json['trackingNumber'],
58
- 'trackingUrl': json['trackingUrl'],
53
+ 'trackingNumber': json['trackingNumber'] == null ? undefined : json['trackingNumber'],
54
+ 'trackingUrl': json['trackingUrl'] == null ? undefined : json['trackingUrl'],
59
55
  'trackingCompany': json['trackingCompany'],
60
56
  'docnum': json['docnum'],
61
57
  'netsuiteId': json['netsuiteId'],
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { PaymentMethod } from './PaymentMethod';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -59,10 +60,10 @@ export interface SearchTransactionsRequest {
59
60
  type?: Array<string>;
60
61
  /**
61
62
  *
62
- * @type {Array<string>}
63
+ * @type {Array<PaymentMethod>}
63
64
  * @memberof SearchTransactionsRequest
64
65
  */
65
- paymentMethod?: Array<string>;
66
+ paymentMethod?: Array<PaymentMethod>;
66
67
  /**
67
68
  *
68
69
  * @type {Array<string>}
@@ -19,6 +19,7 @@ exports.SearchTransactionsRequestFromJSON = SearchTransactionsRequestFromJSON;
19
19
  exports.SearchTransactionsRequestFromJSONTyped = SearchTransactionsRequestFromJSONTyped;
20
20
  exports.SearchTransactionsRequestToJSON = SearchTransactionsRequestToJSON;
21
21
  exports.SearchTransactionsRequestToJSONTyped = SearchTransactionsRequestToJSONTyped;
22
+ var PaymentMethod_1 = require("./PaymentMethod");
22
23
  /**
23
24
  * @export
24
25
  */
@@ -62,7 +63,7 @@ function SearchTransactionsRequestFromJSONTyped(json, ignoreDiscriminator) {
62
63
  'page': json['page'] == null ? undefined : json['page'],
63
64
  'paymentSource': json['payment_source'] == null ? undefined : json['payment_source'],
64
65
  'type': json['type'] == null ? undefined : json['type'],
65
- 'paymentMethod': json['payment_method'] == null ? undefined : json['payment_method'],
66
+ 'paymentMethod': json['payment_method'] == null ? undefined : (json['payment_method'].map(PaymentMethod_1.PaymentMethodFromJSON)),
66
67
  'status': json['status'] == null ? undefined : json['status'],
67
68
  'beforeCreatedAt': json['before_created_at'] == null ? undefined : (new Date(json['before_created_at'])),
68
69
  'afterCreatedAt': json['after_created_at'] == null ? undefined : (new Date(json['after_created_at'])),
@@ -87,7 +88,7 @@ function SearchTransactionsRequestToJSONTyped(value, ignoreDiscriminator) {
87
88
  'page': value['page'],
88
89
  'payment_source': value['paymentSource'],
89
90
  'type': value['type'],
90
- 'payment_method': value['paymentMethod'],
91
+ 'payment_method': value['paymentMethod'] == null ? undefined : (value['paymentMethod'].map(PaymentMethod_1.PaymentMethodToJSON)),
91
92
  'status': value['status'],
92
93
  'before_created_at': value['beforeCreatedAt'] == null ? undefined : ((value['beforeCreatedAt']).toISOString()),
93
94
  'after_created_at': value['afterCreatedAt'] == null ? undefined : ((value['afterCreatedAt']).toISOString()),
@@ -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 | null;
77
+ tagLine: string;
78
78
  /**
79
79
  *
80
80
  * @type {string}
@@ -28,14 +28,14 @@ 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;
37
+ if (!('tagLine' in value) || value['tagLine'] === undefined)
38
+ return false;
39
39
  if (!('specialDates' in value) || value['specialDates'] === undefined)
40
40
  return false;
41
41
  if (!('suppliers' in value) || value['suppliers'] === undefined)
@@ -54,12 +54,12 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
54
54
  'siteId': json['siteId'],
55
55
  'name': json['name'],
56
56
  'email': json['email'],
57
- 'website': json['website'],
57
+ 'website': json['website'] == null ? undefined : json['website'],
58
58
  'phone': json['phone'],
59
59
  'address': json['address'] == null ? undefined : json['address'],
60
60
  'latitude': json['latitude'],
61
61
  'longitude': json['longitude'],
62
- 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
62
+ 'tagLine': json['tagLine'],
63
63
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
64
64
  'specialDates': json['specialDates'],
65
65
  'suppliers': json['suppliers'],
@@ -57,7 +57,7 @@ export interface StoreListResource {
57
57
  * @type {string}
58
58
  * @memberof StoreListResource
59
59
  */
60
- tagLine: string;
60
+ tagLine?: string | null;
61
61
  /**
62
62
  *
63
63
  * @type {string}
@@ -69,7 +69,7 @@ export interface StoreListResource {
69
69
  * @type {string}
70
70
  * @memberof StoreListResource
71
71
  */
72
- website?: string | null;
72
+ website: string;
73
73
  /**
74
74
  *
75
75
  * @type {number}
@@ -33,10 +33,10 @@ 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;
38
36
  if (!('email' in value) || value['email'] === undefined)
39
37
  return false;
38
+ if (!('website' in value) || value['website'] === undefined)
39
+ return false;
40
40
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
41
41
  return false;
42
42
  if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined)
@@ -57,9 +57,9 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
57
57
  'phone': json['phone'],
58
58
  'longitude': json['longitude'],
59
59
  'latitude': json['latitude'],
60
- 'tagLine': json['tagLine'],
60
+ 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
61
61
  'email': json['email'],
62
- 'website': json['website'] == null ? undefined : json['website'],
62
+ 'website': json['website'],
63
63
  'netsuiteId': json['netsuiteId'],
64
64
  'displayNetsuiteId': json['displayNetsuiteId'],
65
65
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
@@ -72,7 +72,7 @@ export interface StoreResource {
72
72
  * @type {string}
73
73
  * @memberof StoreResource
74
74
  */
75
- website?: string | null;
75
+ website: string;
76
76
  /**
77
77
  *
78
78
  * @type {number}
@@ -38,6 +38,8 @@ function instanceOfStoreResource(value) {
38
38
  return false;
39
39
  if (!('email' in value) || value['email'] === undefined)
40
40
  return false;
41
+ if (!('website' in value) || value['website'] === undefined)
42
+ return false;
41
43
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
42
44
  return false;
43
45
  if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined)
@@ -66,7 +68,7 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
66
68
  'latitude': json['latitude'],
67
69
  'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
68
70
  'email': json['email'],
69
- 'website': json['website'] == null ? undefined : json['website'],
71
+ 'website': json['website'],
70
72
  'netsuiteId': json['netsuiteId'],
71
73
  'displayNetsuiteId': json['displayNetsuiteId'],
72
74
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
@@ -35,10 +35,10 @@ export interface StoreSpecialDateFrontendResource {
35
35
  hours: string;
36
36
  /**
37
37
  *
38
- * @type {string}
38
+ * @type {object}
39
39
  * @memberof StoreSpecialDateFrontendResource
40
40
  */
41
- date?: string | null;
41
+ date: object;
42
42
  /**
43
43
  *
44
44
  * @type {boolean}
@@ -26,6 +26,8 @@ function instanceOfStoreSpecialDateFrontendResource(value) {
26
26
  return false;
27
27
  if (!('hours' in value) || value['hours'] === undefined)
28
28
  return false;
29
+ if (!('date' in value) || value['date'] === undefined)
30
+ return false;
29
31
  if (!('closed' in value) || value['closed'] === undefined)
30
32
  return false;
31
33
  if (!('displayStartDate' in value) || value['displayStartDate'] === undefined)
@@ -45,7 +47,7 @@ function StoreSpecialDateFrontendResourceFromJSONTyped(json, ignoreDiscriminator
45
47
  'id': json['id'] == null ? undefined : json['id'],
46
48
  'name': json['name'],
47
49
  'hours': json['hours'],
48
- 'date': json['date'] == null ? undefined : json['date'],
50
+ 'date': json['date'],
49
51
  'closed': json['closed'],
50
52
  'displayStartDate': json['displayStartDate'],
51
53
  'displayEndDate': json['displayEndDate'],
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { PaymentMethod } from './PaymentMethod';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -29,10 +30,10 @@ export interface TransactionListResource {
29
30
  paymentSource: string;
30
31
  /**
31
32
  *
32
- * @type {string}
33
+ * @type {PaymentMethod}
33
34
  * @memberof TransactionListResource
34
35
  */
35
- paymentMethod: string;
36
+ paymentMethod: PaymentMethod;
36
37
  /**
37
38
  *
38
39
  * @type {string}
@@ -18,6 +18,7 @@ exports.TransactionListResourceFromJSON = TransactionListResourceFromJSON;
18
18
  exports.TransactionListResourceFromJSONTyped = TransactionListResourceFromJSONTyped;
19
19
  exports.TransactionListResourceToJSON = TransactionListResourceToJSON;
20
20
  exports.TransactionListResourceToJSONTyped = TransactionListResourceToJSONTyped;
21
+ var PaymentMethod_1 = require("./PaymentMethod");
21
22
  /**
22
23
  * Check if a given object implements the TransactionListResource interface.
23
24
  */
@@ -54,7 +55,7 @@ function TransactionListResourceFromJSONTyped(json, ignoreDiscriminator) {
54
55
  return {
55
56
  'id': json['id'],
56
57
  'paymentSource': json['paymentSource'],
57
- 'paymentMethod': json['paymentMethod'],
58
+ 'paymentMethod': (0, PaymentMethod_1.PaymentMethodFromJSON)(json['paymentMethod']),
58
59
  'type': json['type'],
59
60
  'status': json['status'],
60
61
  'totalAmount': json['totalAmount'],
@@ -81,7 +82,7 @@ function TransactionListResourceToJSONTyped(value, ignoreDiscriminator) {
81
82
  return {
82
83
  'id': value['id'],
83
84
  'paymentSource': value['paymentSource'],
84
- 'paymentMethod': value['paymentMethod'],
85
+ 'paymentMethod': (0, PaymentMethod_1.PaymentMethodToJSON)(value['paymentMethod']),
85
86
  'type': value['type'],
86
87
  'status': value['status'],
87
88
  'totalAmount': value['totalAmount'],
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { PaymentMethod } from './PaymentMethod';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -29,10 +30,10 @@ export interface TransactionLiteResource {
29
30
  paymentSource: string;
30
31
  /**
31
32
  *
32
- * @type {string}
33
+ * @type {PaymentMethod}
33
34
  * @memberof TransactionLiteResource
34
35
  */
35
- paymentMethod: string;
36
+ paymentMethod: PaymentMethod;
36
37
  /**
37
38
  *
38
39
  * @type {string}
@@ -18,6 +18,7 @@ exports.TransactionLiteResourceFromJSON = TransactionLiteResourceFromJSON;
18
18
  exports.TransactionLiteResourceFromJSONTyped = TransactionLiteResourceFromJSONTyped;
19
19
  exports.TransactionLiteResourceToJSON = TransactionLiteResourceToJSON;
20
20
  exports.TransactionLiteResourceToJSONTyped = TransactionLiteResourceToJSONTyped;
21
+ var PaymentMethod_1 = require("./PaymentMethod");
21
22
  /**
22
23
  * Check if a given object implements the TransactionLiteResource interface.
23
24
  */
@@ -52,7 +53,7 @@ function TransactionLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
52
53
  return {
53
54
  'id': json['id'] == null ? undefined : json['id'],
54
55
  'paymentSource': json['paymentSource'],
55
- 'paymentMethod': json['paymentMethod'],
56
+ 'paymentMethod': (0, PaymentMethod_1.PaymentMethodFromJSON)(json['paymentMethod']),
56
57
  'paymentMethodThumbnail': json['paymentMethodThumbnail'],
57
58
  'type': json['type'],
58
59
  'status': json['status'],
@@ -76,7 +77,7 @@ function TransactionLiteResourceToJSONTyped(value, ignoreDiscriminator) {
76
77
  return {
77
78
  'id': value['id'],
78
79
  'paymentSource': value['paymentSource'],
79
- 'paymentMethod': value['paymentMethod'],
80
+ 'paymentMethod': (0, PaymentMethod_1.PaymentMethodToJSON)(value['paymentMethod']),
80
81
  'paymentMethodThumbnail': value['paymentMethodThumbnail'],
81
82
  'type': value['type'],
82
83
  'status': value['status'],
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { PaymentMethod } from './PaymentMethod';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -29,10 +30,10 @@ export interface TransactionResource {
29
30
  paymentSource: string;
30
31
  /**
31
32
  *
32
- * @type {string}
33
+ * @type {PaymentMethod}
33
34
  * @memberof TransactionResource
34
35
  */
35
- paymentMethod: string;
36
+ paymentMethod: PaymentMethod;
36
37
  /**
37
38
  *
38
39
  * @type {string}
@@ -18,6 +18,7 @@ exports.TransactionResourceFromJSON = TransactionResourceFromJSON;
18
18
  exports.TransactionResourceFromJSONTyped = TransactionResourceFromJSONTyped;
19
19
  exports.TransactionResourceToJSON = TransactionResourceToJSON;
20
20
  exports.TransactionResourceToJSONTyped = TransactionResourceToJSONTyped;
21
+ var PaymentMethod_1 = require("./PaymentMethod");
21
22
  /**
22
23
  * Check if a given object implements the TransactionResource interface.
23
24
  */
@@ -54,7 +55,7 @@ function TransactionResourceFromJSONTyped(json, ignoreDiscriminator) {
54
55
  return {
55
56
  'id': json['id'] == null ? undefined : json['id'],
56
57
  'paymentSource': json['paymentSource'],
57
- 'paymentMethod': json['paymentMethod'],
58
+ 'paymentMethod': (0, PaymentMethod_1.PaymentMethodFromJSON)(json['paymentMethod']),
58
59
  'type': json['type'],
59
60
  'status': json['status'],
60
61
  'amount': json['amount'],
@@ -83,7 +84,7 @@ function TransactionResourceToJSONTyped(value, ignoreDiscriminator) {
83
84
  return {
84
85
  'id': value['id'],
85
86
  'paymentSource': value['paymentSource'],
86
- 'paymentMethod': value['paymentMethod'],
87
+ 'paymentMethod': (0, PaymentMethod_1.PaymentMethodToJSON)(value['paymentMethod']),
87
88
  'type': value['type'],
88
89
  'status': value['status'],
89
90
  'amount': value['amount'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/lighting-illusions-ts-sdk",
3
- "version": "0.0.2729",
3
+ "version": "0.0.2731",
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;
45
+ company?: string | null;
46
46
  /**
47
47
  *
48
48
  * @type {string}
@@ -92,7 +92,6 @@ 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;
96
95
  if (!('line1' in value) || value['line1'] === undefined) return false;
97
96
  if (!('postcode' in value) || value['postcode'] === undefined) return false;
98
97
  if (!('suburb' in value) || value['suburb'] === undefined) return false;
@@ -115,7 +114,7 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
115
114
  'id': json['id'] == null ? undefined : json['id'],
116
115
  'type': json['type'] == null ? undefined : json['type'],
117
116
  'addresseeName': json['addresseeName'],
118
- 'company': json['company'],
117
+ 'company': json['company'] == null ? undefined : json['company'],
119
118
  'line1': json['line1'],
120
119
  'line2': json['line2'] == null ? undefined : json['line2'],
121
120
  'postcode': json['postcode'],
@@ -50,13 +50,13 @@ export interface OrderFulfillmentResource {
50
50
  * @type {string}
51
51
  * @memberof OrderFulfillmentResource
52
52
  */
53
- trackingNumber: string;
53
+ trackingNumber?: string | null;
54
54
  /**
55
55
  *
56
56
  * @type {string}
57
57
  * @memberof OrderFulfillmentResource
58
58
  */
59
- trackingUrl: string;
59
+ trackingUrl?: string | null;
60
60
  /**
61
61
  *
62
62
  * @type {string}
@@ -102,8 +102,6 @@ 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;
106
- if (!('trackingUrl' in value) || value['trackingUrl'] === undefined) return false;
107
105
  if (!('trackingCompany' in value) || value['trackingCompany'] === undefined) return false;
108
106
  if (!('docnum' in value) || value['docnum'] === undefined) return false;
109
107
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
@@ -124,8 +122,8 @@ export function OrderFulfillmentResourceFromJSONTyped(json: any, ignoreDiscrimin
124
122
  'id': json['id'],
125
123
  'orderId': json['orderId'],
126
124
  'dateShipped': (new Date(json['dateShipped'])),
127
- 'trackingNumber': json['trackingNumber'],
128
- 'trackingUrl': json['trackingUrl'],
125
+ 'trackingNumber': json['trackingNumber'] == null ? undefined : json['trackingNumber'],
126
+ 'trackingUrl': json['trackingUrl'] == null ? undefined : json['trackingUrl'],
129
127
  'trackingCompany': json['trackingCompany'],
130
128
  'docnum': json['docnum'],
131
129
  'netsuiteId': json['netsuiteId'],
@@ -13,6 +13,14 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { PaymentMethod } from './PaymentMethod';
17
+ import {
18
+ PaymentMethodFromJSON,
19
+ PaymentMethodFromJSONTyped,
20
+ PaymentMethodToJSON,
21
+ PaymentMethodToJSONTyped,
22
+ } from './PaymentMethod';
23
+
16
24
  /**
17
25
  *
18
26
  * @export
@@ -63,10 +71,10 @@ export interface SearchTransactionsRequest {
63
71
  type?: Array<string>;
64
72
  /**
65
73
  *
66
- * @type {Array<string>}
74
+ * @type {Array<PaymentMethod>}
67
75
  * @memberof SearchTransactionsRequest
68
76
  */
69
- paymentMethod?: Array<string>;
77
+ paymentMethod?: Array<PaymentMethod>;
70
78
  /**
71
79
  *
72
80
  * @type {Array<string>}
@@ -159,7 +167,7 @@ export function SearchTransactionsRequestFromJSONTyped(json: any, ignoreDiscrimi
159
167
  'page': json['page'] == null ? undefined : json['page'],
160
168
  'paymentSource': json['payment_source'] == null ? undefined : json['payment_source'],
161
169
  'type': json['type'] == null ? undefined : json['type'],
162
- 'paymentMethod': json['payment_method'] == null ? undefined : json['payment_method'],
170
+ 'paymentMethod': json['payment_method'] == null ? undefined : ((json['payment_method'] as Array<any>).map(PaymentMethodFromJSON)),
163
171
  'status': json['status'] == null ? undefined : json['status'],
164
172
  'beforeCreatedAt': json['before_created_at'] == null ? undefined : (new Date(json['before_created_at'])),
165
173
  'afterCreatedAt': json['after_created_at'] == null ? undefined : (new Date(json['after_created_at'])),
@@ -187,7 +195,7 @@ export function SearchTransactionsRequestToJSONTyped(value?: SearchTransactionsR
187
195
  'page': value['page'],
188
196
  'payment_source': value['paymentSource'],
189
197
  'type': value['type'],
190
- 'payment_method': value['paymentMethod'],
198
+ 'payment_method': value['paymentMethod'] == null ? undefined : ((value['paymentMethod'] as Array<any>).map(PaymentMethodToJSON)),
191
199
  'status': value['status'],
192
200
  'before_created_at': value['beforeCreatedAt'] == null ? undefined : ((value['beforeCreatedAt']).toISOString()),
193
201
  'after_created_at': value['afterCreatedAt'] == null ? undefined : ((value['afterCreatedAt']).toISOString()),
@@ -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 | null;
81
+ tagLine: string;
82
82
  /**
83
83
  *
84
84
  * @type {string}
@@ -106,10 +106,10 @@ 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;
112
+ if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
113
113
  if (!('specialDates' in value) || value['specialDates'] === undefined) return false;
114
114
  if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
115
115
  return true;
@@ -129,12 +129,12 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
129
129
  'siteId': json['siteId'],
130
130
  'name': json['name'],
131
131
  'email': json['email'],
132
- 'website': json['website'],
132
+ 'website': json['website'] == null ? undefined : json['website'],
133
133
  'phone': json['phone'],
134
134
  'address': json['address'] == null ? undefined : json['address'],
135
135
  'latitude': json['latitude'],
136
136
  'longitude': json['longitude'],
137
- 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
137
+ 'tagLine': json['tagLine'],
138
138
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
139
139
  'specialDates': json['specialDates'],
140
140
  'suppliers': json['suppliers'],
@@ -68,7 +68,7 @@ export interface StoreListResource {
68
68
  * @type {string}
69
69
  * @memberof StoreListResource
70
70
  */
71
- tagLine: string;
71
+ tagLine?: string | null;
72
72
  /**
73
73
  *
74
74
  * @type {string}
@@ -80,7 +80,7 @@ export interface StoreListResource {
80
80
  * @type {string}
81
81
  * @memberof StoreListResource
82
82
  */
83
- website?: string | null;
83
+ website: string;
84
84
  /**
85
85
  *
86
86
  * @type {number}
@@ -110,8 +110,8 @@ 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;
114
113
  if (!('email' in value) || value['email'] === undefined) return false;
114
+ if (!('website' in value) || value['website'] === undefined) return false;
115
115
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
116
116
  if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
117
117
  return true;
@@ -133,9 +133,9 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
133
133
  'phone': json['phone'],
134
134
  'longitude': json['longitude'],
135
135
  'latitude': json['latitude'],
136
- 'tagLine': json['tagLine'],
136
+ 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
137
137
  'email': json['email'],
138
- 'website': json['website'] == null ? undefined : json['website'],
138
+ 'website': json['website'],
139
139
  'netsuiteId': json['netsuiteId'],
140
140
  'displayNetsuiteId': json['displayNetsuiteId'],
141
141
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
@@ -101,7 +101,7 @@ export interface StoreResource {
101
101
  * @type {string}
102
102
  * @memberof StoreResource
103
103
  */
104
- website?: string | null;
104
+ website: string;
105
105
  /**
106
106
  *
107
107
  * @type {number}
@@ -150,6 +150,7 @@ export function instanceOfStoreResource(value: object): value is StoreResource {
150
150
  if (!('longitude' in value) || value['longitude'] === undefined) return false;
151
151
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
152
152
  if (!('email' in value) || value['email'] === undefined) return false;
153
+ if (!('website' in value) || value['website'] === undefined) return false;
153
154
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
154
155
  if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
155
156
  if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
@@ -176,7 +177,7 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
176
177
  'latitude': json['latitude'],
177
178
  'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
178
179
  'email': json['email'],
179
- 'website': json['website'] == null ? undefined : json['website'],
180
+ 'website': json['website'],
180
181
  'netsuiteId': json['netsuiteId'],
181
182
  'displayNetsuiteId': json['displayNetsuiteId'],
182
183
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
@@ -39,10 +39,10 @@ export interface StoreSpecialDateFrontendResource {
39
39
  hours: string;
40
40
  /**
41
41
  *
42
- * @type {string}
42
+ * @type {object}
43
43
  * @memberof StoreSpecialDateFrontendResource
44
44
  */
45
- date?: string | null;
45
+ date: object;
46
46
  /**
47
47
  *
48
48
  * @type {boolean}
@@ -69,6 +69,7 @@ export interface StoreSpecialDateFrontendResource {
69
69
  export function instanceOfStoreSpecialDateFrontendResource(value: object): value is StoreSpecialDateFrontendResource {
70
70
  if (!('name' in value) || value['name'] === undefined) return false;
71
71
  if (!('hours' in value) || value['hours'] === undefined) return false;
72
+ if (!('date' in value) || value['date'] === undefined) return false;
72
73
  if (!('closed' in value) || value['closed'] === undefined) return false;
73
74
  if (!('displayStartDate' in value) || value['displayStartDate'] === undefined) return false;
74
75
  if (!('displayEndDate' in value) || value['displayEndDate'] === undefined) return false;
@@ -88,7 +89,7 @@ export function StoreSpecialDateFrontendResourceFromJSONTyped(json: any, ignoreD
88
89
  'id': json['id'] == null ? undefined : json['id'],
89
90
  'name': json['name'],
90
91
  'hours': json['hours'],
91
- 'date': json['date'] == null ? undefined : json['date'],
92
+ 'date': json['date'],
92
93
  'closed': json['closed'],
93
94
  'displayStartDate': json['displayStartDate'],
94
95
  'displayEndDate': json['displayEndDate'],
@@ -13,6 +13,14 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { PaymentMethod } from './PaymentMethod';
17
+ import {
18
+ PaymentMethodFromJSON,
19
+ PaymentMethodFromJSONTyped,
20
+ PaymentMethodToJSON,
21
+ PaymentMethodToJSONTyped,
22
+ } from './PaymentMethod';
23
+
16
24
  /**
17
25
  *
18
26
  * @export
@@ -33,10 +41,10 @@ export interface TransactionListResource {
33
41
  paymentSource: string;
34
42
  /**
35
43
  *
36
- * @type {string}
44
+ * @type {PaymentMethod}
37
45
  * @memberof TransactionListResource
38
46
  */
39
- paymentMethod: string;
47
+ paymentMethod: PaymentMethod;
40
48
  /**
41
49
  *
42
50
  * @type {string}
@@ -111,6 +119,8 @@ export interface TransactionListResource {
111
119
  createdAt?: Date | null;
112
120
  }
113
121
 
122
+
123
+
114
124
  /**
115
125
  * Check if a given object implements the TransactionListResource interface.
116
126
  */
@@ -140,7 +150,7 @@ export function TransactionListResourceFromJSONTyped(json: any, ignoreDiscrimina
140
150
 
141
151
  'id': json['id'],
142
152
  'paymentSource': json['paymentSource'],
143
- 'paymentMethod': json['paymentMethod'],
153
+ 'paymentMethod': PaymentMethodFromJSON(json['paymentMethod']),
144
154
  'type': json['type'],
145
155
  'status': json['status'],
146
156
  'totalAmount': json['totalAmount'],
@@ -169,7 +179,7 @@ export function TransactionListResourceToJSONTyped(value?: TransactionListResour
169
179
 
170
180
  'id': value['id'],
171
181
  'paymentSource': value['paymentSource'],
172
- 'paymentMethod': value['paymentMethod'],
182
+ 'paymentMethod': PaymentMethodToJSON(value['paymentMethod']),
173
183
  'type': value['type'],
174
184
  'status': value['status'],
175
185
  'totalAmount': value['totalAmount'],
@@ -13,6 +13,14 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { PaymentMethod } from './PaymentMethod';
17
+ import {
18
+ PaymentMethodFromJSON,
19
+ PaymentMethodFromJSONTyped,
20
+ PaymentMethodToJSON,
21
+ PaymentMethodToJSONTyped,
22
+ } from './PaymentMethod';
23
+
16
24
  /**
17
25
  *
18
26
  * @export
@@ -33,10 +41,10 @@ export interface TransactionLiteResource {
33
41
  paymentSource: string;
34
42
  /**
35
43
  *
36
- * @type {string}
44
+ * @type {PaymentMethod}
37
45
  * @memberof TransactionLiteResource
38
46
  */
39
- paymentMethod: string;
47
+ paymentMethod: PaymentMethod;
40
48
  /**
41
49
  *
42
50
  * @type {string}
@@ -93,6 +101,8 @@ export interface TransactionLiteResource {
93
101
  createdAt?: Date | null;
94
102
  }
95
103
 
104
+
105
+
96
106
  /**
97
107
  * Check if a given object implements the TransactionLiteResource interface.
98
108
  */
@@ -121,7 +131,7 @@ export function TransactionLiteResourceFromJSONTyped(json: any, ignoreDiscrimina
121
131
 
122
132
  'id': json['id'] == null ? undefined : json['id'],
123
133
  'paymentSource': json['paymentSource'],
124
- 'paymentMethod': json['paymentMethod'],
134
+ 'paymentMethod': PaymentMethodFromJSON(json['paymentMethod']),
125
135
  'paymentMethodThumbnail': json['paymentMethodThumbnail'],
126
136
  'type': json['type'],
127
137
  'status': json['status'],
@@ -147,7 +157,7 @@ export function TransactionLiteResourceToJSONTyped(value?: TransactionLiteResour
147
157
 
148
158
  'id': value['id'],
149
159
  'paymentSource': value['paymentSource'],
150
- 'paymentMethod': value['paymentMethod'],
160
+ 'paymentMethod': PaymentMethodToJSON(value['paymentMethod']),
151
161
  'paymentMethodThumbnail': value['paymentMethodThumbnail'],
152
162
  'type': value['type'],
153
163
  'status': value['status'],
@@ -13,6 +13,14 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { PaymentMethod } from './PaymentMethod';
17
+ import {
18
+ PaymentMethodFromJSON,
19
+ PaymentMethodFromJSONTyped,
20
+ PaymentMethodToJSON,
21
+ PaymentMethodToJSONTyped,
22
+ } from './PaymentMethod';
23
+
16
24
  /**
17
25
  *
18
26
  * @export
@@ -33,10 +41,10 @@ export interface TransactionResource {
33
41
  paymentSource: string;
34
42
  /**
35
43
  *
36
- * @type {string}
44
+ * @type {PaymentMethod}
37
45
  * @memberof TransactionResource
38
46
  */
39
- paymentMethod: string;
47
+ paymentMethod: PaymentMethod;
40
48
  /**
41
49
  *
42
50
  * @type {string}
@@ -123,6 +131,8 @@ export interface TransactionResource {
123
131
  createdAt?: Date | null;
124
132
  }
125
133
 
134
+
135
+
126
136
  /**
127
137
  * Check if a given object implements the TransactionResource interface.
128
138
  */
@@ -152,7 +162,7 @@ export function TransactionResourceFromJSONTyped(json: any, ignoreDiscriminator:
152
162
 
153
163
  'id': json['id'] == null ? undefined : json['id'],
154
164
  'paymentSource': json['paymentSource'],
155
- 'paymentMethod': json['paymentMethod'],
165
+ 'paymentMethod': PaymentMethodFromJSON(json['paymentMethod']),
156
166
  'type': json['type'],
157
167
  'status': json['status'],
158
168
  'amount': json['amount'],
@@ -183,7 +193,7 @@ export function TransactionResourceToJSONTyped(value?: TransactionResource | nul
183
193
 
184
194
  'id': value['id'],
185
195
  'paymentSource': value['paymentSource'],
186
- 'paymentMethod': value['paymentMethod'],
196
+ 'paymentMethod': PaymentMethodToJSON(value['paymentMethod']),
187
197
  'type': value['type'],
188
198
  'status': value['status'],
189
199
  'amount': value['amount'],