@digital8/lighting-illusions-ts-sdk 0.0.2028 → 0.0.2029
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 -2
- package/README.md +7 -3
- 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 +6 -2
- 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/CustomerListResource.d.ts +0 -7
- package/dist/models/CustomerListResource.js +0 -5
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- 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 +1 -1
- package/dist/models/StoreFrontendResource.js +1 -3
- 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/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +3 -1
- package/dist/models/TransactionListResource.d.ts +80 -0
- package/dist/models/TransactionListResource.js +81 -0
- package/dist/models/TransactionListResourceArrayResponse.d.ts +33 -0
- package/dist/models/TransactionListResourceArrayResponse.js +50 -0
- package/dist/models/TransactionLiteResource.d.ts +6 -0
- package/dist/models/TransactionLiteResource.js +2 -0
- package/dist/models/index.d.ts +4 -1
- package/dist/models/index.js +4 -1
- 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/CustomerListResource.md +0 -2
- package/docs/PaginatedTransactionListResourceResponse.md +36 -0
- package/docs/ProductApi.md +66 -0
- package/docs/{OrderOmnisendEvent.md → SkuSearchProductChildRequest.md} +8 -4
- package/docs/StoreSpecialDateFrontendResource.md +1 -1
- package/docs/TransactionListResource.md +50 -0
- package/docs/TransactionListResourceArrayResponse.md +34 -0
- package/docs/TransactionLiteResource.md +2 -0
- package/docs/TransactionsApi.md +3 -3
- package/package.json +1 -1
- package/src/apis/ProductApi.ts +49 -0
- package/src/apis/TransactionsApi.ts +7 -7
- package/src/models/AddressFrontendResource.ts +6 -4
- 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/CustomerListResource.ts +0 -16
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/PaginatedTransactionListResourceResponse.ts +90 -0
- package/src/models/SkuSearchProductChildRequest.ts +75 -0
- package/src/models/StoreFrontendResource.ts +2 -3
- package/src/models/StoreListResource.ts +2 -3
- package/src/models/StoreResource.ts +3 -2
- package/src/models/StoreSpecialDateFrontendResource.ts +4 -3
- package/src/models/TransactionListResource.ts +137 -0
- package/src/models/TransactionListResourceArrayResponse.ts +73 -0
- package/src/models/TransactionLiteResource.ts +8 -0
- package/src/models/index.ts +4 -1
- package/dist/models/OrderOmnisendEvent.d.ts +0 -25
- package/dist/models/OrderOmnisendEvent.js +0 -51
- package/src/models/OrderOmnisendEvent.ts +0 -53
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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;
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
}
|
|
@@ -36,8 +36,6 @@ function instanceOfStoreFrontendResource(value) {
|
|
|
36
36
|
return false;
|
|
37
37
|
if (!('longitude' in value) || value['longitude'] === undefined)
|
|
38
38
|
return false;
|
|
39
|
-
if (!('tagLine' in value) || value['tagLine'] === undefined)
|
|
40
|
-
return false;
|
|
41
39
|
if (!('specialDates' in value) || value['specialDates'] === undefined)
|
|
42
40
|
return false;
|
|
43
41
|
if (!('suppliers' in value) || value['suppliers'] === undefined)
|
|
@@ -61,7 +59,7 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
61
59
|
'address': json['address'] == null ? undefined : json['address'],
|
|
62
60
|
'latitude': json['latitude'],
|
|
63
61
|
'longitude': json['longitude'],
|
|
64
|
-
'tagLine': json['tagLine'],
|
|
62
|
+
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
65
63
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
66
64
|
'specialDates': json['specialDates'],
|
|
67
65
|
'suppliers': json['suppliers'],
|
|
@@ -37,8 +37,6 @@ function instanceOfStoreListResource(value) {
|
|
|
37
37
|
return false;
|
|
38
38
|
if (!('email' in value) || value['email'] === undefined)
|
|
39
39
|
return false;
|
|
40
|
-
if (!('website' in value) || value['website'] === undefined)
|
|
41
|
-
return false;
|
|
42
40
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
43
41
|
return false;
|
|
44
42
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined)
|
|
@@ -61,7 +59,7 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
61
59
|
'latitude': json['latitude'],
|
|
62
60
|
'tagLine': json['tagLine'],
|
|
63
61
|
'email': json['email'],
|
|
64
|
-
'website': json['website'],
|
|
62
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
65
63
|
'netsuiteId': json['netsuiteId'],
|
|
66
64
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
67
65
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
@@ -38,6 +38,8 @@ function instanceOfStoreResource(value) {
|
|
|
38
38
|
return false;
|
|
39
39
|
if (!('email' in value) || value['email'] === undefined)
|
|
40
40
|
return false;
|
|
41
|
+
if (!('website' in value) || value['website'] === undefined)
|
|
42
|
+
return false;
|
|
41
43
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
42
44
|
return false;
|
|
43
45
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined)
|
|
@@ -66,7 +68,7 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
66
68
|
'latitude': json['latitude'],
|
|
67
69
|
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
68
70
|
'email': json['email'],
|
|
69
|
-
'website': json['website']
|
|
71
|
+
'website': json['website'],
|
|
70
72
|
'netsuiteId': json['netsuiteId'],
|
|
71
73
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
72
74
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
@@ -35,10 +35,10 @@ export interface StoreSpecialDateFrontendResource {
|
|
|
35
35
|
hours: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
|
-
* @type {
|
|
38
|
+
* @type {object}
|
|
39
39
|
* @memberof StoreSpecialDateFrontendResource
|
|
40
40
|
*/
|
|
41
|
-
date
|
|
41
|
+
date: object;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {boolean}
|
|
@@ -26,6 +26,8 @@ function instanceOfStoreSpecialDateFrontendResource(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('hours' in value) || value['hours'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
+
if (!('date' in value) || value['date'] === undefined)
|
|
30
|
+
return false;
|
|
29
31
|
if (!('closed' in value) || value['closed'] === undefined)
|
|
30
32
|
return false;
|
|
31
33
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined)
|
|
@@ -45,7 +47,7 @@ function StoreSpecialDateFrontendResourceFromJSONTyped(json, ignoreDiscriminator
|
|
|
45
47
|
'id': json['id'] == null ? undefined : json['id'],
|
|
46
48
|
'name': json['name'],
|
|
47
49
|
'hours': json['hours'],
|
|
48
|
-
'date': json['date']
|
|
50
|
+
'date': json['date'],
|
|
49
51
|
'closed': json['closed'],
|
|
50
52
|
'displayStartDate': json['displayStartDate'],
|
|
51
53
|
'displayEndDate': json['displayEndDate'],
|
|
@@ -0,0 +1,80 @@
|
|
|
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;
|
|
@@ -0,0 +1,81 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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;
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
}
|
|
@@ -50,6 +50,7 @@ function TransactionLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
50
|
return json;
|
|
51
51
|
}
|
|
52
52
|
return {
|
|
53
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
53
54
|
'paymentSource': json['paymentSource'],
|
|
54
55
|
'paymentMethod': json['paymentMethod'],
|
|
55
56
|
'paymentMethodThumbnail': json['paymentMethodThumbnail'],
|
|
@@ -71,6 +72,7 @@ function TransactionLiteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
71
72
|
return value;
|
|
72
73
|
}
|
|
73
74
|
return {
|
|
75
|
+
'id': value['id'],
|
|
74
76
|
'paymentSource': value['paymentSource'],
|
|
75
77
|
'paymentMethod': value['paymentMethod'],
|
|
76
78
|
'paymentMethodThumbnail': value['paymentMethodThumbnail'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -224,7 +224,6 @@ export * from './OrderListResource';
|
|
|
224
224
|
export * from './OrderListResourceArrayResponse';
|
|
225
225
|
export * from './OrderLiteResource';
|
|
226
226
|
export * from './OrderLiteResourceArrayResponse';
|
|
227
|
-
export * from './OrderOmnisendEvent';
|
|
228
227
|
export * from './OrderStatusLiteResource';
|
|
229
228
|
export * from './OrderStatusLiteResourceArrayResponse';
|
|
230
229
|
export * from './OrderStatusWithCountResource';
|
|
@@ -328,6 +327,7 @@ export * from './PaginatedSupplierResourceResponse';
|
|
|
328
327
|
export * from './PaginatedTagListResourceResponse';
|
|
329
328
|
export * from './PaginatedTagLiteResourceResponse';
|
|
330
329
|
export * from './PaginatedTagResourceResponse';
|
|
330
|
+
export * from './PaginatedTransactionListResourceResponse';
|
|
331
331
|
export * from './PaginatedTransactionResourceResponse';
|
|
332
332
|
export * from './PagingMetadata';
|
|
333
333
|
export * from './PaymentMethod';
|
|
@@ -529,6 +529,7 @@ export * from './SitePaymentConfigResource';
|
|
|
529
529
|
export * from './SitePaymentConfigResourceArrayResponse';
|
|
530
530
|
export * from './SiteResource';
|
|
531
531
|
export * from './SiteResourceArrayResponse';
|
|
532
|
+
export * from './SkuSearchProductChildRequest';
|
|
532
533
|
export * from './StoreFrontendResource';
|
|
533
534
|
export * from './StoreFrontendResourceArrayResponse';
|
|
534
535
|
export * from './StoreListResource';
|
|
@@ -563,6 +564,8 @@ export * from './TagResource';
|
|
|
563
564
|
export * from './TagResourceArrayResponse';
|
|
564
565
|
export * from './TagType';
|
|
565
566
|
export * from './Thumbnail';
|
|
567
|
+
export * from './TransactionListResource';
|
|
568
|
+
export * from './TransactionListResourceArrayResponse';
|
|
566
569
|
export * from './TransactionLiteResource';
|
|
567
570
|
export * from './TransactionLiteResourceArrayResponse';
|
|
568
571
|
export * from './TransactionResource';
|
package/dist/models/index.js
CHANGED
|
@@ -242,7 +242,6 @@ __exportStar(require("./OrderListResource"), exports);
|
|
|
242
242
|
__exportStar(require("./OrderListResourceArrayResponse"), exports);
|
|
243
243
|
__exportStar(require("./OrderLiteResource"), exports);
|
|
244
244
|
__exportStar(require("./OrderLiteResourceArrayResponse"), exports);
|
|
245
|
-
__exportStar(require("./OrderOmnisendEvent"), exports);
|
|
246
245
|
__exportStar(require("./OrderStatusLiteResource"), exports);
|
|
247
246
|
__exportStar(require("./OrderStatusLiteResourceArrayResponse"), exports);
|
|
248
247
|
__exportStar(require("./OrderStatusWithCountResource"), exports);
|
|
@@ -346,6 +345,7 @@ __exportStar(require("./PaginatedSupplierResourceResponse"), exports);
|
|
|
346
345
|
__exportStar(require("./PaginatedTagListResourceResponse"), exports);
|
|
347
346
|
__exportStar(require("./PaginatedTagLiteResourceResponse"), exports);
|
|
348
347
|
__exportStar(require("./PaginatedTagResourceResponse"), exports);
|
|
348
|
+
__exportStar(require("./PaginatedTransactionListResourceResponse"), exports);
|
|
349
349
|
__exportStar(require("./PaginatedTransactionResourceResponse"), exports);
|
|
350
350
|
__exportStar(require("./PagingMetadata"), exports);
|
|
351
351
|
__exportStar(require("./PaymentMethod"), exports);
|
|
@@ -547,6 +547,7 @@ __exportStar(require("./SitePaymentConfigResource"), exports);
|
|
|
547
547
|
__exportStar(require("./SitePaymentConfigResourceArrayResponse"), exports);
|
|
548
548
|
__exportStar(require("./SiteResource"), exports);
|
|
549
549
|
__exportStar(require("./SiteResourceArrayResponse"), exports);
|
|
550
|
+
__exportStar(require("./SkuSearchProductChildRequest"), exports);
|
|
550
551
|
__exportStar(require("./StoreFrontendResource"), exports);
|
|
551
552
|
__exportStar(require("./StoreFrontendResourceArrayResponse"), exports);
|
|
552
553
|
__exportStar(require("./StoreListResource"), exports);
|
|
@@ -581,6 +582,8 @@ __exportStar(require("./TagResource"), exports);
|
|
|
581
582
|
__exportStar(require("./TagResourceArrayResponse"), exports);
|
|
582
583
|
__exportStar(require("./TagType"), exports);
|
|
583
584
|
__exportStar(require("./Thumbnail"), exports);
|
|
585
|
+
__exportStar(require("./TransactionListResource"), exports);
|
|
586
|
+
__exportStar(require("./TransactionListResourceArrayResponse"), exports);
|
|
584
587
|
__exportStar(require("./TransactionLiteResource"), exports);
|
|
585
588
|
__exportStar(require("./TransactionLiteResourceArrayResponse"), exports);
|
|
586
589
|
__exportStar(require("./TransactionResource"), exports);
|
package/docs/AddressResource.md
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`id` | number
|
|
10
|
+
`type` | string
|
|
10
11
|
`sourceAddressId` | number
|
|
11
12
|
`addresseeName` | string
|
|
12
13
|
`company` | string
|
|
@@ -26,6 +27,7 @@ import type { AddressResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
|
26
27
|
// TODO: Update the object below with actual values
|
|
27
28
|
const example = {
|
|
28
29
|
"id": null,
|
|
30
|
+
"type": null,
|
|
29
31
|
"sourceAddressId": null,
|
|
30
32
|
"addresseeName": null,
|
|
31
33
|
"company": null,
|
|
@@ -7,8 +7,6 @@
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`id` | number
|
|
10
|
-
`orderId` | number
|
|
11
|
-
`adminId` | number
|
|
12
10
|
`note` | string
|
|
13
11
|
`createdAt` | Date
|
|
14
12
|
`updatedAt` | Date
|
|
@@ -22,8 +20,6 @@ import type { AdminNoteResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
|
22
20
|
// TODO: Update the object below with actual values
|
|
23
21
|
const example = {
|
|
24
22
|
"id": null,
|
|
25
|
-
"orderId": null,
|
|
26
|
-
"adminId": null,
|
|
27
23
|
"note": null,
|
|
28
24
|
"createdAt": null,
|
|
29
25
|
"updatedAt": null,
|
|
@@ -40,7 +40,7 @@ Name | Type
|
|
|
40
40
|
`shippingEstimate` | number
|
|
41
41
|
`insuranceEstimate` | number
|
|
42
42
|
`site` | [SiteLiteResource](SiteLiteResource.md)
|
|
43
|
-
`customer` | [
|
|
43
|
+
`customer` | [CustomerResource](CustomerResource.md)
|
|
44
44
|
`admin` | [LiAdminUserLiteResource](LiAdminUserLiteResource.md)
|
|
45
45
|
`status` | [OrderStatusLiteResource](OrderStatusLiteResource.md)
|
|
46
46
|
`lineItems` | [Array<LineItemListResource>](LineItemListResource.md)
|