@digital8/lighting-illusions-ts-sdk 0.0.2153 → 0.0.2155

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 (93) hide show
  1. package/.openapi-generator/FILES +0 -32
  2. package/README.md +2 -23
  3. package/dist/apis/index.d.ts +0 -1
  4. package/dist/apis/index.js +0 -1
  5. package/dist/models/AddressFrontendResource.d.ts +1 -1
  6. package/dist/models/AddressFrontendResource.js +3 -1
  7. package/dist/models/OrderFulfillmentResource.d.ts +2 -2
  8. package/dist/models/OrderFulfillmentResource.js +4 -4
  9. package/dist/models/ProductChildResource.d.ts +6 -0
  10. package/dist/models/ProductChildResource.js +4 -0
  11. package/dist/models/StoreFrontendResource.d.ts +1 -1
  12. package/dist/models/StoreFrontendResource.js +1 -3
  13. package/dist/models/StoreResource.d.ts +1 -1
  14. package/dist/models/StoreResource.js +1 -3
  15. package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
  16. package/dist/models/StoreSpecialDateFrontendResource.js +1 -3
  17. package/dist/models/index.d.ts +0 -15
  18. package/dist/models/index.js +0 -15
  19. package/docs/ProductChildResource.md +2 -0
  20. package/docs/StoreSpecialDateFrontendResource.md +1 -1
  21. package/package.json +1 -1
  22. package/src/apis/index.ts +0 -1
  23. package/src/models/AddressFrontendResource.ts +3 -2
  24. package/src/models/OrderFulfillmentResource.ts +5 -5
  25. package/src/models/ProductChildResource.ts +9 -0
  26. package/src/models/StoreFrontendResource.ts +2 -3
  27. package/src/models/StoreResource.ts +2 -3
  28. package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
  29. package/src/models/index.ts +0 -15
  30. package/dist/apis/CouponsApi.d.ts +0 -116
  31. package/dist/apis/CouponsApi.js +0 -440
  32. package/dist/models/CouponListResource.d.ts +0 -87
  33. package/dist/models/CouponListResource.js +0 -82
  34. package/dist/models/CouponListResourceArrayResponse.d.ts +0 -33
  35. package/dist/models/CouponListResourceArrayResponse.js +0 -50
  36. package/dist/models/CouponLiteResource.d.ts +0 -44
  37. package/dist/models/CouponLiteResource.js +0 -57
  38. package/dist/models/CouponLiteResourceArrayResponse.d.ts +0 -33
  39. package/dist/models/CouponLiteResourceArrayResponse.js +0 -50
  40. package/dist/models/CouponResource.d.ts +0 -165
  41. package/dist/models/CouponResource.js +0 -134
  42. package/dist/models/CouponResourceArrayResponse.d.ts +0 -33
  43. package/dist/models/CouponResourceArrayResponse.js +0 -50
  44. package/dist/models/CouponType.d.ts +0 -26
  45. package/dist/models/CouponType.js +0 -52
  46. package/dist/models/CreateCouponRequest.d.ts +0 -134
  47. package/dist/models/CreateCouponRequest.js +0 -114
  48. package/dist/models/CreateCouponRequestCouponablesInner.d.ts +0 -48
  49. package/dist/models/CreateCouponRequestCouponablesInner.js +0 -61
  50. package/dist/models/PaginatedCouponListResourceResponse.d.ts +0 -40
  51. package/dist/models/PaginatedCouponListResourceResponse.js +0 -57
  52. package/dist/models/PaginatedCouponLiteResourceResponse.d.ts +0 -40
  53. package/dist/models/PaginatedCouponLiteResourceResponse.js +0 -57
  54. package/dist/models/PaginatedCouponResourceResponse.d.ts +0 -40
  55. package/dist/models/PaginatedCouponResourceResponse.js +0 -57
  56. package/dist/models/SearchAllCouponsRequest.d.ts +0 -101
  57. package/dist/models/SearchAllCouponsRequest.js +0 -85
  58. package/dist/models/SearchCouponsRequest.d.ts +0 -137
  59. package/dist/models/SearchCouponsRequest.js +0 -97
  60. package/dist/models/UpdateCouponRequest.d.ts +0 -128
  61. package/dist/models/UpdateCouponRequest.js +0 -110
  62. package/docs/CouponListResource.md +0 -52
  63. package/docs/CouponListResourceArrayResponse.md +0 -34
  64. package/docs/CouponLiteResource.md +0 -38
  65. package/docs/CouponLiteResourceArrayResponse.md +0 -34
  66. package/docs/CouponResource.md +0 -78
  67. package/docs/CouponResourceArrayResponse.md +0 -34
  68. package/docs/CouponType.md +0 -32
  69. package/docs/CouponsApi.md +0 -407
  70. package/docs/CreateCouponRequest.md +0 -62
  71. package/docs/CreateCouponRequestCouponablesInner.md +0 -36
  72. package/docs/PaginatedCouponListResourceResponse.md +0 -36
  73. package/docs/PaginatedCouponLiteResourceResponse.md +0 -36
  74. package/docs/PaginatedCouponResourceResponse.md +0 -36
  75. package/docs/SearchAllCouponsRequest.md +0 -50
  76. package/docs/SearchCouponsRequest.md +0 -62
  77. package/docs/UpdateCouponRequest.md +0 -60
  78. package/src/apis/CouponsApi.ts +0 -345
  79. package/src/models/CouponListResource.ts +0 -152
  80. package/src/models/CouponListResourceArrayResponse.ts +0 -73
  81. package/src/models/CouponLiteResource.ts +0 -83
  82. package/src/models/CouponLiteResourceArrayResponse.ts +0 -73
  83. package/src/models/CouponResource.ts +0 -269
  84. package/src/models/CouponResourceArrayResponse.ts +0 -73
  85. package/src/models/CouponType.ts +0 -54
  86. package/src/models/CreateCouponRequest.ts +0 -216
  87. package/src/models/CreateCouponRequestCouponablesInner.ts +0 -86
  88. package/src/models/PaginatedCouponListResourceResponse.ts +0 -90
  89. package/src/models/PaginatedCouponLiteResourceResponse.ts +0 -90
  90. package/src/models/PaginatedCouponResourceResponse.ts +0 -90
  91. package/src/models/SearchAllCouponsRequest.ts +0 -154
  92. package/src/models/SearchCouponsRequest.ts +0 -202
  93. package/src/models/UpdateCouponRequest.ts +0 -207
@@ -1,50 +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.instanceOfCouponListResourceArrayResponse = instanceOfCouponListResourceArrayResponse;
17
- exports.CouponListResourceArrayResponseFromJSON = CouponListResourceArrayResponseFromJSON;
18
- exports.CouponListResourceArrayResponseFromJSONTyped = CouponListResourceArrayResponseFromJSONTyped;
19
- exports.CouponListResourceArrayResponseToJSON = CouponListResourceArrayResponseToJSON;
20
- exports.CouponListResourceArrayResponseToJSONTyped = CouponListResourceArrayResponseToJSONTyped;
21
- var CouponListResource_1 = require("./CouponListResource");
22
- /**
23
- * Check if a given object implements the CouponListResourceArrayResponse interface.
24
- */
25
- function instanceOfCouponListResourceArrayResponse(value) {
26
- return true;
27
- }
28
- function CouponListResourceArrayResponseFromJSON(json) {
29
- return CouponListResourceArrayResponseFromJSONTyped(json, false);
30
- }
31
- function CouponListResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
- if (json == null) {
33
- return json;
34
- }
35
- return {
36
- 'data': json['data'] == null ? undefined : (json['data'].map(CouponListResource_1.CouponListResourceFromJSON)),
37
- };
38
- }
39
- function CouponListResourceArrayResponseToJSON(json) {
40
- return CouponListResourceArrayResponseToJSONTyped(json, false);
41
- }
42
- function CouponListResourceArrayResponseToJSONTyped(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(CouponListResource_1.CouponListResourceToJSON)),
49
- };
50
- }
@@ -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 CouponLiteResource
16
- */
17
- export interface CouponLiteResource {
18
- /**
19
- *
20
- * @type {number}
21
- * @memberof CouponLiteResource
22
- */
23
- id?: number | null;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof CouponLiteResource
28
- */
29
- name: string;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof CouponLiteResource
34
- */
35
- code: string;
36
- }
37
- /**
38
- * Check if a given object implements the CouponLiteResource interface.
39
- */
40
- export declare function instanceOfCouponLiteResource(value: object): value is CouponLiteResource;
41
- export declare function CouponLiteResourceFromJSON(json: any): CouponLiteResource;
42
- export declare function CouponLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CouponLiteResource;
43
- export declare function CouponLiteResourceToJSON(json: any): CouponLiteResource;
44
- export declare function CouponLiteResourceToJSONTyped(value?: CouponLiteResource | null, ignoreDiscriminator?: boolean): any;
@@ -1,57 +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.instanceOfCouponLiteResource = instanceOfCouponLiteResource;
17
- exports.CouponLiteResourceFromJSON = CouponLiteResourceFromJSON;
18
- exports.CouponLiteResourceFromJSONTyped = CouponLiteResourceFromJSONTyped;
19
- exports.CouponLiteResourceToJSON = CouponLiteResourceToJSON;
20
- exports.CouponLiteResourceToJSONTyped = CouponLiteResourceToJSONTyped;
21
- /**
22
- * Check if a given object implements the CouponLiteResource interface.
23
- */
24
- function instanceOfCouponLiteResource(value) {
25
- if (!('name' in value) || value['name'] === undefined)
26
- return false;
27
- if (!('code' in value) || value['code'] === undefined)
28
- return false;
29
- return true;
30
- }
31
- function CouponLiteResourceFromJSON(json) {
32
- return CouponLiteResourceFromJSONTyped(json, false);
33
- }
34
- function CouponLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
35
- if (json == null) {
36
- return json;
37
- }
38
- return {
39
- 'id': json['id'] == null ? undefined : json['id'],
40
- 'name': json['name'],
41
- 'code': json['code'],
42
- };
43
- }
44
- function CouponLiteResourceToJSON(json) {
45
- return CouponLiteResourceToJSONTyped(json, false);
46
- }
47
- function CouponLiteResourceToJSONTyped(value, ignoreDiscriminator) {
48
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
49
- if (value == null) {
50
- return value;
51
- }
52
- return {
53
- 'id': value['id'],
54
- 'name': value['name'],
55
- 'code': value['code'],
56
- };
57
- }
@@ -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 { CouponLiteResource } from './CouponLiteResource';
13
- /**
14
- *
15
- * @export
16
- * @interface CouponLiteResourceArrayResponse
17
- */
18
- export interface CouponLiteResourceArrayResponse {
19
- /**
20
- *
21
- * @type {Array<CouponLiteResource>}
22
- * @memberof CouponLiteResourceArrayResponse
23
- */
24
- data?: Array<CouponLiteResource>;
25
- }
26
- /**
27
- * Check if a given object implements the CouponLiteResourceArrayResponse interface.
28
- */
29
- export declare function instanceOfCouponLiteResourceArrayResponse(value: object): value is CouponLiteResourceArrayResponse;
30
- export declare function CouponLiteResourceArrayResponseFromJSON(json: any): CouponLiteResourceArrayResponse;
31
- export declare function CouponLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CouponLiteResourceArrayResponse;
32
- export declare function CouponLiteResourceArrayResponseToJSON(json: any): CouponLiteResourceArrayResponse;
33
- export declare function CouponLiteResourceArrayResponseToJSONTyped(value?: CouponLiteResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
@@ -1,50 +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.instanceOfCouponLiteResourceArrayResponse = instanceOfCouponLiteResourceArrayResponse;
17
- exports.CouponLiteResourceArrayResponseFromJSON = CouponLiteResourceArrayResponseFromJSON;
18
- exports.CouponLiteResourceArrayResponseFromJSONTyped = CouponLiteResourceArrayResponseFromJSONTyped;
19
- exports.CouponLiteResourceArrayResponseToJSON = CouponLiteResourceArrayResponseToJSON;
20
- exports.CouponLiteResourceArrayResponseToJSONTyped = CouponLiteResourceArrayResponseToJSONTyped;
21
- var CouponLiteResource_1 = require("./CouponLiteResource");
22
- /**
23
- * Check if a given object implements the CouponLiteResourceArrayResponse interface.
24
- */
25
- function instanceOfCouponLiteResourceArrayResponse(value) {
26
- return true;
27
- }
28
- function CouponLiteResourceArrayResponseFromJSON(json) {
29
- return CouponLiteResourceArrayResponseFromJSONTyped(json, false);
30
- }
31
- function CouponLiteResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
- if (json == null) {
33
- return json;
34
- }
35
- return {
36
- 'data': json['data'] == null ? undefined : (json['data'].map(CouponLiteResource_1.CouponLiteResourceFromJSON)),
37
- };
38
- }
39
- function CouponLiteResourceArrayResponseToJSON(json) {
40
- return CouponLiteResourceArrayResponseToJSONTyped(json, false);
41
- }
42
- function CouponLiteResourceArrayResponseToJSONTyped(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(CouponLiteResource_1.CouponLiteResourceToJSON)),
49
- };
50
- }
@@ -1,165 +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 { SiteLiteResource } from './SiteLiteResource';
13
- /**
14
- *
15
- * @export
16
- * @interface CouponResource
17
- */
18
- export interface CouponResource {
19
- /**
20
- *
21
- * @type {number}
22
- * @memberof CouponResource
23
- */
24
- id?: number | null;
25
- /**
26
- *
27
- * @type {number}
28
- * @memberof CouponResource
29
- */
30
- siteId: number;
31
- /**
32
- *
33
- * @type {string}
34
- * @memberof CouponResource
35
- */
36
- name: string;
37
- /**
38
- *
39
- * @type {string}
40
- * @memberof CouponResource
41
- */
42
- code: string;
43
- /**
44
- *
45
- * @type {object}
46
- * @memberof CouponResource
47
- */
48
- type: object;
49
- /**
50
- *
51
- * @type {object}
52
- * @memberof CouponResource
53
- */
54
- discountType: object;
55
- /**
56
- *
57
- * @type {number}
58
- * @memberof CouponResource
59
- */
60
- discountAmount: number;
61
- /**
62
- *
63
- * @type {number}
64
- * @memberof CouponResource
65
- */
66
- minAmount: number;
67
- /**
68
- *
69
- * @type {number}
70
- * @memberof CouponResource
71
- */
72
- minProducts: number;
73
- /**
74
- *
75
- * @type {number}
76
- * @memberof CouponResource
77
- */
78
- totalUseLimit: number;
79
- /**
80
- *
81
- * @type {number}
82
- * @memberof CouponResource
83
- */
84
- customerUseLimit: number;
85
- /**
86
- *
87
- * @type {boolean}
88
- * @memberof CouponResource
89
- */
90
- isAbandonedCart: boolean;
91
- /**
92
- *
93
- * @type {boolean}
94
- * @memberof CouponResource
95
- */
96
- isForAllProducts: boolean;
97
- /**
98
- *
99
- * @type {boolean}
100
- * @memberof CouponResource
101
- */
102
- isForAllCustomers: boolean;
103
- /**
104
- *
105
- * @type {Date}
106
- * @memberof CouponResource
107
- */
108
- startDate?: Date | null;
109
- /**
110
- *
111
- * @type {Date}
112
- * @memberof CouponResource
113
- */
114
- endDate?: Date | null;
115
- /**
116
- *
117
- * @type {SiteLiteResource}
118
- * @memberof CouponResource
119
- */
120
- site: SiteLiteResource | null;
121
- /**
122
- *
123
- * @type {object}
124
- * @memberof CouponResource
125
- */
126
- productChildren: object;
127
- /**
128
- *
129
- * @type {object}
130
- * @memberof CouponResource
131
- */
132
- categories: object;
133
- /**
134
- *
135
- * @type {object}
136
- * @memberof CouponResource
137
- */
138
- suppliers: object;
139
- /**
140
- *
141
- * @type {object}
142
- * @memberof CouponResource
143
- */
144
- customers: object;
145
- /**
146
- *
147
- * @type {number}
148
- * @memberof CouponResource
149
- */
150
- ordersCount: number;
151
- /**
152
- *
153
- * @type {number}
154
- * @memberof CouponResource
155
- */
156
- cartsCount: number;
157
- }
158
- /**
159
- * Check if a given object implements the CouponResource interface.
160
- */
161
- export declare function instanceOfCouponResource(value: object): value is CouponResource;
162
- export declare function CouponResourceFromJSON(json: any): CouponResource;
163
- export declare function CouponResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CouponResource;
164
- export declare function CouponResourceToJSON(json: any): CouponResource;
165
- export declare function CouponResourceToJSONTyped(value?: CouponResource | null, ignoreDiscriminator?: boolean): any;
@@ -1,134 +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.instanceOfCouponResource = instanceOfCouponResource;
17
- exports.CouponResourceFromJSON = CouponResourceFromJSON;
18
- exports.CouponResourceFromJSONTyped = CouponResourceFromJSONTyped;
19
- exports.CouponResourceToJSON = CouponResourceToJSON;
20
- exports.CouponResourceToJSONTyped = CouponResourceToJSONTyped;
21
- var SiteLiteResource_1 = require("./SiteLiteResource");
22
- /**
23
- * Check if a given object implements the CouponResource interface.
24
- */
25
- function instanceOfCouponResource(value) {
26
- if (!('siteId' in value) || value['siteId'] === undefined)
27
- return false;
28
- if (!('name' in value) || value['name'] === undefined)
29
- return false;
30
- if (!('code' in value) || value['code'] === undefined)
31
- return false;
32
- if (!('type' in value) || value['type'] === undefined)
33
- return false;
34
- if (!('discountType' in value) || value['discountType'] === undefined)
35
- return false;
36
- if (!('discountAmount' in value) || value['discountAmount'] === undefined)
37
- return false;
38
- if (!('minAmount' in value) || value['minAmount'] === undefined)
39
- return false;
40
- if (!('minProducts' in value) || value['minProducts'] === undefined)
41
- return false;
42
- if (!('totalUseLimit' in value) || value['totalUseLimit'] === undefined)
43
- return false;
44
- if (!('customerUseLimit' in value) || value['customerUseLimit'] === undefined)
45
- return false;
46
- if (!('isAbandonedCart' in value) || value['isAbandonedCart'] === undefined)
47
- return false;
48
- if (!('isForAllProducts' in value) || value['isForAllProducts'] === undefined)
49
- return false;
50
- if (!('isForAllCustomers' in value) || value['isForAllCustomers'] === undefined)
51
- return false;
52
- if (!('site' in value) || value['site'] === undefined)
53
- return false;
54
- if (!('productChildren' in value) || value['productChildren'] === undefined)
55
- return false;
56
- if (!('categories' in value) || value['categories'] === undefined)
57
- return false;
58
- if (!('suppliers' in value) || value['suppliers'] === undefined)
59
- return false;
60
- if (!('customers' in value) || value['customers'] === undefined)
61
- return false;
62
- if (!('ordersCount' in value) || value['ordersCount'] === undefined)
63
- return false;
64
- if (!('cartsCount' in value) || value['cartsCount'] === undefined)
65
- return false;
66
- return true;
67
- }
68
- function CouponResourceFromJSON(json) {
69
- return CouponResourceFromJSONTyped(json, false);
70
- }
71
- function CouponResourceFromJSONTyped(json, ignoreDiscriminator) {
72
- if (json == null) {
73
- return json;
74
- }
75
- return {
76
- 'id': json['id'] == null ? undefined : json['id'],
77
- 'siteId': json['siteId'],
78
- 'name': json['name'],
79
- 'code': json['code'],
80
- 'type': json['type'],
81
- 'discountType': json['discountType'],
82
- 'discountAmount': json['discountAmount'],
83
- 'minAmount': json['minAmount'],
84
- 'minProducts': json['minProducts'],
85
- 'totalUseLimit': json['totalUseLimit'],
86
- 'customerUseLimit': json['customerUseLimit'],
87
- 'isAbandonedCart': json['isAbandonedCart'],
88
- 'isForAllProducts': json['isForAllProducts'],
89
- 'isForAllCustomers': json['isForAllCustomers'],
90
- 'startDate': json['startDate'] == null ? undefined : (new Date(json['startDate'])),
91
- 'endDate': json['endDate'] == null ? undefined : (new Date(json['endDate'])),
92
- 'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
93
- 'productChildren': json['productChildren'],
94
- 'categories': json['categories'],
95
- 'suppliers': json['suppliers'],
96
- 'customers': json['customers'],
97
- 'ordersCount': json['ordersCount'],
98
- 'cartsCount': json['cartsCount'],
99
- };
100
- }
101
- function CouponResourceToJSON(json) {
102
- return CouponResourceToJSONTyped(json, false);
103
- }
104
- function CouponResourceToJSONTyped(value, ignoreDiscriminator) {
105
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
106
- if (value == null) {
107
- return value;
108
- }
109
- return {
110
- 'id': value['id'],
111
- 'siteId': value['siteId'],
112
- 'name': value['name'],
113
- 'code': value['code'],
114
- 'type': value['type'],
115
- 'discountType': value['discountType'],
116
- 'discountAmount': value['discountAmount'],
117
- 'minAmount': value['minAmount'],
118
- 'minProducts': value['minProducts'],
119
- 'totalUseLimit': value['totalUseLimit'],
120
- 'customerUseLimit': value['customerUseLimit'],
121
- 'isAbandonedCart': value['isAbandonedCart'],
122
- 'isForAllProducts': value['isForAllProducts'],
123
- 'isForAllCustomers': value['isForAllCustomers'],
124
- 'startDate': value['startDate'] == null ? value['startDate'] : value['startDate'].toISOString(),
125
- 'endDate': value['endDate'] == null ? value['endDate'] : value['endDate'].toISOString(),
126
- 'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
127
- 'productChildren': value['productChildren'],
128
- 'categories': value['categories'],
129
- 'suppliers': value['suppliers'],
130
- 'customers': value['customers'],
131
- 'ordersCount': value['ordersCount'],
132
- 'cartsCount': value['cartsCount'],
133
- };
134
- }
@@ -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 { CouponResource } from './CouponResource';
13
- /**
14
- *
15
- * @export
16
- * @interface CouponResourceArrayResponse
17
- */
18
- export interface CouponResourceArrayResponse {
19
- /**
20
- *
21
- * @type {Array<CouponResource>}
22
- * @memberof CouponResourceArrayResponse
23
- */
24
- data?: Array<CouponResource>;
25
- }
26
- /**
27
- * Check if a given object implements the CouponResourceArrayResponse interface.
28
- */
29
- export declare function instanceOfCouponResourceArrayResponse(value: object): value is CouponResourceArrayResponse;
30
- export declare function CouponResourceArrayResponseFromJSON(json: any): CouponResourceArrayResponse;
31
- export declare function CouponResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CouponResourceArrayResponse;
32
- export declare function CouponResourceArrayResponseToJSON(json: any): CouponResourceArrayResponse;
33
- export declare function CouponResourceArrayResponseToJSONTyped(value?: CouponResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
@@ -1,50 +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.instanceOfCouponResourceArrayResponse = instanceOfCouponResourceArrayResponse;
17
- exports.CouponResourceArrayResponseFromJSON = CouponResourceArrayResponseFromJSON;
18
- exports.CouponResourceArrayResponseFromJSONTyped = CouponResourceArrayResponseFromJSONTyped;
19
- exports.CouponResourceArrayResponseToJSON = CouponResourceArrayResponseToJSON;
20
- exports.CouponResourceArrayResponseToJSONTyped = CouponResourceArrayResponseToJSONTyped;
21
- var CouponResource_1 = require("./CouponResource");
22
- /**
23
- * Check if a given object implements the CouponResourceArrayResponse interface.
24
- */
25
- function instanceOfCouponResourceArrayResponse(value) {
26
- return true;
27
- }
28
- function CouponResourceArrayResponseFromJSON(json) {
29
- return CouponResourceArrayResponseFromJSONTyped(json, false);
30
- }
31
- function CouponResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
- if (json == null) {
33
- return json;
34
- }
35
- return {
36
- 'data': json['data'] == null ? undefined : (json['data'].map(CouponResource_1.CouponResourceFromJSON)),
37
- };
38
- }
39
- function CouponResourceArrayResponseToJSON(json) {
40
- return CouponResourceArrayResponseToJSONTyped(json, false);
41
- }
42
- function CouponResourceArrayResponseToJSONTyped(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(CouponResource_1.CouponResourceToJSON)),
49
- };
50
- }
@@ -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 CouponType: {
17
- readonly Subtotal: "subtotal";
18
- readonly Product: "product";
19
- readonly Shipping: "shipping";
20
- };
21
- export type CouponType = typeof CouponType[keyof typeof CouponType];
22
- export declare function instanceOfCouponType(value: any): boolean;
23
- export declare function CouponTypeFromJSON(json: any): CouponType;
24
- export declare function CouponTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): CouponType;
25
- export declare function CouponTypeToJSON(value?: CouponType | null): any;
26
- export declare function CouponTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): CouponType;