@gofynd/fdk-client-javascript 0.1.35

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 (277) hide show
  1. package/.github/workflows/on_create_release.yml +23 -0
  2. package/.github/workflows/on_merge_main.yml +38 -0
  3. package/.github/workflows/on_pull_request.yml +35 -0
  4. package/.prettierrc +5 -0
  5. package/LICENSE +21 -0
  6. package/README.md +118 -0
  7. package/application.d.ts +3 -0
  8. package/application.js +6 -0
  9. package/common.d.ts +4 -0
  10. package/common.js +9 -0
  11. package/documentation/application/CART.md +7290 -0
  12. package/documentation/application/CATALOG.md +9570 -0
  13. package/documentation/application/COMMON.md +448 -0
  14. package/documentation/application/COMMUNICATION.md +463 -0
  15. package/documentation/application/CONFIGURATION.md +2902 -0
  16. package/documentation/application/CONTENT.md +3350 -0
  17. package/documentation/application/FILESTORAGE.md +491 -0
  18. package/documentation/application/LEAD.md +1891 -0
  19. package/documentation/application/LOGISTIC.md +439 -0
  20. package/documentation/application/ORDER.md +3428 -0
  21. package/documentation/application/PAYMENT.md +5035 -0
  22. package/documentation/application/POSCART.md +7889 -0
  23. package/documentation/application/README.md +21 -0
  24. package/documentation/application/REWARDS.md +714 -0
  25. package/documentation/application/SHARE.md +729 -0
  26. package/documentation/application/THEME.md +5796 -0
  27. package/documentation/application/USER.md +4326 -0
  28. package/documentation/platform/ANALYTICS.md +1150 -0
  29. package/documentation/platform/AUDITTRAIL.md +572 -0
  30. package/documentation/platform/BILLING.md +2396 -0
  31. package/documentation/platform/CART.md +5539 -0
  32. package/documentation/platform/CATALOG.md +21624 -0
  33. package/documentation/platform/COMMON.md +448 -0
  34. package/documentation/platform/COMMUNICATION.md +5714 -0
  35. package/documentation/platform/COMPANYPROFILE.md +2141 -0
  36. package/documentation/platform/CONFIGURATION.md +7335 -0
  37. package/documentation/platform/CONTENT.md +8989 -0
  38. package/documentation/platform/DISCOUNT.md +773 -0
  39. package/documentation/platform/FILESTORAGE.md +994 -0
  40. package/documentation/platform/INVENTORY.md +1775 -0
  41. package/documentation/platform/LEAD.md +4736 -0
  42. package/documentation/platform/ORDER.md +3764 -0
  43. package/documentation/platform/PARTNER.md +216 -0
  44. package/documentation/platform/PAYMENT.md +3444 -0
  45. package/documentation/platform/README.md +27 -0
  46. package/documentation/platform/REWARDS.md +871 -0
  47. package/documentation/platform/SHARE.md +602 -0
  48. package/documentation/platform/THEME.md +35725 -0
  49. package/documentation/platform/USER.md +2305 -0
  50. package/documentation/platform/WEBHOOK.md +587 -0
  51. package/documentation/public/CONFIGURATION.md +448 -0
  52. package/documentation/public/INVENTORY.md +686 -0
  53. package/documentation/public/WEBHOOK.md +348 -0
  54. package/index.d.ts +10 -0
  55. package/index.js +18 -0
  56. package/jest.config.d.ts +4 -0
  57. package/jest.config.js +6 -0
  58. package/package.json +35 -0
  59. package/platform.d.ts +3 -0
  60. package/platform.js +6 -0
  61. package/public.d.ts +3 -0
  62. package/public.js +6 -0
  63. package/sdk/application/ApplicationAPIClient.d.ts +11 -0
  64. package/sdk/application/ApplicationAPIClient.js +44 -0
  65. package/sdk/application/ApplicationClient.d.ts +40 -0
  66. package/sdk/application/ApplicationClient.js +84 -0
  67. package/sdk/application/ApplicationConfig.d.ts +19 -0
  68. package/sdk/application/ApplicationConfig.js +55 -0
  69. package/sdk/application/ApplicationModels.d.ts +826 -0
  70. package/sdk/application/ApplicationModels.js +10474 -0
  71. package/sdk/application/client/CartApplicationClient.d.ts +432 -0
  72. package/sdk/application/client/CartApplicationClient.js +1066 -0
  73. package/sdk/application/client/CatalogApplicationClient.d.ts +694 -0
  74. package/sdk/application/client/CatalogApplicationClient.js +1629 -0
  75. package/sdk/application/client/CommonApplicationClient.d.ts +38 -0
  76. package/sdk/application/client/CommonApplicationClient.js +105 -0
  77. package/sdk/application/client/CommunicationApplicationClient.d.ts +39 -0
  78. package/sdk/application/client/CommunicationApplicationClient.js +131 -0
  79. package/sdk/application/client/ConfigurationApplicationClient.d.ts +210 -0
  80. package/sdk/application/client/ConfigurationApplicationClient.js +649 -0
  81. package/sdk/application/client/ContentApplicationClient.d.ts +256 -0
  82. package/sdk/application/client/ContentApplicationClient.js +785 -0
  83. package/sdk/application/client/FileStorageApplicationClient.d.ts +88 -0
  84. package/sdk/application/client/FileStorageApplicationClient.js +214 -0
  85. package/sdk/application/client/LeadApplicationClient.d.ts +90 -0
  86. package/sdk/application/client/LeadApplicationClient.js +264 -0
  87. package/sdk/application/client/LogisticApplicationClient.d.ts +42 -0
  88. package/sdk/application/client/LogisticApplicationClient.js +128 -0
  89. package/sdk/application/client/OrderApplicationClient.d.ts +190 -0
  90. package/sdk/application/client/OrderApplicationClient.js +479 -0
  91. package/sdk/application/client/PaymentApplicationClient.d.ts +454 -0
  92. package/sdk/application/client/PaymentApplicationClient.js +1378 -0
  93. package/sdk/application/client/PosCartApplicationClient.d.ts +449 -0
  94. package/sdk/application/client/PosCartApplicationClient.js +1123 -0
  95. package/sdk/application/client/RewardsApplicationClient.d.ts +93 -0
  96. package/sdk/application/client/RewardsApplicationClient.js +293 -0
  97. package/sdk/application/client/ShareApplicationClient.d.ts +87 -0
  98. package/sdk/application/client/ShareApplicationClient.js +268 -0
  99. package/sdk/application/client/ThemeApplicationClient.d.ts +52 -0
  100. package/sdk/application/client/ThemeApplicationClient.js +161 -0
  101. package/sdk/application/client/UserApplicationClient.d.ts +446 -0
  102. package/sdk/application/client/UserApplicationClient.js +1275 -0
  103. package/sdk/application/constructUrl.d.ts +5 -0
  104. package/sdk/application/constructUrl.js +13 -0
  105. package/sdk/application/index.d.ts +2 -0
  106. package/sdk/application/index.js +4 -0
  107. package/sdk/application/models/CartValidator.d.ts +29 -0
  108. package/sdk/application/models/CartValidator.js +223 -0
  109. package/sdk/application/models/CatalogValidator.d.ts +33 -0
  110. package/sdk/application/models/CatalogValidator.js +233 -0
  111. package/sdk/application/models/CommonValidator.d.ts +5 -0
  112. package/sdk/application/models/CommonValidator.js +18 -0
  113. package/sdk/application/models/CommunicationValidator.d.ts +6 -0
  114. package/sdk/application/models/CommunicationValidator.js +20 -0
  115. package/sdk/application/models/ConfigurationValidator.d.ts +19 -0
  116. package/sdk/application/models/ConfigurationValidator.js +88 -0
  117. package/sdk/application/models/ContentValidator.d.ts +22 -0
  118. package/sdk/application/models/ContentValidator.js +106 -0
  119. package/sdk/application/models/FileStorageValidator.d.ts +6 -0
  120. package/sdk/application/models/FileStorageValidator.js +24 -0
  121. package/sdk/application/models/LeadValidator.d.ts +10 -0
  122. package/sdk/application/models/LeadValidator.js +48 -0
  123. package/sdk/application/models/LogisticValidator.d.ts +6 -0
  124. package/sdk/application/models/LogisticValidator.js +22 -0
  125. package/sdk/application/models/OrderValidator.d.ts +15 -0
  126. package/sdk/application/models/OrderValidator.js +87 -0
  127. package/sdk/application/models/PaymentValidator.d.ts +40 -0
  128. package/sdk/application/models/PaymentValidator.js +235 -0
  129. package/sdk/application/models/PosCartValidator.d.ts +30 -0
  130. package/sdk/application/models/PosCartValidator.js +232 -0
  131. package/sdk/application/models/RewardsValidator.d.ts +10 -0
  132. package/sdk/application/models/RewardsValidator.js +43 -0
  133. package/sdk/application/models/ShareValidator.d.ts +10 -0
  134. package/sdk/application/models/ShareValidator.js +44 -0
  135. package/sdk/application/models/ThemeValidator.d.ts +7 -0
  136. package/sdk/application/models/ThemeValidator.js +27 -0
  137. package/sdk/application/models/UserValidator.d.ts +38 -0
  138. package/sdk/application/models/UserValidator.js +233 -0
  139. package/sdk/common/AxiosHelper.d.ts +1 -0
  140. package/sdk/common/AxiosHelper.js +141 -0
  141. package/sdk/common/Constant.d.ts +294 -0
  142. package/sdk/common/Constant.js +332 -0
  143. package/sdk/common/FDKError.d.ts +26 -0
  144. package/sdk/common/FDKError.js +51 -0
  145. package/sdk/common/Logger.d.ts +2 -0
  146. package/sdk/common/Logger.js +85 -0
  147. package/sdk/common/Paginator.d.ts +16 -0
  148. package/sdk/common/Paginator.js +26 -0
  149. package/sdk/common/RequestSigner.d.ts +1 -0
  150. package/sdk/common/RequestSigner.js +306 -0
  151. package/sdk/common/Utility.d.ts +9 -0
  152. package/sdk/common/Utility.js +86 -0
  153. package/sdk/common/utils.d.ts +14 -0
  154. package/sdk/common/utils.js +165 -0
  155. package/sdk/platform/OAuthClient.d.ts +26 -0
  156. package/sdk/platform/OAuthClient.js +221 -0
  157. package/sdk/platform/PlatformAPIClient.d.ts +12 -0
  158. package/sdk/platform/PlatformAPIClient.js +43 -0
  159. package/sdk/platform/PlatformApplicationClient.d.ts +24398 -0
  160. package/sdk/platform/PlatformApplicationClient.js +23185 -0
  161. package/sdk/platform/PlatformApplicationModels.d.ts +333 -0
  162. package/sdk/platform/PlatformApplicationModels.js +21262 -0
  163. package/sdk/platform/PlatformClient.d.ts +9535 -0
  164. package/sdk/platform/PlatformClient.js +12336 -0
  165. package/sdk/platform/PlatformConfig.d.ts +29 -0
  166. package/sdk/platform/PlatformConfig.js +36 -0
  167. package/sdk/platform/PlatformModels.d.ts +1396 -0
  168. package/sdk/platform/PlatformModels.js +19222 -0
  169. package/sdk/platform/client/AnalyticsPlatformClient.d.ts +84 -0
  170. package/sdk/platform/client/AnalyticsPlatformClient.js +215 -0
  171. package/sdk/platform/client/AuditTrailPlatformClient.d.ts +38 -0
  172. package/sdk/platform/client/AuditTrailPlatformClient.js +133 -0
  173. package/sdk/platform/client/BillingPlatformClient.d.ts +109 -0
  174. package/sdk/platform/client/BillingPlatformClient.js +381 -0
  175. package/sdk/platform/client/CatalogPlatformClient.d.ts +806 -0
  176. package/sdk/platform/client/CatalogPlatformClient.js +2462 -0
  177. package/sdk/platform/client/CommonPlatformClient.d.ts +30 -0
  178. package/sdk/platform/client/CommonPlatformClient.js +84 -0
  179. package/sdk/platform/client/CommunicationPlatformClient.d.ts +26 -0
  180. package/sdk/platform/client/CommunicationPlatformClient.js +72 -0
  181. package/sdk/platform/client/CompanyProfilePlatformClient.d.ts +182 -0
  182. package/sdk/platform/client/CompanyProfilePlatformClient.js +540 -0
  183. package/sdk/platform/client/ConfigurationPlatformClient.d.ts +277 -0
  184. package/sdk/platform/client/ConfigurationPlatformClient.js +806 -0
  185. package/sdk/platform/client/DiscountPlatformClient.d.ts +118 -0
  186. package/sdk/platform/client/DiscountPlatformClient.js +364 -0
  187. package/sdk/platform/client/FileStoragePlatformClient.d.ts +111 -0
  188. package/sdk/platform/client/FileStoragePlatformClient.js +268 -0
  189. package/sdk/platform/client/InventoryPlatformClient.d.ts +125 -0
  190. package/sdk/platform/client/InventoryPlatformClient.js +409 -0
  191. package/sdk/platform/client/LeadPlatformClient.d.ts +150 -0
  192. package/sdk/platform/client/LeadPlatformClient.js +439 -0
  193. package/sdk/platform/client/OrderPlatformClient.d.ts +190 -0
  194. package/sdk/platform/client/OrderPlatformClient.js +521 -0
  195. package/sdk/platform/client/PaymentPlatformClient.d.ts +98 -0
  196. package/sdk/platform/client/PaymentPlatformClient.js +331 -0
  197. package/sdk/platform/client/WebhookPlatformClient.d.ts +64 -0
  198. package/sdk/platform/client/WebhookPlatformClient.js +207 -0
  199. package/sdk/platform/index.d.ts +2 -0
  200. package/sdk/platform/index.js +4 -0
  201. package/sdk/platform/models/AnalyticsValidator.d.ts +7 -0
  202. package/sdk/platform/models/AnalyticsValidator.js +36 -0
  203. package/sdk/platform/models/AuditTrailValidator.d.ts +7 -0
  204. package/sdk/platform/models/AuditTrailValidator.js +26 -0
  205. package/sdk/platform/models/BillingValidator.d.ts +15 -0
  206. package/sdk/platform/models/BillingValidator.js +72 -0
  207. package/sdk/platform/models/CartValidator.d.ts +0 -0
  208. package/sdk/platform/models/CartValidator.js +0 -0
  209. package/sdk/platform/models/CatalogValidator.d.ts +74 -0
  210. package/sdk/platform/models/CatalogValidator.js +484 -0
  211. package/sdk/platform/models/CommonValidator.d.ts +5 -0
  212. package/sdk/platform/models/CommonValidator.js +18 -0
  213. package/sdk/platform/models/CommunicationValidator.d.ts +4 -0
  214. package/sdk/platform/models/CommunicationValidator.js +11 -0
  215. package/sdk/platform/models/CompanyProfileValidator.d.ts +17 -0
  216. package/sdk/platform/models/CompanyProfileValidator.js +93 -0
  217. package/sdk/platform/models/ConfigurationValidator.d.ts +21 -0
  218. package/sdk/platform/models/ConfigurationValidator.js +134 -0
  219. package/sdk/platform/models/ContentValidator.d.ts +0 -0
  220. package/sdk/platform/models/ContentValidator.js +0 -0
  221. package/sdk/platform/models/DiscountValidator.d.ts +13 -0
  222. package/sdk/platform/models/DiscountValidator.js +75 -0
  223. package/sdk/platform/models/FileStorageValidator.d.ts +9 -0
  224. package/sdk/platform/models/FileStorageValidator.js +44 -0
  225. package/sdk/platform/models/InventoryValidator.d.ts +15 -0
  226. package/sdk/platform/models/InventoryValidator.js +81 -0
  227. package/sdk/platform/models/LeadValidator.d.ts +14 -0
  228. package/sdk/platform/models/LeadValidator.js +78 -0
  229. package/sdk/platform/models/OrderValidator.d.ts +14 -0
  230. package/sdk/platform/models/OrderValidator.js +110 -0
  231. package/sdk/platform/models/PartnerValidator.d.ts +0 -0
  232. package/sdk/platform/models/PartnerValidator.js +0 -0
  233. package/sdk/platform/models/PaymentValidator.d.ts +13 -0
  234. package/sdk/platform/models/PaymentValidator.js +65 -0
  235. package/sdk/platform/models/RewardsValidator.d.ts +0 -0
  236. package/sdk/platform/models/RewardsValidator.js +0 -0
  237. package/sdk/platform/models/ShareValidator.d.ts +0 -0
  238. package/sdk/platform/models/ShareValidator.js +0 -0
  239. package/sdk/platform/models/ThemeValidator.d.ts +0 -0
  240. package/sdk/platform/models/ThemeValidator.js +0 -0
  241. package/sdk/platform/models/UserValidator.d.ts +0 -0
  242. package/sdk/platform/models/UserValidator.js +0 -0
  243. package/sdk/platform/models/WebhookValidator.d.ts +9 -0
  244. package/sdk/platform/models/WebhookValidator.js +42 -0
  245. package/sdk/public/PublicAPIClient.d.ts +11 -0
  246. package/sdk/public/PublicAPIClient.js +38 -0
  247. package/sdk/public/PublicClient.d.ts +12 -0
  248. package/sdk/public/PublicClient.js +24 -0
  249. package/sdk/public/PublicConfig.d.ts +10 -0
  250. package/sdk/public/PublicConfig.js +12 -0
  251. package/sdk/public/PublicModels.d.ts +50 -0
  252. package/sdk/public/PublicModels.js +712 -0
  253. package/sdk/public/client/ConfigurationPublicClient.d.ts +38 -0
  254. package/sdk/public/client/ConfigurationPublicClient.js +102 -0
  255. package/sdk/public/client/InventoryPublicClient.d.ts +81 -0
  256. package/sdk/public/client/InventoryPublicClient.js +239 -0
  257. package/sdk/public/client/WebhookPublicClient.d.ts +28 -0
  258. package/sdk/public/client/WebhookPublicClient.js +92 -0
  259. package/sdk/public/constructUrl.d.ts +5 -0
  260. package/sdk/public/constructUrl.js +13 -0
  261. package/sdk/public/index.d.ts +2 -0
  262. package/sdk/public/index.js +4 -0
  263. package/sdk/public/models/ConfigurationValidator.d.ts +5 -0
  264. package/sdk/public/models/ConfigurationValidator.js +18 -0
  265. package/sdk/public/models/InventoryValidator.d.ts +9 -0
  266. package/sdk/public/models/InventoryValidator.js +43 -0
  267. package/sdk/public/models/WebhookValidator.d.ts +5 -0
  268. package/sdk/public/models/WebhookValidator.js +14 -0
  269. package/tests/application/catalog.spec.js +47 -0
  270. package/tests/common/action-url.spec.js +35 -0
  271. package/tests/common/schema/action-url.json +163 -0
  272. package/tests/common/schema/url-action.json +667 -0
  273. package/tests/common/url-action.spec.js +48 -0
  274. package/tests/helpers/cookie.helper.js +31 -0
  275. package/tests/helpers/oauth.helper.js +43 -0
  276. package/tests/platform/catalog.spec.js +49 -0
  277. package/tests/public/location.spec.js +39 -0
@@ -0,0 +1,773 @@
1
+
2
+
3
+
4
+
5
+ ##### [Back to Platform docs](./README.md)
6
+
7
+ ## Discount Methods
8
+ Discount
9
+ * [getDiscounts](#getdiscounts)
10
+ * [createDiscount](#creatediscount)
11
+ * [getDiscount](#getdiscount)
12
+ * [updateDiscount](#updatediscount)
13
+ * [validateDiscountFile](#validatediscountfile)
14
+ * [downloadDiscountFile](#downloaddiscountfile)
15
+ * [getValidationJob](#getvalidationjob)
16
+ * [cancelValidationJob](#cancelvalidationjob)
17
+ * [getDownloadJob](#getdownloadjob)
18
+ * [cancelDownloadJob](#canceldownloadjob)
19
+
20
+
21
+
22
+ ## Methods with example and description
23
+
24
+
25
+ ### getDiscounts
26
+ Fetch discount list.
27
+
28
+
29
+
30
+ ```javascript
31
+ // Promise
32
+ const promise = client.discount.getDiscounts({ view : value,
33
+ q : value,
34
+ pageNo : value,
35
+ pageSize : value,
36
+ archived : value,
37
+ month : value,
38
+ year : value,
39
+ type : value,
40
+ appIds : value });
41
+
42
+ // Async/Await
43
+ const data = await client.discount.getDiscounts({ view : value,
44
+ q : value,
45
+ pageNo : value,
46
+ pageSize : value,
47
+ archived : value,
48
+ month : value,
49
+ year : value,
50
+ type : value,
51
+ appIds : value });
52
+ ```
53
+
54
+
55
+
56
+
57
+
58
+ | Argument | Type | Required | Description |
59
+ | --------- | ----- | -------- | ----------- |
60
+ | view | string | no | listing or calender. Default is listing. |
61
+ | q | string | no | The search query. This can be a partial or complete name of a discount. |
62
+ | pageNo | number | no | page number. Default is 1. |
63
+ | pageSize | number | no | page size. Default is 12. |
64
+ | archived | boolean | no | archived. Default is false. |
65
+ | month | number | no | month. Default is current month. |
66
+ | year | number | no | year. Default is current year. |
67
+ | type | string | no | basic or custom. |
68
+ | appIds | Array<string> | no | application ids. |
69
+
70
+
71
+
72
+ Fetch discount list.
73
+
74
+ *Returned Response:*
75
+
76
+
77
+
78
+
79
+ [ListOrCalender](#ListOrCalender)
80
+
81
+ Success
82
+
83
+
84
+
85
+
86
+ <details>
87
+ <summary><i>&nbsp; Example:</i></summary>
88
+
89
+ ```json
90
+
91
+ ```
92
+ </details>
93
+
94
+
95
+
96
+
97
+
98
+
99
+
100
+
101
+
102
+ ---
103
+
104
+
105
+ ### createDiscount
106
+ Create Discount.
107
+
108
+
109
+
110
+ ```javascript
111
+ // Promise
112
+ const promise = client.discount.createDiscount({ body : value });
113
+
114
+ // Async/Await
115
+ const data = await client.discount.createDiscount({ body : value });
116
+ ```
117
+
118
+
119
+
120
+
121
+
122
+ | Argument | Type | Required | Description |
123
+ | --------- | ----- | -------- | ----------- |
124
+ | body | [CreateUpdateDiscount](#CreateUpdateDiscount) | yes | Request body |
125
+
126
+
127
+ Create Discount.
128
+
129
+ *Returned Response:*
130
+
131
+
132
+
133
+
134
+ [DiscountJob](#DiscountJob)
135
+
136
+ Success
137
+
138
+
139
+
140
+
141
+ <details>
142
+ <summary><i>&nbsp; Example:</i></summary>
143
+
144
+ ```json
145
+
146
+ ```
147
+ </details>
148
+
149
+
150
+
151
+
152
+
153
+
154
+
155
+
156
+
157
+ ---
158
+
159
+
160
+ ### getDiscount
161
+ Fetch discount.
162
+
163
+
164
+
165
+ ```javascript
166
+ // Promise
167
+ const promise = client.discount.getDiscount({ id : value });
168
+
169
+ // Async/Await
170
+ const data = await client.discount.getDiscount({ id : value });
171
+ ```
172
+
173
+
174
+
175
+
176
+
177
+ | Argument | Type | Required | Description |
178
+ | --------- | ----- | -------- | ----------- |
179
+ | id | string | yes | unique id. |
180
+
181
+
182
+
183
+ Fetch discount.
184
+
185
+ *Returned Response:*
186
+
187
+
188
+
189
+
190
+ [DiscountJob](#DiscountJob)
191
+
192
+ Success
193
+
194
+
195
+
196
+
197
+ <details>
198
+ <summary><i>&nbsp; Example:</i></summary>
199
+
200
+ ```json
201
+
202
+ ```
203
+ </details>
204
+
205
+
206
+
207
+
208
+
209
+
210
+
211
+
212
+
213
+ ---
214
+
215
+
216
+ ### updateDiscount
217
+ Create Discount.
218
+
219
+
220
+
221
+ ```javascript
222
+ // Promise
223
+ const promise = client.discount.updateDiscount({ id : value,
224
+ body : value });
225
+
226
+ // Async/Await
227
+ const data = await client.discount.updateDiscount({ id : value,
228
+ body : value });
229
+ ```
230
+
231
+
232
+
233
+
234
+
235
+ | Argument | Type | Required | Description |
236
+ | --------- | ----- | -------- | ----------- |
237
+ | id | string | yes | id |
238
+ | body | [CreateUpdateDiscount](#CreateUpdateDiscount) | yes | Request body |
239
+
240
+
241
+ Create Discount.
242
+
243
+ *Returned Response:*
244
+
245
+
246
+
247
+
248
+ [DiscountJob](#DiscountJob)
249
+
250
+ Success
251
+
252
+
253
+
254
+
255
+ <details>
256
+ <summary><i>&nbsp; Example:</i></summary>
257
+
258
+ ```json
259
+
260
+ ```
261
+ </details>
262
+
263
+
264
+
265
+
266
+
267
+
268
+
269
+
270
+
271
+ ---
272
+
273
+
274
+ ### validateDiscountFile
275
+ Validate File.
276
+
277
+
278
+
279
+ ```javascript
280
+ // Promise
281
+ const promise = client.discount.validateDiscountFile({ body : value,
282
+ discount : value });
283
+
284
+ // Async/Await
285
+ const data = await client.discount.validateDiscountFile({ body : value,
286
+ discount : value });
287
+ ```
288
+
289
+
290
+
291
+
292
+
293
+ | Argument | Type | Required | Description |
294
+ | --------- | ----- | -------- | ----------- |
295
+ | discount | string | no | discount |
296
+ | body | [DiscountJob](#DiscountJob) | yes | Request body |
297
+
298
+
299
+ Validate File.
300
+
301
+ *Returned Response:*
302
+
303
+
304
+
305
+
306
+ [FileJobResponse](#FileJobResponse)
307
+
308
+ Success
309
+
310
+
311
+
312
+
313
+ <details>
314
+ <summary><i>&nbsp; Example:</i></summary>
315
+
316
+ ```json
317
+
318
+ ```
319
+ </details>
320
+
321
+
322
+
323
+
324
+
325
+
326
+
327
+
328
+
329
+ ---
330
+
331
+
332
+ ### downloadDiscountFile
333
+ Validate File.
334
+
335
+
336
+
337
+ ```javascript
338
+ // Promise
339
+ const promise = client.discount.downloadDiscountFile({ type : value,
340
+ body : value });
341
+
342
+ // Async/Await
343
+ const data = await client.discount.downloadDiscountFile({ type : value,
344
+ body : value });
345
+ ```
346
+
347
+
348
+
349
+
350
+
351
+ | Argument | Type | Required | Description |
352
+ | --------- | ----- | -------- | ----------- |
353
+ | type | string | yes | type |
354
+ | body | [DownloadFileJob](#DownloadFileJob) | yes | Request body |
355
+
356
+
357
+ Validate File.
358
+
359
+ *Returned Response:*
360
+
361
+
362
+
363
+
364
+ [FileJobResponse](#FileJobResponse)
365
+
366
+ Success
367
+
368
+
369
+
370
+
371
+ <details>
372
+ <summary><i>&nbsp; Example:</i></summary>
373
+
374
+ ```json
375
+
376
+ ```
377
+ </details>
378
+
379
+
380
+
381
+
382
+
383
+
384
+
385
+
386
+
387
+ ---
388
+
389
+
390
+ ### getValidationJob
391
+ Validate File Job.
392
+
393
+
394
+
395
+ ```javascript
396
+ // Promise
397
+ const promise = client.discount.getValidationJob({ id : value });
398
+
399
+ // Async/Await
400
+ const data = await client.discount.getValidationJob({ id : value });
401
+ ```
402
+
403
+
404
+
405
+
406
+
407
+ | Argument | Type | Required | Description |
408
+ | --------- | ----- | -------- | ----------- |
409
+ | id | string | yes | id |
410
+
411
+
412
+
413
+ Validate File Job.
414
+
415
+ *Returned Response:*
416
+
417
+
418
+
419
+
420
+ [FileJobResponse](#FileJobResponse)
421
+
422
+ Success
423
+
424
+
425
+
426
+
427
+ <details>
428
+ <summary><i>&nbsp; Example:</i></summary>
429
+
430
+ ```json
431
+
432
+ ```
433
+ </details>
434
+
435
+
436
+
437
+
438
+
439
+
440
+
441
+
442
+
443
+ ---
444
+
445
+
446
+ ### cancelValidationJob
447
+ Cancel Validation Job.
448
+
449
+
450
+
451
+ ```javascript
452
+ // Promise
453
+ const promise = client.discount.cancelValidationJob({ id : value });
454
+
455
+ // Async/Await
456
+ const data = await client.discount.cancelValidationJob({ id : value });
457
+ ```
458
+
459
+
460
+
461
+
462
+
463
+ | Argument | Type | Required | Description |
464
+ | --------- | ----- | -------- | ----------- |
465
+ | id | string | yes | id |
466
+
467
+
468
+
469
+ Cancel Validation Job.
470
+
471
+ *Returned Response:*
472
+
473
+
474
+
475
+
476
+ [CancelJobResponse](#CancelJobResponse)
477
+
478
+ Success
479
+
480
+
481
+
482
+
483
+ <details>
484
+ <summary><i>&nbsp; Example:</i></summary>
485
+
486
+ ```json
487
+
488
+ ```
489
+ </details>
490
+
491
+
492
+
493
+
494
+
495
+
496
+
497
+
498
+
499
+ ---
500
+
501
+
502
+ ### getDownloadJob
503
+ Download File Job.
504
+
505
+
506
+
507
+ ```javascript
508
+ // Promise
509
+ const promise = client.discount.getDownloadJob({ id : value });
510
+
511
+ // Async/Await
512
+ const data = await client.discount.getDownloadJob({ id : value });
513
+ ```
514
+
515
+
516
+
517
+
518
+
519
+ | Argument | Type | Required | Description |
520
+ | --------- | ----- | -------- | ----------- |
521
+ | id | string | yes | id |
522
+
523
+
524
+
525
+ Download File Job.
526
+
527
+ *Returned Response:*
528
+
529
+
530
+
531
+
532
+ [FileJobResponse](#FileJobResponse)
533
+
534
+ Success
535
+
536
+
537
+
538
+
539
+ <details>
540
+ <summary><i>&nbsp; Example:</i></summary>
541
+
542
+ ```json
543
+
544
+ ```
545
+ </details>
546
+
547
+
548
+
549
+
550
+
551
+
552
+
553
+
554
+
555
+ ---
556
+
557
+
558
+ ### cancelDownloadJob
559
+ Cancel Download Job.
560
+
561
+
562
+
563
+ ```javascript
564
+ // Promise
565
+ const promise = client.discount.cancelDownloadJob({ id : value });
566
+
567
+ // Async/Await
568
+ const data = await client.discount.cancelDownloadJob({ id : value });
569
+ ```
570
+
571
+
572
+
573
+
574
+
575
+ | Argument | Type | Required | Description |
576
+ | --------- | ----- | -------- | ----------- |
577
+ | id | string | yes | id |
578
+
579
+
580
+
581
+ Cancel Download Job.
582
+
583
+ *Returned Response:*
584
+
585
+
586
+
587
+
588
+ [CancelJobResponse](#CancelJobResponse)
589
+
590
+ Success
591
+
592
+
593
+
594
+
595
+ <details>
596
+ <summary><i>&nbsp; Example:</i></summary>
597
+
598
+ ```json
599
+
600
+ ```
601
+ </details>
602
+
603
+
604
+
605
+
606
+
607
+
608
+
609
+
610
+
611
+ ---
612
+
613
+
614
+
615
+ ### Schemas
616
+
617
+
618
+
619
+ #### [ValidityObject](#ValidityObject)
620
+
621
+ | Properties | Type | Nullable | Description |
622
+ | ---------- | ---- | -------- | ----------- |
623
+ | start | string | yes | |
624
+ | end | string | yes | |
625
+
626
+ ---
627
+
628
+
629
+
630
+
631
+ #### [CreateUpdateDiscount](#CreateUpdateDiscount)
632
+
633
+ | Properties | Type | Nullable | Description |
634
+ | ---------- | ---- | -------- | ----------- |
635
+ | name | string | yes | |
636
+ | company_id | number | yes | |
637
+ | is_active | boolean | yes | |
638
+ | app_ids | [string] | yes | |
639
+ | extension_ids | [string] | yes | |
640
+ | job_type | string | yes | |
641
+ | discount_type | string | yes | |
642
+ | discount_level | string | yes | |
643
+ | value | number | no | |
644
+ | file_path | string | no | |
645
+ | brand_ids | [number] | no | |
646
+ | store_ids | [number] | no | |
647
+ | validity | [ValidityObject](#ValidityObject) | yes | |
648
+
649
+ ---
650
+
651
+
652
+
653
+
654
+ #### [DiscountJob](#DiscountJob)
655
+
656
+ | Properties | Type | Nullable | Description |
657
+ | ---------- | ---- | -------- | ----------- |
658
+ | _id | string | yes | |
659
+ | name | string | yes | |
660
+ | company_id | number | yes | |
661
+ | is_active | boolean | yes | |
662
+ | app_ids | [string] | no | |
663
+ | job_type | string | no | |
664
+ | discount_type | string | no | |
665
+ | discount_level | string | no | |
666
+ | value | number | no | |
667
+ | file_path | string | no | |
668
+ | brand_ids | [number] | no | |
669
+ | store_ids | [number] | no | |
670
+ | validity | [ValidityObject](#ValidityObject) | yes | |
671
+ | created_on | string | yes | |
672
+ | modified_on | string | yes | |
673
+ | created_by | [UserDetails](#UserDetails) | yes | |
674
+ | modified_by | [UserDetails](#UserDetails) | yes | |
675
+ | meta | string | no | |
676
+
677
+ ---
678
+
679
+
680
+
681
+
682
+ #### [ListOrCalender](#ListOrCalender)
683
+
684
+ | Properties | Type | Nullable | Description |
685
+ | ---------- | ---- | -------- | ----------- |
686
+ | items | [[DiscountJob](#DiscountJob)] | yes | |
687
+ | page | [Page](#Page) | yes | |
688
+
689
+ ---
690
+
691
+
692
+
693
+
694
+ #### [FileJobResponse](#FileJobResponse)
695
+
696
+ | Properties | Type | Nullable | Description |
697
+ | ---------- | ---- | -------- | ----------- |
698
+ | stage | string | yes | |
699
+ | total | number | yes | |
700
+ | failed | number | yes | |
701
+ | company_id | number | yes | |
702
+ | body | string | no | |
703
+ | type | string | yes | |
704
+ | file_type | string | yes | |
705
+
706
+ ---
707
+
708
+
709
+
710
+
711
+ #### [DownloadFileJob](#DownloadFileJob)
712
+
713
+ | Properties | Type | Nullable | Description |
714
+ | ---------- | ---- | -------- | ----------- |
715
+ | brand_ids | [number] | no | |
716
+ | store_ids | [number] | no | |
717
+
718
+ ---
719
+
720
+
721
+
722
+
723
+ #### [CancelJobResponse](#CancelJobResponse)
724
+
725
+ | Properties | Type | Nullable | Description |
726
+ | ---------- | ---- | -------- | ----------- |
727
+ | success | boolean | yes | |
728
+
729
+ ---
730
+
731
+
732
+
733
+
734
+ #### [Page](#Page)
735
+
736
+ | Properties | Type | Nullable | Description |
737
+ | ---------- | ---- | -------- | ----------- |
738
+ | item_total | number | no | |
739
+ | next_id | string | no | |
740
+ | has_previous | boolean | no | |
741
+ | has_next | boolean | no | |
742
+ | current | number | no | |
743
+ | type | number | yes | |
744
+ | size | number | no | |
745
+
746
+ ---
747
+
748
+
749
+
750
+
751
+ #### [UserDetails](#UserDetails)
752
+
753
+ | Properties | Type | Nullable | Description |
754
+ | ---------- | ---- | -------- | ----------- |
755
+ | username | string | yes | |
756
+ | user_id | string | yes | |
757
+
758
+ ---
759
+
760
+
761
+
762
+
763
+ #### [BadRequestObject](#BadRequestObject)
764
+
765
+ | Properties | Type | Nullable | Description |
766
+ | ---------- | ---- | -------- | ----------- |
767
+ | message | string | yes | |
768
+
769
+ ---
770
+
771
+
772
+
773
+