@digital8/lighting-illusions-ts-sdk 0.0.1929 → 0.0.1930
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 +28 -0
- package/README.md +18 -2
- package/dist/apis/TransactionsApi.d.ts +69 -0
- package/dist/apis/TransactionsApi.js +262 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +1 -3
- package/dist/models/AddressResource.d.ts +2 -2
- package/dist/models/AddressResource.js +3 -3
- package/dist/models/IndexTransactionRequest.d.ts +127 -0
- package/dist/models/IndexTransactionRequest.js +91 -0
- package/dist/models/PaginatedTransactionListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedTransactionListResourceResponse.js +57 -0
- package/dist/models/PaginatedTransactionResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedTransactionResourceResponse.js +57 -0
- package/dist/models/PaymentMethod.d.ts +30 -0
- package/dist/models/PaymentMethod.js +56 -0
- package/dist/models/PaymentSource.d.ts +26 -0
- package/dist/models/PaymentSource.js +52 -0
- package/dist/models/PaymentStatus.d.ts +25 -0
- package/dist/models/PaymentStatus.js +51 -0
- package/dist/models/RefundTransactionRequest.d.ts +38 -0
- package/dist/models/RefundTransactionRequest.js +53 -0
- 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/StoreTransactionRequest.d.ts +81 -0
- package/dist/models/StoreTransactionRequest.js +78 -0
- 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 +152 -0
- package/dist/models/TransactionResource.js +109 -0
- package/dist/models/TransactionResourceArrayResponse.d.ts +33 -0
- package/dist/models/TransactionResourceArrayResponse.js +50 -0
- package/dist/models/TransactionType.d.ts +25 -0
- package/dist/models/TransactionType.js +51 -0
- package/dist/models/UpdateOrderRequestBillingAddress.d.ts +6 -0
- package/dist/models/UpdateOrderRequestBillingAddress.js +2 -0
- package/dist/models/UpdateOrderRequestShippingAddress.d.ts +7 -1
- package/dist/models/UpdateOrderRequestShippingAddress.js +5 -1
- package/dist/models/index.d.ts +13 -0
- package/dist/models/index.js +13 -0
- package/docs/IndexTransactionRequest.md +60 -0
- package/docs/PaginatedTransactionListResourceResponse.md +36 -0
- package/docs/PaginatedTransactionResourceResponse.md +36 -0
- package/docs/PaymentMethod.md +32 -0
- package/docs/PaymentSource.md +32 -0
- package/docs/PaymentStatus.md +32 -0
- package/docs/RefundTransactionRequest.md +36 -0
- package/docs/StoreTransactionRequest.md +46 -0
- package/docs/TransactionListResource.md +74 -0
- package/docs/TransactionListResourceArrayResponse.md +34 -0
- package/docs/TransactionResource.md +74 -0
- package/docs/TransactionResourceArrayResponse.md +34 -0
- package/docs/TransactionType.md +32 -0
- package/docs/TransactionsApi.md +209 -0
- package/docs/UpdateOrderRequestBillingAddress.md +2 -0
- package/docs/UpdateOrderRequestShippingAddress.md +2 -0
- package/package.json +1 -1
- package/src/apis/TransactionsApi.ts +193 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AddressFrontendResource.ts +2 -3
- package/src/models/AddressResource.ts +5 -5
- package/src/models/IndexTransactionRequest.ts +190 -0
- package/src/models/PaginatedTransactionListResourceResponse.ts +90 -0
- package/src/models/PaginatedTransactionResourceResponse.ts +90 -0
- package/src/models/PaymentMethod.ts +58 -0
- package/src/models/PaymentSource.ts +54 -0
- package/src/models/PaymentStatus.ts +53 -0
- package/src/models/RefundTransactionRequest.ts +74 -0
- package/src/models/StoreFrontendResource.ts +3 -2
- package/src/models/StoreResource.ts +3 -2
- package/src/models/StoreTransactionRequest.ts +131 -0
- package/src/models/TransactionListResource.ts +235 -0
- package/src/models/TransactionListResourceArrayResponse.ts +73 -0
- package/src/models/TransactionResource.ts +235 -0
- package/src/models/TransactionResourceArrayResponse.ts +73 -0
- package/src/models/TransactionType.ts +53 -0
- package/src/models/UpdateOrderRequestBillingAddress.ts +8 -0
- package/src/models/UpdateOrderRequestShippingAddress.ts +11 -2
- package/src/models/index.ts +13 -0
|
@@ -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 TransactionResource
|
|
16
|
+
*/
|
|
17
|
+
export interface TransactionResource {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof TransactionResource
|
|
22
|
+
*/
|
|
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
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof TransactionResource
|
|
46
|
+
*/
|
|
47
|
+
paymentSource: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof TransactionResource
|
|
52
|
+
*/
|
|
53
|
+
paymentMethod: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof TransactionResource
|
|
58
|
+
*/
|
|
59
|
+
type: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof TransactionResource
|
|
64
|
+
*/
|
|
65
|
+
status: string;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof TransactionResource
|
|
70
|
+
*/
|
|
71
|
+
amount: number;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {number}
|
|
75
|
+
* @memberof TransactionResource
|
|
76
|
+
*/
|
|
77
|
+
surcharge: number;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {number}
|
|
81
|
+
* @memberof TransactionResource
|
|
82
|
+
*/
|
|
83
|
+
totalAmount: number;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {number}
|
|
87
|
+
* @memberof TransactionResource
|
|
88
|
+
*/
|
|
89
|
+
refundedAmount: number;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {number}
|
|
93
|
+
* @memberof TransactionResource
|
|
94
|
+
*/
|
|
95
|
+
unrefundedAmount: number;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {string}
|
|
99
|
+
* @memberof TransactionResource
|
|
100
|
+
*/
|
|
101
|
+
reference: string;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @type {string}
|
|
105
|
+
* @memberof TransactionResource
|
|
106
|
+
*/
|
|
107
|
+
description?: string | null;
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @type {string}
|
|
111
|
+
* @memberof TransactionResource
|
|
112
|
+
*/
|
|
113
|
+
extendedDate?: string | null;
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* @type {string}
|
|
117
|
+
* @memberof TransactionResource
|
|
118
|
+
*/
|
|
119
|
+
riskScore?: string | null;
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
* @type {string}
|
|
123
|
+
* @memberof TransactionResource
|
|
124
|
+
*/
|
|
125
|
+
fraudDecision?: string | null;
|
|
126
|
+
/**
|
|
127
|
+
*
|
|
128
|
+
* @type {number}
|
|
129
|
+
* @memberof TransactionResource
|
|
130
|
+
*/
|
|
131
|
+
refundedTransactionId?: number | null;
|
|
132
|
+
/**
|
|
133
|
+
*
|
|
134
|
+
* @type {Date}
|
|
135
|
+
* @memberof TransactionResource
|
|
136
|
+
*/
|
|
137
|
+
createdAt?: Date | null;
|
|
138
|
+
/**
|
|
139
|
+
*
|
|
140
|
+
* @type {Date}
|
|
141
|
+
* @memberof TransactionResource
|
|
142
|
+
*/
|
|
143
|
+
updatedAt?: Date | null;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Check if a given object implements the TransactionResource interface.
|
|
147
|
+
*/
|
|
148
|
+
export declare function instanceOfTransactionResource(value: object): value is TransactionResource;
|
|
149
|
+
export declare function TransactionResourceFromJSON(json: any): TransactionResource;
|
|
150
|
+
export declare function TransactionResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionResource;
|
|
151
|
+
export declare function TransactionResourceToJSON(json: any): TransactionResource;
|
|
152
|
+
export declare function TransactionResourceToJSONTyped(value?: TransactionResource | 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.instanceOfTransactionResource = instanceOfTransactionResource;
|
|
17
|
+
exports.TransactionResourceFromJSON = TransactionResourceFromJSON;
|
|
18
|
+
exports.TransactionResourceFromJSONTyped = TransactionResourceFromJSONTyped;
|
|
19
|
+
exports.TransactionResourceToJSON = TransactionResourceToJSON;
|
|
20
|
+
exports.TransactionResourceToJSONTyped = TransactionResourceToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the TransactionResource interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfTransactionResource(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 TransactionResourceFromJSON(json) {
|
|
48
|
+
return TransactionResourceFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function TransactionResourceFromJSONTyped(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
|
+
'extendedDate': json['extended_date'] == null ? undefined : json['extended_date'],
|
|
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 TransactionResourceToJSON(json) {
|
|
79
|
+
return TransactionResourceToJSONTyped(json, false);
|
|
80
|
+
}
|
|
81
|
+
function TransactionResourceToJSONTyped(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_date': value['extendedDate'],
|
|
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 { TransactionResource } from './TransactionResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface TransactionResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface TransactionResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<TransactionResource>}
|
|
22
|
+
* @memberof TransactionResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<TransactionResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the TransactionResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfTransactionResourceArrayResponse(value: object): value is TransactionResourceArrayResponse;
|
|
30
|
+
export declare function TransactionResourceArrayResponseFromJSON(json: any): TransactionResourceArrayResponse;
|
|
31
|
+
export declare function TransactionResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionResourceArrayResponse;
|
|
32
|
+
export declare function TransactionResourceArrayResponseToJSON(json: any): TransactionResourceArrayResponse;
|
|
33
|
+
export declare function TransactionResourceArrayResponseToJSONTyped(value?: TransactionResourceArrayResponse | 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.instanceOfTransactionResourceArrayResponse = instanceOfTransactionResourceArrayResponse;
|
|
17
|
+
exports.TransactionResourceArrayResponseFromJSON = TransactionResourceArrayResponseFromJSON;
|
|
18
|
+
exports.TransactionResourceArrayResponseFromJSONTyped = TransactionResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.TransactionResourceArrayResponseToJSON = TransactionResourceArrayResponseToJSON;
|
|
20
|
+
exports.TransactionResourceArrayResponseToJSONTyped = TransactionResourceArrayResponseToJSONTyped;
|
|
21
|
+
var TransactionResource_1 = require("./TransactionResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the TransactionResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfTransactionResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function TransactionResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return TransactionResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function TransactionResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(TransactionResource_1.TransactionResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function TransactionResourceArrayResponseToJSON(json) {
|
|
40
|
+
return TransactionResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function TransactionResourceArrayResponseToJSONTyped(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(TransactionResource_1.TransactionResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
*/
|
|
16
|
+
export declare const TransactionType: {
|
|
17
|
+
readonly Transaction: "transaction";
|
|
18
|
+
readonly Refund: "refund";
|
|
19
|
+
};
|
|
20
|
+
export type TransactionType = typeof TransactionType[keyof typeof TransactionType];
|
|
21
|
+
export declare function instanceOfTransactionType(value: any): boolean;
|
|
22
|
+
export declare function TransactionTypeFromJSON(json: any): TransactionType;
|
|
23
|
+
export declare function TransactionTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionType;
|
|
24
|
+
export declare function TransactionTypeToJSON(value?: TransactionType | null): any;
|
|
25
|
+
export declare function TransactionTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): TransactionType;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.TransactionType = void 0;
|
|
17
|
+
exports.instanceOfTransactionType = instanceOfTransactionType;
|
|
18
|
+
exports.TransactionTypeFromJSON = TransactionTypeFromJSON;
|
|
19
|
+
exports.TransactionTypeFromJSONTyped = TransactionTypeFromJSONTyped;
|
|
20
|
+
exports.TransactionTypeToJSON = TransactionTypeToJSON;
|
|
21
|
+
exports.TransactionTypeToJSONTyped = TransactionTypeToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.TransactionType = {
|
|
27
|
+
Transaction: 'transaction',
|
|
28
|
+
Refund: 'refund'
|
|
29
|
+
};
|
|
30
|
+
function instanceOfTransactionType(value) {
|
|
31
|
+
for (var key in exports.TransactionType) {
|
|
32
|
+
if (Object.prototype.hasOwnProperty.call(exports.TransactionType, key)) {
|
|
33
|
+
if (exports.TransactionType[key] === value) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
function TransactionTypeFromJSON(json) {
|
|
41
|
+
return TransactionTypeFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function TransactionTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
function TransactionTypeToJSON(value) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
function TransactionTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
@@ -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'],
|
|
@@ -20,7 +20,13 @@ export interface UpdateOrderRequestShippingAddress {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof UpdateOrderRequestShippingAddress
|
|
22
22
|
*/
|
|
23
|
-
addresseeName
|
|
23
|
+
addresseeName: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof UpdateOrderRequestShippingAddress
|
|
28
|
+
*/
|
|
29
|
+
addressee?: string | null;
|
|
24
30
|
/**
|
|
25
31
|
*
|
|
26
32
|
* @type {string}
|
|
@@ -22,6 +22,8 @@ exports.UpdateOrderRequestShippingAddressToJSONTyped = UpdateOrderRequestShippin
|
|
|
22
22
|
* Check if a given object implements the UpdateOrderRequestShippingAddress interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfUpdateOrderRequestShippingAddress(value) {
|
|
25
|
+
if (!('addresseeName' in value) || value['addresseeName'] === undefined)
|
|
26
|
+
return false;
|
|
25
27
|
return true;
|
|
26
28
|
}
|
|
27
29
|
function UpdateOrderRequestShippingAddressFromJSON(json) {
|
|
@@ -32,7 +34,8 @@ function UpdateOrderRequestShippingAddressFromJSONTyped(json, ignoreDiscriminato
|
|
|
32
34
|
return json;
|
|
33
35
|
}
|
|
34
36
|
return {
|
|
35
|
-
'addresseeName': json['addressee_name']
|
|
37
|
+
'addresseeName': json['addressee_name'],
|
|
38
|
+
'addressee': json['addressee'] == null ? undefined : json['addressee'],
|
|
36
39
|
'company': json['company'] == null ? undefined : json['company'],
|
|
37
40
|
'line1': json['line_1'] == null ? undefined : json['line_1'],
|
|
38
41
|
'line2': json['line_2'] == null ? undefined : json['line_2'],
|
|
@@ -52,6 +55,7 @@ function UpdateOrderRequestShippingAddressToJSONTyped(value, ignoreDiscriminator
|
|
|
52
55
|
}
|
|
53
56
|
return {
|
|
54
57
|
'addressee_name': value['addresseeName'],
|
|
58
|
+
'addressee': value['addressee'],
|
|
55
59
|
'company': value['company'],
|
|
56
60
|
'line_1': value['line1'],
|
|
57
61
|
'line_2': value['line2'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -158,6 +158,7 @@ export * from './IndexSiteRequest';
|
|
|
158
158
|
export * from './IndexStoreRequest';
|
|
159
159
|
export * from './IndexSupplierRequest';
|
|
160
160
|
export * from './IndexTagRequest';
|
|
161
|
+
export * from './IndexTransactionRequest';
|
|
161
162
|
export * from './LabelListResource';
|
|
162
163
|
export * from './LabelListResourceArrayResponse';
|
|
163
164
|
export * from './LabelLiteResource';
|
|
@@ -265,7 +266,12 @@ export * from './PaginatedSupplierResourceResponse';
|
|
|
265
266
|
export * from './PaginatedTagListResourceResponse';
|
|
266
267
|
export * from './PaginatedTagLiteResourceResponse';
|
|
267
268
|
export * from './PaginatedTagResourceResponse';
|
|
269
|
+
export * from './PaginatedTransactionListResourceResponse';
|
|
270
|
+
export * from './PaginatedTransactionResourceResponse';
|
|
268
271
|
export * from './PagingMetadata';
|
|
272
|
+
export * from './PaymentMethod';
|
|
273
|
+
export * from './PaymentSource';
|
|
274
|
+
export * from './PaymentStatus';
|
|
269
275
|
export * from './PreviewAutomationRulesProductCategoryRequest';
|
|
270
276
|
export * from './PreviewAutomationRulesResource';
|
|
271
277
|
export * from './PreviewAutomationRulesResourceArrayResponse';
|
|
@@ -365,6 +371,7 @@ export * from './RedirectFrontendResource';
|
|
|
365
371
|
export * from './RedirectFrontendResourceArrayResponse';
|
|
366
372
|
export * from './RedirectListResource';
|
|
367
373
|
export * from './RedirectListResourceArrayResponse';
|
|
374
|
+
export * from './RefundTransactionRequest';
|
|
368
375
|
export * from './SEOResource';
|
|
369
376
|
export * from './SEOResourceArrayResponse';
|
|
370
377
|
export * from './SearchLinkablesMenuItemRequest';
|
|
@@ -435,6 +442,7 @@ export * from './StoreStoreRequestSpecialDatesInner';
|
|
|
435
442
|
export * from './StoreStoreSpecialDateRequest';
|
|
436
443
|
export * from './StoreSupplierRequest';
|
|
437
444
|
export * from './StoreTagRequest';
|
|
445
|
+
export * from './StoreTransactionRequest';
|
|
438
446
|
export * from './SupplierFrontendResource';
|
|
439
447
|
export * from './SupplierFrontendResourceArrayResponse';
|
|
440
448
|
export * from './SupplierListResource';
|
|
@@ -452,6 +460,11 @@ export * from './TagLiteResourceArrayResponse';
|
|
|
452
460
|
export * from './TagResource';
|
|
453
461
|
export * from './TagResourceArrayResponse';
|
|
454
462
|
export * from './TagType';
|
|
463
|
+
export * from './TransactionListResource';
|
|
464
|
+
export * from './TransactionListResourceArrayResponse';
|
|
465
|
+
export * from './TransactionResource';
|
|
466
|
+
export * from './TransactionResourceArrayResponse';
|
|
467
|
+
export * from './TransactionType';
|
|
455
468
|
export * from './UpdateAssetForAssetableRequest';
|
|
456
469
|
export * from './UpdateAttributeRequest';
|
|
457
470
|
export * from './UpdateAttributeValueRequest';
|
package/dist/models/index.js
CHANGED
|
@@ -176,6 +176,7 @@ __exportStar(require("./IndexSiteRequest"), exports);
|
|
|
176
176
|
__exportStar(require("./IndexStoreRequest"), exports);
|
|
177
177
|
__exportStar(require("./IndexSupplierRequest"), exports);
|
|
178
178
|
__exportStar(require("./IndexTagRequest"), exports);
|
|
179
|
+
__exportStar(require("./IndexTransactionRequest"), exports);
|
|
179
180
|
__exportStar(require("./LabelListResource"), exports);
|
|
180
181
|
__exportStar(require("./LabelListResourceArrayResponse"), exports);
|
|
181
182
|
__exportStar(require("./LabelLiteResource"), exports);
|
|
@@ -283,7 +284,12 @@ __exportStar(require("./PaginatedSupplierResourceResponse"), exports);
|
|
|
283
284
|
__exportStar(require("./PaginatedTagListResourceResponse"), exports);
|
|
284
285
|
__exportStar(require("./PaginatedTagLiteResourceResponse"), exports);
|
|
285
286
|
__exportStar(require("./PaginatedTagResourceResponse"), exports);
|
|
287
|
+
__exportStar(require("./PaginatedTransactionListResourceResponse"), exports);
|
|
288
|
+
__exportStar(require("./PaginatedTransactionResourceResponse"), exports);
|
|
286
289
|
__exportStar(require("./PagingMetadata"), exports);
|
|
290
|
+
__exportStar(require("./PaymentMethod"), exports);
|
|
291
|
+
__exportStar(require("./PaymentSource"), exports);
|
|
292
|
+
__exportStar(require("./PaymentStatus"), exports);
|
|
287
293
|
__exportStar(require("./PreviewAutomationRulesProductCategoryRequest"), exports);
|
|
288
294
|
__exportStar(require("./PreviewAutomationRulesResource"), exports);
|
|
289
295
|
__exportStar(require("./PreviewAutomationRulesResourceArrayResponse"), exports);
|
|
@@ -383,6 +389,7 @@ __exportStar(require("./RedirectFrontendResource"), exports);
|
|
|
383
389
|
__exportStar(require("./RedirectFrontendResourceArrayResponse"), exports);
|
|
384
390
|
__exportStar(require("./RedirectListResource"), exports);
|
|
385
391
|
__exportStar(require("./RedirectListResourceArrayResponse"), exports);
|
|
392
|
+
__exportStar(require("./RefundTransactionRequest"), exports);
|
|
386
393
|
__exportStar(require("./SEOResource"), exports);
|
|
387
394
|
__exportStar(require("./SEOResourceArrayResponse"), exports);
|
|
388
395
|
__exportStar(require("./SearchLinkablesMenuItemRequest"), exports);
|
|
@@ -453,6 +460,7 @@ __exportStar(require("./StoreStoreRequestSpecialDatesInner"), exports);
|
|
|
453
460
|
__exportStar(require("./StoreStoreSpecialDateRequest"), exports);
|
|
454
461
|
__exportStar(require("./StoreSupplierRequest"), exports);
|
|
455
462
|
__exportStar(require("./StoreTagRequest"), exports);
|
|
463
|
+
__exportStar(require("./StoreTransactionRequest"), exports);
|
|
456
464
|
__exportStar(require("./SupplierFrontendResource"), exports);
|
|
457
465
|
__exportStar(require("./SupplierFrontendResourceArrayResponse"), exports);
|
|
458
466
|
__exportStar(require("./SupplierListResource"), exports);
|
|
@@ -470,6 +478,11 @@ __exportStar(require("./TagLiteResourceArrayResponse"), exports);
|
|
|
470
478
|
__exportStar(require("./TagResource"), exports);
|
|
471
479
|
__exportStar(require("./TagResourceArrayResponse"), exports);
|
|
472
480
|
__exportStar(require("./TagType"), exports);
|
|
481
|
+
__exportStar(require("./TransactionListResource"), exports);
|
|
482
|
+
__exportStar(require("./TransactionListResourceArrayResponse"), exports);
|
|
483
|
+
__exportStar(require("./TransactionResource"), exports);
|
|
484
|
+
__exportStar(require("./TransactionResourceArrayResponse"), exports);
|
|
485
|
+
__exportStar(require("./TransactionType"), exports);
|
|
473
486
|
__exportStar(require("./UpdateAssetForAssetableRequest"), exports);
|
|
474
487
|
__exportStar(require("./UpdateAttributeRequest"), exports);
|
|
475
488
|
__exportStar(require("./UpdateAttributeValueRequest"), exports);
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
|
|
2
|
+
# IndexTransactionRequest
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`search` | string
|
|
10
|
+
`sortBy` | string
|
|
11
|
+
`sortDirection` | string
|
|
12
|
+
`perPage` | number
|
|
13
|
+
`page` | number
|
|
14
|
+
`paymentSource` | Array<string>
|
|
15
|
+
`type` | Array<string>
|
|
16
|
+
`paymentMethod` | Array<string>
|
|
17
|
+
`status` | Array<string>
|
|
18
|
+
`beforeCreatedAt` | Date
|
|
19
|
+
`afterCreatedAt` | Date
|
|
20
|
+
`relatedId` | number
|
|
21
|
+
`relatedType` | string
|
|
22
|
+
`includesRelations` | boolean
|
|
23
|
+
|
|
24
|
+
## Example
|
|
25
|
+
|
|
26
|
+
```typescript
|
|
27
|
+
import type { IndexTransactionRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
28
|
+
|
|
29
|
+
// TODO: Update the object below with actual values
|
|
30
|
+
const example = {
|
|
31
|
+
"search": null,
|
|
32
|
+
"sortBy": null,
|
|
33
|
+
"sortDirection": null,
|
|
34
|
+
"perPage": null,
|
|
35
|
+
"page": null,
|
|
36
|
+
"paymentSource": null,
|
|
37
|
+
"type": null,
|
|
38
|
+
"paymentMethod": null,
|
|
39
|
+
"status": null,
|
|
40
|
+
"beforeCreatedAt": null,
|
|
41
|
+
"afterCreatedAt": null,
|
|
42
|
+
"relatedId": null,
|
|
43
|
+
"relatedType": null,
|
|
44
|
+
"includesRelations": null,
|
|
45
|
+
} satisfies IndexTransactionRequest
|
|
46
|
+
|
|
47
|
+
console.log(example)
|
|
48
|
+
|
|
49
|
+
// Convert the instance to a JSON string
|
|
50
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
51
|
+
console.log(exampleJSON)
|
|
52
|
+
|
|
53
|
+
// Parse the JSON string back to an object
|
|
54
|
+
const exampleParsed = JSON.parse(exampleJSON) as IndexTransactionRequest
|
|
55
|
+
console.log(exampleParsed)
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
59
|
+
|
|
60
|
+
|