@digital8/lighting-illusions-ts-sdk 0.0.1951 → 0.0.1952

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.
Files changed (82) hide show
  1. package/.openapi-generator/FILES +26 -0
  2. package/README.md +17 -2
  3. package/dist/apis/TransactionsApi.d.ts +69 -0
  4. package/dist/apis/TransactionsApi.js +262 -0
  5. package/dist/apis/index.d.ts +1 -0
  6. package/dist/apis/index.js +1 -0
  7. package/dist/models/AddressFrontendResource.d.ts +1 -1
  8. package/dist/models/AddressFrontendResource.js +3 -1
  9. package/dist/models/AddressResource.d.ts +2 -2
  10. package/dist/models/AddressResource.js +6 -2
  11. package/dist/models/IndexTransactionRequest.d.ts +127 -0
  12. package/dist/models/IndexTransactionRequest.js +91 -0
  13. package/dist/models/OrderListResource.d.ts +7 -0
  14. package/dist/models/OrderListResource.js +5 -0
  15. package/dist/models/PaginatedTransactionResourceResponse.d.ts +40 -0
  16. package/dist/models/PaginatedTransactionResourceResponse.js +57 -0
  17. package/dist/models/PaymentMethod.d.ts +30 -0
  18. package/dist/models/PaymentMethod.js +56 -0
  19. package/dist/models/PaymentSource.d.ts +26 -0
  20. package/dist/models/PaymentSource.js +52 -0
  21. package/dist/models/PaymentStatus.d.ts +25 -0
  22. package/dist/models/PaymentStatus.js +51 -0
  23. package/dist/models/RefundTransactionRequest.d.ts +38 -0
  24. package/dist/models/RefundTransactionRequest.js +53 -0
  25. package/dist/models/StoreListResource.d.ts +1 -1
  26. package/dist/models/StoreListResource.js +1 -3
  27. package/dist/models/StoreTransactionRequest.d.ts +81 -0
  28. package/dist/models/StoreTransactionRequest.js +78 -0
  29. package/dist/models/TransactionLiteResource.d.ts +74 -0
  30. package/dist/models/TransactionLiteResource.js +77 -0
  31. package/dist/models/TransactionLiteResourceArrayResponse.d.ts +33 -0
  32. package/dist/models/TransactionLiteResourceArrayResponse.js +50 -0
  33. package/dist/models/TransactionResource.d.ts +128 -0
  34. package/dist/models/TransactionResource.js +101 -0
  35. package/dist/models/TransactionResourceArrayResponse.d.ts +33 -0
  36. package/dist/models/TransactionResourceArrayResponse.js +50 -0
  37. package/dist/models/TransactionType.d.ts +25 -0
  38. package/dist/models/TransactionType.js +51 -0
  39. package/dist/models/UpdateOrderRequestBillingAddress.d.ts +6 -0
  40. package/dist/models/UpdateOrderRequestBillingAddress.js +2 -0
  41. package/dist/models/UpdateOrderRequestShippingAddress.d.ts +7 -1
  42. package/dist/models/UpdateOrderRequestShippingAddress.js +5 -1
  43. package/dist/models/index.d.ts +12 -0
  44. package/dist/models/index.js +12 -0
  45. package/docs/IndexTransactionRequest.md +60 -0
  46. package/docs/OrderListResource.md +2 -0
  47. package/docs/PaginatedTransactionResourceResponse.md +36 -0
  48. package/docs/PaymentMethod.md +32 -0
  49. package/docs/PaymentSource.md +32 -0
  50. package/docs/PaymentStatus.md +32 -0
  51. package/docs/RefundTransactionRequest.md +36 -0
  52. package/docs/StoreTransactionRequest.md +46 -0
  53. package/docs/TransactionLiteResource.md +48 -0
  54. package/docs/TransactionLiteResourceArrayResponse.md +34 -0
  55. package/docs/TransactionResource.md +66 -0
  56. package/docs/TransactionResourceArrayResponse.md +34 -0
  57. package/docs/TransactionType.md +32 -0
  58. package/docs/TransactionsApi.md +209 -0
  59. package/docs/UpdateOrderRequestBillingAddress.md +2 -0
  60. package/docs/UpdateOrderRequestShippingAddress.md +2 -0
  61. package/package.json +1 -1
  62. package/src/apis/TransactionsApi.ts +193 -0
  63. package/src/apis/index.ts +1 -0
  64. package/src/models/AddressFrontendResource.ts +3 -2
  65. package/src/models/AddressResource.ts +6 -4
  66. package/src/models/IndexTransactionRequest.ts +190 -0
  67. package/src/models/OrderListResource.ts +16 -0
  68. package/src/models/PaginatedTransactionResourceResponse.ts +90 -0
  69. package/src/models/PaymentMethod.ts +58 -0
  70. package/src/models/PaymentSource.ts +54 -0
  71. package/src/models/PaymentStatus.ts +53 -0
  72. package/src/models/RefundTransactionRequest.ts +74 -0
  73. package/src/models/StoreListResource.ts +2 -3
  74. package/src/models/StoreTransactionRequest.ts +131 -0
  75. package/src/models/TransactionLiteResource.ts +128 -0
  76. package/src/models/TransactionLiteResourceArrayResponse.ts +73 -0
  77. package/src/models/TransactionResource.ts +203 -0
  78. package/src/models/TransactionResourceArrayResponse.ts +73 -0
  79. package/src/models/TransactionType.ts +53 -0
  80. package/src/models/UpdateOrderRequestBillingAddress.ts +8 -0
  81. package/src/models/UpdateOrderRequestShippingAddress.ts +11 -2
  82. package/src/models/index.ts +12 -0
@@ -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
+ }
@@ -57,7 +57,7 @@ export interface StoreListResource {
57
57
  * @type {string}
58
58
  * @memberof StoreListResource
59
59
  */
60
- tagLine: string;
60
+ tagLine?: string | null;
61
61
  /**
62
62
  *
63
63
  * @type {string}
@@ -33,8 +33,6 @@ function instanceOfStoreListResource(value) {
33
33
  return false;
34
34
  if (!('latitude' in value) || value['latitude'] === undefined)
35
35
  return false;
36
- if (!('tagLine' in value) || value['tagLine'] === undefined)
37
- return false;
38
36
  if (!('email' in value) || value['email'] === undefined)
39
37
  return false;
40
38
  return true;
@@ -53,7 +51,7 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
53
51
  'phone': json['phone'],
54
52
  'longitude': json['longitude'],
55
53
  'latitude': json['latitude'],
56
- 'tagLine': json['tag_line'],
54
+ 'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
57
55
  'email': json['email'],
58
56
  'website': json['website'] == null ? undefined : json['website'],
59
57
  'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
@@ -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,74 @@
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 TransactionLiteResource
16
+ */
17
+ export interface TransactionLiteResource {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof TransactionLiteResource
22
+ */
23
+ paymentMethod: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof TransactionLiteResource
28
+ */
29
+ type: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof TransactionLiteResource
34
+ */
35
+ status: string;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof TransactionLiteResource
40
+ */
41
+ amount: number;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof TransactionLiteResource
46
+ */
47
+ surcharge: number;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof TransactionLiteResource
52
+ */
53
+ totalAmount: number;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof TransactionLiteResource
58
+ */
59
+ reference: string;
60
+ /**
61
+ *
62
+ * @type {Date}
63
+ * @memberof TransactionLiteResource
64
+ */
65
+ createdAt?: Date | null;
66
+ }
67
+ /**
68
+ * Check if a given object implements the TransactionLiteResource interface.
69
+ */
70
+ export declare function instanceOfTransactionLiteResource(value: object): value is TransactionLiteResource;
71
+ export declare function TransactionLiteResourceFromJSON(json: any): TransactionLiteResource;
72
+ export declare function TransactionLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionLiteResource;
73
+ export declare function TransactionLiteResourceToJSON(json: any): TransactionLiteResource;
74
+ export declare function TransactionLiteResourceToJSONTyped(value?: TransactionLiteResource | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,77 @@
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.instanceOfTransactionLiteResource = instanceOfTransactionLiteResource;
17
+ exports.TransactionLiteResourceFromJSON = TransactionLiteResourceFromJSON;
18
+ exports.TransactionLiteResourceFromJSONTyped = TransactionLiteResourceFromJSONTyped;
19
+ exports.TransactionLiteResourceToJSON = TransactionLiteResourceToJSON;
20
+ exports.TransactionLiteResourceToJSONTyped = TransactionLiteResourceToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the TransactionLiteResource interface.
23
+ */
24
+ function instanceOfTransactionLiteResource(value) {
25
+ if (!('paymentMethod' in value) || value['paymentMethod'] === undefined)
26
+ return false;
27
+ if (!('type' in value) || value['type'] === undefined)
28
+ return false;
29
+ if (!('status' in value) || value['status'] === undefined)
30
+ return false;
31
+ if (!('amount' in value) || value['amount'] === undefined)
32
+ return false;
33
+ if (!('surcharge' in value) || value['surcharge'] === undefined)
34
+ return false;
35
+ if (!('totalAmount' in value) || value['totalAmount'] === undefined)
36
+ return false;
37
+ if (!('reference' in value) || value['reference'] === undefined)
38
+ return false;
39
+ return true;
40
+ }
41
+ function TransactionLiteResourceFromJSON(json) {
42
+ return TransactionLiteResourceFromJSONTyped(json, false);
43
+ }
44
+ function TransactionLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
45
+ if (json == null) {
46
+ return json;
47
+ }
48
+ return {
49
+ 'paymentMethod': json['payment_method'],
50
+ 'type': json['type'],
51
+ 'status': json['status'],
52
+ 'amount': json['amount'],
53
+ 'surcharge': json['surcharge'],
54
+ 'totalAmount': json['total_amount'],
55
+ 'reference': json['reference'],
56
+ 'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
57
+ };
58
+ }
59
+ function TransactionLiteResourceToJSON(json) {
60
+ return TransactionLiteResourceToJSONTyped(json, false);
61
+ }
62
+ function TransactionLiteResourceToJSONTyped(value, ignoreDiscriminator) {
63
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+ return {
68
+ 'payment_method': value['paymentMethod'],
69
+ 'type': value['type'],
70
+ 'status': value['status'],
71
+ 'amount': value['amount'],
72
+ 'surcharge': value['surcharge'],
73
+ 'total_amount': value['totalAmount'],
74
+ 'reference': value['reference'],
75
+ 'created_at': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
76
+ };
77
+ }
@@ -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 { TransactionLiteResource } from './TransactionLiteResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface TransactionLiteResourceArrayResponse
17
+ */
18
+ export interface TransactionLiteResourceArrayResponse {
19
+ /**
20
+ *
21
+ * @type {Array<TransactionLiteResource>}
22
+ * @memberof TransactionLiteResourceArrayResponse
23
+ */
24
+ data?: Array<TransactionLiteResource>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the TransactionLiteResourceArrayResponse interface.
28
+ */
29
+ export declare function instanceOfTransactionLiteResourceArrayResponse(value: object): value is TransactionLiteResourceArrayResponse;
30
+ export declare function TransactionLiteResourceArrayResponseFromJSON(json: any): TransactionLiteResourceArrayResponse;
31
+ export declare function TransactionLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionLiteResourceArrayResponse;
32
+ export declare function TransactionLiteResourceArrayResponseToJSON(json: any): TransactionLiteResourceArrayResponse;
33
+ export declare function TransactionLiteResourceArrayResponseToJSONTyped(value?: TransactionLiteResourceArrayResponse | 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.instanceOfTransactionLiteResourceArrayResponse = instanceOfTransactionLiteResourceArrayResponse;
17
+ exports.TransactionLiteResourceArrayResponseFromJSON = TransactionLiteResourceArrayResponseFromJSON;
18
+ exports.TransactionLiteResourceArrayResponseFromJSONTyped = TransactionLiteResourceArrayResponseFromJSONTyped;
19
+ exports.TransactionLiteResourceArrayResponseToJSON = TransactionLiteResourceArrayResponseToJSON;
20
+ exports.TransactionLiteResourceArrayResponseToJSONTyped = TransactionLiteResourceArrayResponseToJSONTyped;
21
+ var TransactionLiteResource_1 = require("./TransactionLiteResource");
22
+ /**
23
+ * Check if a given object implements the TransactionLiteResourceArrayResponse interface.
24
+ */
25
+ function instanceOfTransactionLiteResourceArrayResponse(value) {
26
+ return true;
27
+ }
28
+ function TransactionLiteResourceArrayResponseFromJSON(json) {
29
+ return TransactionLiteResourceArrayResponseFromJSONTyped(json, false);
30
+ }
31
+ function TransactionLiteResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'data': json['data'] == null ? undefined : (json['data'].map(TransactionLiteResource_1.TransactionLiteResourceFromJSON)),
37
+ };
38
+ }
39
+ function TransactionLiteResourceArrayResponseToJSON(json) {
40
+ return TransactionLiteResourceArrayResponseToJSONTyped(json, false);
41
+ }
42
+ function TransactionLiteResourceArrayResponseToJSONTyped(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(TransactionLiteResource_1.TransactionLiteResourceToJSON)),
49
+ };
50
+ }
@@ -0,0 +1,128 @@
1
+ /**
2
+ * My API
3
+ * API documentation for my Laravel app
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface TransactionResource
16
+ */
17
+ export interface TransactionResource {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof TransactionResource
22
+ */
23
+ id?: number | null;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof TransactionResource
28
+ */
29
+ paymentSource: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof TransactionResource
34
+ */
35
+ paymentMethod: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof TransactionResource
40
+ */
41
+ type: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof TransactionResource
46
+ */
47
+ status: string;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof TransactionResource
52
+ */
53
+ amount: number;
54
+ /**
55
+ *
56
+ * @type {number}
57
+ * @memberof TransactionResource
58
+ */
59
+ surcharge: number;
60
+ /**
61
+ *
62
+ * @type {number}
63
+ * @memberof TransactionResource
64
+ */
65
+ totalAmount: number;
66
+ /**
67
+ *
68
+ * @type {number}
69
+ * @memberof TransactionResource
70
+ */
71
+ refundedAmount: number;
72
+ /**
73
+ *
74
+ * @type {number}
75
+ * @memberof TransactionResource
76
+ */
77
+ unrefundedAmount: number;
78
+ /**
79
+ *
80
+ * @type {string}
81
+ * @memberof TransactionResource
82
+ */
83
+ reference: string;
84
+ /**
85
+ *
86
+ * @type {string}
87
+ * @memberof TransactionResource
88
+ */
89
+ description?: string | null;
90
+ /**
91
+ *
92
+ * @type {string}
93
+ * @memberof TransactionResource
94
+ */
95
+ extendedData?: string | null;
96
+ /**
97
+ *
98
+ * @type {string}
99
+ * @memberof TransactionResource
100
+ */
101
+ riskScore?: string | null;
102
+ /**
103
+ *
104
+ * @type {string}
105
+ * @memberof TransactionResource
106
+ */
107
+ fraudDecision?: string | null;
108
+ /**
109
+ *
110
+ * @type {number}
111
+ * @memberof TransactionResource
112
+ */
113
+ refundedTransactionId?: number | null;
114
+ /**
115
+ *
116
+ * @type {Date}
117
+ * @memberof TransactionResource
118
+ */
119
+ createdAt?: Date | null;
120
+ }
121
+ /**
122
+ * Check if a given object implements the TransactionResource interface.
123
+ */
124
+ export declare function instanceOfTransactionResource(value: object): value is TransactionResource;
125
+ export declare function TransactionResourceFromJSON(json: any): TransactionResource;
126
+ export declare function TransactionResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionResource;
127
+ export declare function TransactionResourceToJSON(json: any): TransactionResource;
128
+ export declare function TransactionResourceToJSONTyped(value?: TransactionResource | null, ignoreDiscriminator?: boolean): any;