@digital8/lighting-illusions-ts-sdk 0.0.2794 → 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 +2 -2
- package/dist/models/AddressFrontendResource.js +4 -4
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +1 -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/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/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/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/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 +5 -5
- package/src/models/AddressResource.ts +2 -3
- 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/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/StoreListResource.ts +3 -2
- package/src/models/StoreResource.ts +4 -6
- 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/UpdatePageRequest.ts +4 -4
- package/src/models/index.ts +9 -0
|
@@ -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
|
+
|
|
@@ -48,7 +48,7 @@ export interface StoreFrontendResource {
|
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof StoreFrontendResource
|
|
50
50
|
*/
|
|
51
|
-
website
|
|
51
|
+
website?: string | null;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {string}
|
|
@@ -106,7 +106,6 @@ export function instanceOfStoreFrontendResource(value: object): value is StoreFr
|
|
|
106
106
|
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
107
107
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
108
108
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
109
|
-
if (!('website' in value) || value['website'] === undefined) return false;
|
|
110
109
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
111
110
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
112
111
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
@@ -130,7 +129,7 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
130
129
|
'siteId': json['siteId'],
|
|
131
130
|
'name': json['name'],
|
|
132
131
|
'email': json['email'],
|
|
133
|
-
'website': json['website'],
|
|
132
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
134
133
|
'phone': json['phone'],
|
|
135
134
|
'address': json['address'] == null ? undefined : json['address'],
|
|
136
135
|
'latitude': json['latitude'],
|
|
@@ -68,7 +68,7 @@ export interface StoreListResource {
|
|
|
68
68
|
* @type {string}
|
|
69
69
|
* @memberof StoreListResource
|
|
70
70
|
*/
|
|
71
|
-
tagLine
|
|
71
|
+
tagLine: string;
|
|
72
72
|
/**
|
|
73
73
|
*
|
|
74
74
|
* @type {string}
|
|
@@ -110,6 +110,7 @@ export function instanceOfStoreListResource(value: object): value is StoreListRe
|
|
|
110
110
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
111
111
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
112
112
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
113
|
+
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
113
114
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
114
115
|
if (!('website' in value) || value['website'] === undefined) return false;
|
|
115
116
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
@@ -133,7 +134,7 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
133
134
|
'phone': json['phone'],
|
|
134
135
|
'longitude': json['longitude'],
|
|
135
136
|
'latitude': json['latitude'],
|
|
136
|
-
'tagLine': json['tagLine']
|
|
137
|
+
'tagLine': json['tagLine'],
|
|
137
138
|
'email': json['email'],
|
|
138
139
|
'website': json['website'],
|
|
139
140
|
'netsuiteId': json['netsuiteId'],
|
|
@@ -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 StoreSpecialDateFrontendResource {
|
|
|
39
39
|
hours: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
|
-
* @type {
|
|
42
|
+
* @type {object}
|
|
43
43
|
* @memberof StoreSpecialDateFrontendResource
|
|
44
44
|
*/
|
|
45
|
-
date
|
|
45
|
+
date: object;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {boolean}
|
|
@@ -69,6 +69,7 @@ export interface StoreSpecialDateFrontendResource {
|
|
|
69
69
|
export function instanceOfStoreSpecialDateFrontendResource(value: object): value is StoreSpecialDateFrontendResource {
|
|
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;
|
|
72
73
|
if (!('closed' in value) || value['closed'] === undefined) return false;
|
|
73
74
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined) return false;
|
|
74
75
|
if (!('displayEndDate' in value) || value['displayEndDate'] === undefined) return false;
|
|
@@ -88,7 +89,7 @@ export function StoreSpecialDateFrontendResourceFromJSONTyped(json: any, ignoreD
|
|
|
88
89
|
'id': json['id'] == null ? undefined : json['id'],
|
|
89
90
|
'name': json['name'],
|
|
90
91
|
'hours': json['hours'],
|
|
91
|
-
'date': json['date']
|
|
92
|
+
'date': json['date'],
|
|
92
93
|
'closed': json['closed'],
|
|
93
94
|
'displayStartDate': json['displayStartDate'],
|
|
94
95
|
'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'],
|
|
@@ -61,10 +61,10 @@ export interface UpdatePageRequest {
|
|
|
61
61
|
enabled?: boolean;
|
|
62
62
|
/**
|
|
63
63
|
*
|
|
64
|
-
* @type {
|
|
64
|
+
* @type {string}
|
|
65
65
|
* @memberof UpdatePageRequest
|
|
66
66
|
*/
|
|
67
|
-
startDate?:
|
|
67
|
+
startDate?: string | null;
|
|
68
68
|
/**
|
|
69
69
|
*
|
|
70
70
|
* @type {CreatePageRequestBlog}
|
|
@@ -108,7 +108,7 @@ export function UpdatePageRequestFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
108
108
|
'name': json['name'],
|
|
109
109
|
'slug': json['slug'],
|
|
110
110
|
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
111
|
-
'startDate': json['start_date'] == null ? undefined :
|
|
111
|
+
'startDate': json['start_date'] == null ? undefined : json['start_date'],
|
|
112
112
|
'blog': json['blog'] == null ? undefined : CreatePageRequestBlogFromJSON(json['blog']),
|
|
113
113
|
'componentOrder': json['component_order'] == null ? undefined : ((json['component_order'] as Array<any>).map(UpdatePageRequestComponentOrderInnerFromJSON)),
|
|
114
114
|
'seo': ((json['seo'] as Array<any>).map(CreateBlogCategoryRequestSeoInnerFromJSON)),
|
|
@@ -129,7 +129,7 @@ export function UpdatePageRequestToJSONTyped(value?: UpdatePageRequest | null, i
|
|
|
129
129
|
'name': value['name'],
|
|
130
130
|
'slug': value['slug'],
|
|
131
131
|
'enabled': value['enabled'],
|
|
132
|
-
'start_date': value['startDate']
|
|
132
|
+
'start_date': value['startDate'],
|
|
133
133
|
'blog': CreatePageRequestBlogToJSON(value['blog']),
|
|
134
134
|
'component_order': value['componentOrder'] == null ? undefined : ((value['componentOrder'] as Array<any>).map(UpdatePageRequestComponentOrderInnerToJSON)),
|
|
135
135
|
'seo': ((value['seo'] as Array<any>).map(CreateBlogCategoryRequestSeoInnerToJSON)),
|