@digital8/lighting-illusions-ts-sdk 0.0.1938 → 0.0.1940

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 (159) hide show
  1. package/.openapi-generator/FILES +30 -16
  2. package/README.md +19 -10
  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 +1 -3
  9. package/dist/models/AddressResource.d.ts +9 -3
  10. package/dist/models/AddressResource.js +6 -8
  11. package/dist/models/AdminOrderResource.d.ts +0 -6
  12. package/dist/models/AdminOrderResource.js +0 -4
  13. package/dist/models/CartListResource.d.ts +0 -6
  14. package/dist/models/CartListResource.js +0 -4
  15. package/dist/models/CartResource.d.ts +0 -6
  16. package/dist/models/CartResource.js +0 -4
  17. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  18. package/dist/models/ExternalApiLogResource.js +1 -3
  19. package/dist/models/IndexTransactionRequest.d.ts +127 -0
  20. package/dist/models/IndexTransactionRequest.js +91 -0
  21. package/dist/models/PaginatedTransactionListResourceResponse.d.ts +40 -0
  22. package/dist/models/PaginatedTransactionListResourceResponse.js +57 -0
  23. package/dist/models/PaginatedTransactionResourceResponse.d.ts +40 -0
  24. package/dist/models/PaginatedTransactionResourceResponse.js +57 -0
  25. package/dist/models/PaymentMethod.d.ts +30 -0
  26. package/dist/models/PaymentMethod.js +56 -0
  27. package/dist/models/PaymentSource.d.ts +26 -0
  28. package/dist/models/PaymentSource.js +52 -0
  29. package/dist/models/PaymentStatus.d.ts +25 -0
  30. package/dist/models/PaymentStatus.js +51 -0
  31. package/dist/models/ProductChildCartLiteResource.d.ts +0 -6
  32. package/dist/models/ProductChildCartLiteResource.js +0 -4
  33. package/dist/models/RefundTransactionRequest.d.ts +38 -0
  34. package/dist/models/RefundTransactionRequest.js +53 -0
  35. package/dist/models/StoreCartRequest.d.ts +0 -6
  36. package/dist/models/StoreCartRequest.js +0 -2
  37. package/dist/models/StoreCartRequestShippingAddress.d.ts +6 -0
  38. package/dist/models/StoreCartRequestShippingAddress.js +2 -0
  39. package/dist/models/StoreFrontendResource.d.ts +1 -1
  40. package/dist/models/StoreFrontendResource.js +3 -1
  41. package/dist/models/StoreListResource.d.ts +2 -2
  42. package/dist/models/StoreListResource.js +4 -4
  43. package/dist/models/StoreResource.d.ts +1 -1
  44. package/dist/models/StoreResource.js +3 -1
  45. package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
  46. package/dist/models/StoreSpecialDateFrontendResource.js +1 -3
  47. package/dist/models/StoreSpecialDateResource.d.ts +2 -2
  48. package/dist/models/StoreSpecialDateResource.js +3 -1
  49. package/dist/models/StoreTransactionRequest.d.ts +81 -0
  50. package/dist/models/StoreTransactionRequest.js +78 -0
  51. package/dist/models/TransactionListResource.d.ts +152 -0
  52. package/dist/models/TransactionListResource.js +109 -0
  53. package/dist/models/TransactionListResourceArrayResponse.d.ts +33 -0
  54. package/dist/models/TransactionListResourceArrayResponse.js +50 -0
  55. package/dist/models/TransactionResource.d.ts +152 -0
  56. package/dist/models/TransactionResource.js +109 -0
  57. package/dist/models/TransactionResourceArrayResponse.d.ts +33 -0
  58. package/dist/models/TransactionResourceArrayResponse.js +50 -0
  59. package/dist/models/TransactionType.d.ts +25 -0
  60. package/dist/models/TransactionType.js +51 -0
  61. package/dist/models/UpdateCartRequest.d.ts +0 -6
  62. package/dist/models/UpdateCartRequest.js +0 -2
  63. package/dist/models/UpdateOrderRequest.d.ts +3 -9
  64. package/dist/models/UpdateOrderRequest.js +3 -5
  65. package/dist/models/UpdateOrderRequestBillingAddress.d.ts +6 -0
  66. package/dist/models/UpdateOrderRequestBillingAddress.js +2 -0
  67. package/dist/models/UpdateOrderRequestShippingAddress.d.ts +80 -0
  68. package/dist/models/UpdateOrderRequestShippingAddress.js +67 -0
  69. package/dist/models/index.d.ts +14 -8
  70. package/dist/models/index.js +14 -8
  71. package/docs/AddressResource.md +2 -0
  72. package/docs/AdminOrderResource.md +0 -2
  73. package/docs/CartListResource.md +0 -2
  74. package/docs/CartResource.md +0 -2
  75. package/docs/IndexTransactionRequest.md +60 -0
  76. package/docs/PaginatedTransactionListResourceResponse.md +36 -0
  77. package/docs/{FrontendLineItemResourceArrayResponse.md → PaginatedTransactionResourceResponse.md} +7 -5
  78. package/docs/{CartCouponLiteResource.md → PaymentMethod.md} +4 -10
  79. package/docs/{CartCouponLiteResourceArrayResponse.md → PaymentSource.md} +4 -6
  80. package/docs/PaymentStatus.md +32 -0
  81. package/docs/ProductChildCartLiteResource.md +0 -2
  82. package/docs/RefundTransactionRequest.md +36 -0
  83. package/docs/StoreCartRequest.md +0 -2
  84. package/docs/StoreCartRequestShippingAddress.md +2 -0
  85. package/docs/StoreSpecialDateFrontendResource.md +1 -1
  86. package/docs/StoreSpecialDateResource.md +1 -1
  87. package/docs/StoreTransactionRequest.md +46 -0
  88. package/docs/TransactionListResource.md +74 -0
  89. package/docs/{FrontendOrderResourceArrayResponse.md → TransactionListResourceArrayResponse.md} +5 -5
  90. package/docs/TransactionResource.md +74 -0
  91. package/docs/{FrontendCartResourceArrayResponse.md → TransactionResourceArrayResponse.md} +5 -5
  92. package/docs/TransactionType.md +32 -0
  93. package/docs/TransactionsApi.md +209 -0
  94. package/docs/UpdateCartRequest.md +0 -2
  95. package/docs/UpdateOrderRequest.md +1 -3
  96. package/docs/UpdateOrderRequestBillingAddress.md +2 -0
  97. package/docs/UpdateOrderRequestShippingAddress.md +50 -0
  98. package/package.json +1 -1
  99. package/src/apis/TransactionsApi.ts +193 -0
  100. package/src/apis/index.ts +1 -0
  101. package/src/models/AddressFrontendResource.ts +2 -3
  102. package/src/models/AddressResource.ts +15 -9
  103. package/src/models/AdminOrderResource.ts +0 -9
  104. package/src/models/CartListResource.ts +0 -9
  105. package/src/models/CartResource.ts +0 -9
  106. package/src/models/ExternalApiLogResource.ts +2 -3
  107. package/src/models/IndexTransactionRequest.ts +190 -0
  108. package/src/models/PaginatedTransactionListResourceResponse.ts +90 -0
  109. package/src/models/PaginatedTransactionResourceResponse.ts +90 -0
  110. package/src/models/PaymentMethod.ts +58 -0
  111. package/src/models/PaymentSource.ts +54 -0
  112. package/src/models/PaymentStatus.ts +53 -0
  113. package/src/models/ProductChildCartLiteResource.ts +0 -9
  114. package/src/models/RefundTransactionRequest.ts +74 -0
  115. package/src/models/StoreCartRequest.ts +0 -8
  116. package/src/models/StoreCartRequestShippingAddress.ts +8 -0
  117. package/src/models/StoreFrontendResource.ts +3 -2
  118. package/src/models/StoreListResource.ts +5 -5
  119. package/src/models/StoreResource.ts +3 -2
  120. package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
  121. package/src/models/StoreSpecialDateResource.ts +4 -3
  122. package/src/models/StoreTransactionRequest.ts +131 -0
  123. package/src/models/TransactionListResource.ts +235 -0
  124. package/src/models/TransactionListResourceArrayResponse.ts +73 -0
  125. package/src/models/TransactionResource.ts +235 -0
  126. package/src/models/TransactionResourceArrayResponse.ts +73 -0
  127. package/src/models/TransactionType.ts +53 -0
  128. package/src/models/UpdateCartRequest.ts +0 -8
  129. package/src/models/UpdateOrderRequest.ts +10 -18
  130. package/src/models/UpdateOrderRequestBillingAddress.ts +8 -0
  131. package/src/models/UpdateOrderRequestShippingAddress.ts +130 -0
  132. package/src/models/index.ts +14 -8
  133. package/dist/models/CartCouponLiteResource.d.ts +0 -44
  134. package/dist/models/CartCouponLiteResource.js +0 -59
  135. package/dist/models/CartCouponLiteResourceArrayResponse.d.ts +0 -33
  136. package/dist/models/CartCouponLiteResourceArrayResponse.js +0 -50
  137. package/dist/models/FrontendCartResource.d.ts +0 -144
  138. package/dist/models/FrontendCartResource.js +0 -121
  139. package/dist/models/FrontendCartResourceArrayResponse.d.ts +0 -33
  140. package/dist/models/FrontendCartResourceArrayResponse.js +0 -50
  141. package/dist/models/FrontendLineItemResource.d.ts +0 -63
  142. package/dist/models/FrontendLineItemResource.js +0 -70
  143. package/dist/models/FrontendLineItemResourceArrayResponse.d.ts +0 -33
  144. package/dist/models/FrontendLineItemResourceArrayResponse.js +0 -50
  145. package/dist/models/FrontendOrderResource.d.ts +0 -168
  146. package/dist/models/FrontendOrderResource.js +0 -137
  147. package/dist/models/FrontendOrderResourceArrayResponse.d.ts +0 -33
  148. package/dist/models/FrontendOrderResourceArrayResponse.js +0 -50
  149. package/docs/FrontendCartResource.md +0 -70
  150. package/docs/FrontendLineItemResource.md +0 -44
  151. package/docs/FrontendOrderResource.md +0 -78
  152. package/src/models/CartCouponLiteResource.ts +0 -84
  153. package/src/models/CartCouponLiteResourceArrayResponse.ts +0 -73
  154. package/src/models/FrontendCartResource.ts +0 -254
  155. package/src/models/FrontendCartResourceArrayResponse.ts +0 -73
  156. package/src/models/FrontendLineItemResource.ts +0 -118
  157. package/src/models/FrontendLineItemResourceArrayResponse.ts +0 -73
  158. package/src/models/FrontendOrderResource.ts +0 -290
  159. package/src/models/FrontendOrderResourceArrayResponse.ts +0 -73
@@ -133,12 +133,6 @@ export interface CartResource {
133
133
  * @memberof CartResource
134
134
  */
135
135
  insuranceSubtotal?: string | null;
136
- /**
137
- *
138
- * @type {boolean}
139
- * @memberof CartResource
140
- */
141
- includeInsurance: boolean;
142
136
  /**
143
137
  *
144
138
  * @type {boolean}
@@ -269,7 +263,6 @@ export function instanceOfCartResource(value: object): value is CartResource {
269
263
  if (!('expiryDate' in value) || value['expiryDate'] === undefined) return false;
270
264
  if (!('shippingType' in value) || value['shippingType'] === undefined) return false;
271
265
  if (!('overrideShipping' in value) || value['overrideShipping'] === undefined) return false;
272
- if (!('includeInsurance' in value) || value['includeInsurance'] === undefined) return false;
273
266
  if (!('overrideInsurance' in value) || value['overrideInsurance'] === undefined) return false;
274
267
  if (!('useAsBillingAddress' in value) || value['useAsBillingAddress'] === undefined) return false;
275
268
  if (!('admin' in value) || value['admin'] === undefined) return false;
@@ -316,7 +309,6 @@ export function CartResourceFromJSONTyped(json: any, ignoreDiscriminator: boolea
316
309
  'shippingSubtotal': json['shipping_subtotal'] == null ? undefined : json['shipping_subtotal'],
317
310
  'overrideShipping': json['override_shipping'],
318
311
  'insuranceSubtotal': json['insurance_subtotal'] == null ? undefined : json['insurance_subtotal'],
319
- 'includeInsurance': json['include_insurance'],
320
312
  'overrideInsurance': json['override_insurance'],
321
313
  'useAsBillingAddress': json['use_as_billing_address'],
322
314
  'admin': json['admin'],
@@ -364,7 +356,6 @@ export function CartResourceToJSONTyped(value?: CartResource | null, ignoreDiscr
364
356
  'shipping_subtotal': value['shippingSubtotal'],
365
357
  'override_shipping': value['overrideShipping'],
366
358
  'insurance_subtotal': value['insuranceSubtotal'],
367
- 'include_insurance': value['includeInsurance'],
368
359
  'override_insurance': value['overrideInsurance'],
369
360
  'use_as_billing_address': value['useAsBillingAddress'],
370
361
  'admin': value['admin'],
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
74
74
  * @type {string}
75
75
  * @memberof ExternalApiLogResource
76
76
  */
77
- requestPayload: string;
77
+ requestPayload?: string | null;
78
78
  /**
79
79
  *
80
80
  * @type {string}
@@ -106,7 +106,6 @@ export function instanceOfExternalApiLogResource(value: object): value is Extern
106
106
  if (!('exteranlApiLoggableId' in value) || value['exteranlApiLoggableId'] === undefined) return false;
107
107
  if (!('endpoint' in value) || value['endpoint'] === undefined) return false;
108
108
  if (!('responseCode' in value) || value['responseCode'] === undefined) return false;
109
- if (!('requestPayload' in value) || value['requestPayload'] === undefined) return false;
110
109
  if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
111
110
  if (!('site' in value) || value['site'] === undefined) return false;
112
111
  return true;
@@ -129,7 +128,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
129
128
  'exteranlApiLoggableId': json['exteranlApiLoggableId'],
130
129
  'endpoint': json['endpoint'],
131
130
  'responseCode': json['responseCode'],
132
- 'requestPayload': json['requestPayload'],
131
+ 'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
133
132
  'responsePayload': json['responsePayload'],
134
133
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
135
134
  'site': SiteLiteResourceFromJSON(json['site']),
@@ -0,0 +1,190 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface IndexTransactionRequest
20
+ */
21
+ export interface IndexTransactionRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof IndexTransactionRequest
26
+ */
27
+ search?: string | null;
28
+ /**
29
+ *
30
+ * @type {IndexTransactionRequestSortByEnum}
31
+ * @memberof IndexTransactionRequest
32
+ */
33
+ sortBy?: IndexTransactionRequestSortByEnum;
34
+ /**
35
+ *
36
+ * @type {IndexTransactionRequestSortDirectionEnum}
37
+ * @memberof IndexTransactionRequest
38
+ */
39
+ sortDirection?: IndexTransactionRequestSortDirectionEnum;
40
+ /**
41
+ *
42
+ * @type {number}
43
+ * @memberof IndexTransactionRequest
44
+ */
45
+ perPage?: number;
46
+ /**
47
+ *
48
+ * @type {number}
49
+ * @memberof IndexTransactionRequest
50
+ */
51
+ page?: number;
52
+ /**
53
+ *
54
+ * @type {Array<string>}
55
+ * @memberof IndexTransactionRequest
56
+ */
57
+ paymentSource?: Array<string>;
58
+ /**
59
+ *
60
+ * @type {Array<string>}
61
+ * @memberof IndexTransactionRequest
62
+ */
63
+ type?: Array<string>;
64
+ /**
65
+ *
66
+ * @type {Array<string>}
67
+ * @memberof IndexTransactionRequest
68
+ */
69
+ paymentMethod?: Array<string>;
70
+ /**
71
+ *
72
+ * @type {Array<string>}
73
+ * @memberof IndexTransactionRequest
74
+ */
75
+ status?: Array<string>;
76
+ /**
77
+ *
78
+ * @type {Date}
79
+ * @memberof IndexTransactionRequest
80
+ */
81
+ beforeCreatedAt?: Date;
82
+ /**
83
+ *
84
+ * @type {Date}
85
+ * @memberof IndexTransactionRequest
86
+ */
87
+ afterCreatedAt?: Date;
88
+ /**
89
+ *
90
+ * @type {number}
91
+ * @memberof IndexTransactionRequest
92
+ */
93
+ relatedId?: number;
94
+ /**
95
+ *
96
+ * @type {string}
97
+ * @memberof IndexTransactionRequest
98
+ */
99
+ relatedType?: string;
100
+ /**
101
+ *
102
+ * @type {boolean}
103
+ * @memberof IndexTransactionRequest
104
+ */
105
+ includesRelations?: boolean;
106
+ }
107
+
108
+
109
+ /**
110
+ * @export
111
+ */
112
+ export const IndexTransactionRequestSortByEnum = {
113
+ Id: 'id',
114
+ CreatedAt: 'created_at',
115
+ TotalAmount: 'total_amount'
116
+ } as const;
117
+ export type IndexTransactionRequestSortByEnum = typeof IndexTransactionRequestSortByEnum[keyof typeof IndexTransactionRequestSortByEnum];
118
+
119
+ /**
120
+ * @export
121
+ */
122
+ export const IndexTransactionRequestSortDirectionEnum = {
123
+ Asc: 'asc',
124
+ Desc: 'desc'
125
+ } as const;
126
+ export type IndexTransactionRequestSortDirectionEnum = typeof IndexTransactionRequestSortDirectionEnum[keyof typeof IndexTransactionRequestSortDirectionEnum];
127
+
128
+
129
+ /**
130
+ * Check if a given object implements the IndexTransactionRequest interface.
131
+ */
132
+ export function instanceOfIndexTransactionRequest(value: object): value is IndexTransactionRequest {
133
+ return true;
134
+ }
135
+
136
+ export function IndexTransactionRequestFromJSON(json: any): IndexTransactionRequest {
137
+ return IndexTransactionRequestFromJSONTyped(json, false);
138
+ }
139
+
140
+ export function IndexTransactionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndexTransactionRequest {
141
+ if (json == null) {
142
+ return json;
143
+ }
144
+ return {
145
+
146
+ 'search': json['search'] == null ? undefined : json['search'],
147
+ 'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
148
+ 'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
149
+ 'perPage': json['per_page'] == null ? undefined : json['per_page'],
150
+ 'page': json['page'] == null ? undefined : json['page'],
151
+ 'paymentSource': json['payment_source'] == null ? undefined : json['payment_source'],
152
+ 'type': json['type'] == null ? undefined : json['type'],
153
+ 'paymentMethod': json['payment_method'] == null ? undefined : json['payment_method'],
154
+ 'status': json['status'] == null ? undefined : json['status'],
155
+ 'beforeCreatedAt': json['before_created_at'] == null ? undefined : (new Date(json['before_created_at'])),
156
+ 'afterCreatedAt': json['after_created_at'] == null ? undefined : (new Date(json['after_created_at'])),
157
+ 'relatedId': json['related_id'] == null ? undefined : json['related_id'],
158
+ 'relatedType': json['related_type'] == null ? undefined : json['related_type'],
159
+ 'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
160
+ };
161
+ }
162
+
163
+ export function IndexTransactionRequestToJSON(json: any): IndexTransactionRequest {
164
+ return IndexTransactionRequestToJSONTyped(json, false);
165
+ }
166
+
167
+ export function IndexTransactionRequestToJSONTyped(value?: IndexTransactionRequest | null, ignoreDiscriminator: boolean = false): any {
168
+ if (value == null) {
169
+ return value;
170
+ }
171
+
172
+ return {
173
+
174
+ 'search': value['search'],
175
+ 'sortBy': value['sortBy'],
176
+ 'sortDirection': value['sortDirection'],
177
+ 'per_page': value['perPage'],
178
+ 'page': value['page'],
179
+ 'payment_source': value['paymentSource'],
180
+ 'type': value['type'],
181
+ 'payment_method': value['paymentMethod'],
182
+ 'status': value['status'],
183
+ 'before_created_at': value['beforeCreatedAt'] == null ? value['beforeCreatedAt'] : value['beforeCreatedAt'].toISOString(),
184
+ 'after_created_at': value['afterCreatedAt'] == null ? value['afterCreatedAt'] : value['afterCreatedAt'].toISOString(),
185
+ 'related_id': value['relatedId'],
186
+ 'related_type': value['relatedType'],
187
+ 'includes_relations': value['includesRelations'],
188
+ };
189
+ }
190
+
@@ -0,0 +1,90 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { PagingMetadata } from './PagingMetadata';
17
+ import {
18
+ PagingMetadataFromJSON,
19
+ PagingMetadataFromJSONTyped,
20
+ PagingMetadataToJSON,
21
+ PagingMetadataToJSONTyped,
22
+ } from './PagingMetadata';
23
+ import type { TransactionListResource } from './TransactionListResource';
24
+ import {
25
+ TransactionListResourceFromJSON,
26
+ TransactionListResourceFromJSONTyped,
27
+ TransactionListResourceToJSON,
28
+ TransactionListResourceToJSONTyped,
29
+ } from './TransactionListResource';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface PaginatedTransactionListResourceResponse
35
+ */
36
+ export interface PaginatedTransactionListResourceResponse {
37
+ /**
38
+ *
39
+ * @type {Array<TransactionListResource>}
40
+ * @memberof PaginatedTransactionListResourceResponse
41
+ */
42
+ data: Array<TransactionListResource>;
43
+ /**
44
+ *
45
+ * @type {PagingMetadata}
46
+ * @memberof PaginatedTransactionListResourceResponse
47
+ */
48
+ meta: PagingMetadata;
49
+ }
50
+
51
+ /**
52
+ * Check if a given object implements the PaginatedTransactionListResourceResponse interface.
53
+ */
54
+ export function instanceOfPaginatedTransactionListResourceResponse(value: object): value is PaginatedTransactionListResourceResponse {
55
+ if (!('data' in value) || value['data'] === undefined) return false;
56
+ if (!('meta' in value) || value['meta'] === undefined) return false;
57
+ return true;
58
+ }
59
+
60
+ export function PaginatedTransactionListResourceResponseFromJSON(json: any): PaginatedTransactionListResourceResponse {
61
+ return PaginatedTransactionListResourceResponseFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function PaginatedTransactionListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedTransactionListResourceResponse {
65
+ if (json == null) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ 'data': ((json['data'] as Array<any>).map(TransactionListResourceFromJSON)),
71
+ 'meta': PagingMetadataFromJSON(json['meta']),
72
+ };
73
+ }
74
+
75
+ export function PaginatedTransactionListResourceResponseToJSON(json: any): PaginatedTransactionListResourceResponse {
76
+ return PaginatedTransactionListResourceResponseToJSONTyped(json, false);
77
+ }
78
+
79
+ export function PaginatedTransactionListResourceResponseToJSONTyped(value?: PaginatedTransactionListResourceResponse | null, ignoreDiscriminator: boolean = false): any {
80
+ if (value == null) {
81
+ return value;
82
+ }
83
+
84
+ return {
85
+
86
+ 'data': ((value['data'] as Array<any>).map(TransactionListResourceToJSON)),
87
+ 'meta': PagingMetadataToJSON(value['meta']),
88
+ };
89
+ }
90
+
@@ -0,0 +1,90 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { PagingMetadata } from './PagingMetadata';
17
+ import {
18
+ PagingMetadataFromJSON,
19
+ PagingMetadataFromJSONTyped,
20
+ PagingMetadataToJSON,
21
+ PagingMetadataToJSONTyped,
22
+ } from './PagingMetadata';
23
+ import type { TransactionResource } from './TransactionResource';
24
+ import {
25
+ TransactionResourceFromJSON,
26
+ TransactionResourceFromJSONTyped,
27
+ TransactionResourceToJSON,
28
+ TransactionResourceToJSONTyped,
29
+ } from './TransactionResource';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface PaginatedTransactionResourceResponse
35
+ */
36
+ export interface PaginatedTransactionResourceResponse {
37
+ /**
38
+ *
39
+ * @type {Array<TransactionResource>}
40
+ * @memberof PaginatedTransactionResourceResponse
41
+ */
42
+ data: Array<TransactionResource>;
43
+ /**
44
+ *
45
+ * @type {PagingMetadata}
46
+ * @memberof PaginatedTransactionResourceResponse
47
+ */
48
+ meta: PagingMetadata;
49
+ }
50
+
51
+ /**
52
+ * Check if a given object implements the PaginatedTransactionResourceResponse interface.
53
+ */
54
+ export function instanceOfPaginatedTransactionResourceResponse(value: object): value is PaginatedTransactionResourceResponse {
55
+ if (!('data' in value) || value['data'] === undefined) return false;
56
+ if (!('meta' in value) || value['meta'] === undefined) return false;
57
+ return true;
58
+ }
59
+
60
+ export function PaginatedTransactionResourceResponseFromJSON(json: any): PaginatedTransactionResourceResponse {
61
+ return PaginatedTransactionResourceResponseFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function PaginatedTransactionResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedTransactionResourceResponse {
65
+ if (json == null) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ 'data': ((json['data'] as Array<any>).map(TransactionResourceFromJSON)),
71
+ 'meta': PagingMetadataFromJSON(json['meta']),
72
+ };
73
+ }
74
+
75
+ export function PaginatedTransactionResourceResponseToJSON(json: any): PaginatedTransactionResourceResponse {
76
+ return PaginatedTransactionResourceResponseToJSONTyped(json, false);
77
+ }
78
+
79
+ export function PaginatedTransactionResourceResponseToJSONTyped(value?: PaginatedTransactionResourceResponse | null, ignoreDiscriminator: boolean = false): any {
80
+ if (value == null) {
81
+ return value;
82
+ }
83
+
84
+ return {
85
+
86
+ 'data': ((value['data'] as Array<any>).map(TransactionResourceToJSON)),
87
+ 'meta': PagingMetadataToJSON(value['meta']),
88
+ };
89
+ }
90
+
@@ -0,0 +1,58 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ /**
17
+ *
18
+ * @export
19
+ */
20
+ export const PaymentMethod = {
21
+ BankDeposit: 'bank_deposit',
22
+ Visa: 'visa',
23
+ Mastercard: 'mastercard',
24
+ AmericanExpress: 'american_express',
25
+ GooglePay: 'google_pay',
26
+ PayPal: 'pay_pal',
27
+ ApplePay: 'apple_pay'
28
+ } as const;
29
+ export type PaymentMethod = typeof PaymentMethod[keyof typeof PaymentMethod];
30
+
31
+
32
+ export function instanceOfPaymentMethod(value: any): boolean {
33
+ for (const key in PaymentMethod) {
34
+ if (Object.prototype.hasOwnProperty.call(PaymentMethod, key)) {
35
+ if (PaymentMethod[key as keyof typeof PaymentMethod] === value) {
36
+ return true;
37
+ }
38
+ }
39
+ }
40
+ return false;
41
+ }
42
+
43
+ export function PaymentMethodFromJSON(json: any): PaymentMethod {
44
+ return PaymentMethodFromJSONTyped(json, false);
45
+ }
46
+
47
+ export function PaymentMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentMethod {
48
+ return json as PaymentMethod;
49
+ }
50
+
51
+ export function PaymentMethodToJSON(value?: PaymentMethod | null): any {
52
+ return value as any;
53
+ }
54
+
55
+ export function PaymentMethodToJSONTyped(value: any, ignoreDiscriminator: boolean): PaymentMethod {
56
+ return value as PaymentMethod;
57
+ }
58
+
@@ -0,0 +1,54 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ /**
17
+ *
18
+ * @export
19
+ */
20
+ export const PaymentSource = {
21
+ Checkout: 'checkout',
22
+ ExpressCheckout: 'express_checkout',
23
+ AdminPortal: 'admin_portal'
24
+ } as const;
25
+ export type PaymentSource = typeof PaymentSource[keyof typeof PaymentSource];
26
+
27
+
28
+ export function instanceOfPaymentSource(value: any): boolean {
29
+ for (const key in PaymentSource) {
30
+ if (Object.prototype.hasOwnProperty.call(PaymentSource, key)) {
31
+ if (PaymentSource[key as keyof typeof PaymentSource] === value) {
32
+ return true;
33
+ }
34
+ }
35
+ }
36
+ return false;
37
+ }
38
+
39
+ export function PaymentSourceFromJSON(json: any): PaymentSource {
40
+ return PaymentSourceFromJSONTyped(json, false);
41
+ }
42
+
43
+ export function PaymentSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentSource {
44
+ return json as PaymentSource;
45
+ }
46
+
47
+ export function PaymentSourceToJSON(value?: PaymentSource | null): any {
48
+ return value as any;
49
+ }
50
+
51
+ export function PaymentSourceToJSONTyped(value: any, ignoreDiscriminator: boolean): PaymentSource {
52
+ return value as PaymentSource;
53
+ }
54
+
@@ -0,0 +1,53 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ /**
17
+ *
18
+ * @export
19
+ */
20
+ export const PaymentStatus = {
21
+ Success: 'success',
22
+ Failure: 'failure'
23
+ } as const;
24
+ export type PaymentStatus = typeof PaymentStatus[keyof typeof PaymentStatus];
25
+
26
+
27
+ export function instanceOfPaymentStatus(value: any): boolean {
28
+ for (const key in PaymentStatus) {
29
+ if (Object.prototype.hasOwnProperty.call(PaymentStatus, key)) {
30
+ if (PaymentStatus[key as keyof typeof PaymentStatus] === value) {
31
+ return true;
32
+ }
33
+ }
34
+ }
35
+ return false;
36
+ }
37
+
38
+ export function PaymentStatusFromJSON(json: any): PaymentStatus {
39
+ return PaymentStatusFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function PaymentStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentStatus {
43
+ return json as PaymentStatus;
44
+ }
45
+
46
+ export function PaymentStatusToJSON(value?: PaymentStatus | null): any {
47
+ return value as any;
48
+ }
49
+
50
+ export function PaymentStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): PaymentStatus {
51
+ return value as PaymentStatus;
52
+ }
53
+
@@ -70,12 +70,6 @@ export interface ProductChildCartLiteResource {
70
70
  * @memberof ProductChildCartLiteResource
71
71
  */
72
72
  name: string;
73
- /**
74
- *
75
- * @type {string}
76
- * @memberof ProductChildCartLiteResource
77
- */
78
- slug: string;
79
73
  /**
80
74
  *
81
75
  * @type {number}
@@ -112,7 +106,6 @@ export function instanceOfProductChildCartLiteResource(value: object): value is
112
106
  if (!('model' in value) || value['model'] === undefined) return false;
113
107
  if (!('modelNumber' in value) || value['modelNumber'] === undefined) return false;
114
108
  if (!('name' in value) || value['name'] === undefined) return false;
115
- if (!('slug' in value) || value['slug'] === undefined) return false;
116
109
  if (!('stock' in value) || value['stock'] === undefined) return false;
117
110
  if (!('salePrice' in value) || value['salePrice'] === undefined) return false;
118
111
  if (!('thumbnail' in value) || value['thumbnail'] === undefined) return false;
@@ -136,7 +129,6 @@ export function ProductChildCartLiteResourceFromJSONTyped(json: any, ignoreDiscr
136
129
  'model': json['model'],
137
130
  'modelNumber': json['model_number'],
138
131
  'name': json['name'],
139
- 'slug': json['slug'],
140
132
  'stock': json['stock'],
141
133
  'salePrice': json['sale_price'],
142
134
  'thumbnail': AssetLiteResourceFromJSON(json['thumbnail']),
@@ -161,7 +153,6 @@ export function ProductChildCartLiteResourceToJSONTyped(value?: ProductChildCart
161
153
  'model': value['model'],
162
154
  'model_number': value['modelNumber'],
163
155
  'name': value['name'],
164
- 'slug': value['slug'],
165
156
  'stock': value['stock'],
166
157
  'sale_price': value['salePrice'],
167
158
  'thumbnail': AssetLiteResourceToJSON(value['thumbnail']),