@digital8/lighting-illusions-ts-sdk 0.0.1955 → 0.0.1956
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 -4
- package/README.md +6 -4
- 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 +1 -3
- package/dist/models/AddressResource.d.ts +7 -1
- package/dist/models/AddressResource.js +7 -1
- package/dist/models/AdminOrderResource.d.ts +0 -6
- package/dist/models/AdminOrderResource.js +0 -4
- package/dist/models/CartListResource.d.ts +0 -6
- package/dist/models/CartListResource.js +0 -4
- package/dist/models/CartResource.d.ts +0 -6
- package/dist/models/CartResource.js +0 -4
- package/dist/models/OrderListResource.d.ts +0 -7
- package/dist/models/OrderListResource.js +0 -5
- package/dist/models/PaginatedTransactionListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedTransactionListResourceResponse.js +57 -0
- package/dist/models/StoreCartRequest.d.ts +0 -6
- package/dist/models/StoreCartRequest.js +0 -2
- package/dist/models/StoreCartRequestShippingAddress.d.ts +6 -0
- package/dist/models/StoreCartRequestShippingAddress.js +2 -0
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +1 -3
- package/dist/models/TransactionListResource.d.ts +152 -0
- package/dist/models/TransactionListResource.js +109 -0
- package/dist/models/TransactionListResourceArrayResponse.d.ts +33 -0
- package/dist/models/TransactionListResourceArrayResponse.js +50 -0
- package/dist/models/TransactionResource.d.ts +24 -0
- package/dist/models/TransactionResource.js +8 -0
- package/dist/models/UpdateCartRequest.d.ts +0 -6
- package/dist/models/UpdateCartRequest.js +0 -2
- package/dist/models/UpdateOrderRequest.d.ts +3 -9
- package/dist/models/UpdateOrderRequest.js +3 -5
- package/dist/models/UpdateOrderRequestBillingAddress.d.ts +6 -0
- package/dist/models/UpdateOrderRequestBillingAddress.js +2 -0
- package/dist/models/UpdateOrderRequestShippingAddress.d.ts +80 -0
- package/dist/models/UpdateOrderRequestShippingAddress.js +67 -0
- package/dist/models/index.d.ts +4 -2
- package/dist/models/index.js +4 -2
- package/docs/AddressResource.md +2 -0
- package/docs/AdminOrderResource.md +0 -2
- package/docs/CartListResource.md +0 -2
- package/docs/CartResource.md +0 -2
- package/docs/OrderListResource.md +0 -2
- package/docs/PaginatedTransactionListResourceResponse.md +36 -0
- package/docs/StoreCartRequest.md +0 -2
- package/docs/StoreCartRequestShippingAddress.md +2 -0
- package/docs/StoreSpecialDateFrontendResource.md +1 -1
- package/docs/{TransactionLiteResource.md → TransactionListResource.md} +30 -4
- package/docs/{TransactionLiteResourceArrayResponse.md → TransactionListResourceArrayResponse.md} +5 -5
- package/docs/TransactionResource.md +8 -0
- package/docs/TransactionsApi.md +3 -3
- package/docs/UpdateCartRequest.md +0 -2
- package/docs/UpdateOrderRequest.md +1 -3
- package/docs/UpdateOrderRequestBillingAddress.md +2 -0
- package/docs/UpdateOrderRequestShippingAddress.md +50 -0
- package/package.json +1 -1
- package/src/apis/TransactionsApi.ts +7 -7
- package/src/models/AddressFrontendResource.ts +2 -3
- package/src/models/AddressResource.ts +12 -2
- package/src/models/AdminOrderResource.ts +0 -9
- package/src/models/CartListResource.ts +0 -9
- package/src/models/CartResource.ts +0 -9
- package/src/models/OrderListResource.ts +0 -16
- package/src/models/PaginatedTransactionListResourceResponse.ts +90 -0
- package/src/models/StoreCartRequest.ts +0 -8
- package/src/models/StoreCartRequestShippingAddress.ts +8 -0
- package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
- package/src/models/TransactionListResource.ts +235 -0
- package/src/models/TransactionListResourceArrayResponse.ts +73 -0
- package/src/models/TransactionResource.ts +32 -0
- package/src/models/UpdateCartRequest.ts +0 -8
- package/src/models/UpdateOrderRequest.ts +10 -18
- package/src/models/UpdateOrderRequestBillingAddress.ts +8 -0
- package/src/models/UpdateOrderRequestShippingAddress.ts +130 -0
- package/src/models/index.ts +4 -2
- package/dist/models/TransactionLiteResource.d.ts +0 -74
- package/dist/models/TransactionLiteResource.js +0 -77
- package/dist/models/TransactionLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/TransactionLiteResourceArrayResponse.js +0 -50
- package/src/models/TransactionLiteResource.ts +0 -128
- package/src/models/TransactionLiteResourceArrayResponse.ts +0 -73
|
@@ -0,0 +1,152 @@
|
|
|
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;
|
|
@@ -0,0 +1,109 @@
|
|
|
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.instanceOfTransactionListResource = instanceOfTransactionListResource;
|
|
17
|
+
exports.TransactionListResourceFromJSON = TransactionListResourceFromJSON;
|
|
18
|
+
exports.TransactionListResourceFromJSONTyped = TransactionListResourceFromJSONTyped;
|
|
19
|
+
exports.TransactionListResourceToJSON = TransactionListResourceToJSON;
|
|
20
|
+
exports.TransactionListResourceToJSONTyped = TransactionListResourceToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the TransactionListResource interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfTransactionListResource(value) {
|
|
25
|
+
if (!('paymentSource' in value) || value['paymentSource'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('paymentMethod' in value) || value['paymentMethod'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('amount' in value) || value['amount'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('surcharge' in value) || value['surcharge'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('totalAmount' in value) || value['totalAmount'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('refundedAmount' in value) || value['refundedAmount'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('unrefundedAmount' in value) || value['unrefundedAmount'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('reference' in value) || value['reference'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
return true;
|
|
46
|
+
}
|
|
47
|
+
function TransactionListResourceFromJSON(json) {
|
|
48
|
+
return TransactionListResourceFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function TransactionListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
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
|
+
'paymentSource': json['payment_source'],
|
|
60
|
+
'paymentMethod': json['payment_method'],
|
|
61
|
+
'type': json['type'],
|
|
62
|
+
'status': json['status'],
|
|
63
|
+
'amount': json['amount'],
|
|
64
|
+
'surcharge': json['surcharge'],
|
|
65
|
+
'totalAmount': json['total_amount'],
|
|
66
|
+
'refundedAmount': json['refunded_amount'],
|
|
67
|
+
'unrefundedAmount': json['unrefunded_amount'],
|
|
68
|
+
'reference': json['reference'],
|
|
69
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
70
|
+
'extendedData': json['extended_data'] == null ? undefined : json['extended_data'],
|
|
71
|
+
'riskScore': json['risk_score'] == null ? undefined : json['risk_score'],
|
|
72
|
+
'fraudDecision': json['fraud_decision'] == null ? undefined : json['fraud_decision'],
|
|
73
|
+
'refundedTransactionId': json['refunded_transaction_id'] == null ? undefined : json['refunded_transaction_id'],
|
|
74
|
+
'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
|
|
75
|
+
'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
function TransactionListResourceToJSON(json) {
|
|
79
|
+
return TransactionListResourceToJSONTyped(json, false);
|
|
80
|
+
}
|
|
81
|
+
function TransactionListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
82
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
83
|
+
if (value == null) {
|
|
84
|
+
return value;
|
|
85
|
+
}
|
|
86
|
+
return {
|
|
87
|
+
'id': value['id'],
|
|
88
|
+
'order_id': value['orderId'],
|
|
89
|
+
'cart_id': value['cartId'],
|
|
90
|
+
'admin_id': value['adminId'],
|
|
91
|
+
'payment_source': value['paymentSource'],
|
|
92
|
+
'payment_method': value['paymentMethod'],
|
|
93
|
+
'type': value['type'],
|
|
94
|
+
'status': value['status'],
|
|
95
|
+
'amount': value['amount'],
|
|
96
|
+
'surcharge': value['surcharge'],
|
|
97
|
+
'total_amount': value['totalAmount'],
|
|
98
|
+
'refunded_amount': value['refundedAmount'],
|
|
99
|
+
'unrefunded_amount': value['unrefundedAmount'],
|
|
100
|
+
'reference': value['reference'],
|
|
101
|
+
'description': value['description'],
|
|
102
|
+
'extended_data': value['extendedData'],
|
|
103
|
+
'risk_score': value['riskScore'],
|
|
104
|
+
'fraud_decision': value['fraudDecision'],
|
|
105
|
+
'refunded_transaction_id': value['refundedTransactionId'],
|
|
106
|
+
'created_at': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
|
|
107
|
+
'updated_at': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
|
|
108
|
+
};
|
|
109
|
+
}
|
|
@@ -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 { TransactionListResource } from './TransactionListResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface TransactionListResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface TransactionListResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<TransactionListResource>}
|
|
22
|
+
* @memberof TransactionListResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<TransactionListResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the TransactionListResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfTransactionListResourceArrayResponse(value: object): value is TransactionListResourceArrayResponse;
|
|
30
|
+
export declare function TransactionListResourceArrayResponseFromJSON(json: any): TransactionListResourceArrayResponse;
|
|
31
|
+
export declare function TransactionListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionListResourceArrayResponse;
|
|
32
|
+
export declare function TransactionListResourceArrayResponseToJSON(json: any): TransactionListResourceArrayResponse;
|
|
33
|
+
export declare function TransactionListResourceArrayResponseToJSONTyped(value?: TransactionListResourceArrayResponse | 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.instanceOfTransactionListResourceArrayResponse = instanceOfTransactionListResourceArrayResponse;
|
|
17
|
+
exports.TransactionListResourceArrayResponseFromJSON = TransactionListResourceArrayResponseFromJSON;
|
|
18
|
+
exports.TransactionListResourceArrayResponseFromJSONTyped = TransactionListResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.TransactionListResourceArrayResponseToJSON = TransactionListResourceArrayResponseToJSON;
|
|
20
|
+
exports.TransactionListResourceArrayResponseToJSONTyped = TransactionListResourceArrayResponseToJSONTyped;
|
|
21
|
+
var TransactionListResource_1 = require("./TransactionListResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the TransactionListResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfTransactionListResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function TransactionListResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return TransactionListResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function TransactionListResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(TransactionListResource_1.TransactionListResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function TransactionListResourceArrayResponseToJSON(json) {
|
|
40
|
+
return TransactionListResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function TransactionListResourceArrayResponseToJSONTyped(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(TransactionListResource_1.TransactionListResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -21,6 +21,24 @@ 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;
|
|
24
42
|
/**
|
|
25
43
|
*
|
|
26
44
|
* @type {string}
|
|
@@ -117,6 +135,12 @@ export interface TransactionResource {
|
|
|
117
135
|
* @memberof TransactionResource
|
|
118
136
|
*/
|
|
119
137
|
createdAt?: Date | null;
|
|
138
|
+
/**
|
|
139
|
+
*
|
|
140
|
+
* @type {Date}
|
|
141
|
+
* @memberof TransactionResource
|
|
142
|
+
*/
|
|
143
|
+
updatedAt?: Date | null;
|
|
120
144
|
}
|
|
121
145
|
/**
|
|
122
146
|
* Check if a given object implements the TransactionResource interface.
|
|
@@ -53,6 +53,9 @@ 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'],
|
|
56
59
|
'paymentSource': json['payment_source'],
|
|
57
60
|
'paymentMethod': json['payment_method'],
|
|
58
61
|
'type': json['type'],
|
|
@@ -69,6 +72,7 @@ function TransactionResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
69
72
|
'fraudDecision': json['fraud_decision'] == null ? undefined : json['fraud_decision'],
|
|
70
73
|
'refundedTransactionId': json['refunded_transaction_id'] == null ? undefined : json['refunded_transaction_id'],
|
|
71
74
|
'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
|
|
75
|
+
'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
|
|
72
76
|
};
|
|
73
77
|
}
|
|
74
78
|
function TransactionResourceToJSON(json) {
|
|
@@ -81,6 +85,9 @@ function TransactionResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
81
85
|
}
|
|
82
86
|
return {
|
|
83
87
|
'id': value['id'],
|
|
88
|
+
'order_id': value['orderId'],
|
|
89
|
+
'cart_id': value['cartId'],
|
|
90
|
+
'admin_id': value['adminId'],
|
|
84
91
|
'payment_source': value['paymentSource'],
|
|
85
92
|
'payment_method': value['paymentMethod'],
|
|
86
93
|
'type': value['type'],
|
|
@@ -97,5 +104,6 @@ function TransactionResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
97
104
|
'fraud_decision': value['fraudDecision'],
|
|
98
105
|
'refunded_transaction_id': value['refundedTransactionId'],
|
|
99
106
|
'created_at': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
|
|
107
|
+
'updated_at': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
|
|
100
108
|
};
|
|
101
109
|
}
|
|
@@ -64,7 +64,6 @@ 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'],
|
|
68
67
|
'overrideInsurance': json['override_insurance'] == null ? undefined : json['override_insurance'],
|
|
69
68
|
'useAsBillingAddress': json['use_as_billing_address'] == null ? undefined : json['use_as_billing_address'],
|
|
70
69
|
'shippingAddressId': json['shipping_address_id'] == null ? undefined : json['shipping_address_id'],
|
|
@@ -90,7 +89,6 @@ function UpdateCartRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
90
89
|
'shipping_subtotal': value['shippingSubtotal'],
|
|
91
90
|
'override_shipping': value['overrideShipping'],
|
|
92
91
|
'insurance_amount': value['insuranceAmount'],
|
|
93
|
-
'include_insurance': value['includeInsurance'],
|
|
94
92
|
'override_insurance': value['overrideInsurance'],
|
|
95
93
|
'use_as_billing_address': value['useAsBillingAddress'],
|
|
96
94
|
'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 { UpdateOrderRequestShippingAddress } from './UpdateOrderRequestShippingAddress';
|
|
13
13
|
import type { UpdateOrderRequestBillingAddress } from './UpdateOrderRequestBillingAddress';
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
@@ -59,12 +59,6 @@ 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;
|
|
68
62
|
/**
|
|
69
63
|
*
|
|
70
64
|
* @type {boolean}
|
|
@@ -73,10 +67,10 @@ export interface UpdateOrderRequest {
|
|
|
73
67
|
overrideInsurance?: boolean;
|
|
74
68
|
/**
|
|
75
69
|
*
|
|
76
|
-
* @type {
|
|
70
|
+
* @type {UpdateOrderRequestShippingAddress}
|
|
77
71
|
* @memberof UpdateOrderRequest
|
|
78
72
|
*/
|
|
79
|
-
shippingAddress?:
|
|
73
|
+
shippingAddress?: UpdateOrderRequestShippingAddress;
|
|
80
74
|
/**
|
|
81
75
|
*
|
|
82
76
|
* @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 UpdateOrderRequestShippingAddress_1 = require("./UpdateOrderRequestShippingAddress");
|
|
23
23
|
var UpdateOrderRequestBillingAddress_1 = require("./UpdateOrderRequestBillingAddress");
|
|
24
24
|
/**
|
|
25
25
|
* @export
|
|
@@ -71,9 +71,8 @@ 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'],
|
|
75
74
|
'overrideInsurance': json['override_insurance'] == null ? undefined : json['override_insurance'],
|
|
76
|
-
'shippingAddress': json['shipping_address'] == null ? undefined : (0,
|
|
75
|
+
'shippingAddress': json['shipping_address'] == null ? undefined : (0, UpdateOrderRequestShippingAddress_1.UpdateOrderRequestShippingAddressFromJSON)(json['shipping_address']),
|
|
77
76
|
'billingAddress': (0, UpdateOrderRequestBillingAddress_1.UpdateOrderRequestBillingAddressFromJSON)(json['billing_address']),
|
|
78
77
|
};
|
|
79
78
|
}
|
|
@@ -93,9 +92,8 @@ function UpdateOrderRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
93
92
|
'shipping_subtotal': value['shippingSubtotal'],
|
|
94
93
|
'override_shipping': value['overrideShipping'],
|
|
95
94
|
'insurance_amount': value['insuranceAmount'],
|
|
96
|
-
'include_insurance': value['includeInsurance'],
|
|
97
95
|
'override_insurance': value['overrideInsurance'],
|
|
98
|
-
'shipping_address': (0,
|
|
96
|
+
'shipping_address': (0, UpdateOrderRequestShippingAddress_1.UpdateOrderRequestShippingAddressToJSON)(value['shippingAddress']),
|
|
99
97
|
'billing_address': (0, UpdateOrderRequestBillingAddress_1.UpdateOrderRequestBillingAddressToJSON)(value['billingAddress']),
|
|
100
98
|
};
|
|
101
99
|
}
|
|
@@ -21,6 +21,12 @@ 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;
|
|
24
30
|
/**
|
|
25
31
|
*
|
|
26
32
|
* @type {string}
|
|
@@ -35,6 +35,7 @@ function UpdateOrderRequestBillingAddressFromJSONTyped(json, ignoreDiscriminator
|
|
|
35
35
|
}
|
|
36
36
|
return {
|
|
37
37
|
'addresseeName': json['addressee_name'],
|
|
38
|
+
'addressee': json['addressee'] == null ? undefined : json['addressee'],
|
|
38
39
|
'company': json['company'] == null ? undefined : json['company'],
|
|
39
40
|
'line1': json['line_1'] == null ? undefined : json['line_1'],
|
|
40
41
|
'line2': json['line_2'] == null ? undefined : json['line_2'],
|
|
@@ -54,6 +55,7 @@ function UpdateOrderRequestBillingAddressToJSONTyped(value, ignoreDiscriminator)
|
|
|
54
55
|
}
|
|
55
56
|
return {
|
|
56
57
|
'addressee_name': value['addresseeName'],
|
|
58
|
+
'addressee': value['addressee'],
|
|
57
59
|
'company': value['company'],
|
|
58
60
|
'line_1': value['line1'],
|
|
59
61
|
'line_2': value['line2'],
|
|
@@ -0,0 +1,80 @@
|
|
|
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 UpdateOrderRequestShippingAddress
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateOrderRequestShippingAddress {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UpdateOrderRequestShippingAddress
|
|
22
|
+
*/
|
|
23
|
+
addresseeName: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof UpdateOrderRequestShippingAddress
|
|
28
|
+
*/
|
|
29
|
+
addressee?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof UpdateOrderRequestShippingAddress
|
|
34
|
+
*/
|
|
35
|
+
company?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof UpdateOrderRequestShippingAddress
|
|
40
|
+
*/
|
|
41
|
+
line1?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof UpdateOrderRequestShippingAddress
|
|
46
|
+
*/
|
|
47
|
+
line2?: string | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof UpdateOrderRequestShippingAddress
|
|
52
|
+
*/
|
|
53
|
+
suburb?: string | null;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof UpdateOrderRequestShippingAddress
|
|
58
|
+
*/
|
|
59
|
+
state?: string | null;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof UpdateOrderRequestShippingAddress
|
|
64
|
+
*/
|
|
65
|
+
postcode?: string | null;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof UpdateOrderRequestShippingAddress
|
|
70
|
+
*/
|
|
71
|
+
country?: string | null;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Check if a given object implements the UpdateOrderRequestShippingAddress interface.
|
|
75
|
+
*/
|
|
76
|
+
export declare function instanceOfUpdateOrderRequestShippingAddress(value: object): value is UpdateOrderRequestShippingAddress;
|
|
77
|
+
export declare function UpdateOrderRequestShippingAddressFromJSON(json: any): UpdateOrderRequestShippingAddress;
|
|
78
|
+
export declare function UpdateOrderRequestShippingAddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateOrderRequestShippingAddress;
|
|
79
|
+
export declare function UpdateOrderRequestShippingAddressToJSON(json: any): UpdateOrderRequestShippingAddress;
|
|
80
|
+
export declare function UpdateOrderRequestShippingAddressToJSONTyped(value?: UpdateOrderRequestShippingAddress | null, ignoreDiscriminator?: boolean): any;
|