@digital8/lighting-illusions-ts-sdk 0.0.2525 → 0.0.2526

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 (144) hide show
  1. package/.openapi-generator/FILES +10 -15
  2. package/README.md +2 -2
  3. package/dist/apis/AuspostApi.d.ts +29 -0
  4. package/dist/apis/AuspostApi.js +125 -0
  5. package/dist/apis/CartsApi.d.ts +11 -0
  6. package/dist/apis/CartsApi.js +46 -0
  7. package/dist/apis/OrdersApi.d.ts +11 -0
  8. package/dist/apis/OrdersApi.js +46 -0
  9. package/dist/apis/index.d.ts +1 -1
  10. package/dist/apis/index.js +1 -1
  11. package/dist/models/AddressFrontendResource.d.ts +1 -1
  12. package/dist/models/AddressFrontendResource.js +3 -1
  13. package/dist/models/AddressResource.d.ts +2 -2
  14. package/dist/models/AddressResource.js +3 -3
  15. package/dist/models/AdminOrderResource.d.ts +6 -0
  16. package/dist/models/AdminOrderResource.js +4 -0
  17. package/dist/models/AppliedCouponResource.d.ts +0 -30
  18. package/dist/models/AppliedCouponResource.js +0 -20
  19. package/dist/models/CartResource.d.ts +6 -0
  20. package/dist/models/CartResource.js +4 -0
  21. package/dist/models/CustomerOrderTab.d.ts +26 -0
  22. package/dist/models/CustomerOrderTab.js +52 -0
  23. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  24. package/dist/models/ExternalApiLogResource.js +1 -3
  25. package/dist/models/FrontendCartResource.d.ts +0 -6
  26. package/dist/models/FrontendCartResource.js +0 -4
  27. package/dist/models/FrontendOrderFulfillmentResource.d.ts +62 -0
  28. package/dist/models/FrontendOrderFulfillmentResource.js +71 -0
  29. package/dist/models/FrontendOrderFulfillmentResourceArrayResponse.d.ts +33 -0
  30. package/dist/models/FrontendOrderFulfillmentResourceArrayResponse.js +50 -0
  31. package/dist/models/FrontendOrderListResource.d.ts +70 -0
  32. package/dist/models/FrontendOrderListResource.js +77 -0
  33. package/dist/models/FrontendOrderListResourceArrayResponse.d.ts +33 -0
  34. package/dist/models/FrontendOrderListResourceArrayResponse.js +50 -0
  35. package/dist/models/FrontendOrderResource.d.ts +13 -0
  36. package/dist/models/FrontendOrderResource.js +9 -0
  37. package/dist/models/OrderFulfillmentResource.d.ts +2 -2
  38. package/dist/models/OrderFulfillmentResource.js +2 -6
  39. package/dist/models/PaginatedFrontendOrderListResourceResponse.d.ts +40 -0
  40. package/dist/models/PaginatedFrontendOrderListResourceResponse.js +57 -0
  41. package/dist/models/PaymentTotalsResource.d.ts +6 -0
  42. package/dist/models/PaymentTotalsResource.js +4 -0
  43. package/dist/models/ProductCategoryLiteResource.d.ts +0 -6
  44. package/dist/models/ProductCategoryLiteResource.js +0 -4
  45. package/dist/models/ProductChildListResource.d.ts +0 -6
  46. package/dist/models/ProductChildListResource.js +0 -4
  47. package/dist/models/SearchCartsRequest.d.ts +0 -6
  48. package/dist/models/SearchCartsRequest.js +0 -2
  49. package/dist/models/SearchOrdersRequest.d.ts +0 -6
  50. package/dist/models/SearchOrdersRequest.js +0 -2
  51. package/dist/models/StoreFrontendResource.d.ts +2 -2
  52. package/dist/models/StoreFrontendResource.js +2 -6
  53. package/dist/models/StoreListResource.d.ts +2 -2
  54. package/dist/models/StoreListResource.js +2 -6
  55. package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
  56. package/dist/models/StoreSpecialDateFrontendResource.js +1 -3
  57. package/dist/models/StoreSpecialDateResource.d.ts +2 -2
  58. package/dist/models/StoreSpecialDateResource.js +3 -1
  59. package/dist/models/SuburbValidationResource.d.ts +32 -0
  60. package/dist/models/SuburbValidationResource.js +51 -0
  61. package/dist/models/SuburbValidationResourceArrayResponse.d.ts +33 -0
  62. package/dist/models/SuburbValidationResourceArrayResponse.js +50 -0
  63. package/dist/models/ValidateSuburbRequest.d.ts +50 -0
  64. package/dist/models/ValidateSuburbRequest.js +63 -0
  65. package/dist/models/index.d.ts +9 -14
  66. package/dist/models/index.js +9 -14
  67. package/package.json +1 -1
  68. package/src/apis/AuspostApi.ts +69 -0
  69. package/src/apis/CartsApi.ts +41 -0
  70. package/src/apis/OrdersApi.ts +41 -0
  71. package/src/apis/index.ts +1 -1
  72. package/src/models/AddressFrontendResource.ts +3 -2
  73. package/src/models/AddressResource.ts +5 -5
  74. package/src/models/AdminOrderResource.ts +9 -0
  75. package/src/models/AppliedCouponResource.ts +0 -45
  76. package/src/models/CartResource.ts +9 -0
  77. package/src/models/CustomerOrderTab.ts +54 -0
  78. package/src/models/ExternalApiLogResource.ts +2 -3
  79. package/src/models/FrontendCartResource.ts +0 -9
  80. package/src/models/FrontendOrderFulfillmentResource.ts +111 -0
  81. package/src/models/FrontendOrderFulfillmentResourceArrayResponse.ts +73 -0
  82. package/src/models/FrontendOrderListResource.ts +135 -0
  83. package/src/models/FrontendOrderListResourceArrayResponse.ts +73 -0
  84. package/src/models/FrontendOrderResource.ts +25 -0
  85. package/src/models/OrderFulfillmentResource.ts +4 -6
  86. package/src/models/PaginatedFrontendOrderListResourceResponse.ts +90 -0
  87. package/src/models/PaymentTotalsResource.ts +9 -0
  88. package/src/models/ProductCategoryLiteResource.ts +0 -9
  89. package/src/models/ProductChildListResource.ts +0 -9
  90. package/src/models/SearchCartsRequest.ts +0 -8
  91. package/src/models/SearchOrdersRequest.ts +0 -8
  92. package/src/models/StoreFrontendResource.ts +4 -6
  93. package/src/models/StoreListResource.ts +4 -6
  94. package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
  95. package/src/models/StoreSpecialDateResource.ts +4 -3
  96. package/src/models/SuburbValidationResource.ts +66 -0
  97. package/src/models/SuburbValidationResourceArrayResponse.ts +73 -0
  98. package/src/models/ValidateSuburbRequest.ts +93 -0
  99. package/src/models/index.ts +9 -14
  100. package/dist/apis/CouponsApi.d.ts +0 -85
  101. package/dist/apis/CouponsApi.js +0 -355
  102. package/dist/models/CouponListResource.d.ts +0 -99
  103. package/dist/models/CouponListResource.js +0 -91
  104. package/dist/models/CouponListResourceArrayResponse.d.ts +0 -33
  105. package/dist/models/CouponListResourceArrayResponse.js +0 -50
  106. package/dist/models/CouponLiteResource.d.ts +0 -44
  107. package/dist/models/CouponLiteResource.js +0 -57
  108. package/dist/models/CouponLiteResourceArrayResponse.d.ts +0 -33
  109. package/dist/models/CouponLiteResourceArrayResponse.js +0 -50
  110. package/dist/models/CouponResource.d.ts +0 -163
  111. package/dist/models/CouponResource.js +0 -135
  112. package/dist/models/CouponResourceArrayResponse.d.ts +0 -33
  113. package/dist/models/CouponResourceArrayResponse.js +0 -50
  114. package/dist/models/CouponType.d.ts +0 -26
  115. package/dist/models/CouponType.js +0 -52
  116. package/dist/models/CreateCouponRequest.d.ts +0 -126
  117. package/dist/models/CreateCouponRequest.js +0 -107
  118. package/dist/models/CreateCouponRequestCouponablesInner.d.ts +0 -48
  119. package/dist/models/CreateCouponRequestCouponablesInner.js +0 -61
  120. package/dist/models/PaginatedCouponListResourceResponse.d.ts +0 -40
  121. package/dist/models/PaginatedCouponListResourceResponse.js +0 -57
  122. package/dist/models/PaginatedCouponResourceResponse.d.ts +0 -40
  123. package/dist/models/PaginatedCouponResourceResponse.js +0 -57
  124. package/dist/models/SearchAllCouponsRequest.d.ts +0 -101
  125. package/dist/models/SearchAllCouponsRequest.js +0 -85
  126. package/dist/models/SearchCouponsRequest.d.ts +0 -137
  127. package/dist/models/SearchCouponsRequest.js +0 -97
  128. package/dist/models/UpdateCouponRequest.d.ts +0 -120
  129. package/dist/models/UpdateCouponRequest.js +0 -103
  130. package/src/apis/CouponsApi.ts +0 -286
  131. package/src/models/CouponListResource.ts +0 -170
  132. package/src/models/CouponListResourceArrayResponse.ts +0 -73
  133. package/src/models/CouponLiteResource.ts +0 -83
  134. package/src/models/CouponLiteResourceArrayResponse.ts +0 -73
  135. package/src/models/CouponResource.ts +0 -288
  136. package/src/models/CouponResourceArrayResponse.ts +0 -73
  137. package/src/models/CouponType.ts +0 -54
  138. package/src/models/CreateCouponRequest.ts +0 -207
  139. package/src/models/CreateCouponRequestCouponablesInner.ts +0 -86
  140. package/src/models/PaginatedCouponListResourceResponse.ts +0 -90
  141. package/src/models/PaginatedCouponResourceResponse.ts +0 -90
  142. package/src/models/SearchAllCouponsRequest.ts +0 -154
  143. package/src/models/SearchCouponsRequest.ts +0 -202
  144. package/src/models/UpdateCouponRequest.ts +0 -198
@@ -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.instanceOfPaginatedCouponListResourceResponse = instanceOfPaginatedCouponListResourceResponse;
17
- exports.PaginatedCouponListResourceResponseFromJSON = PaginatedCouponListResourceResponseFromJSON;
18
- exports.PaginatedCouponListResourceResponseFromJSONTyped = PaginatedCouponListResourceResponseFromJSONTyped;
19
- exports.PaginatedCouponListResourceResponseToJSON = PaginatedCouponListResourceResponseToJSON;
20
- exports.PaginatedCouponListResourceResponseToJSONTyped = PaginatedCouponListResourceResponseToJSONTyped;
21
- var PagingMetadata_1 = require("./PagingMetadata");
22
- var CouponListResource_1 = require("./CouponListResource");
23
- /**
24
- * Check if a given object implements the PaginatedCouponListResourceResponse interface.
25
- */
26
- function instanceOfPaginatedCouponListResourceResponse(value) {
27
- if (!('data' in value) || value['data'] === undefined)
28
- return false;
29
- if (!('meta' in value) || value['meta'] === undefined)
30
- return false;
31
- return true;
32
- }
33
- function PaginatedCouponListResourceResponseFromJSON(json) {
34
- return PaginatedCouponListResourceResponseFromJSONTyped(json, false);
35
- }
36
- function PaginatedCouponListResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
37
- if (json == null) {
38
- return json;
39
- }
40
- return {
41
- 'data': (json['data'].map(CouponListResource_1.CouponListResourceFromJSON)),
42
- 'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
43
- };
44
- }
45
- function PaginatedCouponListResourceResponseToJSON(json) {
46
- return PaginatedCouponListResourceResponseToJSONTyped(json, false);
47
- }
48
- function PaginatedCouponListResourceResponseToJSONTyped(value, ignoreDiscriminator) {
49
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
50
- if (value == null) {
51
- return value;
52
- }
53
- return {
54
- 'data': (value['data'].map(CouponListResource_1.CouponListResourceToJSON)),
55
- 'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
56
- };
57
- }
@@ -1,40 +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 { PagingMetadata } from './PagingMetadata';
13
- import type { CouponResource } from './CouponResource';
14
- /**
15
- *
16
- * @export
17
- * @interface PaginatedCouponResourceResponse
18
- */
19
- export interface PaginatedCouponResourceResponse {
20
- /**
21
- *
22
- * @type {Array<CouponResource>}
23
- * @memberof PaginatedCouponResourceResponse
24
- */
25
- data: Array<CouponResource>;
26
- /**
27
- *
28
- * @type {PagingMetadata}
29
- * @memberof PaginatedCouponResourceResponse
30
- */
31
- meta: PagingMetadata;
32
- }
33
- /**
34
- * Check if a given object implements the PaginatedCouponResourceResponse interface.
35
- */
36
- export declare function instanceOfPaginatedCouponResourceResponse(value: object): value is PaginatedCouponResourceResponse;
37
- export declare function PaginatedCouponResourceResponseFromJSON(json: any): PaginatedCouponResourceResponse;
38
- export declare function PaginatedCouponResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedCouponResourceResponse;
39
- export declare function PaginatedCouponResourceResponseToJSON(json: any): PaginatedCouponResourceResponse;
40
- export declare function PaginatedCouponResourceResponseToJSONTyped(value?: PaginatedCouponResourceResponse | 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.instanceOfPaginatedCouponResourceResponse = instanceOfPaginatedCouponResourceResponse;
17
- exports.PaginatedCouponResourceResponseFromJSON = PaginatedCouponResourceResponseFromJSON;
18
- exports.PaginatedCouponResourceResponseFromJSONTyped = PaginatedCouponResourceResponseFromJSONTyped;
19
- exports.PaginatedCouponResourceResponseToJSON = PaginatedCouponResourceResponseToJSON;
20
- exports.PaginatedCouponResourceResponseToJSONTyped = PaginatedCouponResourceResponseToJSONTyped;
21
- var PagingMetadata_1 = require("./PagingMetadata");
22
- var CouponResource_1 = require("./CouponResource");
23
- /**
24
- * Check if a given object implements the PaginatedCouponResourceResponse interface.
25
- */
26
- function instanceOfPaginatedCouponResourceResponse(value) {
27
- if (!('data' in value) || value['data'] === undefined)
28
- return false;
29
- if (!('meta' in value) || value['meta'] === undefined)
30
- return false;
31
- return true;
32
- }
33
- function PaginatedCouponResourceResponseFromJSON(json) {
34
- return PaginatedCouponResourceResponseFromJSONTyped(json, false);
35
- }
36
- function PaginatedCouponResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
37
- if (json == null) {
38
- return json;
39
- }
40
- return {
41
- 'data': (json['data'].map(CouponResource_1.CouponResourceFromJSON)),
42
- 'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
43
- };
44
- }
45
- function PaginatedCouponResourceResponseToJSON(json) {
46
- return PaginatedCouponResourceResponseToJSONTyped(json, false);
47
- }
48
- function PaginatedCouponResourceResponseToJSONTyped(value, ignoreDiscriminator) {
49
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
50
- if (value == null) {
51
- return value;
52
- }
53
- return {
54
- 'data': (value['data'].map(CouponResource_1.CouponResourceToJSON)),
55
- 'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
56
- };
57
- }
@@ -1,101 +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 SearchAllCouponsRequest
16
- */
17
- export interface SearchAllCouponsRequest {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof SearchAllCouponsRequest
22
- */
23
- search?: string | null;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof SearchAllCouponsRequest
28
- */
29
- sortBy?: SearchAllCouponsRequestSortByEnum;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof SearchAllCouponsRequest
34
- */
35
- sortDirection?: SearchAllCouponsRequestSortDirectionEnum;
36
- /**
37
- *
38
- * @type {number}
39
- * @memberof SearchAllCouponsRequest
40
- */
41
- relatedId?: number;
42
- /**
43
- *
44
- * @type {string}
45
- * @memberof SearchAllCouponsRequest
46
- */
47
- relatedType?: string;
48
- /**
49
- *
50
- * @type {boolean}
51
- * @memberof SearchAllCouponsRequest
52
- */
53
- includesRelations?: boolean;
54
- /**
55
- *
56
- * @type {Array<string>}
57
- * @memberof SearchAllCouponsRequest
58
- */
59
- type?: Array<string>;
60
- /**
61
- *
62
- * @type {Array<string>}
63
- * @memberof SearchAllCouponsRequest
64
- */
65
- siteId?: Array<string>;
66
- /**
67
- *
68
- * @type {Array<string>}
69
- * @memberof SearchAllCouponsRequest
70
- */
71
- isAbandonedCart?: Array<string>;
72
- }
73
- /**
74
- * @export
75
- */
76
- export declare const SearchAllCouponsRequestSortByEnum: {
77
- readonly Id: "id";
78
- readonly Name: "name";
79
- readonly Code: "code";
80
- readonly Type: "type";
81
- readonly StartDate: "start_date";
82
- readonly EndDate: "end_date";
83
- readonly CreatedAt: "created_at";
84
- };
85
- export type SearchAllCouponsRequestSortByEnum = typeof SearchAllCouponsRequestSortByEnum[keyof typeof SearchAllCouponsRequestSortByEnum];
86
- /**
87
- * @export
88
- */
89
- export declare const SearchAllCouponsRequestSortDirectionEnum: {
90
- readonly Asc: "asc";
91
- readonly Desc: "desc";
92
- };
93
- export type SearchAllCouponsRequestSortDirectionEnum = typeof SearchAllCouponsRequestSortDirectionEnum[keyof typeof SearchAllCouponsRequestSortDirectionEnum];
94
- /**
95
- * Check if a given object implements the SearchAllCouponsRequest interface.
96
- */
97
- export declare function instanceOfSearchAllCouponsRequest(value: object): value is SearchAllCouponsRequest;
98
- export declare function SearchAllCouponsRequestFromJSON(json: any): SearchAllCouponsRequest;
99
- export declare function SearchAllCouponsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchAllCouponsRequest;
100
- export declare function SearchAllCouponsRequestToJSON(json: any): SearchAllCouponsRequest;
101
- export declare function SearchAllCouponsRequestToJSONTyped(value?: SearchAllCouponsRequest | null, ignoreDiscriminator?: boolean): any;
@@ -1,85 +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.SearchAllCouponsRequestSortDirectionEnum = exports.SearchAllCouponsRequestSortByEnum = void 0;
17
- exports.instanceOfSearchAllCouponsRequest = instanceOfSearchAllCouponsRequest;
18
- exports.SearchAllCouponsRequestFromJSON = SearchAllCouponsRequestFromJSON;
19
- exports.SearchAllCouponsRequestFromJSONTyped = SearchAllCouponsRequestFromJSONTyped;
20
- exports.SearchAllCouponsRequestToJSON = SearchAllCouponsRequestToJSON;
21
- exports.SearchAllCouponsRequestToJSONTyped = SearchAllCouponsRequestToJSONTyped;
22
- /**
23
- * @export
24
- */
25
- exports.SearchAllCouponsRequestSortByEnum = {
26
- Id: 'id',
27
- Name: 'name',
28
- Code: 'code',
29
- Type: 'type',
30
- StartDate: 'start_date',
31
- EndDate: 'end_date',
32
- CreatedAt: 'created_at'
33
- };
34
- /**
35
- * @export
36
- */
37
- exports.SearchAllCouponsRequestSortDirectionEnum = {
38
- Asc: 'asc',
39
- Desc: 'desc'
40
- };
41
- /**
42
- * Check if a given object implements the SearchAllCouponsRequest interface.
43
- */
44
- function instanceOfSearchAllCouponsRequest(value) {
45
- return true;
46
- }
47
- function SearchAllCouponsRequestFromJSON(json) {
48
- return SearchAllCouponsRequestFromJSONTyped(json, false);
49
- }
50
- function SearchAllCouponsRequestFromJSONTyped(json, ignoreDiscriminator) {
51
- if (json == null) {
52
- return json;
53
- }
54
- return {
55
- 'search': json['search'] == null ? undefined : json['search'],
56
- 'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
57
- 'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
58
- 'relatedId': json['related_id'] == null ? undefined : json['related_id'],
59
- 'relatedType': json['related_type'] == null ? undefined : json['related_type'],
60
- 'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
61
- 'type': json['type'] == null ? undefined : json['type'],
62
- 'siteId': json['site_id'] == null ? undefined : json['site_id'],
63
- 'isAbandonedCart': json['is_abandoned_cart'] == null ? undefined : json['is_abandoned_cart'],
64
- };
65
- }
66
- function SearchAllCouponsRequestToJSON(json) {
67
- return SearchAllCouponsRequestToJSONTyped(json, false);
68
- }
69
- function SearchAllCouponsRequestToJSONTyped(value, ignoreDiscriminator) {
70
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
71
- if (value == null) {
72
- return value;
73
- }
74
- return {
75
- 'search': value['search'],
76
- 'sortBy': value['sortBy'],
77
- 'sortDirection': value['sortDirection'],
78
- 'related_id': value['relatedId'],
79
- 'related_type': value['relatedType'],
80
- 'includes_relations': value['includesRelations'],
81
- 'type': value['type'],
82
- 'site_id': value['siteId'],
83
- 'is_abandoned_cart': value['isAbandonedCart'],
84
- };
85
- }
@@ -1,137 +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 SearchCouponsRequest
16
- */
17
- export interface SearchCouponsRequest {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof SearchCouponsRequest
22
- */
23
- search?: string | null;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof SearchCouponsRequest
28
- */
29
- sortBy?: SearchCouponsRequestSortByEnum;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof SearchCouponsRequest
34
- */
35
- sortDirection?: SearchCouponsRequestSortDirectionEnum;
36
- /**
37
- *
38
- * @type {number}
39
- * @memberof SearchCouponsRequest
40
- */
41
- perPage?: number;
42
- /**
43
- *
44
- * @type {number}
45
- * @memberof SearchCouponsRequest
46
- */
47
- page?: number;
48
- /**
49
- *
50
- * @type {Array<string>}
51
- * @memberof SearchCouponsRequest
52
- */
53
- type?: Array<string>;
54
- /**
55
- *
56
- * @type {Array<string>}
57
- * @memberof SearchCouponsRequest
58
- */
59
- siteId?: Array<string>;
60
- /**
61
- *
62
- * @type {Array<string>}
63
- * @memberof SearchCouponsRequest
64
- */
65
- isAbandonedCart?: Array<string>;
66
- /**
67
- *
68
- * @type {Date}
69
- * @memberof SearchCouponsRequest
70
- */
71
- beforeStartDate?: Date;
72
- /**
73
- *
74
- * @type {Date}
75
- * @memberof SearchCouponsRequest
76
- */
77
- afterStartDate?: Date;
78
- /**
79
- *
80
- * @type {Date}
81
- * @memberof SearchCouponsRequest
82
- */
83
- beforeEndDate?: Date;
84
- /**
85
- *
86
- * @type {Date}
87
- * @memberof SearchCouponsRequest
88
- */
89
- afterEndDate?: Date;
90
- /**
91
- *
92
- * @type {number}
93
- * @memberof SearchCouponsRequest
94
- */
95
- relatedId?: number;
96
- /**
97
- *
98
- * @type {string}
99
- * @memberof SearchCouponsRequest
100
- */
101
- relatedType?: string;
102
- /**
103
- *
104
- * @type {boolean}
105
- * @memberof SearchCouponsRequest
106
- */
107
- includesRelations?: boolean;
108
- }
109
- /**
110
- * @export
111
- */
112
- export declare const SearchCouponsRequestSortByEnum: {
113
- readonly Id: "id";
114
- readonly Name: "name";
115
- readonly Code: "code";
116
- readonly Type: "type";
117
- readonly StartDate: "start_date";
118
- readonly EndDate: "end_date";
119
- readonly CreatedAt: "created_at";
120
- };
121
- export type SearchCouponsRequestSortByEnum = typeof SearchCouponsRequestSortByEnum[keyof typeof SearchCouponsRequestSortByEnum];
122
- /**
123
- * @export
124
- */
125
- export declare const SearchCouponsRequestSortDirectionEnum: {
126
- readonly Asc: "asc";
127
- readonly Desc: "desc";
128
- };
129
- export type SearchCouponsRequestSortDirectionEnum = typeof SearchCouponsRequestSortDirectionEnum[keyof typeof SearchCouponsRequestSortDirectionEnum];
130
- /**
131
- * Check if a given object implements the SearchCouponsRequest interface.
132
- */
133
- export declare function instanceOfSearchCouponsRequest(value: object): value is SearchCouponsRequest;
134
- export declare function SearchCouponsRequestFromJSON(json: any): SearchCouponsRequest;
135
- export declare function SearchCouponsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchCouponsRequest;
136
- export declare function SearchCouponsRequestToJSON(json: any): SearchCouponsRequest;
137
- export declare function SearchCouponsRequestToJSONTyped(value?: SearchCouponsRequest | null, ignoreDiscriminator?: boolean): any;
@@ -1,97 +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.SearchCouponsRequestSortDirectionEnum = exports.SearchCouponsRequestSortByEnum = void 0;
17
- exports.instanceOfSearchCouponsRequest = instanceOfSearchCouponsRequest;
18
- exports.SearchCouponsRequestFromJSON = SearchCouponsRequestFromJSON;
19
- exports.SearchCouponsRequestFromJSONTyped = SearchCouponsRequestFromJSONTyped;
20
- exports.SearchCouponsRequestToJSON = SearchCouponsRequestToJSON;
21
- exports.SearchCouponsRequestToJSONTyped = SearchCouponsRequestToJSONTyped;
22
- /**
23
- * @export
24
- */
25
- exports.SearchCouponsRequestSortByEnum = {
26
- Id: 'id',
27
- Name: 'name',
28
- Code: 'code',
29
- Type: 'type',
30
- StartDate: 'start_date',
31
- EndDate: 'end_date',
32
- CreatedAt: 'created_at'
33
- };
34
- /**
35
- * @export
36
- */
37
- exports.SearchCouponsRequestSortDirectionEnum = {
38
- Asc: 'asc',
39
- Desc: 'desc'
40
- };
41
- /**
42
- * Check if a given object implements the SearchCouponsRequest interface.
43
- */
44
- function instanceOfSearchCouponsRequest(value) {
45
- return true;
46
- }
47
- function SearchCouponsRequestFromJSON(json) {
48
- return SearchCouponsRequestFromJSONTyped(json, false);
49
- }
50
- function SearchCouponsRequestFromJSONTyped(json, ignoreDiscriminator) {
51
- if (json == null) {
52
- return json;
53
- }
54
- return {
55
- 'search': json['search'] == null ? undefined : json['search'],
56
- 'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
57
- 'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
58
- 'perPage': json['per_page'] == null ? undefined : json['per_page'],
59
- 'page': json['page'] == null ? undefined : json['page'],
60
- 'type': json['type'] == null ? undefined : json['type'],
61
- 'siteId': json['site_id'] == null ? undefined : json['site_id'],
62
- 'isAbandonedCart': json['is_abandoned_cart'] == null ? undefined : json['is_abandoned_cart'],
63
- 'beforeStartDate': json['before_start_date'] == null ? undefined : (new Date(json['before_start_date'])),
64
- 'afterStartDate': json['after_start_date'] == null ? undefined : (new Date(json['after_start_date'])),
65
- 'beforeEndDate': json['before_end_date'] == null ? undefined : (new Date(json['before_end_date'])),
66
- 'afterEndDate': json['after_end_date'] == null ? undefined : (new Date(json['after_end_date'])),
67
- 'relatedId': json['related_id'] == null ? undefined : json['related_id'],
68
- 'relatedType': json['related_type'] == null ? undefined : json['related_type'],
69
- 'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
70
- };
71
- }
72
- function SearchCouponsRequestToJSON(json) {
73
- return SearchCouponsRequestToJSONTyped(json, false);
74
- }
75
- function SearchCouponsRequestToJSONTyped(value, ignoreDiscriminator) {
76
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
77
- if (value == null) {
78
- return value;
79
- }
80
- return {
81
- 'search': value['search'],
82
- 'sortBy': value['sortBy'],
83
- 'sortDirection': value['sortDirection'],
84
- 'per_page': value['perPage'],
85
- 'page': value['page'],
86
- 'type': value['type'],
87
- 'site_id': value['siteId'],
88
- 'is_abandoned_cart': value['isAbandonedCart'],
89
- 'before_start_date': value['beforeStartDate'] == null ? undefined : ((value['beforeStartDate']).toISOString()),
90
- 'after_start_date': value['afterStartDate'] == null ? undefined : ((value['afterStartDate']).toISOString()),
91
- 'before_end_date': value['beforeEndDate'] == null ? undefined : ((value['beforeEndDate']).toISOString()),
92
- 'after_end_date': value['afterEndDate'] == null ? undefined : ((value['afterEndDate']).toISOString()),
93
- 'related_id': value['relatedId'],
94
- 'related_type': value['relatedType'],
95
- 'includes_relations': value['includesRelations'],
96
- };
97
- }
@@ -1,120 +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 { CreateCouponRequestCouponablesInner } from './CreateCouponRequestCouponablesInner';
13
- /**
14
- *
15
- * @export
16
- * @interface UpdateCouponRequest
17
- */
18
- export interface UpdateCouponRequest {
19
- /**
20
- *
21
- * @type {string}
22
- * @memberof UpdateCouponRequest
23
- */
24
- name: string;
25
- /**
26
- *
27
- * @type {string}
28
- * @memberof UpdateCouponRequest
29
- */
30
- code: string;
31
- /**
32
- *
33
- * @type {string}
34
- * @memberof UpdateCouponRequest
35
- */
36
- type: UpdateCouponRequestTypeEnum;
37
- /**
38
- *
39
- * @type {string}
40
- * @memberof UpdateCouponRequest
41
- */
42
- discountType: string;
43
- /**
44
- *
45
- * @type {number}
46
- * @memberof UpdateCouponRequest
47
- */
48
- discountAmount: number;
49
- /**
50
- *
51
- * @type {number}
52
- * @memberof UpdateCouponRequest
53
- */
54
- minAmount: number;
55
- /**
56
- *
57
- * @type {number}
58
- * @memberof UpdateCouponRequest
59
- */
60
- minProducts: number;
61
- /**
62
- *
63
- * @type {number}
64
- * @memberof UpdateCouponRequest
65
- */
66
- totalUseLimit: number;
67
- /**
68
- *
69
- * @type {number}
70
- * @memberof UpdateCouponRequest
71
- */
72
- customerUseLimit: number;
73
- /**
74
- *
75
- * @type {string}
76
- * @memberof UpdateCouponRequest
77
- */
78
- startDate?: string | null;
79
- /**
80
- *
81
- * @type {string}
82
- * @memberof UpdateCouponRequest
83
- */
84
- endDate?: string | null;
85
- /**
86
- *
87
- * @type {boolean}
88
- * @memberof UpdateCouponRequest
89
- */
90
- isForAllProducts?: boolean;
91
- /**
92
- *
93
- * @type {boolean}
94
- * @memberof UpdateCouponRequest
95
- */
96
- isForAllCustomers?: boolean;
97
- /**
98
- *
99
- * @type {Array<CreateCouponRequestCouponablesInner>}
100
- * @memberof UpdateCouponRequest
101
- */
102
- couponables?: Array<CreateCouponRequestCouponablesInner>;
103
- }
104
- /**
105
- * @export
106
- */
107
- export declare const UpdateCouponRequestTypeEnum: {
108
- readonly Subtotal: "subtotal";
109
- readonly Product: "product";
110
- readonly Shipping: "shipping";
111
- };
112
- export type UpdateCouponRequestTypeEnum = typeof UpdateCouponRequestTypeEnum[keyof typeof UpdateCouponRequestTypeEnum];
113
- /**
114
- * Check if a given object implements the UpdateCouponRequest interface.
115
- */
116
- export declare function instanceOfUpdateCouponRequest(value: object): value is UpdateCouponRequest;
117
- export declare function UpdateCouponRequestFromJSON(json: any): UpdateCouponRequest;
118
- export declare function UpdateCouponRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateCouponRequest;
119
- export declare function UpdateCouponRequestToJSON(json: any): UpdateCouponRequest;
120
- export declare function UpdateCouponRequestToJSONTyped(value?: UpdateCouponRequest | null, ignoreDiscriminator?: boolean): any;