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

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 (51) hide show
  1. package/.openapi-generator/FILES +6 -4
  2. package/README.md +5 -4
  3. package/dist/apis/TransactionsApi.d.ts +3 -3
  4. package/dist/apis/TransactionsApi.js +2 -2
  5. package/dist/models/AddressFrontendResource.d.ts +1 -1
  6. package/dist/models/AddressFrontendResource.js +1 -3
  7. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  8. package/dist/models/ExternalApiLogResource.js +3 -1
  9. package/dist/models/OrderListResource.d.ts +0 -7
  10. package/dist/models/OrderListResource.js +0 -5
  11. package/dist/models/PaginatedTransactionListResourceResponse.d.ts +40 -0
  12. package/dist/models/PaginatedTransactionListResourceResponse.js +57 -0
  13. package/dist/models/StoreFrontendResource.d.ts +1 -1
  14. package/dist/models/StoreFrontendResource.js +1 -3
  15. package/dist/models/StoreListResource.d.ts +2 -2
  16. package/dist/models/StoreListResource.js +6 -2
  17. package/dist/models/StoreResource.d.ts +2 -2
  18. package/dist/models/StoreResource.js +4 -4
  19. package/dist/models/TransactionListResource.d.ts +152 -0
  20. package/dist/models/TransactionListResource.js +109 -0
  21. package/dist/models/TransactionListResourceArrayResponse.d.ts +33 -0
  22. package/dist/models/TransactionListResourceArrayResponse.js +50 -0
  23. package/dist/models/TransactionResource.d.ts +24 -0
  24. package/dist/models/TransactionResource.js +8 -0
  25. package/dist/models/index.d.ts +3 -2
  26. package/dist/models/index.js +3 -2
  27. package/docs/OrderListResource.md +0 -2
  28. package/docs/PaginatedTransactionListResourceResponse.md +36 -0
  29. package/docs/{TransactionLiteResource.md → TransactionListResource.md} +30 -4
  30. package/docs/{TransactionLiteResourceArrayResponse.md → TransactionListResourceArrayResponse.md} +5 -5
  31. package/docs/TransactionResource.md +8 -0
  32. package/docs/TransactionsApi.md +3 -3
  33. package/package.json +1 -1
  34. package/src/apis/TransactionsApi.ts +7 -7
  35. package/src/models/AddressFrontendResource.ts +2 -3
  36. package/src/models/ExternalApiLogResource.ts +3 -2
  37. package/src/models/OrderListResource.ts +0 -16
  38. package/src/models/PaginatedTransactionListResourceResponse.ts +90 -0
  39. package/src/models/StoreFrontendResource.ts +2 -3
  40. package/src/models/StoreListResource.ts +6 -4
  41. package/src/models/StoreResource.ts +5 -5
  42. package/src/models/TransactionListResource.ts +235 -0
  43. package/src/models/TransactionListResourceArrayResponse.ts +73 -0
  44. package/src/models/TransactionResource.ts +32 -0
  45. package/src/models/index.ts +3 -2
  46. package/dist/models/TransactionLiteResource.d.ts +0 -74
  47. package/dist/models/TransactionLiteResource.js +0 -77
  48. package/dist/models/TransactionLiteResourceArrayResponse.d.ts +0 -33
  49. package/dist/models/TransactionLiteResourceArrayResponse.js +0 -50
  50. package/src/models/TransactionLiteResource.ts +0 -128
  51. package/src/models/TransactionLiteResourceArrayResponse.ts +0 -73
@@ -284,6 +284,7 @@ docs/PaginatedSupplierResourceResponse.md
284
284
  docs/PaginatedTagListResourceResponse.md
285
285
  docs/PaginatedTagLiteResourceResponse.md
286
286
  docs/PaginatedTagResourceResponse.md
287
+ docs/PaginatedTransactionListResourceResponse.md
287
288
  docs/PaginatedTransactionResourceResponse.md
288
289
  docs/PagingMetadata.md
289
290
  docs/PaymentMethod.md
@@ -487,8 +488,8 @@ docs/TagLiteResourceArrayResponse.md
487
488
  docs/TagResource.md
488
489
  docs/TagResourceArrayResponse.md
489
490
  docs/TagType.md
490
- docs/TransactionLiteResource.md
491
- docs/TransactionLiteResourceArrayResponse.md
491
+ docs/TransactionListResource.md
492
+ docs/TransactionListResourceArrayResponse.md
492
493
  docs/TransactionResource.md
493
494
  docs/TransactionResourceArrayResponse.md
494
495
  docs/TransactionType.md
@@ -827,6 +828,7 @@ src/models/PaginatedSupplierResourceResponse.ts
827
828
  src/models/PaginatedTagListResourceResponse.ts
828
829
  src/models/PaginatedTagLiteResourceResponse.ts
829
830
  src/models/PaginatedTagResourceResponse.ts
831
+ src/models/PaginatedTransactionListResourceResponse.ts
830
832
  src/models/PaginatedTransactionResourceResponse.ts
831
833
  src/models/PagingMetadata.ts
832
834
  src/models/PaymentMethod.ts
@@ -1020,8 +1022,8 @@ src/models/TagLiteResourceArrayResponse.ts
1020
1022
  src/models/TagResource.ts
1021
1023
  src/models/TagResourceArrayResponse.ts
1022
1024
  src/models/TagType.ts
1023
- src/models/TransactionLiteResource.ts
1024
- src/models/TransactionLiteResourceArrayResponse.ts
1025
+ src/models/TransactionListResource.ts
1026
+ src/models/TransactionListResourceArrayResponse.ts
1025
1027
  src/models/TransactionResource.ts
1026
1028
  src/models/TransactionResourceArrayResponse.ts
1027
1029
  src/models/TransactionType.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @digital8/lighting-illusions-ts-sdk@0.0.1952
1
+ # @digital8/lighting-illusions-ts-sdk@0.0.1953
2
2
 
3
3
  A TypeScript SDK client for the localhost API.
4
4
 
@@ -530,6 +530,7 @@ All URIs are relative to *http://localhost/api*
530
530
  - [PaginatedTagListResourceResponse](docs/PaginatedTagListResourceResponse.md)
531
531
  - [PaginatedTagLiteResourceResponse](docs/PaginatedTagLiteResourceResponse.md)
532
532
  - [PaginatedTagResourceResponse](docs/PaginatedTagResourceResponse.md)
533
+ - [PaginatedTransactionListResourceResponse](docs/PaginatedTransactionListResourceResponse.md)
533
534
  - [PaginatedTransactionResourceResponse](docs/PaginatedTransactionResourceResponse.md)
534
535
  - [PagingMetadata](docs/PagingMetadata.md)
535
536
  - [PaymentMethod](docs/PaymentMethod.md)
@@ -723,8 +724,8 @@ All URIs are relative to *http://localhost/api*
723
724
  - [TagResource](docs/TagResource.md)
724
725
  - [TagResourceArrayResponse](docs/TagResourceArrayResponse.md)
725
726
  - [TagType](docs/TagType.md)
726
- - [TransactionLiteResource](docs/TransactionLiteResource.md)
727
- - [TransactionLiteResourceArrayResponse](docs/TransactionLiteResourceArrayResponse.md)
727
+ - [TransactionListResource](docs/TransactionListResource.md)
728
+ - [TransactionListResourceArrayResponse](docs/TransactionListResourceArrayResponse.md)
728
729
  - [TransactionResource](docs/TransactionResource.md)
729
730
  - [TransactionResourceArrayResponse](docs/TransactionResourceArrayResponse.md)
730
731
  - [TransactionType](docs/TransactionType.md)
@@ -779,7 +780,7 @@ and is automatically generated by the
779
780
  [OpenAPI Generator](https://openapi-generator.tech) project:
780
781
 
781
782
  - API version: `1.0.0`
782
- - Package version: `0.0.1952`
783
+ - Package version: `0.0.1953`
783
784
  - Generator version: `7.22.0`
784
785
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
785
786
 
@@ -12,7 +12,7 @@
12
12
  import * as runtime from '../runtime';
13
13
  import { type GenericResponse } from '../models/GenericResponse';
14
14
  import { type IndexTransactionRequest } from '../models/IndexTransactionRequest';
15
- import { type PaginatedTransactionResourceResponse } from '../models/PaginatedTransactionResourceResponse';
15
+ import { type PaginatedTransactionListResourceResponse } from '../models/PaginatedTransactionListResourceResponse';
16
16
  import { type RefundTransactionRequest } from '../models/RefundTransactionRequest';
17
17
  import { type StoreTransactionRequest } from '../models/StoreTransactionRequest';
18
18
  import { type TransactionResource } from '../models/TransactionResource';
@@ -37,11 +37,11 @@ export declare class TransactionsApi extends runtime.BaseAPI {
37
37
  /**
38
38
  * Auto-generated: indexTransaction
39
39
  */
40
- indexTransactionRaw(requestParameters: IndexTransactionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedTransactionResourceResponse>>;
40
+ indexTransactionRaw(requestParameters: IndexTransactionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedTransactionListResourceResponse>>;
41
41
  /**
42
42
  * Auto-generated: indexTransaction
43
43
  */
44
- indexTransaction(requestParameters?: IndexTransactionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedTransactionResourceResponse>;
44
+ indexTransaction(requestParameters?: IndexTransactionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedTransactionListResourceResponse>;
45
45
  /**
46
46
  * Creates request options for refundTransaction without sending the request
47
47
  */
@@ -68,7 +68,7 @@ exports.TransactionsApi = void 0;
68
68
  var runtime = require("../runtime");
69
69
  var GenericResponse_1 = require("../models/GenericResponse");
70
70
  var IndexTransactionRequest_1 = require("../models/IndexTransactionRequest");
71
- var PaginatedTransactionResourceResponse_1 = require("../models/PaginatedTransactionResourceResponse");
71
+ var PaginatedTransactionListResourceResponse_1 = require("../models/PaginatedTransactionListResourceResponse");
72
72
  var RefundTransactionRequest_1 = require("../models/RefundTransactionRequest");
73
73
  var StoreTransactionRequest_1 = require("../models/StoreTransactionRequest");
74
74
  var TransactionResource_1 = require("../models/TransactionResource");
@@ -115,7 +115,7 @@ var TransactionsApi = /** @class */ (function (_super) {
115
115
  return [4 /*yield*/, this.request(requestOptions, initOverrides)];
116
116
  case 2:
117
117
  response = _a.sent();
118
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, PaginatedTransactionResourceResponse_1.PaginatedTransactionResourceResponseFromJSON)(jsonValue); })];
118
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, PaginatedTransactionListResourceResponse_1.PaginatedTransactionListResourceResponseFromJSON)(jsonValue); })];
119
119
  }
120
120
  });
121
121
  });
@@ -20,7 +20,7 @@ export interface AddressFrontendResource {
20
20
  * @type {string}
21
21
  * @memberof AddressFrontendResource
22
22
  */
23
- company: string;
23
+ company?: string | null;
24
24
  /**
25
25
  *
26
26
  * @type {string}
@@ -22,8 +22,6 @@ exports.AddressFrontendResourceToJSONTyped = AddressFrontendResourceToJSONTyped;
22
22
  * Check if a given object implements the AddressFrontendResource interface.
23
23
  */
24
24
  function instanceOfAddressFrontendResource(value) {
25
- if (!('company' in value) || value['company'] === undefined)
26
- return false;
27
25
  if (!('line1' in value) || value['line1'] === undefined)
28
26
  return false;
29
27
  if (!('postcode' in value) || value['postcode'] === undefined)
@@ -46,7 +44,7 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
46
44
  return json;
47
45
  }
48
46
  return {
49
- 'company': json['company'],
47
+ 'company': json['company'] == null ? undefined : json['company'],
50
48
  'line1': json['line1'],
51
49
  'line2': json['line2'] == null ? undefined : json['line2'],
52
50
  'postcode': json['postcode'],
@@ -63,7 +63,7 @@ export interface ExternalApiLogResource {
63
63
  * @type {string}
64
64
  * @memberof ExternalApiLogResource
65
65
  */
66
- requestPayload?: string | null;
66
+ requestPayload: string;
67
67
  /**
68
68
  *
69
69
  * @type {string}
@@ -37,6 +37,8 @@ function instanceOfExternalApiLogResource(value) {
37
37
  return false;
38
38
  if (!('responseCode' in value) || value['responseCode'] === undefined)
39
39
  return false;
40
+ if (!('requestPayload' in value) || value['requestPayload'] === undefined)
41
+ return false;
40
42
  if (!('responsePayload' in value) || value['responsePayload'] === undefined)
41
43
  return false;
42
44
  if (!('site' in value) || value['site'] === undefined)
@@ -58,7 +60,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
58
60
  'exteranlApiLoggableId': json['exteranlApiLoggableId'],
59
61
  'endpoint': json['endpoint'],
60
62
  'responseCode': json['responseCode'],
61
- 'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
63
+ 'requestPayload': json['requestPayload'],
62
64
  'responsePayload': json['responsePayload'],
63
65
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
64
66
  'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
@@ -11,7 +11,6 @@
11
11
  */
12
12
  import type { SiteLiteResource } from './SiteLiteResource';
13
13
  import type { LineItemListResource } from './LineItemListResource';
14
- import type { TransactionLiteResource } from './TransactionLiteResource';
15
14
  import type { CustomerListResource } from './CustomerListResource';
16
15
  /**
17
16
  *
@@ -109,12 +108,6 @@ export interface OrderListResource {
109
108
  * @memberof OrderListResource
110
109
  */
111
110
  lineItems: Array<LineItemListResource> | null;
112
- /**
113
- *
114
- * @type {Array<TransactionLiteResource>}
115
- * @memberof OrderListResource
116
- */
117
- transactions: Array<TransactionLiteResource> | null;
118
111
  }
119
112
  /**
120
113
  * Check if a given object implements the OrderListResource interface.
@@ -20,7 +20,6 @@ exports.OrderListResourceToJSON = OrderListResourceToJSON;
20
20
  exports.OrderListResourceToJSONTyped = OrderListResourceToJSONTyped;
21
21
  var SiteLiteResource_1 = require("./SiteLiteResource");
22
22
  var LineItemListResource_1 = require("./LineItemListResource");
23
- var TransactionLiteResource_1 = require("./TransactionLiteResource");
24
23
  var CustomerListResource_1 = require("./CustomerListResource");
25
24
  /**
26
25
  * Check if a given object implements the OrderListResource interface.
@@ -46,8 +45,6 @@ function instanceOfOrderListResource(value) {
46
45
  return false;
47
46
  if (!('lineItems' in value) || value['lineItems'] === undefined)
48
47
  return false;
49
- if (!('transactions' in value) || value['transactions'] === undefined)
50
- return false;
51
48
  return true;
52
49
  }
53
50
  function OrderListResourceFromJSON(json) {
@@ -73,7 +70,6 @@ function OrderListResourceFromJSONTyped(json, ignoreDiscriminator) {
73
70
  'customer': (0, CustomerListResource_1.CustomerListResourceFromJSON)(json['customer']),
74
71
  'status': json['status'],
75
72
  'lineItems': (json['line_items'] == null ? null : json['line_items'].map(LineItemListResource_1.LineItemListResourceFromJSON)),
76
- 'transactions': (json['transactions'] == null ? null : json['transactions'].map(TransactionLiteResource_1.TransactionLiteResourceFromJSON)),
77
73
  };
78
74
  }
79
75
  function OrderListResourceToJSON(json) {
@@ -100,6 +96,5 @@ function OrderListResourceToJSONTyped(value, ignoreDiscriminator) {
100
96
  'customer': (0, CustomerListResource_1.CustomerListResourceToJSON)(value['customer']),
101
97
  'status': value['status'],
102
98
  'line_items': (value['lineItems'] == null ? null : value['lineItems'].map(LineItemListResource_1.LineItemListResourceToJSON)),
103
- 'transactions': (value['transactions'] == null ? null : value['transactions'].map(TransactionLiteResource_1.TransactionLiteResourceToJSON)),
104
99
  };
105
100
  }
@@ -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
+ }
@@ -74,7 +74,7 @@ export interface StoreFrontendResource {
74
74
  * @type {string}
75
75
  * @memberof StoreFrontendResource
76
76
  */
77
- tagLine: string;
77
+ tagLine?: string | null;
78
78
  /**
79
79
  *
80
80
  * @type {string}
@@ -36,8 +36,6 @@ 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;
41
39
  if (!('specialDates' in value) || value['specialDates'] === undefined)
42
40
  return false;
43
41
  if (!('suppliers' in value) || value['suppliers'] === undefined)
@@ -61,7 +59,7 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
61
59
  'address': json['address'] == null ? undefined : json['address'],
62
60
  'latitude': json['latitude'],
63
61
  'longitude': json['longitude'],
64
- 'tagLine': json['tagLine'],
62
+ 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
65
63
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
66
64
  'specialDates': json['specialDates'],
67
65
  'suppliers': json['suppliers'],
@@ -57,7 +57,7 @@ export interface StoreListResource {
57
57
  * @type {string}
58
58
  * @memberof StoreListResource
59
59
  */
60
- tagLine?: string | null;
60
+ tagLine: string;
61
61
  /**
62
62
  *
63
63
  * @type {string}
@@ -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}
@@ -33,8 +33,12 @@ 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;
36
38
  if (!('email' in value) || value['email'] === undefined)
37
39
  return false;
40
+ if (!('website' in value) || value['website'] === undefined)
41
+ return false;
38
42
  return true;
39
43
  }
40
44
  function StoreListResourceFromJSON(json) {
@@ -51,9 +55,9 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
51
55
  'phone': json['phone'],
52
56
  'longitude': json['longitude'],
53
57
  'latitude': json['latitude'],
54
- 'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
58
+ 'tagLine': json['tag_line'],
55
59
  'email': json['email'],
56
- 'website': json['website'] == null ? undefined : json['website'],
60
+ 'website': json['website'],
57
61
  'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
58
62
  };
59
63
  }
@@ -60,7 +60,7 @@ export interface StoreResource {
60
60
  * @type {string}
61
61
  * @memberof StoreResource
62
62
  */
63
- tagLine: string;
63
+ tagLine?: string | null;
64
64
  /**
65
65
  *
66
66
  * @type {string}
@@ -72,7 +72,7 @@ export interface StoreResource {
72
72
  * @type {string}
73
73
  * @memberof StoreResource
74
74
  */
75
- website?: string | null;
75
+ website: string;
76
76
  /**
77
77
  *
78
78
  * @type {string}
@@ -36,10 +36,10 @@ function instanceOfStoreResource(value) {
36
36
  return false;
37
37
  if (!('latitude' in value) || value['latitude'] === undefined)
38
38
  return false;
39
- if (!('tagLine' in value) || value['tagLine'] === undefined)
40
- return false;
41
39
  if (!('email' in value) || value['email'] === undefined)
42
40
  return false;
41
+ if (!('website' in value) || value['website'] === undefined)
42
+ return false;
43
43
  if (!('suppliers' in value) || value['suppliers'] === undefined)
44
44
  return false;
45
45
  if (!('address' in value) || value['address'] === undefined)
@@ -62,9 +62,9 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
62
62
  'phone': json['phone'],
63
63
  'longitude': json['longitude'],
64
64
  'latitude': json['latitude'],
65
- 'tagLine': json['tag_line'],
65
+ 'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
66
66
  'email': json['email'],
67
- 'website': json['website'] == null ? undefined : json['website'],
67
+ 'website': json['website'],
68
68
  'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
69
69
  'suppliers': (json['suppliers'] == null ? null : json['suppliers'].map(SupplierLiteResource_1.SupplierLiteResourceFromJSON)),
70
70
  'address': (0, AddressResource_1.AddressResourceFromJSON)(json['address']),
@@ -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;