@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
|
@@ -0,0 +1,128 @@
|
|
|
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 TransactionLiteResource
|
|
20
|
+
*/
|
|
21
|
+
export interface TransactionLiteResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof TransactionLiteResource
|
|
26
|
+
*/
|
|
27
|
+
paymentMethod: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof TransactionLiteResource
|
|
32
|
+
*/
|
|
33
|
+
type: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof TransactionLiteResource
|
|
38
|
+
*/
|
|
39
|
+
status: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof TransactionLiteResource
|
|
44
|
+
*/
|
|
45
|
+
amount: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof TransactionLiteResource
|
|
50
|
+
*/
|
|
51
|
+
surcharge: number;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof TransactionLiteResource
|
|
56
|
+
*/
|
|
57
|
+
totalAmount: number;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof TransactionLiteResource
|
|
62
|
+
*/
|
|
63
|
+
reference: string;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {Date}
|
|
67
|
+
* @memberof TransactionLiteResource
|
|
68
|
+
*/
|
|
69
|
+
createdAt?: Date | null;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Check if a given object implements the TransactionLiteResource interface.
|
|
74
|
+
*/
|
|
75
|
+
export function instanceOfTransactionLiteResource(value: object): value is TransactionLiteResource {
|
|
76
|
+
if (!('paymentMethod' in value) || value['paymentMethod'] === undefined) return false;
|
|
77
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
78
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
79
|
+
if (!('amount' in value) || value['amount'] === undefined) return false;
|
|
80
|
+
if (!('surcharge' in value) || value['surcharge'] === undefined) return false;
|
|
81
|
+
if (!('totalAmount' in value) || value['totalAmount'] === undefined) return false;
|
|
82
|
+
if (!('reference' in value) || value['reference'] === undefined) return false;
|
|
83
|
+
return true;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function TransactionLiteResourceFromJSON(json: any): TransactionLiteResource {
|
|
87
|
+
return TransactionLiteResourceFromJSONTyped(json, false);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function TransactionLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionLiteResource {
|
|
91
|
+
if (json == null) {
|
|
92
|
+
return json;
|
|
93
|
+
}
|
|
94
|
+
return {
|
|
95
|
+
|
|
96
|
+
'paymentMethod': json['payment_method'],
|
|
97
|
+
'type': json['type'],
|
|
98
|
+
'status': json['status'],
|
|
99
|
+
'amount': json['amount'],
|
|
100
|
+
'surcharge': json['surcharge'],
|
|
101
|
+
'totalAmount': json['total_amount'],
|
|
102
|
+
'reference': json['reference'],
|
|
103
|
+
'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export function TransactionLiteResourceToJSON(json: any): TransactionLiteResource {
|
|
108
|
+
return TransactionLiteResourceToJSONTyped(json, false);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export function TransactionLiteResourceToJSONTyped(value?: TransactionLiteResource | null, ignoreDiscriminator: boolean = false): any {
|
|
112
|
+
if (value == null) {
|
|
113
|
+
return value;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
return {
|
|
117
|
+
|
|
118
|
+
'payment_method': value['paymentMethod'],
|
|
119
|
+
'type': value['type'],
|
|
120
|
+
'status': value['status'],
|
|
121
|
+
'amount': value['amount'],
|
|
122
|
+
'surcharge': value['surcharge'],
|
|
123
|
+
'total_amount': value['totalAmount'],
|
|
124
|
+
'reference': value['reference'],
|
|
125
|
+
'created_at': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
|
|
@@ -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 { TransactionLiteResource } from './TransactionLiteResource';
|
|
17
|
+
import {
|
|
18
|
+
TransactionLiteResourceFromJSON,
|
|
19
|
+
TransactionLiteResourceFromJSONTyped,
|
|
20
|
+
TransactionLiteResourceToJSON,
|
|
21
|
+
TransactionLiteResourceToJSONTyped,
|
|
22
|
+
} from './TransactionLiteResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface TransactionLiteResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface TransactionLiteResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<TransactionLiteResource>}
|
|
33
|
+
* @memberof TransactionLiteResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<TransactionLiteResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the TransactionLiteResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfTransactionLiteResourceArrayResponse(value: object): value is TransactionLiteResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function TransactionLiteResourceArrayResponseFromJSON(json: any): TransactionLiteResourceArrayResponse {
|
|
46
|
+
return TransactionLiteResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function TransactionLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionLiteResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(TransactionLiteResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function TransactionLiteResourceArrayResponseToJSON(json: any): TransactionLiteResourceArrayResponse {
|
|
60
|
+
return TransactionLiteResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function TransactionLiteResourceArrayResponseToJSONTyped(value?: TransactionLiteResourceArrayResponse | 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(TransactionLiteResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -25,24 +25,6 @@ export interface TransactionResource {
|
|
|
25
25
|
* @memberof TransactionResource
|
|
26
26
|
*/
|
|
27
27
|
id?: number | null;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {number}
|
|
31
|
-
* @memberof TransactionResource
|
|
32
|
-
*/
|
|
33
|
-
orderId?: number | null;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {number}
|
|
37
|
-
* @memberof TransactionResource
|
|
38
|
-
*/
|
|
39
|
-
cartId?: number | null;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {number}
|
|
43
|
-
* @memberof TransactionResource
|
|
44
|
-
*/
|
|
45
|
-
adminId?: number | null;
|
|
46
28
|
/**
|
|
47
29
|
*
|
|
48
30
|
* @type {string}
|
|
@@ -139,12 +121,6 @@ export interface TransactionResource {
|
|
|
139
121
|
* @memberof TransactionResource
|
|
140
122
|
*/
|
|
141
123
|
createdAt?: Date | null;
|
|
142
|
-
/**
|
|
143
|
-
*
|
|
144
|
-
* @type {Date}
|
|
145
|
-
* @memberof TransactionResource
|
|
146
|
-
*/
|
|
147
|
-
updatedAt?: Date | null;
|
|
148
124
|
}
|
|
149
125
|
|
|
150
126
|
/**
|
|
@@ -175,9 +151,6 @@ export function TransactionResourceFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
175
151
|
return {
|
|
176
152
|
|
|
177
153
|
'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
154
|
'paymentSource': json['payment_source'],
|
|
182
155
|
'paymentMethod': json['payment_method'],
|
|
183
156
|
'type': json['type'],
|
|
@@ -194,7 +167,6 @@ export function TransactionResourceFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
194
167
|
'fraudDecision': json['fraud_decision'] == null ? undefined : json['fraud_decision'],
|
|
195
168
|
'refundedTransactionId': json['refunded_transaction_id'] == null ? undefined : json['refunded_transaction_id'],
|
|
196
169
|
'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
|
|
197
|
-
'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
|
|
198
170
|
};
|
|
199
171
|
}
|
|
200
172
|
|
|
@@ -210,9 +182,6 @@ export function TransactionResourceToJSONTyped(value?: TransactionResource | nul
|
|
|
210
182
|
return {
|
|
211
183
|
|
|
212
184
|
'id': value['id'],
|
|
213
|
-
'order_id': value['orderId'],
|
|
214
|
-
'cart_id': value['cartId'],
|
|
215
|
-
'admin_id': value['adminId'],
|
|
216
185
|
'payment_source': value['paymentSource'],
|
|
217
186
|
'payment_method': value['paymentMethod'],
|
|
218
187
|
'type': value['type'],
|
|
@@ -229,7 +198,6 @@ export function TransactionResourceToJSONTyped(value?: TransactionResource | nul
|
|
|
229
198
|
'fraud_decision': value['fraudDecision'],
|
|
230
199
|
'refunded_transaction_id': value['refundedTransactionId'],
|
|
231
200
|
'created_at': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
|
|
232
|
-
'updated_at': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
|
|
233
201
|
};
|
|
234
202
|
}
|
|
235
203
|
|
|
@@ -82,6 +82,12 @@ export interface UpdateCartRequest {
|
|
|
82
82
|
* @memberof UpdateCartRequest
|
|
83
83
|
*/
|
|
84
84
|
insuranceAmount?: number | null;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {boolean}
|
|
88
|
+
* @memberof UpdateCartRequest
|
|
89
|
+
*/
|
|
90
|
+
includeInsurance?: boolean;
|
|
85
91
|
/**
|
|
86
92
|
*
|
|
87
93
|
* @type {boolean}
|
|
@@ -172,6 +178,7 @@ export function UpdateCartRequestFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
172
178
|
'shippingSubtotal': json['shipping_subtotal'] == null ? undefined : json['shipping_subtotal'],
|
|
173
179
|
'overrideShipping': json['override_shipping'] == null ? undefined : json['override_shipping'],
|
|
174
180
|
'insuranceAmount': json['insurance_amount'] == null ? undefined : json['insurance_amount'],
|
|
181
|
+
'includeInsurance': json['include_insurance'] == null ? undefined : json['include_insurance'],
|
|
175
182
|
'overrideInsurance': json['override_insurance'] == null ? undefined : json['override_insurance'],
|
|
176
183
|
'useAsBillingAddress': json['use_as_billing_address'] == null ? undefined : json['use_as_billing_address'],
|
|
177
184
|
'shippingAddressId': json['shipping_address_id'] == null ? undefined : json['shipping_address_id'],
|
|
@@ -200,6 +207,7 @@ export function UpdateCartRequestToJSONTyped(value?: UpdateCartRequest | null, i
|
|
|
200
207
|
'shipping_subtotal': value['shippingSubtotal'],
|
|
201
208
|
'override_shipping': value['overrideShipping'],
|
|
202
209
|
'insurance_amount': value['insuranceAmount'],
|
|
210
|
+
'include_insurance': value['includeInsurance'],
|
|
203
211
|
'override_insurance': value['overrideInsurance'],
|
|
204
212
|
'use_as_billing_address': value['useAsBillingAddress'],
|
|
205
213
|
'shipping_address_id': value['shippingAddressId'],
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type {
|
|
16
|
+
import type { StoreCartRequestShippingAddress } from './StoreCartRequestShippingAddress';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from './
|
|
18
|
+
StoreCartRequestShippingAddressFromJSON,
|
|
19
|
+
StoreCartRequestShippingAddressFromJSONTyped,
|
|
20
|
+
StoreCartRequestShippingAddressToJSON,
|
|
21
|
+
StoreCartRequestShippingAddressToJSONTyped,
|
|
22
|
+
} from './StoreCartRequestShippingAddress';
|
|
23
23
|
import type { UpdateOrderRequestBillingAddress } from './UpdateOrderRequestBillingAddress';
|
|
24
24
|
import {
|
|
25
25
|
UpdateOrderRequestBillingAddressFromJSON,
|
|
@@ -76,6 +76,12 @@ export interface UpdateOrderRequest {
|
|
|
76
76
|
* @memberof UpdateOrderRequest
|
|
77
77
|
*/
|
|
78
78
|
insuranceAmount?: number | null;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {boolean}
|
|
82
|
+
* @memberof UpdateOrderRequest
|
|
83
|
+
*/
|
|
84
|
+
includeInsurance?: boolean;
|
|
79
85
|
/**
|
|
80
86
|
*
|
|
81
87
|
* @type {boolean}
|
|
@@ -84,10 +90,10 @@ export interface UpdateOrderRequest {
|
|
|
84
90
|
overrideInsurance?: boolean;
|
|
85
91
|
/**
|
|
86
92
|
*
|
|
87
|
-
* @type {
|
|
93
|
+
* @type {StoreCartRequestShippingAddress}
|
|
88
94
|
* @memberof UpdateOrderRequest
|
|
89
95
|
*/
|
|
90
|
-
shippingAddress?:
|
|
96
|
+
shippingAddress?: StoreCartRequestShippingAddress;
|
|
91
97
|
/**
|
|
92
98
|
*
|
|
93
99
|
* @type {UpdateOrderRequestBillingAddress}
|
|
@@ -151,8 +157,9 @@ export function UpdateOrderRequestFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
151
157
|
'shippingSubtotal': json['shipping_subtotal'] == null ? undefined : json['shipping_subtotal'],
|
|
152
158
|
'overrideShipping': json['override_shipping'] == null ? undefined : json['override_shipping'],
|
|
153
159
|
'insuranceAmount': json['insurance_amount'] == null ? undefined : json['insurance_amount'],
|
|
160
|
+
'includeInsurance': json['include_insurance'] == null ? undefined : json['include_insurance'],
|
|
154
161
|
'overrideInsurance': json['override_insurance'] == null ? undefined : json['override_insurance'],
|
|
155
|
-
'shippingAddress': json['shipping_address'] == null ? undefined :
|
|
162
|
+
'shippingAddress': json['shipping_address'] == null ? undefined : StoreCartRequestShippingAddressFromJSON(json['shipping_address']),
|
|
156
163
|
'billingAddress': UpdateOrderRequestBillingAddressFromJSON(json['billing_address']),
|
|
157
164
|
};
|
|
158
165
|
}
|
|
@@ -175,8 +182,9 @@ export function UpdateOrderRequestToJSONTyped(value?: UpdateOrderRequest | null,
|
|
|
175
182
|
'shipping_subtotal': value['shippingSubtotal'],
|
|
176
183
|
'override_shipping': value['overrideShipping'],
|
|
177
184
|
'insurance_amount': value['insuranceAmount'],
|
|
185
|
+
'include_insurance': value['includeInsurance'],
|
|
178
186
|
'override_insurance': value['overrideInsurance'],
|
|
179
|
-
'shipping_address':
|
|
187
|
+
'shipping_address': StoreCartRequestShippingAddressToJSON(value['shippingAddress']),
|
|
180
188
|
'billing_address': UpdateOrderRequestBillingAddressToJSON(value['billingAddress']),
|
|
181
189
|
};
|
|
182
190
|
}
|
|
@@ -25,12 +25,6 @@ export interface UpdateOrderRequestBillingAddress {
|
|
|
25
25
|
* @memberof UpdateOrderRequestBillingAddress
|
|
26
26
|
*/
|
|
27
27
|
addresseeName: string;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof UpdateOrderRequestBillingAddress
|
|
32
|
-
*/
|
|
33
|
-
addressee?: string | null;
|
|
34
28
|
/**
|
|
35
29
|
*
|
|
36
30
|
* @type {string}
|
|
@@ -94,7 +88,6 @@ export function UpdateOrderRequestBillingAddressFromJSONTyped(json: any, ignoreD
|
|
|
94
88
|
return {
|
|
95
89
|
|
|
96
90
|
'addresseeName': json['addressee_name'],
|
|
97
|
-
'addressee': json['addressee'] == null ? undefined : json['addressee'],
|
|
98
91
|
'company': json['company'] == null ? undefined : json['company'],
|
|
99
92
|
'line1': json['line_1'] == null ? undefined : json['line_1'],
|
|
100
93
|
'line2': json['line_2'] == null ? undefined : json['line_2'],
|
|
@@ -117,7 +110,6 @@ export function UpdateOrderRequestBillingAddressToJSONTyped(value?: UpdateOrderR
|
|
|
117
110
|
return {
|
|
118
111
|
|
|
119
112
|
'addressee_name': value['addresseeName'],
|
|
120
|
-
'addressee': value['addressee'],
|
|
121
113
|
'company': value['company'],
|
|
122
114
|
'line_1': value['line1'],
|
|
123
115
|
'line_2': value['line2'],
|
package/src/models/index.ts
CHANGED
|
@@ -268,7 +268,6 @@ export * from './PaginatedSupplierResourceResponse';
|
|
|
268
268
|
export * from './PaginatedTagListResourceResponse';
|
|
269
269
|
export * from './PaginatedTagLiteResourceResponse';
|
|
270
270
|
export * from './PaginatedTagResourceResponse';
|
|
271
|
-
export * from './PaginatedTransactionListResourceResponse';
|
|
272
271
|
export * from './PaginatedTransactionResourceResponse';
|
|
273
272
|
export * from './PagingMetadata';
|
|
274
273
|
export * from './PaymentMethod';
|
|
@@ -462,8 +461,8 @@ export * from './TagLiteResourceArrayResponse';
|
|
|
462
461
|
export * from './TagResource';
|
|
463
462
|
export * from './TagResourceArrayResponse';
|
|
464
463
|
export * from './TagType';
|
|
465
|
-
export * from './
|
|
466
|
-
export * from './
|
|
464
|
+
export * from './TransactionLiteResource';
|
|
465
|
+
export * from './TransactionLiteResourceArrayResponse';
|
|
467
466
|
export * from './TransactionResource';
|
|
468
467
|
export * from './TransactionResourceArrayResponse';
|
|
469
468
|
export * from './TransactionType';
|
|
@@ -485,7 +484,6 @@ export * from './UpdateMenuRequestMenuItemOrderInner';
|
|
|
485
484
|
export * from './UpdateModelAttributeRequest';
|
|
486
485
|
export * from './UpdateOrderRequest';
|
|
487
486
|
export * from './UpdateOrderRequestBillingAddress';
|
|
488
|
-
export * from './UpdateOrderRequestShippingAddress';
|
|
489
487
|
export * from './UpdateOverlayTemplateAssetRequest';
|
|
490
488
|
export * from './UpdateOverlayTemplateRequest';
|
|
491
489
|
export * from './UpdateProductCategoryRequest';
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* My API
|
|
3
|
-
* API documentation for my Laravel app
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { PagingMetadata } from './PagingMetadata';
|
|
13
|
-
import type { TransactionListResource } from './TransactionListResource';
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @export
|
|
17
|
-
* @interface PaginatedTransactionListResourceResponse
|
|
18
|
-
*/
|
|
19
|
-
export interface PaginatedTransactionListResourceResponse {
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @type {Array<TransactionListResource>}
|
|
23
|
-
* @memberof PaginatedTransactionListResourceResponse
|
|
24
|
-
*/
|
|
25
|
-
data: Array<TransactionListResource>;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @type {PagingMetadata}
|
|
29
|
-
* @memberof PaginatedTransactionListResourceResponse
|
|
30
|
-
*/
|
|
31
|
-
meta: PagingMetadata;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Check if a given object implements the PaginatedTransactionListResourceResponse interface.
|
|
35
|
-
*/
|
|
36
|
-
export declare function instanceOfPaginatedTransactionListResourceResponse(value: object): value is PaginatedTransactionListResourceResponse;
|
|
37
|
-
export declare function PaginatedTransactionListResourceResponseFromJSON(json: any): PaginatedTransactionListResourceResponse;
|
|
38
|
-
export declare function PaginatedTransactionListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedTransactionListResourceResponse;
|
|
39
|
-
export declare function PaginatedTransactionListResourceResponseToJSON(json: any): PaginatedTransactionListResourceResponse;
|
|
40
|
-
export declare function PaginatedTransactionListResourceResponseToJSONTyped(value?: PaginatedTransactionListResourceResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* My API
|
|
6
|
-
* API documentation for my Laravel app
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.instanceOfPaginatedTransactionListResourceResponse = instanceOfPaginatedTransactionListResourceResponse;
|
|
17
|
-
exports.PaginatedTransactionListResourceResponseFromJSON = PaginatedTransactionListResourceResponseFromJSON;
|
|
18
|
-
exports.PaginatedTransactionListResourceResponseFromJSONTyped = PaginatedTransactionListResourceResponseFromJSONTyped;
|
|
19
|
-
exports.PaginatedTransactionListResourceResponseToJSON = PaginatedTransactionListResourceResponseToJSON;
|
|
20
|
-
exports.PaginatedTransactionListResourceResponseToJSONTyped = PaginatedTransactionListResourceResponseToJSONTyped;
|
|
21
|
-
var PagingMetadata_1 = require("./PagingMetadata");
|
|
22
|
-
var TransactionListResource_1 = require("./TransactionListResource");
|
|
23
|
-
/**
|
|
24
|
-
* Check if a given object implements the PaginatedTransactionListResourceResponse interface.
|
|
25
|
-
*/
|
|
26
|
-
function instanceOfPaginatedTransactionListResourceResponse(value) {
|
|
27
|
-
if (!('data' in value) || value['data'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
if (!('meta' in value) || value['meta'] === undefined)
|
|
30
|
-
return false;
|
|
31
|
-
return true;
|
|
32
|
-
}
|
|
33
|
-
function PaginatedTransactionListResourceResponseFromJSON(json) {
|
|
34
|
-
return PaginatedTransactionListResourceResponseFromJSONTyped(json, false);
|
|
35
|
-
}
|
|
36
|
-
function PaginatedTransactionListResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
-
if (json == null) {
|
|
38
|
-
return json;
|
|
39
|
-
}
|
|
40
|
-
return {
|
|
41
|
-
'data': (json['data'].map(TransactionListResource_1.TransactionListResourceFromJSON)),
|
|
42
|
-
'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
function PaginatedTransactionListResourceResponseToJSON(json) {
|
|
46
|
-
return PaginatedTransactionListResourceResponseToJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
function PaginatedTransactionListResourceResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
50
|
-
if (value == null) {
|
|
51
|
-
return value;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
'data': (value['data'].map(TransactionListResource_1.TransactionListResourceToJSON)),
|
|
55
|
-
'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
|
|
56
|
-
};
|
|
57
|
-
}
|
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* My API
|
|
3
|
-
* API documentation for my Laravel app
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface TransactionListResource
|
|
16
|
-
*/
|
|
17
|
-
export interface TransactionListResource {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof TransactionListResource
|
|
22
|
-
*/
|
|
23
|
-
id?: number | null;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {number}
|
|
27
|
-
* @memberof TransactionListResource
|
|
28
|
-
*/
|
|
29
|
-
orderId?: number | null;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {number}
|
|
33
|
-
* @memberof TransactionListResource
|
|
34
|
-
*/
|
|
35
|
-
cartId?: number | null;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {number}
|
|
39
|
-
* @memberof TransactionListResource
|
|
40
|
-
*/
|
|
41
|
-
adminId?: number | null;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof TransactionListResource
|
|
46
|
-
*/
|
|
47
|
-
paymentSource: string;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {string}
|
|
51
|
-
* @memberof TransactionListResource
|
|
52
|
-
*/
|
|
53
|
-
paymentMethod: string;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {string}
|
|
57
|
-
* @memberof TransactionListResource
|
|
58
|
-
*/
|
|
59
|
-
type: string;
|
|
60
|
-
/**
|
|
61
|
-
*
|
|
62
|
-
* @type {string}
|
|
63
|
-
* @memberof TransactionListResource
|
|
64
|
-
*/
|
|
65
|
-
status: string;
|
|
66
|
-
/**
|
|
67
|
-
*
|
|
68
|
-
* @type {number}
|
|
69
|
-
* @memberof TransactionListResource
|
|
70
|
-
*/
|
|
71
|
-
amount: number;
|
|
72
|
-
/**
|
|
73
|
-
*
|
|
74
|
-
* @type {number}
|
|
75
|
-
* @memberof TransactionListResource
|
|
76
|
-
*/
|
|
77
|
-
surcharge: number;
|
|
78
|
-
/**
|
|
79
|
-
*
|
|
80
|
-
* @type {number}
|
|
81
|
-
* @memberof TransactionListResource
|
|
82
|
-
*/
|
|
83
|
-
totalAmount: number;
|
|
84
|
-
/**
|
|
85
|
-
*
|
|
86
|
-
* @type {number}
|
|
87
|
-
* @memberof TransactionListResource
|
|
88
|
-
*/
|
|
89
|
-
refundedAmount: number;
|
|
90
|
-
/**
|
|
91
|
-
*
|
|
92
|
-
* @type {number}
|
|
93
|
-
* @memberof TransactionListResource
|
|
94
|
-
*/
|
|
95
|
-
unrefundedAmount: number;
|
|
96
|
-
/**
|
|
97
|
-
*
|
|
98
|
-
* @type {string}
|
|
99
|
-
* @memberof TransactionListResource
|
|
100
|
-
*/
|
|
101
|
-
reference: string;
|
|
102
|
-
/**
|
|
103
|
-
*
|
|
104
|
-
* @type {string}
|
|
105
|
-
* @memberof TransactionListResource
|
|
106
|
-
*/
|
|
107
|
-
description?: string | null;
|
|
108
|
-
/**
|
|
109
|
-
*
|
|
110
|
-
* @type {string}
|
|
111
|
-
* @memberof TransactionListResource
|
|
112
|
-
*/
|
|
113
|
-
extendedData?: string | null;
|
|
114
|
-
/**
|
|
115
|
-
*
|
|
116
|
-
* @type {string}
|
|
117
|
-
* @memberof TransactionListResource
|
|
118
|
-
*/
|
|
119
|
-
riskScore?: string | null;
|
|
120
|
-
/**
|
|
121
|
-
*
|
|
122
|
-
* @type {string}
|
|
123
|
-
* @memberof TransactionListResource
|
|
124
|
-
*/
|
|
125
|
-
fraudDecision?: string | null;
|
|
126
|
-
/**
|
|
127
|
-
*
|
|
128
|
-
* @type {number}
|
|
129
|
-
* @memberof TransactionListResource
|
|
130
|
-
*/
|
|
131
|
-
refundedTransactionId?: number | null;
|
|
132
|
-
/**
|
|
133
|
-
*
|
|
134
|
-
* @type {Date}
|
|
135
|
-
* @memberof TransactionListResource
|
|
136
|
-
*/
|
|
137
|
-
createdAt?: Date | null;
|
|
138
|
-
/**
|
|
139
|
-
*
|
|
140
|
-
* @type {Date}
|
|
141
|
-
* @memberof TransactionListResource
|
|
142
|
-
*/
|
|
143
|
-
updatedAt?: Date | null;
|
|
144
|
-
}
|
|
145
|
-
/**
|
|
146
|
-
* Check if a given object implements the TransactionListResource interface.
|
|
147
|
-
*/
|
|
148
|
-
export declare function instanceOfTransactionListResource(value: object): value is TransactionListResource;
|
|
149
|
-
export declare function TransactionListResourceFromJSON(json: any): TransactionListResource;
|
|
150
|
-
export declare function TransactionListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionListResource;
|
|
151
|
-
export declare function TransactionListResourceToJSON(json: any): TransactionListResource;
|
|
152
|
-
export declare function TransactionListResourceToJSONTyped(value?: TransactionListResource | null, ignoreDiscriminator?: boolean): any;
|