@digital8/lighting-illusions-ts-sdk 0.0.2502 → 0.0.2504

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 (120) hide show
  1. package/.openapi-generator/FILES +15 -4
  2. package/README.md +2 -2
  3. package/dist/apis/CartsApi.d.ts +11 -0
  4. package/dist/apis/CartsApi.js +46 -0
  5. package/dist/apis/CouponsApi.d.ts +85 -0
  6. package/dist/apis/CouponsApi.js +355 -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 +2 -2
  12. package/dist/models/AddressFrontendResource.js +2 -6
  13. package/dist/models/AddressResource.d.ts +1 -1
  14. package/dist/models/AddressResource.js +3 -1
  15. package/dist/models/AdminOrderResource.d.ts +0 -6
  16. package/dist/models/AdminOrderResource.js +0 -4
  17. package/dist/models/AppliedCouponResource.d.ts +30 -0
  18. package/dist/models/AppliedCouponResource.js +20 -0
  19. package/dist/models/CartResource.d.ts +6 -0
  20. package/dist/models/CartResource.js +4 -0
  21. package/dist/models/CouponListResource.d.ts +99 -0
  22. package/dist/models/CouponListResource.js +91 -0
  23. package/dist/models/CouponListResourceArrayResponse.d.ts +33 -0
  24. package/dist/models/CouponListResourceArrayResponse.js +50 -0
  25. package/dist/models/CouponLiteResource.d.ts +44 -0
  26. package/dist/models/CouponLiteResource.js +57 -0
  27. package/dist/models/CouponLiteResourceArrayResponse.d.ts +33 -0
  28. package/dist/models/CouponLiteResourceArrayResponse.js +50 -0
  29. package/dist/models/CouponResource.d.ts +163 -0
  30. package/dist/models/CouponResource.js +135 -0
  31. package/dist/models/CouponResourceArrayResponse.d.ts +33 -0
  32. package/dist/models/CouponResourceArrayResponse.js +50 -0
  33. package/dist/models/CouponType.d.ts +26 -0
  34. package/dist/models/CouponType.js +52 -0
  35. package/dist/models/CreateCouponRequest.d.ts +126 -0
  36. package/dist/models/CreateCouponRequest.js +107 -0
  37. package/dist/models/CreateCouponRequestCouponablesInner.d.ts +48 -0
  38. package/dist/models/CreateCouponRequestCouponablesInner.js +61 -0
  39. package/dist/models/FrontendCartResource.d.ts +6 -0
  40. package/dist/models/FrontendCartResource.js +2 -0
  41. package/dist/models/FrontendOrderResource.d.ts +0 -6
  42. package/dist/models/FrontendOrderResource.js +0 -4
  43. package/dist/models/OrderFulfillmentResource.d.ts +1 -1
  44. package/dist/models/OrderFulfillmentResource.js +1 -3
  45. package/dist/models/PaginatedCouponListResourceResponse.d.ts +40 -0
  46. package/dist/models/PaginatedCouponListResourceResponse.js +57 -0
  47. package/dist/models/PaginatedCouponResourceResponse.d.ts +40 -0
  48. package/dist/models/PaginatedCouponResourceResponse.js +57 -0
  49. package/dist/models/PaymentTotalsResource.d.ts +0 -6
  50. package/dist/models/PaymentTotalsResource.js +0 -4
  51. package/dist/models/ProductCategoryLiteResource.d.ts +6 -0
  52. package/dist/models/ProductCategoryLiteResource.js +4 -0
  53. package/dist/models/ProductChildListResource.d.ts +6 -0
  54. package/dist/models/ProductChildListResource.js +4 -0
  55. package/dist/models/SearchAllCouponsRequest.d.ts +101 -0
  56. package/dist/models/SearchAllCouponsRequest.js +85 -0
  57. package/dist/models/SearchCartsRequest.d.ts +6 -0
  58. package/dist/models/SearchCartsRequest.js +2 -0
  59. package/dist/models/SearchCouponsRequest.d.ts +137 -0
  60. package/dist/models/SearchCouponsRequest.js +97 -0
  61. package/dist/models/SearchOrdersRequest.d.ts +6 -0
  62. package/dist/models/SearchOrdersRequest.js +2 -0
  63. package/dist/models/StoreFrontendResource.d.ts +1 -1
  64. package/dist/models/StoreFrontendResource.js +3 -1
  65. package/dist/models/StoreListResource.d.ts +2 -2
  66. package/dist/models/StoreListResource.js +2 -6
  67. package/dist/models/StoreResource.d.ts +1 -1
  68. package/dist/models/StoreResource.js +3 -1
  69. package/dist/models/UpdateCouponRequest.d.ts +120 -0
  70. package/dist/models/UpdateCouponRequest.js +103 -0
  71. package/dist/models/index.d.ts +14 -3
  72. package/dist/models/index.js +14 -3
  73. package/package.json +1 -1
  74. package/src/apis/CartsApi.ts +41 -0
  75. package/src/apis/CouponsApi.ts +286 -0
  76. package/src/apis/OrdersApi.ts +41 -0
  77. package/src/apis/index.ts +1 -1
  78. package/src/models/AddressFrontendResource.ts +4 -6
  79. package/src/models/AddressResource.ts +3 -2
  80. package/src/models/AdminOrderResource.ts +0 -9
  81. package/src/models/AppliedCouponResource.ts +45 -0
  82. package/src/models/CartResource.ts +9 -0
  83. package/src/models/CouponListResource.ts +170 -0
  84. package/src/models/CouponListResourceArrayResponse.ts +73 -0
  85. package/src/models/CouponLiteResource.ts +83 -0
  86. package/src/models/CouponLiteResourceArrayResponse.ts +73 -0
  87. package/src/models/CouponResource.ts +288 -0
  88. package/src/models/CouponResourceArrayResponse.ts +73 -0
  89. package/src/models/CouponType.ts +54 -0
  90. package/src/models/CreateCouponRequest.ts +207 -0
  91. package/src/models/CreateCouponRequestCouponablesInner.ts +86 -0
  92. package/src/models/FrontendCartResource.ts +8 -0
  93. package/src/models/FrontendOrderResource.ts +0 -9
  94. package/src/models/OrderFulfillmentResource.ts +2 -3
  95. package/src/models/PaginatedCouponListResourceResponse.ts +90 -0
  96. package/src/models/PaginatedCouponResourceResponse.ts +90 -0
  97. package/src/models/PaymentTotalsResource.ts +0 -9
  98. package/src/models/ProductCategoryLiteResource.ts +9 -0
  99. package/src/models/ProductChildListResource.ts +9 -0
  100. package/src/models/SearchAllCouponsRequest.ts +154 -0
  101. package/src/models/SearchCartsRequest.ts +8 -0
  102. package/src/models/SearchCouponsRequest.ts +202 -0
  103. package/src/models/SearchOrdersRequest.ts +8 -0
  104. package/src/models/StoreFrontendResource.ts +3 -2
  105. package/src/models/StoreListResource.ts +4 -6
  106. package/src/models/StoreResource.ts +3 -2
  107. package/src/models/UpdateCouponRequest.ts +198 -0
  108. package/src/models/index.ts +14 -3
  109. package/dist/apis/AuspostApi.d.ts +0 -29
  110. package/dist/apis/AuspostApi.js +0 -125
  111. package/dist/models/SuburbValidationResource.d.ts +0 -32
  112. package/dist/models/SuburbValidationResource.js +0 -51
  113. package/dist/models/SuburbValidationResourceArrayResponse.d.ts +0 -33
  114. package/dist/models/SuburbValidationResourceArrayResponse.js +0 -50
  115. package/dist/models/ValidateSuburbRequest.d.ts +0 -50
  116. package/dist/models/ValidateSuburbRequest.js +0 -63
  117. package/src/apis/AuspostApi.ts +0 -69
  118. package/src/models/SuburbValidationResource.ts +0 -66
  119. package/src/models/SuburbValidationResourceArrayResponse.ts +0 -73
  120. package/src/models/ValidateSuburbRequest.ts +0 -93
@@ -39,6 +39,12 @@ export interface ProductCategoryLiteResource {
39
39
  * @memberof ProductCategoryLiteResource
40
40
  */
41
41
  isAutomated: boolean;
42
+ /**
43
+ *
44
+ * @type {boolean}
45
+ * @memberof ProductCategoryLiteResource
46
+ */
47
+ isParent: boolean;
42
48
  }
43
49
  /**
44
50
  * Check if a given object implements the ProductCategoryLiteResource interface.
@@ -28,6 +28,8 @@ function instanceOfProductCategoryLiteResource(value) {
28
28
  return false;
29
29
  if (!('isAutomated' in value) || value['isAutomated'] === undefined)
30
30
  return false;
31
+ if (!('isParent' in value) || value['isParent'] === undefined)
32
+ return false;
31
33
  return true;
32
34
  }
33
35
  function ProductCategoryLiteResourceFromJSON(json) {
@@ -42,6 +44,7 @@ function ProductCategoryLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
42
44
  'name': json['name'],
43
45
  'siteId': json['siteId'],
44
46
  'isAutomated': json['isAutomated'],
47
+ 'isParent': json['isParent'],
45
48
  };
46
49
  }
47
50
  function ProductCategoryLiteResourceToJSON(json) {
@@ -57,5 +60,6 @@ function ProductCategoryLiteResourceToJSONTyped(value, ignoreDiscriminator) {
57
60
  'name': value['name'],
58
61
  'siteId': value['siteId'],
59
62
  'isAutomated': value['isAutomated'],
63
+ 'isParent': value['isParent'],
60
64
  };
61
65
  }
@@ -41,6 +41,12 @@ export interface ProductChildListResource {
41
41
  * @memberof ProductChildListResource
42
42
  */
43
43
  name: string;
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof ProductChildListResource
48
+ */
49
+ fullName: string;
44
50
  /**
45
51
  *
46
52
  * @type {string}
@@ -30,6 +30,8 @@ function instanceOfProductChildListResource(value) {
30
30
  return false;
31
31
  if (!('name' in value) || value['name'] === undefined)
32
32
  return false;
33
+ if (!('fullName' in value) || value['fullName'] === undefined)
34
+ return false;
33
35
  if (!('model' in value) || value['model'] === undefined)
34
36
  return false;
35
37
  if (!('stock' in value) || value['stock'] === undefined)
@@ -56,6 +58,7 @@ function ProductChildListResourceFromJSONTyped(json, ignoreDiscriminator) {
56
58
  'parentId': json['parentId'] == null ? undefined : json['parentId'],
57
59
  'sku': json['sku'],
58
60
  'name': json['name'],
61
+ 'fullName': json['fullName'],
59
62
  'model': json['model'],
60
63
  'stock': json['stock'],
61
64
  'isDisabled': json['isDisabled'] == null ? undefined : json['isDisabled'],
@@ -79,6 +82,7 @@ function ProductChildListResourceToJSONTyped(value, ignoreDiscriminator) {
79
82
  'parentId': value['parentId'],
80
83
  'sku': value['sku'],
81
84
  'name': value['name'],
85
+ 'fullName': value['fullName'],
82
86
  'model': value['model'],
83
87
  'stock': value['stock'],
84
88
  'isDisabled': value['isDisabled'],
@@ -0,0 +1,101 @@
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;
@@ -0,0 +1,85 @@
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
+ }
@@ -117,6 +117,12 @@ export interface SearchCartsRequest {
117
117
  * @memberof SearchCartsRequest
118
118
  */
119
119
  includesRelations?: boolean;
120
+ /**
121
+ *
122
+ * @type {number}
123
+ * @memberof SearchCartsRequest
124
+ */
125
+ couponId?: number | null;
120
126
  }
121
127
  /**
122
128
  * @export
@@ -66,6 +66,7 @@ function SearchCartsRequestFromJSONTyped(json, ignoreDiscriminator) {
66
66
  'relatedId': json['related_id'] == null ? undefined : json['related_id'],
67
67
  'relatedType': json['related_type'] == null ? undefined : json['related_type'],
68
68
  'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
69
+ 'couponId': json['coupon_id'] == null ? undefined : json['coupon_id'],
69
70
  };
70
71
  }
71
72
  function SearchCartsRequestToJSON(json) {
@@ -94,5 +95,6 @@ function SearchCartsRequestToJSONTyped(value, ignoreDiscriminator) {
94
95
  'related_id': value['relatedId'],
95
96
  'related_type': value['relatedType'],
96
97
  'includes_relations': value['includesRelations'],
98
+ 'coupon_id': value['couponId'],
97
99
  };
98
100
  }
@@ -0,0 +1,137 @@
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;
@@ -0,0 +1,97 @@
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
+ }
@@ -129,6 +129,12 @@ export interface SearchOrdersRequest {
129
129
  * @memberof SearchOrdersRequest
130
130
  */
131
131
  includesRelations?: boolean;
132
+ /**
133
+ *
134
+ * @type {number}
135
+ * @memberof SearchOrdersRequest
136
+ */
137
+ couponId?: number | null;
132
138
  }
133
139
  /**
134
140
  * @export
@@ -69,6 +69,7 @@ function SearchOrdersRequestFromJSONTyped(json, ignoreDiscriminator) {
69
69
  'relatedId': json['related_id'] == null ? undefined : json['related_id'],
70
70
  'relatedType': json['related_type'] == null ? undefined : json['related_type'],
71
71
  'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
72
+ 'couponId': json['coupon_id'] == null ? undefined : json['coupon_id'],
72
73
  };
73
74
  }
74
75
  function SearchOrdersRequestToJSON(json) {
@@ -99,5 +100,6 @@ function SearchOrdersRequestToJSONTyped(value, ignoreDiscriminator) {
99
100
  'related_id': value['relatedId'],
100
101
  'related_type': value['relatedType'],
101
102
  'includes_relations': value['includesRelations'],
103
+ 'coupon_id': value['couponId'],
102
104
  };
103
105
  }
@@ -74,7 +74,7 @@ export interface StoreFrontendResource {
74
74
  * @type {string}
75
75
  * @memberof StoreFrontendResource
76
76
  */
77
- tagLine?: string | null;
77
+ tagLine: string;
78
78
  /**
79
79
  *
80
80
  * @type {string}
@@ -34,6 +34,8 @@ function instanceOfStoreFrontendResource(value) {
34
34
  return false;
35
35
  if (!('longitude' in value) || value['longitude'] === undefined)
36
36
  return false;
37
+ if (!('tagLine' in value) || value['tagLine'] === undefined)
38
+ return false;
37
39
  if (!('specialDates' in value) || value['specialDates'] === undefined)
38
40
  return false;
39
41
  if (!('suppliers' in value) || value['suppliers'] === undefined)
@@ -57,7 +59,7 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
57
59
  'address': json['address'] == null ? undefined : json['address'],
58
60
  'latitude': json['latitude'],
59
61
  'longitude': json['longitude'],
60
- 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
62
+ 'tagLine': json['tagLine'],
61
63
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
62
64
  'specialDates': json['specialDates'],
63
65
  'suppliers': json['suppliers'],
@@ -57,7 +57,7 @@ export interface StoreListResource {
57
57
  * @type {string}
58
58
  * @memberof StoreListResource
59
59
  */
60
- tagLine: string;
60
+ tagLine?: string | null;
61
61
  /**
62
62
  *
63
63
  * @type {string}
@@ -69,7 +69,7 @@ export interface StoreListResource {
69
69
  * @type {string}
70
70
  * @memberof StoreListResource
71
71
  */
72
- website: string;
72
+ website?: string | null;
73
73
  /**
74
74
  *
75
75
  * @type {number}
@@ -33,12 +33,8 @@ function instanceOfStoreListResource(value) {
33
33
  return false;
34
34
  if (!('latitude' in value) || value['latitude'] === undefined)
35
35
  return false;
36
- if (!('tagLine' in value) || value['tagLine'] === undefined)
37
- return false;
38
36
  if (!('email' in value) || value['email'] === undefined)
39
37
  return false;
40
- if (!('website' in value) || value['website'] === undefined)
41
- return false;
42
38
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
43
39
  return false;
44
40
  if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined)
@@ -59,9 +55,9 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
59
55
  'phone': json['phone'],
60
56
  'longitude': json['longitude'],
61
57
  'latitude': json['latitude'],
62
- 'tagLine': json['tagLine'],
58
+ 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
63
59
  'email': json['email'],
64
- 'website': json['website'],
60
+ 'website': json['website'] == null ? undefined : json['website'],
65
61
  'netsuiteId': json['netsuiteId'],
66
62
  'displayNetsuiteId': json['displayNetsuiteId'],
67
63
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
@@ -60,7 +60,7 @@ export interface StoreResource {
60
60
  * @type {string}
61
61
  * @memberof StoreResource
62
62
  */
63
- tagLine?: string | null;
63
+ tagLine: string;
64
64
  /**
65
65
  *
66
66
  * @type {string}
@@ -36,6 +36,8 @@ function instanceOfStoreResource(value) {
36
36
  return false;
37
37
  if (!('latitude' in value) || value['latitude'] === undefined)
38
38
  return false;
39
+ if (!('tagLine' in value) || value['tagLine'] === undefined)
40
+ return false;
39
41
  if (!('email' in value) || value['email'] === undefined)
40
42
  return false;
41
43
  if (!('website' in value) || value['website'] === undefined)
@@ -66,7 +68,7 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
66
68
  'phone': json['phone'],
67
69
  'longitude': json['longitude'],
68
70
  'latitude': json['latitude'],
69
- 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
71
+ 'tagLine': json['tagLine'],
70
72
  'email': json['email'],
71
73
  'website': json['website'],
72
74
  'netsuiteId': json['netsuiteId'],