@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,66 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* My API
|
|
5
|
-
* API documentation for my Laravel app
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface AttachCouponOrderRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface AttachCouponOrderRequest {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof AttachCouponOrderRequest
|
|
26
|
-
*/
|
|
27
|
-
couponCode: string;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Check if a given object implements the AttachCouponOrderRequest interface.
|
|
32
|
-
*/
|
|
33
|
-
export function instanceOfAttachCouponOrderRequest(value: object): value is AttachCouponOrderRequest {
|
|
34
|
-
if (!('couponCode' in value) || value['couponCode'] === undefined) return false;
|
|
35
|
-
return true;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export function AttachCouponOrderRequestFromJSON(json: any): AttachCouponOrderRequest {
|
|
39
|
-
return AttachCouponOrderRequestFromJSONTyped(json, false);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export function AttachCouponOrderRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachCouponOrderRequest {
|
|
43
|
-
if (json == null) {
|
|
44
|
-
return json;
|
|
45
|
-
}
|
|
46
|
-
return {
|
|
47
|
-
|
|
48
|
-
'couponCode': json['coupon_code'],
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export function AttachCouponOrderRequestToJSON(json: any): AttachCouponOrderRequest {
|
|
53
|
-
return AttachCouponOrderRequestToJSONTyped(json, false);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export function AttachCouponOrderRequestToJSONTyped(value?: AttachCouponOrderRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
-
if (value == null) {
|
|
58
|
-
return value;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
return {
|
|
62
|
-
|
|
63
|
-
'coupon_code': value['couponCode'],
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* My API
|
|
5
|
-
* API documentation for my Laravel app
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface DetachCouponOrderRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface DetachCouponOrderRequest {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {number}
|
|
25
|
-
* @memberof DetachCouponOrderRequest
|
|
26
|
-
*/
|
|
27
|
-
couponId: number;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Check if a given object implements the DetachCouponOrderRequest interface.
|
|
32
|
-
*/
|
|
33
|
-
export function instanceOfDetachCouponOrderRequest(value: object): value is DetachCouponOrderRequest {
|
|
34
|
-
if (!('couponId' in value) || value['couponId'] === undefined) return false;
|
|
35
|
-
return true;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export function DetachCouponOrderRequestFromJSON(json: any): DetachCouponOrderRequest {
|
|
39
|
-
return DetachCouponOrderRequestFromJSONTyped(json, false);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export function DetachCouponOrderRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetachCouponOrderRequest {
|
|
43
|
-
if (json == null) {
|
|
44
|
-
return json;
|
|
45
|
-
}
|
|
46
|
-
return {
|
|
47
|
-
|
|
48
|
-
'couponId': json['coupon_id'],
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export function DetachCouponOrderRequestToJSON(json: any): DetachCouponOrderRequest {
|
|
53
|
-
return DetachCouponOrderRequestToJSONTyped(json, false);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export function DetachCouponOrderRequestToJSONTyped(value?: DetachCouponOrderRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
-
if (value == null) {
|
|
58
|
-
return value;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
return {
|
|
62
|
-
|
|
63
|
-
'coupon_id': value['couponId'],
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
|
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* My API
|
|
5
|
-
* API documentation for my Laravel app
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface IndexTransactionRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface IndexTransactionRequest {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof IndexTransactionRequest
|
|
26
|
-
*/
|
|
27
|
-
search?: string | null;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {IndexTransactionRequestSortByEnum}
|
|
31
|
-
* @memberof IndexTransactionRequest
|
|
32
|
-
*/
|
|
33
|
-
sortBy?: IndexTransactionRequestSortByEnum;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {IndexTransactionRequestSortDirectionEnum}
|
|
37
|
-
* @memberof IndexTransactionRequest
|
|
38
|
-
*/
|
|
39
|
-
sortDirection?: IndexTransactionRequestSortDirectionEnum;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {number}
|
|
43
|
-
* @memberof IndexTransactionRequest
|
|
44
|
-
*/
|
|
45
|
-
perPage?: number;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @type {number}
|
|
49
|
-
* @memberof IndexTransactionRequest
|
|
50
|
-
*/
|
|
51
|
-
page?: number;
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @type {Array<string>}
|
|
55
|
-
* @memberof IndexTransactionRequest
|
|
56
|
-
*/
|
|
57
|
-
paymentSource?: Array<string>;
|
|
58
|
-
/**
|
|
59
|
-
*
|
|
60
|
-
* @type {Array<string>}
|
|
61
|
-
* @memberof IndexTransactionRequest
|
|
62
|
-
*/
|
|
63
|
-
type?: Array<string>;
|
|
64
|
-
/**
|
|
65
|
-
*
|
|
66
|
-
* @type {Array<string>}
|
|
67
|
-
* @memberof IndexTransactionRequest
|
|
68
|
-
*/
|
|
69
|
-
paymentMethod?: Array<string>;
|
|
70
|
-
/**
|
|
71
|
-
*
|
|
72
|
-
* @type {Array<string>}
|
|
73
|
-
* @memberof IndexTransactionRequest
|
|
74
|
-
*/
|
|
75
|
-
status?: Array<string>;
|
|
76
|
-
/**
|
|
77
|
-
*
|
|
78
|
-
* @type {Date}
|
|
79
|
-
* @memberof IndexTransactionRequest
|
|
80
|
-
*/
|
|
81
|
-
beforeCreatedAt?: Date;
|
|
82
|
-
/**
|
|
83
|
-
*
|
|
84
|
-
* @type {Date}
|
|
85
|
-
* @memberof IndexTransactionRequest
|
|
86
|
-
*/
|
|
87
|
-
afterCreatedAt?: Date;
|
|
88
|
-
/**
|
|
89
|
-
*
|
|
90
|
-
* @type {number}
|
|
91
|
-
* @memberof IndexTransactionRequest
|
|
92
|
-
*/
|
|
93
|
-
relatedId?: number;
|
|
94
|
-
/**
|
|
95
|
-
*
|
|
96
|
-
* @type {string}
|
|
97
|
-
* @memberof IndexTransactionRequest
|
|
98
|
-
*/
|
|
99
|
-
relatedType?: string;
|
|
100
|
-
/**
|
|
101
|
-
*
|
|
102
|
-
* @type {boolean}
|
|
103
|
-
* @memberof IndexTransactionRequest
|
|
104
|
-
*/
|
|
105
|
-
includesRelations?: boolean;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* @export
|
|
111
|
-
*/
|
|
112
|
-
export const IndexTransactionRequestSortByEnum = {
|
|
113
|
-
Id: 'id',
|
|
114
|
-
CreatedAt: 'created_at',
|
|
115
|
-
TotalAmount: 'total_amount'
|
|
116
|
-
} as const;
|
|
117
|
-
export type IndexTransactionRequestSortByEnum = typeof IndexTransactionRequestSortByEnum[keyof typeof IndexTransactionRequestSortByEnum];
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* @export
|
|
121
|
-
*/
|
|
122
|
-
export const IndexTransactionRequestSortDirectionEnum = {
|
|
123
|
-
Asc: 'asc',
|
|
124
|
-
Desc: 'desc'
|
|
125
|
-
} as const;
|
|
126
|
-
export type IndexTransactionRequestSortDirectionEnum = typeof IndexTransactionRequestSortDirectionEnum[keyof typeof IndexTransactionRequestSortDirectionEnum];
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
* Check if a given object implements the IndexTransactionRequest interface.
|
|
131
|
-
*/
|
|
132
|
-
export function instanceOfIndexTransactionRequest(value: object): value is IndexTransactionRequest {
|
|
133
|
-
return true;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
export function IndexTransactionRequestFromJSON(json: any): IndexTransactionRequest {
|
|
137
|
-
return IndexTransactionRequestFromJSONTyped(json, false);
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
export function IndexTransactionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndexTransactionRequest {
|
|
141
|
-
if (json == null) {
|
|
142
|
-
return json;
|
|
143
|
-
}
|
|
144
|
-
return {
|
|
145
|
-
|
|
146
|
-
'search': json['search'] == null ? undefined : json['search'],
|
|
147
|
-
'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
|
|
148
|
-
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
149
|
-
'perPage': json['per_page'] == null ? undefined : json['per_page'],
|
|
150
|
-
'page': json['page'] == null ? undefined : json['page'],
|
|
151
|
-
'paymentSource': json['payment_source'] == null ? undefined : json['payment_source'],
|
|
152
|
-
'type': json['type'] == null ? undefined : json['type'],
|
|
153
|
-
'paymentMethod': json['payment_method'] == null ? undefined : json['payment_method'],
|
|
154
|
-
'status': json['status'] == null ? undefined : json['status'],
|
|
155
|
-
'beforeCreatedAt': json['before_created_at'] == null ? undefined : (new Date(json['before_created_at'])),
|
|
156
|
-
'afterCreatedAt': json['after_created_at'] == null ? undefined : (new Date(json['after_created_at'])),
|
|
157
|
-
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
158
|
-
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
159
|
-
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
160
|
-
};
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
export function IndexTransactionRequestToJSON(json: any): IndexTransactionRequest {
|
|
164
|
-
return IndexTransactionRequestToJSONTyped(json, false);
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
export function IndexTransactionRequestToJSONTyped(value?: IndexTransactionRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
168
|
-
if (value == null) {
|
|
169
|
-
return value;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
return {
|
|
173
|
-
|
|
174
|
-
'search': value['search'],
|
|
175
|
-
'sortBy': value['sortBy'],
|
|
176
|
-
'sortDirection': value['sortDirection'],
|
|
177
|
-
'per_page': value['perPage'],
|
|
178
|
-
'page': value['page'],
|
|
179
|
-
'payment_source': value['paymentSource'],
|
|
180
|
-
'type': value['type'],
|
|
181
|
-
'payment_method': value['paymentMethod'],
|
|
182
|
-
'status': value['status'],
|
|
183
|
-
'before_created_at': value['beforeCreatedAt'] == null ? value['beforeCreatedAt'] : value['beforeCreatedAt'].toISOString(),
|
|
184
|
-
'after_created_at': value['afterCreatedAt'] == null ? value['afterCreatedAt'] : value['afterCreatedAt'].toISOString(),
|
|
185
|
-
'related_id': value['relatedId'],
|
|
186
|
-
'related_type': value['relatedType'],
|
|
187
|
-
'includes_relations': value['includesRelations'],
|
|
188
|
-
};
|
|
189
|
-
}
|
|
190
|
-
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* My API
|
|
5
|
-
* API documentation for my Laravel app
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface OrderStatusWithCountResource
|
|
20
|
-
*/
|
|
21
|
-
export interface OrderStatusWithCountResource {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {number}
|
|
25
|
-
* @memberof OrderStatusWithCountResource
|
|
26
|
-
*/
|
|
27
|
-
id: number;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof OrderStatusWithCountResource
|
|
32
|
-
*/
|
|
33
|
-
name: string;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {boolean}
|
|
37
|
-
* @memberof OrderStatusWithCountResource
|
|
38
|
-
*/
|
|
39
|
-
isOrderNetsuiteSyncable: boolean;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {number}
|
|
43
|
-
* @memberof OrderStatusWithCountResource
|
|
44
|
-
*/
|
|
45
|
-
ordersCount: number;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Check if a given object implements the OrderStatusWithCountResource interface.
|
|
50
|
-
*/
|
|
51
|
-
export function instanceOfOrderStatusWithCountResource(value: object): value is OrderStatusWithCountResource {
|
|
52
|
-
if (!('id' in value) || value['id'] === undefined) return false;
|
|
53
|
-
if (!('name' in value) || value['name'] === undefined) return false;
|
|
54
|
-
if (!('isOrderNetsuiteSyncable' in value) || value['isOrderNetsuiteSyncable'] === undefined) return false;
|
|
55
|
-
if (!('ordersCount' in value) || value['ordersCount'] === undefined) return false;
|
|
56
|
-
return true;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function OrderStatusWithCountResourceFromJSON(json: any): OrderStatusWithCountResource {
|
|
60
|
-
return OrderStatusWithCountResourceFromJSONTyped(json, false);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function OrderStatusWithCountResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderStatusWithCountResource {
|
|
64
|
-
if (json == null) {
|
|
65
|
-
return json;
|
|
66
|
-
}
|
|
67
|
-
return {
|
|
68
|
-
|
|
69
|
-
'id': json['id'],
|
|
70
|
-
'name': json['name'],
|
|
71
|
-
'isOrderNetsuiteSyncable': json['is_order_netsuite_syncable'],
|
|
72
|
-
'ordersCount': json['orders_count'],
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export function OrderStatusWithCountResourceToJSON(json: any): OrderStatusWithCountResource {
|
|
77
|
-
return OrderStatusWithCountResourceToJSONTyped(json, false);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
export function OrderStatusWithCountResourceToJSONTyped(value?: OrderStatusWithCountResource | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
-
if (value == null) {
|
|
82
|
-
return value;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
return {
|
|
86
|
-
|
|
87
|
-
'id': value['id'],
|
|
88
|
-
'name': value['name'],
|
|
89
|
-
'is_order_netsuite_syncable': value['isOrderNetsuiteSyncable'],
|
|
90
|
-
'orders_count': value['ordersCount'],
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* My API
|
|
5
|
-
* API documentation for my Laravel app
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
import type { OrderStatusWithCountResource } from './OrderStatusWithCountResource';
|
|
17
|
-
import {
|
|
18
|
-
OrderStatusWithCountResourceFromJSON,
|
|
19
|
-
OrderStatusWithCountResourceFromJSONTyped,
|
|
20
|
-
OrderStatusWithCountResourceToJSON,
|
|
21
|
-
OrderStatusWithCountResourceToJSONTyped,
|
|
22
|
-
} from './OrderStatusWithCountResource';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface OrderStatusWithCountResourceArrayResponse
|
|
28
|
-
*/
|
|
29
|
-
export interface OrderStatusWithCountResourceArrayResponse {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {Array<OrderStatusWithCountResource>}
|
|
33
|
-
* @memberof OrderStatusWithCountResourceArrayResponse
|
|
34
|
-
*/
|
|
35
|
-
data?: Array<OrderStatusWithCountResource>;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Check if a given object implements the OrderStatusWithCountResourceArrayResponse interface.
|
|
40
|
-
*/
|
|
41
|
-
export function instanceOfOrderStatusWithCountResourceArrayResponse(value: object): value is OrderStatusWithCountResourceArrayResponse {
|
|
42
|
-
return true;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function OrderStatusWithCountResourceArrayResponseFromJSON(json: any): OrderStatusWithCountResourceArrayResponse {
|
|
46
|
-
return OrderStatusWithCountResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function OrderStatusWithCountResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderStatusWithCountResourceArrayResponse {
|
|
50
|
-
if (json == null) {
|
|
51
|
-
return json;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
|
|
55
|
-
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(OrderStatusWithCountResourceFromJSON)),
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function OrderStatusWithCountResourceArrayResponseToJSON(json: any): OrderStatusWithCountResourceArrayResponse {
|
|
60
|
-
return OrderStatusWithCountResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function OrderStatusWithCountResourceArrayResponseToJSONTyped(value?: OrderStatusWithCountResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
-
if (value == null) {
|
|
65
|
-
return value;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
return {
|
|
69
|
-
|
|
70
|
-
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(OrderStatusWithCountResourceToJSON)),
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* My API
|
|
5
|
-
* API documentation for my Laravel app
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
import type { PagingMetadata } from './PagingMetadata';
|
|
17
|
-
import {
|
|
18
|
-
PagingMetadataFromJSON,
|
|
19
|
-
PagingMetadataFromJSONTyped,
|
|
20
|
-
PagingMetadataToJSON,
|
|
21
|
-
PagingMetadataToJSONTyped,
|
|
22
|
-
} from './PagingMetadata';
|
|
23
|
-
import type { TransactionListResource } from './TransactionListResource';
|
|
24
|
-
import {
|
|
25
|
-
TransactionListResourceFromJSON,
|
|
26
|
-
TransactionListResourceFromJSONTyped,
|
|
27
|
-
TransactionListResourceToJSON,
|
|
28
|
-
TransactionListResourceToJSONTyped,
|
|
29
|
-
} from './TransactionListResource';
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @export
|
|
34
|
-
* @interface PaginatedTransactionListResourceResponse
|
|
35
|
-
*/
|
|
36
|
-
export interface PaginatedTransactionListResourceResponse {
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {Array<TransactionListResource>}
|
|
40
|
-
* @memberof PaginatedTransactionListResourceResponse
|
|
41
|
-
*/
|
|
42
|
-
data: Array<TransactionListResource>;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @type {PagingMetadata}
|
|
46
|
-
* @memberof PaginatedTransactionListResourceResponse
|
|
47
|
-
*/
|
|
48
|
-
meta: PagingMetadata;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Check if a given object implements the PaginatedTransactionListResourceResponse interface.
|
|
53
|
-
*/
|
|
54
|
-
export function instanceOfPaginatedTransactionListResourceResponse(value: object): value is PaginatedTransactionListResourceResponse {
|
|
55
|
-
if (!('data' in value) || value['data'] === undefined) return false;
|
|
56
|
-
if (!('meta' in value) || value['meta'] === undefined) return false;
|
|
57
|
-
return true;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export function PaginatedTransactionListResourceResponseFromJSON(json: any): PaginatedTransactionListResourceResponse {
|
|
61
|
-
return PaginatedTransactionListResourceResponseFromJSONTyped(json, false);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export function PaginatedTransactionListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedTransactionListResourceResponse {
|
|
65
|
-
if (json == null) {
|
|
66
|
-
return json;
|
|
67
|
-
}
|
|
68
|
-
return {
|
|
69
|
-
|
|
70
|
-
'data': ((json['data'] as Array<any>).map(TransactionListResourceFromJSON)),
|
|
71
|
-
'meta': PagingMetadataFromJSON(json['meta']),
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export function PaginatedTransactionListResourceResponseToJSON(json: any): PaginatedTransactionListResourceResponse {
|
|
76
|
-
return PaginatedTransactionListResourceResponseToJSONTyped(json, false);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export function PaginatedTransactionListResourceResponseToJSONTyped(value?: PaginatedTransactionListResourceResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
-
if (value == null) {
|
|
81
|
-
return value;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
return {
|
|
85
|
-
|
|
86
|
-
'data': ((value['data'] as Array<any>).map(TransactionListResourceToJSON)),
|
|
87
|
-
'meta': PagingMetadataToJSON(value['meta']),
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* My API
|
|
5
|
-
* API documentation for my Laravel app
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
import type { PagingMetadata } from './PagingMetadata';
|
|
17
|
-
import {
|
|
18
|
-
PagingMetadataFromJSON,
|
|
19
|
-
PagingMetadataFromJSONTyped,
|
|
20
|
-
PagingMetadataToJSON,
|
|
21
|
-
PagingMetadataToJSONTyped,
|
|
22
|
-
} from './PagingMetadata';
|
|
23
|
-
import type { TransactionResource } from './TransactionResource';
|
|
24
|
-
import {
|
|
25
|
-
TransactionResourceFromJSON,
|
|
26
|
-
TransactionResourceFromJSONTyped,
|
|
27
|
-
TransactionResourceToJSON,
|
|
28
|
-
TransactionResourceToJSONTyped,
|
|
29
|
-
} from './TransactionResource';
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @export
|
|
34
|
-
* @interface PaginatedTransactionResourceResponse
|
|
35
|
-
*/
|
|
36
|
-
export interface PaginatedTransactionResourceResponse {
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {Array<TransactionResource>}
|
|
40
|
-
* @memberof PaginatedTransactionResourceResponse
|
|
41
|
-
*/
|
|
42
|
-
data: Array<TransactionResource>;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @type {PagingMetadata}
|
|
46
|
-
* @memberof PaginatedTransactionResourceResponse
|
|
47
|
-
*/
|
|
48
|
-
meta: PagingMetadata;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Check if a given object implements the PaginatedTransactionResourceResponse interface.
|
|
53
|
-
*/
|
|
54
|
-
export function instanceOfPaginatedTransactionResourceResponse(value: object): value is PaginatedTransactionResourceResponse {
|
|
55
|
-
if (!('data' in value) || value['data'] === undefined) return false;
|
|
56
|
-
if (!('meta' in value) || value['meta'] === undefined) return false;
|
|
57
|
-
return true;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export function PaginatedTransactionResourceResponseFromJSON(json: any): PaginatedTransactionResourceResponse {
|
|
61
|
-
return PaginatedTransactionResourceResponseFromJSONTyped(json, false);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export function PaginatedTransactionResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedTransactionResourceResponse {
|
|
65
|
-
if (json == null) {
|
|
66
|
-
return json;
|
|
67
|
-
}
|
|
68
|
-
return {
|
|
69
|
-
|
|
70
|
-
'data': ((json['data'] as Array<any>).map(TransactionResourceFromJSON)),
|
|
71
|
-
'meta': PagingMetadataFromJSON(json['meta']),
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export function PaginatedTransactionResourceResponseToJSON(json: any): PaginatedTransactionResourceResponse {
|
|
76
|
-
return PaginatedTransactionResourceResponseToJSONTyped(json, false);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export function PaginatedTransactionResourceResponseToJSONTyped(value?: PaginatedTransactionResourceResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
-
if (value == null) {
|
|
81
|
-
return value;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
return {
|
|
85
|
-
|
|
86
|
-
'data': ((value['data'] as Array<any>).map(TransactionResourceToJSON)),
|
|
87
|
-
'meta': PagingMetadataToJSON(value['meta']),
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
|