@digital8/lighting-illusions-ts-sdk 0.0.1859 → 0.0.1861

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 (72) hide show
  1. package/.openapi-generator/FILES +0 -14
  2. package/README.md +3 -10
  3. package/dist/apis/CartsApi.d.ts +6 -6
  4. package/dist/apis/CartsApi.js +5 -3
  5. package/dist/models/AddressFrontendResource.d.ts +1 -1
  6. package/dist/models/AddressFrontendResource.js +3 -1
  7. package/dist/models/AddressResource.d.ts +6 -0
  8. package/dist/models/AddressResource.js +2 -0
  9. package/dist/models/AttachCouponCartRequest.d.ts +2 -2
  10. package/dist/models/AttachCouponCartRequest.js +3 -3
  11. package/dist/models/CartResource.d.ts +4 -34
  12. package/dist/models/CartResource.js +10 -32
  13. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  14. package/dist/models/ExternalApiLogResource.js +1 -3
  15. package/dist/models/LineItemListResource.d.ts +3 -27
  16. package/dist/models/LineItemListResource.js +3 -19
  17. package/dist/models/StoreCartRequest.d.ts +12 -0
  18. package/dist/models/StoreCartRequest.js +4 -0
  19. package/dist/models/StoreSpecialDateResource.d.ts +2 -2
  20. package/dist/models/StoreSpecialDateResource.js +3 -1
  21. package/dist/models/UpdateCartRequest.d.ts +12 -0
  22. package/dist/models/UpdateCartRequest.js +4 -0
  23. package/dist/models/index.d.ts +0 -7
  24. package/dist/models/index.js +0 -7
  25. package/docs/AddressResource.md +2 -0
  26. package/docs/AttachCouponCartRequest.md +2 -2
  27. package/docs/CartResource.md +6 -16
  28. package/docs/CartsApi.md +8 -8
  29. package/docs/LineItemListResource.md +1 -9
  30. package/docs/StoreCartRequest.md +4 -0
  31. package/docs/StoreSpecialDateResource.md +1 -1
  32. package/docs/UpdateCartRequest.md +4 -0
  33. package/package.json +1 -1
  34. package/src/apis/CartsApi.ts +14 -12
  35. package/src/models/AddressFrontendResource.ts +3 -2
  36. package/src/models/AddressResource.ts +8 -0
  37. package/src/models/AttachCouponCartRequest.ts +5 -5
  38. package/src/models/CartResource.ts +14 -60
  39. package/src/models/ExternalApiLogResource.ts +2 -3
  40. package/src/models/LineItemListResource.ts +10 -46
  41. package/src/models/StoreCartRequest.ts +16 -0
  42. package/src/models/StoreSpecialDateResource.ts +4 -3
  43. package/src/models/UpdateCartRequest.ts +16 -0
  44. package/src/models/index.ts +0 -7
  45. package/dist/models/DetachCouponCartRequest.d.ts +0 -32
  46. package/dist/models/DetachCouponCartRequest.js +0 -51
  47. package/dist/models/DiscountType.d.ts +0 -26
  48. package/dist/models/DiscountType.js +0 -52
  49. package/dist/models/DiscountValueType.d.ts +0 -25
  50. package/dist/models/DiscountValueType.js +0 -51
  51. package/dist/models/LineItemDiscountResource.d.ts +0 -44
  52. package/dist/models/LineItemDiscountResource.js +0 -59
  53. package/dist/models/LineItemDiscountResourceArrayResponse.d.ts +0 -33
  54. package/dist/models/LineItemDiscountResourceArrayResponse.js +0 -50
  55. package/dist/models/ProductChildCartLiteResource.d.ts +0 -70
  56. package/dist/models/ProductChildCartLiteResource.js +0 -77
  57. package/dist/models/ProductChildCartLiteResourceArrayResponse.d.ts +0 -33
  58. package/dist/models/ProductChildCartLiteResourceArrayResponse.js +0 -50
  59. package/docs/DetachCouponCartRequest.md +0 -34
  60. package/docs/DiscountType.md +0 -32
  61. package/docs/DiscountValueType.md +0 -32
  62. package/docs/LineItemDiscountResource.md +0 -38
  63. package/docs/LineItemDiscountResourceArrayResponse.md +0 -34
  64. package/docs/ProductChildCartLiteResource.md +0 -46
  65. package/docs/ProductChildCartLiteResourceArrayResponse.md +0 -34
  66. package/src/models/DetachCouponCartRequest.ts +0 -66
  67. package/src/models/DiscountType.ts +0 -54
  68. package/src/models/DiscountValueType.ts +0 -53
  69. package/src/models/LineItemDiscountResource.ts +0 -84
  70. package/src/models/LineItemDiscountResourceArrayResponse.ts +0 -73
  71. package/src/models/ProductChildCartLiteResource.ts +0 -135
  72. package/src/models/ProductChildCartLiteResourceArrayResponse.ts +0 -73
@@ -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']),
@@ -13,13 +13,13 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
- import type { ProductChildCartLiteResource } from './ProductChildCartLiteResource';
16
+ import type { ProductChildListResource } from './ProductChildListResource';
17
17
  import {
18
- ProductChildCartLiteResourceFromJSON,
19
- ProductChildCartLiteResourceFromJSONTyped,
20
- ProductChildCartLiteResourceToJSON,
21
- ProductChildCartLiteResourceToJSONTyped,
22
- } from './ProductChildCartLiteResource';
18
+ ProductChildListResourceFromJSON,
19
+ ProductChildListResourceFromJSONTyped,
20
+ ProductChildListResourceToJSON,
21
+ ProductChildListResourceToJSONTyped,
22
+ } from './ProductChildListResource';
23
23
 
24
24
  /**
25
25
  *
@@ -47,34 +47,10 @@ export interface LineItemListResource {
47
47
  productPrice: number;
48
48
  /**
49
49
  *
50
- * @type {number}
51
- * @memberof LineItemListResource
52
- */
53
- productDiscount: number;
54
- /**
55
- *
56
- * @type {number}
57
- * @memberof LineItemListResource
58
- */
59
- totalDiscount: number;
60
- /**
61
- *
62
- * @type {number}
63
- * @memberof LineItemListResource
64
- */
65
- lineSubtotal: number;
66
- /**
67
- *
68
- * @type {object}
69
- * @memberof LineItemListResource
70
- */
71
- discounts: object;
72
- /**
73
- *
74
- * @type {ProductChildCartLiteResource}
50
+ * @type {ProductChildListResource}
75
51
  * @memberof LineItemListResource
76
52
  */
77
- productChild: ProductChildCartLiteResource | null;
53
+ productChild: ProductChildListResource | null;
78
54
  }
79
55
 
80
56
  /**
@@ -83,10 +59,6 @@ export interface LineItemListResource {
83
59
  export function instanceOfLineItemListResource(value: object): value is LineItemListResource {
84
60
  if (!('quantity' in value) || value['quantity'] === undefined) return false;
85
61
  if (!('productPrice' in value) || value['productPrice'] === undefined) return false;
86
- if (!('productDiscount' in value) || value['productDiscount'] === undefined) return false;
87
- if (!('totalDiscount' in value) || value['totalDiscount'] === undefined) return false;
88
- if (!('lineSubtotal' in value) || value['lineSubtotal'] === undefined) return false;
89
- if (!('discounts' in value) || value['discounts'] === undefined) return false;
90
62
  if (!('productChild' in value) || value['productChild'] === undefined) return false;
91
63
  return true;
92
64
  }
@@ -104,11 +76,7 @@ export function LineItemListResourceFromJSONTyped(json: any, ignoreDiscriminator
104
76
  'id': json['id'] == null ? undefined : json['id'],
105
77
  'quantity': json['quantity'],
106
78
  'productPrice': json['product_price'],
107
- 'productDiscount': json['product_discount'],
108
- 'totalDiscount': json['total_discount'],
109
- 'lineSubtotal': json['line_subtotal'],
110
- 'discounts': json['discounts'],
111
- 'productChild': ProductChildCartLiteResourceFromJSON(json['product_child']),
79
+ 'productChild': ProductChildListResourceFromJSON(json['product_child']),
112
80
  };
113
81
  }
114
82
 
@@ -126,11 +94,7 @@ export function LineItemListResourceToJSONTyped(value?: LineItemListResource | n
126
94
  'id': value['id'],
127
95
  'quantity': value['quantity'],
128
96
  'product_price': value['productPrice'],
129
- 'product_discount': value['productDiscount'],
130
- 'total_discount': value['totalDiscount'],
131
- 'line_subtotal': value['lineSubtotal'],
132
- 'discounts': value['discounts'],
133
- 'product_child': ProductChildCartLiteResourceToJSON(value['productChild']),
97
+ 'product_child': ProductChildListResourceToJSON(value['productChild']),
134
98
  };
135
99
  }
136
100
 
@@ -125,6 +125,18 @@ export interface StoreCartRequest {
125
125
  * @memberof StoreCartRequest
126
126
  */
127
127
  useAsBillingAddress?: boolean;
128
+ /**
129
+ *
130
+ * @type {number}
131
+ * @memberof StoreCartRequest
132
+ */
133
+ shippingAddressId?: number | null;
134
+ /**
135
+ *
136
+ * @type {number}
137
+ * @memberof StoreCartRequest
138
+ */
139
+ billingAddressId?: number | null;
128
140
  /**
129
141
  *
130
142
  * @type {StoreCartRequestShippingAddress}
@@ -199,6 +211,8 @@ export function StoreCartRequestFromJSONTyped(json: any, ignoreDiscriminator: bo
199
211
  'insuranceAmount': json['insurance_amount'] == null ? undefined : json['insurance_amount'],
200
212
  'overrideInsurance': json['override_insurance'] == null ? undefined : json['override_insurance'],
201
213
  'useAsBillingAddress': json['use_as_billing_address'] == null ? undefined : json['use_as_billing_address'],
214
+ 'shippingAddressId': json['shipping_address_id'] == null ? undefined : json['shipping_address_id'],
215
+ 'billingAddressId': json['billing_address_id'] == null ? undefined : json['billing_address_id'],
202
216
  'shippingAddress': json['shipping_address'] == null ? undefined : StoreCartRequestShippingAddressFromJSON(json['shipping_address']),
203
217
  'billingAddress': json['billing_address'] == null ? undefined : StoreCartRequestShippingAddressFromJSON(json['billing_address']),
204
218
  };
@@ -229,6 +243,8 @@ export function StoreCartRequestToJSONTyped(value?: StoreCartRequest | null, ign
229
243
  'insurance_amount': value['insuranceAmount'],
230
244
  'override_insurance': value['overrideInsurance'],
231
245
  'use_as_billing_address': value['useAsBillingAddress'],
246
+ 'shipping_address_id': value['shippingAddressId'],
247
+ 'billing_address_id': value['billingAddressId'],
232
248
  'shipping_address': StoreCartRequestShippingAddressToJSON(value['shippingAddress']),
233
249
  'billing_address': StoreCartRequestShippingAddressToJSON(value['billingAddress']),
234
250
  };
@@ -39,10 +39,10 @@ export interface StoreSpecialDateResource {
39
39
  hours: string;
40
40
  /**
41
41
  *
42
- * @type {string}
42
+ * @type {object}
43
43
  * @memberof StoreSpecialDateResource
44
44
  */
45
- date?: string | null;
45
+ date: object;
46
46
  /**
47
47
  *
48
48
  * @type {boolean}
@@ -69,6 +69,7 @@ export interface StoreSpecialDateResource {
69
69
  export function instanceOfStoreSpecialDateResource(value: object): value is StoreSpecialDateResource {
70
70
  if (!('name' in value) || value['name'] === undefined) return false;
71
71
  if (!('hours' in value) || value['hours'] === undefined) return false;
72
+ if (!('date' in value) || value['date'] === undefined) return false;
72
73
  if (!('closed' in value) || value['closed'] === undefined) return false;
73
74
  if (!('displayStartDate' in value) || value['displayStartDate'] === undefined) return false;
74
75
  if (!('displayEndDate' in value) || value['displayEndDate'] === undefined) return false;
@@ -88,7 +89,7 @@ export function StoreSpecialDateResourceFromJSONTyped(json: any, ignoreDiscrimin
88
89
  'id': json['id'] == null ? undefined : json['id'],
89
90
  'name': json['name'],
90
91
  'hours': json['hours'],
91
- 'date': json['date'] == null ? undefined : json['date'],
92
+ 'date': json['date'],
92
93
  'closed': json['closed'],
93
94
  'displayStartDate': json['display_start_date'],
94
95
  'displayEndDate': json['display_end_date'],
@@ -94,6 +94,18 @@ export interface UpdateCartRequest {
94
94
  * @memberof UpdateCartRequest
95
95
  */
96
96
  useAsBillingAddress?: boolean;
97
+ /**
98
+ *
99
+ * @type {number}
100
+ * @memberof UpdateCartRequest
101
+ */
102
+ shippingAddressId?: number | null;
103
+ /**
104
+ *
105
+ * @type {number}
106
+ * @memberof UpdateCartRequest
107
+ */
108
+ billingAddressId?: number | null;
97
109
  /**
98
110
  *
99
111
  * @type {StoreCartRequestShippingAddress}
@@ -162,6 +174,8 @@ export function UpdateCartRequestFromJSONTyped(json: any, ignoreDiscriminator: b
162
174
  'insuranceAmount': json['insurance_amount'] == null ? undefined : json['insurance_amount'],
163
175
  'overrideInsurance': json['override_insurance'] == null ? undefined : json['override_insurance'],
164
176
  'useAsBillingAddress': json['use_as_billing_address'] == null ? undefined : json['use_as_billing_address'],
177
+ 'shippingAddressId': json['shipping_address_id'] == null ? undefined : json['shipping_address_id'],
178
+ 'billingAddressId': json['billing_address_id'] == null ? undefined : json['billing_address_id'],
165
179
  'shippingAddress': json['shipping_address'] == null ? undefined : StoreCartRequestShippingAddressFromJSON(json['shipping_address']),
166
180
  'billingAddress': json['billing_address'] == null ? undefined : StoreCartRequestShippingAddressFromJSON(json['billing_address']),
167
181
  };
@@ -188,6 +202,8 @@ export function UpdateCartRequestToJSONTyped(value?: UpdateCartRequest | null, i
188
202
  'insurance_amount': value['insuranceAmount'],
189
203
  'override_insurance': value['overrideInsurance'],
190
204
  'use_as_billing_address': value['useAsBillingAddress'],
205
+ 'shipping_address_id': value['shippingAddressId'],
206
+ 'billing_address_id': value['billingAddressId'],
191
207
  'shipping_address': StoreCartRequestShippingAddressToJSON(value['shippingAddress']),
192
208
  'billing_address': StoreCartRequestShippingAddressToJSON(value['billingAddress']),
193
209
  };
@@ -74,7 +74,6 @@ export * from './DestroyAttributeValueRequest';
74
74
  export * from './DetachAccessoriesProductRangeRequest';
75
75
  export * from './DetachAssetableOverlayTemplateRequest';
76
76
  export * from './DetachAttributesProductRangeRequest';
77
- export * from './DetachCouponCartRequest';
78
77
  export * from './DetachDocumentablesDocumentRequest';
79
78
  export * from './DetachDocumentablesDocumentRequestDocumentablesInner';
80
79
  export * from './DetachDocumentsProductChildRequest';
@@ -82,8 +81,6 @@ export * from './DetachDocumentsProductRangeRequest';
82
81
  export * from './DetachProductsProductCategoryRequest';
83
82
  export * from './DetachStoresSupplierRequest';
84
83
  export * from './DetachSuppliersStoreRequest';
85
- export * from './DiscountType';
86
- export * from './DiscountValueType';
87
84
  export * from './DocumentFileForUploadResource';
88
85
  export * from './DocumentFileForUploadResourceArrayResponse';
89
86
  export * from './DocumentFrontendResource';
@@ -159,8 +156,6 @@ export * from './LabelResource';
159
156
  export * from './LabelResourceArrayResponse';
160
157
  export * from './LiAddressResource';
161
158
  export * from './LiAddressResourceArrayResponse';
162
- export * from './LineItemDiscountResource';
163
- export * from './LineItemDiscountResourceArrayResponse';
164
159
  export * from './LineItemListResource';
165
160
  export * from './LineItemListResourceArrayResponse';
166
161
  export * from './ListAssetsProductRegistrationRequest';
@@ -270,8 +265,6 @@ export * from './ProductChildAttributeGroupedResource';
270
265
  export * from './ProductChildAttributeGroupedResourceArrayResponse';
271
266
  export * from './ProductChildAttributeResource';
272
267
  export * from './ProductChildAttributeResourceArrayResponse';
273
- export * from './ProductChildCartLiteResource';
274
- export * from './ProductChildCartLiteResourceArrayResponse';
275
268
  export * from './ProductChildListResource';
276
269
  export * from './ProductChildListResourceArrayResponse';
277
270
  export * from './ProductChildLiteResource';
@@ -1,32 +0,0 @@
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 DetachCouponCartRequest
16
- */
17
- export interface DetachCouponCartRequest {
18
- /**
19
- *
20
- * @type {Array<number>}
21
- * @memberof DetachCouponCartRequest
22
- */
23
- couponIds: Array<number>;
24
- }
25
- /**
26
- * Check if a given object implements the DetachCouponCartRequest interface.
27
- */
28
- export declare function instanceOfDetachCouponCartRequest(value: object): value is DetachCouponCartRequest;
29
- export declare function DetachCouponCartRequestFromJSON(json: any): DetachCouponCartRequest;
30
- export declare function DetachCouponCartRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetachCouponCartRequest;
31
- export declare function DetachCouponCartRequestToJSON(json: any): DetachCouponCartRequest;
32
- export declare function DetachCouponCartRequestToJSONTyped(value?: DetachCouponCartRequest | null, ignoreDiscriminator?: boolean): any;
@@ -1,51 +0,0 @@
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.instanceOfDetachCouponCartRequest = instanceOfDetachCouponCartRequest;
17
- exports.DetachCouponCartRequestFromJSON = DetachCouponCartRequestFromJSON;
18
- exports.DetachCouponCartRequestFromJSONTyped = DetachCouponCartRequestFromJSONTyped;
19
- exports.DetachCouponCartRequestToJSON = DetachCouponCartRequestToJSON;
20
- exports.DetachCouponCartRequestToJSONTyped = DetachCouponCartRequestToJSONTyped;
21
- /**
22
- * Check if a given object implements the DetachCouponCartRequest interface.
23
- */
24
- function instanceOfDetachCouponCartRequest(value) {
25
- if (!('couponIds' in value) || value['couponIds'] === undefined)
26
- return false;
27
- return true;
28
- }
29
- function DetachCouponCartRequestFromJSON(json) {
30
- return DetachCouponCartRequestFromJSONTyped(json, false);
31
- }
32
- function DetachCouponCartRequestFromJSONTyped(json, ignoreDiscriminator) {
33
- if (json == null) {
34
- return json;
35
- }
36
- return {
37
- 'couponIds': json['coupon_ids'],
38
- };
39
- }
40
- function DetachCouponCartRequestToJSON(json) {
41
- return DetachCouponCartRequestToJSONTyped(json, false);
42
- }
43
- function DetachCouponCartRequestToJSONTyped(value, ignoreDiscriminator) {
44
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
- if (value == null) {
46
- return value;
47
- }
48
- return {
49
- 'coupon_ids': value['couponIds'],
50
- };
51
- }
@@ -1,26 +0,0 @@
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
- */
16
- export declare const DiscountType: {
17
- readonly Shipping: "shipping";
18
- readonly Subtotal: "subtotal";
19
- readonly Product: "product";
20
- };
21
- export type DiscountType = typeof DiscountType[keyof typeof DiscountType];
22
- export declare function instanceOfDiscountType(value: any): boolean;
23
- export declare function DiscountTypeFromJSON(json: any): DiscountType;
24
- export declare function DiscountTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): DiscountType;
25
- export declare function DiscountTypeToJSON(value?: DiscountType | null): any;
26
- export declare function DiscountTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): DiscountType;
@@ -1,52 +0,0 @@
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.DiscountType = void 0;
17
- exports.instanceOfDiscountType = instanceOfDiscountType;
18
- exports.DiscountTypeFromJSON = DiscountTypeFromJSON;
19
- exports.DiscountTypeFromJSONTyped = DiscountTypeFromJSONTyped;
20
- exports.DiscountTypeToJSON = DiscountTypeToJSON;
21
- exports.DiscountTypeToJSONTyped = DiscountTypeToJSONTyped;
22
- /**
23
- *
24
- * @export
25
- */
26
- exports.DiscountType = {
27
- Shipping: 'shipping',
28
- Subtotal: 'subtotal',
29
- Product: 'product'
30
- };
31
- function instanceOfDiscountType(value) {
32
- for (var key in exports.DiscountType) {
33
- if (Object.prototype.hasOwnProperty.call(exports.DiscountType, key)) {
34
- if (exports.DiscountType[key] === value) {
35
- return true;
36
- }
37
- }
38
- }
39
- return false;
40
- }
41
- function DiscountTypeFromJSON(json) {
42
- return DiscountTypeFromJSONTyped(json, false);
43
- }
44
- function DiscountTypeFromJSONTyped(json, ignoreDiscriminator) {
45
- return json;
46
- }
47
- function DiscountTypeToJSON(value) {
48
- return value;
49
- }
50
- function DiscountTypeToJSONTyped(value, ignoreDiscriminator) {
51
- return value;
52
- }
@@ -1,25 +0,0 @@
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
- */
16
- export declare const DiscountValueType: {
17
- readonly FixedValue: "fixed_value";
18
- readonly Percentage: "percentage";
19
- };
20
- export type DiscountValueType = typeof DiscountValueType[keyof typeof DiscountValueType];
21
- export declare function instanceOfDiscountValueType(value: any): boolean;
22
- export declare function DiscountValueTypeFromJSON(json: any): DiscountValueType;
23
- export declare function DiscountValueTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): DiscountValueType;
24
- export declare function DiscountValueTypeToJSON(value?: DiscountValueType | null): any;
25
- export declare function DiscountValueTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): DiscountValueType;
@@ -1,51 +0,0 @@
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.DiscountValueType = void 0;
17
- exports.instanceOfDiscountValueType = instanceOfDiscountValueType;
18
- exports.DiscountValueTypeFromJSON = DiscountValueTypeFromJSON;
19
- exports.DiscountValueTypeFromJSONTyped = DiscountValueTypeFromJSONTyped;
20
- exports.DiscountValueTypeToJSON = DiscountValueTypeToJSON;
21
- exports.DiscountValueTypeToJSONTyped = DiscountValueTypeToJSONTyped;
22
- /**
23
- *
24
- * @export
25
- */
26
- exports.DiscountValueType = {
27
- FixedValue: 'fixed_value',
28
- Percentage: 'percentage'
29
- };
30
- function instanceOfDiscountValueType(value) {
31
- for (var key in exports.DiscountValueType) {
32
- if (Object.prototype.hasOwnProperty.call(exports.DiscountValueType, key)) {
33
- if (exports.DiscountValueType[key] === value) {
34
- return true;
35
- }
36
- }
37
- }
38
- return false;
39
- }
40
- function DiscountValueTypeFromJSON(json) {
41
- return DiscountValueTypeFromJSONTyped(json, false);
42
- }
43
- function DiscountValueTypeFromJSONTyped(json, ignoreDiscriminator) {
44
- return json;
45
- }
46
- function DiscountValueTypeToJSON(value) {
47
- return value;
48
- }
49
- function DiscountValueTypeToJSONTyped(value, ignoreDiscriminator) {
50
- return value;
51
- }
@@ -1,44 +0,0 @@
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 LineItemDiscountResource
16
- */
17
- export interface LineItemDiscountResource {
18
- /**
19
- *
20
- * @type {number}
21
- * @memberof LineItemDiscountResource
22
- */
23
- id: number;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof LineItemDiscountResource
28
- */
29
- name: string;
30
- /**
31
- *
32
- * @type {number}
33
- * @memberof LineItemDiscountResource
34
- */
35
- discountTotal: number;
36
- }
37
- /**
38
- * Check if a given object implements the LineItemDiscountResource interface.
39
- */
40
- export declare function instanceOfLineItemDiscountResource(value: object): value is LineItemDiscountResource;
41
- export declare function LineItemDiscountResourceFromJSON(json: any): LineItemDiscountResource;
42
- export declare function LineItemDiscountResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): LineItemDiscountResource;
43
- export declare function LineItemDiscountResourceToJSON(json: any): LineItemDiscountResource;
44
- export declare function LineItemDiscountResourceToJSONTyped(value?: LineItemDiscountResource | null, ignoreDiscriminator?: boolean): any;
@@ -1,59 +0,0 @@
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.instanceOfLineItemDiscountResource = instanceOfLineItemDiscountResource;
17
- exports.LineItemDiscountResourceFromJSON = LineItemDiscountResourceFromJSON;
18
- exports.LineItemDiscountResourceFromJSONTyped = LineItemDiscountResourceFromJSONTyped;
19
- exports.LineItemDiscountResourceToJSON = LineItemDiscountResourceToJSON;
20
- exports.LineItemDiscountResourceToJSONTyped = LineItemDiscountResourceToJSONTyped;
21
- /**
22
- * Check if a given object implements the LineItemDiscountResource interface.
23
- */
24
- function instanceOfLineItemDiscountResource(value) {
25
- if (!('id' in value) || value['id'] === undefined)
26
- return false;
27
- if (!('name' in value) || value['name'] === undefined)
28
- return false;
29
- if (!('discountTotal' in value) || value['discountTotal'] === undefined)
30
- return false;
31
- return true;
32
- }
33
- function LineItemDiscountResourceFromJSON(json) {
34
- return LineItemDiscountResourceFromJSONTyped(json, false);
35
- }
36
- function LineItemDiscountResourceFromJSONTyped(json, ignoreDiscriminator) {
37
- if (json == null) {
38
- return json;
39
- }
40
- return {
41
- 'id': json['id'],
42
- 'name': json['name'],
43
- 'discountTotal': json['discount_total'],
44
- };
45
- }
46
- function LineItemDiscountResourceToJSON(json) {
47
- return LineItemDiscountResourceToJSONTyped(json, false);
48
- }
49
- function LineItemDiscountResourceToJSONTyped(value, ignoreDiscriminator) {
50
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
51
- if (value == null) {
52
- return value;
53
- }
54
- return {
55
- 'id': value['id'],
56
- 'name': value['name'],
57
- 'discount_total': value['discountTotal'],
58
- };
59
- }
@@ -1,33 +0,0 @@
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 { LineItemDiscountResource } from './LineItemDiscountResource';
13
- /**
14
- *
15
- * @export
16
- * @interface LineItemDiscountResourceArrayResponse
17
- */
18
- export interface LineItemDiscountResourceArrayResponse {
19
- /**
20
- *
21
- * @type {Array<LineItemDiscountResource>}
22
- * @memberof LineItemDiscountResourceArrayResponse
23
- */
24
- data?: Array<LineItemDiscountResource>;
25
- }
26
- /**
27
- * Check if a given object implements the LineItemDiscountResourceArrayResponse interface.
28
- */
29
- export declare function instanceOfLineItemDiscountResourceArrayResponse(value: object): value is LineItemDiscountResourceArrayResponse;
30
- export declare function LineItemDiscountResourceArrayResponseFromJSON(json: any): LineItemDiscountResourceArrayResponse;
31
- export declare function LineItemDiscountResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LineItemDiscountResourceArrayResponse;
32
- export declare function LineItemDiscountResourceArrayResponseToJSON(json: any): LineItemDiscountResourceArrayResponse;
33
- export declare function LineItemDiscountResourceArrayResponseToJSONTyped(value?: LineItemDiscountResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;