@digital8/lighting-illusions-ts-sdk 0.0.1953 → 0.0.1954
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/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/StoreListResource.d.ts +2 -2
- package/dist/models/StoreListResource.js +2 -6
- 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/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/StoreListResource.ts +4 -6
- 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,77 @@
|
|
|
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.instanceOfTransactionLiteResource = instanceOfTransactionLiteResource;
|
|
17
|
+
exports.TransactionLiteResourceFromJSON = TransactionLiteResourceFromJSON;
|
|
18
|
+
exports.TransactionLiteResourceFromJSONTyped = TransactionLiteResourceFromJSONTyped;
|
|
19
|
+
exports.TransactionLiteResourceToJSON = TransactionLiteResourceToJSON;
|
|
20
|
+
exports.TransactionLiteResourceToJSONTyped = TransactionLiteResourceToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the TransactionLiteResource interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfTransactionLiteResource(value) {
|
|
25
|
+
if (!('paymentMethod' in value) || value['paymentMethod'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('amount' in value) || value['amount'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('surcharge' in value) || value['surcharge'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('totalAmount' in value) || value['totalAmount'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('reference' in value) || value['reference'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function TransactionLiteResourceFromJSON(json) {
|
|
42
|
+
return TransactionLiteResourceFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function TransactionLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'paymentMethod': json['payment_method'],
|
|
50
|
+
'type': json['type'],
|
|
51
|
+
'status': json['status'],
|
|
52
|
+
'amount': json['amount'],
|
|
53
|
+
'surcharge': json['surcharge'],
|
|
54
|
+
'totalAmount': json['total_amount'],
|
|
55
|
+
'reference': json['reference'],
|
|
56
|
+
'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function TransactionLiteResourceToJSON(json) {
|
|
60
|
+
return TransactionLiteResourceToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
function TransactionLiteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
63
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
'payment_method': value['paymentMethod'],
|
|
69
|
+
'type': value['type'],
|
|
70
|
+
'status': value['status'],
|
|
71
|
+
'amount': value['amount'],
|
|
72
|
+
'surcharge': value['surcharge'],
|
|
73
|
+
'total_amount': value['totalAmount'],
|
|
74
|
+
'reference': value['reference'],
|
|
75
|
+
'created_at': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
|
|
76
|
+
};
|
|
77
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 { TransactionLiteResource } from './TransactionLiteResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface TransactionLiteResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface TransactionLiteResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<TransactionLiteResource>}
|
|
22
|
+
* @memberof TransactionLiteResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<TransactionLiteResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the TransactionLiteResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfTransactionLiteResourceArrayResponse(value: object): value is TransactionLiteResourceArrayResponse;
|
|
30
|
+
export declare function TransactionLiteResourceArrayResponseFromJSON(json: any): TransactionLiteResourceArrayResponse;
|
|
31
|
+
export declare function TransactionLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionLiteResourceArrayResponse;
|
|
32
|
+
export declare function TransactionLiteResourceArrayResponseToJSON(json: any): TransactionLiteResourceArrayResponse;
|
|
33
|
+
export declare function TransactionLiteResourceArrayResponseToJSONTyped(value?: TransactionLiteResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfTransactionLiteResourceArrayResponse = instanceOfTransactionLiteResourceArrayResponse;
|
|
17
|
+
exports.TransactionLiteResourceArrayResponseFromJSON = TransactionLiteResourceArrayResponseFromJSON;
|
|
18
|
+
exports.TransactionLiteResourceArrayResponseFromJSONTyped = TransactionLiteResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.TransactionLiteResourceArrayResponseToJSON = TransactionLiteResourceArrayResponseToJSON;
|
|
20
|
+
exports.TransactionLiteResourceArrayResponseToJSONTyped = TransactionLiteResourceArrayResponseToJSONTyped;
|
|
21
|
+
var TransactionLiteResource_1 = require("./TransactionLiteResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the TransactionLiteResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfTransactionLiteResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function TransactionLiteResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return TransactionLiteResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function TransactionLiteResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(TransactionLiteResource_1.TransactionLiteResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function TransactionLiteResourceArrayResponseToJSON(json) {
|
|
40
|
+
return TransactionLiteResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function TransactionLiteResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'data': value['data'] == null ? undefined : (value['data'].map(TransactionLiteResource_1.TransactionLiteResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -21,24 +21,6 @@ export interface TransactionResource {
|
|
|
21
21
|
* @memberof TransactionResource
|
|
22
22
|
*/
|
|
23
23
|
id?: number | null;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {number}
|
|
27
|
-
* @memberof TransactionResource
|
|
28
|
-
*/
|
|
29
|
-
orderId?: number | null;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {number}
|
|
33
|
-
* @memberof TransactionResource
|
|
34
|
-
*/
|
|
35
|
-
cartId?: number | null;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {number}
|
|
39
|
-
* @memberof TransactionResource
|
|
40
|
-
*/
|
|
41
|
-
adminId?: number | null;
|
|
42
24
|
/**
|
|
43
25
|
*
|
|
44
26
|
* @type {string}
|
|
@@ -135,12 +117,6 @@ export interface TransactionResource {
|
|
|
135
117
|
* @memberof TransactionResource
|
|
136
118
|
*/
|
|
137
119
|
createdAt?: Date | null;
|
|
138
|
-
/**
|
|
139
|
-
*
|
|
140
|
-
* @type {Date}
|
|
141
|
-
* @memberof TransactionResource
|
|
142
|
-
*/
|
|
143
|
-
updatedAt?: Date | null;
|
|
144
120
|
}
|
|
145
121
|
/**
|
|
146
122
|
* Check if a given object implements the TransactionResource interface.
|
|
@@ -53,9 +53,6 @@ function TransactionResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
53
|
}
|
|
54
54
|
return {
|
|
55
55
|
'id': json['id'] == null ? undefined : json['id'],
|
|
56
|
-
'orderId': json['order_id'] == null ? undefined : json['order_id'],
|
|
57
|
-
'cartId': json['cart_id'] == null ? undefined : json['cart_id'],
|
|
58
|
-
'adminId': json['admin_id'] == null ? undefined : json['admin_id'],
|
|
59
56
|
'paymentSource': json['payment_source'],
|
|
60
57
|
'paymentMethod': json['payment_method'],
|
|
61
58
|
'type': json['type'],
|
|
@@ -72,7 +69,6 @@ function TransactionResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
72
69
|
'fraudDecision': json['fraud_decision'] == null ? undefined : json['fraud_decision'],
|
|
73
70
|
'refundedTransactionId': json['refunded_transaction_id'] == null ? undefined : json['refunded_transaction_id'],
|
|
74
71
|
'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
|
|
75
|
-
'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
|
|
76
72
|
};
|
|
77
73
|
}
|
|
78
74
|
function TransactionResourceToJSON(json) {
|
|
@@ -85,9 +81,6 @@ function TransactionResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
85
81
|
}
|
|
86
82
|
return {
|
|
87
83
|
'id': value['id'],
|
|
88
|
-
'order_id': value['orderId'],
|
|
89
|
-
'cart_id': value['cartId'],
|
|
90
|
-
'admin_id': value['adminId'],
|
|
91
84
|
'payment_source': value['paymentSource'],
|
|
92
85
|
'payment_method': value['paymentMethod'],
|
|
93
86
|
'type': value['type'],
|
|
@@ -104,6 +97,5 @@ function TransactionResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
104
97
|
'fraud_decision': value['fraudDecision'],
|
|
105
98
|
'refunded_transaction_id': value['refundedTransactionId'],
|
|
106
99
|
'created_at': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
|
|
107
|
-
'updated_at': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
|
|
108
100
|
};
|
|
109
101
|
}
|
|
@@ -64,6 +64,7 @@ function UpdateCartRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
64
64
|
'shippingSubtotal': json['shipping_subtotal'] == null ? undefined : json['shipping_subtotal'],
|
|
65
65
|
'overrideShipping': json['override_shipping'] == null ? undefined : json['override_shipping'],
|
|
66
66
|
'insuranceAmount': json['insurance_amount'] == null ? undefined : json['insurance_amount'],
|
|
67
|
+
'includeInsurance': json['include_insurance'] == null ? undefined : json['include_insurance'],
|
|
67
68
|
'overrideInsurance': json['override_insurance'] == null ? undefined : json['override_insurance'],
|
|
68
69
|
'useAsBillingAddress': json['use_as_billing_address'] == null ? undefined : json['use_as_billing_address'],
|
|
69
70
|
'shippingAddressId': json['shipping_address_id'] == null ? undefined : json['shipping_address_id'],
|
|
@@ -89,6 +90,7 @@ function UpdateCartRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
89
90
|
'shipping_subtotal': value['shippingSubtotal'],
|
|
90
91
|
'override_shipping': value['overrideShipping'],
|
|
91
92
|
'insurance_amount': value['insuranceAmount'],
|
|
93
|
+
'include_insurance': value['includeInsurance'],
|
|
92
94
|
'override_insurance': value['overrideInsurance'],
|
|
93
95
|
'use_as_billing_address': value['useAsBillingAddress'],
|
|
94
96
|
'shipping_address_id': value['shippingAddressId'],
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { StoreCartRequestShippingAddress } from './StoreCartRequestShippingAddress';
|
|
13
13
|
import type { UpdateOrderRequestBillingAddress } from './UpdateOrderRequestBillingAddress';
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
@@ -59,6 +59,12 @@ export interface UpdateOrderRequest {
|
|
|
59
59
|
* @memberof UpdateOrderRequest
|
|
60
60
|
*/
|
|
61
61
|
insuranceAmount?: number | null;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {boolean}
|
|
65
|
+
* @memberof UpdateOrderRequest
|
|
66
|
+
*/
|
|
67
|
+
includeInsurance?: boolean;
|
|
62
68
|
/**
|
|
63
69
|
*
|
|
64
70
|
* @type {boolean}
|
|
@@ -67,10 +73,10 @@ export interface UpdateOrderRequest {
|
|
|
67
73
|
overrideInsurance?: boolean;
|
|
68
74
|
/**
|
|
69
75
|
*
|
|
70
|
-
* @type {
|
|
76
|
+
* @type {StoreCartRequestShippingAddress}
|
|
71
77
|
* @memberof UpdateOrderRequest
|
|
72
78
|
*/
|
|
73
|
-
shippingAddress?:
|
|
79
|
+
shippingAddress?: StoreCartRequestShippingAddress;
|
|
74
80
|
/**
|
|
75
81
|
*
|
|
76
82
|
* @type {UpdateOrderRequestBillingAddress}
|
|
@@ -19,7 +19,7 @@ exports.UpdateOrderRequestFromJSON = UpdateOrderRequestFromJSON;
|
|
|
19
19
|
exports.UpdateOrderRequestFromJSONTyped = UpdateOrderRequestFromJSONTyped;
|
|
20
20
|
exports.UpdateOrderRequestToJSON = UpdateOrderRequestToJSON;
|
|
21
21
|
exports.UpdateOrderRequestToJSONTyped = UpdateOrderRequestToJSONTyped;
|
|
22
|
-
var
|
|
22
|
+
var StoreCartRequestShippingAddress_1 = require("./StoreCartRequestShippingAddress");
|
|
23
23
|
var UpdateOrderRequestBillingAddress_1 = require("./UpdateOrderRequestBillingAddress");
|
|
24
24
|
/**
|
|
25
25
|
* @export
|
|
@@ -71,8 +71,9 @@ function UpdateOrderRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
71
71
|
'shippingSubtotal': json['shipping_subtotal'] == null ? undefined : json['shipping_subtotal'],
|
|
72
72
|
'overrideShipping': json['override_shipping'] == null ? undefined : json['override_shipping'],
|
|
73
73
|
'insuranceAmount': json['insurance_amount'] == null ? undefined : json['insurance_amount'],
|
|
74
|
+
'includeInsurance': json['include_insurance'] == null ? undefined : json['include_insurance'],
|
|
74
75
|
'overrideInsurance': json['override_insurance'] == null ? undefined : json['override_insurance'],
|
|
75
|
-
'shippingAddress': json['shipping_address'] == null ? undefined : (0,
|
|
76
|
+
'shippingAddress': json['shipping_address'] == null ? undefined : (0, StoreCartRequestShippingAddress_1.StoreCartRequestShippingAddressFromJSON)(json['shipping_address']),
|
|
76
77
|
'billingAddress': (0, UpdateOrderRequestBillingAddress_1.UpdateOrderRequestBillingAddressFromJSON)(json['billing_address']),
|
|
77
78
|
};
|
|
78
79
|
}
|
|
@@ -92,8 +93,9 @@ function UpdateOrderRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
92
93
|
'shipping_subtotal': value['shippingSubtotal'],
|
|
93
94
|
'override_shipping': value['overrideShipping'],
|
|
94
95
|
'insurance_amount': value['insuranceAmount'],
|
|
96
|
+
'include_insurance': value['includeInsurance'],
|
|
95
97
|
'override_insurance': value['overrideInsurance'],
|
|
96
|
-
'shipping_address': (0,
|
|
98
|
+
'shipping_address': (0, StoreCartRequestShippingAddress_1.StoreCartRequestShippingAddressToJSON)(value['shippingAddress']),
|
|
97
99
|
'billing_address': (0, UpdateOrderRequestBillingAddress_1.UpdateOrderRequestBillingAddressToJSON)(value['billingAddress']),
|
|
98
100
|
};
|
|
99
101
|
}
|
|
@@ -21,12 +21,6 @@ export interface UpdateOrderRequestBillingAddress {
|
|
|
21
21
|
* @memberof UpdateOrderRequestBillingAddress
|
|
22
22
|
*/
|
|
23
23
|
addresseeName: string;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof UpdateOrderRequestBillingAddress
|
|
28
|
-
*/
|
|
29
|
-
addressee?: string | null;
|
|
30
24
|
/**
|
|
31
25
|
*
|
|
32
26
|
* @type {string}
|
|
@@ -35,7 +35,6 @@ function UpdateOrderRequestBillingAddressFromJSONTyped(json, ignoreDiscriminator
|
|
|
35
35
|
}
|
|
36
36
|
return {
|
|
37
37
|
'addresseeName': json['addressee_name'],
|
|
38
|
-
'addressee': json['addressee'] == null ? undefined : json['addressee'],
|
|
39
38
|
'company': json['company'] == null ? undefined : json['company'],
|
|
40
39
|
'line1': json['line_1'] == null ? undefined : json['line_1'],
|
|
41
40
|
'line2': json['line_2'] == null ? undefined : json['line_2'],
|
|
@@ -55,7 +54,6 @@ function UpdateOrderRequestBillingAddressToJSONTyped(value, ignoreDiscriminator)
|
|
|
55
54
|
}
|
|
56
55
|
return {
|
|
57
56
|
'addressee_name': value['addresseeName'],
|
|
58
|
-
'addressee': value['addressee'],
|
|
59
57
|
'company': value['company'],
|
|
60
58
|
'line_1': value['line1'],
|
|
61
59
|
'line_2': value['line2'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -266,7 +266,6 @@ export * from './PaginatedSupplierResourceResponse';
|
|
|
266
266
|
export * from './PaginatedTagListResourceResponse';
|
|
267
267
|
export * from './PaginatedTagLiteResourceResponse';
|
|
268
268
|
export * from './PaginatedTagResourceResponse';
|
|
269
|
-
export * from './PaginatedTransactionListResourceResponse';
|
|
270
269
|
export * from './PaginatedTransactionResourceResponse';
|
|
271
270
|
export * from './PagingMetadata';
|
|
272
271
|
export * from './PaymentMethod';
|
|
@@ -460,8 +459,8 @@ export * from './TagLiteResourceArrayResponse';
|
|
|
460
459
|
export * from './TagResource';
|
|
461
460
|
export * from './TagResourceArrayResponse';
|
|
462
461
|
export * from './TagType';
|
|
463
|
-
export * from './
|
|
464
|
-
export * from './
|
|
462
|
+
export * from './TransactionLiteResource';
|
|
463
|
+
export * from './TransactionLiteResourceArrayResponse';
|
|
465
464
|
export * from './TransactionResource';
|
|
466
465
|
export * from './TransactionResourceArrayResponse';
|
|
467
466
|
export * from './TransactionType';
|
|
@@ -483,7 +482,6 @@ export * from './UpdateMenuRequestMenuItemOrderInner';
|
|
|
483
482
|
export * from './UpdateModelAttributeRequest';
|
|
484
483
|
export * from './UpdateOrderRequest';
|
|
485
484
|
export * from './UpdateOrderRequestBillingAddress';
|
|
486
|
-
export * from './UpdateOrderRequestShippingAddress';
|
|
487
485
|
export * from './UpdateOverlayTemplateAssetRequest';
|
|
488
486
|
export * from './UpdateOverlayTemplateRequest';
|
|
489
487
|
export * from './UpdateProductCategoryRequest';
|
package/dist/models/index.js
CHANGED
|
@@ -284,7 +284,6 @@ __exportStar(require("./PaginatedSupplierResourceResponse"), exports);
|
|
|
284
284
|
__exportStar(require("./PaginatedTagListResourceResponse"), exports);
|
|
285
285
|
__exportStar(require("./PaginatedTagLiteResourceResponse"), exports);
|
|
286
286
|
__exportStar(require("./PaginatedTagResourceResponse"), exports);
|
|
287
|
-
__exportStar(require("./PaginatedTransactionListResourceResponse"), exports);
|
|
288
287
|
__exportStar(require("./PaginatedTransactionResourceResponse"), exports);
|
|
289
288
|
__exportStar(require("./PagingMetadata"), exports);
|
|
290
289
|
__exportStar(require("./PaymentMethod"), exports);
|
|
@@ -478,8 +477,8 @@ __exportStar(require("./TagLiteResourceArrayResponse"), exports);
|
|
|
478
477
|
__exportStar(require("./TagResource"), exports);
|
|
479
478
|
__exportStar(require("./TagResourceArrayResponse"), exports);
|
|
480
479
|
__exportStar(require("./TagType"), exports);
|
|
481
|
-
__exportStar(require("./
|
|
482
|
-
__exportStar(require("./
|
|
480
|
+
__exportStar(require("./TransactionLiteResource"), exports);
|
|
481
|
+
__exportStar(require("./TransactionLiteResourceArrayResponse"), exports);
|
|
483
482
|
__exportStar(require("./TransactionResource"), exports);
|
|
484
483
|
__exportStar(require("./TransactionResourceArrayResponse"), exports);
|
|
485
484
|
__exportStar(require("./TransactionType"), exports);
|
|
@@ -501,7 +500,6 @@ __exportStar(require("./UpdateMenuRequestMenuItemOrderInner"), exports);
|
|
|
501
500
|
__exportStar(require("./UpdateModelAttributeRequest"), exports);
|
|
502
501
|
__exportStar(require("./UpdateOrderRequest"), exports);
|
|
503
502
|
__exportStar(require("./UpdateOrderRequestBillingAddress"), exports);
|
|
504
|
-
__exportStar(require("./UpdateOrderRequestShippingAddress"), exports);
|
|
505
503
|
__exportStar(require("./UpdateOverlayTemplateAssetRequest"), exports);
|
|
506
504
|
__exportStar(require("./UpdateOverlayTemplateRequest"), exports);
|
|
507
505
|
__exportStar(require("./UpdateProductCategoryRequest"), exports);
|
package/docs/AddressResource.md
CHANGED
|
@@ -10,7 +10,6 @@ Name | Type
|
|
|
10
10
|
`sourceAddressId` | number
|
|
11
11
|
`addresseeName` | string
|
|
12
12
|
`company` | string
|
|
13
|
-
`addressee` | string
|
|
14
13
|
`line1` | string
|
|
15
14
|
`line2` | string
|
|
16
15
|
`postcode` | string
|
|
@@ -30,7 +29,6 @@ const example = {
|
|
|
30
29
|
"sourceAddressId": null,
|
|
31
30
|
"addresseeName": null,
|
|
32
31
|
"company": null,
|
|
33
|
-
"addressee": null,
|
|
34
32
|
"line1": null,
|
|
35
33
|
"line2": null,
|
|
36
34
|
"postcode": null,
|
|
@@ -17,6 +17,7 @@ Name | Type
|
|
|
17
17
|
`shippingSubtotal` | number
|
|
18
18
|
`overrideShipping` | boolean
|
|
19
19
|
`insuranceAmount` | number
|
|
20
|
+
`includeInsurance` | boolean
|
|
20
21
|
`overrideInsurance` | boolean
|
|
21
22
|
`useAsBillingAddress` | boolean
|
|
22
23
|
`netsuiteId` | string
|
|
@@ -65,6 +66,7 @@ const example = {
|
|
|
65
66
|
"shippingSubtotal": null,
|
|
66
67
|
"overrideShipping": null,
|
|
67
68
|
"insuranceAmount": null,
|
|
69
|
+
"includeInsurance": null,
|
|
68
70
|
"overrideInsurance": null,
|
|
69
71
|
"useAsBillingAddress": null,
|
|
70
72
|
"netsuiteId": null,
|
package/docs/CartListResource.md
CHANGED
|
@@ -13,6 +13,7 @@ Name | Type
|
|
|
13
13
|
`shippingSubtotal` | number
|
|
14
14
|
`overrideShipping` | boolean
|
|
15
15
|
`insuranceAmount` | number
|
|
16
|
+
`includeInsurance` | boolean
|
|
16
17
|
`overrideInsurance` | boolean
|
|
17
18
|
`useAsBillingAddress` | boolean
|
|
18
19
|
`expiryDate` | Date
|
|
@@ -38,6 +39,7 @@ const example = {
|
|
|
38
39
|
"shippingSubtotal": null,
|
|
39
40
|
"overrideShipping": null,
|
|
40
41
|
"insuranceAmount": null,
|
|
42
|
+
"includeInsurance": null,
|
|
41
43
|
"overrideInsurance": null,
|
|
42
44
|
"useAsBillingAddress": null,
|
|
43
45
|
"expiryDate": null,
|
package/docs/CartResource.md
CHANGED
|
@@ -19,6 +19,7 @@ Name | Type
|
|
|
19
19
|
`shippingSubtotal` | number
|
|
20
20
|
`overrideShipping` | boolean
|
|
21
21
|
`insuranceSubtotal` | string
|
|
22
|
+
`includeInsurance` | boolean
|
|
22
23
|
`overrideInsurance` | boolean
|
|
23
24
|
`useAsBillingAddress` | boolean
|
|
24
25
|
`admin` | object
|
|
@@ -60,6 +61,7 @@ const example = {
|
|
|
60
61
|
"shippingSubtotal": null,
|
|
61
62
|
"overrideShipping": null,
|
|
62
63
|
"insuranceSubtotal": null,
|
|
64
|
+
"includeInsurance": null,
|
|
63
65
|
"overrideInsurance": null,
|
|
64
66
|
"useAsBillingAddress": null,
|
|
65
67
|
"admin": null,
|
|
@@ -21,6 +21,7 @@ Name | Type
|
|
|
21
21
|
`customer` | [CustomerListResource](CustomerListResource.md)
|
|
22
22
|
`status` | Array<number>
|
|
23
23
|
`lineItems` | [Array<LineItemListResource>](LineItemListResource.md)
|
|
24
|
+
`transactions` | [Array<TransactionLiteResource>](TransactionLiteResource.md)
|
|
24
25
|
|
|
25
26
|
## Example
|
|
26
27
|
|
|
@@ -44,6 +45,7 @@ const example = {
|
|
|
44
45
|
"customer": null,
|
|
45
46
|
"status": null,
|
|
46
47
|
"lineItems": null,
|
|
48
|
+
"transactions": null,
|
|
47
49
|
} satisfies OrderListResource
|
|
48
50
|
|
|
49
51
|
console.log(example)
|
package/docs/StoreCartRequest.md
CHANGED
|
@@ -18,6 +18,7 @@ Name | Type
|
|
|
18
18
|
`shippingSubtotal` | number
|
|
19
19
|
`overrideShipping` | boolean
|
|
20
20
|
`insuranceAmount` | number
|
|
21
|
+
`includeInsurance` | boolean
|
|
21
22
|
`overrideInsurance` | boolean
|
|
22
23
|
`useAsBillingAddress` | boolean
|
|
23
24
|
`shippingAddressId` | number
|
|
@@ -44,6 +45,7 @@ const example = {
|
|
|
44
45
|
"shippingSubtotal": null,
|
|
45
46
|
"overrideShipping": null,
|
|
46
47
|
"insuranceAmount": null,
|
|
48
|
+
"includeInsurance": null,
|
|
47
49
|
"overrideInsurance": null,
|
|
48
50
|
"useAsBillingAddress": null,
|
|
49
51
|
"shippingAddressId": null,
|
|
@@ -8,7 +8,6 @@ Name | Type
|
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`addresseeName` | string
|
|
10
10
|
`company` | string
|
|
11
|
-
`addressee` | string
|
|
12
11
|
`line1` | string
|
|
13
12
|
`line2` | string
|
|
14
13
|
`suburb` | string
|
|
@@ -25,7 +24,6 @@ import type { StoreCartRequestShippingAddress } from '@digital8/lighting-illusio
|
|
|
25
24
|
const example = {
|
|
26
25
|
"addresseeName": null,
|
|
27
26
|
"company": null,
|
|
28
|
-
"addressee": null,
|
|
29
27
|
"line1": null,
|
|
30
28
|
"line2": null,
|
|
31
29
|
"suburb": null,
|
|
@@ -1,62 +1,36 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# TransactionLiteResource
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`id` | number
|
|
10
|
-
`orderId` | number
|
|
11
|
-
`cartId` | number
|
|
12
|
-
`adminId` | number
|
|
13
|
-
`paymentSource` | string
|
|
14
9
|
`paymentMethod` | string
|
|
15
10
|
`type` | string
|
|
16
11
|
`status` | string
|
|
17
12
|
`amount` | number
|
|
18
13
|
`surcharge` | number
|
|
19
14
|
`totalAmount` | number
|
|
20
|
-
`refundedAmount` | number
|
|
21
|
-
`unrefundedAmount` | number
|
|
22
15
|
`reference` | string
|
|
23
|
-
`description` | string
|
|
24
|
-
`extendedData` | string
|
|
25
|
-
`riskScore` | string
|
|
26
|
-
`fraudDecision` | string
|
|
27
|
-
`refundedTransactionId` | number
|
|
28
16
|
`createdAt` | Date
|
|
29
|
-
`updatedAt` | Date
|
|
30
17
|
|
|
31
18
|
## Example
|
|
32
19
|
|
|
33
20
|
```typescript
|
|
34
|
-
import type {
|
|
21
|
+
import type { TransactionLiteResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
35
22
|
|
|
36
23
|
// TODO: Update the object below with actual values
|
|
37
24
|
const example = {
|
|
38
|
-
"id": null,
|
|
39
|
-
"orderId": null,
|
|
40
|
-
"cartId": null,
|
|
41
|
-
"adminId": null,
|
|
42
|
-
"paymentSource": null,
|
|
43
25
|
"paymentMethod": null,
|
|
44
26
|
"type": null,
|
|
45
27
|
"status": null,
|
|
46
28
|
"amount": null,
|
|
47
29
|
"surcharge": null,
|
|
48
30
|
"totalAmount": null,
|
|
49
|
-
"refundedAmount": null,
|
|
50
|
-
"unrefundedAmount": null,
|
|
51
31
|
"reference": null,
|
|
52
|
-
"description": null,
|
|
53
|
-
"extendedData": null,
|
|
54
|
-
"riskScore": null,
|
|
55
|
-
"fraudDecision": null,
|
|
56
|
-
"refundedTransactionId": null,
|
|
57
32
|
"createdAt": null,
|
|
58
|
-
|
|
59
|
-
} satisfies TransactionListResource
|
|
33
|
+
} satisfies TransactionLiteResource
|
|
60
34
|
|
|
61
35
|
console.log(example)
|
|
62
36
|
|
|
@@ -65,7 +39,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
65
39
|
console.log(exampleJSON)
|
|
66
40
|
|
|
67
41
|
// Parse the JSON string back to an object
|
|
68
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
42
|
+
const exampleParsed = JSON.parse(exampleJSON) as TransactionLiteResource
|
|
69
43
|
console.log(exampleParsed)
|
|
70
44
|
```
|
|
71
45
|
|
package/docs/{TransactionListResourceArrayResponse.md → TransactionLiteResourceArrayResponse.md}
RENAMED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# TransactionLiteResourceArrayResponse
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`data` | [Array<
|
|
9
|
+
`data` | [Array<TransactionLiteResource>](TransactionLiteResource.md)
|
|
10
10
|
|
|
11
11
|
## Example
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import type {
|
|
14
|
+
import type { TransactionLiteResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
15
|
|
|
16
16
|
// TODO: Update the object below with actual values
|
|
17
17
|
const example = {
|
|
18
18
|
"data": null,
|
|
19
|
-
} satisfies
|
|
19
|
+
} satisfies TransactionLiteResourceArrayResponse
|
|
20
20
|
|
|
21
21
|
console.log(example)
|
|
22
22
|
|
|
@@ -25,7 +25,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
25
25
|
console.log(exampleJSON)
|
|
26
26
|
|
|
27
27
|
// Parse the JSON string back to an object
|
|
28
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as TransactionLiteResourceArrayResponse
|
|
29
29
|
console.log(exampleParsed)
|
|
30
30
|
```
|
|
31
31
|
|