@digital8/lighting-illusions-ts-sdk 0.0.2735 → 0.0.2736
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 +2 -2
- package/dist/apis/StoreCreditsApi.d.ts +29 -0
- package/dist/apis/StoreCreditsApi.js +125 -0
- package/dist/apis/TransactionsApi.d.ts +12 -1
- package/dist/apis/TransactionsApi.js +46 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AddressFrontendResource.d.ts +2 -2
- package/dist/models/AddressFrontendResource.js +4 -4
- package/dist/models/AdminOrderResource.d.ts +12 -0
- package/dist/models/AdminOrderResource.js +8 -0
- package/dist/models/CreateTransactionRequest.d.ts +1 -0
- package/dist/models/CreateTransactionRequest.js +2 -1
- package/dist/models/FrontendCartResource.d.ts +25 -0
- package/dist/models/FrontendCartResource.js +17 -0
- package/dist/models/FrontendCartResourceStoreCreditsInner.d.ts +44 -0
- package/dist/models/FrontendCartResourceStoreCreditsInner.js +53 -0
- package/dist/models/FrontendOrderResource.d.ts +6 -0
- package/dist/models/FrontendOrderResource.js +4 -0
- package/dist/models/OrderFulfillmentResource.d.ts +3 -3
- package/dist/models/OrderFulfillmentResource.js +6 -4
- package/dist/models/PaginatedStoreCreditListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedStoreCreditListResourceResponse.js +57 -0
- package/dist/models/PaymentMethod.d.ts +1 -0
- package/dist/models/PaymentMethod.js +2 -1
- package/dist/models/PaymentTotalsResource.d.ts +25 -0
- package/dist/models/PaymentTotalsResource.js +17 -0
- package/dist/models/SearchStoreCreditsRequest.d.ts +106 -0
- package/dist/models/SearchStoreCreditsRequest.js +86 -0
- package/dist/models/SearchTransactionsRequest.d.ts +3 -2
- package/dist/models/SearchTransactionsRequest.js +3 -2
- package/dist/models/StoreCreditListResource.d.ts +86 -0
- package/dist/models/StoreCreditListResource.js +80 -0
- package/dist/models/StoreCreditListResourceArrayResponse.d.ts +33 -0
- package/dist/models/StoreCreditListResourceArrayResponse.js +50 -0
- package/dist/models/StoreCreditLiteResource.d.ts +44 -0
- package/dist/models/StoreCreditLiteResource.js +59 -0
- package/dist/models/StoreCreditLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/StoreCreditLiteResourceArrayResponse.js +50 -0
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +1 -3
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +3 -1
- package/dist/models/TransactionListResource.d.ts +12 -8
- package/dist/models/TransactionListResource.js +12 -8
- package/dist/models/TransactionLiteResource.d.ts +12 -8
- package/dist/models/TransactionLiteResource.js +12 -8
- package/dist/models/TransactionResource.d.ts +12 -8
- package/dist/models/TransactionResource.js +12 -8
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/package.json +1 -1
- package/src/apis/StoreCreditsApi.ts +69 -0
- package/src/apis/TransactionsApi.ts +44 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AddressFrontendResource.ts +5 -5
- package/src/models/AdminOrderResource.ts +18 -0
- package/src/models/CreateTransactionRequest.ts +2 -1
- package/src/models/FrontendCartResource.ts +43 -0
- package/src/models/FrontendCartResourceStoreCreditsInner.ts +81 -0
- package/src/models/FrontendOrderResource.ts +9 -0
- package/src/models/OrderFulfillmentResource.ts +8 -7
- package/src/models/PaginatedStoreCreditListResourceResponse.ts +90 -0
- package/src/models/PaymentMethod.ts +2 -1
- package/src/models/PaymentTotalsResource.ts +44 -0
- package/src/models/SearchStoreCreditsRequest.ts +161 -0
- package/src/models/SearchTransactionsRequest.ts +12 -4
- package/src/models/StoreCreditListResource.ts +143 -0
- package/src/models/StoreCreditListResourceArrayResponse.ts +73 -0
- package/src/models/StoreCreditLiteResource.ts +84 -0
- package/src/models/StoreCreditLiteResourceArrayResponse.ts +73 -0
- package/src/models/StoreFrontendResource.ts +2 -3
- package/src/models/StoreSpecialDateFrontendResource.ts +4 -3
- package/src/models/TransactionListResource.ts +47 -16
- package/src/models/TransactionLiteResource.ts +47 -16
- package/src/models/TransactionResource.ts +47 -16
- package/src/models/index.ts +7 -0
|
@@ -0,0 +1,80 @@
|
|
|
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.instanceOfStoreCreditListResource = instanceOfStoreCreditListResource;
|
|
17
|
+
exports.StoreCreditListResourceFromJSON = StoreCreditListResourceFromJSON;
|
|
18
|
+
exports.StoreCreditListResourceFromJSONTyped = StoreCreditListResourceFromJSONTyped;
|
|
19
|
+
exports.StoreCreditListResourceToJSON = StoreCreditListResourceToJSON;
|
|
20
|
+
exports.StoreCreditListResourceToJSONTyped = StoreCreditListResourceToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the StoreCreditListResource interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfStoreCreditListResource(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('siteId' in value) || value['siteId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('customerNetsuiteId' in value) || value['customerNetsuiteId'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('code' in value) || value['code'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('originalAmount' in value) || value['originalAmount'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('amountRemaining' in value) || value['amountRemaining'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function StoreCreditListResourceFromJSON(json) {
|
|
40
|
+
return StoreCreditListResourceFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function StoreCreditListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'id': json['id'],
|
|
48
|
+
'siteId': json['siteId'],
|
|
49
|
+
'customerId': json['customerId'] == null ? undefined : json['customerId'],
|
|
50
|
+
'customerNetsuiteId': json['customerNetsuiteId'],
|
|
51
|
+
'code': json['code'],
|
|
52
|
+
'expiryDate': json['expiryDate'] == null ? undefined : (new Date(json['expiryDate'])),
|
|
53
|
+
'originalAmount': json['originalAmount'],
|
|
54
|
+
'amountRemaining': json['amountRemaining'],
|
|
55
|
+
'netsuiteId': json['netsuiteId'] == null ? undefined : json['netsuiteId'],
|
|
56
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function StoreCreditListResourceToJSON(json) {
|
|
60
|
+
return StoreCreditListResourceToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
function StoreCreditListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
63
|
+
var _a, _b;
|
|
64
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
'id': value['id'],
|
|
70
|
+
'siteId': value['siteId'],
|
|
71
|
+
'customerId': value['customerId'],
|
|
72
|
+
'customerNetsuiteId': value['customerNetsuiteId'],
|
|
73
|
+
'code': value['code'],
|
|
74
|
+
'expiryDate': value['expiryDate'] === null ? null : ((_a = value['expiryDate']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
75
|
+
'originalAmount': value['originalAmount'],
|
|
76
|
+
'amountRemaining': value['amountRemaining'],
|
|
77
|
+
'netsuiteId': value['netsuiteId'],
|
|
78
|
+
'createdAt': value['createdAt'] === null ? null : ((_b = value['createdAt']) === null || _b === void 0 ? void 0 : _b.toISOString()),
|
|
79
|
+
};
|
|
80
|
+
}
|
|
@@ -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 { StoreCreditListResource } from './StoreCreditListResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface StoreCreditListResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface StoreCreditListResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<StoreCreditListResource>}
|
|
22
|
+
* @memberof StoreCreditListResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<StoreCreditListResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the StoreCreditListResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfStoreCreditListResourceArrayResponse(value: object): value is StoreCreditListResourceArrayResponse;
|
|
30
|
+
export declare function StoreCreditListResourceArrayResponseFromJSON(json: any): StoreCreditListResourceArrayResponse;
|
|
31
|
+
export declare function StoreCreditListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreCreditListResourceArrayResponse;
|
|
32
|
+
export declare function StoreCreditListResourceArrayResponseToJSON(json: any): StoreCreditListResourceArrayResponse;
|
|
33
|
+
export declare function StoreCreditListResourceArrayResponseToJSONTyped(value?: StoreCreditListResourceArrayResponse | 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.instanceOfStoreCreditListResourceArrayResponse = instanceOfStoreCreditListResourceArrayResponse;
|
|
17
|
+
exports.StoreCreditListResourceArrayResponseFromJSON = StoreCreditListResourceArrayResponseFromJSON;
|
|
18
|
+
exports.StoreCreditListResourceArrayResponseFromJSONTyped = StoreCreditListResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.StoreCreditListResourceArrayResponseToJSON = StoreCreditListResourceArrayResponseToJSON;
|
|
20
|
+
exports.StoreCreditListResourceArrayResponseToJSONTyped = StoreCreditListResourceArrayResponseToJSONTyped;
|
|
21
|
+
var StoreCreditListResource_1 = require("./StoreCreditListResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the StoreCreditListResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfStoreCreditListResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function StoreCreditListResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return StoreCreditListResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function StoreCreditListResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(StoreCreditListResource_1.StoreCreditListResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function StoreCreditListResourceArrayResponseToJSON(json) {
|
|
40
|
+
return StoreCreditListResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function StoreCreditListResourceArrayResponseToJSONTyped(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(StoreCreditListResource_1.StoreCreditListResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 StoreCreditLiteResource
|
|
16
|
+
*/
|
|
17
|
+
export interface StoreCreditLiteResource {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof StoreCreditLiteResource
|
|
22
|
+
*/
|
|
23
|
+
id: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof StoreCreditLiteResource
|
|
28
|
+
*/
|
|
29
|
+
code: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof StoreCreditLiteResource
|
|
34
|
+
*/
|
|
35
|
+
amount: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the StoreCreditLiteResource interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfStoreCreditLiteResource(value: object): value is StoreCreditLiteResource;
|
|
41
|
+
export declare function StoreCreditLiteResourceFromJSON(json: any): StoreCreditLiteResource;
|
|
42
|
+
export declare function StoreCreditLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreCreditLiteResource;
|
|
43
|
+
export declare function StoreCreditLiteResourceToJSON(json: any): StoreCreditLiteResource;
|
|
44
|
+
export declare function StoreCreditLiteResourceToJSONTyped(value?: StoreCreditLiteResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
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.instanceOfStoreCreditLiteResource = instanceOfStoreCreditLiteResource;
|
|
17
|
+
exports.StoreCreditLiteResourceFromJSON = StoreCreditLiteResourceFromJSON;
|
|
18
|
+
exports.StoreCreditLiteResourceFromJSONTyped = StoreCreditLiteResourceFromJSONTyped;
|
|
19
|
+
exports.StoreCreditLiteResourceToJSON = StoreCreditLiteResourceToJSON;
|
|
20
|
+
exports.StoreCreditLiteResourceToJSONTyped = StoreCreditLiteResourceToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the StoreCreditLiteResource interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfStoreCreditLiteResource(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('code' in value) || value['code'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('amount' in value) || value['amount'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function StoreCreditLiteResourceFromJSON(json) {
|
|
34
|
+
return StoreCreditLiteResourceFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function StoreCreditLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'id': json['id'],
|
|
42
|
+
'code': json['code'],
|
|
43
|
+
'amount': json['amount'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function StoreCreditLiteResourceToJSON(json) {
|
|
47
|
+
return StoreCreditLiteResourceToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function StoreCreditLiteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'id': value['id'],
|
|
56
|
+
'code': value['code'],
|
|
57
|
+
'amount': value['amount'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -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 { StoreCreditLiteResource } from './StoreCreditLiteResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface StoreCreditLiteResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface StoreCreditLiteResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<StoreCreditLiteResource>}
|
|
22
|
+
* @memberof StoreCreditLiteResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<StoreCreditLiteResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the StoreCreditLiteResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfStoreCreditLiteResourceArrayResponse(value: object): value is StoreCreditLiteResourceArrayResponse;
|
|
30
|
+
export declare function StoreCreditLiteResourceArrayResponseFromJSON(json: any): StoreCreditLiteResourceArrayResponse;
|
|
31
|
+
export declare function StoreCreditLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreCreditLiteResourceArrayResponse;
|
|
32
|
+
export declare function StoreCreditLiteResourceArrayResponseToJSON(json: any): StoreCreditLiteResourceArrayResponse;
|
|
33
|
+
export declare function StoreCreditLiteResourceArrayResponseToJSONTyped(value?: StoreCreditLiteResourceArrayResponse | 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.instanceOfStoreCreditLiteResourceArrayResponse = instanceOfStoreCreditLiteResourceArrayResponse;
|
|
17
|
+
exports.StoreCreditLiteResourceArrayResponseFromJSON = StoreCreditLiteResourceArrayResponseFromJSON;
|
|
18
|
+
exports.StoreCreditLiteResourceArrayResponseFromJSONTyped = StoreCreditLiteResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.StoreCreditLiteResourceArrayResponseToJSON = StoreCreditLiteResourceArrayResponseToJSON;
|
|
20
|
+
exports.StoreCreditLiteResourceArrayResponseToJSONTyped = StoreCreditLiteResourceArrayResponseToJSONTyped;
|
|
21
|
+
var StoreCreditLiteResource_1 = require("./StoreCreditLiteResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the StoreCreditLiteResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfStoreCreditLiteResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function StoreCreditLiteResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return StoreCreditLiteResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function StoreCreditLiteResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(StoreCreditLiteResource_1.StoreCreditLiteResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function StoreCreditLiteResourceArrayResponseToJSON(json) {
|
|
40
|
+
return StoreCreditLiteResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function StoreCreditLiteResourceArrayResponseToJSONTyped(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(StoreCreditLiteResource_1.StoreCreditLiteResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -34,8 +34,6 @@ function instanceOfStoreFrontendResource(value) {
|
|
|
34
34
|
return false;
|
|
35
35
|
if (!('longitude' in value) || value['longitude'] === undefined)
|
|
36
36
|
return false;
|
|
37
|
-
if (!('tagLine' in value) || value['tagLine'] === undefined)
|
|
38
|
-
return false;
|
|
39
37
|
if (!('specialDates' in value) || value['specialDates'] === undefined)
|
|
40
38
|
return false;
|
|
41
39
|
if (!('suppliers' in value) || value['suppliers'] === undefined)
|
|
@@ -59,7 +57,7 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
59
57
|
'address': json['address'] == null ? undefined : json['address'],
|
|
60
58
|
'latitude': json['latitude'],
|
|
61
59
|
'longitude': json['longitude'],
|
|
62
|
-
'tagLine': json['tagLine'],
|
|
60
|
+
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
63
61
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
64
62
|
'specialDates': json['specialDates'],
|
|
65
63
|
'suppliers': json['suppliers'],
|
|
@@ -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'],
|
|
@@ -9,6 +9,10 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { TransactionType } from './TransactionType';
|
|
13
|
+
import type { PaymentMethod } from './PaymentMethod';
|
|
14
|
+
import type { PaymentSource } from './PaymentSource';
|
|
15
|
+
import type { PaymentStatus } from './PaymentStatus';
|
|
12
16
|
/**
|
|
13
17
|
*
|
|
14
18
|
* @export
|
|
@@ -23,28 +27,28 @@ export interface TransactionListResource {
|
|
|
23
27
|
id: number;
|
|
24
28
|
/**
|
|
25
29
|
*
|
|
26
|
-
* @type {
|
|
30
|
+
* @type {PaymentSource}
|
|
27
31
|
* @memberof TransactionListResource
|
|
28
32
|
*/
|
|
29
|
-
paymentSource:
|
|
33
|
+
paymentSource: PaymentSource;
|
|
30
34
|
/**
|
|
31
35
|
*
|
|
32
|
-
* @type {
|
|
36
|
+
* @type {PaymentMethod}
|
|
33
37
|
* @memberof TransactionListResource
|
|
34
38
|
*/
|
|
35
|
-
paymentMethod:
|
|
39
|
+
paymentMethod: PaymentMethod;
|
|
36
40
|
/**
|
|
37
41
|
*
|
|
38
|
-
* @type {
|
|
42
|
+
* @type {TransactionType}
|
|
39
43
|
* @memberof TransactionListResource
|
|
40
44
|
*/
|
|
41
|
-
type:
|
|
45
|
+
type: TransactionType;
|
|
42
46
|
/**
|
|
43
47
|
*
|
|
44
|
-
* @type {
|
|
48
|
+
* @type {PaymentStatus}
|
|
45
49
|
* @memberof TransactionListResource
|
|
46
50
|
*/
|
|
47
|
-
status:
|
|
51
|
+
status: PaymentStatus;
|
|
48
52
|
/**
|
|
49
53
|
*
|
|
50
54
|
* @type {number}
|
|
@@ -18,6 +18,10 @@ exports.TransactionListResourceFromJSON = TransactionListResourceFromJSON;
|
|
|
18
18
|
exports.TransactionListResourceFromJSONTyped = TransactionListResourceFromJSONTyped;
|
|
19
19
|
exports.TransactionListResourceToJSON = TransactionListResourceToJSON;
|
|
20
20
|
exports.TransactionListResourceToJSONTyped = TransactionListResourceToJSONTyped;
|
|
21
|
+
var TransactionType_1 = require("./TransactionType");
|
|
22
|
+
var PaymentMethod_1 = require("./PaymentMethod");
|
|
23
|
+
var PaymentSource_1 = require("./PaymentSource");
|
|
24
|
+
var PaymentStatus_1 = require("./PaymentStatus");
|
|
21
25
|
/**
|
|
22
26
|
* Check if a given object implements the TransactionListResource interface.
|
|
23
27
|
*/
|
|
@@ -53,10 +57,10 @@ function TransactionListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
57
|
}
|
|
54
58
|
return {
|
|
55
59
|
'id': json['id'],
|
|
56
|
-
'paymentSource': json['paymentSource'],
|
|
57
|
-
'paymentMethod': json['paymentMethod'],
|
|
58
|
-
'type': json['type'],
|
|
59
|
-
'status': json['status'],
|
|
60
|
+
'paymentSource': (0, PaymentSource_1.PaymentSourceFromJSON)(json['paymentSource']),
|
|
61
|
+
'paymentMethod': (0, PaymentMethod_1.PaymentMethodFromJSON)(json['paymentMethod']),
|
|
62
|
+
'type': (0, TransactionType_1.TransactionTypeFromJSON)(json['type']),
|
|
63
|
+
'status': (0, PaymentStatus_1.PaymentStatusFromJSON)(json['status']),
|
|
60
64
|
'totalAmount': json['totalAmount'],
|
|
61
65
|
'surcharge': json['surcharge'],
|
|
62
66
|
'refundedAmount': json['refundedAmount'],
|
|
@@ -80,10 +84,10 @@ function TransactionListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
80
84
|
}
|
|
81
85
|
return {
|
|
82
86
|
'id': value['id'],
|
|
83
|
-
'paymentSource': value['paymentSource'],
|
|
84
|
-
'paymentMethod': value['paymentMethod'],
|
|
85
|
-
'type': value['type'],
|
|
86
|
-
'status': value['status'],
|
|
87
|
+
'paymentSource': (0, PaymentSource_1.PaymentSourceToJSON)(value['paymentSource']),
|
|
88
|
+
'paymentMethod': (0, PaymentMethod_1.PaymentMethodToJSON)(value['paymentMethod']),
|
|
89
|
+
'type': (0, TransactionType_1.TransactionTypeToJSON)(value['type']),
|
|
90
|
+
'status': (0, PaymentStatus_1.PaymentStatusToJSON)(value['status']),
|
|
87
91
|
'totalAmount': value['totalAmount'],
|
|
88
92
|
'surcharge': value['surcharge'],
|
|
89
93
|
'refundedAmount': value['refundedAmount'],
|
|
@@ -9,6 +9,10 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { TransactionType } from './TransactionType';
|
|
13
|
+
import type { PaymentMethod } from './PaymentMethod';
|
|
14
|
+
import type { PaymentSource } from './PaymentSource';
|
|
15
|
+
import type { PaymentStatus } from './PaymentStatus';
|
|
12
16
|
/**
|
|
13
17
|
*
|
|
14
18
|
* @export
|
|
@@ -23,16 +27,16 @@ export interface TransactionLiteResource {
|
|
|
23
27
|
id?: number | null;
|
|
24
28
|
/**
|
|
25
29
|
*
|
|
26
|
-
* @type {
|
|
30
|
+
* @type {PaymentSource}
|
|
27
31
|
* @memberof TransactionLiteResource
|
|
28
32
|
*/
|
|
29
|
-
paymentSource:
|
|
33
|
+
paymentSource: PaymentSource;
|
|
30
34
|
/**
|
|
31
35
|
*
|
|
32
|
-
* @type {
|
|
36
|
+
* @type {PaymentMethod}
|
|
33
37
|
* @memberof TransactionLiteResource
|
|
34
38
|
*/
|
|
35
|
-
paymentMethod:
|
|
39
|
+
paymentMethod: PaymentMethod;
|
|
36
40
|
/**
|
|
37
41
|
*
|
|
38
42
|
* @type {string}
|
|
@@ -41,16 +45,16 @@ export interface TransactionLiteResource {
|
|
|
41
45
|
paymentMethodThumbnail: string;
|
|
42
46
|
/**
|
|
43
47
|
*
|
|
44
|
-
* @type {
|
|
48
|
+
* @type {TransactionType}
|
|
45
49
|
* @memberof TransactionLiteResource
|
|
46
50
|
*/
|
|
47
|
-
type:
|
|
51
|
+
type: TransactionType;
|
|
48
52
|
/**
|
|
49
53
|
*
|
|
50
|
-
* @type {
|
|
54
|
+
* @type {PaymentStatus}
|
|
51
55
|
* @memberof TransactionLiteResource
|
|
52
56
|
*/
|
|
53
|
-
status:
|
|
57
|
+
status: PaymentStatus;
|
|
54
58
|
/**
|
|
55
59
|
*
|
|
56
60
|
* @type {number}
|
|
@@ -18,6 +18,10 @@ exports.TransactionLiteResourceFromJSON = TransactionLiteResourceFromJSON;
|
|
|
18
18
|
exports.TransactionLiteResourceFromJSONTyped = TransactionLiteResourceFromJSONTyped;
|
|
19
19
|
exports.TransactionLiteResourceToJSON = TransactionLiteResourceToJSON;
|
|
20
20
|
exports.TransactionLiteResourceToJSONTyped = TransactionLiteResourceToJSONTyped;
|
|
21
|
+
var TransactionType_1 = require("./TransactionType");
|
|
22
|
+
var PaymentMethod_1 = require("./PaymentMethod");
|
|
23
|
+
var PaymentSource_1 = require("./PaymentSource");
|
|
24
|
+
var PaymentStatus_1 = require("./PaymentStatus");
|
|
21
25
|
/**
|
|
22
26
|
* Check if a given object implements the TransactionLiteResource interface.
|
|
23
27
|
*/
|
|
@@ -51,11 +55,11 @@ function TransactionLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
51
55
|
}
|
|
52
56
|
return {
|
|
53
57
|
'id': json['id'] == null ? undefined : json['id'],
|
|
54
|
-
'paymentSource': json['paymentSource'],
|
|
55
|
-
'paymentMethod': json['paymentMethod'],
|
|
58
|
+
'paymentSource': (0, PaymentSource_1.PaymentSourceFromJSON)(json['paymentSource']),
|
|
59
|
+
'paymentMethod': (0, PaymentMethod_1.PaymentMethodFromJSON)(json['paymentMethod']),
|
|
56
60
|
'paymentMethodThumbnail': json['paymentMethodThumbnail'],
|
|
57
|
-
'type': json['type'],
|
|
58
|
-
'status': json['status'],
|
|
61
|
+
'type': (0, TransactionType_1.TransactionTypeFromJSON)(json['type']),
|
|
62
|
+
'status': (0, PaymentStatus_1.PaymentStatusFromJSON)(json['status']),
|
|
59
63
|
'amount': json['amount'],
|
|
60
64
|
'surcharge': json['surcharge'],
|
|
61
65
|
'totalAmount': json['totalAmount'],
|
|
@@ -75,11 +79,11 @@ function TransactionLiteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
75
79
|
}
|
|
76
80
|
return {
|
|
77
81
|
'id': value['id'],
|
|
78
|
-
'paymentSource': value['paymentSource'],
|
|
79
|
-
'paymentMethod': value['paymentMethod'],
|
|
82
|
+
'paymentSource': (0, PaymentSource_1.PaymentSourceToJSON)(value['paymentSource']),
|
|
83
|
+
'paymentMethod': (0, PaymentMethod_1.PaymentMethodToJSON)(value['paymentMethod']),
|
|
80
84
|
'paymentMethodThumbnail': value['paymentMethodThumbnail'],
|
|
81
|
-
'type': value['type'],
|
|
82
|
-
'status': value['status'],
|
|
85
|
+
'type': (0, TransactionType_1.TransactionTypeToJSON)(value['type']),
|
|
86
|
+
'status': (0, PaymentStatus_1.PaymentStatusToJSON)(value['status']),
|
|
83
87
|
'amount': value['amount'],
|
|
84
88
|
'surcharge': value['surcharge'],
|
|
85
89
|
'totalAmount': value['totalAmount'],
|
|
@@ -9,6 +9,10 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { TransactionType } from './TransactionType';
|
|
13
|
+
import type { PaymentMethod } from './PaymentMethod';
|
|
14
|
+
import type { PaymentSource } from './PaymentSource';
|
|
15
|
+
import type { PaymentStatus } from './PaymentStatus';
|
|
12
16
|
/**
|
|
13
17
|
*
|
|
14
18
|
* @export
|
|
@@ -23,28 +27,28 @@ export interface TransactionResource {
|
|
|
23
27
|
id?: number | null;
|
|
24
28
|
/**
|
|
25
29
|
*
|
|
26
|
-
* @type {
|
|
30
|
+
* @type {PaymentSource}
|
|
27
31
|
* @memberof TransactionResource
|
|
28
32
|
*/
|
|
29
|
-
paymentSource:
|
|
33
|
+
paymentSource: PaymentSource;
|
|
30
34
|
/**
|
|
31
35
|
*
|
|
32
|
-
* @type {
|
|
36
|
+
* @type {PaymentMethod}
|
|
33
37
|
* @memberof TransactionResource
|
|
34
38
|
*/
|
|
35
|
-
paymentMethod:
|
|
39
|
+
paymentMethod: PaymentMethod;
|
|
36
40
|
/**
|
|
37
41
|
*
|
|
38
|
-
* @type {
|
|
42
|
+
* @type {TransactionType}
|
|
39
43
|
* @memberof TransactionResource
|
|
40
44
|
*/
|
|
41
|
-
type:
|
|
45
|
+
type: TransactionType;
|
|
42
46
|
/**
|
|
43
47
|
*
|
|
44
|
-
* @type {
|
|
48
|
+
* @type {PaymentStatus}
|
|
45
49
|
* @memberof TransactionResource
|
|
46
50
|
*/
|
|
47
|
-
status:
|
|
51
|
+
status: PaymentStatus;
|
|
48
52
|
/**
|
|
49
53
|
*
|
|
50
54
|
* @type {number}
|