@digital8/lighting-illusions-ts-sdk 0.0.2022 → 0.0.2023
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +4 -6
- package/README.md +4 -5
- package/dist/models/AddressResource.d.ts +2 -2
- package/dist/models/AddressResource.js +4 -4
- package/dist/models/CartResource.d.ts +5 -5
- package/dist/models/CartResource.js +5 -5
- package/dist/models/LineItemListResource.d.ts +3 -3
- package/dist/models/LineItemListResource.js +3 -3
- package/dist/models/ProductChildLineItemLiteResource.d.ts +88 -0
- package/dist/models/{ProductChildCartLiteResource.js → ProductChildLineItemLiteResource.js} +13 -13
- package/dist/models/ProductChildLineItemLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductChildLineItemLiteResourceArrayResponse.js +50 -0
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +1 -3
- package/dist/models/StoreListResource.d.ts +2 -2
- package/dist/models/StoreListResource.js +4 -4
- package/dist/models/UpdateOrderRequest.d.ts +2 -2
- package/dist/models/UpdateOrderRequest.js +6 -2
- package/dist/models/index.d.ts +2 -3
- package/dist/models/index.js +2 -3
- package/docs/CartResource.md +2 -2
- package/docs/LineItemListResource.md +1 -1
- package/docs/{ProductChildCartLiteResource.md → ProductChildLineItemLiteResource.md} +4 -4
- package/docs/{ProductChildCartLiteResourceArrayResponse.md → ProductChildLineItemLiteResourceArrayResponse.md} +5 -5
- package/package.json +1 -1
- package/src/models/AddressResource.ts +5 -5
- package/src/models/CartResource.ts +14 -14
- package/src/models/LineItemListResource.ts +10 -10
- package/src/models/{ProductChildCartLiteResource.ts → ProductChildLineItemLiteResource.ts} +20 -20
- package/src/models/ProductChildLineItemLiteResourceArrayResponse.ts +73 -0
- package/src/models/StoreFrontendResource.ts +2 -3
- package/src/models/StoreListResource.ts +5 -5
- package/src/models/UpdateOrderRequest.ts +6 -4
- package/src/models/index.ts +2 -3
- package/dist/models/OrderOmnisendEvent.d.ts +0 -25
- package/dist/models/OrderOmnisendEvent.js +0 -51
- package/dist/models/ProductChildCartLiteResource.d.ts +0 -88
- package/dist/models/ProductChildCartLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductChildCartLiteResourceArrayResponse.js +0 -50
- package/docs/OrderOmnisendEvent.md +0 -32
- package/src/models/OrderOmnisendEvent.ts +0 -53
- package/src/models/ProductChildCartLiteResourceArrayResponse.ts +0 -73
|
@@ -15,7 +15,7 @@ Name | Type
|
|
|
15
15
|
`totalDiscount` | number
|
|
16
16
|
`lineSubtotal` | number
|
|
17
17
|
`discounts` | [Array<LineItemDiscountResource>](LineItemDiscountResource.md)
|
|
18
|
-
`productChild` | [
|
|
18
|
+
`productChild` | [ProductChildLineItemLiteResource](ProductChildLineItemLiteResource.md)
|
|
19
19
|
|
|
20
20
|
## Example
|
|
21
21
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# ProductChildLineItemLiteResource
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
@@ -20,7 +20,7 @@ Name | Type
|
|
|
20
20
|
## Example
|
|
21
21
|
|
|
22
22
|
```typescript
|
|
23
|
-
import type {
|
|
23
|
+
import type { ProductChildLineItemLiteResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
24
24
|
|
|
25
25
|
// TODO: Update the object below with actual values
|
|
26
26
|
const example = {
|
|
@@ -34,7 +34,7 @@ const example = {
|
|
|
34
34
|
"salePrice": null,
|
|
35
35
|
"thumbnail": null,
|
|
36
36
|
"label": null,
|
|
37
|
-
} satisfies
|
|
37
|
+
} satisfies ProductChildLineItemLiteResource
|
|
38
38
|
|
|
39
39
|
console.log(example)
|
|
40
40
|
|
|
@@ -43,7 +43,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
43
43
|
console.log(exampleJSON)
|
|
44
44
|
|
|
45
45
|
// Parse the JSON string back to an object
|
|
46
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
46
|
+
const exampleParsed = JSON.parse(exampleJSON) as ProductChildLineItemLiteResource
|
|
47
47
|
console.log(exampleParsed)
|
|
48
48
|
```
|
|
49
49
|
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# ProductChildLineItemLiteResourceArrayResponse
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`data` | [Array<
|
|
9
|
+
`data` | [Array<ProductChildLineItemLiteResource>](ProductChildLineItemLiteResource.md)
|
|
10
10
|
|
|
11
11
|
## Example
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import type {
|
|
14
|
+
import type { ProductChildLineItemLiteResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
15
|
|
|
16
16
|
// TODO: Update the object below with actual values
|
|
17
17
|
const example = {
|
|
18
18
|
"data": null,
|
|
19
|
-
} satisfies
|
|
19
|
+
} satisfies ProductChildLineItemLiteResourceArrayResponse
|
|
20
20
|
|
|
21
21
|
console.log(example)
|
|
22
22
|
|
|
@@ -25,7 +25,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
25
25
|
console.log(exampleJSON)
|
|
26
26
|
|
|
27
27
|
// Parse the JSON string back to an object
|
|
28
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as ProductChildLineItemLiteResourceArrayResponse
|
|
29
29
|
console.log(exampleParsed)
|
|
30
30
|
```
|
|
31
31
|
|
package/package.json
CHANGED
|
@@ -42,7 +42,7 @@ export interface AddressResource {
|
|
|
42
42
|
* @type {string}
|
|
43
43
|
* @memberof AddressResource
|
|
44
44
|
*/
|
|
45
|
-
company
|
|
45
|
+
company?: string | null;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {string}
|
|
@@ -54,7 +54,7 @@ export interface AddressResource {
|
|
|
54
54
|
* @type {string}
|
|
55
55
|
* @memberof AddressResource
|
|
56
56
|
*/
|
|
57
|
-
line2
|
|
57
|
+
line2: string;
|
|
58
58
|
/**
|
|
59
59
|
*
|
|
60
60
|
* @type {string}
|
|
@@ -92,8 +92,8 @@ export interface AddressResource {
|
|
|
92
92
|
*/
|
|
93
93
|
export function instanceOfAddressResource(value: object): value is AddressResource {
|
|
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;
|
|
96
|
+
if (!('line2' in value) || value['line2'] === undefined) return false;
|
|
97
97
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
98
98
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
99
99
|
if (!('country' in value) || value['country'] === undefined) return false;
|
|
@@ -115,9 +115,9 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
115
115
|
'id': json['id'] == null ? undefined : json['id'],
|
|
116
116
|
'sourceAddressId': json['sourceAddressId'] == null ? undefined : json['sourceAddressId'],
|
|
117
117
|
'addresseeName': json['addresseeName'],
|
|
118
|
-
'company': json['company'],
|
|
118
|
+
'company': json['company'] == null ? undefined : json['company'],
|
|
119
119
|
'line1': json['line1'],
|
|
120
|
-
'line2': json['line2']
|
|
120
|
+
'line2': json['line2'],
|
|
121
121
|
'postcode': json['postcode'],
|
|
122
122
|
'suburb': json['suburb'],
|
|
123
123
|
'country': json['country'],
|
|
@@ -27,13 +27,13 @@ import {
|
|
|
27
27
|
LineItemListResourceToJSON,
|
|
28
28
|
LineItemListResourceToJSONTyped,
|
|
29
29
|
} from './LineItemListResource';
|
|
30
|
-
import type {
|
|
30
|
+
import type { LiAdminUserLiteResource } from './LiAdminUserLiteResource';
|
|
31
31
|
import {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
} from './
|
|
32
|
+
LiAdminUserLiteResourceFromJSON,
|
|
33
|
+
LiAdminUserLiteResourceFromJSONTyped,
|
|
34
|
+
LiAdminUserLiteResourceToJSON,
|
|
35
|
+
LiAdminUserLiteResourceToJSONTyped,
|
|
36
|
+
} from './LiAdminUserLiteResource';
|
|
37
37
|
import type { CustomerListResource } from './CustomerListResource';
|
|
38
38
|
import {
|
|
39
39
|
CustomerListResourceFromJSON,
|
|
@@ -153,10 +153,10 @@ export interface CartResource {
|
|
|
153
153
|
useAsBillingAddress: boolean;
|
|
154
154
|
/**
|
|
155
155
|
*
|
|
156
|
-
* @type {
|
|
156
|
+
* @type {LiAdminUserLiteResource}
|
|
157
157
|
* @memberof CartResource
|
|
158
158
|
*/
|
|
159
|
-
admin:
|
|
159
|
+
admin: LiAdminUserLiteResource | null;
|
|
160
160
|
/**
|
|
161
161
|
*
|
|
162
162
|
* @type {SiteLiteResource}
|
|
@@ -177,10 +177,10 @@ export interface CartResource {
|
|
|
177
177
|
lineItems: Array<LineItemListResource> | null;
|
|
178
178
|
/**
|
|
179
179
|
*
|
|
180
|
-
* @type {
|
|
180
|
+
* @type {object}
|
|
181
181
|
* @memberof CartResource
|
|
182
182
|
*/
|
|
183
|
-
coupons:
|
|
183
|
+
coupons: object;
|
|
184
184
|
/**
|
|
185
185
|
*
|
|
186
186
|
* @type {AddressResource}
|
|
@@ -319,11 +319,11 @@ export function CartResourceFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
319
319
|
'includeInsurance': json['includeInsurance'],
|
|
320
320
|
'overrideInsurance': json['overrideInsurance'],
|
|
321
321
|
'useAsBillingAddress': json['useAsBillingAddress'],
|
|
322
|
-
'admin': json['admin'],
|
|
322
|
+
'admin': LiAdminUserLiteResourceFromJSON(json['admin']),
|
|
323
323
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
324
324
|
'customer': CustomerListResourceFromJSON(json['customer']),
|
|
325
325
|
'lineItems': (json['lineItems'] == null ? null : (json['lineItems'] as Array<any>).map(LineItemListResourceFromJSON)),
|
|
326
|
-
'coupons':
|
|
326
|
+
'coupons': json['coupons'],
|
|
327
327
|
'shippingAddress': AddressResourceFromJSON(json['shippingAddress']),
|
|
328
328
|
'billingAddress': AddressResourceFromJSON(json['billingAddress']),
|
|
329
329
|
'discountPreview': json['discountPreview'],
|
|
@@ -367,11 +367,11 @@ export function CartResourceToJSONTyped(value?: CartResource | null, ignoreDiscr
|
|
|
367
367
|
'includeInsurance': value['includeInsurance'],
|
|
368
368
|
'overrideInsurance': value['overrideInsurance'],
|
|
369
369
|
'useAsBillingAddress': value['useAsBillingAddress'],
|
|
370
|
-
'admin': value['admin'],
|
|
370
|
+
'admin': LiAdminUserLiteResourceToJSON(value['admin']),
|
|
371
371
|
'site': SiteLiteResourceToJSON(value['site']),
|
|
372
372
|
'customer': CustomerListResourceToJSON(value['customer']),
|
|
373
373
|
'lineItems': (value['lineItems'] == null ? null : (value['lineItems'] as Array<any>).map(LineItemListResourceToJSON)),
|
|
374
|
-
'coupons':
|
|
374
|
+
'coupons': value['coupons'],
|
|
375
375
|
'shippingAddress': AddressResourceToJSON(value['shippingAddress']),
|
|
376
376
|
'billingAddress': AddressResourceToJSON(value['billingAddress']),
|
|
377
377
|
'discountPreview': value['discountPreview'],
|
|
@@ -27,13 +27,13 @@ import {
|
|
|
27
27
|
LineItemDiscountResourceToJSON,
|
|
28
28
|
LineItemDiscountResourceToJSONTyped,
|
|
29
29
|
} from './LineItemDiscountResource';
|
|
30
|
-
import type {
|
|
30
|
+
import type { ProductChildLineItemLiteResource } from './ProductChildLineItemLiteResource';
|
|
31
31
|
import {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
} from './
|
|
32
|
+
ProductChildLineItemLiteResourceFromJSON,
|
|
33
|
+
ProductChildLineItemLiteResourceFromJSONTyped,
|
|
34
|
+
ProductChildLineItemLiteResourceToJSON,
|
|
35
|
+
ProductChildLineItemLiteResourceToJSONTyped,
|
|
36
|
+
} from './ProductChildLineItemLiteResource';
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
39
|
*
|
|
@@ -97,10 +97,10 @@ export interface LineItemListResource {
|
|
|
97
97
|
discounts: Array<LineItemDiscountResource> | null;
|
|
98
98
|
/**
|
|
99
99
|
*
|
|
100
|
-
* @type {
|
|
100
|
+
* @type {ProductChildLineItemLiteResource}
|
|
101
101
|
* @memberof LineItemListResource
|
|
102
102
|
*/
|
|
103
|
-
productChild:
|
|
103
|
+
productChild: ProductChildLineItemLiteResource | null;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
/**
|
|
@@ -139,7 +139,7 @@ export function LineItemListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
139
139
|
'totalDiscount': json['totalDiscount'],
|
|
140
140
|
'lineSubtotal': json['lineSubtotal'],
|
|
141
141
|
'discounts': (json['discounts'] == null ? null : (json['discounts'] as Array<any>).map(LineItemDiscountResourceFromJSON)),
|
|
142
|
-
'productChild':
|
|
142
|
+
'productChild': ProductChildLineItemLiteResourceFromJSON(json['productChild']),
|
|
143
143
|
};
|
|
144
144
|
}
|
|
145
145
|
|
|
@@ -163,7 +163,7 @@ export function LineItemListResourceToJSONTyped(value?: LineItemListResource | n
|
|
|
163
163
|
'totalDiscount': value['totalDiscount'],
|
|
164
164
|
'lineSubtotal': value['lineSubtotal'],
|
|
165
165
|
'discounts': (value['discounts'] == null ? null : (value['discounts'] as Array<any>).map(LineItemDiscountResourceToJSON)),
|
|
166
|
-
'productChild':
|
|
166
|
+
'productChild': ProductChildLineItemLiteResourceToJSON(value['productChild']),
|
|
167
167
|
};
|
|
168
168
|
}
|
|
169
169
|
|
|
@@ -31,75 +31,75 @@ import {
|
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
33
|
* @export
|
|
34
|
-
* @interface
|
|
34
|
+
* @interface ProductChildLineItemLiteResource
|
|
35
35
|
*/
|
|
36
|
-
export interface
|
|
36
|
+
export interface ProductChildLineItemLiteResource {
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
39
39
|
* @type {number}
|
|
40
|
-
* @memberof
|
|
40
|
+
* @memberof ProductChildLineItemLiteResource
|
|
41
41
|
*/
|
|
42
42
|
id: number;
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
45
|
* @type {number}
|
|
46
|
-
* @memberof
|
|
46
|
+
* @memberof ProductChildLineItemLiteResource
|
|
47
47
|
*/
|
|
48
48
|
parentId: number;
|
|
49
49
|
/**
|
|
50
50
|
*
|
|
51
51
|
* @type {string}
|
|
52
|
-
* @memberof
|
|
52
|
+
* @memberof ProductChildLineItemLiteResource
|
|
53
53
|
*/
|
|
54
54
|
sku: string;
|
|
55
55
|
/**
|
|
56
56
|
*
|
|
57
57
|
* @type {string}
|
|
58
|
-
* @memberof
|
|
58
|
+
* @memberof ProductChildLineItemLiteResource
|
|
59
59
|
*/
|
|
60
60
|
model: string;
|
|
61
61
|
/**
|
|
62
62
|
*
|
|
63
63
|
* @type {string}
|
|
64
|
-
* @memberof
|
|
64
|
+
* @memberof ProductChildLineItemLiteResource
|
|
65
65
|
*/
|
|
66
66
|
modelNumber: string;
|
|
67
67
|
/**
|
|
68
68
|
*
|
|
69
69
|
* @type {string}
|
|
70
|
-
* @memberof
|
|
70
|
+
* @memberof ProductChildLineItemLiteResource
|
|
71
71
|
*/
|
|
72
72
|
name: string;
|
|
73
73
|
/**
|
|
74
74
|
*
|
|
75
75
|
* @type {number}
|
|
76
|
-
* @memberof
|
|
76
|
+
* @memberof ProductChildLineItemLiteResource
|
|
77
77
|
*/
|
|
78
78
|
stock: number;
|
|
79
79
|
/**
|
|
80
80
|
*
|
|
81
81
|
* @type {number}
|
|
82
|
-
* @memberof
|
|
82
|
+
* @memberof ProductChildLineItemLiteResource
|
|
83
83
|
*/
|
|
84
84
|
salePrice: number;
|
|
85
85
|
/**
|
|
86
86
|
*
|
|
87
87
|
* @type {AssetLiteResource}
|
|
88
|
-
* @memberof
|
|
88
|
+
* @memberof ProductChildLineItemLiteResource
|
|
89
89
|
*/
|
|
90
90
|
thumbnail: AssetLiteResource | null;
|
|
91
91
|
/**
|
|
92
92
|
*
|
|
93
93
|
* @type {LabelResource}
|
|
94
|
-
* @memberof
|
|
94
|
+
* @memberof ProductChildLineItemLiteResource
|
|
95
95
|
*/
|
|
96
96
|
label: LabelResource | null;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
/**
|
|
100
|
-
* Check if a given object implements the
|
|
100
|
+
* Check if a given object implements the ProductChildLineItemLiteResource interface.
|
|
101
101
|
*/
|
|
102
|
-
export function
|
|
102
|
+
export function instanceOfProductChildLineItemLiteResource(value: object): value is ProductChildLineItemLiteResource {
|
|
103
103
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
104
104
|
if (!('parentId' in value) || value['parentId'] === undefined) return false;
|
|
105
105
|
if (!('sku' in value) || value['sku'] === undefined) return false;
|
|
@@ -113,11 +113,11 @@ export function instanceOfProductChildCartLiteResource(value: object): value is
|
|
|
113
113
|
return true;
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
export function
|
|
117
|
-
return
|
|
116
|
+
export function ProductChildLineItemLiteResourceFromJSON(json: any): ProductChildLineItemLiteResource {
|
|
117
|
+
return ProductChildLineItemLiteResourceFromJSONTyped(json, false);
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
export function
|
|
120
|
+
export function ProductChildLineItemLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductChildLineItemLiteResource {
|
|
121
121
|
if (json == null) {
|
|
122
122
|
return json;
|
|
123
123
|
}
|
|
@@ -136,11 +136,11 @@ export function ProductChildCartLiteResourceFromJSONTyped(json: any, ignoreDiscr
|
|
|
136
136
|
};
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
export function
|
|
140
|
-
return
|
|
139
|
+
export function ProductChildLineItemLiteResourceToJSON(json: any): ProductChildLineItemLiteResource {
|
|
140
|
+
return ProductChildLineItemLiteResourceToJSONTyped(json, false);
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
-
export function
|
|
143
|
+
export function ProductChildLineItemLiteResourceToJSONTyped(value?: ProductChildLineItemLiteResource | null, ignoreDiscriminator: boolean = false): any {
|
|
144
144
|
if (value == null) {
|
|
145
145
|
return value;
|
|
146
146
|
}
|
|
@@ -0,0 +1,73 @@
|
|
|
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
|
+
import type { ProductChildLineItemLiteResource } from './ProductChildLineItemLiteResource';
|
|
17
|
+
import {
|
|
18
|
+
ProductChildLineItemLiteResourceFromJSON,
|
|
19
|
+
ProductChildLineItemLiteResourceFromJSONTyped,
|
|
20
|
+
ProductChildLineItemLiteResourceToJSON,
|
|
21
|
+
ProductChildLineItemLiteResourceToJSONTyped,
|
|
22
|
+
} from './ProductChildLineItemLiteResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ProductChildLineItemLiteResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface ProductChildLineItemLiteResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<ProductChildLineItemLiteResource>}
|
|
33
|
+
* @memberof ProductChildLineItemLiteResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<ProductChildLineItemLiteResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the ProductChildLineItemLiteResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfProductChildLineItemLiteResourceArrayResponse(value: object): value is ProductChildLineItemLiteResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ProductChildLineItemLiteResourceArrayResponseFromJSON(json: any): ProductChildLineItemLiteResourceArrayResponse {
|
|
46
|
+
return ProductChildLineItemLiteResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ProductChildLineItemLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductChildLineItemLiteResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(ProductChildLineItemLiteResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ProductChildLineItemLiteResourceArrayResponseToJSON(json: any): ProductChildLineItemLiteResourceArrayResponse {
|
|
60
|
+
return ProductChildLineItemLiteResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ProductChildLineItemLiteResourceArrayResponseToJSONTyped(value?: ProductChildLineItemLiteResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(ProductChildLineItemLiteResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -48,7 +48,7 @@ export interface StoreFrontendResource {
|
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof StoreFrontendResource
|
|
50
50
|
*/
|
|
51
|
-
website
|
|
51
|
+
website?: string | null;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {string}
|
|
@@ -106,7 +106,6 @@ 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;
|
|
@@ -130,7 +129,7 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
130
129
|
'siteId': json['siteId'],
|
|
131
130
|
'name': json['name'],
|
|
132
131
|
'email': json['email'],
|
|
133
|
-
'website': json['website'],
|
|
132
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
134
133
|
'phone': json['phone'],
|
|
135
134
|
'address': json['address'] == null ? undefined : json['address'],
|
|
136
135
|
'latitude': json['latitude'],
|
|
@@ -68,7 +68,7 @@ export interface StoreListResource {
|
|
|
68
68
|
* @type {string}
|
|
69
69
|
* @memberof StoreListResource
|
|
70
70
|
*/
|
|
71
|
-
tagLine
|
|
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
|
|
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']
|
|
138
|
+
'website': json['website'],
|
|
139
139
|
'netsuiteId': json['netsuiteId'],
|
|
140
140
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
141
141
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
@@ -56,7 +56,7 @@ export interface UpdateOrderRequest {
|
|
|
56
56
|
* @type {number}
|
|
57
57
|
* @memberof UpdateOrderRequest
|
|
58
58
|
*/
|
|
59
|
-
shippingSubtotal
|
|
59
|
+
shippingSubtotal: number;
|
|
60
60
|
/**
|
|
61
61
|
*
|
|
62
62
|
* @type {boolean}
|
|
@@ -68,7 +68,7 @@ export interface UpdateOrderRequest {
|
|
|
68
68
|
* @type {number}
|
|
69
69
|
* @memberof UpdateOrderRequest
|
|
70
70
|
*/
|
|
71
|
-
insuranceAmount
|
|
71
|
+
insuranceAmount: number;
|
|
72
72
|
/**
|
|
73
73
|
*
|
|
74
74
|
* @type {boolean}
|
|
@@ -137,6 +137,8 @@ export function instanceOfUpdateOrderRequest(value: object): value is UpdateOrde
|
|
|
137
137
|
if (!('statusId' in value) || value['statusId'] === undefined) return false;
|
|
138
138
|
if (!('source' in value) || value['source'] === undefined) return false;
|
|
139
139
|
if (!('shippingType' in value) || value['shippingType'] === undefined) return false;
|
|
140
|
+
if (!('shippingSubtotal' in value) || value['shippingSubtotal'] === undefined) return false;
|
|
141
|
+
if (!('insuranceAmount' in value) || value['insuranceAmount'] === undefined) return false;
|
|
140
142
|
return true;
|
|
141
143
|
}
|
|
142
144
|
|
|
@@ -154,9 +156,9 @@ export function UpdateOrderRequestFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
154
156
|
'statusId': json['status_id'],
|
|
155
157
|
'source': json['source'],
|
|
156
158
|
'shippingType': json['shipping_type'],
|
|
157
|
-
'shippingSubtotal': json['shipping_subtotal']
|
|
159
|
+
'shippingSubtotal': json['shipping_subtotal'],
|
|
158
160
|
'overrideShipping': json['override_shipping'] == null ? undefined : json['override_shipping'],
|
|
159
|
-
'insuranceAmount': json['insurance_amount']
|
|
161
|
+
'insuranceAmount': json['insurance_amount'],
|
|
160
162
|
'includeInsurance': json['include_insurance'] == null ? undefined : json['include_insurance'],
|
|
161
163
|
'overrideInsurance': json['override_insurance'] == null ? undefined : json['override_insurance'],
|
|
162
164
|
'shippingAddressId': json['shipping_address_id'] == null ? undefined : json['shipping_address_id'],
|
package/src/models/index.ts
CHANGED
|
@@ -226,7 +226,6 @@ export * from './OrderListResource';
|
|
|
226
226
|
export * from './OrderListResourceArrayResponse';
|
|
227
227
|
export * from './OrderLiteResource';
|
|
228
228
|
export * from './OrderLiteResourceArrayResponse';
|
|
229
|
-
export * from './OrderOmnisendEvent';
|
|
230
229
|
export * from './OrderStatusLiteResource';
|
|
231
230
|
export * from './OrderStatusLiteResourceArrayResponse';
|
|
232
231
|
export * from './OrderStatusWithCountResource';
|
|
@@ -353,10 +352,10 @@ export * from './ProductChildAttributeGroupedResource';
|
|
|
353
352
|
export * from './ProductChildAttributeGroupedResourceArrayResponse';
|
|
354
353
|
export * from './ProductChildAttributeResource';
|
|
355
354
|
export * from './ProductChildAttributeResourceArrayResponse';
|
|
356
|
-
export * from './ProductChildCartLiteResource';
|
|
357
|
-
export * from './ProductChildCartLiteResourceArrayResponse';
|
|
358
355
|
export * from './ProductChildFrontendResource';
|
|
359
356
|
export * from './ProductChildFrontendResourceArrayResponse';
|
|
357
|
+
export * from './ProductChildLineItemLiteResource';
|
|
358
|
+
export * from './ProductChildLineItemLiteResourceArrayResponse';
|
|
360
359
|
export * from './ProductChildListResource';
|
|
361
360
|
export * from './ProductChildListResourceArrayResponse';
|
|
362
361
|
export * from './ProductChildLiteResource';
|
|
@@ -1,25 +0,0 @@
|
|
|
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
|
-
*/
|
|
16
|
-
export declare const OrderOmnisendEvent: {
|
|
17
|
-
readonly PlacedOrder: "placed order";
|
|
18
|
-
readonly PaidForOrder: "paid for order";
|
|
19
|
-
};
|
|
20
|
-
export type OrderOmnisendEvent = typeof OrderOmnisendEvent[keyof typeof OrderOmnisendEvent];
|
|
21
|
-
export declare function instanceOfOrderOmnisendEvent(value: any): boolean;
|
|
22
|
-
export declare function OrderOmnisendEventFromJSON(json: any): OrderOmnisendEvent;
|
|
23
|
-
export declare function OrderOmnisendEventFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderOmnisendEvent;
|
|
24
|
-
export declare function OrderOmnisendEventToJSON(value?: OrderOmnisendEvent | null): any;
|
|
25
|
-
export declare function OrderOmnisendEventToJSONTyped(value: any, ignoreDiscriminator: boolean): OrderOmnisendEvent;
|
|
@@ -1,51 +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.OrderOmnisendEvent = void 0;
|
|
17
|
-
exports.instanceOfOrderOmnisendEvent = instanceOfOrderOmnisendEvent;
|
|
18
|
-
exports.OrderOmnisendEventFromJSON = OrderOmnisendEventFromJSON;
|
|
19
|
-
exports.OrderOmnisendEventFromJSONTyped = OrderOmnisendEventFromJSONTyped;
|
|
20
|
-
exports.OrderOmnisendEventToJSON = OrderOmnisendEventToJSON;
|
|
21
|
-
exports.OrderOmnisendEventToJSONTyped = OrderOmnisendEventToJSONTyped;
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @export
|
|
25
|
-
*/
|
|
26
|
-
exports.OrderOmnisendEvent = {
|
|
27
|
-
PlacedOrder: 'placed order',
|
|
28
|
-
PaidForOrder: 'paid for order'
|
|
29
|
-
};
|
|
30
|
-
function instanceOfOrderOmnisendEvent(value) {
|
|
31
|
-
for (var key in exports.OrderOmnisendEvent) {
|
|
32
|
-
if (Object.prototype.hasOwnProperty.call(exports.OrderOmnisendEvent, key)) {
|
|
33
|
-
if (exports.OrderOmnisendEvent[key] === value) {
|
|
34
|
-
return true;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
return false;
|
|
39
|
-
}
|
|
40
|
-
function OrderOmnisendEventFromJSON(json) {
|
|
41
|
-
return OrderOmnisendEventFromJSONTyped(json, false);
|
|
42
|
-
}
|
|
43
|
-
function OrderOmnisendEventFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
-
return json;
|
|
45
|
-
}
|
|
46
|
-
function OrderOmnisendEventToJSON(value) {
|
|
47
|
-
return value;
|
|
48
|
-
}
|
|
49
|
-
function OrderOmnisendEventToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
-
return value;
|
|
51
|
-
}
|