@digital8/lighting-illusions-ts-sdk 0.0.2029 → 0.0.2031
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 +0 -8
- package/README.md +2 -7
- package/dist/apis/ProductApi.d.ts +0 -16
- package/dist/apis/ProductApi.js +0 -59
- package/dist/apis/TransactionsApi.d.ts +3 -3
- package/dist/apis/TransactionsApi.js +2 -2
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +1 -3
- package/dist/models/AddressResource.d.ts +2 -8
- package/dist/models/AddressResource.js +2 -8
- package/dist/models/AdminNoteResource.d.ts +12 -0
- package/dist/models/AdminNoteResource.js +8 -0
- 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/CustomerListResource.d.ts +7 -0
- package/dist/models/CustomerListResource.js +5 -0
- package/dist/models/StoreListResource.d.ts +2 -2
- package/dist/models/StoreListResource.js +4 -4
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +1 -3
- package/dist/models/TransactionLiteResource.d.ts +0 -6
- package/dist/models/TransactionLiteResource.js +0 -2
- package/dist/models/index.d.ts +0 -4
- package/dist/models/index.js +0 -4
- package/docs/AddressResource.md +0 -2
- package/docs/AdminNoteResource.md +4 -0
- package/docs/AdminOrderResource.md +1 -1
- package/docs/CartResource.md +1 -1
- package/docs/CustomerListResource.md +2 -0
- package/docs/ProductApi.md +0 -66
- package/docs/TransactionLiteResource.md +0 -2
- package/docs/TransactionsApi.md +3 -3
- package/package.json +1 -1
- package/src/apis/ProductApi.ts +0 -49
- package/src/apis/TransactionsApi.ts +7 -7
- package/src/models/AddressFrontendResource.ts +2 -3
- package/src/models/AddressResource.ts +4 -14
- package/src/models/AdminNoteResource.ts +18 -0
- package/src/models/AdminOrderResource.ts +11 -11
- package/src/models/CartResource.ts +11 -11
- package/src/models/CustomerListResource.ts +16 -0
- package/src/models/StoreListResource.ts +5 -5
- package/src/models/StoreResource.ts +2 -3
- package/src/models/TransactionLiteResource.ts +0 -8
- package/src/models/index.ts +0 -4
- package/dist/models/PaginatedTransactionListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedTransactionListResourceResponse.js +0 -57
- package/dist/models/SkuSearchProductChildRequest.d.ts +0 -38
- package/dist/models/SkuSearchProductChildRequest.js +0 -55
- package/dist/models/TransactionListResource.d.ts +0 -80
- package/dist/models/TransactionListResource.js +0 -81
- package/dist/models/TransactionListResourceArrayResponse.d.ts +0 -33
- package/dist/models/TransactionListResourceArrayResponse.js +0 -50
- package/docs/PaginatedTransactionListResourceResponse.md +0 -36
- package/docs/SkuSearchProductChildRequest.md +0 -36
- package/docs/TransactionListResource.md +0 -50
- package/docs/TransactionListResourceArrayResponse.md +0 -34
- package/src/models/PaginatedTransactionListResourceResponse.ts +0 -90
- package/src/models/SkuSearchProductChildRequest.ts +0 -75
- package/src/models/TransactionListResource.ts +0 -137
- package/src/models/TransactionListResourceArrayResponse.ts +0 -73
|
@@ -20,6 +20,13 @@ 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';
|
|
23
30
|
|
|
24
31
|
/**
|
|
25
32
|
*
|
|
@@ -63,6 +70,12 @@ export interface CustomerListResource {
|
|
|
63
70
|
* @memberof CustomerListResource
|
|
64
71
|
*/
|
|
65
72
|
site: SiteLiteResource | null;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {Array<LiAddressResource>}
|
|
76
|
+
* @memberof CustomerListResource
|
|
77
|
+
*/
|
|
78
|
+
addresses: Array<LiAddressResource> | null;
|
|
66
79
|
}
|
|
67
80
|
|
|
68
81
|
/**
|
|
@@ -74,6 +87,7 @@ export function instanceOfCustomerListResource(value: object): value is Customer
|
|
|
74
87
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
75
88
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
76
89
|
if (!('site' in value) || value['site'] === undefined) return false;
|
|
90
|
+
if (!('addresses' in value) || value['addresses'] === undefined) return false;
|
|
77
91
|
return true;
|
|
78
92
|
}
|
|
79
93
|
|
|
@@ -93,6 +107,7 @@ export function CustomerListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
93
107
|
'email': json['email'],
|
|
94
108
|
'phone': json['phone'],
|
|
95
109
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
110
|
+
'addresses': (json['addresses'] == null ? null : (json['addresses'] as Array<any>).map(LiAddressResourceFromJSON)),
|
|
96
111
|
};
|
|
97
112
|
}
|
|
98
113
|
|
|
@@ -113,6 +128,7 @@ export function CustomerListResourceToJSONTyped(value?: CustomerListResource | n
|
|
|
113
128
|
'email': value['email'],
|
|
114
129
|
'phone': value['phone'],
|
|
115
130
|
'site': SiteLiteResourceToJSON(value['site']),
|
|
131
|
+
'addresses': (value['addresses'] == null ? null : (value['addresses'] as Array<any>).map(LiAddressResourceToJSON)),
|
|
116
132
|
};
|
|
117
133
|
}
|
|
118
134
|
|
|
@@ -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'],
|
|
@@ -101,7 +101,7 @@ export interface StoreResource {
|
|
|
101
101
|
* @type {string}
|
|
102
102
|
* @memberof StoreResource
|
|
103
103
|
*/
|
|
104
|
-
website
|
|
104
|
+
website?: string | null;
|
|
105
105
|
/**
|
|
106
106
|
*
|
|
107
107
|
* @type {number}
|
|
@@ -150,7 +150,6 @@ export function instanceOfStoreResource(value: object): value is StoreResource {
|
|
|
150
150
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
151
151
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
152
152
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
153
|
-
if (!('website' in value) || value['website'] === undefined) return false;
|
|
154
153
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
155
154
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
|
|
156
155
|
if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
|
|
@@ -177,7 +176,7 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
177
176
|
'latitude': json['latitude'],
|
|
178
177
|
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
179
178
|
'email': json['email'],
|
|
180
|
-
'website': json['website'],
|
|
179
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
181
180
|
'netsuiteId': json['netsuiteId'],
|
|
182
181
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
183
182
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
@@ -19,12 +19,6 @@ import { mapValues } from '../runtime';
|
|
|
19
19
|
* @interface TransactionLiteResource
|
|
20
20
|
*/
|
|
21
21
|
export interface TransactionLiteResource {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {number}
|
|
25
|
-
* @memberof TransactionLiteResource
|
|
26
|
-
*/
|
|
27
|
-
id?: number | null;
|
|
28
22
|
/**
|
|
29
23
|
*
|
|
30
24
|
* @type {string}
|
|
@@ -113,7 +107,6 @@ export function TransactionLiteResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
113
107
|
}
|
|
114
108
|
return {
|
|
115
109
|
|
|
116
|
-
'id': json['id'] == null ? undefined : json['id'],
|
|
117
110
|
'paymentSource': json['paymentSource'],
|
|
118
111
|
'paymentMethod': json['paymentMethod'],
|
|
119
112
|
'paymentMethodThumbnail': json['paymentMethodThumbnail'],
|
|
@@ -138,7 +131,6 @@ export function TransactionLiteResourceToJSONTyped(value?: TransactionLiteResour
|
|
|
138
131
|
|
|
139
132
|
return {
|
|
140
133
|
|
|
141
|
-
'id': value['id'],
|
|
142
134
|
'paymentSource': value['paymentSource'],
|
|
143
135
|
'paymentMethod': value['paymentMethod'],
|
|
144
136
|
'paymentMethodThumbnail': value['paymentMethodThumbnail'],
|
package/src/models/index.ts
CHANGED
|
@@ -329,7 +329,6 @@ export * from './PaginatedSupplierResourceResponse';
|
|
|
329
329
|
export * from './PaginatedTagListResourceResponse';
|
|
330
330
|
export * from './PaginatedTagLiteResourceResponse';
|
|
331
331
|
export * from './PaginatedTagResourceResponse';
|
|
332
|
-
export * from './PaginatedTransactionListResourceResponse';
|
|
333
332
|
export * from './PaginatedTransactionResourceResponse';
|
|
334
333
|
export * from './PagingMetadata';
|
|
335
334
|
export * from './PaymentMethod';
|
|
@@ -531,7 +530,6 @@ export * from './SitePaymentConfigResource';
|
|
|
531
530
|
export * from './SitePaymentConfigResourceArrayResponse';
|
|
532
531
|
export * from './SiteResource';
|
|
533
532
|
export * from './SiteResourceArrayResponse';
|
|
534
|
-
export * from './SkuSearchProductChildRequest';
|
|
535
533
|
export * from './StoreFrontendResource';
|
|
536
534
|
export * from './StoreFrontendResourceArrayResponse';
|
|
537
535
|
export * from './StoreListResource';
|
|
@@ -566,8 +564,6 @@ export * from './TagResource';
|
|
|
566
564
|
export * from './TagResourceArrayResponse';
|
|
567
565
|
export * from './TagType';
|
|
568
566
|
export * from './Thumbnail';
|
|
569
|
-
export * from './TransactionListResource';
|
|
570
|
-
export * from './TransactionListResourceArrayResponse';
|
|
571
567
|
export * from './TransactionLiteResource';
|
|
572
568
|
export * from './TransactionLiteResourceArrayResponse';
|
|
573
569
|
export * from './TransactionResource';
|
|
@@ -1,40 +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
|
-
import type { PagingMetadata } from './PagingMetadata';
|
|
13
|
-
import type { TransactionListResource } from './TransactionListResource';
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @export
|
|
17
|
-
* @interface PaginatedTransactionListResourceResponse
|
|
18
|
-
*/
|
|
19
|
-
export interface PaginatedTransactionListResourceResponse {
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @type {Array<TransactionListResource>}
|
|
23
|
-
* @memberof PaginatedTransactionListResourceResponse
|
|
24
|
-
*/
|
|
25
|
-
data: Array<TransactionListResource>;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @type {PagingMetadata}
|
|
29
|
-
* @memberof PaginatedTransactionListResourceResponse
|
|
30
|
-
*/
|
|
31
|
-
meta: PagingMetadata;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Check if a given object implements the PaginatedTransactionListResourceResponse interface.
|
|
35
|
-
*/
|
|
36
|
-
export declare function instanceOfPaginatedTransactionListResourceResponse(value: object): value is PaginatedTransactionListResourceResponse;
|
|
37
|
-
export declare function PaginatedTransactionListResourceResponseFromJSON(json: any): PaginatedTransactionListResourceResponse;
|
|
38
|
-
export declare function PaginatedTransactionListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedTransactionListResourceResponse;
|
|
39
|
-
export declare function PaginatedTransactionListResourceResponseToJSON(json: any): PaginatedTransactionListResourceResponse;
|
|
40
|
-
export declare function PaginatedTransactionListResourceResponseToJSONTyped(value?: PaginatedTransactionListResourceResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,57 +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.instanceOfPaginatedTransactionListResourceResponse = instanceOfPaginatedTransactionListResourceResponse;
|
|
17
|
-
exports.PaginatedTransactionListResourceResponseFromJSON = PaginatedTransactionListResourceResponseFromJSON;
|
|
18
|
-
exports.PaginatedTransactionListResourceResponseFromJSONTyped = PaginatedTransactionListResourceResponseFromJSONTyped;
|
|
19
|
-
exports.PaginatedTransactionListResourceResponseToJSON = PaginatedTransactionListResourceResponseToJSON;
|
|
20
|
-
exports.PaginatedTransactionListResourceResponseToJSONTyped = PaginatedTransactionListResourceResponseToJSONTyped;
|
|
21
|
-
var PagingMetadata_1 = require("./PagingMetadata");
|
|
22
|
-
var TransactionListResource_1 = require("./TransactionListResource");
|
|
23
|
-
/**
|
|
24
|
-
* Check if a given object implements the PaginatedTransactionListResourceResponse interface.
|
|
25
|
-
*/
|
|
26
|
-
function instanceOfPaginatedTransactionListResourceResponse(value) {
|
|
27
|
-
if (!('data' in value) || value['data'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
if (!('meta' in value) || value['meta'] === undefined)
|
|
30
|
-
return false;
|
|
31
|
-
return true;
|
|
32
|
-
}
|
|
33
|
-
function PaginatedTransactionListResourceResponseFromJSON(json) {
|
|
34
|
-
return PaginatedTransactionListResourceResponseFromJSONTyped(json, false);
|
|
35
|
-
}
|
|
36
|
-
function PaginatedTransactionListResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
-
if (json == null) {
|
|
38
|
-
return json;
|
|
39
|
-
}
|
|
40
|
-
return {
|
|
41
|
-
'data': (json['data'].map(TransactionListResource_1.TransactionListResourceFromJSON)),
|
|
42
|
-
'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
function PaginatedTransactionListResourceResponseToJSON(json) {
|
|
46
|
-
return PaginatedTransactionListResourceResponseToJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
function PaginatedTransactionListResourceResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
50
|
-
if (value == null) {
|
|
51
|
-
return value;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
'data': (value['data'].map(TransactionListResource_1.TransactionListResourceToJSON)),
|
|
55
|
-
'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
|
|
56
|
-
};
|
|
57
|
-
}
|
|
@@ -1,38 +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
|
-
* @interface SkuSearchProductChildRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface SkuSearchProductChildRequest {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof SkuSearchProductChildRequest
|
|
22
|
-
*/
|
|
23
|
-
sku: string;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {number}
|
|
27
|
-
* @memberof SkuSearchProductChildRequest
|
|
28
|
-
*/
|
|
29
|
-
siteId: number;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the SkuSearchProductChildRequest interface.
|
|
33
|
-
*/
|
|
34
|
-
export declare function instanceOfSkuSearchProductChildRequest(value: object): value is SkuSearchProductChildRequest;
|
|
35
|
-
export declare function SkuSearchProductChildRequestFromJSON(json: any): SkuSearchProductChildRequest;
|
|
36
|
-
export declare function SkuSearchProductChildRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SkuSearchProductChildRequest;
|
|
37
|
-
export declare function SkuSearchProductChildRequestToJSON(json: any): SkuSearchProductChildRequest;
|
|
38
|
-
export declare function SkuSearchProductChildRequestToJSONTyped(value?: SkuSearchProductChildRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,55 +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.instanceOfSkuSearchProductChildRequest = instanceOfSkuSearchProductChildRequest;
|
|
17
|
-
exports.SkuSearchProductChildRequestFromJSON = SkuSearchProductChildRequestFromJSON;
|
|
18
|
-
exports.SkuSearchProductChildRequestFromJSONTyped = SkuSearchProductChildRequestFromJSONTyped;
|
|
19
|
-
exports.SkuSearchProductChildRequestToJSON = SkuSearchProductChildRequestToJSON;
|
|
20
|
-
exports.SkuSearchProductChildRequestToJSONTyped = SkuSearchProductChildRequestToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the SkuSearchProductChildRequest interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfSkuSearchProductChildRequest(value) {
|
|
25
|
-
if (!('sku' in value) || value['sku'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
if (!('siteId' in value) || value['siteId'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
return true;
|
|
30
|
-
}
|
|
31
|
-
function SkuSearchProductChildRequestFromJSON(json) {
|
|
32
|
-
return SkuSearchProductChildRequestFromJSONTyped(json, false);
|
|
33
|
-
}
|
|
34
|
-
function SkuSearchProductChildRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
-
if (json == null) {
|
|
36
|
-
return json;
|
|
37
|
-
}
|
|
38
|
-
return {
|
|
39
|
-
'sku': json['sku'],
|
|
40
|
-
'siteId': json['site_id'],
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
function SkuSearchProductChildRequestToJSON(json) {
|
|
44
|
-
return SkuSearchProductChildRequestToJSONTyped(json, false);
|
|
45
|
-
}
|
|
46
|
-
function SkuSearchProductChildRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
|
-
if (value == null) {
|
|
49
|
-
return value;
|
|
50
|
-
}
|
|
51
|
-
return {
|
|
52
|
-
'sku': value['sku'],
|
|
53
|
-
'site_id': value['siteId'],
|
|
54
|
-
};
|
|
55
|
-
}
|
|
@@ -1,80 +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
|
-
* @interface TransactionListResource
|
|
16
|
-
*/
|
|
17
|
-
export interface TransactionListResource {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof TransactionListResource
|
|
22
|
-
*/
|
|
23
|
-
id: number;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof TransactionListResource
|
|
28
|
-
*/
|
|
29
|
-
paymentSource: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof TransactionListResource
|
|
34
|
-
*/
|
|
35
|
-
paymentMethod: string;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof TransactionListResource
|
|
40
|
-
*/
|
|
41
|
-
type: string;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof TransactionListResource
|
|
46
|
-
*/
|
|
47
|
-
status: string;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {number}
|
|
51
|
-
* @memberof TransactionListResource
|
|
52
|
-
*/
|
|
53
|
-
totalAmount: number;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {number}
|
|
57
|
-
* @memberof TransactionListResource
|
|
58
|
-
*/
|
|
59
|
-
refundedAmount: number;
|
|
60
|
-
/**
|
|
61
|
-
*
|
|
62
|
-
* @type {string}
|
|
63
|
-
* @memberof TransactionListResource
|
|
64
|
-
*/
|
|
65
|
-
reference: string;
|
|
66
|
-
/**
|
|
67
|
-
*
|
|
68
|
-
* @type {Date}
|
|
69
|
-
* @memberof TransactionListResource
|
|
70
|
-
*/
|
|
71
|
-
createdAt?: Date | null;
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* Check if a given object implements the TransactionListResource interface.
|
|
75
|
-
*/
|
|
76
|
-
export declare function instanceOfTransactionListResource(value: object): value is TransactionListResource;
|
|
77
|
-
export declare function TransactionListResourceFromJSON(json: any): TransactionListResource;
|
|
78
|
-
export declare function TransactionListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionListResource;
|
|
79
|
-
export declare function TransactionListResourceToJSON(json: any): TransactionListResource;
|
|
80
|
-
export declare function TransactionListResourceToJSONTyped(value?: TransactionListResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,81 +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.instanceOfTransactionListResource = instanceOfTransactionListResource;
|
|
17
|
-
exports.TransactionListResourceFromJSON = TransactionListResourceFromJSON;
|
|
18
|
-
exports.TransactionListResourceFromJSONTyped = TransactionListResourceFromJSONTyped;
|
|
19
|
-
exports.TransactionListResourceToJSON = TransactionListResourceToJSON;
|
|
20
|
-
exports.TransactionListResourceToJSONTyped = TransactionListResourceToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the TransactionListResource interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfTransactionListResource(value) {
|
|
25
|
-
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
if (!('paymentSource' in value) || value['paymentSource'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
if (!('paymentMethod' in value) || value['paymentMethod'] === undefined)
|
|
30
|
-
return false;
|
|
31
|
-
if (!('type' in value) || value['type'] === undefined)
|
|
32
|
-
return false;
|
|
33
|
-
if (!('status' in value) || value['status'] === undefined)
|
|
34
|
-
return false;
|
|
35
|
-
if (!('totalAmount' in value) || value['totalAmount'] === undefined)
|
|
36
|
-
return false;
|
|
37
|
-
if (!('refundedAmount' in value) || value['refundedAmount'] === undefined)
|
|
38
|
-
return false;
|
|
39
|
-
if (!('reference' in value) || value['reference'] === undefined)
|
|
40
|
-
return false;
|
|
41
|
-
return true;
|
|
42
|
-
}
|
|
43
|
-
function TransactionListResourceFromJSON(json) {
|
|
44
|
-
return TransactionListResourceFromJSONTyped(json, false);
|
|
45
|
-
}
|
|
46
|
-
function TransactionListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
-
if (json == null) {
|
|
48
|
-
return json;
|
|
49
|
-
}
|
|
50
|
-
return {
|
|
51
|
-
'id': json['id'],
|
|
52
|
-
'paymentSource': json['paymentSource'],
|
|
53
|
-
'paymentMethod': json['paymentMethod'],
|
|
54
|
-
'type': json['type'],
|
|
55
|
-
'status': json['status'],
|
|
56
|
-
'totalAmount': json['totalAmount'],
|
|
57
|
-
'refundedAmount': json['refundedAmount'],
|
|
58
|
-
'reference': json['reference'],
|
|
59
|
-
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
function TransactionListResourceToJSON(json) {
|
|
63
|
-
return TransactionListResourceToJSONTyped(json, false);
|
|
64
|
-
}
|
|
65
|
-
function TransactionListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
66
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
67
|
-
if (value == null) {
|
|
68
|
-
return value;
|
|
69
|
-
}
|
|
70
|
-
return {
|
|
71
|
-
'id': value['id'],
|
|
72
|
-
'paymentSource': value['paymentSource'],
|
|
73
|
-
'paymentMethod': value['paymentMethod'],
|
|
74
|
-
'type': value['type'],
|
|
75
|
-
'status': value['status'],
|
|
76
|
-
'totalAmount': value['totalAmount'],
|
|
77
|
-
'refundedAmount': value['refundedAmount'],
|
|
78
|
-
'reference': value['reference'],
|
|
79
|
-
'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
|
|
80
|
-
};
|
|
81
|
-
}
|
|
@@ -1,33 +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
|
-
import type { TransactionListResource } from './TransactionListResource';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface TransactionListResourceArrayResponse
|
|
17
|
-
*/
|
|
18
|
-
export interface TransactionListResourceArrayResponse {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Array<TransactionListResource>}
|
|
22
|
-
* @memberof TransactionListResourceArrayResponse
|
|
23
|
-
*/
|
|
24
|
-
data?: Array<TransactionListResource>;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Check if a given object implements the TransactionListResourceArrayResponse interface.
|
|
28
|
-
*/
|
|
29
|
-
export declare function instanceOfTransactionListResourceArrayResponse(value: object): value is TransactionListResourceArrayResponse;
|
|
30
|
-
export declare function TransactionListResourceArrayResponseFromJSON(json: any): TransactionListResourceArrayResponse;
|
|
31
|
-
export declare function TransactionListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionListResourceArrayResponse;
|
|
32
|
-
export declare function TransactionListResourceArrayResponseToJSON(json: any): TransactionListResourceArrayResponse;
|
|
33
|
-
export declare function TransactionListResourceArrayResponseToJSONTyped(value?: TransactionListResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,50 +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.instanceOfTransactionListResourceArrayResponse = instanceOfTransactionListResourceArrayResponse;
|
|
17
|
-
exports.TransactionListResourceArrayResponseFromJSON = TransactionListResourceArrayResponseFromJSON;
|
|
18
|
-
exports.TransactionListResourceArrayResponseFromJSONTyped = TransactionListResourceArrayResponseFromJSONTyped;
|
|
19
|
-
exports.TransactionListResourceArrayResponseToJSON = TransactionListResourceArrayResponseToJSON;
|
|
20
|
-
exports.TransactionListResourceArrayResponseToJSONTyped = TransactionListResourceArrayResponseToJSONTyped;
|
|
21
|
-
var TransactionListResource_1 = require("./TransactionListResource");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the TransactionListResourceArrayResponse interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfTransactionListResourceArrayResponse(value) {
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
function TransactionListResourceArrayResponseFromJSON(json) {
|
|
29
|
-
return TransactionListResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
function TransactionListResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (json == null) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'data': json['data'] == null ? undefined : (json['data'].map(TransactionListResource_1.TransactionListResourceFromJSON)),
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
function TransactionListResourceArrayResponseToJSON(json) {
|
|
40
|
-
return TransactionListResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
function TransactionListResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
44
|
-
if (value == null) {
|
|
45
|
-
return value;
|
|
46
|
-
}
|
|
47
|
-
return {
|
|
48
|
-
'data': value['data'] == null ? undefined : (value['data'].map(TransactionListResource_1.TransactionListResourceToJSON)),
|
|
49
|
-
};
|
|
50
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# PaginatedTransactionListResourceResponse
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`data` | [Array<TransactionListResource>](TransactionListResource.md)
|
|
10
|
-
`meta` | [PagingMetadata](PagingMetadata.md)
|
|
11
|
-
|
|
12
|
-
## Example
|
|
13
|
-
|
|
14
|
-
```typescript
|
|
15
|
-
import type { PaginatedTransactionListResourceResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
16
|
-
|
|
17
|
-
// TODO: Update the object below with actual values
|
|
18
|
-
const example = {
|
|
19
|
-
"data": null,
|
|
20
|
-
"meta": null,
|
|
21
|
-
} satisfies PaginatedTransactionListResourceResponse
|
|
22
|
-
|
|
23
|
-
console.log(example)
|
|
24
|
-
|
|
25
|
-
// Convert the instance to a JSON string
|
|
26
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
-
console.log(exampleJSON)
|
|
28
|
-
|
|
29
|
-
// Parse the JSON string back to an object
|
|
30
|
-
const exampleParsed = JSON.parse(exampleJSON) as PaginatedTransactionListResourceResponse
|
|
31
|
-
console.log(exampleParsed)
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
-
|
|
36
|
-
|