@digital8/lighting-illusions-ts-sdk 0.0.1939 → 0.0.1940
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 +30 -16
- package/README.md +19 -10
- package/dist/apis/TransactionsApi.d.ts +69 -0
- package/dist/apis/TransactionsApi.js +262 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AddressResource.d.ts +7 -1
- package/dist/models/AddressResource.js +4 -2
- package/dist/models/AdminOrderResource.d.ts +0 -6
- package/dist/models/AdminOrderResource.js +0 -4
- package/dist/models/CartListResource.d.ts +0 -6
- package/dist/models/CartListResource.js +0 -4
- package/dist/models/CartResource.d.ts +0 -6
- package/dist/models/CartResource.js +0 -4
- package/dist/models/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/ProductChildCartLiteResource.d.ts +0 -6
- package/dist/models/ProductChildCartLiteResource.js +0 -4
- package/dist/models/RefundTransactionRequest.d.ts +38 -0
- package/dist/models/RefundTransactionRequest.js +53 -0
- package/dist/models/StoreCartRequest.d.ts +0 -6
- package/dist/models/StoreCartRequest.js +0 -2
- package/dist/models/StoreCartRequestShippingAddress.d.ts +6 -0
- package/dist/models/StoreCartRequestShippingAddress.js +2 -0
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +3 -1
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +3 -1
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +1 -3
- 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/UpdateCartRequest.d.ts +0 -6
- package/dist/models/UpdateCartRequest.js +0 -2
- package/dist/models/UpdateOrderRequest.d.ts +3 -9
- package/dist/models/UpdateOrderRequest.js +3 -5
- package/dist/models/UpdateOrderRequestBillingAddress.d.ts +6 -0
- package/dist/models/UpdateOrderRequestBillingAddress.js +2 -0
- package/dist/models/UpdateOrderRequestShippingAddress.d.ts +80 -0
- package/dist/models/UpdateOrderRequestShippingAddress.js +67 -0
- package/dist/models/index.d.ts +14 -8
- package/dist/models/index.js +14 -8
- package/docs/AddressResource.md +2 -0
- package/docs/AdminOrderResource.md +0 -2
- package/docs/CartListResource.md +0 -2
- package/docs/CartResource.md +0 -2
- package/docs/IndexTransactionRequest.md +60 -0
- package/docs/PaginatedTransactionListResourceResponse.md +36 -0
- package/docs/{FrontendLineItemResourceArrayResponse.md → PaginatedTransactionResourceResponse.md} +7 -5
- package/docs/{CartCouponLiteResource.md → PaymentMethod.md} +4 -10
- package/docs/{CartCouponLiteResourceArrayResponse.md → PaymentSource.md} +4 -6
- package/docs/PaymentStatus.md +32 -0
- package/docs/ProductChildCartLiteResource.md +0 -2
- package/docs/RefundTransactionRequest.md +36 -0
- package/docs/StoreCartRequest.md +0 -2
- package/docs/StoreCartRequestShippingAddress.md +2 -0
- package/docs/StoreSpecialDateFrontendResource.md +1 -1
- package/docs/StoreTransactionRequest.md +46 -0
- package/docs/TransactionListResource.md +74 -0
- package/docs/{FrontendOrderResourceArrayResponse.md → TransactionListResourceArrayResponse.md} +5 -5
- package/docs/TransactionResource.md +74 -0
- package/docs/{FrontendCartResourceArrayResponse.md → TransactionResourceArrayResponse.md} +5 -5
- package/docs/TransactionType.md +32 -0
- package/docs/TransactionsApi.md +209 -0
- package/docs/UpdateCartRequest.md +0 -2
- package/docs/UpdateOrderRequest.md +1 -3
- package/docs/UpdateOrderRequestBillingAddress.md +2 -0
- package/docs/UpdateOrderRequestShippingAddress.md +50 -0
- package/package.json +1 -1
- package/src/apis/TransactionsApi.ts +193 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AddressResource.ts +11 -3
- package/src/models/AdminOrderResource.ts +0 -9
- package/src/models/CartListResource.ts +0 -9
- package/src/models/CartResource.ts +0 -9
- 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/ProductChildCartLiteResource.ts +0 -9
- package/src/models/RefundTransactionRequest.ts +74 -0
- package/src/models/StoreCartRequest.ts +0 -8
- package/src/models/StoreCartRequestShippingAddress.ts +8 -0
- package/src/models/StoreFrontendResource.ts +3 -2
- package/src/models/StoreResource.ts +3 -2
- package/src/models/StoreSpecialDateFrontendResource.ts +3 -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/UpdateCartRequest.ts +0 -8
- package/src/models/UpdateOrderRequest.ts +10 -18
- package/src/models/UpdateOrderRequestBillingAddress.ts +8 -0
- package/src/models/UpdateOrderRequestShippingAddress.ts +130 -0
- package/src/models/index.ts +14 -8
- package/dist/models/CartCouponLiteResource.d.ts +0 -44
- package/dist/models/CartCouponLiteResource.js +0 -59
- package/dist/models/CartCouponLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/CartCouponLiteResourceArrayResponse.js +0 -50
- package/dist/models/FrontendCartResource.d.ts +0 -144
- package/dist/models/FrontendCartResource.js +0 -121
- package/dist/models/FrontendCartResourceArrayResponse.d.ts +0 -33
- package/dist/models/FrontendCartResourceArrayResponse.js +0 -50
- package/dist/models/FrontendLineItemResource.d.ts +0 -63
- package/dist/models/FrontendLineItemResource.js +0 -70
- package/dist/models/FrontendLineItemResourceArrayResponse.d.ts +0 -33
- package/dist/models/FrontendLineItemResourceArrayResponse.js +0 -50
- package/dist/models/FrontendOrderResource.d.ts +0 -168
- package/dist/models/FrontendOrderResource.js +0 -137
- package/dist/models/FrontendOrderResourceArrayResponse.d.ts +0 -33
- package/dist/models/FrontendOrderResourceArrayResponse.js +0 -50
- package/docs/FrontendCartResource.md +0 -70
- package/docs/FrontendLineItemResource.md +0 -44
- package/docs/FrontendOrderResource.md +0 -78
- package/src/models/CartCouponLiteResource.ts +0 -84
- package/src/models/CartCouponLiteResourceArrayResponse.ts +0 -73
- package/src/models/FrontendCartResource.ts +0 -254
- package/src/models/FrontendCartResourceArrayResponse.ts +0 -73
- package/src/models/FrontendLineItemResource.ts +0 -118
- package/src/models/FrontendLineItemResourceArrayResponse.ts +0 -73
- package/src/models/FrontendOrderResource.ts +0 -290
- package/src/models/FrontendOrderResourceArrayResponse.ts +0 -73
|
@@ -34,8 +34,6 @@ function instanceOfAdminOrderResource(value) {
|
|
|
34
34
|
return false;
|
|
35
35
|
if (!('insuranceAmount' in value) || value['insuranceAmount'] === undefined)
|
|
36
36
|
return false;
|
|
37
|
-
if (!('includeInsurance' in value) || value['includeInsurance'] === undefined)
|
|
38
|
-
return false;
|
|
39
37
|
if (!('overrideInsurance' in value) || value['overrideInsurance'] === undefined)
|
|
40
38
|
return false;
|
|
41
39
|
if (!('useAsBillingAddress' in value) || value['useAsBillingAddress'] === undefined)
|
|
@@ -109,7 +107,6 @@ function AdminOrderResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
109
107
|
'shippingSubtotal': json['shipping_subtotal'] == null ? undefined : json['shipping_subtotal'],
|
|
110
108
|
'overrideShipping': json['override_shipping'],
|
|
111
109
|
'insuranceAmount': json['insurance_amount'],
|
|
112
|
-
'includeInsurance': json['include_insurance'],
|
|
113
110
|
'overrideInsurance': json['override_insurance'],
|
|
114
111
|
'useAsBillingAddress': json['use_as_billing_address'],
|
|
115
112
|
'netsuiteId': json['netsuite_id'] == null ? undefined : json['netsuite_id'],
|
|
@@ -161,7 +158,6 @@ function AdminOrderResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
161
158
|
'shipping_subtotal': value['shippingSubtotal'],
|
|
162
159
|
'override_shipping': value['overrideShipping'],
|
|
163
160
|
'insurance_amount': value['insuranceAmount'],
|
|
164
|
-
'include_insurance': value['includeInsurance'],
|
|
165
161
|
'override_insurance': value['overrideInsurance'],
|
|
166
162
|
'use_as_billing_address': value['useAsBillingAddress'],
|
|
167
163
|
'netsuite_id': value['netsuiteId'],
|
|
@@ -29,8 +29,6 @@ function instanceOfCartListResource(value) {
|
|
|
29
29
|
return false;
|
|
30
30
|
if (!('overrideShipping' in value) || value['overrideShipping'] === undefined)
|
|
31
31
|
return false;
|
|
32
|
-
if (!('includeInsurance' in value) || value['includeInsurance'] === undefined)
|
|
33
|
-
return false;
|
|
34
32
|
if (!('overrideInsurance' in value) || value['overrideInsurance'] === undefined)
|
|
35
33
|
return false;
|
|
36
34
|
if (!('useAsBillingAddress' in value) || value['useAsBillingAddress'] === undefined)
|
|
@@ -64,7 +62,6 @@ function CartListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
64
62
|
'shippingSubtotal': json['shipping_subtotal'] == null ? undefined : json['shipping_subtotal'],
|
|
65
63
|
'overrideShipping': json['override_shipping'],
|
|
66
64
|
'insuranceAmount': json['insurance_amount'] == null ? undefined : json['insurance_amount'],
|
|
67
|
-
'includeInsurance': json['include_insurance'],
|
|
68
65
|
'overrideInsurance': json['override_insurance'],
|
|
69
66
|
'useAsBillingAddress': json['use_as_billing_address'],
|
|
70
67
|
'expiryDate': (new Date(json['expiry_date'])),
|
|
@@ -93,7 +90,6 @@ function CartListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
93
90
|
'shipping_subtotal': value['shippingSubtotal'],
|
|
94
91
|
'override_shipping': value['overrideShipping'],
|
|
95
92
|
'insurance_amount': value['insuranceAmount'],
|
|
96
|
-
'include_insurance': value['includeInsurance'],
|
|
97
93
|
'override_insurance': value['overrideInsurance'],
|
|
98
94
|
'use_as_billing_address': value['useAsBillingAddress'],
|
|
99
95
|
'expiry_date': value['expiryDate'].toISOString(),
|
|
@@ -35,8 +35,6 @@ function instanceOfCartResource(value) {
|
|
|
35
35
|
return false;
|
|
36
36
|
if (!('overrideShipping' in value) || value['overrideShipping'] === undefined)
|
|
37
37
|
return false;
|
|
38
|
-
if (!('includeInsurance' in value) || value['includeInsurance'] === undefined)
|
|
39
|
-
return false;
|
|
40
38
|
if (!('overrideInsurance' in value) || value['overrideInsurance'] === undefined)
|
|
41
39
|
return false;
|
|
42
40
|
if (!('useAsBillingAddress' in value) || value['useAsBillingAddress'] === undefined)
|
|
@@ -100,7 +98,6 @@ function CartResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
100
98
|
'shippingSubtotal': json['shipping_subtotal'] == null ? undefined : json['shipping_subtotal'],
|
|
101
99
|
'overrideShipping': json['override_shipping'],
|
|
102
100
|
'insuranceSubtotal': json['insurance_subtotal'] == null ? undefined : json['insurance_subtotal'],
|
|
103
|
-
'includeInsurance': json['include_insurance'],
|
|
104
101
|
'overrideInsurance': json['override_insurance'],
|
|
105
102
|
'useAsBillingAddress': json['use_as_billing_address'],
|
|
106
103
|
'admin': json['admin'],
|
|
@@ -145,7 +142,6 @@ function CartResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
145
142
|
'shipping_subtotal': value['shippingSubtotal'],
|
|
146
143
|
'override_shipping': value['overrideShipping'],
|
|
147
144
|
'insurance_subtotal': value['insuranceSubtotal'],
|
|
148
|
-
'include_insurance': value['includeInsurance'],
|
|
149
145
|
'override_insurance': value['overrideInsurance'],
|
|
150
146
|
'use_as_billing_address': value['useAsBillingAddress'],
|
|
151
147
|
'admin': value['admin'],
|
|
@@ -0,0 +1,127 @@
|
|
|
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 IndexTransactionRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface IndexTransactionRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof IndexTransactionRequest
|
|
22
|
+
*/
|
|
23
|
+
search?: string | null;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {IndexTransactionRequestSortByEnum}
|
|
27
|
+
* @memberof IndexTransactionRequest
|
|
28
|
+
*/
|
|
29
|
+
sortBy?: IndexTransactionRequestSortByEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {IndexTransactionRequestSortDirectionEnum}
|
|
33
|
+
* @memberof IndexTransactionRequest
|
|
34
|
+
*/
|
|
35
|
+
sortDirection?: IndexTransactionRequestSortDirectionEnum;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof IndexTransactionRequest
|
|
40
|
+
*/
|
|
41
|
+
perPage?: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof IndexTransactionRequest
|
|
46
|
+
*/
|
|
47
|
+
page?: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Array<string>}
|
|
51
|
+
* @memberof IndexTransactionRequest
|
|
52
|
+
*/
|
|
53
|
+
paymentSource?: Array<string>;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Array<string>}
|
|
57
|
+
* @memberof IndexTransactionRequest
|
|
58
|
+
*/
|
|
59
|
+
type?: Array<string>;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {Array<string>}
|
|
63
|
+
* @memberof IndexTransactionRequest
|
|
64
|
+
*/
|
|
65
|
+
paymentMethod?: Array<string>;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {Array<string>}
|
|
69
|
+
* @memberof IndexTransactionRequest
|
|
70
|
+
*/
|
|
71
|
+
status?: Array<string>;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {Date}
|
|
75
|
+
* @memberof IndexTransactionRequest
|
|
76
|
+
*/
|
|
77
|
+
beforeCreatedAt?: Date;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {Date}
|
|
81
|
+
* @memberof IndexTransactionRequest
|
|
82
|
+
*/
|
|
83
|
+
afterCreatedAt?: Date;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {number}
|
|
87
|
+
* @memberof IndexTransactionRequest
|
|
88
|
+
*/
|
|
89
|
+
relatedId?: number;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof IndexTransactionRequest
|
|
94
|
+
*/
|
|
95
|
+
relatedType?: string;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {boolean}
|
|
99
|
+
* @memberof IndexTransactionRequest
|
|
100
|
+
*/
|
|
101
|
+
includesRelations?: boolean;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* @export
|
|
105
|
+
*/
|
|
106
|
+
export declare const IndexTransactionRequestSortByEnum: {
|
|
107
|
+
readonly Id: "id";
|
|
108
|
+
readonly CreatedAt: "created_at";
|
|
109
|
+
readonly TotalAmount: "total_amount";
|
|
110
|
+
};
|
|
111
|
+
export type IndexTransactionRequestSortByEnum = typeof IndexTransactionRequestSortByEnum[keyof typeof IndexTransactionRequestSortByEnum];
|
|
112
|
+
/**
|
|
113
|
+
* @export
|
|
114
|
+
*/
|
|
115
|
+
export declare const IndexTransactionRequestSortDirectionEnum: {
|
|
116
|
+
readonly Asc: "asc";
|
|
117
|
+
readonly Desc: "desc";
|
|
118
|
+
};
|
|
119
|
+
export type IndexTransactionRequestSortDirectionEnum = typeof IndexTransactionRequestSortDirectionEnum[keyof typeof IndexTransactionRequestSortDirectionEnum];
|
|
120
|
+
/**
|
|
121
|
+
* Check if a given object implements the IndexTransactionRequest interface.
|
|
122
|
+
*/
|
|
123
|
+
export declare function instanceOfIndexTransactionRequest(value: object): value is IndexTransactionRequest;
|
|
124
|
+
export declare function IndexTransactionRequestFromJSON(json: any): IndexTransactionRequest;
|
|
125
|
+
export declare function IndexTransactionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndexTransactionRequest;
|
|
126
|
+
export declare function IndexTransactionRequestToJSON(json: any): IndexTransactionRequest;
|
|
127
|
+
export declare function IndexTransactionRequestToJSONTyped(value?: IndexTransactionRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,91 @@
|
|
|
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.IndexTransactionRequestSortDirectionEnum = exports.IndexTransactionRequestSortByEnum = void 0;
|
|
17
|
+
exports.instanceOfIndexTransactionRequest = instanceOfIndexTransactionRequest;
|
|
18
|
+
exports.IndexTransactionRequestFromJSON = IndexTransactionRequestFromJSON;
|
|
19
|
+
exports.IndexTransactionRequestFromJSONTyped = IndexTransactionRequestFromJSONTyped;
|
|
20
|
+
exports.IndexTransactionRequestToJSON = IndexTransactionRequestToJSON;
|
|
21
|
+
exports.IndexTransactionRequestToJSONTyped = IndexTransactionRequestToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.IndexTransactionRequestSortByEnum = {
|
|
26
|
+
Id: 'id',
|
|
27
|
+
CreatedAt: 'created_at',
|
|
28
|
+
TotalAmount: 'total_amount'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
exports.IndexTransactionRequestSortDirectionEnum = {
|
|
34
|
+
Asc: 'asc',
|
|
35
|
+
Desc: 'desc'
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the IndexTransactionRequest interface.
|
|
39
|
+
*/
|
|
40
|
+
function instanceOfIndexTransactionRequest(value) {
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
function IndexTransactionRequestFromJSON(json) {
|
|
44
|
+
return IndexTransactionRequestFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function IndexTransactionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'search': json['search'] == null ? undefined : json['search'],
|
|
52
|
+
'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
|
|
53
|
+
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
54
|
+
'perPage': json['per_page'] == null ? undefined : json['per_page'],
|
|
55
|
+
'page': json['page'] == null ? undefined : json['page'],
|
|
56
|
+
'paymentSource': json['payment_source'] == null ? undefined : json['payment_source'],
|
|
57
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
58
|
+
'paymentMethod': json['payment_method'] == null ? undefined : json['payment_method'],
|
|
59
|
+
'status': json['status'] == null ? undefined : json['status'],
|
|
60
|
+
'beforeCreatedAt': json['before_created_at'] == null ? undefined : (new Date(json['before_created_at'])),
|
|
61
|
+
'afterCreatedAt': json['after_created_at'] == null ? undefined : (new Date(json['after_created_at'])),
|
|
62
|
+
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
63
|
+
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
64
|
+
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
function IndexTransactionRequestToJSON(json) {
|
|
68
|
+
return IndexTransactionRequestToJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
function IndexTransactionRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
71
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
72
|
+
if (value == null) {
|
|
73
|
+
return value;
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
'search': value['search'],
|
|
77
|
+
'sortBy': value['sortBy'],
|
|
78
|
+
'sortDirection': value['sortDirection'],
|
|
79
|
+
'per_page': value['perPage'],
|
|
80
|
+
'page': value['page'],
|
|
81
|
+
'payment_source': value['paymentSource'],
|
|
82
|
+
'type': value['type'],
|
|
83
|
+
'payment_method': value['paymentMethod'],
|
|
84
|
+
'status': value['status'],
|
|
85
|
+
'before_created_at': value['beforeCreatedAt'] == null ? value['beforeCreatedAt'] : value['beforeCreatedAt'].toISOString(),
|
|
86
|
+
'after_created_at': value['afterCreatedAt'] == null ? value['afterCreatedAt'] : value['afterCreatedAt'].toISOString(),
|
|
87
|
+
'related_id': value['relatedId'],
|
|
88
|
+
'related_type': value['relatedType'],
|
|
89
|
+
'includes_relations': value['includesRelations'],
|
|
90
|
+
};
|
|
91
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 { PagingMetadata } from './PagingMetadata';
|
|
13
|
+
import type { TransactionListResource } from './TransactionListResource';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PaginatedTransactionListResourceResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface PaginatedTransactionListResourceResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Array<TransactionListResource>}
|
|
23
|
+
* @memberof PaginatedTransactionListResourceResponse
|
|
24
|
+
*/
|
|
25
|
+
data: Array<TransactionListResource>;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {PagingMetadata}
|
|
29
|
+
* @memberof PaginatedTransactionListResourceResponse
|
|
30
|
+
*/
|
|
31
|
+
meta: PagingMetadata;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the PaginatedTransactionListResourceResponse interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfPaginatedTransactionListResourceResponse(value: object): value is PaginatedTransactionListResourceResponse;
|
|
37
|
+
export declare function PaginatedTransactionListResourceResponseFromJSON(json: any): PaginatedTransactionListResourceResponse;
|
|
38
|
+
export declare function PaginatedTransactionListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedTransactionListResourceResponse;
|
|
39
|
+
export declare function PaginatedTransactionListResourceResponseToJSON(json: any): PaginatedTransactionListResourceResponse;
|
|
40
|
+
export declare function PaginatedTransactionListResourceResponseToJSONTyped(value?: PaginatedTransactionListResourceResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
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.instanceOfPaginatedTransactionListResourceResponse = instanceOfPaginatedTransactionListResourceResponse;
|
|
17
|
+
exports.PaginatedTransactionListResourceResponseFromJSON = PaginatedTransactionListResourceResponseFromJSON;
|
|
18
|
+
exports.PaginatedTransactionListResourceResponseFromJSONTyped = PaginatedTransactionListResourceResponseFromJSONTyped;
|
|
19
|
+
exports.PaginatedTransactionListResourceResponseToJSON = PaginatedTransactionListResourceResponseToJSON;
|
|
20
|
+
exports.PaginatedTransactionListResourceResponseToJSONTyped = PaginatedTransactionListResourceResponseToJSONTyped;
|
|
21
|
+
var PagingMetadata_1 = require("./PagingMetadata");
|
|
22
|
+
var TransactionListResource_1 = require("./TransactionListResource");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PaginatedTransactionListResourceResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPaginatedTransactionListResourceResponse(value) {
|
|
27
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('meta' in value) || value['meta'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function PaginatedTransactionListResourceResponseFromJSON(json) {
|
|
34
|
+
return PaginatedTransactionListResourceResponseFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function PaginatedTransactionListResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'data': (json['data'].map(TransactionListResource_1.TransactionListResourceFromJSON)),
|
|
42
|
+
'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function PaginatedTransactionListResourceResponseToJSON(json) {
|
|
46
|
+
return PaginatedTransactionListResourceResponseToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function PaginatedTransactionListResourceResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'data': (value['data'].map(TransactionListResource_1.TransactionListResourceToJSON)),
|
|
55
|
+
'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 { PagingMetadata } from './PagingMetadata';
|
|
13
|
+
import type { TransactionResource } from './TransactionResource';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PaginatedTransactionResourceResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface PaginatedTransactionResourceResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Array<TransactionResource>}
|
|
23
|
+
* @memberof PaginatedTransactionResourceResponse
|
|
24
|
+
*/
|
|
25
|
+
data: Array<TransactionResource>;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {PagingMetadata}
|
|
29
|
+
* @memberof PaginatedTransactionResourceResponse
|
|
30
|
+
*/
|
|
31
|
+
meta: PagingMetadata;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the PaginatedTransactionResourceResponse interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfPaginatedTransactionResourceResponse(value: object): value is PaginatedTransactionResourceResponse;
|
|
37
|
+
export declare function PaginatedTransactionResourceResponseFromJSON(json: any): PaginatedTransactionResourceResponse;
|
|
38
|
+
export declare function PaginatedTransactionResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedTransactionResourceResponse;
|
|
39
|
+
export declare function PaginatedTransactionResourceResponseToJSON(json: any): PaginatedTransactionResourceResponse;
|
|
40
|
+
export declare function PaginatedTransactionResourceResponseToJSONTyped(value?: PaginatedTransactionResourceResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
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.instanceOfPaginatedTransactionResourceResponse = instanceOfPaginatedTransactionResourceResponse;
|
|
17
|
+
exports.PaginatedTransactionResourceResponseFromJSON = PaginatedTransactionResourceResponseFromJSON;
|
|
18
|
+
exports.PaginatedTransactionResourceResponseFromJSONTyped = PaginatedTransactionResourceResponseFromJSONTyped;
|
|
19
|
+
exports.PaginatedTransactionResourceResponseToJSON = PaginatedTransactionResourceResponseToJSON;
|
|
20
|
+
exports.PaginatedTransactionResourceResponseToJSONTyped = PaginatedTransactionResourceResponseToJSONTyped;
|
|
21
|
+
var PagingMetadata_1 = require("./PagingMetadata");
|
|
22
|
+
var TransactionResource_1 = require("./TransactionResource");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PaginatedTransactionResourceResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPaginatedTransactionResourceResponse(value) {
|
|
27
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('meta' in value) || value['meta'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function PaginatedTransactionResourceResponseFromJSON(json) {
|
|
34
|
+
return PaginatedTransactionResourceResponseFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function PaginatedTransactionResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'data': (json['data'].map(TransactionResource_1.TransactionResourceFromJSON)),
|
|
42
|
+
'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function PaginatedTransactionResourceResponseToJSON(json) {
|
|
46
|
+
return PaginatedTransactionResourceResponseToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function PaginatedTransactionResourceResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'data': (value['data'].map(TransactionResource_1.TransactionResourceToJSON)),
|
|
55
|
+
'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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 PaymentMethod: {
|
|
17
|
+
readonly BankDeposit: "bank_deposit";
|
|
18
|
+
readonly Visa: "visa";
|
|
19
|
+
readonly Mastercard: "mastercard";
|
|
20
|
+
readonly AmericanExpress: "american_express";
|
|
21
|
+
readonly GooglePay: "google_pay";
|
|
22
|
+
readonly PayPal: "pay_pal";
|
|
23
|
+
readonly ApplePay: "apple_pay";
|
|
24
|
+
};
|
|
25
|
+
export type PaymentMethod = typeof PaymentMethod[keyof typeof PaymentMethod];
|
|
26
|
+
export declare function instanceOfPaymentMethod(value: any): boolean;
|
|
27
|
+
export declare function PaymentMethodFromJSON(json: any): PaymentMethod;
|
|
28
|
+
export declare function PaymentMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentMethod;
|
|
29
|
+
export declare function PaymentMethodToJSON(value?: PaymentMethod | null): any;
|
|
30
|
+
export declare function PaymentMethodToJSONTyped(value: any, ignoreDiscriminator: boolean): PaymentMethod;
|
|
@@ -0,0 +1,56 @@
|
|
|
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.PaymentMethod = void 0;
|
|
17
|
+
exports.instanceOfPaymentMethod = instanceOfPaymentMethod;
|
|
18
|
+
exports.PaymentMethodFromJSON = PaymentMethodFromJSON;
|
|
19
|
+
exports.PaymentMethodFromJSONTyped = PaymentMethodFromJSONTyped;
|
|
20
|
+
exports.PaymentMethodToJSON = PaymentMethodToJSON;
|
|
21
|
+
exports.PaymentMethodToJSONTyped = PaymentMethodToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.PaymentMethod = {
|
|
27
|
+
BankDeposit: 'bank_deposit',
|
|
28
|
+
Visa: 'visa',
|
|
29
|
+
Mastercard: 'mastercard',
|
|
30
|
+
AmericanExpress: 'american_express',
|
|
31
|
+
GooglePay: 'google_pay',
|
|
32
|
+
PayPal: 'pay_pal',
|
|
33
|
+
ApplePay: 'apple_pay'
|
|
34
|
+
};
|
|
35
|
+
function instanceOfPaymentMethod(value) {
|
|
36
|
+
for (var key in exports.PaymentMethod) {
|
|
37
|
+
if (Object.prototype.hasOwnProperty.call(exports.PaymentMethod, key)) {
|
|
38
|
+
if (exports.PaymentMethod[key] === value) {
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
return false;
|
|
44
|
+
}
|
|
45
|
+
function PaymentMethodFromJSON(json) {
|
|
46
|
+
return PaymentMethodFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function PaymentMethodFromJSONTyped(json, ignoreDiscriminator) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
function PaymentMethodToJSON(value) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
function PaymentMethodToJSONTyped(value, ignoreDiscriminator) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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 PaymentSource: {
|
|
17
|
+
readonly Checkout: "checkout";
|
|
18
|
+
readonly ExpressCheckout: "express_checkout";
|
|
19
|
+
readonly AdminPortal: "admin_portal";
|
|
20
|
+
};
|
|
21
|
+
export type PaymentSource = typeof PaymentSource[keyof typeof PaymentSource];
|
|
22
|
+
export declare function instanceOfPaymentSource(value: any): boolean;
|
|
23
|
+
export declare function PaymentSourceFromJSON(json: any): PaymentSource;
|
|
24
|
+
export declare function PaymentSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentSource;
|
|
25
|
+
export declare function PaymentSourceToJSON(value?: PaymentSource | null): any;
|
|
26
|
+
export declare function PaymentSourceToJSONTyped(value: any, ignoreDiscriminator: boolean): PaymentSource;
|