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