@digital8/lighting-illusions-ts-sdk 0.0.2795 → 0.0.2796
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 +10 -0
- package/README.md +2 -2
- package/dist/apis/CouponsApi.d.ts +9 -1
- package/dist/apis/CouponsApi.js +42 -0
- package/dist/apis/StoreCreditsApi.d.ts +40 -0
- package/dist/apis/StoreCreditsApi.js +171 -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 +1 -1
- package/dist/models/AddressFrontendResource.js +1 -3
- package/dist/models/AddressResource.d.ts +2 -2
- package/dist/models/AddressResource.js +3 -3
- package/dist/models/AdminOrderResource.d.ts +12 -0
- package/dist/models/AdminOrderResource.js +8 -0
- package/dist/models/CreatePageRequest.d.ts +2 -2
- package/dist/models/CreatePageRequest.js +2 -3
- 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/GeneratedCouponCodeResource.d.ts +32 -0
- package/dist/models/GeneratedCouponCodeResource.js +51 -0
- package/dist/models/GeneratedCouponCodeResourceArrayResponse.d.ts +33 -0
- package/dist/models/GeneratedCouponCodeResourceArrayResponse.js +50 -0
- package/dist/models/OrderFulfillmentResource.d.ts +1 -1
- package/dist/models/OrderFulfillmentResource.js +1 -3
- 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/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +3 -1
- package/dist/models/StoreResource.d.ts +2 -2
- package/dist/models/StoreResource.js +2 -6
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +1 -3
- 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/UpdatePageRequest.d.ts +2 -2
- package/dist/models/UpdatePageRequest.js +2 -3
- package/dist/models/index.d.ts +9 -0
- package/dist/models/index.js +9 -0
- package/package.json +1 -1
- package/src/apis/CouponsApi.ts +32 -0
- package/src/apis/StoreCreditsApi.ts +113 -0
- package/src/apis/TransactionsApi.ts +44 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AddressFrontendResource.ts +2 -3
- package/src/models/AddressResource.ts +5 -5
- package/src/models/AdminOrderResource.ts +18 -0
- package/src/models/CreatePageRequest.ts +4 -4
- 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/GeneratedCouponCodeResource.ts +66 -0
- package/src/models/GeneratedCouponCodeResourceArrayResponse.ts +73 -0
- package/src/models/OrderFulfillmentResource.ts +2 -3
- 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/StoreListResource.ts +3 -2
- package/src/models/StoreResource.ts +4 -6
- package/src/models/StoreSpecialDateResource.ts +3 -4
- package/src/models/TransactionListResource.ts +47 -16
- package/src/models/TransactionLiteResource.ts +47 -16
- package/src/models/TransactionResource.ts +47 -16
- package/src/models/UpdatePageRequest.ts +4 -4
- package/src/models/index.ts +9 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { StoreCreditListResource } from './StoreCreditListResource';
|
|
17
|
+
import {
|
|
18
|
+
StoreCreditListResourceFromJSON,
|
|
19
|
+
StoreCreditListResourceFromJSONTyped,
|
|
20
|
+
StoreCreditListResourceToJSON,
|
|
21
|
+
StoreCreditListResourceToJSONTyped,
|
|
22
|
+
} from './StoreCreditListResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface StoreCreditListResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface StoreCreditListResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<StoreCreditListResource>}
|
|
33
|
+
* @memberof StoreCreditListResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<StoreCreditListResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the StoreCreditListResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfStoreCreditListResourceArrayResponse(value: object): value is StoreCreditListResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function StoreCreditListResourceArrayResponseFromJSON(json: any): StoreCreditListResourceArrayResponse {
|
|
46
|
+
return StoreCreditListResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function StoreCreditListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreCreditListResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(StoreCreditListResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function StoreCreditListResourceArrayResponseToJSON(json: any): StoreCreditListResourceArrayResponse {
|
|
60
|
+
return StoreCreditListResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function StoreCreditListResourceArrayResponseToJSONTyped(value?: StoreCreditListResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(StoreCreditListResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface StoreCreditLiteResource
|
|
20
|
+
*/
|
|
21
|
+
export interface StoreCreditLiteResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof StoreCreditLiteResource
|
|
26
|
+
*/
|
|
27
|
+
id: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof StoreCreditLiteResource
|
|
32
|
+
*/
|
|
33
|
+
code: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof StoreCreditLiteResource
|
|
38
|
+
*/
|
|
39
|
+
amount: number;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the StoreCreditLiteResource interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfStoreCreditLiteResource(value: object): value is StoreCreditLiteResource {
|
|
46
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
47
|
+
if (!('code' in value) || value['code'] === undefined) return false;
|
|
48
|
+
if (!('amount' in value) || value['amount'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function StoreCreditLiteResourceFromJSON(json: any): StoreCreditLiteResource {
|
|
53
|
+
return StoreCreditLiteResourceFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function StoreCreditLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreCreditLiteResource {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'id': json['id'],
|
|
63
|
+
'code': json['code'],
|
|
64
|
+
'amount': json['amount'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function StoreCreditLiteResourceToJSON(json: any): StoreCreditLiteResource {
|
|
69
|
+
return StoreCreditLiteResourceToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function StoreCreditLiteResourceToJSONTyped(value?: StoreCreditLiteResource | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'id': value['id'],
|
|
80
|
+
'code': value['code'],
|
|
81
|
+
'amount': value['amount'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { StoreCreditLiteResource } from './StoreCreditLiteResource';
|
|
17
|
+
import {
|
|
18
|
+
StoreCreditLiteResourceFromJSON,
|
|
19
|
+
StoreCreditLiteResourceFromJSONTyped,
|
|
20
|
+
StoreCreditLiteResourceToJSON,
|
|
21
|
+
StoreCreditLiteResourceToJSONTyped,
|
|
22
|
+
} from './StoreCreditLiteResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface StoreCreditLiteResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface StoreCreditLiteResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<StoreCreditLiteResource>}
|
|
33
|
+
* @memberof StoreCreditLiteResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<StoreCreditLiteResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the StoreCreditLiteResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfStoreCreditLiteResourceArrayResponse(value: object): value is StoreCreditLiteResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function StoreCreditLiteResourceArrayResponseFromJSON(json: any): StoreCreditLiteResourceArrayResponse {
|
|
46
|
+
return StoreCreditLiteResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function StoreCreditLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreCreditLiteResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(StoreCreditLiteResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function StoreCreditLiteResourceArrayResponseToJSON(json: any): StoreCreditLiteResourceArrayResponse {
|
|
60
|
+
return StoreCreditLiteResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function StoreCreditLiteResourceArrayResponseToJSONTyped(value?: StoreCreditLiteResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(StoreCreditLiteResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -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}
|
|
@@ -112,6 +112,7 @@ export function instanceOfStoreListResource(value: object): value is StoreListRe
|
|
|
112
112
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
113
113
|
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
114
114
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
115
|
+
if (!('website' in value) || value['website'] === undefined) return false;
|
|
115
116
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
116
117
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
|
|
117
118
|
return true;
|
|
@@ -135,7 +136,7 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
135
136
|
'latitude': json['latitude'],
|
|
136
137
|
'tagLine': json['tagLine'],
|
|
137
138
|
'email': json['email'],
|
|
138
|
-
'website': json['website']
|
|
139
|
+
'website': json['website'],
|
|
139
140
|
'netsuiteId': json['netsuiteId'],
|
|
140
141
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
141
142
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
@@ -89,7 +89,7 @@ export interface StoreResource {
|
|
|
89
89
|
* @type {string}
|
|
90
90
|
* @memberof StoreResource
|
|
91
91
|
*/
|
|
92
|
-
tagLine
|
|
92
|
+
tagLine?: string | null;
|
|
93
93
|
/**
|
|
94
94
|
*
|
|
95
95
|
* @type {string}
|
|
@@ -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}
|
|
@@ -149,9 +149,7 @@ export function instanceOfStoreResource(value: object): value is StoreResource {
|
|
|
149
149
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
150
150
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
151
151
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
152
|
-
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
153
152
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
154
|
-
if (!('website' in value) || value['website'] === undefined) return false;
|
|
155
153
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
156
154
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
|
|
157
155
|
if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
|
|
@@ -176,9 +174,9 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
176
174
|
'phone': json['phone'],
|
|
177
175
|
'longitude': json['longitude'],
|
|
178
176
|
'latitude': json['latitude'],
|
|
179
|
-
'tagLine': json['tagLine'],
|
|
177
|
+
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
180
178
|
'email': json['email'],
|
|
181
|
-
'website': json['website'],
|
|
179
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
182
180
|
'netsuiteId': json['netsuiteId'],
|
|
183
181
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
184
182
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
@@ -39,10 +39,10 @@ export interface StoreSpecialDateResource {
|
|
|
39
39
|
hours: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
|
-
* @type {
|
|
42
|
+
* @type {string}
|
|
43
43
|
* @memberof StoreSpecialDateResource
|
|
44
44
|
*/
|
|
45
|
-
date
|
|
45
|
+
date?: string | null;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {boolean}
|
|
@@ -69,7 +69,6 @@ export interface StoreSpecialDateResource {
|
|
|
69
69
|
export function instanceOfStoreSpecialDateResource(value: object): value is StoreSpecialDateResource {
|
|
70
70
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
71
71
|
if (!('hours' in value) || value['hours'] === undefined) return false;
|
|
72
|
-
if (!('date' in value) || value['date'] === undefined) return false;
|
|
73
72
|
if (!('closed' in value) || value['closed'] === undefined) return false;
|
|
74
73
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined) return false;
|
|
75
74
|
if (!('displayEndDate' in value) || value['displayEndDate'] === undefined) return false;
|
|
@@ -89,7 +88,7 @@ export function StoreSpecialDateResourceFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
89
88
|
'id': json['id'] == null ? undefined : json['id'],
|
|
90
89
|
'name': json['name'],
|
|
91
90
|
'hours': json['hours'],
|
|
92
|
-
'date': json['date'],
|
|
91
|
+
'date': json['date'] == null ? undefined : json['date'],
|
|
93
92
|
'closed': json['closed'],
|
|
94
93
|
'displayStartDate': json['displayStartDate'],
|
|
95
94
|
'displayEndDate': json['displayEndDate'],
|
|
@@ -13,6 +13,35 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { TransactionType } from './TransactionType';
|
|
17
|
+
import {
|
|
18
|
+
TransactionTypeFromJSON,
|
|
19
|
+
TransactionTypeFromJSONTyped,
|
|
20
|
+
TransactionTypeToJSON,
|
|
21
|
+
TransactionTypeToJSONTyped,
|
|
22
|
+
} from './TransactionType';
|
|
23
|
+
import type { PaymentMethod } from './PaymentMethod';
|
|
24
|
+
import {
|
|
25
|
+
PaymentMethodFromJSON,
|
|
26
|
+
PaymentMethodFromJSONTyped,
|
|
27
|
+
PaymentMethodToJSON,
|
|
28
|
+
PaymentMethodToJSONTyped,
|
|
29
|
+
} from './PaymentMethod';
|
|
30
|
+
import type { PaymentSource } from './PaymentSource';
|
|
31
|
+
import {
|
|
32
|
+
PaymentSourceFromJSON,
|
|
33
|
+
PaymentSourceFromJSONTyped,
|
|
34
|
+
PaymentSourceToJSON,
|
|
35
|
+
PaymentSourceToJSONTyped,
|
|
36
|
+
} from './PaymentSource';
|
|
37
|
+
import type { PaymentStatus } from './PaymentStatus';
|
|
38
|
+
import {
|
|
39
|
+
PaymentStatusFromJSON,
|
|
40
|
+
PaymentStatusFromJSONTyped,
|
|
41
|
+
PaymentStatusToJSON,
|
|
42
|
+
PaymentStatusToJSONTyped,
|
|
43
|
+
} from './PaymentStatus';
|
|
44
|
+
|
|
16
45
|
/**
|
|
17
46
|
*
|
|
18
47
|
* @export
|
|
@@ -27,28 +56,28 @@ export interface TransactionListResource {
|
|
|
27
56
|
id: number;
|
|
28
57
|
/**
|
|
29
58
|
*
|
|
30
|
-
* @type {
|
|
59
|
+
* @type {PaymentSource}
|
|
31
60
|
* @memberof TransactionListResource
|
|
32
61
|
*/
|
|
33
|
-
paymentSource:
|
|
62
|
+
paymentSource: PaymentSource;
|
|
34
63
|
/**
|
|
35
64
|
*
|
|
36
|
-
* @type {
|
|
65
|
+
* @type {PaymentMethod}
|
|
37
66
|
* @memberof TransactionListResource
|
|
38
67
|
*/
|
|
39
|
-
paymentMethod:
|
|
68
|
+
paymentMethod: PaymentMethod;
|
|
40
69
|
/**
|
|
41
70
|
*
|
|
42
|
-
* @type {
|
|
71
|
+
* @type {TransactionType}
|
|
43
72
|
* @memberof TransactionListResource
|
|
44
73
|
*/
|
|
45
|
-
type:
|
|
74
|
+
type: TransactionType;
|
|
46
75
|
/**
|
|
47
76
|
*
|
|
48
|
-
* @type {
|
|
77
|
+
* @type {PaymentStatus}
|
|
49
78
|
* @memberof TransactionListResource
|
|
50
79
|
*/
|
|
51
|
-
status:
|
|
80
|
+
status: PaymentStatus;
|
|
52
81
|
/**
|
|
53
82
|
*
|
|
54
83
|
* @type {number}
|
|
@@ -111,6 +140,8 @@ export interface TransactionListResource {
|
|
|
111
140
|
createdAt?: Date | null;
|
|
112
141
|
}
|
|
113
142
|
|
|
143
|
+
|
|
144
|
+
|
|
114
145
|
/**
|
|
115
146
|
* Check if a given object implements the TransactionListResource interface.
|
|
116
147
|
*/
|
|
@@ -139,10 +170,10 @@ export function TransactionListResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
139
170
|
return {
|
|
140
171
|
|
|
141
172
|
'id': json['id'],
|
|
142
|
-
'paymentSource': json['paymentSource'],
|
|
143
|
-
'paymentMethod': json['paymentMethod'],
|
|
144
|
-
'type': json['type'],
|
|
145
|
-
'status': json['status'],
|
|
173
|
+
'paymentSource': PaymentSourceFromJSON(json['paymentSource']),
|
|
174
|
+
'paymentMethod': PaymentMethodFromJSON(json['paymentMethod']),
|
|
175
|
+
'type': TransactionTypeFromJSON(json['type']),
|
|
176
|
+
'status': PaymentStatusFromJSON(json['status']),
|
|
146
177
|
'totalAmount': json['totalAmount'],
|
|
147
178
|
'surcharge': json['surcharge'],
|
|
148
179
|
'refundedAmount': json['refundedAmount'],
|
|
@@ -168,10 +199,10 @@ export function TransactionListResourceToJSONTyped(value?: TransactionListResour
|
|
|
168
199
|
return {
|
|
169
200
|
|
|
170
201
|
'id': value['id'],
|
|
171
|
-
'paymentSource': value['paymentSource'],
|
|
172
|
-
'paymentMethod': value['paymentMethod'],
|
|
173
|
-
'type': value['type'],
|
|
174
|
-
'status': value['status'],
|
|
202
|
+
'paymentSource': PaymentSourceToJSON(value['paymentSource']),
|
|
203
|
+
'paymentMethod': PaymentMethodToJSON(value['paymentMethod']),
|
|
204
|
+
'type': TransactionTypeToJSON(value['type']),
|
|
205
|
+
'status': PaymentStatusToJSON(value['status']),
|
|
175
206
|
'totalAmount': value['totalAmount'],
|
|
176
207
|
'surcharge': value['surcharge'],
|
|
177
208
|
'refundedAmount': value['refundedAmount'],
|
|
@@ -13,6 +13,35 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { TransactionType } from './TransactionType';
|
|
17
|
+
import {
|
|
18
|
+
TransactionTypeFromJSON,
|
|
19
|
+
TransactionTypeFromJSONTyped,
|
|
20
|
+
TransactionTypeToJSON,
|
|
21
|
+
TransactionTypeToJSONTyped,
|
|
22
|
+
} from './TransactionType';
|
|
23
|
+
import type { PaymentMethod } from './PaymentMethod';
|
|
24
|
+
import {
|
|
25
|
+
PaymentMethodFromJSON,
|
|
26
|
+
PaymentMethodFromJSONTyped,
|
|
27
|
+
PaymentMethodToJSON,
|
|
28
|
+
PaymentMethodToJSONTyped,
|
|
29
|
+
} from './PaymentMethod';
|
|
30
|
+
import type { PaymentSource } from './PaymentSource';
|
|
31
|
+
import {
|
|
32
|
+
PaymentSourceFromJSON,
|
|
33
|
+
PaymentSourceFromJSONTyped,
|
|
34
|
+
PaymentSourceToJSON,
|
|
35
|
+
PaymentSourceToJSONTyped,
|
|
36
|
+
} from './PaymentSource';
|
|
37
|
+
import type { PaymentStatus } from './PaymentStatus';
|
|
38
|
+
import {
|
|
39
|
+
PaymentStatusFromJSON,
|
|
40
|
+
PaymentStatusFromJSONTyped,
|
|
41
|
+
PaymentStatusToJSON,
|
|
42
|
+
PaymentStatusToJSONTyped,
|
|
43
|
+
} from './PaymentStatus';
|
|
44
|
+
|
|
16
45
|
/**
|
|
17
46
|
*
|
|
18
47
|
* @export
|
|
@@ -27,16 +56,16 @@ export interface TransactionLiteResource {
|
|
|
27
56
|
id?: number | null;
|
|
28
57
|
/**
|
|
29
58
|
*
|
|
30
|
-
* @type {
|
|
59
|
+
* @type {PaymentSource}
|
|
31
60
|
* @memberof TransactionLiteResource
|
|
32
61
|
*/
|
|
33
|
-
paymentSource:
|
|
62
|
+
paymentSource: PaymentSource;
|
|
34
63
|
/**
|
|
35
64
|
*
|
|
36
|
-
* @type {
|
|
65
|
+
* @type {PaymentMethod}
|
|
37
66
|
* @memberof TransactionLiteResource
|
|
38
67
|
*/
|
|
39
|
-
paymentMethod:
|
|
68
|
+
paymentMethod: PaymentMethod;
|
|
40
69
|
/**
|
|
41
70
|
*
|
|
42
71
|
* @type {string}
|
|
@@ -45,16 +74,16 @@ export interface TransactionLiteResource {
|
|
|
45
74
|
paymentMethodThumbnail: string;
|
|
46
75
|
/**
|
|
47
76
|
*
|
|
48
|
-
* @type {
|
|
77
|
+
* @type {TransactionType}
|
|
49
78
|
* @memberof TransactionLiteResource
|
|
50
79
|
*/
|
|
51
|
-
type:
|
|
80
|
+
type: TransactionType;
|
|
52
81
|
/**
|
|
53
82
|
*
|
|
54
|
-
* @type {
|
|
83
|
+
* @type {PaymentStatus}
|
|
55
84
|
* @memberof TransactionLiteResource
|
|
56
85
|
*/
|
|
57
|
-
status:
|
|
86
|
+
status: PaymentStatus;
|
|
58
87
|
/**
|
|
59
88
|
*
|
|
60
89
|
* @type {number}
|
|
@@ -93,6 +122,8 @@ export interface TransactionLiteResource {
|
|
|
93
122
|
createdAt?: Date | null;
|
|
94
123
|
}
|
|
95
124
|
|
|
125
|
+
|
|
126
|
+
|
|
96
127
|
/**
|
|
97
128
|
* Check if a given object implements the TransactionLiteResource interface.
|
|
98
129
|
*/
|
|
@@ -120,11 +151,11 @@ export function TransactionLiteResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
120
151
|
return {
|
|
121
152
|
|
|
122
153
|
'id': json['id'] == null ? undefined : json['id'],
|
|
123
|
-
'paymentSource': json['paymentSource'],
|
|
124
|
-
'paymentMethod': json['paymentMethod'],
|
|
154
|
+
'paymentSource': PaymentSourceFromJSON(json['paymentSource']),
|
|
155
|
+
'paymentMethod': PaymentMethodFromJSON(json['paymentMethod']),
|
|
125
156
|
'paymentMethodThumbnail': json['paymentMethodThumbnail'],
|
|
126
|
-
'type': json['type'],
|
|
127
|
-
'status': json['status'],
|
|
157
|
+
'type': TransactionTypeFromJSON(json['type']),
|
|
158
|
+
'status': PaymentStatusFromJSON(json['status']),
|
|
128
159
|
'amount': json['amount'],
|
|
129
160
|
'surcharge': json['surcharge'],
|
|
130
161
|
'totalAmount': json['totalAmount'],
|
|
@@ -146,11 +177,11 @@ export function TransactionLiteResourceToJSONTyped(value?: TransactionLiteResour
|
|
|
146
177
|
return {
|
|
147
178
|
|
|
148
179
|
'id': value['id'],
|
|
149
|
-
'paymentSource': value['paymentSource'],
|
|
150
|
-
'paymentMethod': value['paymentMethod'],
|
|
180
|
+
'paymentSource': PaymentSourceToJSON(value['paymentSource']),
|
|
181
|
+
'paymentMethod': PaymentMethodToJSON(value['paymentMethod']),
|
|
151
182
|
'paymentMethodThumbnail': value['paymentMethodThumbnail'],
|
|
152
|
-
'type': value['type'],
|
|
153
|
-
'status': value['status'],
|
|
183
|
+
'type': TransactionTypeToJSON(value['type']),
|
|
184
|
+
'status': PaymentStatusToJSON(value['status']),
|
|
154
185
|
'amount': value['amount'],
|
|
155
186
|
'surcharge': value['surcharge'],
|
|
156
187
|
'totalAmount': value['totalAmount'],
|
|
@@ -13,6 +13,35 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { TransactionType } from './TransactionType';
|
|
17
|
+
import {
|
|
18
|
+
TransactionTypeFromJSON,
|
|
19
|
+
TransactionTypeFromJSONTyped,
|
|
20
|
+
TransactionTypeToJSON,
|
|
21
|
+
TransactionTypeToJSONTyped,
|
|
22
|
+
} from './TransactionType';
|
|
23
|
+
import type { PaymentMethod } from './PaymentMethod';
|
|
24
|
+
import {
|
|
25
|
+
PaymentMethodFromJSON,
|
|
26
|
+
PaymentMethodFromJSONTyped,
|
|
27
|
+
PaymentMethodToJSON,
|
|
28
|
+
PaymentMethodToJSONTyped,
|
|
29
|
+
} from './PaymentMethod';
|
|
30
|
+
import type { PaymentSource } from './PaymentSource';
|
|
31
|
+
import {
|
|
32
|
+
PaymentSourceFromJSON,
|
|
33
|
+
PaymentSourceFromJSONTyped,
|
|
34
|
+
PaymentSourceToJSON,
|
|
35
|
+
PaymentSourceToJSONTyped,
|
|
36
|
+
} from './PaymentSource';
|
|
37
|
+
import type { PaymentStatus } from './PaymentStatus';
|
|
38
|
+
import {
|
|
39
|
+
PaymentStatusFromJSON,
|
|
40
|
+
PaymentStatusFromJSONTyped,
|
|
41
|
+
PaymentStatusToJSON,
|
|
42
|
+
PaymentStatusToJSONTyped,
|
|
43
|
+
} from './PaymentStatus';
|
|
44
|
+
|
|
16
45
|
/**
|
|
17
46
|
*
|
|
18
47
|
* @export
|
|
@@ -27,28 +56,28 @@ export interface TransactionResource {
|
|
|
27
56
|
id?: number | null;
|
|
28
57
|
/**
|
|
29
58
|
*
|
|
30
|
-
* @type {
|
|
59
|
+
* @type {PaymentSource}
|
|
31
60
|
* @memberof TransactionResource
|
|
32
61
|
*/
|
|
33
|
-
paymentSource:
|
|
62
|
+
paymentSource: PaymentSource;
|
|
34
63
|
/**
|
|
35
64
|
*
|
|
36
|
-
* @type {
|
|
65
|
+
* @type {PaymentMethod}
|
|
37
66
|
* @memberof TransactionResource
|
|
38
67
|
*/
|
|
39
|
-
paymentMethod:
|
|
68
|
+
paymentMethod: PaymentMethod;
|
|
40
69
|
/**
|
|
41
70
|
*
|
|
42
|
-
* @type {
|
|
71
|
+
* @type {TransactionType}
|
|
43
72
|
* @memberof TransactionResource
|
|
44
73
|
*/
|
|
45
|
-
type:
|
|
74
|
+
type: TransactionType;
|
|
46
75
|
/**
|
|
47
76
|
*
|
|
48
|
-
* @type {
|
|
77
|
+
* @type {PaymentStatus}
|
|
49
78
|
* @memberof TransactionResource
|
|
50
79
|
*/
|
|
51
|
-
status:
|
|
80
|
+
status: PaymentStatus;
|
|
52
81
|
/**
|
|
53
82
|
*
|
|
54
83
|
* @type {number}
|
|
@@ -123,6 +152,8 @@ export interface TransactionResource {
|
|
|
123
152
|
createdAt?: Date | null;
|
|
124
153
|
}
|
|
125
154
|
|
|
155
|
+
|
|
156
|
+
|
|
126
157
|
/**
|
|
127
158
|
* Check if a given object implements the TransactionResource interface.
|
|
128
159
|
*/
|
|
@@ -151,10 +182,10 @@ export function TransactionResourceFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
151
182
|
return {
|
|
152
183
|
|
|
153
184
|
'id': json['id'] == null ? undefined : json['id'],
|
|
154
|
-
'paymentSource': json['paymentSource'],
|
|
155
|
-
'paymentMethod': json['paymentMethod'],
|
|
156
|
-
'type': json['type'],
|
|
157
|
-
'status': json['status'],
|
|
185
|
+
'paymentSource': PaymentSourceFromJSON(json['paymentSource']),
|
|
186
|
+
'paymentMethod': PaymentMethodFromJSON(json['paymentMethod']),
|
|
187
|
+
'type': TransactionTypeFromJSON(json['type']),
|
|
188
|
+
'status': PaymentStatusFromJSON(json['status']),
|
|
158
189
|
'amount': json['amount'],
|
|
159
190
|
'surcharge': json['surcharge'],
|
|
160
191
|
'totalAmount': json['totalAmount'],
|
|
@@ -182,10 +213,10 @@ export function TransactionResourceToJSONTyped(value?: TransactionResource | nul
|
|
|
182
213
|
return {
|
|
183
214
|
|
|
184
215
|
'id': value['id'],
|
|
185
|
-
'paymentSource': value['paymentSource'],
|
|
186
|
-
'paymentMethod': value['paymentMethod'],
|
|
187
|
-
'type': value['type'],
|
|
188
|
-
'status': value['status'],
|
|
216
|
+
'paymentSource': PaymentSourceToJSON(value['paymentSource']),
|
|
217
|
+
'paymentMethod': PaymentMethodToJSON(value['paymentMethod']),
|
|
218
|
+
'type': TransactionTypeToJSON(value['type']),
|
|
219
|
+
'status': PaymentStatusToJSON(value['status']),
|
|
189
220
|
'amount': value['amount'],
|
|
190
221
|
'surcharge': value['surcharge'],
|
|
191
222
|
'totalAmount': value['totalAmount'],
|