@digital8/lighting-illusions-ts-sdk 0.0.2031 → 0.0.2033

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 (74) hide show
  1. package/.openapi-generator/FILES +8 -0
  2. package/README.md +7 -2
  3. package/dist/apis/ProductApi.d.ts +16 -0
  4. package/dist/apis/ProductApi.js +59 -0
  5. package/dist/apis/TransactionsApi.d.ts +3 -3
  6. package/dist/apis/TransactionsApi.js +2 -2
  7. package/dist/models/AddressFrontendResource.d.ts +2 -2
  8. package/dist/models/AddressFrontendResource.js +4 -4
  9. package/dist/models/AddressResource.d.ts +7 -1
  10. package/dist/models/AddressResource.js +5 -1
  11. package/dist/models/AdminNoteResource.d.ts +0 -12
  12. package/dist/models/AdminNoteResource.js +0 -8
  13. package/dist/models/AdminOrderResource.d.ts +3 -3
  14. package/dist/models/AdminOrderResource.js +3 -3
  15. package/dist/models/CartResource.d.ts +3 -3
  16. package/dist/models/CartResource.js +3 -3
  17. package/dist/models/CreateTransactionRequest.d.ts +6 -0
  18. package/dist/models/CreateTransactionRequest.js +2 -0
  19. package/dist/models/CustomerListResource.d.ts +0 -7
  20. package/dist/models/CustomerListResource.js +0 -5
  21. package/dist/models/PaginatedTransactionListResourceResponse.d.ts +40 -0
  22. package/dist/models/PaginatedTransactionListResourceResponse.js +57 -0
  23. package/dist/models/SkuSearchProductChildRequest.d.ts +38 -0
  24. package/dist/models/SkuSearchProductChildRequest.js +55 -0
  25. package/dist/models/StoreFrontendResource.d.ts +2 -2
  26. package/dist/models/StoreFrontendResource.js +4 -4
  27. package/dist/models/StoreListResource.d.ts +1 -1
  28. package/dist/models/StoreListResource.js +1 -3
  29. package/dist/models/StoreResource.d.ts +1 -1
  30. package/dist/models/StoreResource.js +3 -1
  31. package/dist/models/TransactionListResource.d.ts +116 -0
  32. package/dist/models/TransactionListResource.js +97 -0
  33. package/dist/models/TransactionListResourceArrayResponse.d.ts +33 -0
  34. package/dist/models/TransactionListResourceArrayResponse.js +50 -0
  35. package/dist/models/TransactionLiteResource.d.ts +12 -0
  36. package/dist/models/TransactionLiteResource.js +4 -0
  37. package/dist/models/UpdateOrderRequest.d.ts +6 -0
  38. package/dist/models/UpdateOrderRequest.js +2 -0
  39. package/dist/models/index.d.ts +4 -0
  40. package/dist/models/index.js +4 -0
  41. package/docs/AddressResource.md +2 -0
  42. package/docs/AdminNoteResource.md +0 -4
  43. package/docs/AdminOrderResource.md +1 -1
  44. package/docs/CartResource.md +1 -1
  45. package/docs/CreateTransactionRequest.md +2 -0
  46. package/docs/CustomerListResource.md +0 -2
  47. package/docs/PaginatedTransactionListResourceResponse.md +36 -0
  48. package/docs/ProductApi.md +66 -0
  49. package/docs/SkuSearchProductChildRequest.md +36 -0
  50. package/docs/TransactionListResource.md +62 -0
  51. package/docs/TransactionListResourceArrayResponse.md +34 -0
  52. package/docs/TransactionLiteResource.md +4 -0
  53. package/docs/TransactionsApi.md +3 -3
  54. package/docs/UpdateOrderRequest.md +2 -0
  55. package/package.json +1 -1
  56. package/src/apis/ProductApi.ts +49 -0
  57. package/src/apis/TransactionsApi.ts +7 -7
  58. package/src/models/AddressFrontendResource.ts +5 -5
  59. package/src/models/AddressResource.ts +11 -2
  60. package/src/models/AdminNoteResource.ts +0 -18
  61. package/src/models/AdminOrderResource.ts +11 -11
  62. package/src/models/CartResource.ts +11 -11
  63. package/src/models/CreateTransactionRequest.ts +8 -0
  64. package/src/models/CustomerListResource.ts +0 -16
  65. package/src/models/PaginatedTransactionListResourceResponse.ts +90 -0
  66. package/src/models/SkuSearchProductChildRequest.ts +75 -0
  67. package/src/models/StoreFrontendResource.ts +5 -5
  68. package/src/models/StoreListResource.ts +2 -3
  69. package/src/models/StoreResource.ts +3 -2
  70. package/src/models/TransactionListResource.ts +187 -0
  71. package/src/models/TransactionListResourceArrayResponse.ts +73 -0
  72. package/src/models/TransactionLiteResource.ts +16 -0
  73. package/src/models/UpdateOrderRequest.ts +8 -0
  74. package/src/models/index.ts +4 -0
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * My API
6
+ * API documentation for my Laravel app
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfPaginatedTransactionListResourceResponse = instanceOfPaginatedTransactionListResourceResponse;
17
+ exports.PaginatedTransactionListResourceResponseFromJSON = PaginatedTransactionListResourceResponseFromJSON;
18
+ exports.PaginatedTransactionListResourceResponseFromJSONTyped = PaginatedTransactionListResourceResponseFromJSONTyped;
19
+ exports.PaginatedTransactionListResourceResponseToJSON = PaginatedTransactionListResourceResponseToJSON;
20
+ exports.PaginatedTransactionListResourceResponseToJSONTyped = PaginatedTransactionListResourceResponseToJSONTyped;
21
+ var PagingMetadata_1 = require("./PagingMetadata");
22
+ var TransactionListResource_1 = require("./TransactionListResource");
23
+ /**
24
+ * Check if a given object implements the PaginatedTransactionListResourceResponse interface.
25
+ */
26
+ function instanceOfPaginatedTransactionListResourceResponse(value) {
27
+ if (!('data' in value) || value['data'] === undefined)
28
+ return false;
29
+ if (!('meta' in value) || value['meta'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function PaginatedTransactionListResourceResponseFromJSON(json) {
34
+ return PaginatedTransactionListResourceResponseFromJSONTyped(json, false);
35
+ }
36
+ function PaginatedTransactionListResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'data': (json['data'].map(TransactionListResource_1.TransactionListResourceFromJSON)),
42
+ 'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
43
+ };
44
+ }
45
+ function PaginatedTransactionListResourceResponseToJSON(json) {
46
+ return PaginatedTransactionListResourceResponseToJSONTyped(json, false);
47
+ }
48
+ function PaginatedTransactionListResourceResponseToJSONTyped(value, ignoreDiscriminator) {
49
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'data': (value['data'].map(TransactionListResource_1.TransactionListResourceToJSON)),
55
+ 'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
56
+ };
57
+ }
@@ -0,0 +1,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 SkuSearchProductChildRequest
16
+ */
17
+ export interface SkuSearchProductChildRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof SkuSearchProductChildRequest
22
+ */
23
+ sku: string;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof SkuSearchProductChildRequest
28
+ */
29
+ siteId: number;
30
+ }
31
+ /**
32
+ * Check if a given object implements the SkuSearchProductChildRequest interface.
33
+ */
34
+ export declare function instanceOfSkuSearchProductChildRequest(value: object): value is SkuSearchProductChildRequest;
35
+ export declare function SkuSearchProductChildRequestFromJSON(json: any): SkuSearchProductChildRequest;
36
+ export declare function SkuSearchProductChildRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SkuSearchProductChildRequest;
37
+ export declare function SkuSearchProductChildRequestToJSON(json: any): SkuSearchProductChildRequest;
38
+ export declare function SkuSearchProductChildRequestToJSONTyped(value?: SkuSearchProductChildRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
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.instanceOfSkuSearchProductChildRequest = instanceOfSkuSearchProductChildRequest;
17
+ exports.SkuSearchProductChildRequestFromJSON = SkuSearchProductChildRequestFromJSON;
18
+ exports.SkuSearchProductChildRequestFromJSONTyped = SkuSearchProductChildRequestFromJSONTyped;
19
+ exports.SkuSearchProductChildRequestToJSON = SkuSearchProductChildRequestToJSON;
20
+ exports.SkuSearchProductChildRequestToJSONTyped = SkuSearchProductChildRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the SkuSearchProductChildRequest interface.
23
+ */
24
+ function instanceOfSkuSearchProductChildRequest(value) {
25
+ if (!('sku' in value) || value['sku'] === undefined)
26
+ return false;
27
+ if (!('siteId' in value) || value['siteId'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function SkuSearchProductChildRequestFromJSON(json) {
32
+ return SkuSearchProductChildRequestFromJSONTyped(json, false);
33
+ }
34
+ function SkuSearchProductChildRequestFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'sku': json['sku'],
40
+ 'siteId': json['site_id'],
41
+ };
42
+ }
43
+ function SkuSearchProductChildRequestToJSON(json) {
44
+ return SkuSearchProductChildRequestToJSONTyped(json, false);
45
+ }
46
+ function SkuSearchProductChildRequestToJSONTyped(value, ignoreDiscriminator) {
47
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'sku': value['sku'],
53
+ 'site_id': value['siteId'],
54
+ };
55
+ }
@@ -44,7 +44,7 @@ export interface StoreFrontendResource {
44
44
  * @type {string}
45
45
  * @memberof StoreFrontendResource
46
46
  */
47
- website: string;
47
+ website?: string | null;
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,14 +28,14 @@ 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;
33
31
  if (!('phone' in value) || value['phone'] === undefined)
34
32
  return false;
35
33
  if (!('latitude' in value) || value['latitude'] === undefined)
36
34
  return false;
37
35
  if (!('longitude' in value) || value['longitude'] === undefined)
38
36
  return false;
37
+ if (!('tagLine' in value) || value['tagLine'] === undefined)
38
+ return false;
39
39
  if (!('specialDates' in value) || value['specialDates'] === undefined)
40
40
  return false;
41
41
  if (!('suppliers' in value) || value['suppliers'] === undefined)
@@ -54,12 +54,12 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
54
54
  'siteId': json['siteId'],
55
55
  'name': json['name'],
56
56
  'email': json['email'],
57
- 'website': json['website'],
57
+ 'website': json['website'] == null ? undefined : json['website'],
58
58
  'phone': json['phone'],
59
59
  'address': json['address'] == null ? undefined : json['address'],
60
60
  'latitude': json['latitude'],
61
61
  'longitude': json['longitude'],
62
- 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
62
+ 'tagLine': json['tagLine'],
63
63
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
64
64
  'specialDates': json['specialDates'],
65
65
  'suppliers': json['suppliers'],
@@ -69,7 +69,7 @@ export interface StoreListResource {
69
69
  * @type {string}
70
70
  * @memberof StoreListResource
71
71
  */
72
- website: string;
72
+ website?: string | null;
73
73
  /**
74
74
  *
75
75
  * @type {number}
@@ -35,8 +35,6 @@ function instanceOfStoreListResource(value) {
35
35
  return false;
36
36
  if (!('email' in value) || value['email'] === undefined)
37
37
  return false;
38
- if (!('website' in value) || value['website'] === undefined)
39
- return false;
40
38
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
41
39
  return false;
42
40
  if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined)
@@ -59,7 +57,7 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
59
57
  'latitude': json['latitude'],
60
58
  'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
61
59
  'email': json['email'],
62
- 'website': json['website'],
60
+ 'website': json['website'] == null ? undefined : json['website'],
63
61
  'netsuiteId': json['netsuiteId'],
64
62
  'displayNetsuiteId': json['displayNetsuiteId'],
65
63
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
@@ -60,7 +60,7 @@ export interface StoreResource {
60
60
  * @type {string}
61
61
  * @memberof StoreResource
62
62
  */
63
- tagLine?: string | null;
63
+ tagLine: string;
64
64
  /**
65
65
  *
66
66
  * @type {string}
@@ -36,6 +36,8 @@ 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;
39
41
  if (!('email' in value) || value['email'] === undefined)
40
42
  return false;
41
43
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
@@ -64,7 +66,7 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
64
66
  'phone': json['phone'],
65
67
  'longitude': json['longitude'],
66
68
  'latitude': json['latitude'],
67
- 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
69
+ 'tagLine': json['tagLine'],
68
70
  'email': json['email'],
69
71
  'website': json['website'] == null ? undefined : json['website'],
70
72
  'netsuiteId': json['netsuiteId'],
@@ -0,0 +1,116 @@
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;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof TransactionListResource
28
+ */
29
+ paymentSource: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof TransactionListResource
34
+ */
35
+ paymentMethod: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof TransactionListResource
40
+ */
41
+ type: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof TransactionListResource
46
+ */
47
+ status: string;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof TransactionListResource
52
+ */
53
+ totalAmount: number;
54
+ /**
55
+ *
56
+ * @type {number}
57
+ * @memberof TransactionListResource
58
+ */
59
+ surcharge: number;
60
+ /**
61
+ *
62
+ * @type {number}
63
+ * @memberof TransactionListResource
64
+ */
65
+ refundedAmount: number;
66
+ /**
67
+ *
68
+ * @type {number}
69
+ * @memberof TransactionListResource
70
+ */
71
+ unrefundedAmount: number;
72
+ /**
73
+ *
74
+ * @type {string}
75
+ * @memberof TransactionListResource
76
+ */
77
+ reference: string;
78
+ /**
79
+ *
80
+ * @type {string}
81
+ * @memberof TransactionListResource
82
+ */
83
+ description?: string | null;
84
+ /**
85
+ *
86
+ * @type {string}
87
+ * @memberof TransactionListResource
88
+ */
89
+ extendedData?: string | null;
90
+ /**
91
+ *
92
+ * @type {string}
93
+ * @memberof TransactionListResource
94
+ */
95
+ riskScore?: string | null;
96
+ /**
97
+ *
98
+ * @type {string}
99
+ * @memberof TransactionListResource
100
+ */
101
+ fraudDecision?: string | null;
102
+ /**
103
+ *
104
+ * @type {Date}
105
+ * @memberof TransactionListResource
106
+ */
107
+ createdAt?: Date | null;
108
+ }
109
+ /**
110
+ * Check if a given object implements the TransactionListResource interface.
111
+ */
112
+ export declare function instanceOfTransactionListResource(value: object): value is TransactionListResource;
113
+ export declare function TransactionListResourceFromJSON(json: any): TransactionListResource;
114
+ export declare function TransactionListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionListResource;
115
+ export declare function TransactionListResourceToJSON(json: any): TransactionListResource;
116
+ export declare function TransactionListResourceToJSONTyped(value?: TransactionListResource | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,97 @@
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 (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('paymentSource' in value) || value['paymentSource'] === undefined)
28
+ return false;
29
+ if (!('paymentMethod' in value) || value['paymentMethod'] === undefined)
30
+ return false;
31
+ if (!('type' in value) || value['type'] === undefined)
32
+ return false;
33
+ if (!('status' in value) || value['status'] === undefined)
34
+ return false;
35
+ if (!('totalAmount' in value) || value['totalAmount'] === undefined)
36
+ return false;
37
+ if (!('surcharge' in value) || value['surcharge'] === 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'],
56
+ 'paymentSource': json['paymentSource'],
57
+ 'paymentMethod': json['paymentMethod'],
58
+ 'type': json['type'],
59
+ 'status': json['status'],
60
+ 'totalAmount': json['totalAmount'],
61
+ 'surcharge': json['surcharge'],
62
+ 'refundedAmount': json['refundedAmount'],
63
+ 'unrefundedAmount': json['unrefundedAmount'],
64
+ 'reference': json['reference'],
65
+ 'description': json['description'] == null ? undefined : json['description'],
66
+ 'extendedData': json['extendedData'] == null ? undefined : json['extendedData'],
67
+ 'riskScore': json['riskScore'] == null ? undefined : json['riskScore'],
68
+ 'fraudDecision': json['fraudDecision'] == null ? undefined : json['fraudDecision'],
69
+ 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
70
+ };
71
+ }
72
+ function TransactionListResourceToJSON(json) {
73
+ return TransactionListResourceToJSONTyped(json, false);
74
+ }
75
+ function TransactionListResourceToJSONTyped(value, ignoreDiscriminator) {
76
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
77
+ if (value == null) {
78
+ return value;
79
+ }
80
+ return {
81
+ 'id': value['id'],
82
+ 'paymentSource': value['paymentSource'],
83
+ 'paymentMethod': value['paymentMethod'],
84
+ 'type': value['type'],
85
+ 'status': value['status'],
86
+ 'totalAmount': value['totalAmount'],
87
+ 'surcharge': value['surcharge'],
88
+ 'refundedAmount': value['refundedAmount'],
89
+ 'unrefundedAmount': value['unrefundedAmount'],
90
+ 'reference': value['reference'],
91
+ 'description': value['description'],
92
+ 'extendedData': value['extendedData'],
93
+ 'riskScore': value['riskScore'],
94
+ 'fraudDecision': value['fraudDecision'],
95
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
96
+ };
97
+ }
@@ -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
+ }
@@ -15,6 +15,12 @@
15
15
  * @interface TransactionLiteResource
16
16
  */
17
17
  export interface TransactionLiteResource {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof TransactionLiteResource
22
+ */
23
+ id?: number | null;
18
24
  /**
19
25
  *
20
26
  * @type {string}
@@ -69,6 +75,12 @@ export interface TransactionLiteResource {
69
75
  * @memberof TransactionLiteResource
70
76
  */
71
77
  reference: string;
78
+ /**
79
+ *
80
+ * @type {string}
81
+ * @memberof TransactionLiteResource
82
+ */
83
+ description?: string | null;
72
84
  /**
73
85
  *
74
86
  * @type {Date}
@@ -50,6 +50,7 @@ function TransactionLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
50
50
  return json;
51
51
  }
52
52
  return {
53
+ 'id': json['id'] == null ? undefined : json['id'],
53
54
  'paymentSource': json['paymentSource'],
54
55
  'paymentMethod': json['paymentMethod'],
55
56
  'paymentMethodThumbnail': json['paymentMethodThumbnail'],
@@ -59,6 +60,7 @@ function TransactionLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
59
60
  'surcharge': json['surcharge'],
60
61
  'totalAmount': json['totalAmount'],
61
62
  'reference': json['reference'],
63
+ 'description': json['description'] == null ? undefined : json['description'],
62
64
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
63
65
  };
64
66
  }
@@ -71,6 +73,7 @@ function TransactionLiteResourceToJSONTyped(value, ignoreDiscriminator) {
71
73
  return value;
72
74
  }
73
75
  return {
76
+ 'id': value['id'],
74
77
  'paymentSource': value['paymentSource'],
75
78
  'paymentMethod': value['paymentMethod'],
76
79
  'paymentMethodThumbnail': value['paymentMethodThumbnail'],
@@ -80,6 +83,7 @@ function TransactionLiteResourceToJSONTyped(value, ignoreDiscriminator) {
80
83
  'surcharge': value['surcharge'],
81
84
  'totalAmount': value['totalAmount'],
82
85
  'reference': value['reference'],
86
+ 'description': value['description'],
83
87
  'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
84
88
  };
85
89
  }
@@ -70,6 +70,12 @@ export interface UpdateOrderRequest {
70
70
  * @memberof UpdateOrderRequest
71
71
  */
72
72
  overrideInsurance?: boolean;
73
+ /**
74
+ *
75
+ * @type {boolean}
76
+ * @memberof UpdateOrderRequest
77
+ */
78
+ useAsBillingAddress?: boolean;
73
79
  /**
74
80
  *
75
81
  * @type {number}
@@ -70,6 +70,7 @@ function UpdateOrderRequestFromJSONTyped(json, ignoreDiscriminator) {
70
70
  'insuranceAmount': json['insurance_amount'],
71
71
  'includeInsurance': json['include_insurance'] == null ? undefined : json['include_insurance'],
72
72
  'overrideInsurance': json['override_insurance'] == null ? undefined : json['override_insurance'],
73
+ 'useAsBillingAddress': json['use_as_billing_address'] == null ? undefined : json['use_as_billing_address'],
73
74
  'shippingAddressId': json['shipping_address_id'] == null ? undefined : json['shipping_address_id'],
74
75
  'billingAddressId': json['billing_address_id'] == null ? undefined : json['billing_address_id'],
75
76
  'shippingAddress': json['shipping_address'] == null ? undefined : (0, CreateCartRequestShippingAddress_1.CreateCartRequestShippingAddressFromJSON)(json['shipping_address']),
@@ -94,6 +95,7 @@ function UpdateOrderRequestToJSONTyped(value, ignoreDiscriminator) {
94
95
  'insurance_amount': value['insuranceAmount'],
95
96
  'include_insurance': value['includeInsurance'],
96
97
  'override_insurance': value['overrideInsurance'],
98
+ 'use_as_billing_address': value['useAsBillingAddress'],
97
99
  'shipping_address_id': value['shippingAddressId'],
98
100
  'billing_address_id': value['billingAddressId'],
99
101
  'shipping_address': (0, CreateCartRequestShippingAddress_1.CreateCartRequestShippingAddressToJSON)(value['shippingAddress']),
@@ -327,6 +327,7 @@ export * from './PaginatedSupplierResourceResponse';
327
327
  export * from './PaginatedTagListResourceResponse';
328
328
  export * from './PaginatedTagLiteResourceResponse';
329
329
  export * from './PaginatedTagResourceResponse';
330
+ export * from './PaginatedTransactionListResourceResponse';
330
331
  export * from './PaginatedTransactionResourceResponse';
331
332
  export * from './PagingMetadata';
332
333
  export * from './PaymentMethod';
@@ -528,6 +529,7 @@ export * from './SitePaymentConfigResource';
528
529
  export * from './SitePaymentConfigResourceArrayResponse';
529
530
  export * from './SiteResource';
530
531
  export * from './SiteResourceArrayResponse';
532
+ export * from './SkuSearchProductChildRequest';
531
533
  export * from './StoreFrontendResource';
532
534
  export * from './StoreFrontendResourceArrayResponse';
533
535
  export * from './StoreListResource';
@@ -562,6 +564,8 @@ export * from './TagResource';
562
564
  export * from './TagResourceArrayResponse';
563
565
  export * from './TagType';
564
566
  export * from './Thumbnail';
567
+ export * from './TransactionListResource';
568
+ export * from './TransactionListResourceArrayResponse';
565
569
  export * from './TransactionLiteResource';
566
570
  export * from './TransactionLiteResourceArrayResponse';
567
571
  export * from './TransactionResource';