@digital8/lighting-illusions-ts-sdk 0.0.2735 → 0.0.2737
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/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/CreateTransactionRequest.d.ts +1 -0
- package/dist/models/CreateTransactionRequest.js +2 -1
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- 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 +3 -1
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.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/AddressResource.ts +2 -3
- package/src/models/AdminOrderResource.ts +18 -0
- package/src/models/CreateTransactionRequest.ts +2 -1
- package/src/models/ExternalApiLogResource.ts +2 -3
- 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 +3 -2
- package/src/models/StoreListResource.ts +3 -2
- 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,143 @@
|
|
|
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 StoreCreditListResource
|
|
20
|
+
*/
|
|
21
|
+
export interface StoreCreditListResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof StoreCreditListResource
|
|
26
|
+
*/
|
|
27
|
+
id: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof StoreCreditListResource
|
|
32
|
+
*/
|
|
33
|
+
siteId: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof StoreCreditListResource
|
|
38
|
+
*/
|
|
39
|
+
customerId?: number | null;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof StoreCreditListResource
|
|
44
|
+
*/
|
|
45
|
+
customerNetsuiteId: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof StoreCreditListResource
|
|
50
|
+
*/
|
|
51
|
+
code: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {Date}
|
|
55
|
+
* @memberof StoreCreditListResource
|
|
56
|
+
*/
|
|
57
|
+
expiryDate?: Date | null;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof StoreCreditListResource
|
|
62
|
+
*/
|
|
63
|
+
originalAmount: number;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof StoreCreditListResource
|
|
68
|
+
*/
|
|
69
|
+
amountRemaining: number;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof StoreCreditListResource
|
|
74
|
+
*/
|
|
75
|
+
netsuiteId?: string | null;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {Date}
|
|
79
|
+
* @memberof StoreCreditListResource
|
|
80
|
+
*/
|
|
81
|
+
createdAt?: Date | null;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Check if a given object implements the StoreCreditListResource interface.
|
|
86
|
+
*/
|
|
87
|
+
export function instanceOfStoreCreditListResource(value: object): value is StoreCreditListResource {
|
|
88
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
89
|
+
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
90
|
+
if (!('customerNetsuiteId' in value) || value['customerNetsuiteId'] === undefined) return false;
|
|
91
|
+
if (!('code' in value) || value['code'] === undefined) return false;
|
|
92
|
+
if (!('originalAmount' in value) || value['originalAmount'] === undefined) return false;
|
|
93
|
+
if (!('amountRemaining' in value) || value['amountRemaining'] === undefined) return false;
|
|
94
|
+
return true;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function StoreCreditListResourceFromJSON(json: any): StoreCreditListResource {
|
|
98
|
+
return StoreCreditListResourceFromJSONTyped(json, false);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function StoreCreditListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreCreditListResource {
|
|
102
|
+
if (json == null) {
|
|
103
|
+
return json;
|
|
104
|
+
}
|
|
105
|
+
return {
|
|
106
|
+
|
|
107
|
+
'id': json['id'],
|
|
108
|
+
'siteId': json['siteId'],
|
|
109
|
+
'customerId': json['customerId'] == null ? undefined : json['customerId'],
|
|
110
|
+
'customerNetsuiteId': json['customerNetsuiteId'],
|
|
111
|
+
'code': json['code'],
|
|
112
|
+
'expiryDate': json['expiryDate'] == null ? undefined : (new Date(json['expiryDate'])),
|
|
113
|
+
'originalAmount': json['originalAmount'],
|
|
114
|
+
'amountRemaining': json['amountRemaining'],
|
|
115
|
+
'netsuiteId': json['netsuiteId'] == null ? undefined : json['netsuiteId'],
|
|
116
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export function StoreCreditListResourceToJSON(json: any): StoreCreditListResource {
|
|
121
|
+
return StoreCreditListResourceToJSONTyped(json, false);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export function StoreCreditListResourceToJSONTyped(value?: StoreCreditListResource | null, ignoreDiscriminator: boolean = false): any {
|
|
125
|
+
if (value == null) {
|
|
126
|
+
return value;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
return {
|
|
130
|
+
|
|
131
|
+
'id': value['id'],
|
|
132
|
+
'siteId': value['siteId'],
|
|
133
|
+
'customerId': value['customerId'],
|
|
134
|
+
'customerNetsuiteId': value['customerNetsuiteId'],
|
|
135
|
+
'code': value['code'],
|
|
136
|
+
'expiryDate': value['expiryDate'] === null ? null : ((value['expiryDate'] as any)?.toISOString()),
|
|
137
|
+
'originalAmount': value['originalAmount'],
|
|
138
|
+
'amountRemaining': value['amountRemaining'],
|
|
139
|
+
'netsuiteId': value['netsuiteId'],
|
|
140
|
+
'createdAt': value['createdAt'] === null ? null : ((value['createdAt'] as any)?.toISOString()),
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
|
|
@@ -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
|
+
|
|
@@ -48,7 +48,7 @@ export interface StoreFrontendResource {
|
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof StoreFrontendResource
|
|
50
50
|
*/
|
|
51
|
-
website
|
|
51
|
+
website: string;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {string}
|
|
@@ -106,6 +106,7 @@ 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;
|
|
109
110
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
110
111
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
111
112
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
@@ -129,7 +130,7 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
129
130
|
'siteId': json['siteId'],
|
|
130
131
|
'name': json['name'],
|
|
131
132
|
'email': json['email'],
|
|
132
|
-
'website': json['website']
|
|
133
|
+
'website': json['website'],
|
|
133
134
|
'phone': json['phone'],
|
|
134
135
|
'address': json['address'] == null ? undefined : json['address'],
|
|
135
136
|
'latitude': json['latitude'],
|
|
@@ -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'],
|
|
@@ -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'],
|