@digital8/lighting-illusions-ts-sdk 0.0.2437 → 0.0.2438

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 (96) hide show
  1. package/.openapi-generator/FILES +4 -15
  2. package/README.md +2 -2
  3. package/dist/apis/AuspostApi.d.ts +29 -0
  4. package/dist/apis/AuspostApi.js +125 -0
  5. package/dist/apis/index.d.ts +1 -1
  6. package/dist/apis/index.js +1 -1
  7. package/dist/models/AddressFrontendResource.d.ts +1 -1
  8. package/dist/models/AddressFrontendResource.js +1 -3
  9. package/dist/models/AddressResource.d.ts +1 -1
  10. package/dist/models/AddressResource.js +1 -3
  11. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  12. package/dist/models/ExternalApiLogResource.js +3 -1
  13. package/dist/models/OrderFulfillmentResource.d.ts +1 -1
  14. package/dist/models/OrderFulfillmentResource.js +3 -1
  15. package/dist/models/ProductCategoryLiteResource.d.ts +0 -6
  16. package/dist/models/ProductCategoryLiteResource.js +0 -4
  17. package/dist/models/ProductChildListResource.d.ts +0 -6
  18. package/dist/models/ProductChildListResource.js +0 -4
  19. package/dist/models/SearchCartsRequest.d.ts +0 -6
  20. package/dist/models/SearchCartsRequest.js +0 -2
  21. package/dist/models/SearchOrdersRequest.d.ts +0 -6
  22. package/dist/models/SearchOrdersRequest.js +0 -2
  23. package/dist/models/StoreListResource.d.ts +1 -1
  24. package/dist/models/StoreListResource.js +1 -3
  25. package/dist/models/StoreResource.d.ts +2 -2
  26. package/dist/models/StoreResource.js +6 -2
  27. package/dist/models/SuburbValidationResource.d.ts +32 -0
  28. package/dist/models/SuburbValidationResource.js +51 -0
  29. package/dist/models/SuburbValidationResourceArrayResponse.d.ts +33 -0
  30. package/dist/models/SuburbValidationResourceArrayResponse.js +50 -0
  31. package/dist/models/ValidateSuburbRequest.d.ts +50 -0
  32. package/dist/models/ValidateSuburbRequest.js +63 -0
  33. package/dist/models/index.d.ts +3 -14
  34. package/dist/models/index.js +3 -14
  35. package/package.json +1 -1
  36. package/src/apis/AuspostApi.ts +69 -0
  37. package/src/apis/index.ts +1 -1
  38. package/src/models/AddressFrontendResource.ts +2 -3
  39. package/src/models/AddressResource.ts +2 -3
  40. package/src/models/ExternalApiLogResource.ts +3 -2
  41. package/src/models/OrderFulfillmentResource.ts +3 -2
  42. package/src/models/ProductCategoryLiteResource.ts +0 -9
  43. package/src/models/ProductChildListResource.ts +0 -9
  44. package/src/models/SearchCartsRequest.ts +0 -8
  45. package/src/models/SearchOrdersRequest.ts +0 -8
  46. package/src/models/StoreListResource.ts +2 -3
  47. package/src/models/StoreResource.ts +6 -4
  48. package/src/models/SuburbValidationResource.ts +66 -0
  49. package/src/models/SuburbValidationResourceArrayResponse.ts +73 -0
  50. package/src/models/ValidateSuburbRequest.ts +93 -0
  51. package/src/models/index.ts +3 -14
  52. package/dist/apis/CouponsApi.d.ts +0 -85
  53. package/dist/apis/CouponsApi.js +0 -355
  54. package/dist/models/CouponListResource.d.ts +0 -99
  55. package/dist/models/CouponListResource.js +0 -91
  56. package/dist/models/CouponListResourceArrayResponse.d.ts +0 -33
  57. package/dist/models/CouponListResourceArrayResponse.js +0 -50
  58. package/dist/models/CouponLiteResource.d.ts +0 -44
  59. package/dist/models/CouponLiteResource.js +0 -57
  60. package/dist/models/CouponLiteResourceArrayResponse.d.ts +0 -33
  61. package/dist/models/CouponLiteResourceArrayResponse.js +0 -50
  62. package/dist/models/CouponResource.d.ts +0 -163
  63. package/dist/models/CouponResource.js +0 -135
  64. package/dist/models/CouponResourceArrayResponse.d.ts +0 -33
  65. package/dist/models/CouponResourceArrayResponse.js +0 -50
  66. package/dist/models/CouponType.d.ts +0 -26
  67. package/dist/models/CouponType.js +0 -52
  68. package/dist/models/CreateCouponRequest.d.ts +0 -126
  69. package/dist/models/CreateCouponRequest.js +0 -107
  70. package/dist/models/CreateCouponRequestCouponablesInner.d.ts +0 -48
  71. package/dist/models/CreateCouponRequestCouponablesInner.js +0 -61
  72. package/dist/models/PaginatedCouponListResourceResponse.d.ts +0 -40
  73. package/dist/models/PaginatedCouponListResourceResponse.js +0 -57
  74. package/dist/models/PaginatedCouponResourceResponse.d.ts +0 -40
  75. package/dist/models/PaginatedCouponResourceResponse.js +0 -57
  76. package/dist/models/SearchAllCouponsRequest.d.ts +0 -101
  77. package/dist/models/SearchAllCouponsRequest.js +0 -85
  78. package/dist/models/SearchCouponsRequest.d.ts +0 -137
  79. package/dist/models/SearchCouponsRequest.js +0 -97
  80. package/dist/models/UpdateCouponRequest.d.ts +0 -120
  81. package/dist/models/UpdateCouponRequest.js +0 -103
  82. package/src/apis/CouponsApi.ts +0 -286
  83. package/src/models/CouponListResource.ts +0 -170
  84. package/src/models/CouponListResourceArrayResponse.ts +0 -73
  85. package/src/models/CouponLiteResource.ts +0 -83
  86. package/src/models/CouponLiteResourceArrayResponse.ts +0 -73
  87. package/src/models/CouponResource.ts +0 -288
  88. package/src/models/CouponResourceArrayResponse.ts +0 -73
  89. package/src/models/CouponType.ts +0 -54
  90. package/src/models/CreateCouponRequest.ts +0 -207
  91. package/src/models/CreateCouponRequestCouponablesInner.ts +0 -86
  92. package/src/models/PaginatedCouponListResourceResponse.ts +0 -90
  93. package/src/models/PaginatedCouponResourceResponse.ts +0 -90
  94. package/src/models/SearchAllCouponsRequest.ts +0 -154
  95. package/src/models/SearchCouponsRequest.ts +0 -202
  96. package/src/models/UpdateCouponRequest.ts +0 -198
@@ -6,9 +6,9 @@ package.json
6
6
  src/apis/AdminApi.ts
7
7
  src/apis/AssetApi.ts
8
8
  src/apis/AttributeApi.ts
9
+ src/apis/AuspostApi.ts
9
10
  src/apis/BlogCategoryApi.ts
10
11
  src/apis/CartsApi.ts
11
- src/apis/CouponsApi.ts
12
12
  src/apis/CustomersApi.ts
13
13
  src/apis/DefinitionApi.ts
14
14
  src/apis/DocumentApi.ts
@@ -118,13 +118,6 @@ src/models/CategoryFrontendResourceArrayResponse.ts
118
118
  src/models/CategoryWithChildrenFrontendResource.ts
119
119
  src/models/CategoryWithChildrenFrontendResourceArrayResponse.ts
120
120
  src/models/CouponDiscountType.ts
121
- src/models/CouponListResource.ts
122
- src/models/CouponListResourceArrayResponse.ts
123
- src/models/CouponLiteResource.ts
124
- src/models/CouponLiteResourceArrayResponse.ts
125
- src/models/CouponResource.ts
126
- src/models/CouponResourceArrayResponse.ts
127
- src/models/CouponType.ts
128
121
  src/models/CreateAssetFileRequest.ts
129
122
  src/models/CreateAssetForAssetableRequest.ts
130
123
  src/models/CreateAttributeRequest.ts
@@ -135,8 +128,6 @@ src/models/CreateBlogCategoryRequestSeoInner.ts
135
128
  src/models/CreateCartRequest.ts
136
129
  src/models/CreateCartRequestItemsInner.ts
137
130
  src/models/CreateCartRequestShippingAddress.ts
138
- src/models/CreateCouponRequest.ts
139
- src/models/CreateCouponRequestCouponablesInner.ts
140
131
  src/models/CreateCustomerRequest.ts
141
132
  src/models/CreateDefinitionRequest.ts
142
133
  src/models/CreateDocumentFileRequest.ts
@@ -328,8 +319,6 @@ src/models/PaginatedBlogCategoryResourceResponse.ts
328
319
  src/models/PaginatedBlogFrontendResourceResponse.ts
329
320
  src/models/PaginatedCartListResourceResponse.ts
330
321
  src/models/PaginatedCategoryFrontendResourceResponse.ts
331
- src/models/PaginatedCouponListResourceResponse.ts
332
- src/models/PaginatedCouponResourceResponse.ts
333
322
  src/models/PaginatedCustomerListResourceResponse.ts
334
323
  src/models/PaginatedCustomerReviewableItemFrontendResourceResponse.ts
335
324
  src/models/PaginatedDefinitionListResourceResponse.ts
@@ -533,7 +522,6 @@ src/models/SearchAdminNotesRequest.ts
533
522
  src/models/SearchAllAttributeValuesRequest.ts
534
523
  src/models/SearchAllAttributesRequest.ts
535
524
  src/models/SearchAllBlogCategoriesRequest.ts
536
- src/models/SearchAllCouponsRequest.ts
537
525
  src/models/SearchAllDefinitionsRequest.ts
538
526
  src/models/SearchAllDocumentsRequest.ts
539
527
  src/models/SearchAllFrontendComponentsRequest.ts
@@ -556,7 +544,6 @@ src/models/SearchAttributeValuesRequest.ts
556
544
  src/models/SearchAttributesRequest.ts
557
545
  src/models/SearchBlogCategoriesRequest.ts
558
546
  src/models/SearchCartsRequest.ts
559
- src/models/SearchCouponsRequest.ts
560
547
  src/models/SearchCustomersRequest.ts
561
548
  src/models/SearchDefinitionsRequest.ts
562
549
  src/models/SearchDocumentsRequest.ts
@@ -620,6 +607,8 @@ src/models/StoreSpecialDateResourceArrayResponse.ts
620
607
  src/models/StoreStockType.ts
621
608
  src/models/StoreTransactionResource.ts
622
609
  src/models/StoreTransactionResourceArrayResponse.ts
610
+ src/models/SuburbValidationResource.ts
611
+ src/models/SuburbValidationResourceArrayResponse.ts
623
612
  src/models/SupplierFrontendResource.ts
624
613
  src/models/SupplierFrontendResourceArrayResponse.ts
625
614
  src/models/SupplierListResource.ts
@@ -654,7 +643,6 @@ src/models/UpdateAttributeRequest.ts
654
643
  src/models/UpdateAttributeValueRequest.ts
655
644
  src/models/UpdateBlogCategoryRequest.ts
656
645
  src/models/UpdateCartRequest.ts
657
- src/models/UpdateCouponRequest.ts
658
646
  src/models/UpdateDefinitionRequest.ts
659
647
  src/models/UpdateDocumentRequest.ts
660
648
  src/models/UpdateLabelRequest.ts
@@ -684,6 +672,7 @@ src/models/UpdateStoreRequest.ts
684
672
  src/models/UpdateStoreRequestSpecialDatesInner.ts
685
673
  src/models/UpdateSupplierRequest.ts
686
674
  src/models/UpdateTagRequest.ts
675
+ src/models/ValidateSuburbRequest.ts
687
676
  src/models/WishlistCheckResource.ts
688
677
  src/models/WishlistCheckResourceArrayResponse.ts
689
678
  src/models/WishlistToggleResource.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @digital8/lighting-illusions-ts-sdk@0.0.2437
1
+ ## @digital8/lighting-illusions-ts-sdk@0.0.2438
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.2437 --save
39
+ npm install @digital8/lighting-illusions-ts-sdk@0.0.2438 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -0,0 +1,29 @@
1
+ /**
2
+ * My API
3
+ * API documentation for my Laravel app
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import * as runtime from '../runtime';
13
+ import type { SuburbValidationResource, ValidateSuburbRequest } from '../models/index';
14
+ export interface ValidateSuburbValidationRequest {
15
+ validateSuburbRequest?: ValidateSuburbRequest;
16
+ }
17
+ /**
18
+ *
19
+ */
20
+ export declare class AuspostApi extends runtime.BaseAPI {
21
+ /**
22
+ * Auto-generated: validateSuburbValidation
23
+ */
24
+ validateSuburbValidationRaw(requestParameters: ValidateSuburbValidationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuburbValidationResource>>;
25
+ /**
26
+ * Auto-generated: validateSuburbValidation
27
+ */
28
+ validateSuburbValidation(requestParameters?: ValidateSuburbValidationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuburbValidationResource>;
29
+ }
@@ -0,0 +1,125 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * My API
6
+ * API documentation for my Laravel app
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
31
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
32
+ return new (P || (P = Promise))(function (resolve, reject) {
33
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
34
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
35
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
36
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
37
+ });
38
+ };
39
+ var __generator = (this && this.__generator) || function (thisArg, body) {
40
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
41
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
42
+ function verb(n) { return function (v) { return step([n, v]); }; }
43
+ function step(op) {
44
+ if (f) throw new TypeError("Generator is already executing.");
45
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
46
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
47
+ if (y = 0, t) op = [op[0] & 2, t.value];
48
+ switch (op[0]) {
49
+ case 0: case 1: t = op; break;
50
+ case 4: _.label++; return { value: op[1], done: false };
51
+ case 5: _.label++; y = op[1]; op = [0]; continue;
52
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
53
+ default:
54
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
55
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
56
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
57
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
58
+ if (t[2]) _.ops.pop();
59
+ _.trys.pop(); continue;
60
+ }
61
+ op = body.call(thisArg, _);
62
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
63
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
64
+ }
65
+ };
66
+ Object.defineProperty(exports, "__esModule", { value: true });
67
+ exports.AuspostApi = void 0;
68
+ var runtime = require("../runtime");
69
+ var index_1 = require("../models/index");
70
+ /**
71
+ *
72
+ */
73
+ var AuspostApi = /** @class */ (function (_super) {
74
+ __extends(AuspostApi, _super);
75
+ function AuspostApi() {
76
+ return _super !== null && _super.apply(this, arguments) || this;
77
+ }
78
+ /**
79
+ * Auto-generated: validateSuburbValidation
80
+ */
81
+ AuspostApi.prototype.validateSuburbValidationRaw = function (requestParameters, initOverrides) {
82
+ return __awaiter(this, void 0, void 0, function () {
83
+ var queryParameters, headerParameters, urlPath, response;
84
+ return __generator(this, function (_a) {
85
+ switch (_a.label) {
86
+ case 0:
87
+ queryParameters = {};
88
+ headerParameters = {};
89
+ headerParameters['Content-Type'] = 'application/json';
90
+ urlPath = "/admin-api/auspost/validate-suburb";
91
+ return [4 /*yield*/, this.request({
92
+ path: urlPath,
93
+ method: 'POST',
94
+ headers: headerParameters,
95
+ query: queryParameters,
96
+ body: (0, index_1.ValidateSuburbRequestToJSON)(requestParameters['validateSuburbRequest']),
97
+ }, initOverrides)];
98
+ case 1:
99
+ response = _a.sent();
100
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.SuburbValidationResourceFromJSON)(jsonValue); })];
101
+ }
102
+ });
103
+ });
104
+ };
105
+ /**
106
+ * Auto-generated: validateSuburbValidation
107
+ */
108
+ AuspostApi.prototype.validateSuburbValidation = function () {
109
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
110
+ var response;
111
+ if (requestParameters === void 0) { requestParameters = {}; }
112
+ return __generator(this, function (_a) {
113
+ switch (_a.label) {
114
+ case 0: return [4 /*yield*/, this.validateSuburbValidationRaw(requestParameters, initOverrides)];
115
+ case 1:
116
+ response = _a.sent();
117
+ return [4 /*yield*/, response.value()];
118
+ case 2: return [2 /*return*/, _a.sent()];
119
+ }
120
+ });
121
+ });
122
+ };
123
+ return AuspostApi;
124
+ }(runtime.BaseAPI));
125
+ exports.AuspostApi = AuspostApi;
@@ -1,9 +1,9 @@
1
1
  export * from './AdminApi';
2
2
  export * from './AssetApi';
3
3
  export * from './AttributeApi';
4
+ export * from './AuspostApi';
4
5
  export * from './BlogCategoryApi';
5
6
  export * from './CartsApi';
6
- export * from './CouponsApi';
7
7
  export * from './CustomersApi';
8
8
  export * from './DefinitionApi';
9
9
  export * from './DocumentApi';
@@ -19,9 +19,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
19
19
  __exportStar(require("./AdminApi"), exports);
20
20
  __exportStar(require("./AssetApi"), exports);
21
21
  __exportStar(require("./AttributeApi"), exports);
22
+ __exportStar(require("./AuspostApi"), exports);
22
23
  __exportStar(require("./BlogCategoryApi"), exports);
23
24
  __exportStar(require("./CartsApi"), exports);
24
- __exportStar(require("./CouponsApi"), exports);
25
25
  __exportStar(require("./CustomersApi"), exports);
26
26
  __exportStar(require("./DefinitionApi"), exports);
27
27
  __exportStar(require("./DocumentApi"), exports);
@@ -20,7 +20,7 @@ export interface AddressFrontendResource {
20
20
  * @type {string}
21
21
  * @memberof AddressFrontendResource
22
22
  */
23
- company: string;
23
+ company?: string | null;
24
24
  /**
25
25
  *
26
26
  * @type {string}
@@ -22,8 +22,6 @@ exports.AddressFrontendResourceToJSONTyped = AddressFrontendResourceToJSONTyped;
22
22
  * Check if a given object implements the AddressFrontendResource interface.
23
23
  */
24
24
  function instanceOfAddressFrontendResource(value) {
25
- if (!('company' in value) || value['company'] === undefined)
26
- return false;
27
25
  if (!('line1' in value) || value['line1'] === undefined)
28
26
  return false;
29
27
  if (!('postcode' in value) || value['postcode'] === undefined)
@@ -46,7 +44,7 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
46
44
  return json;
47
45
  }
48
46
  return {
49
- 'company': json['company'],
47
+ 'company': json['company'] == null ? undefined : json['company'],
50
48
  'line1': json['line1'],
51
49
  'line2': json['line2'] == null ? undefined : json['line2'],
52
50
  'postcode': json['postcode'],
@@ -56,7 +56,7 @@ export interface AddressResource {
56
56
  * @type {string}
57
57
  * @memberof AddressResource
58
58
  */
59
- line2: string;
59
+ line2?: string | null;
60
60
  /**
61
61
  *
62
62
  * @type {string}
@@ -26,8 +26,6 @@ function instanceOfAddressResource(value) {
26
26
  return false;
27
27
  if (!('line1' in value) || value['line1'] === undefined)
28
28
  return false;
29
- if (!('line2' in value) || value['line2'] === undefined)
30
- return false;
31
29
  if (!('postcode' in value) || value['postcode'] === undefined)
32
30
  return false;
33
31
  if (!('suburb' in value) || value['suburb'] === undefined)
@@ -54,7 +52,7 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
54
52
  'addresseeName': json['addresseeName'],
55
53
  'company': json['company'] == null ? undefined : json['company'],
56
54
  'line1': json['line1'],
57
- 'line2': json['line2'],
55
+ 'line2': json['line2'] == null ? undefined : json['line2'],
58
56
  'postcode': json['postcode'],
59
57
  'suburb': json['suburb'],
60
58
  'country': json['country'],
@@ -63,7 +63,7 @@ export interface ExternalApiLogResource {
63
63
  * @type {string}
64
64
  * @memberof ExternalApiLogResource
65
65
  */
66
- requestPayload?: string | null;
66
+ requestPayload: string;
67
67
  /**
68
68
  *
69
69
  * @type {string}
@@ -37,6 +37,8 @@ function instanceOfExternalApiLogResource(value) {
37
37
  return false;
38
38
  if (!('responseCode' in value) || value['responseCode'] === undefined)
39
39
  return false;
40
+ if (!('requestPayload' in value) || value['requestPayload'] === undefined)
41
+ return false;
40
42
  if (!('responsePayload' in value) || value['responsePayload'] === undefined)
41
43
  return false;
42
44
  if (!('site' in value) || value['site'] === undefined)
@@ -58,7 +60,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
58
60
  'exteranlApiLoggableId': json['exteranlApiLoggableId'],
59
61
  'endpoint': json['endpoint'],
60
62
  'responseCode': json['responseCode'],
61
- 'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
63
+ 'requestPayload': json['requestPayload'],
62
64
  'responsePayload': json['responsePayload'],
63
65
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
64
66
  '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'],
@@ -39,12 +39,6 @@ export interface ProductCategoryLiteResource {
39
39
  * @memberof ProductCategoryLiteResource
40
40
  */
41
41
  isAutomated: boolean;
42
- /**
43
- *
44
- * @type {boolean}
45
- * @memberof ProductCategoryLiteResource
46
- */
47
- isParent: boolean;
48
42
  }
49
43
  /**
50
44
  * Check if a given object implements the ProductCategoryLiteResource interface.
@@ -28,8 +28,6 @@ function instanceOfProductCategoryLiteResource(value) {
28
28
  return false;
29
29
  if (!('isAutomated' in value) || value['isAutomated'] === undefined)
30
30
  return false;
31
- if (!('isParent' in value) || value['isParent'] === undefined)
32
- return false;
33
31
  return true;
34
32
  }
35
33
  function ProductCategoryLiteResourceFromJSON(json) {
@@ -44,7 +42,6 @@ function ProductCategoryLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
44
42
  'name': json['name'],
45
43
  'siteId': json['siteId'],
46
44
  'isAutomated': json['isAutomated'],
47
- 'isParent': json['isParent'],
48
45
  };
49
46
  }
50
47
  function ProductCategoryLiteResourceToJSON(json) {
@@ -60,6 +57,5 @@ function ProductCategoryLiteResourceToJSONTyped(value, ignoreDiscriminator) {
60
57
  'name': value['name'],
61
58
  'siteId': value['siteId'],
62
59
  'isAutomated': value['isAutomated'],
63
- 'isParent': value['isParent'],
64
60
  };
65
61
  }
@@ -41,12 +41,6 @@ export interface ProductChildListResource {
41
41
  * @memberof ProductChildListResource
42
42
  */
43
43
  name: string;
44
- /**
45
- *
46
- * @type {string}
47
- * @memberof ProductChildListResource
48
- */
49
- fullName: string;
50
44
  /**
51
45
  *
52
46
  * @type {string}
@@ -30,8 +30,6 @@ function instanceOfProductChildListResource(value) {
30
30
  return false;
31
31
  if (!('name' in value) || value['name'] === undefined)
32
32
  return false;
33
- if (!('fullName' in value) || value['fullName'] === undefined)
34
- return false;
35
33
  if (!('model' in value) || value['model'] === undefined)
36
34
  return false;
37
35
  if (!('stock' in value) || value['stock'] === undefined)
@@ -58,7 +56,6 @@ function ProductChildListResourceFromJSONTyped(json, ignoreDiscriminator) {
58
56
  'parentId': json['parentId'] == null ? undefined : json['parentId'],
59
57
  'sku': json['sku'],
60
58
  'name': json['name'],
61
- 'fullName': json['fullName'],
62
59
  'model': json['model'],
63
60
  'stock': json['stock'],
64
61
  'isDisabled': json['isDisabled'] == null ? undefined : json['isDisabled'],
@@ -82,7 +79,6 @@ function ProductChildListResourceToJSONTyped(value, ignoreDiscriminator) {
82
79
  'parentId': value['parentId'],
83
80
  'sku': value['sku'],
84
81
  'name': value['name'],
85
- 'fullName': value['fullName'],
86
82
  'model': value['model'],
87
83
  'stock': value['stock'],
88
84
  'isDisabled': value['isDisabled'],
@@ -117,12 +117,6 @@ export interface SearchCartsRequest {
117
117
  * @memberof SearchCartsRequest
118
118
  */
119
119
  includesRelations?: boolean;
120
- /**
121
- *
122
- * @type {number}
123
- * @memberof SearchCartsRequest
124
- */
125
- couponId?: number | null;
126
120
  }
127
121
  /**
128
122
  * @export
@@ -66,7 +66,6 @@ function SearchCartsRequestFromJSONTyped(json, ignoreDiscriminator) {
66
66
  'relatedId': json['related_id'] == null ? undefined : json['related_id'],
67
67
  'relatedType': json['related_type'] == null ? undefined : json['related_type'],
68
68
  'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
69
- 'couponId': json['coupon_id'] == null ? undefined : json['coupon_id'],
70
69
  };
71
70
  }
72
71
  function SearchCartsRequestToJSON(json) {
@@ -95,6 +94,5 @@ function SearchCartsRequestToJSONTyped(value, ignoreDiscriminator) {
95
94
  'related_id': value['relatedId'],
96
95
  'related_type': value['relatedType'],
97
96
  'includes_relations': value['includesRelations'],
98
- 'coupon_id': value['couponId'],
99
97
  };
100
98
  }
@@ -129,12 +129,6 @@ export interface SearchOrdersRequest {
129
129
  * @memberof SearchOrdersRequest
130
130
  */
131
131
  includesRelations?: boolean;
132
- /**
133
- *
134
- * @type {number}
135
- * @memberof SearchOrdersRequest
136
- */
137
- couponId?: number | null;
138
132
  }
139
133
  /**
140
134
  * @export
@@ -69,7 +69,6 @@ function SearchOrdersRequestFromJSONTyped(json, ignoreDiscriminator) {
69
69
  'relatedId': json['related_id'] == null ? undefined : json['related_id'],
70
70
  'relatedType': json['related_type'] == null ? undefined : json['related_type'],
71
71
  'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
72
- 'couponId': json['coupon_id'] == null ? undefined : json['coupon_id'],
73
72
  };
74
73
  }
75
74
  function SearchOrdersRequestToJSON(json) {
@@ -100,6 +99,5 @@ function SearchOrdersRequestToJSONTyped(value, ignoreDiscriminator) {
100
99
  'related_id': value['relatedId'],
101
100
  'related_type': value['relatedType'],
102
101
  'includes_relations': value['includesRelations'],
103
- 'coupon_id': value['couponId'],
104
102
  };
105
103
  }
@@ -69,7 +69,7 @@ export interface StoreListResource {
69
69
  * @type {string}
70
70
  * @memberof StoreListResource
71
71
  */
72
- website: string;
72
+ website?: string | null;
73
73
  /**
74
74
  *
75
75
  * @type {number}
@@ -37,8 +37,6 @@ function instanceOfStoreListResource(value) {
37
37
  return false;
38
38
  if (!('email' in value) || value['email'] === undefined)
39
39
  return false;
40
- if (!('website' in value) || value['website'] === undefined)
41
- return false;
42
40
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
43
41
  return false;
44
42
  if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined)
@@ -61,7 +59,7 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
61
59
  'latitude': json['latitude'],
62
60
  'tagLine': json['tagLine'],
63
61
  'email': json['email'],
64
- 'website': json['website'],
62
+ 'website': json['website'] == null ? undefined : json['website'],
65
63
  'netsuiteId': json['netsuiteId'],
66
64
  'displayNetsuiteId': json['displayNetsuiteId'],
67
65
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
@@ -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}
@@ -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}
@@ -36,8 +36,12 @@ 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;
43
+ if (!('website' in value) || value['website'] === undefined)
44
+ return false;
41
45
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
42
46
  return false;
43
47
  if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined)
@@ -64,9 +68,9 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
64
68
  'phone': json['phone'],
65
69
  'longitude': json['longitude'],
66
70
  'latitude': json['latitude'],
67
- 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
71
+ 'tagLine': json['tagLine'],
68
72
  'email': json['email'],
69
- 'website': json['website'] == null ? undefined : json['website'],
73
+ 'website': json['website'],
70
74
  'netsuiteId': json['netsuiteId'],
71
75
  'displayNetsuiteId': json['displayNetsuiteId'],
72
76
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
@@ -0,0 +1,32 @@
1
+ /**
2
+ * My API
3
+ * API documentation for my Laravel app
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface SuburbValidationResource
16
+ */
17
+ export interface SuburbValidationResource {
18
+ /**
19
+ *
20
+ * @type {boolean}
21
+ * @memberof SuburbValidationResource
22
+ */
23
+ found: boolean;
24
+ }
25
+ /**
26
+ * Check if a given object implements the SuburbValidationResource interface.
27
+ */
28
+ export declare function instanceOfSuburbValidationResource(value: object): value is SuburbValidationResource;
29
+ export declare function SuburbValidationResourceFromJSON(json: any): SuburbValidationResource;
30
+ export declare function SuburbValidationResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): SuburbValidationResource;
31
+ export declare function SuburbValidationResourceToJSON(json: any): SuburbValidationResource;
32
+ export declare function SuburbValidationResourceToJSONTyped(value?: SuburbValidationResource | null, ignoreDiscriminator?: boolean): any;