@digital8/lighting-illusions-ts-sdk 0.0.2499 → 0.0.2501

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