@digital8/lighting-illusions-ts-sdk 0.0.1911 → 0.0.1913
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 +64 -0
- package/dist/apis/TransactionsApi.js +257 -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 +3 -1
- package/dist/models/AddressResource.d.ts +2 -2
- package/dist/models/AddressResource.js +6 -2
- 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 +2 -2
- package/dist/models/StoreFrontendResource.js +6 -2
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +3 -1
- package/dist/models/StoreResource.d.ts +2 -2
- package/dist/models/StoreResource.js +6 -2
- 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/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/package.json +1 -1
- package/src/apis/TransactionsApi.ts +186 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AddressFrontendResource.ts +3 -2
- package/src/models/AddressResource.ts +6 -4
- 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 +6 -4
- package/src/models/StoreListResource.ts +3 -2
- package/src/models/StoreResource.ts +6 -4
- 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/index.ts +13 -0
|
@@ -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
|
+
}
|
|
@@ -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
|
+
extendedData?: 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
|
+
'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 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_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 { 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
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -156,6 +156,7 @@ export * from './IndexSiteRequest';
|
|
|
156
156
|
export * from './IndexStoreRequest';
|
|
157
157
|
export * from './IndexSupplierRequest';
|
|
158
158
|
export * from './IndexTagRequest';
|
|
159
|
+
export * from './IndexTransactionRequest';
|
|
159
160
|
export * from './LabelListResource';
|
|
160
161
|
export * from './LabelListResourceArrayResponse';
|
|
161
162
|
export * from './LabelLiteResource';
|
|
@@ -261,7 +262,12 @@ export * from './PaginatedSupplierResourceResponse';
|
|
|
261
262
|
export * from './PaginatedTagListResourceResponse';
|
|
262
263
|
export * from './PaginatedTagLiteResourceResponse';
|
|
263
264
|
export * from './PaginatedTagResourceResponse';
|
|
265
|
+
export * from './PaginatedTransactionListResourceResponse';
|
|
266
|
+
export * from './PaginatedTransactionResourceResponse';
|
|
264
267
|
export * from './PagingMetadata';
|
|
268
|
+
export * from './PaymentMethod';
|
|
269
|
+
export * from './PaymentSource';
|
|
270
|
+
export * from './PaymentStatus';
|
|
265
271
|
export * from './PreviewAutomationRulesProductCategoryRequest';
|
|
266
272
|
export * from './PreviewAutomationRulesResource';
|
|
267
273
|
export * from './PreviewAutomationRulesResourceArrayResponse';
|
|
@@ -361,6 +367,7 @@ export * from './RedirectFrontendResource';
|
|
|
361
367
|
export * from './RedirectFrontendResourceArrayResponse';
|
|
362
368
|
export * from './RedirectListResource';
|
|
363
369
|
export * from './RedirectListResourceArrayResponse';
|
|
370
|
+
export * from './RefundTransactionRequest';
|
|
364
371
|
export * from './SEOResource';
|
|
365
372
|
export * from './SEOResourceArrayResponse';
|
|
366
373
|
export * from './SearchLinkablesMenuItemRequest';
|
|
@@ -431,6 +438,7 @@ export * from './StoreStoreRequestSpecialDatesInner';
|
|
|
431
438
|
export * from './StoreStoreSpecialDateRequest';
|
|
432
439
|
export * from './StoreSupplierRequest';
|
|
433
440
|
export * from './StoreTagRequest';
|
|
441
|
+
export * from './StoreTransactionRequest';
|
|
434
442
|
export * from './SupplierFrontendResource';
|
|
435
443
|
export * from './SupplierFrontendResourceArrayResponse';
|
|
436
444
|
export * from './SupplierListResource';
|
|
@@ -448,6 +456,11 @@ export * from './TagLiteResourceArrayResponse';
|
|
|
448
456
|
export * from './TagResource';
|
|
449
457
|
export * from './TagResourceArrayResponse';
|
|
450
458
|
export * from './TagType';
|
|
459
|
+
export * from './TransactionListResource';
|
|
460
|
+
export * from './TransactionListResourceArrayResponse';
|
|
461
|
+
export * from './TransactionResource';
|
|
462
|
+
export * from './TransactionResourceArrayResponse';
|
|
463
|
+
export * from './TransactionType';
|
|
451
464
|
export * from './UpdateAssetForAssetableRequest';
|
|
452
465
|
export * from './UpdateAttributeRequest';
|
|
453
466
|
export * from './UpdateAttributeValueRequest';
|
package/dist/models/index.js
CHANGED
|
@@ -174,6 +174,7 @@ __exportStar(require("./IndexSiteRequest"), exports);
|
|
|
174
174
|
__exportStar(require("./IndexStoreRequest"), exports);
|
|
175
175
|
__exportStar(require("./IndexSupplierRequest"), exports);
|
|
176
176
|
__exportStar(require("./IndexTagRequest"), exports);
|
|
177
|
+
__exportStar(require("./IndexTransactionRequest"), exports);
|
|
177
178
|
__exportStar(require("./LabelListResource"), exports);
|
|
178
179
|
__exportStar(require("./LabelListResourceArrayResponse"), exports);
|
|
179
180
|
__exportStar(require("./LabelLiteResource"), exports);
|
|
@@ -279,7 +280,12 @@ __exportStar(require("./PaginatedSupplierResourceResponse"), exports);
|
|
|
279
280
|
__exportStar(require("./PaginatedTagListResourceResponse"), exports);
|
|
280
281
|
__exportStar(require("./PaginatedTagLiteResourceResponse"), exports);
|
|
281
282
|
__exportStar(require("./PaginatedTagResourceResponse"), exports);
|
|
283
|
+
__exportStar(require("./PaginatedTransactionListResourceResponse"), exports);
|
|
284
|
+
__exportStar(require("./PaginatedTransactionResourceResponse"), exports);
|
|
282
285
|
__exportStar(require("./PagingMetadata"), exports);
|
|
286
|
+
__exportStar(require("./PaymentMethod"), exports);
|
|
287
|
+
__exportStar(require("./PaymentSource"), exports);
|
|
288
|
+
__exportStar(require("./PaymentStatus"), exports);
|
|
283
289
|
__exportStar(require("./PreviewAutomationRulesProductCategoryRequest"), exports);
|
|
284
290
|
__exportStar(require("./PreviewAutomationRulesResource"), exports);
|
|
285
291
|
__exportStar(require("./PreviewAutomationRulesResourceArrayResponse"), exports);
|
|
@@ -379,6 +385,7 @@ __exportStar(require("./RedirectFrontendResource"), exports);
|
|
|
379
385
|
__exportStar(require("./RedirectFrontendResourceArrayResponse"), exports);
|
|
380
386
|
__exportStar(require("./RedirectListResource"), exports);
|
|
381
387
|
__exportStar(require("./RedirectListResourceArrayResponse"), exports);
|
|
388
|
+
__exportStar(require("./RefundTransactionRequest"), exports);
|
|
382
389
|
__exportStar(require("./SEOResource"), exports);
|
|
383
390
|
__exportStar(require("./SEOResourceArrayResponse"), exports);
|
|
384
391
|
__exportStar(require("./SearchLinkablesMenuItemRequest"), exports);
|
|
@@ -449,6 +456,7 @@ __exportStar(require("./StoreStoreRequestSpecialDatesInner"), exports);
|
|
|
449
456
|
__exportStar(require("./StoreStoreSpecialDateRequest"), exports);
|
|
450
457
|
__exportStar(require("./StoreSupplierRequest"), exports);
|
|
451
458
|
__exportStar(require("./StoreTagRequest"), exports);
|
|
459
|
+
__exportStar(require("./StoreTransactionRequest"), exports);
|
|
452
460
|
__exportStar(require("./SupplierFrontendResource"), exports);
|
|
453
461
|
__exportStar(require("./SupplierFrontendResourceArrayResponse"), exports);
|
|
454
462
|
__exportStar(require("./SupplierListResource"), exports);
|
|
@@ -466,6 +474,11 @@ __exportStar(require("./TagLiteResourceArrayResponse"), exports);
|
|
|
466
474
|
__exportStar(require("./TagResource"), exports);
|
|
467
475
|
__exportStar(require("./TagResourceArrayResponse"), exports);
|
|
468
476
|
__exportStar(require("./TagType"), exports);
|
|
477
|
+
__exportStar(require("./TransactionListResource"), exports);
|
|
478
|
+
__exportStar(require("./TransactionListResourceArrayResponse"), exports);
|
|
479
|
+
__exportStar(require("./TransactionResource"), exports);
|
|
480
|
+
__exportStar(require("./TransactionResourceArrayResponse"), exports);
|
|
481
|
+
__exportStar(require("./TransactionType"), exports);
|
|
469
482
|
__exportStar(require("./UpdateAssetForAssetableRequest"), exports);
|
|
470
483
|
__exportStar(require("./UpdateAttributeRequest"), exports);
|
|
471
484
|
__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
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# PaginatedTransactionListResourceResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<TransactionListResource>](TransactionListResource.md)
|
|
10
|
+
`meta` | [PagingMetadata](PagingMetadata.md)
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { PaginatedTransactionListResourceResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"data": null,
|
|
20
|
+
"meta": null,
|
|
21
|
+
} satisfies PaginatedTransactionListResourceResponse
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as PaginatedTransactionListResourceResponse
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|