@digital8/lighting-illusions-ts-sdk 0.0.1912 → 0.0.1913

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 (81) hide show
  1. package/.openapi-generator/FILES +28 -0
  2. package/README.md +18 -2
  3. package/dist/apis/TransactionsApi.d.ts +64 -0
  4. package/dist/apis/TransactionsApi.js +257 -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/PaginatedTransactionListResourceResponse.d.ts +40 -0
  14. package/dist/models/PaginatedTransactionListResourceResponse.js +57 -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/StoreFrontendResource.d.ts +2 -2
  26. package/dist/models/StoreFrontendResource.js +6 -2
  27. package/dist/models/StoreListResource.d.ts +1 -1
  28. package/dist/models/StoreListResource.js +3 -1
  29. package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
  30. package/dist/models/StoreSpecialDateFrontendResource.js +1 -3
  31. package/dist/models/StoreTransactionRequest.d.ts +81 -0
  32. package/dist/models/StoreTransactionRequest.js +78 -0
  33. package/dist/models/TransactionListResource.d.ts +152 -0
  34. package/dist/models/TransactionListResource.js +109 -0
  35. package/dist/models/TransactionListResourceArrayResponse.d.ts +33 -0
  36. package/dist/models/TransactionListResourceArrayResponse.js +50 -0
  37. package/dist/models/TransactionResource.d.ts +152 -0
  38. package/dist/models/TransactionResource.js +109 -0
  39. package/dist/models/TransactionResourceArrayResponse.d.ts +33 -0
  40. package/dist/models/TransactionResourceArrayResponse.js +50 -0
  41. package/dist/models/TransactionType.d.ts +25 -0
  42. package/dist/models/TransactionType.js +51 -0
  43. package/dist/models/index.d.ts +13 -0
  44. package/dist/models/index.js +13 -0
  45. package/docs/IndexTransactionRequest.md +60 -0
  46. package/docs/PaginatedTransactionListResourceResponse.md +36 -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/StoreSpecialDateFrontendResource.md +1 -1
  53. package/docs/StoreTransactionRequest.md +46 -0
  54. package/docs/TransactionListResource.md +74 -0
  55. package/docs/TransactionListResourceArrayResponse.md +34 -0
  56. package/docs/TransactionResource.md +74 -0
  57. package/docs/TransactionResourceArrayResponse.md +34 -0
  58. package/docs/TransactionType.md +32 -0
  59. package/docs/TransactionsApi.md +209 -0
  60. package/package.json +1 -1
  61. package/src/apis/TransactionsApi.ts +186 -0
  62. package/src/apis/index.ts +1 -0
  63. package/src/models/AddressFrontendResource.ts +3 -2
  64. package/src/models/AddressResource.ts +6 -4
  65. package/src/models/IndexTransactionRequest.ts +190 -0
  66. package/src/models/PaginatedTransactionListResourceResponse.ts +90 -0
  67. package/src/models/PaginatedTransactionResourceResponse.ts +90 -0
  68. package/src/models/PaymentMethod.ts +58 -0
  69. package/src/models/PaymentSource.ts +54 -0
  70. package/src/models/PaymentStatus.ts +53 -0
  71. package/src/models/RefundTransactionRequest.ts +74 -0
  72. package/src/models/StoreFrontendResource.ts +6 -4
  73. package/src/models/StoreListResource.ts +3 -2
  74. package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
  75. package/src/models/StoreTransactionRequest.ts +131 -0
  76. package/src/models/TransactionListResource.ts +235 -0
  77. package/src/models/TransactionListResourceArrayResponse.ts +73 -0
  78. package/src/models/TransactionResource.ts +235 -0
  79. package/src/models/TransactionResourceArrayResponse.ts +73 -0
  80. package/src/models/TransactionType.ts +53 -0
  81. 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
+ }
@@ -44,7 +44,7 @@ export interface StoreFrontendResource {
44
44
  * @type {string}
45
45
  * @memberof StoreFrontendResource
46
46
  */
47
- website?: string | null;
47
+ website: string;
48
48
  /**
49
49
  *
50
50
  * @type {string}
@@ -74,7 +74,7 @@ export interface StoreFrontendResource {
74
74
  * @type {string}
75
75
  * @memberof StoreFrontendResource
76
76
  */
77
- tagLine?: string | null;
77
+ tagLine: string;
78
78
  /**
79
79
  *
80
80
  * @type {string}
@@ -28,12 +28,16 @@ function instanceOfStoreFrontendResource(value) {
28
28
  return false;
29
29
  if (!('email' in value) || value['email'] === undefined)
30
30
  return false;
31
+ if (!('website' in value) || value['website'] === undefined)
32
+ return false;
31
33
  if (!('phone' in value) || value['phone'] === undefined)
32
34
  return false;
33
35
  if (!('latitude' in value) || value['latitude'] === undefined)
34
36
  return false;
35
37
  if (!('longitude' in value) || value['longitude'] === undefined)
36
38
  return false;
39
+ if (!('tagLine' in value) || value['tagLine'] === undefined)
40
+ return false;
37
41
  if (!('specialDates' in value) || value['specialDates'] === undefined)
38
42
  return false;
39
43
  if (!('suppliers' in value) || value['suppliers'] === undefined)
@@ -52,12 +56,12 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
52
56
  'siteId': json['siteId'],
53
57
  'name': json['name'],
54
58
  'email': json['email'],
55
- 'website': json['website'] == null ? undefined : json['website'],
59
+ 'website': json['website'],
56
60
  'phone': json['phone'],
57
61
  'address': json['address'] == null ? undefined : json['address'],
58
62
  'latitude': json['latitude'],
59
63
  'longitude': json['longitude'],
60
- 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
64
+ 'tagLine': json['tagLine'],
61
65
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
62
66
  'specialDates': json['specialDates'],
63
67
  'suppliers': json['suppliers'],
@@ -69,7 +69,7 @@ export interface StoreListResource {
69
69
  * @type {string}
70
70
  * @memberof StoreListResource
71
71
  */
72
- website?: string | null;
72
+ website: string;
73
73
  /**
74
74
  *
75
75
  * @type {string}
@@ -37,6 +37,8 @@ function instanceOfStoreListResource(value) {
37
37
  return false;
38
38
  if (!('email' in value) || value['email'] === undefined)
39
39
  return false;
40
+ if (!('website' in value) || value['website'] === undefined)
41
+ return false;
40
42
  return true;
41
43
  }
42
44
  function StoreListResourceFromJSON(json) {
@@ -55,7 +57,7 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
55
57
  'latitude': json['latitude'],
56
58
  'tagLine': json['tag_line'],
57
59
  'email': json['email'],
58
- 'website': json['website'] == null ? undefined : json['website'],
60
+ 'website': json['website'],
59
61
  'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
60
62
  };
61
63
  }
@@ -35,10 +35,10 @@ export interface StoreSpecialDateFrontendResource {
35
35
  hours: string;
36
36
  /**
37
37
  *
38
- * @type {object}
38
+ * @type {string}
39
39
  * @memberof StoreSpecialDateFrontendResource
40
40
  */
41
- date: object;
41
+ date?: string | null;
42
42
  /**
43
43
  *
44
44
  * @type {boolean}
@@ -26,8 +26,6 @@ function instanceOfStoreSpecialDateFrontendResource(value) {
26
26
  return false;
27
27
  if (!('hours' in value) || value['hours'] === undefined)
28
28
  return false;
29
- if (!('date' in value) || value['date'] === undefined)
30
- return false;
31
29
  if (!('closed' in value) || value['closed'] === undefined)
32
30
  return false;
33
31
  if (!('displayStartDate' in value) || value['displayStartDate'] === undefined)
@@ -47,7 +45,7 @@ function StoreSpecialDateFrontendResourceFromJSONTyped(json, ignoreDiscriminator
47
45
  'id': json['id'] == null ? undefined : json['id'],
48
46
  'name': json['name'],
49
47
  'hours': json['hours'],
50
- 'date': json['date'],
48
+ 'date': json['date'] == null ? undefined : json['date'],
51
49
  'closed': json['closed'],
52
50
  'displayStartDate': json['displayStartDate'],
53
51
  'displayEndDate': json['displayEndDate'],
@@ -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
+ extendedData?: 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
+ 'extendedData': json['extended_data'] == null ? undefined : json['extended_data'],
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_data': value['extendedData'],
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;