@digital8/lighting-illusions-ts-sdk 0.0.2031 → 0.0.2033
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 +8 -0
- package/README.md +7 -2
- package/dist/apis/ProductApi.d.ts +16 -0
- package/dist/apis/ProductApi.js +59 -0
- package/dist/apis/TransactionsApi.d.ts +3 -3
- package/dist/apis/TransactionsApi.js +2 -2
- package/dist/models/AddressFrontendResource.d.ts +2 -2
- package/dist/models/AddressFrontendResource.js +4 -4
- package/dist/models/AddressResource.d.ts +7 -1
- package/dist/models/AddressResource.js +5 -1
- package/dist/models/AdminNoteResource.d.ts +0 -12
- package/dist/models/AdminNoteResource.js +0 -8
- package/dist/models/AdminOrderResource.d.ts +3 -3
- package/dist/models/AdminOrderResource.js +3 -3
- package/dist/models/CartResource.d.ts +3 -3
- package/dist/models/CartResource.js +3 -3
- package/dist/models/CreateTransactionRequest.d.ts +6 -0
- package/dist/models/CreateTransactionRequest.js +2 -0
- package/dist/models/CustomerListResource.d.ts +0 -7
- package/dist/models/CustomerListResource.js +0 -5
- package/dist/models/PaginatedTransactionListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedTransactionListResourceResponse.js +57 -0
- package/dist/models/SkuSearchProductChildRequest.d.ts +38 -0
- package/dist/models/SkuSearchProductChildRequest.js +55 -0
- package/dist/models/StoreFrontendResource.d.ts +2 -2
- package/dist/models/StoreFrontendResource.js +4 -4
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +1 -3
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +3 -1
- package/dist/models/TransactionListResource.d.ts +116 -0
- package/dist/models/TransactionListResource.js +97 -0
- package/dist/models/TransactionListResourceArrayResponse.d.ts +33 -0
- package/dist/models/TransactionListResourceArrayResponse.js +50 -0
- package/dist/models/TransactionLiteResource.d.ts +12 -0
- package/dist/models/TransactionLiteResource.js +4 -0
- package/dist/models/UpdateOrderRequest.d.ts +6 -0
- package/dist/models/UpdateOrderRequest.js +2 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/docs/AddressResource.md +2 -0
- package/docs/AdminNoteResource.md +0 -4
- package/docs/AdminOrderResource.md +1 -1
- package/docs/CartResource.md +1 -1
- package/docs/CreateTransactionRequest.md +2 -0
- package/docs/CustomerListResource.md +0 -2
- package/docs/PaginatedTransactionListResourceResponse.md +36 -0
- package/docs/ProductApi.md +66 -0
- package/docs/SkuSearchProductChildRequest.md +36 -0
- package/docs/TransactionListResource.md +62 -0
- package/docs/TransactionListResourceArrayResponse.md +34 -0
- package/docs/TransactionLiteResource.md +4 -0
- package/docs/TransactionsApi.md +3 -3
- package/docs/UpdateOrderRequest.md +2 -0
- package/package.json +1 -1
- package/src/apis/ProductApi.ts +49 -0
- package/src/apis/TransactionsApi.ts +7 -7
- package/src/models/AddressFrontendResource.ts +5 -5
- package/src/models/AddressResource.ts +11 -2
- package/src/models/AdminNoteResource.ts +0 -18
- package/src/models/AdminOrderResource.ts +11 -11
- package/src/models/CartResource.ts +11 -11
- package/src/models/CreateTransactionRequest.ts +8 -0
- package/src/models/CustomerListResource.ts +0 -16
- package/src/models/PaginatedTransactionListResourceResponse.ts +90 -0
- package/src/models/SkuSearchProductChildRequest.ts +75 -0
- package/src/models/StoreFrontendResource.ts +5 -5
- package/src/models/StoreListResource.ts +2 -3
- package/src/models/StoreResource.ts +3 -2
- package/src/models/TransactionListResource.ts +187 -0
- package/src/models/TransactionListResourceArrayResponse.ts +73 -0
- package/src/models/TransactionLiteResource.ts +16 -0
- package/src/models/UpdateOrderRequest.ts +8 -0
- package/src/models/index.ts +4 -0
|
@@ -33,18 +33,6 @@ export interface AdminNoteResource {
|
|
|
33
33
|
* @memberof AdminNoteResource
|
|
34
34
|
*/
|
|
35
35
|
id: number;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {number}
|
|
39
|
-
* @memberof AdminNoteResource
|
|
40
|
-
*/
|
|
41
|
-
orderId: number;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {number}
|
|
45
|
-
* @memberof AdminNoteResource
|
|
46
|
-
*/
|
|
47
|
-
adminId: number;
|
|
48
36
|
/**
|
|
49
37
|
*
|
|
50
38
|
* @type {string}
|
|
@@ -76,8 +64,6 @@ export interface AdminNoteResource {
|
|
|
76
64
|
*/
|
|
77
65
|
export function instanceOfAdminNoteResource(value: object): value is AdminNoteResource {
|
|
78
66
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
79
|
-
if (!('orderId' in value) || value['orderId'] === undefined) return false;
|
|
80
|
-
if (!('adminId' in value) || value['adminId'] === undefined) return false;
|
|
81
67
|
if (!('note' in value) || value['note'] === undefined) return false;
|
|
82
68
|
if (!('admin' in value) || value['admin'] === undefined) return false;
|
|
83
69
|
return true;
|
|
@@ -94,8 +80,6 @@ export function AdminNoteResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
94
80
|
return {
|
|
95
81
|
|
|
96
82
|
'id': json['id'],
|
|
97
|
-
'orderId': json['orderId'],
|
|
98
|
-
'adminId': json['adminId'],
|
|
99
83
|
'note': json['note'],
|
|
100
84
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
101
85
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
@@ -115,8 +99,6 @@ export function AdminNoteResourceToJSONTyped(value?: AdminNoteResource | null, i
|
|
|
115
99
|
return {
|
|
116
100
|
|
|
117
101
|
'id': value['id'],
|
|
118
|
-
'orderId': value['orderId'],
|
|
119
|
-
'adminId': value['adminId'],
|
|
120
102
|
'note': value['note'],
|
|
121
103
|
'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
|
|
122
104
|
'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
|
|
@@ -55,6 +55,13 @@ import {
|
|
|
55
55
|
CartCouponResourceToJSON,
|
|
56
56
|
CartCouponResourceToJSONTyped,
|
|
57
57
|
} from './CartCouponResource';
|
|
58
|
+
import type { CustomerResource } from './CustomerResource';
|
|
59
|
+
import {
|
|
60
|
+
CustomerResourceFromJSON,
|
|
61
|
+
CustomerResourceFromJSONTyped,
|
|
62
|
+
CustomerResourceToJSON,
|
|
63
|
+
CustomerResourceToJSONTyped,
|
|
64
|
+
} from './CustomerResource';
|
|
58
65
|
import type { LiAdminUserLiteResource } from './LiAdminUserLiteResource';
|
|
59
66
|
import {
|
|
60
67
|
LiAdminUserLiteResourceFromJSON,
|
|
@@ -69,13 +76,6 @@ import {
|
|
|
69
76
|
OmnisendSyncLiteResourceToJSON,
|
|
70
77
|
OmnisendSyncLiteResourceToJSONTyped,
|
|
71
78
|
} from './OmnisendSyncLiteResource';
|
|
72
|
-
import type { CustomerListResource } from './CustomerListResource';
|
|
73
|
-
import {
|
|
74
|
-
CustomerListResourceFromJSON,
|
|
75
|
-
CustomerListResourceFromJSONTyped,
|
|
76
|
-
CustomerListResourceToJSON,
|
|
77
|
-
CustomerListResourceToJSONTyped,
|
|
78
|
-
} from './CustomerListResource';
|
|
79
79
|
import type { AddressResource } from './AddressResource';
|
|
80
80
|
import {
|
|
81
81
|
AddressResourceFromJSON,
|
|
@@ -296,10 +296,10 @@ export interface AdminOrderResource {
|
|
|
296
296
|
site: SiteLiteResource | null;
|
|
297
297
|
/**
|
|
298
298
|
*
|
|
299
|
-
* @type {
|
|
299
|
+
* @type {CustomerResource}
|
|
300
300
|
* @memberof AdminOrderResource
|
|
301
301
|
*/
|
|
302
|
-
customer:
|
|
302
|
+
customer: CustomerResource | null;
|
|
303
303
|
/**
|
|
304
304
|
*
|
|
305
305
|
* @type {LiAdminUserLiteResource}
|
|
@@ -446,7 +446,7 @@ export function AdminOrderResourceFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
446
446
|
'shippingEstimate': json['shippingEstimate'],
|
|
447
447
|
'insuranceEstimate': json['insuranceEstimate'],
|
|
448
448
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
449
|
-
'customer':
|
|
449
|
+
'customer': CustomerResourceFromJSON(json['customer']),
|
|
450
450
|
'admin': LiAdminUserLiteResourceFromJSON(json['admin']),
|
|
451
451
|
'status': OrderStatusLiteResourceFromJSON(json['status']),
|
|
452
452
|
'lineItems': (json['lineItems'] == null ? null : (json['lineItems'] as Array<any>).map(LineItemListResourceFromJSON)),
|
|
@@ -504,7 +504,7 @@ export function AdminOrderResourceToJSONTyped(value?: AdminOrderResource | null,
|
|
|
504
504
|
'shippingEstimate': value['shippingEstimate'],
|
|
505
505
|
'insuranceEstimate': value['insuranceEstimate'],
|
|
506
506
|
'site': SiteLiteResourceToJSON(value['site']),
|
|
507
|
-
'customer':
|
|
507
|
+
'customer': CustomerResourceToJSON(value['customer']),
|
|
508
508
|
'admin': LiAdminUserLiteResourceToJSON(value['admin']),
|
|
509
509
|
'status': OrderStatusLiteResourceToJSON(value['status']),
|
|
510
510
|
'lineItems': (value['lineItems'] == null ? null : (value['lineItems'] as Array<any>).map(LineItemListResourceToJSON)),
|
|
@@ -27,6 +27,13 @@ import {
|
|
|
27
27
|
LineItemListResourceToJSON,
|
|
28
28
|
LineItemListResourceToJSONTyped,
|
|
29
29
|
} from './LineItemListResource';
|
|
30
|
+
import type { CustomerResource } from './CustomerResource';
|
|
31
|
+
import {
|
|
32
|
+
CustomerResourceFromJSON,
|
|
33
|
+
CustomerResourceFromJSONTyped,
|
|
34
|
+
CustomerResourceToJSON,
|
|
35
|
+
CustomerResourceToJSONTyped,
|
|
36
|
+
} from './CustomerResource';
|
|
30
37
|
import type { LiAdminUserLiteResource } from './LiAdminUserLiteResource';
|
|
31
38
|
import {
|
|
32
39
|
LiAdminUserLiteResourceFromJSON,
|
|
@@ -34,13 +41,6 @@ import {
|
|
|
34
41
|
LiAdminUserLiteResourceToJSON,
|
|
35
42
|
LiAdminUserLiteResourceToJSONTyped,
|
|
36
43
|
} from './LiAdminUserLiteResource';
|
|
37
|
-
import type { CustomerListResource } from './CustomerListResource';
|
|
38
|
-
import {
|
|
39
|
-
CustomerListResourceFromJSON,
|
|
40
|
-
CustomerListResourceFromJSONTyped,
|
|
41
|
-
CustomerListResourceToJSON,
|
|
42
|
-
CustomerListResourceToJSONTyped,
|
|
43
|
-
} from './CustomerListResource';
|
|
44
44
|
import type { AddressResource } from './AddressResource';
|
|
45
45
|
import {
|
|
46
46
|
AddressResourceFromJSON,
|
|
@@ -165,10 +165,10 @@ export interface CartResource {
|
|
|
165
165
|
site: SiteLiteResource | null;
|
|
166
166
|
/**
|
|
167
167
|
*
|
|
168
|
-
* @type {
|
|
168
|
+
* @type {CustomerResource}
|
|
169
169
|
* @memberof CartResource
|
|
170
170
|
*/
|
|
171
|
-
customer:
|
|
171
|
+
customer: CustomerResource | null;
|
|
172
172
|
/**
|
|
173
173
|
*
|
|
174
174
|
* @type {Array<LineItemListResource>}
|
|
@@ -321,7 +321,7 @@ export function CartResourceFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
321
321
|
'useAsBillingAddress': json['useAsBillingAddress'],
|
|
322
322
|
'admin': LiAdminUserLiteResourceFromJSON(json['admin']),
|
|
323
323
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
324
|
-
'customer':
|
|
324
|
+
'customer': CustomerResourceFromJSON(json['customer']),
|
|
325
325
|
'lineItems': (json['lineItems'] == null ? null : (json['lineItems'] as Array<any>).map(LineItemListResourceFromJSON)),
|
|
326
326
|
'coupons': json['coupons'],
|
|
327
327
|
'shippingAddress': AddressResourceFromJSON(json['shippingAddress']),
|
|
@@ -369,7 +369,7 @@ export function CartResourceToJSONTyped(value?: CartResource | null, ignoreDiscr
|
|
|
369
369
|
'useAsBillingAddress': value['useAsBillingAddress'],
|
|
370
370
|
'admin': LiAdminUserLiteResourceToJSON(value['admin']),
|
|
371
371
|
'site': SiteLiteResourceToJSON(value['site']),
|
|
372
|
-
'customer':
|
|
372
|
+
'customer': CustomerResourceToJSON(value['customer']),
|
|
373
373
|
'lineItems': (value['lineItems'] == null ? null : (value['lineItems'] as Array<any>).map(LineItemListResourceToJSON)),
|
|
374
374
|
'coupons': value['coupons'],
|
|
375
375
|
'shippingAddress': AddressResourceToJSON(value['shippingAddress']),
|
|
@@ -49,6 +49,12 @@ export interface CreateTransactionRequest {
|
|
|
49
49
|
* @memberof CreateTransactionRequest
|
|
50
50
|
*/
|
|
51
51
|
paymentMethod: CreateTransactionRequestPaymentMethodEnum;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof CreateTransactionRequest
|
|
56
|
+
*/
|
|
57
|
+
description?: string | null;
|
|
52
58
|
/**
|
|
53
59
|
*
|
|
54
60
|
* @type {string}
|
|
@@ -103,6 +109,7 @@ export function CreateTransactionRequestFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
103
109
|
'amount': json['amount'] == null ? undefined : json['amount'],
|
|
104
110
|
'surcharge': json['surcharge'],
|
|
105
111
|
'paymentMethod': json['payment_method'],
|
|
112
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
106
113
|
'nonce': json['nonce'] == null ? undefined : json['nonce'],
|
|
107
114
|
'deviceData': json['device_data'] == null ? undefined : json['device_data'],
|
|
108
115
|
};
|
|
@@ -124,6 +131,7 @@ export function CreateTransactionRequestToJSONTyped(value?: CreateTransactionReq
|
|
|
124
131
|
'amount': value['amount'],
|
|
125
132
|
'surcharge': value['surcharge'],
|
|
126
133
|
'payment_method': value['paymentMethod'],
|
|
134
|
+
'description': value['description'],
|
|
127
135
|
'nonce': value['nonce'],
|
|
128
136
|
'device_data': value['deviceData'],
|
|
129
137
|
};
|
|
@@ -20,13 +20,6 @@ import {
|
|
|
20
20
|
SiteLiteResourceToJSON,
|
|
21
21
|
SiteLiteResourceToJSONTyped,
|
|
22
22
|
} from './SiteLiteResource';
|
|
23
|
-
import type { LiAddressResource } from './LiAddressResource';
|
|
24
|
-
import {
|
|
25
|
-
LiAddressResourceFromJSON,
|
|
26
|
-
LiAddressResourceFromJSONTyped,
|
|
27
|
-
LiAddressResourceToJSON,
|
|
28
|
-
LiAddressResourceToJSONTyped,
|
|
29
|
-
} from './LiAddressResource';
|
|
30
23
|
|
|
31
24
|
/**
|
|
32
25
|
*
|
|
@@ -70,12 +63,6 @@ export interface CustomerListResource {
|
|
|
70
63
|
* @memberof CustomerListResource
|
|
71
64
|
*/
|
|
72
65
|
site: SiteLiteResource | null;
|
|
73
|
-
/**
|
|
74
|
-
*
|
|
75
|
-
* @type {Array<LiAddressResource>}
|
|
76
|
-
* @memberof CustomerListResource
|
|
77
|
-
*/
|
|
78
|
-
addresses: Array<LiAddressResource> | null;
|
|
79
66
|
}
|
|
80
67
|
|
|
81
68
|
/**
|
|
@@ -87,7 +74,6 @@ export function instanceOfCustomerListResource(value: object): value is Customer
|
|
|
87
74
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
88
75
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
89
76
|
if (!('site' in value) || value['site'] === undefined) return false;
|
|
90
|
-
if (!('addresses' in value) || value['addresses'] === undefined) return false;
|
|
91
77
|
return true;
|
|
92
78
|
}
|
|
93
79
|
|
|
@@ -107,7 +93,6 @@ export function CustomerListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
107
93
|
'email': json['email'],
|
|
108
94
|
'phone': json['phone'],
|
|
109
95
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
110
|
-
'addresses': (json['addresses'] == null ? null : (json['addresses'] as Array<any>).map(LiAddressResourceFromJSON)),
|
|
111
96
|
};
|
|
112
97
|
}
|
|
113
98
|
|
|
@@ -128,7 +113,6 @@ export function CustomerListResourceToJSONTyped(value?: CustomerListResource | n
|
|
|
128
113
|
'email': value['email'],
|
|
129
114
|
'phone': value['phone'],
|
|
130
115
|
'site': SiteLiteResourceToJSON(value['site']),
|
|
131
|
-
'addresses': (value['addresses'] == null ? null : (value['addresses'] as Array<any>).map(LiAddressResourceToJSON)),
|
|
132
116
|
};
|
|
133
117
|
}
|
|
134
118
|
|
|
@@ -0,0 +1,90 @@
|
|
|
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 { PagingMetadata } from './PagingMetadata';
|
|
17
|
+
import {
|
|
18
|
+
PagingMetadataFromJSON,
|
|
19
|
+
PagingMetadataFromJSONTyped,
|
|
20
|
+
PagingMetadataToJSON,
|
|
21
|
+
PagingMetadataToJSONTyped,
|
|
22
|
+
} from './PagingMetadata';
|
|
23
|
+
import type { TransactionListResource } from './TransactionListResource';
|
|
24
|
+
import {
|
|
25
|
+
TransactionListResourceFromJSON,
|
|
26
|
+
TransactionListResourceFromJSONTyped,
|
|
27
|
+
TransactionListResourceToJSON,
|
|
28
|
+
TransactionListResourceToJSONTyped,
|
|
29
|
+
} from './TransactionListResource';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PaginatedTransactionListResourceResponse
|
|
35
|
+
*/
|
|
36
|
+
export interface PaginatedTransactionListResourceResponse {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<TransactionListResource>}
|
|
40
|
+
* @memberof PaginatedTransactionListResourceResponse
|
|
41
|
+
*/
|
|
42
|
+
data: Array<TransactionListResource>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {PagingMetadata}
|
|
46
|
+
* @memberof PaginatedTransactionListResourceResponse
|
|
47
|
+
*/
|
|
48
|
+
meta: PagingMetadata;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the PaginatedTransactionListResourceResponse interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfPaginatedTransactionListResourceResponse(value: object): value is PaginatedTransactionListResourceResponse {
|
|
55
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
56
|
+
if (!('meta' in value) || value['meta'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PaginatedTransactionListResourceResponseFromJSON(json: any): PaginatedTransactionListResourceResponse {
|
|
61
|
+
return PaginatedTransactionListResourceResponseFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PaginatedTransactionListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedTransactionListResourceResponse {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': ((json['data'] as Array<any>).map(TransactionListResourceFromJSON)),
|
|
71
|
+
'meta': PagingMetadataFromJSON(json['meta']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PaginatedTransactionListResourceResponseToJSON(json: any): PaginatedTransactionListResourceResponse {
|
|
76
|
+
return PaginatedTransactionListResourceResponseToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PaginatedTransactionListResourceResponseToJSONTyped(value?: PaginatedTransactionListResourceResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'data': ((value['data'] as Array<any>).map(TransactionListResourceToJSON)),
|
|
87
|
+
'meta': PagingMetadataToJSON(value['meta']),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
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 SkuSearchProductChildRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface SkuSearchProductChildRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof SkuSearchProductChildRequest
|
|
26
|
+
*/
|
|
27
|
+
sku: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof SkuSearchProductChildRequest
|
|
32
|
+
*/
|
|
33
|
+
siteId: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the SkuSearchProductChildRequest interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfSkuSearchProductChildRequest(value: object): value is SkuSearchProductChildRequest {
|
|
40
|
+
if (!('sku' in value) || value['sku'] === undefined) return false;
|
|
41
|
+
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function SkuSearchProductChildRequestFromJSON(json: any): SkuSearchProductChildRequest {
|
|
46
|
+
return SkuSearchProductChildRequestFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function SkuSearchProductChildRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SkuSearchProductChildRequest {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'sku': json['sku'],
|
|
56
|
+
'siteId': json['site_id'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function SkuSearchProductChildRequestToJSON(json: any): SkuSearchProductChildRequest {
|
|
61
|
+
return SkuSearchProductChildRequestToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function SkuSearchProductChildRequestToJSONTyped(value?: SkuSearchProductChildRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'sku': value['sku'],
|
|
72
|
+
'site_id': value['siteId'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -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}
|
|
@@ -78,7 +78,7 @@ export interface StoreFrontendResource {
|
|
|
78
78
|
* @type {string}
|
|
79
79
|
* @memberof StoreFrontendResource
|
|
80
80
|
*/
|
|
81
|
-
tagLine
|
|
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']
|
|
137
|
+
'tagLine': json['tagLine'],
|
|
138
138
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
139
139
|
'specialDates': json['specialDates'],
|
|
140
140
|
'suppliers': json['suppliers'],
|
|
@@ -80,7 +80,7 @@ export interface StoreListResource {
|
|
|
80
80
|
* @type {string}
|
|
81
81
|
* @memberof StoreListResource
|
|
82
82
|
*/
|
|
83
|
-
website
|
|
83
|
+
website?: string | null;
|
|
84
84
|
/**
|
|
85
85
|
*
|
|
86
86
|
* @type {number}
|
|
@@ -111,7 +111,6 @@ export function instanceOfStoreListResource(value: object): value is StoreListRe
|
|
|
111
111
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
112
112
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
113
113
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
114
|
-
if (!('website' in value) || value['website'] === undefined) return false;
|
|
115
114
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
116
115
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
|
|
117
116
|
return true;
|
|
@@ -135,7 +134,7 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
135
134
|
'latitude': json['latitude'],
|
|
136
135
|
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
137
136
|
'email': json['email'],
|
|
138
|
-
'website': json['website'],
|
|
137
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
139
138
|
'netsuiteId': json['netsuiteId'],
|
|
140
139
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
141
140
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
@@ -89,7 +89,7 @@ export interface StoreResource {
|
|
|
89
89
|
* @type {string}
|
|
90
90
|
* @memberof StoreResource
|
|
91
91
|
*/
|
|
92
|
-
tagLine
|
|
92
|
+
tagLine: string;
|
|
93
93
|
/**
|
|
94
94
|
*
|
|
95
95
|
* @type {string}
|
|
@@ -149,6 +149,7 @@ export function instanceOfStoreResource(value: object): value is StoreResource {
|
|
|
149
149
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
150
150
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
151
151
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
152
|
+
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
152
153
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
153
154
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
154
155
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
|
|
@@ -174,7 +175,7 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
174
175
|
'phone': json['phone'],
|
|
175
176
|
'longitude': json['longitude'],
|
|
176
177
|
'latitude': json['latitude'],
|
|
177
|
-
'tagLine': json['tagLine']
|
|
178
|
+
'tagLine': json['tagLine'],
|
|
178
179
|
'email': json['email'],
|
|
179
180
|
'website': json['website'] == null ? undefined : json['website'],
|
|
180
181
|
'netsuiteId': json['netsuiteId'],
|