@digital8/lighting-illusions-ts-sdk 0.0.1839 → 0.0.1840

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 (82) hide show
  1. package/.openapi-generator/FILES +10 -10
  2. package/README.md +8 -8
  3. package/dist/apis/CartsApi.d.ts +6 -6
  4. package/dist/apis/CartsApi.js +5 -3
  5. package/dist/apis/CouponsApi.d.ts +33 -0
  6. package/dist/apis/CouponsApi.js +138 -0
  7. package/dist/apis/index.d.ts +1 -0
  8. package/dist/apis/index.js +1 -0
  9. package/dist/models/AddressResource.d.ts +1 -1
  10. package/dist/models/AddressResource.js +3 -1
  11. package/dist/models/AdminCartResource.d.ts +4 -34
  12. package/dist/models/AdminCartResource.js +10 -32
  13. package/dist/models/AttachCouponCartRequest.d.ts +2 -2
  14. package/dist/models/AttachCouponCartRequest.js +3 -3
  15. package/dist/models/FrontendCartResource.d.ts +0 -12
  16. package/dist/models/FrontendCartResource.js +0 -8
  17. package/dist/models/LineItemListResource.d.ts +3 -27
  18. package/dist/models/LineItemListResource.js +3 -19
  19. package/dist/models/StoreFrontendResource.d.ts +1 -1
  20. package/dist/models/StoreFrontendResource.js +1 -3
  21. package/dist/models/StoreListResource.d.ts +1 -1
  22. package/dist/models/StoreListResource.js +3 -1
  23. package/dist/models/StoreResource.d.ts +2 -2
  24. package/dist/models/StoreResource.js +2 -6
  25. package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
  26. package/dist/models/StoreSpecialDateFrontendResource.js +1 -3
  27. package/dist/models/VerifyCouponRequest.d.ts +63 -0
  28. package/dist/models/VerifyCouponRequest.js +64 -0
  29. package/dist/models/VerifyCouponRequestProductsInner.d.ts +38 -0
  30. package/dist/models/VerifyCouponRequestProductsInner.js +51 -0
  31. package/dist/models/VerifyCouponResource.d.ts +38 -0
  32. package/dist/models/VerifyCouponResource.js +55 -0
  33. package/dist/models/VerifyCouponResourceArrayResponse.d.ts +33 -0
  34. package/dist/models/VerifyCouponResourceArrayResponse.js +50 -0
  35. package/dist/models/index.d.ts +4 -5
  36. package/dist/models/index.js +4 -5
  37. package/docs/AdminCartResource.md +6 -16
  38. package/docs/AttachCouponCartRequest.md +2 -2
  39. package/docs/CartsApi.md +8 -8
  40. package/docs/CouponsApi.md +74 -0
  41. package/docs/FrontendCartResource.md +0 -4
  42. package/docs/LineItemListResource.md +1 -9
  43. package/docs/StoreSpecialDateFrontendResource.md +1 -1
  44. package/docs/VerifyCouponRequest.md +44 -0
  45. package/docs/{DiscountValueType.md → VerifyCouponRequestProductsInner.md} +8 -4
  46. package/docs/{DetachCouponCartRequest.md → VerifyCouponResource.md} +8 -6
  47. package/docs/{DiscountType.md → VerifyCouponResourceArrayResponse.md} +6 -4
  48. package/package.json +1 -1
  49. package/src/apis/CartsApi.ts +14 -12
  50. package/src/apis/CouponsApi.ts +77 -0
  51. package/src/apis/index.ts +1 -0
  52. package/src/models/AddressResource.ts +3 -2
  53. package/src/models/AdminCartResource.ts +14 -60
  54. package/src/models/AttachCouponCartRequest.ts +5 -5
  55. package/src/models/FrontendCartResource.ts +0 -18
  56. package/src/models/LineItemListResource.ts +10 -46
  57. package/src/models/StoreFrontendResource.ts +2 -3
  58. package/src/models/StoreListResource.ts +3 -2
  59. package/src/models/StoreResource.ts +4 -6
  60. package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
  61. package/src/models/VerifyCouponRequest.ts +115 -0
  62. package/src/models/VerifyCouponRequestProductsInner.ts +73 -0
  63. package/src/models/VerifyCouponResource.ts +75 -0
  64. package/src/models/VerifyCouponResourceArrayResponse.ts +73 -0
  65. package/src/models/index.ts +4 -5
  66. package/dist/models/DetachCouponCartRequest.d.ts +0 -32
  67. package/dist/models/DetachCouponCartRequest.js +0 -51
  68. package/dist/models/DiscountType.d.ts +0 -26
  69. package/dist/models/DiscountType.js +0 -52
  70. package/dist/models/DiscountValueType.d.ts +0 -25
  71. package/dist/models/DiscountValueType.js +0 -51
  72. package/dist/models/ProductChildCartLiteResource.d.ts +0 -70
  73. package/dist/models/ProductChildCartLiteResource.js +0 -77
  74. package/dist/models/ProductChildCartLiteResourceArrayResponse.d.ts +0 -33
  75. package/dist/models/ProductChildCartLiteResourceArrayResponse.js +0 -50
  76. package/docs/ProductChildCartLiteResource.md +0 -46
  77. package/docs/ProductChildCartLiteResourceArrayResponse.md +0 -34
  78. package/src/models/DetachCouponCartRequest.ts +0 -66
  79. package/src/models/DiscountType.ts +0 -54
  80. package/src/models/DiscountValueType.ts +0 -53
  81. package/src/models/ProductChildCartLiteResource.ts +0 -135
  82. package/src/models/ProductChildCartLiteResourceArrayResponse.ts +0 -73
@@ -50,10 +50,6 @@ function instanceOfFrontendCartResource(value) {
50
50
  return false;
51
51
  if (!('discountPreview' in value) || value['discountPreview'] === undefined)
52
52
  return false;
53
- if (!('totalSubtotalDiscount' in value) || value['totalSubtotalDiscount'] === undefined)
54
- return false;
55
- if (!('totalShippingDiscount' in value) || value['totalShippingDiscount'] === undefined)
56
- return false;
57
53
  if (!('shippingEstimate' in value) || value['shippingEstimate'] === undefined)
58
54
  return false;
59
55
  if (!('insuranceEstimate' in value) || value['insuranceEstimate'] === undefined)
@@ -89,8 +85,6 @@ function FrontendCartResourceFromJSONTyped(json, ignoreDiscriminator) {
89
85
  'billingAddress': (0, AddressResource_1.AddressResourceFromJSON)(json['billing_address']),
90
86
  'subtotal': json['subtotal'],
91
87
  'discountPreview': json['discount_preview'],
92
- 'totalSubtotalDiscount': json['total_subtotal_discount'],
93
- 'totalShippingDiscount': json['total_shipping_discount'],
94
88
  'shippingEstimate': json['shipping_estimate'],
95
89
  'insuranceEstimate': json['insurance_estimate'],
96
90
  'status': json['status'],
@@ -124,8 +118,6 @@ function FrontendCartResourceToJSONTyped(value, ignoreDiscriminator) {
124
118
  'billing_address': (0, AddressResource_1.AddressResourceToJSON)(value['billingAddress']),
125
119
  'subtotal': value['subtotal'],
126
120
  'discount_preview': value['discountPreview'],
127
- 'total_subtotal_discount': value['totalSubtotalDiscount'],
128
- 'total_shipping_discount': value['totalShippingDiscount'],
129
121
  'shipping_estimate': value['shippingEstimate'],
130
122
  'insurance_estimate': value['insuranceEstimate'],
131
123
  'status': value['status'],
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { ProductChildCartLiteResource } from './ProductChildCartLiteResource';
12
+ import type { ProductChildListResource } from './ProductChildListResource';
13
13
  /**
14
14
  *
15
15
  * @export
@@ -36,34 +36,10 @@ export interface LineItemListResource {
36
36
  productPrice: number;
37
37
  /**
38
38
  *
39
- * @type {number}
40
- * @memberof LineItemListResource
41
- */
42
- productDiscount: number;
43
- /**
44
- *
45
- * @type {number}
46
- * @memberof LineItemListResource
47
- */
48
- totalDiscount: number;
49
- /**
50
- *
51
- * @type {number}
52
- * @memberof LineItemListResource
53
- */
54
- lineSubtotal: number;
55
- /**
56
- *
57
- * @type {Array<boolean>}
58
- * @memberof LineItemListResource
59
- */
60
- discounts: Array<boolean>;
61
- /**
62
- *
63
- * @type {ProductChildCartLiteResource}
39
+ * @type {ProductChildListResource}
64
40
  * @memberof LineItemListResource
65
41
  */
66
- productChild: ProductChildCartLiteResource | null;
42
+ productChild: ProductChildListResource | null;
67
43
  }
68
44
  /**
69
45
  * Check if a given object implements the LineItemListResource interface.
@@ -18,7 +18,7 @@ exports.LineItemListResourceFromJSON = LineItemListResourceFromJSON;
18
18
  exports.LineItemListResourceFromJSONTyped = LineItemListResourceFromJSONTyped;
19
19
  exports.LineItemListResourceToJSON = LineItemListResourceToJSON;
20
20
  exports.LineItemListResourceToJSONTyped = LineItemListResourceToJSONTyped;
21
- var ProductChildCartLiteResource_1 = require("./ProductChildCartLiteResource");
21
+ var ProductChildListResource_1 = require("./ProductChildListResource");
22
22
  /**
23
23
  * Check if a given object implements the LineItemListResource interface.
24
24
  */
@@ -27,14 +27,6 @@ function instanceOfLineItemListResource(value) {
27
27
  return false;
28
28
  if (!('productPrice' in value) || value['productPrice'] === undefined)
29
29
  return false;
30
- if (!('productDiscount' in value) || value['productDiscount'] === undefined)
31
- return false;
32
- if (!('totalDiscount' in value) || value['totalDiscount'] === undefined)
33
- return false;
34
- if (!('lineSubtotal' in value) || value['lineSubtotal'] === undefined)
35
- return false;
36
- if (!('discounts' in value) || value['discounts'] === undefined)
37
- return false;
38
30
  if (!('productChild' in value) || value['productChild'] === undefined)
39
31
  return false;
40
32
  return true;
@@ -50,11 +42,7 @@ function LineItemListResourceFromJSONTyped(json, ignoreDiscriminator) {
50
42
  'id': json['id'] == null ? undefined : json['id'],
51
43
  'quantity': json['quantity'],
52
44
  'productPrice': json['product_price'],
53
- 'productDiscount': json['product_discount'],
54
- 'totalDiscount': json['total_discount'],
55
- 'lineSubtotal': json['line_subtotal'],
56
- 'discounts': json['discounts'],
57
- 'productChild': (0, ProductChildCartLiteResource_1.ProductChildCartLiteResourceFromJSON)(json['product_child']),
45
+ 'productChild': (0, ProductChildListResource_1.ProductChildListResourceFromJSON)(json['product_child']),
58
46
  };
59
47
  }
60
48
  function LineItemListResourceToJSON(json) {
@@ -69,10 +57,6 @@ function LineItemListResourceToJSONTyped(value, ignoreDiscriminator) {
69
57
  'id': value['id'],
70
58
  'quantity': value['quantity'],
71
59
  'product_price': value['productPrice'],
72
- 'product_discount': value['productDiscount'],
73
- 'total_discount': value['totalDiscount'],
74
- 'line_subtotal': value['lineSubtotal'],
75
- 'discounts': value['discounts'],
76
- 'product_child': (0, ProductChildCartLiteResource_1.ProductChildCartLiteResourceToJSON)(value['productChild']),
60
+ 'product_child': (0, ProductChildListResource_1.ProductChildListResourceToJSON)(value['productChild']),
77
61
  };
78
62
  }
@@ -74,7 +74,7 @@ export interface StoreFrontendResource {
74
74
  * @type {string}
75
75
  * @memberof StoreFrontendResource
76
76
  */
77
- tagLine: string;
77
+ tagLine?: string | null;
78
78
  /**
79
79
  *
80
80
  * @type {string}
@@ -34,8 +34,6 @@ function instanceOfStoreFrontendResource(value) {
34
34
  return false;
35
35
  if (!('longitude' in value) || value['longitude'] === undefined)
36
36
  return false;
37
- if (!('tagLine' in value) || value['tagLine'] === undefined)
38
- return false;
39
37
  if (!('specialDates' in value) || value['specialDates'] === undefined)
40
38
  return false;
41
39
  if (!('suppliers' in value) || value['suppliers'] === undefined)
@@ -59,7 +57,7 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
59
57
  'address': json['address'] == null ? undefined : json['address'],
60
58
  'latitude': json['latitude'],
61
59
  'longitude': json['longitude'],
62
- 'tagLine': json['tagLine'],
60
+ 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
63
61
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
64
62
  'specialDates': json['specialDates'],
65
63
  'suppliers': json['suppliers'],
@@ -69,7 +69,7 @@ export interface StoreListResource {
69
69
  * @type {string}
70
70
  * @memberof StoreListResource
71
71
  */
72
- website?: string | null;
72
+ website: string;
73
73
  /**
74
74
  *
75
75
  * @type {string}
@@ -37,6 +37,8 @@ function instanceOfStoreListResource(value) {
37
37
  return false;
38
38
  if (!('email' in value) || value['email'] === undefined)
39
39
  return false;
40
+ if (!('website' in value) || value['website'] === undefined)
41
+ return false;
40
42
  return true;
41
43
  }
42
44
  function StoreListResourceFromJSON(json) {
@@ -55,7 +57,7 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
55
57
  'latitude': json['latitude'],
56
58
  'tagLine': json['tag_line'],
57
59
  'email': json['email'],
58
- 'website': json['website'] == null ? undefined : json['website'],
60
+ 'website': json['website'],
59
61
  'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
60
62
  };
61
63
  }
@@ -60,7 +60,7 @@ export interface StoreResource {
60
60
  * @type {string}
61
61
  * @memberof StoreResource
62
62
  */
63
- tagLine: string;
63
+ tagLine?: string | null;
64
64
  /**
65
65
  *
66
66
  * @type {string}
@@ -72,7 +72,7 @@ export interface StoreResource {
72
72
  * @type {string}
73
73
  * @memberof StoreResource
74
74
  */
75
- website: string;
75
+ website?: string | null;
76
76
  /**
77
77
  *
78
78
  * @type {string}
@@ -36,12 +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;
41
39
  if (!('email' in value) || value['email'] === undefined)
42
40
  return false;
43
- if (!('website' in value) || value['website'] === undefined)
44
- return false;
45
41
  if (!('suppliers' in value) || value['suppliers'] === undefined)
46
42
  return false;
47
43
  if (!('address' in value) || value['address'] === undefined)
@@ -64,9 +60,9 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
64
60
  'phone': json['phone'],
65
61
  'longitude': json['longitude'],
66
62
  'latitude': json['latitude'],
67
- 'tagLine': json['tag_line'],
63
+ 'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
68
64
  'email': json['email'],
69
- 'website': json['website'],
65
+ 'website': json['website'] == null ? undefined : json['website'],
70
66
  'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
71
67
  'suppliers': (json['suppliers'] == null ? null : json['suppliers'].map(SupplierLiteResource_1.SupplierLiteResourceFromJSON)),
72
68
  'address': (0, AddressResource_1.AddressResourceFromJSON)(json['address']),
@@ -35,10 +35,10 @@ export interface StoreSpecialDateFrontendResource {
35
35
  hours: string;
36
36
  /**
37
37
  *
38
- * @type {object}
38
+ * @type {string}
39
39
  * @memberof StoreSpecialDateFrontendResource
40
40
  */
41
- date: object;
41
+ date?: string | null;
42
42
  /**
43
43
  *
44
44
  * @type {boolean}
@@ -26,8 +26,6 @@ function instanceOfStoreSpecialDateFrontendResource(value) {
26
26
  return false;
27
27
  if (!('hours' in value) || value['hours'] === undefined)
28
28
  return false;
29
- if (!('date' in value) || value['date'] === undefined)
30
- return false;
31
29
  if (!('closed' in value) || value['closed'] === undefined)
32
30
  return false;
33
31
  if (!('displayStartDate' in value) || value['displayStartDate'] === undefined)
@@ -47,7 +45,7 @@ function StoreSpecialDateFrontendResourceFromJSONTyped(json, ignoreDiscriminator
47
45
  'id': json['id'] == null ? undefined : json['id'],
48
46
  'name': json['name'],
49
47
  'hours': json['hours'],
50
- 'date': json['date'],
48
+ 'date': json['date'] == null ? undefined : json['date'],
51
49
  'closed': json['closed'],
52
50
  'displayStartDate': json['displayStartDate'],
53
51
  'displayEndDate': json['displayEndDate'],
@@ -0,0 +1,63 @@
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 { VerifyCouponRequestProductsInner } from './VerifyCouponRequestProductsInner';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface VerifyCouponRequest
17
+ */
18
+ export interface VerifyCouponRequest {
19
+ /**
20
+ *
21
+ * @type {number}
22
+ * @memberof VerifyCouponRequest
23
+ */
24
+ siteId: number;
25
+ /**
26
+ *
27
+ * @type {number}
28
+ * @memberof VerifyCouponRequest
29
+ */
30
+ customerId: number;
31
+ /**
32
+ *
33
+ * @type {number}
34
+ * @memberof VerifyCouponRequest
35
+ */
36
+ cartId?: number | null;
37
+ /**
38
+ *
39
+ * @type {Array<VerifyCouponRequestProductsInner>}
40
+ * @memberof VerifyCouponRequest
41
+ */
42
+ products?: Array<VerifyCouponRequestProductsInner>;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof VerifyCouponRequest
47
+ */
48
+ couponCode?: string | null;
49
+ /**
50
+ *
51
+ * @type {Array<number>}
52
+ * @memberof VerifyCouponRequest
53
+ */
54
+ couponIds?: Array<number>;
55
+ }
56
+ /**
57
+ * Check if a given object implements the VerifyCouponRequest interface.
58
+ */
59
+ export declare function instanceOfVerifyCouponRequest(value: object): value is VerifyCouponRequest;
60
+ export declare function VerifyCouponRequestFromJSON(json: any): VerifyCouponRequest;
61
+ export declare function VerifyCouponRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): VerifyCouponRequest;
62
+ export declare function VerifyCouponRequestToJSON(json: any): VerifyCouponRequest;
63
+ export declare function VerifyCouponRequestToJSONTyped(value?: VerifyCouponRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,64 @@
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.instanceOfVerifyCouponRequest = instanceOfVerifyCouponRequest;
17
+ exports.VerifyCouponRequestFromJSON = VerifyCouponRequestFromJSON;
18
+ exports.VerifyCouponRequestFromJSONTyped = VerifyCouponRequestFromJSONTyped;
19
+ exports.VerifyCouponRequestToJSON = VerifyCouponRequestToJSON;
20
+ exports.VerifyCouponRequestToJSONTyped = VerifyCouponRequestToJSONTyped;
21
+ var VerifyCouponRequestProductsInner_1 = require("./VerifyCouponRequestProductsInner");
22
+ /**
23
+ * Check if a given object implements the VerifyCouponRequest interface.
24
+ */
25
+ function instanceOfVerifyCouponRequest(value) {
26
+ if (!('siteId' in value) || value['siteId'] === undefined)
27
+ return false;
28
+ if (!('customerId' in value) || value['customerId'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function VerifyCouponRequestFromJSON(json) {
33
+ return VerifyCouponRequestFromJSONTyped(json, false);
34
+ }
35
+ function VerifyCouponRequestFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'siteId': json['site_id'],
41
+ 'customerId': json['customer_id'],
42
+ 'cartId': json['cart_id'] == null ? undefined : json['cart_id'],
43
+ 'products': json['products'] == null ? undefined : (json['products'].map(VerifyCouponRequestProductsInner_1.VerifyCouponRequestProductsInnerFromJSON)),
44
+ 'couponCode': json['coupon_code'] == null ? undefined : json['coupon_code'],
45
+ 'couponIds': json['coupon_ids'] == null ? undefined : json['coupon_ids'],
46
+ };
47
+ }
48
+ function VerifyCouponRequestToJSON(json) {
49
+ return VerifyCouponRequestToJSONTyped(json, false);
50
+ }
51
+ function VerifyCouponRequestToJSONTyped(value, ignoreDiscriminator) {
52
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'site_id': value['siteId'],
58
+ 'customer_id': value['customerId'],
59
+ 'cart_id': value['cartId'],
60
+ 'products': value['products'] == null ? undefined : (value['products'].map(VerifyCouponRequestProductsInner_1.VerifyCouponRequestProductsInnerToJSON)),
61
+ 'coupon_code': value['couponCode'],
62
+ 'coupon_ids': value['couponIds'],
63
+ };
64
+ }
@@ -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 VerifyCouponRequestProductsInner
16
+ */
17
+ export interface VerifyCouponRequestProductsInner {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof VerifyCouponRequestProductsInner
22
+ */
23
+ productChildId?: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof VerifyCouponRequestProductsInner
28
+ */
29
+ quantity?: number;
30
+ }
31
+ /**
32
+ * Check if a given object implements the VerifyCouponRequestProductsInner interface.
33
+ */
34
+ export declare function instanceOfVerifyCouponRequestProductsInner(value: object): value is VerifyCouponRequestProductsInner;
35
+ export declare function VerifyCouponRequestProductsInnerFromJSON(json: any): VerifyCouponRequestProductsInner;
36
+ export declare function VerifyCouponRequestProductsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): VerifyCouponRequestProductsInner;
37
+ export declare function VerifyCouponRequestProductsInnerToJSON(json: any): VerifyCouponRequestProductsInner;
38
+ export declare function VerifyCouponRequestProductsInnerToJSONTyped(value?: VerifyCouponRequestProductsInner | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
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.instanceOfVerifyCouponRequestProductsInner = instanceOfVerifyCouponRequestProductsInner;
17
+ exports.VerifyCouponRequestProductsInnerFromJSON = VerifyCouponRequestProductsInnerFromJSON;
18
+ exports.VerifyCouponRequestProductsInnerFromJSONTyped = VerifyCouponRequestProductsInnerFromJSONTyped;
19
+ exports.VerifyCouponRequestProductsInnerToJSON = VerifyCouponRequestProductsInnerToJSON;
20
+ exports.VerifyCouponRequestProductsInnerToJSONTyped = VerifyCouponRequestProductsInnerToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the VerifyCouponRequestProductsInner interface.
23
+ */
24
+ function instanceOfVerifyCouponRequestProductsInner(value) {
25
+ return true;
26
+ }
27
+ function VerifyCouponRequestProductsInnerFromJSON(json) {
28
+ return VerifyCouponRequestProductsInnerFromJSONTyped(json, false);
29
+ }
30
+ function VerifyCouponRequestProductsInnerFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'productChildId': json['product_child_id'] == null ? undefined : json['product_child_id'],
36
+ 'quantity': json['quantity'] == null ? undefined : json['quantity'],
37
+ };
38
+ }
39
+ function VerifyCouponRequestProductsInnerToJSON(json) {
40
+ return VerifyCouponRequestProductsInnerToJSONTyped(json, false);
41
+ }
42
+ function VerifyCouponRequestProductsInnerToJSONTyped(value, ignoreDiscriminator) {
43
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'product_child_id': value['productChildId'],
49
+ 'quantity': value['quantity'],
50
+ };
51
+ }
@@ -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 VerifyCouponResource
16
+ */
17
+ export interface VerifyCouponResource {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof VerifyCouponResource
22
+ */
23
+ couponId: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof VerifyCouponResource
28
+ */
29
+ discountAmount: number;
30
+ }
31
+ /**
32
+ * Check if a given object implements the VerifyCouponResource interface.
33
+ */
34
+ export declare function instanceOfVerifyCouponResource(value: object): value is VerifyCouponResource;
35
+ export declare function VerifyCouponResourceFromJSON(json: any): VerifyCouponResource;
36
+ export declare function VerifyCouponResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): VerifyCouponResource;
37
+ export declare function VerifyCouponResourceToJSON(json: any): VerifyCouponResource;
38
+ export declare function VerifyCouponResourceToJSONTyped(value?: VerifyCouponResource | 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.instanceOfVerifyCouponResource = instanceOfVerifyCouponResource;
17
+ exports.VerifyCouponResourceFromJSON = VerifyCouponResourceFromJSON;
18
+ exports.VerifyCouponResourceFromJSONTyped = VerifyCouponResourceFromJSONTyped;
19
+ exports.VerifyCouponResourceToJSON = VerifyCouponResourceToJSON;
20
+ exports.VerifyCouponResourceToJSONTyped = VerifyCouponResourceToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the VerifyCouponResource interface.
23
+ */
24
+ function instanceOfVerifyCouponResource(value) {
25
+ if (!('couponId' in value) || value['couponId'] === undefined)
26
+ return false;
27
+ if (!('discountAmount' in value) || value['discountAmount'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function VerifyCouponResourceFromJSON(json) {
32
+ return VerifyCouponResourceFromJSONTyped(json, false);
33
+ }
34
+ function VerifyCouponResourceFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'couponId': json['coupon_id'],
40
+ 'discountAmount': json['discount_amount'],
41
+ };
42
+ }
43
+ function VerifyCouponResourceToJSON(json) {
44
+ return VerifyCouponResourceToJSONTyped(json, false);
45
+ }
46
+ function VerifyCouponResourceToJSONTyped(value, ignoreDiscriminator) {
47
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'coupon_id': value['couponId'],
53
+ 'discount_amount': value['discountAmount'],
54
+ };
55
+ }
@@ -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 { VerifyCouponResource } from './VerifyCouponResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface VerifyCouponResourceArrayResponse
17
+ */
18
+ export interface VerifyCouponResourceArrayResponse {
19
+ /**
20
+ *
21
+ * @type {Array<VerifyCouponResource>}
22
+ * @memberof VerifyCouponResourceArrayResponse
23
+ */
24
+ data?: Array<VerifyCouponResource>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the VerifyCouponResourceArrayResponse interface.
28
+ */
29
+ export declare function instanceOfVerifyCouponResourceArrayResponse(value: object): value is VerifyCouponResourceArrayResponse;
30
+ export declare function VerifyCouponResourceArrayResponseFromJSON(json: any): VerifyCouponResourceArrayResponse;
31
+ export declare function VerifyCouponResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VerifyCouponResourceArrayResponse;
32
+ export declare function VerifyCouponResourceArrayResponseToJSON(json: any): VerifyCouponResourceArrayResponse;
33
+ export declare function VerifyCouponResourceArrayResponseToJSONTyped(value?: VerifyCouponResourceArrayResponse | 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.instanceOfVerifyCouponResourceArrayResponse = instanceOfVerifyCouponResourceArrayResponse;
17
+ exports.VerifyCouponResourceArrayResponseFromJSON = VerifyCouponResourceArrayResponseFromJSON;
18
+ exports.VerifyCouponResourceArrayResponseFromJSONTyped = VerifyCouponResourceArrayResponseFromJSONTyped;
19
+ exports.VerifyCouponResourceArrayResponseToJSON = VerifyCouponResourceArrayResponseToJSON;
20
+ exports.VerifyCouponResourceArrayResponseToJSONTyped = VerifyCouponResourceArrayResponseToJSONTyped;
21
+ var VerifyCouponResource_1 = require("./VerifyCouponResource");
22
+ /**
23
+ * Check if a given object implements the VerifyCouponResourceArrayResponse interface.
24
+ */
25
+ function instanceOfVerifyCouponResourceArrayResponse(value) {
26
+ return true;
27
+ }
28
+ function VerifyCouponResourceArrayResponseFromJSON(json) {
29
+ return VerifyCouponResourceArrayResponseFromJSONTyped(json, false);
30
+ }
31
+ function VerifyCouponResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'data': json['data'] == null ? undefined : (json['data'].map(VerifyCouponResource_1.VerifyCouponResourceFromJSON)),
37
+ };
38
+ }
39
+ function VerifyCouponResourceArrayResponseToJSON(json) {
40
+ return VerifyCouponResourceArrayResponseToJSONTyped(json, false);
41
+ }
42
+ function VerifyCouponResourceArrayResponseToJSONTyped(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(VerifyCouponResource_1.VerifyCouponResourceToJSON)),
49
+ };
50
+ }