@digital8/lighting-illusions-ts-sdk 0.0.1953 → 0.0.1955
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 +4 -8
- package/README.md +4 -6
- package/dist/apis/TransactionsApi.d.ts +3 -3
- package/dist/apis/TransactionsApi.js +2 -2
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +3 -1
- package/dist/models/AddressResource.d.ts +2 -8
- package/dist/models/AddressResource.js +2 -10
- package/dist/models/AdminOrderResource.d.ts +6 -0
- package/dist/models/AdminOrderResource.js +4 -0
- package/dist/models/CartListResource.d.ts +6 -0
- package/dist/models/CartListResource.js +4 -0
- package/dist/models/CartResource.d.ts +6 -0
- package/dist/models/CartResource.js +4 -0
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/OrderListResource.d.ts +7 -0
- package/dist/models/OrderListResource.js +5 -0
- package/dist/models/StoreCartRequest.d.ts +6 -0
- package/dist/models/StoreCartRequest.js +2 -0
- package/dist/models/StoreCartRequestShippingAddress.d.ts +0 -6
- package/dist/models/StoreCartRequestShippingAddress.js +0 -2
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +3 -1
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +3 -1
- package/dist/models/TransactionLiteResource.d.ts +74 -0
- package/dist/models/TransactionLiteResource.js +77 -0
- package/dist/models/TransactionLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/TransactionLiteResourceArrayResponse.js +50 -0
- package/dist/models/TransactionResource.d.ts +0 -24
- package/dist/models/TransactionResource.js +0 -8
- package/dist/models/UpdateCartRequest.d.ts +6 -0
- package/dist/models/UpdateCartRequest.js +2 -0
- package/dist/models/UpdateOrderRequest.d.ts +9 -3
- package/dist/models/UpdateOrderRequest.js +5 -3
- package/dist/models/UpdateOrderRequestBillingAddress.d.ts +0 -6
- package/dist/models/UpdateOrderRequestBillingAddress.js +0 -2
- package/dist/models/index.d.ts +2 -4
- package/dist/models/index.js +2 -4
- package/docs/AddressResource.md +0 -2
- package/docs/AdminOrderResource.md +2 -0
- package/docs/CartListResource.md +2 -0
- package/docs/CartResource.md +2 -0
- package/docs/OrderListResource.md +2 -0
- package/docs/StoreCartRequest.md +2 -0
- package/docs/StoreCartRequestShippingAddress.md +0 -2
- package/docs/{TransactionListResource.md → TransactionLiteResource.md} +4 -30
- package/docs/{TransactionListResourceArrayResponse.md → TransactionLiteResourceArrayResponse.md} +5 -5
- package/docs/TransactionResource.md +0 -8
- package/docs/TransactionsApi.md +3 -3
- package/docs/UpdateCartRequest.md +2 -0
- package/docs/UpdateOrderRequest.md +3 -1
- package/docs/UpdateOrderRequestBillingAddress.md +0 -2
- package/package.json +1 -1
- package/src/apis/TransactionsApi.ts +7 -7
- package/src/models/AddressFrontendResource.ts +3 -2
- package/src/models/AddressResource.ts +4 -15
- package/src/models/AdminOrderResource.ts +9 -0
- package/src/models/CartListResource.ts +9 -0
- package/src/models/CartResource.ts +9 -0
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/OrderListResource.ts +16 -0
- package/src/models/StoreCartRequest.ts +8 -0
- package/src/models/StoreCartRequestShippingAddress.ts +0 -8
- package/src/models/StoreFrontendResource.ts +3 -2
- package/src/models/StoreResource.ts +3 -2
- package/src/models/TransactionLiteResource.ts +128 -0
- package/src/models/TransactionLiteResourceArrayResponse.ts +73 -0
- package/src/models/TransactionResource.ts +0 -32
- package/src/models/UpdateCartRequest.ts +8 -0
- package/src/models/UpdateOrderRequest.ts +18 -10
- package/src/models/UpdateOrderRequestBillingAddress.ts +0 -8
- package/src/models/index.ts +2 -4
- package/dist/models/PaginatedTransactionListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedTransactionListResourceResponse.js +0 -57
- package/dist/models/TransactionListResource.d.ts +0 -152
- package/dist/models/TransactionListResource.js +0 -109
- package/dist/models/TransactionListResourceArrayResponse.d.ts +0 -33
- package/dist/models/TransactionListResourceArrayResponse.js +0 -50
- package/dist/models/UpdateOrderRequestShippingAddress.d.ts +0 -80
- package/dist/models/UpdateOrderRequestShippingAddress.js +0 -67
- package/docs/PaginatedTransactionListResourceResponse.md +0 -36
- package/docs/UpdateOrderRequestShippingAddress.md +0 -50
- package/src/models/PaginatedTransactionListResourceResponse.ts +0 -90
- package/src/models/TransactionListResource.ts +0 -235
- package/src/models/TransactionListResourceArrayResponse.ts +0 -73
- package/src/models/UpdateOrderRequestShippingAddress.ts +0 -130
|
@@ -1,235 +0,0 @@
|
|
|
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 TransactionListResource
|
|
20
|
-
*/
|
|
21
|
-
export interface TransactionListResource {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {number}
|
|
25
|
-
* @memberof TransactionListResource
|
|
26
|
-
*/
|
|
27
|
-
id?: number | null;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {number}
|
|
31
|
-
* @memberof TransactionListResource
|
|
32
|
-
*/
|
|
33
|
-
orderId?: number | null;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {number}
|
|
37
|
-
* @memberof TransactionListResource
|
|
38
|
-
*/
|
|
39
|
-
cartId?: number | null;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {number}
|
|
43
|
-
* @memberof TransactionListResource
|
|
44
|
-
*/
|
|
45
|
-
adminId?: number | null;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @type {string}
|
|
49
|
-
* @memberof TransactionListResource
|
|
50
|
-
*/
|
|
51
|
-
paymentSource: string;
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @type {string}
|
|
55
|
-
* @memberof TransactionListResource
|
|
56
|
-
*/
|
|
57
|
-
paymentMethod: string;
|
|
58
|
-
/**
|
|
59
|
-
*
|
|
60
|
-
* @type {string}
|
|
61
|
-
* @memberof TransactionListResource
|
|
62
|
-
*/
|
|
63
|
-
type: string;
|
|
64
|
-
/**
|
|
65
|
-
*
|
|
66
|
-
* @type {string}
|
|
67
|
-
* @memberof TransactionListResource
|
|
68
|
-
*/
|
|
69
|
-
status: string;
|
|
70
|
-
/**
|
|
71
|
-
*
|
|
72
|
-
* @type {number}
|
|
73
|
-
* @memberof TransactionListResource
|
|
74
|
-
*/
|
|
75
|
-
amount: number;
|
|
76
|
-
/**
|
|
77
|
-
*
|
|
78
|
-
* @type {number}
|
|
79
|
-
* @memberof TransactionListResource
|
|
80
|
-
*/
|
|
81
|
-
surcharge: number;
|
|
82
|
-
/**
|
|
83
|
-
*
|
|
84
|
-
* @type {number}
|
|
85
|
-
* @memberof TransactionListResource
|
|
86
|
-
*/
|
|
87
|
-
totalAmount: number;
|
|
88
|
-
/**
|
|
89
|
-
*
|
|
90
|
-
* @type {number}
|
|
91
|
-
* @memberof TransactionListResource
|
|
92
|
-
*/
|
|
93
|
-
refundedAmount: number;
|
|
94
|
-
/**
|
|
95
|
-
*
|
|
96
|
-
* @type {number}
|
|
97
|
-
* @memberof TransactionListResource
|
|
98
|
-
*/
|
|
99
|
-
unrefundedAmount: number;
|
|
100
|
-
/**
|
|
101
|
-
*
|
|
102
|
-
* @type {string}
|
|
103
|
-
* @memberof TransactionListResource
|
|
104
|
-
*/
|
|
105
|
-
reference: string;
|
|
106
|
-
/**
|
|
107
|
-
*
|
|
108
|
-
* @type {string}
|
|
109
|
-
* @memberof TransactionListResource
|
|
110
|
-
*/
|
|
111
|
-
description?: string | null;
|
|
112
|
-
/**
|
|
113
|
-
*
|
|
114
|
-
* @type {string}
|
|
115
|
-
* @memberof TransactionListResource
|
|
116
|
-
*/
|
|
117
|
-
extendedData?: string | null;
|
|
118
|
-
/**
|
|
119
|
-
*
|
|
120
|
-
* @type {string}
|
|
121
|
-
* @memberof TransactionListResource
|
|
122
|
-
*/
|
|
123
|
-
riskScore?: string | null;
|
|
124
|
-
/**
|
|
125
|
-
*
|
|
126
|
-
* @type {string}
|
|
127
|
-
* @memberof TransactionListResource
|
|
128
|
-
*/
|
|
129
|
-
fraudDecision?: string | null;
|
|
130
|
-
/**
|
|
131
|
-
*
|
|
132
|
-
* @type {number}
|
|
133
|
-
* @memberof TransactionListResource
|
|
134
|
-
*/
|
|
135
|
-
refundedTransactionId?: number | null;
|
|
136
|
-
/**
|
|
137
|
-
*
|
|
138
|
-
* @type {Date}
|
|
139
|
-
* @memberof TransactionListResource
|
|
140
|
-
*/
|
|
141
|
-
createdAt?: Date | null;
|
|
142
|
-
/**
|
|
143
|
-
*
|
|
144
|
-
* @type {Date}
|
|
145
|
-
* @memberof TransactionListResource
|
|
146
|
-
*/
|
|
147
|
-
updatedAt?: Date | null;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* Check if a given object implements the TransactionListResource interface.
|
|
152
|
-
*/
|
|
153
|
-
export function instanceOfTransactionListResource(value: object): value is TransactionListResource {
|
|
154
|
-
if (!('paymentSource' in value) || value['paymentSource'] === undefined) return false;
|
|
155
|
-
if (!('paymentMethod' in value) || value['paymentMethod'] === undefined) return false;
|
|
156
|
-
if (!('type' in value) || value['type'] === undefined) return false;
|
|
157
|
-
if (!('status' in value) || value['status'] === undefined) return false;
|
|
158
|
-
if (!('amount' in value) || value['amount'] === undefined) return false;
|
|
159
|
-
if (!('surcharge' in value) || value['surcharge'] === undefined) return false;
|
|
160
|
-
if (!('totalAmount' in value) || value['totalAmount'] === undefined) return false;
|
|
161
|
-
if (!('refundedAmount' in value) || value['refundedAmount'] === undefined) return false;
|
|
162
|
-
if (!('unrefundedAmount' in value) || value['unrefundedAmount'] === undefined) return false;
|
|
163
|
-
if (!('reference' in value) || value['reference'] === undefined) return false;
|
|
164
|
-
return true;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
export function TransactionListResourceFromJSON(json: any): TransactionListResource {
|
|
168
|
-
return TransactionListResourceFromJSONTyped(json, false);
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
export function TransactionListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionListResource {
|
|
172
|
-
if (json == null) {
|
|
173
|
-
return json;
|
|
174
|
-
}
|
|
175
|
-
return {
|
|
176
|
-
|
|
177
|
-
'id': json['id'] == null ? undefined : json['id'],
|
|
178
|
-
'orderId': json['order_id'] == null ? undefined : json['order_id'],
|
|
179
|
-
'cartId': json['cart_id'] == null ? undefined : json['cart_id'],
|
|
180
|
-
'adminId': json['admin_id'] == null ? undefined : json['admin_id'],
|
|
181
|
-
'paymentSource': json['payment_source'],
|
|
182
|
-
'paymentMethod': json['payment_method'],
|
|
183
|
-
'type': json['type'],
|
|
184
|
-
'status': json['status'],
|
|
185
|
-
'amount': json['amount'],
|
|
186
|
-
'surcharge': json['surcharge'],
|
|
187
|
-
'totalAmount': json['total_amount'],
|
|
188
|
-
'refundedAmount': json['refunded_amount'],
|
|
189
|
-
'unrefundedAmount': json['unrefunded_amount'],
|
|
190
|
-
'reference': json['reference'],
|
|
191
|
-
'description': json['description'] == null ? undefined : json['description'],
|
|
192
|
-
'extendedData': json['extended_data'] == null ? undefined : json['extended_data'],
|
|
193
|
-
'riskScore': json['risk_score'] == null ? undefined : json['risk_score'],
|
|
194
|
-
'fraudDecision': json['fraud_decision'] == null ? undefined : json['fraud_decision'],
|
|
195
|
-
'refundedTransactionId': json['refunded_transaction_id'] == null ? undefined : json['refunded_transaction_id'],
|
|
196
|
-
'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
|
|
197
|
-
'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
|
|
198
|
-
};
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
export function TransactionListResourceToJSON(json: any): TransactionListResource {
|
|
202
|
-
return TransactionListResourceToJSONTyped(json, false);
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
export function TransactionListResourceToJSONTyped(value?: TransactionListResource | null, ignoreDiscriminator: boolean = false): any {
|
|
206
|
-
if (value == null) {
|
|
207
|
-
return value;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
return {
|
|
211
|
-
|
|
212
|
-
'id': value['id'],
|
|
213
|
-
'order_id': value['orderId'],
|
|
214
|
-
'cart_id': value['cartId'],
|
|
215
|
-
'admin_id': value['adminId'],
|
|
216
|
-
'payment_source': value['paymentSource'],
|
|
217
|
-
'payment_method': value['paymentMethod'],
|
|
218
|
-
'type': value['type'],
|
|
219
|
-
'status': value['status'],
|
|
220
|
-
'amount': value['amount'],
|
|
221
|
-
'surcharge': value['surcharge'],
|
|
222
|
-
'total_amount': value['totalAmount'],
|
|
223
|
-
'refunded_amount': value['refundedAmount'],
|
|
224
|
-
'unrefunded_amount': value['unrefundedAmount'],
|
|
225
|
-
'reference': value['reference'],
|
|
226
|
-
'description': value['description'],
|
|
227
|
-
'extended_data': value['extendedData'],
|
|
228
|
-
'risk_score': value['riskScore'],
|
|
229
|
-
'fraud_decision': value['fraudDecision'],
|
|
230
|
-
'refunded_transaction_id': value['refundedTransactionId'],
|
|
231
|
-
'created_at': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
|
|
232
|
-
'updated_at': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
|
|
233
|
-
};
|
|
234
|
-
}
|
|
235
|
-
|
|
@@ -1,73 +0,0 @@
|
|
|
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 { TransactionListResource } from './TransactionListResource';
|
|
17
|
-
import {
|
|
18
|
-
TransactionListResourceFromJSON,
|
|
19
|
-
TransactionListResourceFromJSONTyped,
|
|
20
|
-
TransactionListResourceToJSON,
|
|
21
|
-
TransactionListResourceToJSONTyped,
|
|
22
|
-
} from './TransactionListResource';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface TransactionListResourceArrayResponse
|
|
28
|
-
*/
|
|
29
|
-
export interface TransactionListResourceArrayResponse {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {Array<TransactionListResource>}
|
|
33
|
-
* @memberof TransactionListResourceArrayResponse
|
|
34
|
-
*/
|
|
35
|
-
data?: Array<TransactionListResource>;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Check if a given object implements the TransactionListResourceArrayResponse interface.
|
|
40
|
-
*/
|
|
41
|
-
export function instanceOfTransactionListResourceArrayResponse(value: object): value is TransactionListResourceArrayResponse {
|
|
42
|
-
return true;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function TransactionListResourceArrayResponseFromJSON(json: any): TransactionListResourceArrayResponse {
|
|
46
|
-
return TransactionListResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function TransactionListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionListResourceArrayResponse {
|
|
50
|
-
if (json == null) {
|
|
51
|
-
return json;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
|
|
55
|
-
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(TransactionListResourceFromJSON)),
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function TransactionListResourceArrayResponseToJSON(json: any): TransactionListResourceArrayResponse {
|
|
60
|
-
return TransactionListResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function TransactionListResourceArrayResponseToJSONTyped(value?: TransactionListResourceArrayResponse | 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(TransactionListResourceToJSON)),
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
|
|
@@ -1,130 +0,0 @@
|
|
|
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 UpdateOrderRequestShippingAddress
|
|
20
|
-
*/
|
|
21
|
-
export interface UpdateOrderRequestShippingAddress {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof UpdateOrderRequestShippingAddress
|
|
26
|
-
*/
|
|
27
|
-
addresseeName: string;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof UpdateOrderRequestShippingAddress
|
|
32
|
-
*/
|
|
33
|
-
addressee?: string | null;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof UpdateOrderRequestShippingAddress
|
|
38
|
-
*/
|
|
39
|
-
company?: string | null;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof UpdateOrderRequestShippingAddress
|
|
44
|
-
*/
|
|
45
|
-
line1?: string | null;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @type {string}
|
|
49
|
-
* @memberof UpdateOrderRequestShippingAddress
|
|
50
|
-
*/
|
|
51
|
-
line2?: string | null;
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @type {string}
|
|
55
|
-
* @memberof UpdateOrderRequestShippingAddress
|
|
56
|
-
*/
|
|
57
|
-
suburb?: string | null;
|
|
58
|
-
/**
|
|
59
|
-
*
|
|
60
|
-
* @type {string}
|
|
61
|
-
* @memberof UpdateOrderRequestShippingAddress
|
|
62
|
-
*/
|
|
63
|
-
state?: string | null;
|
|
64
|
-
/**
|
|
65
|
-
*
|
|
66
|
-
* @type {string}
|
|
67
|
-
* @memberof UpdateOrderRequestShippingAddress
|
|
68
|
-
*/
|
|
69
|
-
postcode?: string | null;
|
|
70
|
-
/**
|
|
71
|
-
*
|
|
72
|
-
* @type {string}
|
|
73
|
-
* @memberof UpdateOrderRequestShippingAddress
|
|
74
|
-
*/
|
|
75
|
-
country?: string | null;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* Check if a given object implements the UpdateOrderRequestShippingAddress interface.
|
|
80
|
-
*/
|
|
81
|
-
export function instanceOfUpdateOrderRequestShippingAddress(value: object): value is UpdateOrderRequestShippingAddress {
|
|
82
|
-
if (!('addresseeName' in value) || value['addresseeName'] === undefined) return false;
|
|
83
|
-
return true;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export function UpdateOrderRequestShippingAddressFromJSON(json: any): UpdateOrderRequestShippingAddress {
|
|
87
|
-
return UpdateOrderRequestShippingAddressFromJSONTyped(json, false);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
export function UpdateOrderRequestShippingAddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateOrderRequestShippingAddress {
|
|
91
|
-
if (json == null) {
|
|
92
|
-
return json;
|
|
93
|
-
}
|
|
94
|
-
return {
|
|
95
|
-
|
|
96
|
-
'addresseeName': json['addressee_name'],
|
|
97
|
-
'addressee': json['addressee'] == null ? undefined : json['addressee'],
|
|
98
|
-
'company': json['company'] == null ? undefined : json['company'],
|
|
99
|
-
'line1': json['line_1'] == null ? undefined : json['line_1'],
|
|
100
|
-
'line2': json['line_2'] == null ? undefined : json['line_2'],
|
|
101
|
-
'suburb': json['suburb'] == null ? undefined : json['suburb'],
|
|
102
|
-
'state': json['state'] == null ? undefined : json['state'],
|
|
103
|
-
'postcode': json['postcode'] == null ? undefined : json['postcode'],
|
|
104
|
-
'country': json['country'] == null ? undefined : json['country'],
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
export function UpdateOrderRequestShippingAddressToJSON(json: any): UpdateOrderRequestShippingAddress {
|
|
109
|
-
return UpdateOrderRequestShippingAddressToJSONTyped(json, false);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
export function UpdateOrderRequestShippingAddressToJSONTyped(value?: UpdateOrderRequestShippingAddress | null, ignoreDiscriminator: boolean = false): any {
|
|
113
|
-
if (value == null) {
|
|
114
|
-
return value;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
return {
|
|
118
|
-
|
|
119
|
-
'addressee_name': value['addresseeName'],
|
|
120
|
-
'addressee': value['addressee'],
|
|
121
|
-
'company': value['company'],
|
|
122
|
-
'line_1': value['line1'],
|
|
123
|
-
'line_2': value['line2'],
|
|
124
|
-
'suburb': value['suburb'],
|
|
125
|
-
'state': value['state'],
|
|
126
|
-
'postcode': value['postcode'],
|
|
127
|
-
'country': value['country'],
|
|
128
|
-
};
|
|
129
|
-
}
|
|
130
|
-
|