@digital8/lighting-illusions-ts-sdk 0.0.634 → 0.0.635

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 (99) hide show
  1. package/.openapi-generator/FILES +38 -4
  2. package/README.md +26 -4
  3. package/dist/apis/DefinitionApi.d.ts +85 -0
  4. package/dist/apis/DefinitionApi.js +355 -0
  5. package/dist/apis/index.d.ts +1 -1
  6. package/dist/apis/index.js +1 -1
  7. package/dist/models/AssetFrontendResource.d.ts +74 -0
  8. package/dist/models/AssetFrontendResource.js +79 -0
  9. package/dist/models/AssetFrontendResourceArrayResponse.d.ts +33 -0
  10. package/dist/models/AssetFrontendResourceArrayResponse.js +50 -0
  11. package/dist/models/DefinitionListResource.d.ts +38 -0
  12. package/dist/models/DefinitionListResource.js +55 -0
  13. package/dist/models/DefinitionListResourceArrayResponse.d.ts +33 -0
  14. package/dist/models/DefinitionListResourceArrayResponse.js +50 -0
  15. package/dist/models/DefinitionResource.d.ts +44 -0
  16. package/dist/models/DefinitionResource.js +59 -0
  17. package/dist/models/DefinitionResourceArrayResponse.d.ts +33 -0
  18. package/dist/models/DefinitionResourceArrayResponse.js +50 -0
  19. package/dist/models/DocumentFrontendResource.d.ts +44 -0
  20. package/dist/models/DocumentFrontendResource.js +57 -0
  21. package/dist/models/DocumentFrontendResourceArrayResponse.d.ts +33 -0
  22. package/dist/models/DocumentFrontendResourceArrayResponse.js +50 -0
  23. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  24. package/dist/models/ExternalApiLogResource.js +3 -1
  25. package/dist/models/GetAllDefinitionRequest.d.ts +80 -0
  26. package/dist/models/GetAllDefinitionRequest.js +76 -0
  27. package/dist/models/IndexDefinitionRequest.d.ts +92 -0
  28. package/dist/models/IndexDefinitionRequest.js +80 -0
  29. package/dist/models/OverlayTemplateAssetFrontendResource.d.ts +62 -0
  30. package/dist/models/OverlayTemplateAssetFrontendResource.js +71 -0
  31. package/dist/models/OverlayTemplateAssetFrontendResourceArrayResponse.d.ts +33 -0
  32. package/dist/models/OverlayTemplateAssetFrontendResourceArrayResponse.js +50 -0
  33. package/dist/models/PaginatedDefinitionListResourceResponse.d.ts +40 -0
  34. package/dist/models/PaginatedDefinitionListResourceResponse.js +57 -0
  35. package/dist/models/PaginatedDefinitionResourceResponse.d.ts +40 -0
  36. package/dist/models/PaginatedDefinitionResourceResponse.js +57 -0
  37. package/dist/models/ProductCompareResource.d.ts +141 -0
  38. package/dist/models/ProductCompareResource.js +124 -0
  39. package/dist/models/ProductCompareResourceArrayResponse.d.ts +33 -0
  40. package/dist/models/ProductCompareResourceArrayResponse.js +50 -0
  41. package/dist/models/StoreDefinitionRequest.d.ts +38 -0
  42. package/dist/models/StoreDefinitionRequest.js +55 -0
  43. package/dist/models/StoreProductCategoryRequest.d.ts +2 -2
  44. package/dist/models/UpdateDefinitionRequest.d.ts +38 -0
  45. package/dist/models/UpdateDefinitionRequest.js +55 -0
  46. package/dist/models/index.d.ts +18 -1
  47. package/dist/models/index.js +18 -1
  48. package/docs/AssetFrontendResource.md +48 -0
  49. package/docs/AssetFrontendResourceArrayResponse.md +34 -0
  50. package/docs/DefinitionApi.md +407 -0
  51. package/docs/DefinitionListResource.md +36 -0
  52. package/docs/DefinitionListResourceArrayResponse.md +34 -0
  53. package/docs/DefinitionResource.md +38 -0
  54. package/docs/DefinitionResourceArrayResponse.md +34 -0
  55. package/docs/DocumentFrontendResource.md +38 -0
  56. package/docs/DocumentFrontendResourceArrayResponse.md +34 -0
  57. package/docs/GetAllDefinitionRequest.md +44 -0
  58. package/docs/IndexDefinitionRequest.md +48 -0
  59. package/docs/OverlayTemplateAssetFrontendResource.md +44 -0
  60. package/docs/OverlayTemplateAssetFrontendResourceArrayResponse.md +34 -0
  61. package/docs/PaginatedDefinitionListResourceResponse.md +36 -0
  62. package/docs/PaginatedDefinitionResourceResponse.md +36 -0
  63. package/docs/ProductCompareResource.md +70 -0
  64. package/docs/ProductCompareResourceArrayResponse.md +34 -0
  65. package/docs/StoreDefinitionRequest.md +36 -0
  66. package/docs/StoreProductCategoryRequest.md +1 -1
  67. package/docs/UpdateDefinitionRequest.md +36 -0
  68. package/package.json +1 -1
  69. package/src/apis/DefinitionApi.ts +286 -0
  70. package/src/apis/index.ts +1 -1
  71. package/src/models/AssetFrontendResource.ts +129 -0
  72. package/src/models/AssetFrontendResourceArrayResponse.ts +73 -0
  73. package/src/models/DefinitionListResource.ts +75 -0
  74. package/src/models/DefinitionListResourceArrayResponse.ts +73 -0
  75. package/src/models/DefinitionResource.ts +84 -0
  76. package/src/models/DefinitionResourceArrayResponse.ts +73 -0
  77. package/src/models/DocumentFrontendResource.ts +83 -0
  78. package/src/models/DocumentFrontendResourceArrayResponse.ts +73 -0
  79. package/src/models/ExternalApiLogResource.ts +3 -2
  80. package/src/models/GetAllDefinitionRequest.ts +127 -0
  81. package/src/models/IndexDefinitionRequest.ts +143 -0
  82. package/src/models/OverlayTemplateAssetFrontendResource.ts +111 -0
  83. package/src/models/OverlayTemplateAssetFrontendResourceArrayResponse.ts +73 -0
  84. package/src/models/PaginatedDefinitionListResourceResponse.ts +90 -0
  85. package/src/models/PaginatedDefinitionResourceResponse.ts +90 -0
  86. package/src/models/ProductCompareResource.ts +236 -0
  87. package/src/models/ProductCompareResourceArrayResponse.ts +73 -0
  88. package/src/models/StoreDefinitionRequest.ts +75 -0
  89. package/src/models/StoreProductCategoryRequest.ts +2 -2
  90. package/src/models/UpdateDefinitionRequest.ts +75 -0
  91. package/src/models/index.ts +18 -1
  92. package/dist/apis/NetsuiteApi.d.ts +0 -29
  93. package/dist/apis/NetsuiteApi.js +0 -125
  94. package/dist/models/SyncProductNetsuiteProductRequest.d.ts +0 -182
  95. package/dist/models/SyncProductNetsuiteProductRequest.js +0 -101
  96. package/docs/NetsuiteApi.md +0 -74
  97. package/docs/SyncProductNetsuiteProductRequest.md +0 -84
  98. package/src/apis/NetsuiteApi.ts +0 -69
  99. package/src/models/SyncProductNetsuiteProductRequest.ts +0 -266
@@ -1,101 +0,0 @@
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
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.instanceOfSyncProductNetsuiteProductRequest = instanceOfSyncProductNetsuiteProductRequest;
17
- exports.SyncProductNetsuiteProductRequestFromJSON = SyncProductNetsuiteProductRequestFromJSON;
18
- exports.SyncProductNetsuiteProductRequestFromJSONTyped = SyncProductNetsuiteProductRequestFromJSONTyped;
19
- exports.SyncProductNetsuiteProductRequestToJSON = SyncProductNetsuiteProductRequestToJSON;
20
- exports.SyncProductNetsuiteProductRequestToJSONTyped = SyncProductNetsuiteProductRequestToJSONTyped;
21
- /**
22
- * Check if a given object implements the SyncProductNetsuiteProductRequest interface.
23
- */
24
- function instanceOfSyncProductNetsuiteProductRequest(value) {
25
- if (!('internalId' in value) || value['internalId'] === undefined)
26
- return false;
27
- return true;
28
- }
29
- function SyncProductNetsuiteProductRequestFromJSON(json) {
30
- return SyncProductNetsuiteProductRequestFromJSONTyped(json, false);
31
- }
32
- function SyncProductNetsuiteProductRequestFromJSONTyped(json, ignoreDiscriminator) {
33
- if (json == null) {
34
- return json;
35
- }
36
- return {
37
- 'internalId': json['internalId'],
38
- 'productType': json['productType'] == null ? undefined : json['productType'],
39
- 'upccode': json['upccode'] == null ? undefined : json['upccode'],
40
- 'vendorname': json['vendorname'] == null ? undefined : json['vendorname'],
41
- 'custitemAnxRetailId': json['custitem_anx_retail_id'] == null ? undefined : json['custitem_anx_retail_id'],
42
- 'weight': json['weight'] == null ? undefined : json['weight'],
43
- 'custitemAnxAllowOversell': json['custitem_anx_allow_oversell'] == null ? undefined : json['custitem_anx_allow_oversell'],
44
- 'onlineLocationCost': json['online_location_cost'] == null ? undefined : json['online_location_cost'],
45
- 'popularityScore': json['popularity_score'] == null ? undefined : json['popularity_score'],
46
- 'excludeFrontend': json['exclude_frontend'] == null ? undefined : json['exclude_frontend'],
47
- 'excludeSearch': json['exclude_search'] == null ? undefined : json['exclude_search'],
48
- 'oversized': json['oversized'] == null ? undefined : json['oversized'],
49
- 'isBundle': json['is_bundle'] == null ? undefined : json['is_bundle'],
50
- 'bundleUpccode': json['bundle_upccode'] == null ? undefined : json['bundle_upccode'],
51
- 'published': json['published'] == null ? undefined : json['published'],
52
- 'custitemrrpGst': json['custitemrrp_gst'] == null ? undefined : json['custitemrrp_gst'],
53
- 'liPrice': json['li_price'] == null ? undefined : json['li_price'],
54
- 'cfdPrice': json['cfd_price'] == null ? undefined : json['cfd_price'],
55
- 'labelLi': json['label_li'] == null ? undefined : json['label_li'],
56
- 'labelCfd': json['label_cfd'] == null ? undefined : json['label_cfd'],
57
- 'priceFeedLi': json['price_feed_li'] == null ? undefined : json['price_feed_li'],
58
- 'priceFeedCfd': json['price_feed_cfd'] == null ? undefined : json['price_feed_cfd'],
59
- 'socialFeed': json['social_feed'] == null ? undefined : json['social_feed'],
60
- 'attribRoom': json['attrib_room'] == null ? undefined : json['attrib_room'],
61
- 'attribStyle': json['attrib_style'] == null ? undefined : json['attrib_style'],
62
- 'attribPrimarycolour': json['attrib_primarycolour'] == null ? undefined : json['attrib_primarycolour'],
63
- };
64
- }
65
- function SyncProductNetsuiteProductRequestToJSON(json) {
66
- return SyncProductNetsuiteProductRequestToJSONTyped(json, false);
67
- }
68
- function SyncProductNetsuiteProductRequestToJSONTyped(value, ignoreDiscriminator) {
69
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
70
- if (value == null) {
71
- return value;
72
- }
73
- return {
74
- 'internalId': value['internalId'],
75
- 'productType': value['productType'],
76
- 'upccode': value['upccode'],
77
- 'vendorname': value['vendorname'],
78
- 'custitem_anx_retail_id': value['custitemAnxRetailId'],
79
- 'weight': value['weight'],
80
- 'custitem_anx_allow_oversell': value['custitemAnxAllowOversell'],
81
- 'online_location_cost': value['onlineLocationCost'],
82
- 'popularity_score': value['popularityScore'],
83
- 'exclude_frontend': value['excludeFrontend'],
84
- 'exclude_search': value['excludeSearch'],
85
- 'oversized': value['oversized'],
86
- 'is_bundle': value['isBundle'],
87
- 'bundle_upccode': value['bundleUpccode'],
88
- 'published': value['published'],
89
- 'custitemrrp_gst': value['custitemrrpGst'],
90
- 'li_price': value['liPrice'],
91
- 'cfd_price': value['cfdPrice'],
92
- 'label_li': value['labelLi'],
93
- 'label_cfd': value['labelCfd'],
94
- 'price_feed_li': value['priceFeedLi'],
95
- 'price_feed_cfd': value['priceFeedCfd'],
96
- 'social_feed': value['socialFeed'],
97
- 'attrib_room': value['attribRoom'],
98
- 'attrib_style': value['attribStyle'],
99
- 'attrib_primarycolour': value['attribPrimarycolour'],
100
- };
101
- }
@@ -1,74 +0,0 @@
1
- # NetsuiteApi
2
-
3
- All URIs are relative to *http://localhost/api*
4
-
5
- | Method | HTTP request | Description |
6
- |------------- | ------------- | -------------|
7
- | [**syncProductNetsuiteProduct**](NetsuiteApi.md#syncproductnetsuiteproductoperation) | **POST** /admin-api/netsuite/products/sync | Auto-generated: syncProductNetsuiteProduct |
8
-
9
-
10
-
11
- ## syncProductNetsuiteProduct
12
-
13
- > GenericResponse syncProductNetsuiteProduct(syncProductNetsuiteProductRequest)
14
-
15
- Auto-generated: syncProductNetsuiteProduct
16
-
17
- ### Example
18
-
19
- ```ts
20
- import {
21
- Configuration,
22
- NetsuiteApi,
23
- } from '@digital8/lighting-illusions-ts-sdk';
24
- import type { SyncProductNetsuiteProductOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
25
-
26
- async function example() {
27
- console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
28
- const api = new NetsuiteApi();
29
-
30
- const body = {
31
- // SyncProductNetsuiteProductRequest (optional)
32
- syncProductNetsuiteProductRequest: ...,
33
- } satisfies SyncProductNetsuiteProductOperationRequest;
34
-
35
- try {
36
- const data = await api.syncProductNetsuiteProduct(body);
37
- console.log(data);
38
- } catch (error) {
39
- console.error(error);
40
- }
41
- }
42
-
43
- // Run the test
44
- example().catch(console.error);
45
- ```
46
-
47
- ### Parameters
48
-
49
-
50
- | Name | Type | Description | Notes |
51
- |------------- | ------------- | ------------- | -------------|
52
- | **syncProductNetsuiteProductRequest** | [SyncProductNetsuiteProductRequest](SyncProductNetsuiteProductRequest.md) | | [Optional] |
53
-
54
- ### Return type
55
-
56
- [**GenericResponse**](GenericResponse.md)
57
-
58
- ### Authorization
59
-
60
- No authorization required
61
-
62
- ### HTTP request headers
63
-
64
- - **Content-Type**: `application/json`
65
- - **Accept**: `application/json`
66
-
67
-
68
- ### HTTP response details
69
- | Status code | Description | Response headers |
70
- |-------------|-------------|------------------|
71
- | **200** | \\JsonResponse | - |
72
-
73
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
74
-
@@ -1,84 +0,0 @@
1
-
2
- # SyncProductNetsuiteProductRequest
3
-
4
-
5
- ## Properties
6
-
7
- Name | Type
8
- ------------ | -------------
9
- `internalId` | number
10
- `productType` | string
11
- `upccode` | string
12
- `vendorname` | string
13
- `custitemAnxRetailId` | string
14
- `weight` | number
15
- `custitemAnxAllowOversell` | string
16
- `onlineLocationCost` | number
17
- `popularityScore` | number
18
- `excludeFrontend` | string
19
- `excludeSearch` | string
20
- `oversized` | string
21
- `isBundle` | string
22
- `bundleUpccode` | string
23
- `published` | Array<string>
24
- `custitemrrpGst` | number
25
- `liPrice` | string
26
- `cfdPrice` | string
27
- `labelLi` | string
28
- `labelCfd` | string
29
- `priceFeedLi` | string
30
- `priceFeedCfd` | string
31
- `socialFeed` | string
32
- `attribRoom` | Array<string>
33
- `attribStyle` | Array<string>
34
- `attribPrimarycolour` | string
35
-
36
- ## Example
37
-
38
- ```typescript
39
- import type { SyncProductNetsuiteProductRequest } from '@digital8/lighting-illusions-ts-sdk'
40
-
41
- // TODO: Update the object below with actual values
42
- const example = {
43
- "internalId": null,
44
- "productType": null,
45
- "upccode": null,
46
- "vendorname": null,
47
- "custitemAnxRetailId": null,
48
- "weight": null,
49
- "custitemAnxAllowOversell": null,
50
- "onlineLocationCost": null,
51
- "popularityScore": null,
52
- "excludeFrontend": null,
53
- "excludeSearch": null,
54
- "oversized": null,
55
- "isBundle": null,
56
- "bundleUpccode": null,
57
- "published": null,
58
- "custitemrrpGst": null,
59
- "liPrice": null,
60
- "cfdPrice": null,
61
- "labelLi": null,
62
- "labelCfd": null,
63
- "priceFeedLi": null,
64
- "priceFeedCfd": null,
65
- "socialFeed": null,
66
- "attribRoom": null,
67
- "attribStyle": null,
68
- "attribPrimarycolour": null,
69
- } satisfies SyncProductNetsuiteProductRequest
70
-
71
- console.log(example)
72
-
73
- // Convert the instance to a JSON string
74
- const exampleJSON: string = JSON.stringify(example)
75
- console.log(exampleJSON)
76
-
77
- // Parse the JSON string back to an object
78
- const exampleParsed = JSON.parse(exampleJSON) as SyncProductNetsuiteProductRequest
79
- console.log(exampleParsed)
80
- ```
81
-
82
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
83
-
84
-
@@ -1,69 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * My API
5
- * API documentation for my Laravel app
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
-
16
- import * as runtime from '../runtime';
17
- import type {
18
- GenericResponse,
19
- SyncProductNetsuiteProductRequest,
20
- } from '../models/index';
21
- import {
22
- GenericResponseFromJSON,
23
- GenericResponseToJSON,
24
- SyncProductNetsuiteProductRequestFromJSON,
25
- SyncProductNetsuiteProductRequestToJSON,
26
- } from '../models/index';
27
-
28
- export interface SyncProductNetsuiteProductOperationRequest {
29
- syncProductNetsuiteProductRequest?: SyncProductNetsuiteProductRequest;
30
- }
31
-
32
- /**
33
- *
34
- */
35
- export class NetsuiteApi extends runtime.BaseAPI {
36
-
37
- /**
38
- * Auto-generated: syncProductNetsuiteProduct
39
- */
40
- async syncProductNetsuiteProductRaw(requestParameters: SyncProductNetsuiteProductOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>> {
41
- const queryParameters: any = {};
42
-
43
- const headerParameters: runtime.HTTPHeaders = {};
44
-
45
- headerParameters['Content-Type'] = 'application/json';
46
-
47
-
48
- let urlPath = `/admin-api/netsuite/products/sync`;
49
-
50
- const response = await this.request({
51
- path: urlPath,
52
- method: 'POST',
53
- headers: headerParameters,
54
- query: queryParameters,
55
- body: SyncProductNetsuiteProductRequestToJSON(requestParameters['syncProductNetsuiteProductRequest']),
56
- }, initOverrides);
57
-
58
- return new runtime.JSONApiResponse(response, (jsonValue) => GenericResponseFromJSON(jsonValue));
59
- }
60
-
61
- /**
62
- * Auto-generated: syncProductNetsuiteProduct
63
- */
64
- async syncProductNetsuiteProduct(requestParameters: SyncProductNetsuiteProductOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse> {
65
- const response = await this.syncProductNetsuiteProductRaw(requestParameters, initOverrides);
66
- return await response.value();
67
- }
68
-
69
- }
@@ -1,266 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * My API
5
- * API documentation for my Laravel app
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface SyncProductNetsuiteProductRequest
20
- */
21
- export interface SyncProductNetsuiteProductRequest {
22
- /**
23
- *
24
- * @type {number}
25
- * @memberof SyncProductNetsuiteProductRequest
26
- */
27
- internalId: number;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof SyncProductNetsuiteProductRequest
32
- */
33
- productType?: string;
34
- /**
35
- *
36
- * @type {string}
37
- * @memberof SyncProductNetsuiteProductRequest
38
- */
39
- upccode?: string;
40
- /**
41
- *
42
- * @type {string}
43
- * @memberof SyncProductNetsuiteProductRequest
44
- */
45
- vendorname?: string;
46
- /**
47
- *
48
- * @type {string}
49
- * @memberof SyncProductNetsuiteProductRequest
50
- */
51
- custitemAnxRetailId?: string;
52
- /**
53
- *
54
- * @type {number}
55
- * @memberof SyncProductNetsuiteProductRequest
56
- */
57
- weight?: number;
58
- /**
59
- *
60
- * @type {string}
61
- * @memberof SyncProductNetsuiteProductRequest
62
- */
63
- custitemAnxAllowOversell?: string;
64
- /**
65
- *
66
- * @type {number}
67
- * @memberof SyncProductNetsuiteProductRequest
68
- */
69
- onlineLocationCost?: number;
70
- /**
71
- *
72
- * @type {number}
73
- * @memberof SyncProductNetsuiteProductRequest
74
- */
75
- popularityScore?: number;
76
- /**
77
- *
78
- * @type {string}
79
- * @memberof SyncProductNetsuiteProductRequest
80
- */
81
- excludeFrontend?: string;
82
- /**
83
- *
84
- * @type {string}
85
- * @memberof SyncProductNetsuiteProductRequest
86
- */
87
- excludeSearch?: string;
88
- /**
89
- *
90
- * @type {string}
91
- * @memberof SyncProductNetsuiteProductRequest
92
- */
93
- oversized?: string;
94
- /**
95
- *
96
- * @type {string}
97
- * @memberof SyncProductNetsuiteProductRequest
98
- */
99
- isBundle?: string;
100
- /**
101
- *
102
- * @type {string}
103
- * @memberof SyncProductNetsuiteProductRequest
104
- */
105
- bundleUpccode?: string;
106
- /**
107
- *
108
- * @type {Array<string>}
109
- * @memberof SyncProductNetsuiteProductRequest
110
- */
111
- published?: Array<string>;
112
- /**
113
- *
114
- * @type {number}
115
- * @memberof SyncProductNetsuiteProductRequest
116
- */
117
- custitemrrpGst?: number;
118
- /**
119
- *
120
- * @type {string}
121
- * @memberof SyncProductNetsuiteProductRequest
122
- */
123
- liPrice?: string;
124
- /**
125
- *
126
- * @type {string}
127
- * @memberof SyncProductNetsuiteProductRequest
128
- */
129
- cfdPrice?: string;
130
- /**
131
- *
132
- * @type {string}
133
- * @memberof SyncProductNetsuiteProductRequest
134
- */
135
- labelLi?: string;
136
- /**
137
- *
138
- * @type {string}
139
- * @memberof SyncProductNetsuiteProductRequest
140
- */
141
- labelCfd?: string;
142
- /**
143
- *
144
- * @type {string}
145
- * @memberof SyncProductNetsuiteProductRequest
146
- */
147
- priceFeedLi?: string;
148
- /**
149
- *
150
- * @type {string}
151
- * @memberof SyncProductNetsuiteProductRequest
152
- */
153
- priceFeedCfd?: string;
154
- /**
155
- *
156
- * @type {string}
157
- * @memberof SyncProductNetsuiteProductRequest
158
- */
159
- socialFeed?: string;
160
- /**
161
- *
162
- * @type {Array<string>}
163
- * @memberof SyncProductNetsuiteProductRequest
164
- */
165
- attribRoom?: Array<string>;
166
- /**
167
- *
168
- * @type {Array<string>}
169
- * @memberof SyncProductNetsuiteProductRequest
170
- */
171
- attribStyle?: Array<string>;
172
- /**
173
- *
174
- * @type {string}
175
- * @memberof SyncProductNetsuiteProductRequest
176
- */
177
- attribPrimarycolour?: string;
178
- }
179
-
180
- /**
181
- * Check if a given object implements the SyncProductNetsuiteProductRequest interface.
182
- */
183
- export function instanceOfSyncProductNetsuiteProductRequest(value: object): value is SyncProductNetsuiteProductRequest {
184
- if (!('internalId' in value) || value['internalId'] === undefined) return false;
185
- return true;
186
- }
187
-
188
- export function SyncProductNetsuiteProductRequestFromJSON(json: any): SyncProductNetsuiteProductRequest {
189
- return SyncProductNetsuiteProductRequestFromJSONTyped(json, false);
190
- }
191
-
192
- export function SyncProductNetsuiteProductRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SyncProductNetsuiteProductRequest {
193
- if (json == null) {
194
- return json;
195
- }
196
- return {
197
-
198
- 'internalId': json['internalId'],
199
- 'productType': json['productType'] == null ? undefined : json['productType'],
200
- 'upccode': json['upccode'] == null ? undefined : json['upccode'],
201
- 'vendorname': json['vendorname'] == null ? undefined : json['vendorname'],
202
- 'custitemAnxRetailId': json['custitem_anx_retail_id'] == null ? undefined : json['custitem_anx_retail_id'],
203
- 'weight': json['weight'] == null ? undefined : json['weight'],
204
- 'custitemAnxAllowOversell': json['custitem_anx_allow_oversell'] == null ? undefined : json['custitem_anx_allow_oversell'],
205
- 'onlineLocationCost': json['online_location_cost'] == null ? undefined : json['online_location_cost'],
206
- 'popularityScore': json['popularity_score'] == null ? undefined : json['popularity_score'],
207
- 'excludeFrontend': json['exclude_frontend'] == null ? undefined : json['exclude_frontend'],
208
- 'excludeSearch': json['exclude_search'] == null ? undefined : json['exclude_search'],
209
- 'oversized': json['oversized'] == null ? undefined : json['oversized'],
210
- 'isBundle': json['is_bundle'] == null ? undefined : json['is_bundle'],
211
- 'bundleUpccode': json['bundle_upccode'] == null ? undefined : json['bundle_upccode'],
212
- 'published': json['published'] == null ? undefined : json['published'],
213
- 'custitemrrpGst': json['custitemrrp_gst'] == null ? undefined : json['custitemrrp_gst'],
214
- 'liPrice': json['li_price'] == null ? undefined : json['li_price'],
215
- 'cfdPrice': json['cfd_price'] == null ? undefined : json['cfd_price'],
216
- 'labelLi': json['label_li'] == null ? undefined : json['label_li'],
217
- 'labelCfd': json['label_cfd'] == null ? undefined : json['label_cfd'],
218
- 'priceFeedLi': json['price_feed_li'] == null ? undefined : json['price_feed_li'],
219
- 'priceFeedCfd': json['price_feed_cfd'] == null ? undefined : json['price_feed_cfd'],
220
- 'socialFeed': json['social_feed'] == null ? undefined : json['social_feed'],
221
- 'attribRoom': json['attrib_room'] == null ? undefined : json['attrib_room'],
222
- 'attribStyle': json['attrib_style'] == null ? undefined : json['attrib_style'],
223
- 'attribPrimarycolour': json['attrib_primarycolour'] == null ? undefined : json['attrib_primarycolour'],
224
- };
225
- }
226
-
227
- export function SyncProductNetsuiteProductRequestToJSON(json: any): SyncProductNetsuiteProductRequest {
228
- return SyncProductNetsuiteProductRequestToJSONTyped(json, false);
229
- }
230
-
231
- export function SyncProductNetsuiteProductRequestToJSONTyped(value?: SyncProductNetsuiteProductRequest | null, ignoreDiscriminator: boolean = false): any {
232
- if (value == null) {
233
- return value;
234
- }
235
-
236
- return {
237
-
238
- 'internalId': value['internalId'],
239
- 'productType': value['productType'],
240
- 'upccode': value['upccode'],
241
- 'vendorname': value['vendorname'],
242
- 'custitem_anx_retail_id': value['custitemAnxRetailId'],
243
- 'weight': value['weight'],
244
- 'custitem_anx_allow_oversell': value['custitemAnxAllowOversell'],
245
- 'online_location_cost': value['onlineLocationCost'],
246
- 'popularity_score': value['popularityScore'],
247
- 'exclude_frontend': value['excludeFrontend'],
248
- 'exclude_search': value['excludeSearch'],
249
- 'oversized': value['oversized'],
250
- 'is_bundle': value['isBundle'],
251
- 'bundle_upccode': value['bundleUpccode'],
252
- 'published': value['published'],
253
- 'custitemrrp_gst': value['custitemrrpGst'],
254
- 'li_price': value['liPrice'],
255
- 'cfd_price': value['cfdPrice'],
256
- 'label_li': value['labelLi'],
257
- 'label_cfd': value['labelCfd'],
258
- 'price_feed_li': value['priceFeedLi'],
259
- 'price_feed_cfd': value['priceFeedCfd'],
260
- 'social_feed': value['socialFeed'],
261
- 'attrib_room': value['attribRoom'],
262
- 'attrib_style': value['attribStyle'],
263
- 'attrib_primarycolour': value['attribPrimarycolour'],
264
- };
265
- }
266
-