@digital8/lighting-illusions-ts-sdk 0.0.1931 → 0.0.1933
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 -36
- package/README.md +7 -24
- package/dist/apis/AdminApi.d.ts +17 -0
- package/dist/apis/AdminApi.js +60 -0
- package/dist/apis/OrdersApi.d.ts +2 -37
- package/dist/apis/OrdersApi.js +1 -126
- package/dist/apis/index.d.ts +0 -1
- package/dist/apis/index.js +0 -1
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +3 -1
- package/dist/models/AddressResource.d.ts +1 -7
- package/dist/models/AddressResource.js +1 -7
- package/dist/models/AdminNoteResource.d.ts +68 -0
- package/dist/models/AdminNoteResource.js +71 -0
- package/dist/models/AdminNoteResourceArrayResponse.d.ts +33 -0
- package/dist/models/AdminNoteResourceArrayResponse.js +50 -0
- package/dist/models/AdminOrderResource.d.ts +4 -10
- package/dist/models/AdminOrderResource.js +7 -11
- package/dist/models/CartResource.d.ts +3 -9
- package/dist/models/CartResource.js +7 -9
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/GetAllAdminNoteRequest.d.ts +102 -0
- package/dist/models/GetAllAdminNoteRequest.js +82 -0
- package/dist/models/GetAllOrderRequest.d.ts +0 -1
- package/dist/models/GetAllOrderRequest.js +1 -2
- package/dist/models/IndexOrderRequest.d.ts +0 -1
- package/dist/models/IndexOrderRequest.js +1 -2
- package/dist/models/OrderListResource.d.ts +0 -18
- package/dist/models/OrderListResource.js +0 -10
- package/dist/models/PaginatedAdminNoteResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedAdminNoteResourceResponse.js +57 -0
- package/dist/models/StoreCartRequestShippingAddress.d.ts +0 -6
- package/dist/models/StoreCartRequestShippingAddress.js +0 -2
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +1 -3
- package/dist/models/StoreListResource.d.ts +2 -2
- package/dist/models/StoreListResource.js +2 -6
- package/dist/models/StoreResource.d.ts +2 -2
- package/dist/models/StoreResource.js +6 -2
- package/dist/models/StoreStoreRequestAddress.d.ts +0 -6
- package/dist/models/StoreStoreRequestAddress.js +0 -2
- package/dist/models/UpdateOrderRequestBillingAddress.d.ts +1 -1
- package/dist/models/UpdateOrderRequestBillingAddress.js +3 -3
- package/dist/models/UpdateOrderRequestShippingAddress.d.ts +1 -1
- package/dist/models/UpdateOrderRequestShippingAddress.js +3 -3
- package/dist/models/index.d.ts +4 -17
- package/dist/models/index.js +4 -17
- package/docs/AddressResource.md +0 -2
- package/docs/AdminApi.md +66 -0
- package/docs/{OrderStatusWithCountResource.md → AdminNoteResource.md} +16 -10
- package/docs/{TransactionResourceArrayResponse.md → AdminNoteResourceArrayResponse.md} +5 -5
- package/docs/AdminOrderResource.md +3 -5
- package/docs/CartResource.md +4 -6
- package/docs/{IndexTransactionRequest.md → GetAllAdminNoteRequest.md} +8 -16
- package/docs/OrderListResource.md +0 -6
- package/docs/OrdersApi.md +3 -141
- package/docs/{PaginatedTransactionResourceResponse.md → PaginatedAdminNoteResourceResponse.md} +5 -5
- package/docs/StoreCartRequestShippingAddress.md +0 -2
- package/docs/StoreStoreRequestAddress.md +0 -2
- package/docs/UpdateOrderRequestBillingAddress.md +2 -2
- package/docs/UpdateOrderRequestShippingAddress.md +2 -2
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +54 -0
- package/src/apis/OrdersApi.ts +3 -124
- package/src/apis/index.ts +0 -1
- package/src/models/AddressFrontendResource.ts +3 -2
- package/src/models/AddressResource.ts +2 -12
- package/src/models/AdminNoteResource.ts +118 -0
- package/src/models/AdminNoteResourceArrayResponse.ts +73 -0
- package/src/models/AdminOrderResource.ts +10 -19
- package/src/models/CartResource.ts +9 -17
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/GetAllAdminNoteRequest.ts +157 -0
- package/src/models/GetAllOrderRequest.ts +1 -2
- package/src/models/IndexOrderRequest.ts +1 -2
- package/src/models/OrderListResource.ts +0 -26
- package/src/models/PaginatedAdminNoteResourceResponse.ts +90 -0
- package/src/models/StoreCartRequestShippingAddress.ts +0 -8
- package/src/models/StoreFrontendResource.ts +2 -3
- package/src/models/StoreListResource.ts +4 -6
- package/src/models/StoreResource.ts +6 -4
- package/src/models/StoreStoreRequestAddress.ts +0 -8
- package/src/models/UpdateOrderRequestBillingAddress.ts +4 -4
- package/src/models/UpdateOrderRequestShippingAddress.ts +4 -4
- package/src/models/index.ts +4 -17
- package/dist/apis/TransactionsApi.d.ts +0 -69
- package/dist/apis/TransactionsApi.js +0 -262
- package/dist/models/AttachCouponOrderRequest.d.ts +0 -32
- package/dist/models/AttachCouponOrderRequest.js +0 -51
- package/dist/models/DetachCouponOrderRequest.d.ts +0 -32
- package/dist/models/DetachCouponOrderRequest.js +0 -51
- package/dist/models/IndexTransactionRequest.d.ts +0 -127
- package/dist/models/IndexTransactionRequest.js +0 -91
- package/dist/models/OrderStatusWithCountResource.d.ts +0 -50
- package/dist/models/OrderStatusWithCountResource.js +0 -63
- package/dist/models/OrderStatusWithCountResourceArrayResponse.d.ts +0 -33
- package/dist/models/OrderStatusWithCountResourceArrayResponse.js +0 -50
- package/dist/models/PaginatedTransactionListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedTransactionListResourceResponse.js +0 -57
- package/dist/models/PaginatedTransactionResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedTransactionResourceResponse.js +0 -57
- package/dist/models/PaymentMethod.d.ts +0 -30
- package/dist/models/PaymentMethod.js +0 -56
- package/dist/models/PaymentSource.d.ts +0 -26
- package/dist/models/PaymentSource.js +0 -52
- package/dist/models/PaymentStatus.d.ts +0 -25
- package/dist/models/PaymentStatus.js +0 -51
- package/dist/models/RefundTransactionRequest.d.ts +0 -38
- package/dist/models/RefundTransactionRequest.js +0 -53
- package/dist/models/StoreTransactionRequest.d.ts +0 -81
- package/dist/models/StoreTransactionRequest.js +0 -78
- package/dist/models/TransactionListResource.d.ts +0 -152
- package/dist/models/TransactionListResource.js +0 -109
- package/dist/models/TransactionListResourceArrayResponse.d.ts +0 -33
- package/dist/models/TransactionListResourceArrayResponse.js +0 -50
- package/dist/models/TransactionResource.d.ts +0 -152
- package/dist/models/TransactionResource.js +0 -109
- package/dist/models/TransactionResourceArrayResponse.d.ts +0 -33
- package/dist/models/TransactionResourceArrayResponse.js +0 -50
- package/dist/models/TransactionType.d.ts +0 -25
- package/dist/models/TransactionType.js +0 -51
- package/docs/AttachCouponOrderRequest.md +0 -34
- package/docs/DetachCouponOrderRequest.md +0 -34
- package/docs/OrderStatusWithCountResourceArrayResponse.md +0 -34
- package/docs/PaginatedTransactionListResourceResponse.md +0 -36
- package/docs/PaymentMethod.md +0 -32
- package/docs/PaymentSource.md +0 -32
- package/docs/PaymentStatus.md +0 -32
- package/docs/RefundTransactionRequest.md +0 -36
- package/docs/StoreTransactionRequest.md +0 -46
- package/docs/TransactionListResource.md +0 -74
- package/docs/TransactionListResourceArrayResponse.md +0 -34
- package/docs/TransactionResource.md +0 -74
- package/docs/TransactionType.md +0 -32
- package/docs/TransactionsApi.md +0 -209
- package/src/apis/TransactionsApi.ts +0 -193
- package/src/models/AttachCouponOrderRequest.ts +0 -66
- package/src/models/DetachCouponOrderRequest.ts +0 -66
- package/src/models/IndexTransactionRequest.ts +0 -190
- package/src/models/OrderStatusWithCountResource.ts +0 -93
- package/src/models/OrderStatusWithCountResourceArrayResponse.ts +0 -73
- package/src/models/PaginatedTransactionListResourceResponse.ts +0 -90
- package/src/models/PaginatedTransactionResourceResponse.ts +0 -90
- package/src/models/PaymentMethod.ts +0 -58
- package/src/models/PaymentSource.ts +0 -54
- package/src/models/PaymentStatus.ts +0 -53
- package/src/models/RefundTransactionRequest.ts +0 -74
- package/src/models/StoreTransactionRequest.ts +0 -131
- package/src/models/TransactionListResource.ts +0 -235
- package/src/models/TransactionListResourceArrayResponse.ts +0 -73
- package/src/models/TransactionResource.ts +0 -235
- package/src/models/TransactionResourceArrayResponse.ts +0 -73
- package/src/models/TransactionType.ts +0 -53
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* My API
|
|
3
|
-
* API documentation for my Laravel app
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface 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;
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* My API
|
|
6
|
-
* API documentation for my Laravel app
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.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
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* My API
|
|
3
|
-
* API documentation for my Laravel app
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { 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;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* My API
|
|
6
|
-
* API documentation for my Laravel app
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.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
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* My API
|
|
3
|
-
* API documentation for my Laravel app
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
*/
|
|
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;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* My API
|
|
6
|
-
* API documentation for my Laravel app
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.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
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# AttachCouponOrderRequest
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`couponCode` | string
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import type { AttachCouponOrderRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
-
|
|
16
|
-
// TODO: Update the object below with actual values
|
|
17
|
-
const example = {
|
|
18
|
-
"couponCode": null,
|
|
19
|
-
} satisfies AttachCouponOrderRequest
|
|
20
|
-
|
|
21
|
-
console.log(example)
|
|
22
|
-
|
|
23
|
-
// Convert the instance to a JSON string
|
|
24
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
-
console.log(exampleJSON)
|
|
26
|
-
|
|
27
|
-
// Parse the JSON string back to an object
|
|
28
|
-
const exampleParsed = JSON.parse(exampleJSON) as AttachCouponOrderRequest
|
|
29
|
-
console.log(exampleParsed)
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
-
|
|
34
|
-
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# DetachCouponOrderRequest
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`couponId` | number
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import type { DetachCouponOrderRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
-
|
|
16
|
-
// TODO: Update the object below with actual values
|
|
17
|
-
const example = {
|
|
18
|
-
"couponId": null,
|
|
19
|
-
} satisfies DetachCouponOrderRequest
|
|
20
|
-
|
|
21
|
-
console.log(example)
|
|
22
|
-
|
|
23
|
-
// Convert the instance to a JSON string
|
|
24
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
-
console.log(exampleJSON)
|
|
26
|
-
|
|
27
|
-
// Parse the JSON string back to an object
|
|
28
|
-
const exampleParsed = JSON.parse(exampleJSON) as DetachCouponOrderRequest
|
|
29
|
-
console.log(exampleParsed)
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
-
|
|
34
|
-
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# OrderStatusWithCountResourceArrayResponse
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`data` | [Array<OrderStatusWithCountResource>](OrderStatusWithCountResource.md)
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import type { OrderStatusWithCountResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
-
|
|
16
|
-
// TODO: Update the object below with actual values
|
|
17
|
-
const example = {
|
|
18
|
-
"data": null,
|
|
19
|
-
} satisfies OrderStatusWithCountResourceArrayResponse
|
|
20
|
-
|
|
21
|
-
console.log(example)
|
|
22
|
-
|
|
23
|
-
// Convert the instance to a JSON string
|
|
24
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
-
console.log(exampleJSON)
|
|
26
|
-
|
|
27
|
-
// Parse the JSON string back to an object
|
|
28
|
-
const exampleParsed = JSON.parse(exampleJSON) as OrderStatusWithCountResourceArrayResponse
|
|
29
|
-
console.log(exampleParsed)
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
-
|
|
34
|
-
|
|
@@ -1,36 +0,0 @@
|
|
|
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
|
-
|
package/docs/PaymentMethod.md
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# PaymentMethod
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```typescript
|
|
13
|
-
import type { PaymentMethod } from '@digital8/lighting-illusions-ts-sdk'
|
|
14
|
-
|
|
15
|
-
// TODO: Update the object below with actual values
|
|
16
|
-
const example = {
|
|
17
|
-
} satisfies PaymentMethod
|
|
18
|
-
|
|
19
|
-
console.log(example)
|
|
20
|
-
|
|
21
|
-
// Convert the instance to a JSON string
|
|
22
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
23
|
-
console.log(exampleJSON)
|
|
24
|
-
|
|
25
|
-
// Parse the JSON string back to an object
|
|
26
|
-
const exampleParsed = JSON.parse(exampleJSON) as PaymentMethod
|
|
27
|
-
console.log(exampleParsed)
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
31
|
-
|
|
32
|
-
|
package/docs/PaymentSource.md
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# PaymentSource
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```typescript
|
|
13
|
-
import type { PaymentSource } from '@digital8/lighting-illusions-ts-sdk'
|
|
14
|
-
|
|
15
|
-
// TODO: Update the object below with actual values
|
|
16
|
-
const example = {
|
|
17
|
-
} satisfies PaymentSource
|
|
18
|
-
|
|
19
|
-
console.log(example)
|
|
20
|
-
|
|
21
|
-
// Convert the instance to a JSON string
|
|
22
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
23
|
-
console.log(exampleJSON)
|
|
24
|
-
|
|
25
|
-
// Parse the JSON string back to an object
|
|
26
|
-
const exampleParsed = JSON.parse(exampleJSON) as PaymentSource
|
|
27
|
-
console.log(exampleParsed)
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
31
|
-
|
|
32
|
-
|
package/docs/PaymentStatus.md
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# PaymentStatus
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```typescript
|
|
13
|
-
import type { PaymentStatus } from '@digital8/lighting-illusions-ts-sdk'
|
|
14
|
-
|
|
15
|
-
// TODO: Update the object below with actual values
|
|
16
|
-
const example = {
|
|
17
|
-
} satisfies PaymentStatus
|
|
18
|
-
|
|
19
|
-
console.log(example)
|
|
20
|
-
|
|
21
|
-
// Convert the instance to a JSON string
|
|
22
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
23
|
-
console.log(exampleJSON)
|
|
24
|
-
|
|
25
|
-
// Parse the JSON string back to an object
|
|
26
|
-
const exampleParsed = JSON.parse(exampleJSON) as PaymentStatus
|
|
27
|
-
console.log(exampleParsed)
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
31
|
-
|
|
32
|
-
|