@digital8/lighting-illusions-ts-sdk 0.0.1929 → 0.0.1930
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 +2 -2
- package/dist/models/AddressResource.js +3 -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 +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/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 +5 -5
- 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 +3 -2
- package/src/models/StoreResource.ts +3 -2
- 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,38 @@
|
|
|
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 RefundTransactionRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface RefundTransactionRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof RefundTransactionRequest
|
|
22
|
+
*/
|
|
23
|
+
amount: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof RefundTransactionRequest
|
|
28
|
+
*/
|
|
29
|
+
description?: string | null;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the RefundTransactionRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfRefundTransactionRequest(value: object): value is RefundTransactionRequest;
|
|
35
|
+
export declare function RefundTransactionRequestFromJSON(json: any): RefundTransactionRequest;
|
|
36
|
+
export declare function RefundTransactionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RefundTransactionRequest;
|
|
37
|
+
export declare function RefundTransactionRequestToJSON(json: any): RefundTransactionRequest;
|
|
38
|
+
export declare function RefundTransactionRequestToJSONTyped(value?: RefundTransactionRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
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.instanceOfRefundTransactionRequest = instanceOfRefundTransactionRequest;
|
|
17
|
+
exports.RefundTransactionRequestFromJSON = RefundTransactionRequestFromJSON;
|
|
18
|
+
exports.RefundTransactionRequestFromJSONTyped = RefundTransactionRequestFromJSONTyped;
|
|
19
|
+
exports.RefundTransactionRequestToJSON = RefundTransactionRequestToJSON;
|
|
20
|
+
exports.RefundTransactionRequestToJSONTyped = RefundTransactionRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the RefundTransactionRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfRefundTransactionRequest(value) {
|
|
25
|
+
if (!('amount' in value) || value['amount'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function RefundTransactionRequestFromJSON(json) {
|
|
30
|
+
return RefundTransactionRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function RefundTransactionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'amount': json['amount'],
|
|
38
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function RefundTransactionRequestToJSON(json) {
|
|
42
|
+
return RefundTransactionRequestToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function RefundTransactionRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
45
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'amount': value['amount'],
|
|
51
|
+
'description': value['description'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -36,6 +36,8 @@ function instanceOfStoreFrontendResource(value) {
|
|
|
36
36
|
return false;
|
|
37
37
|
if (!('longitude' in value) || value['longitude'] === undefined)
|
|
38
38
|
return false;
|
|
39
|
+
if (!('tagLine' in value) || value['tagLine'] === undefined)
|
|
40
|
+
return false;
|
|
39
41
|
if (!('specialDates' in value) || value['specialDates'] === undefined)
|
|
40
42
|
return false;
|
|
41
43
|
if (!('suppliers' in value) || value['suppliers'] === undefined)
|
|
@@ -59,7 +61,7 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
59
61
|
'address': json['address'] == null ? undefined : json['address'],
|
|
60
62
|
'latitude': json['latitude'],
|
|
61
63
|
'longitude': json['longitude'],
|
|
62
|
-
'tagLine': json['tagLine']
|
|
64
|
+
'tagLine': json['tagLine'],
|
|
63
65
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
64
66
|
'specialDates': json['specialDates'],
|
|
65
67
|
'suppliers': json['suppliers'],
|
|
@@ -40,6 +40,8 @@ function instanceOfStoreResource(value) {
|
|
|
40
40
|
return false;
|
|
41
41
|
if (!('email' in value) || value['email'] === undefined)
|
|
42
42
|
return false;
|
|
43
|
+
if (!('website' in value) || value['website'] === undefined)
|
|
44
|
+
return false;
|
|
43
45
|
if (!('suppliers' in value) || value['suppliers'] === undefined)
|
|
44
46
|
return false;
|
|
45
47
|
if (!('address' in value) || value['address'] === undefined)
|
|
@@ -64,7 +66,7 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
64
66
|
'latitude': json['latitude'],
|
|
65
67
|
'tagLine': json['tag_line'],
|
|
66
68
|
'email': json['email'],
|
|
67
|
-
'website': json['website']
|
|
69
|
+
'website': json['website'],
|
|
68
70
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
69
71
|
'suppliers': (json['suppliers'] == null ? null : json['suppliers'].map(SupplierLiteResource_1.SupplierLiteResourceFromJSON)),
|
|
70
72
|
'address': (0, AddressResource_1.AddressResourceFromJSON)(json['address']),
|
|
@@ -0,0 +1,81 @@
|
|
|
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 StoreTransactionRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface StoreTransactionRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof StoreTransactionRequest
|
|
22
|
+
*/
|
|
23
|
+
cartId?: number | null;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof StoreTransactionRequest
|
|
28
|
+
*/
|
|
29
|
+
orderId?: number | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof StoreTransactionRequest
|
|
34
|
+
*/
|
|
35
|
+
amount?: number | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof StoreTransactionRequest
|
|
40
|
+
*/
|
|
41
|
+
surcharge: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {StoreTransactionRequestPaymentMethodEnum}
|
|
45
|
+
* @memberof StoreTransactionRequest
|
|
46
|
+
*/
|
|
47
|
+
paymentMethod: StoreTransactionRequestPaymentMethodEnum;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof StoreTransactionRequest
|
|
52
|
+
*/
|
|
53
|
+
nonce?: string | null;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof StoreTransactionRequest
|
|
58
|
+
*/
|
|
59
|
+
deviceData?: string | null;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export declare const StoreTransactionRequestPaymentMethodEnum: {
|
|
65
|
+
readonly BankDeposit: "bank_deposit";
|
|
66
|
+
readonly Visa: "visa";
|
|
67
|
+
readonly Mastercard: "mastercard";
|
|
68
|
+
readonly AmericanExpress: "american_express";
|
|
69
|
+
readonly GooglePay: "google_pay";
|
|
70
|
+
readonly PayPal: "pay_pal";
|
|
71
|
+
readonly ApplePay: "apple_pay";
|
|
72
|
+
};
|
|
73
|
+
export type StoreTransactionRequestPaymentMethodEnum = typeof StoreTransactionRequestPaymentMethodEnum[keyof typeof StoreTransactionRequestPaymentMethodEnum];
|
|
74
|
+
/**
|
|
75
|
+
* Check if a given object implements the StoreTransactionRequest interface.
|
|
76
|
+
*/
|
|
77
|
+
export declare function instanceOfStoreTransactionRequest(value: object): value is StoreTransactionRequest;
|
|
78
|
+
export declare function StoreTransactionRequestFromJSON(json: any): StoreTransactionRequest;
|
|
79
|
+
export declare function StoreTransactionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreTransactionRequest;
|
|
80
|
+
export declare function StoreTransactionRequestToJSON(json: any): StoreTransactionRequest;
|
|
81
|
+
export declare function StoreTransactionRequestToJSONTyped(value?: StoreTransactionRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,78 @@
|
|
|
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.StoreTransactionRequestPaymentMethodEnum = void 0;
|
|
17
|
+
exports.instanceOfStoreTransactionRequest = instanceOfStoreTransactionRequest;
|
|
18
|
+
exports.StoreTransactionRequestFromJSON = StoreTransactionRequestFromJSON;
|
|
19
|
+
exports.StoreTransactionRequestFromJSONTyped = StoreTransactionRequestFromJSONTyped;
|
|
20
|
+
exports.StoreTransactionRequestToJSON = StoreTransactionRequestToJSON;
|
|
21
|
+
exports.StoreTransactionRequestToJSONTyped = StoreTransactionRequestToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.StoreTransactionRequestPaymentMethodEnum = {
|
|
26
|
+
BankDeposit: 'bank_deposit',
|
|
27
|
+
Visa: 'visa',
|
|
28
|
+
Mastercard: 'mastercard',
|
|
29
|
+
AmericanExpress: 'american_express',
|
|
30
|
+
GooglePay: 'google_pay',
|
|
31
|
+
PayPal: 'pay_pal',
|
|
32
|
+
ApplePay: 'apple_pay'
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Check if a given object implements the StoreTransactionRequest interface.
|
|
36
|
+
*/
|
|
37
|
+
function instanceOfStoreTransactionRequest(value) {
|
|
38
|
+
if (!('surcharge' in value) || value['surcharge'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('paymentMethod' in value) || value['paymentMethod'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
function StoreTransactionRequestFromJSON(json) {
|
|
45
|
+
return StoreTransactionRequestFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function StoreTransactionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'cartId': json['cart_id'] == null ? undefined : json['cart_id'],
|
|
53
|
+
'orderId': json['order_id'] == null ? undefined : json['order_id'],
|
|
54
|
+
'amount': json['amount'] == null ? undefined : json['amount'],
|
|
55
|
+
'surcharge': json['surcharge'],
|
|
56
|
+
'paymentMethod': json['payment_method'],
|
|
57
|
+
'nonce': json['nonce'] == null ? undefined : json['nonce'],
|
|
58
|
+
'deviceData': json['device_data'] == null ? undefined : json['device_data'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function StoreTransactionRequestToJSON(json) {
|
|
62
|
+
return StoreTransactionRequestToJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
function StoreTransactionRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
65
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
66
|
+
if (value == null) {
|
|
67
|
+
return value;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
'cart_id': value['cartId'],
|
|
71
|
+
'order_id': value['orderId'],
|
|
72
|
+
'amount': value['amount'],
|
|
73
|
+
'surcharge': value['surcharge'],
|
|
74
|
+
'payment_method': value['paymentMethod'],
|
|
75
|
+
'nonce': value['nonce'],
|
|
76
|
+
'device_data': value['deviceData'],
|
|
77
|
+
};
|
|
78
|
+
}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface TransactionListResource
|
|
16
|
+
*/
|
|
17
|
+
export interface TransactionListResource {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof TransactionListResource
|
|
22
|
+
*/
|
|
23
|
+
id?: number | null;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof TransactionListResource
|
|
28
|
+
*/
|
|
29
|
+
orderId?: number | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof TransactionListResource
|
|
34
|
+
*/
|
|
35
|
+
cartId?: number | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof TransactionListResource
|
|
40
|
+
*/
|
|
41
|
+
adminId?: number | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof TransactionListResource
|
|
46
|
+
*/
|
|
47
|
+
paymentSource: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof TransactionListResource
|
|
52
|
+
*/
|
|
53
|
+
paymentMethod: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof TransactionListResource
|
|
58
|
+
*/
|
|
59
|
+
type: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof TransactionListResource
|
|
64
|
+
*/
|
|
65
|
+
status: string;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof TransactionListResource
|
|
70
|
+
*/
|
|
71
|
+
amount: number;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {number}
|
|
75
|
+
* @memberof TransactionListResource
|
|
76
|
+
*/
|
|
77
|
+
surcharge: number;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {number}
|
|
81
|
+
* @memberof TransactionListResource
|
|
82
|
+
*/
|
|
83
|
+
totalAmount: number;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {number}
|
|
87
|
+
* @memberof TransactionListResource
|
|
88
|
+
*/
|
|
89
|
+
refundedAmount: number;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {number}
|
|
93
|
+
* @memberof TransactionListResource
|
|
94
|
+
*/
|
|
95
|
+
unrefundedAmount: number;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {string}
|
|
99
|
+
* @memberof TransactionListResource
|
|
100
|
+
*/
|
|
101
|
+
reference: string;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @type {string}
|
|
105
|
+
* @memberof TransactionListResource
|
|
106
|
+
*/
|
|
107
|
+
description?: string | null;
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @type {string}
|
|
111
|
+
* @memberof TransactionListResource
|
|
112
|
+
*/
|
|
113
|
+
extendedDate?: string | null;
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* @type {string}
|
|
117
|
+
* @memberof TransactionListResource
|
|
118
|
+
*/
|
|
119
|
+
riskScore?: string | null;
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
* @type {string}
|
|
123
|
+
* @memberof TransactionListResource
|
|
124
|
+
*/
|
|
125
|
+
fraudDecision?: string | null;
|
|
126
|
+
/**
|
|
127
|
+
*
|
|
128
|
+
* @type {number}
|
|
129
|
+
* @memberof TransactionListResource
|
|
130
|
+
*/
|
|
131
|
+
refundedTransactionId?: number | null;
|
|
132
|
+
/**
|
|
133
|
+
*
|
|
134
|
+
* @type {Date}
|
|
135
|
+
* @memberof TransactionListResource
|
|
136
|
+
*/
|
|
137
|
+
createdAt?: Date | null;
|
|
138
|
+
/**
|
|
139
|
+
*
|
|
140
|
+
* @type {Date}
|
|
141
|
+
* @memberof TransactionListResource
|
|
142
|
+
*/
|
|
143
|
+
updatedAt?: Date | null;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Check if a given object implements the TransactionListResource interface.
|
|
147
|
+
*/
|
|
148
|
+
export declare function instanceOfTransactionListResource(value: object): value is TransactionListResource;
|
|
149
|
+
export declare function TransactionListResourceFromJSON(json: any): TransactionListResource;
|
|
150
|
+
export declare function TransactionListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionListResource;
|
|
151
|
+
export declare function TransactionListResourceToJSON(json: any): TransactionListResource;
|
|
152
|
+
export declare function TransactionListResourceToJSONTyped(value?: TransactionListResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfTransactionListResource = instanceOfTransactionListResource;
|
|
17
|
+
exports.TransactionListResourceFromJSON = TransactionListResourceFromJSON;
|
|
18
|
+
exports.TransactionListResourceFromJSONTyped = TransactionListResourceFromJSONTyped;
|
|
19
|
+
exports.TransactionListResourceToJSON = TransactionListResourceToJSON;
|
|
20
|
+
exports.TransactionListResourceToJSONTyped = TransactionListResourceToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the TransactionListResource interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfTransactionListResource(value) {
|
|
25
|
+
if (!('paymentSource' in value) || value['paymentSource'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('paymentMethod' in value) || value['paymentMethod'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('amount' in value) || value['amount'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('surcharge' in value) || value['surcharge'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('totalAmount' in value) || value['totalAmount'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('refundedAmount' in value) || value['refundedAmount'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('unrefundedAmount' in value) || value['unrefundedAmount'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('reference' in value) || value['reference'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
return true;
|
|
46
|
+
}
|
|
47
|
+
function TransactionListResourceFromJSON(json) {
|
|
48
|
+
return TransactionListResourceFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function TransactionListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
56
|
+
'orderId': json['order_id'] == null ? undefined : json['order_id'],
|
|
57
|
+
'cartId': json['cart_id'] == null ? undefined : json['cart_id'],
|
|
58
|
+
'adminId': json['admin_id'] == null ? undefined : json['admin_id'],
|
|
59
|
+
'paymentSource': json['payment_source'],
|
|
60
|
+
'paymentMethod': json['payment_method'],
|
|
61
|
+
'type': json['type'],
|
|
62
|
+
'status': json['status'],
|
|
63
|
+
'amount': json['amount'],
|
|
64
|
+
'surcharge': json['surcharge'],
|
|
65
|
+
'totalAmount': json['total_amount'],
|
|
66
|
+
'refundedAmount': json['refunded_amount'],
|
|
67
|
+
'unrefundedAmount': json['unrefunded_amount'],
|
|
68
|
+
'reference': json['reference'],
|
|
69
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
70
|
+
'extendedDate': json['extended_date'] == null ? undefined : json['extended_date'],
|
|
71
|
+
'riskScore': json['risk_score'] == null ? undefined : json['risk_score'],
|
|
72
|
+
'fraudDecision': json['fraud_decision'] == null ? undefined : json['fraud_decision'],
|
|
73
|
+
'refundedTransactionId': json['refunded_transaction_id'] == null ? undefined : json['refunded_transaction_id'],
|
|
74
|
+
'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
|
|
75
|
+
'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
function TransactionListResourceToJSON(json) {
|
|
79
|
+
return TransactionListResourceToJSONTyped(json, false);
|
|
80
|
+
}
|
|
81
|
+
function TransactionListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
82
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
83
|
+
if (value == null) {
|
|
84
|
+
return value;
|
|
85
|
+
}
|
|
86
|
+
return {
|
|
87
|
+
'id': value['id'],
|
|
88
|
+
'order_id': value['orderId'],
|
|
89
|
+
'cart_id': value['cartId'],
|
|
90
|
+
'admin_id': value['adminId'],
|
|
91
|
+
'payment_source': value['paymentSource'],
|
|
92
|
+
'payment_method': value['paymentMethod'],
|
|
93
|
+
'type': value['type'],
|
|
94
|
+
'status': value['status'],
|
|
95
|
+
'amount': value['amount'],
|
|
96
|
+
'surcharge': value['surcharge'],
|
|
97
|
+
'total_amount': value['totalAmount'],
|
|
98
|
+
'refunded_amount': value['refundedAmount'],
|
|
99
|
+
'unrefunded_amount': value['unrefundedAmount'],
|
|
100
|
+
'reference': value['reference'],
|
|
101
|
+
'description': value['description'],
|
|
102
|
+
'extended_date': value['extendedDate'],
|
|
103
|
+
'risk_score': value['riskScore'],
|
|
104
|
+
'fraud_decision': value['fraudDecision'],
|
|
105
|
+
'refunded_transaction_id': value['refundedTransactionId'],
|
|
106
|
+
'created_at': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
|
|
107
|
+
'updated_at': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
|
|
108
|
+
};
|
|
109
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { TransactionListResource } from './TransactionListResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface TransactionListResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface TransactionListResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<TransactionListResource>}
|
|
22
|
+
* @memberof TransactionListResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<TransactionListResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the TransactionListResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfTransactionListResourceArrayResponse(value: object): value is TransactionListResourceArrayResponse;
|
|
30
|
+
export declare function TransactionListResourceArrayResponseFromJSON(json: any): TransactionListResourceArrayResponse;
|
|
31
|
+
export declare function TransactionListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionListResourceArrayResponse;
|
|
32
|
+
export declare function TransactionListResourceArrayResponseToJSON(json: any): TransactionListResourceArrayResponse;
|
|
33
|
+
export declare function TransactionListResourceArrayResponseToJSONTyped(value?: TransactionListResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfTransactionListResourceArrayResponse = instanceOfTransactionListResourceArrayResponse;
|
|
17
|
+
exports.TransactionListResourceArrayResponseFromJSON = TransactionListResourceArrayResponseFromJSON;
|
|
18
|
+
exports.TransactionListResourceArrayResponseFromJSONTyped = TransactionListResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.TransactionListResourceArrayResponseToJSON = TransactionListResourceArrayResponseToJSON;
|
|
20
|
+
exports.TransactionListResourceArrayResponseToJSONTyped = TransactionListResourceArrayResponseToJSONTyped;
|
|
21
|
+
var TransactionListResource_1 = require("./TransactionListResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the TransactionListResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfTransactionListResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function TransactionListResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return TransactionListResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function TransactionListResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(TransactionListResource_1.TransactionListResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function TransactionListResourceArrayResponseToJSON(json) {
|
|
40
|
+
return TransactionListResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function TransactionListResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'data': value['data'] == null ? undefined : (value['data'].map(TransactionListResource_1.TransactionListResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|