@digital8/lighting-illusions-ts-sdk 0.0.1929 → 0.0.1931
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +28 -0
- package/README.md +18 -2
- package/dist/apis/TransactionsApi.d.ts +69 -0
- package/dist/apis/TransactionsApi.js +262 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +1 -3
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +3 -1
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/IndexTransactionRequest.d.ts +127 -0
- package/dist/models/IndexTransactionRequest.js +91 -0
- package/dist/models/PaginatedTransactionListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedTransactionListResourceResponse.js +57 -0
- package/dist/models/PaginatedTransactionResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedTransactionResourceResponse.js +57 -0
- package/dist/models/PaymentMethod.d.ts +30 -0
- package/dist/models/PaymentMethod.js +56 -0
- package/dist/models/PaymentSource.d.ts +26 -0
- package/dist/models/PaymentSource.js +52 -0
- package/dist/models/PaymentStatus.d.ts +25 -0
- package/dist/models/PaymentStatus.js +51 -0
- package/dist/models/RefundTransactionRequest.d.ts +38 -0
- package/dist/models/RefundTransactionRequest.js +53 -0
- package/dist/models/StoreFrontendResource.d.ts +2 -2
- package/dist/models/StoreFrontendResource.js +4 -4
- package/dist/models/StoreListResource.d.ts +2 -2
- package/dist/models/StoreListResource.js +6 -2
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.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/UpdateOrderRequestBillingAddress.d.ts +6 -0
- package/dist/models/UpdateOrderRequestBillingAddress.js +2 -0
- package/dist/models/UpdateOrderRequestShippingAddress.d.ts +7 -1
- package/dist/models/UpdateOrderRequestShippingAddress.js +5 -1
- package/dist/models/index.d.ts +13 -0
- package/dist/models/index.js +13 -0
- package/docs/IndexTransactionRequest.md +60 -0
- package/docs/PaginatedTransactionListResourceResponse.md +36 -0
- package/docs/PaginatedTransactionResourceResponse.md +36 -0
- package/docs/PaymentMethod.md +32 -0
- package/docs/PaymentSource.md +32 -0
- package/docs/PaymentStatus.md +32 -0
- package/docs/RefundTransactionRequest.md +36 -0
- package/docs/StoreTransactionRequest.md +46 -0
- package/docs/TransactionListResource.md +74 -0
- package/docs/TransactionListResourceArrayResponse.md +34 -0
- package/docs/TransactionResource.md +74 -0
- package/docs/TransactionResourceArrayResponse.md +34 -0
- package/docs/TransactionType.md +32 -0
- package/docs/TransactionsApi.md +209 -0
- package/docs/UpdateOrderRequestBillingAddress.md +2 -0
- package/docs/UpdateOrderRequestShippingAddress.md +2 -0
- package/package.json +1 -1
- package/src/apis/TransactionsApi.ts +193 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AddressFrontendResource.ts +2 -3
- package/src/models/AddressResource.ts +3 -2
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/IndexTransactionRequest.ts +190 -0
- package/src/models/PaginatedTransactionListResourceResponse.ts +90 -0
- package/src/models/PaginatedTransactionResourceResponse.ts +90 -0
- package/src/models/PaymentMethod.ts +58 -0
- package/src/models/PaymentSource.ts +54 -0
- package/src/models/PaymentStatus.ts +53 -0
- package/src/models/RefundTransactionRequest.ts +74 -0
- package/src/models/StoreFrontendResource.ts +5 -5
- package/src/models/StoreListResource.ts +6 -4
- package/src/models/StoreResource.ts +2 -3
- package/src/models/StoreTransactionRequest.ts +131 -0
- package/src/models/TransactionListResource.ts +235 -0
- package/src/models/TransactionListResourceArrayResponse.ts +73 -0
- package/src/models/TransactionResource.ts +235 -0
- package/src/models/TransactionResourceArrayResponse.ts +73 -0
- package/src/models/TransactionType.ts +53 -0
- package/src/models/UpdateOrderRequestBillingAddress.ts +8 -0
- package/src/models/UpdateOrderRequestShippingAddress.ts +11 -2
- package/src/models/index.ts +13 -0
|
@@ -0,0 +1,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;
|
|
@@ -0,0 +1,52 @@
|
|
|
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.PaymentSource = void 0;
|
|
17
|
+
exports.instanceOfPaymentSource = instanceOfPaymentSource;
|
|
18
|
+
exports.PaymentSourceFromJSON = PaymentSourceFromJSON;
|
|
19
|
+
exports.PaymentSourceFromJSONTyped = PaymentSourceFromJSONTyped;
|
|
20
|
+
exports.PaymentSourceToJSON = PaymentSourceToJSON;
|
|
21
|
+
exports.PaymentSourceToJSONTyped = PaymentSourceToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.PaymentSource = {
|
|
27
|
+
Checkout: 'checkout',
|
|
28
|
+
ExpressCheckout: 'express_checkout',
|
|
29
|
+
AdminPortal: 'admin_portal'
|
|
30
|
+
};
|
|
31
|
+
function instanceOfPaymentSource(value) {
|
|
32
|
+
for (var key in exports.PaymentSource) {
|
|
33
|
+
if (Object.prototype.hasOwnProperty.call(exports.PaymentSource, key)) {
|
|
34
|
+
if (exports.PaymentSource[key] === value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
function PaymentSourceFromJSON(json) {
|
|
42
|
+
return PaymentSourceFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function PaymentSourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
function PaymentSourceToJSON(value) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
function PaymentSourceToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const PaymentStatus: {
|
|
17
|
+
readonly Success: "success";
|
|
18
|
+
readonly Failure: "failure";
|
|
19
|
+
};
|
|
20
|
+
export type PaymentStatus = typeof PaymentStatus[keyof typeof PaymentStatus];
|
|
21
|
+
export declare function instanceOfPaymentStatus(value: any): boolean;
|
|
22
|
+
export declare function PaymentStatusFromJSON(json: any): PaymentStatus;
|
|
23
|
+
export declare function PaymentStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentStatus;
|
|
24
|
+
export declare function PaymentStatusToJSON(value?: PaymentStatus | null): any;
|
|
25
|
+
export declare function PaymentStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): PaymentStatus;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.PaymentStatus = void 0;
|
|
17
|
+
exports.instanceOfPaymentStatus = instanceOfPaymentStatus;
|
|
18
|
+
exports.PaymentStatusFromJSON = PaymentStatusFromJSON;
|
|
19
|
+
exports.PaymentStatusFromJSONTyped = PaymentStatusFromJSONTyped;
|
|
20
|
+
exports.PaymentStatusToJSON = PaymentStatusToJSON;
|
|
21
|
+
exports.PaymentStatusToJSONTyped = PaymentStatusToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.PaymentStatus = {
|
|
27
|
+
Success: 'success',
|
|
28
|
+
Failure: 'failure'
|
|
29
|
+
};
|
|
30
|
+
function instanceOfPaymentStatus(value) {
|
|
31
|
+
for (var key in exports.PaymentStatus) {
|
|
32
|
+
if (Object.prototype.hasOwnProperty.call(exports.PaymentStatus, key)) {
|
|
33
|
+
if (exports.PaymentStatus[key] === value) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
function PaymentStatusFromJSON(json) {
|
|
41
|
+
return PaymentStatusFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function PaymentStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
function PaymentStatusToJSON(value) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
function PaymentStatusToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|