@gofynd/fdk-client-javascript 1.4.15-beta.13 → 1.4.15-beta.15

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 (278) hide show
  1. package/README.md +23 -26
  2. package/package.json +5 -1
  3. package/sdk/application/ApplicationClient.d.ts +5 -6
  4. package/sdk/application/ApplicationClient.js +24 -20
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +133 -83
  6. package/sdk/application/Cart/CartApplicationClient.js +444 -76
  7. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +132 -114
  8. package/sdk/application/Catalog/CatalogApplicationClient.js +209 -126
  9. package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
  10. package/sdk/application/Common/CommonApplicationClient.js +4 -4
  11. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +3 -3
  12. package/sdk/application/Communication/CommunicationApplicationClient.js +3 -3
  13. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +58 -36
  14. package/sdk/application/Configuration/ConfigurationApplicationClient.js +73 -29
  15. package/sdk/application/Content/ContentApplicationClient.d.ts +95 -66
  16. package/sdk/application/Content/ContentApplicationClient.js +274 -111
  17. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +11 -11
  18. package/sdk/application/FileStorage/FileStorageApplicationClient.js +10 -10
  19. package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
  20. package/sdk/application/Finance/FinanceApplicationClient.js +111 -0
  21. package/sdk/application/Lead/LeadApplicationClient.d.ts +7 -7
  22. package/sdk/application/Lead/LeadApplicationClient.js +6 -6
  23. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +37 -57
  24. package/sdk/application/Logistic/LogisticApplicationClient.js +117 -180
  25. package/sdk/application/Order/OrderApplicationClient.d.ts +63 -21
  26. package/sdk/application/Order/OrderApplicationClient.js +217 -17
  27. package/sdk/application/Payment/PaymentApplicationClient.d.ts +179 -149
  28. package/sdk/application/Payment/PaymentApplicationClient.js +301 -167
  29. package/sdk/application/Share/ShareApplicationClient.d.ts +7 -7
  30. package/sdk/application/Share/ShareApplicationClient.js +7 -7
  31. package/sdk/application/Theme/ThemeApplicationClient.d.ts +7 -7
  32. package/sdk/application/Theme/ThemeApplicationClient.js +10 -6
  33. package/sdk/application/User/UserApplicationClient.d.ts +103 -53
  34. package/sdk/application/User/UserApplicationClient.js +308 -49
  35. package/sdk/common/AxiosHelper.js +11 -4
  36. package/sdk/common/Constant.d.ts +27 -4
  37. package/sdk/common/Constant.js +33 -6
  38. package/sdk/common/utils.d.ts +10 -0
  39. package/sdk/common/utils.js +24 -3
  40. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +46 -16
  41. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +266 -40
  42. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +163 -19
  43. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +158 -14
  44. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +5 -2
  45. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +23 -7
  46. package/sdk/partner/Lead/LeadPartnerClient.d.ts +9 -9
  47. package/sdk/partner/Lead/LeadPartnerClient.js +9 -9
  48. package/sdk/partner/Lead/LeadPartnerModel.d.ts +14 -9
  49. package/sdk/partner/Lead/LeadPartnerModel.js +19 -17
  50. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +264 -49
  51. package/sdk/partner/Logistics/LogisticsPartnerClient.js +2116 -252
  52. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +2256 -258
  53. package/sdk/partner/Logistics/LogisticsPartnerModel.js +1187 -230
  54. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +21 -1
  55. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +218 -13
  56. package/sdk/partner/PartnerClient.d.ts +5 -2
  57. package/sdk/partner/PartnerClient.js +21 -7
  58. package/sdk/partner/Theme/ThemePartnerClient.d.ts +32 -34
  59. package/sdk/partner/Theme/ThemePartnerClient.js +42 -44
  60. package/sdk/partner/Theme/ThemePartnerModel.d.ts +142 -43
  61. package/sdk/partner/Theme/ThemePartnerModel.js +129 -44
  62. package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
  63. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +83 -27
  64. package/sdk/partner/Webhook/WebhookPartnerClient.js +446 -27
  65. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +920 -185
  66. package/sdk/partner/Webhook/WebhookPartnerModel.js +462 -154
  67. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +5 -0
  68. package/sdk/partner/Webhook/WebhookPartnerValidator.js +41 -3
  69. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +8 -7
  70. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +17 -11
  71. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +4 -1
  72. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
  73. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +68 -13
  74. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +44 -6
  75. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +3 -33
  76. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +4 -244
  77. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +49 -145
  78. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +20 -171
  79. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
  80. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
  81. package/sdk/platform/Billing/BillingPlatformClient.d.ts +15 -15
  82. package/sdk/platform/Billing/BillingPlatformClient.js +18 -18
  83. package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
  84. package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
  85. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
  86. package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
  87. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +266 -203
  88. package/sdk/platform/Cart/CartPlatformApplicationClient.js +1446 -500
  89. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +729 -100
  90. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +446 -82
  91. package/sdk/platform/Cart/CartPlatformModel.d.ts +6927 -1396
  92. package/sdk/platform/Cart/CartPlatformModel.js +3065 -1316
  93. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +433 -248
  94. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1662 -559
  95. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +464 -159
  96. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +304 -87
  97. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +383 -234
  98. package/sdk/platform/Catalog/CatalogPlatformClient.js +2475 -1557
  99. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +9571 -2674
  100. package/sdk/platform/Catalog/CatalogPlatformModel.js +5081 -2019
  101. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +364 -117
  102. package/sdk/platform/Catalog/CatalogPlatformValidator.js +281 -104
  103. package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -4
  104. package/sdk/platform/Common/CommonPlatformClient.js +6 -5
  105. package/sdk/platform/Common/CommonPlatformModel.d.ts +36 -25
  106. package/sdk/platform/Common/CommonPlatformModel.js +25 -14
  107. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +80 -153
  108. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +102 -541
  109. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +36 -49
  110. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +20 -60
  111. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +1 -1
  112. package/sdk/platform/Communication/CommunicationPlatformClient.js +1 -1
  113. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +189 -43
  114. package/sdk/platform/Communication/CommunicationPlatformModel.js +165 -42
  115. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +58 -81
  116. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +68 -116
  117. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +291 -249
  118. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +243 -234
  119. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
  120. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
  121. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +78 -65
  122. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +101 -88
  123. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +20 -20
  124. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +19 -19
  125. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +68 -34
  126. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +174 -41
  127. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +667 -244
  128. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +474 -155
  129. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
  130. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
  131. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +366 -280
  132. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1435 -753
  133. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +323 -223
  134. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +335 -205
  135. package/sdk/platform/Content/ContentPlatformClient.d.ts +304 -106
  136. package/sdk/platform/Content/ContentPlatformClient.js +1842 -450
  137. package/sdk/platform/Content/ContentPlatformModel.d.ts +2582 -566
  138. package/sdk/platform/Content/ContentPlatformModel.js +1426 -558
  139. package/sdk/platform/Content/ContentPlatformValidator.d.ts +293 -114
  140. package/sdk/platform/Content/ContentPlatformValidator.js +328 -101
  141. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +59 -23
  142. package/sdk/platform/Discount/DiscountPlatformClient.js +84 -23
  143. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +403 -110
  144. package/sdk/platform/Discount/DiscountPlatformModel.js +121 -107
  145. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +56 -36
  146. package/sdk/platform/Discount/DiscountPlatformValidator.js +29 -19
  147. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +12 -110
  148. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +14 -684
  149. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +5 -94
  150. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -115
  151. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +20 -20
  152. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +22 -22
  153. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +90 -920
  154. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +53 -949
  155. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  156. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  157. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +10 -10
  158. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +10 -10
  159. package/sdk/platform/Lead/LeadPlatformClient.d.ts +11 -11
  160. package/sdk/platform/Lead/LeadPlatformClient.js +11 -11
  161. package/sdk/platform/Lead/LeadPlatformModel.d.ts +14 -9
  162. package/sdk/platform/Lead/LeadPlatformModel.js +20 -18
  163. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +56 -9
  164. package/sdk/platform/Order/OrderPlatformApplicationClient.js +340 -10
  165. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +128 -24
  166. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +81 -19
  167. package/sdk/platform/Order/OrderPlatformClient.d.ts +517 -160
  168. package/sdk/platform/Order/OrderPlatformClient.js +1623 -384
  169. package/sdk/platform/Order/OrderPlatformModel.d.ts +10372 -1587
  170. package/sdk/platform/Order/OrderPlatformModel.js +5726 -1512
  171. package/sdk/platform/Order/OrderPlatformValidator.d.ts +539 -123
  172. package/sdk/platform/Order/OrderPlatformValidator.js +323 -92
  173. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +8 -6
  174. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +11 -9
  175. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +6 -4
  176. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +3 -2
  177. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +77 -25
  178. package/sdk/platform/Partner/PartnerPlatformModel.js +32 -21
  179. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +144 -219
  180. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +307 -796
  181. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +86 -121
  182. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +80 -138
  183. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +30 -30
  184. package/sdk/platform/Payment/PaymentPlatformClient.js +30 -30
  185. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +901 -761
  186. package/sdk/platform/Payment/PaymentPlatformModel.js +663 -583
  187. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
  188. package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
  189. package/sdk/platform/PlatformApplicationClient.d.ts +0 -2
  190. package/sdk/platform/PlatformApplicationClient.js +0 -4
  191. package/sdk/platform/PlatformClient.d.ts +5 -4
  192. package/sdk/platform/PlatformClient.js +32 -22
  193. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +526 -69
  194. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +3337 -337
  195. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +603 -38
  196. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +529 -32
  197. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +184 -133
  198. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +780 -491
  199. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +9408 -1666
  200. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +5720 -1765
  201. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +257 -180
  202. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +185 -127
  203. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +7 -7
  204. package/sdk/platform/Share/SharePlatformApplicationClient.js +7 -7
  205. package/sdk/platform/Share/SharePlatformModel.d.ts +45 -9
  206. package/sdk/platform/Share/SharePlatformModel.js +31 -6
  207. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +26 -26
  208. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +38 -29
  209. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +18 -3
  210. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +10 -2
  211. package/sdk/platform/Theme/ThemePlatformClient.d.ts +4 -4
  212. package/sdk/platform/Theme/ThemePlatformClient.js +4 -4
  213. package/sdk/platform/Theme/ThemePlatformModel.d.ts +103 -17
  214. package/sdk/platform/Theme/ThemePlatformModel.js +92 -23
  215. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +167 -45
  216. package/sdk/platform/User/UserPlatformApplicationClient.js +950 -67
  217. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +189 -3
  218. package/sdk/platform/User/UserPlatformApplicationValidator.js +157 -3
  219. package/sdk/platform/User/UserPlatformModel.d.ts +880 -47
  220. package/sdk/platform/User/UserPlatformModel.js +607 -46
  221. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +33 -86
  222. package/sdk/platform/Webhook/WebhookPlatformClient.js +79 -474
  223. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +861 -422
  224. package/sdk/platform/Webhook/WebhookPlatformModel.js +469 -391
  225. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
  226. package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
  227. package/sdk/platform/index.d.ts +0 -2
  228. package/sdk/platform/index.js +0 -4
  229. package/sdk/public/Catalog/CatalogPublicClient.d.ts +22 -0
  230. package/sdk/public/Catalog/CatalogPublicClient.js +133 -0
  231. package/sdk/public/Catalog/CatalogPublicModel.d.ts +158 -0
  232. package/sdk/public/Catalog/CatalogPublicModel.js +116 -0
  233. package/sdk/public/Catalog/CatalogPublicValidator.d.ts +55 -0
  234. package/sdk/public/Catalog/CatalogPublicValidator.js +35 -0
  235. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +5 -4
  236. package/sdk/public/Configuration/ConfigurationPublicClient.js +9 -8
  237. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +41 -21
  238. package/sdk/public/Configuration/ConfigurationPublicModel.js +28 -12
  239. package/sdk/public/Content/ContentPublicClient.d.ts +145 -2
  240. package/sdk/public/Content/ContentPublicClient.js +1067 -17
  241. package/sdk/public/Content/ContentPublicModel.d.ts +704 -3
  242. package/sdk/public/Content/ContentPublicModel.js +751 -3
  243. package/sdk/public/Content/ContentPublicValidator.d.ts +94 -3
  244. package/sdk/public/Content/ContentPublicValidator.js +119 -2
  245. package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
  246. package/sdk/public/Partner/PartnerPublicClient.js +1 -1
  247. package/sdk/public/Partner/PartnerPublicModel.d.ts +248 -72
  248. package/sdk/public/Partner/PartnerPublicModel.js +81 -71
  249. package/sdk/public/Partner/PartnerPublicValidator.d.ts +2 -2
  250. package/sdk/public/Partner/PartnerPublicValidator.js +1 -1
  251. package/sdk/public/PublicClient.d.ts +5 -2
  252. package/sdk/public/PublicClient.js +16 -6
  253. package/sdk/public/Webhook/WebhookPublicClient.d.ts +13 -13
  254. package/sdk/public/Webhook/WebhookPublicClient.js +13 -13
  255. package/sdk/public/Webhook/WebhookPublicModel.d.ts +249 -67
  256. package/sdk/public/Webhook/WebhookPublicModel.js +81 -61
  257. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  258. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  259. package/sdk/public/index.d.ts +1 -0
  260. package/sdk/public/index.js +2 -0
  261. package/utility.d.ts +3 -0
  262. package/utility.js +7 -0
  263. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +0 -79
  264. package/sdk/application/Rewards/RewardsApplicationClient.js +0 -315
  265. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +0 -19
  266. package/sdk/application/Webhook/WebhookApplicationClient.js +0 -72
  267. package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
  268. package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
  269. package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2890
  270. package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
  271. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
  272. package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
  273. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +0 -136
  274. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +0 -976
  275. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +0 -152
  276. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +0 -157
  277. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +0 -382
  278. package/sdk/platform/Rewards/RewardsPlatformModel.js +0 -408
@@ -2,25 +2,28 @@ const Joi = require("joi");
2
2
 
3
3
  /**
4
4
  * @typedef ValidityObject
5
- * @property {string} start
6
- * @property {string} end
5
+ * @property {string} start - The start date and time of the discount period.
6
+ * @property {string} end - The end date and time of the discount period.
7
7
  */
8
8
 
9
9
  /**
10
10
  * @typedef CreateUpdateDiscount
11
- * @property {string} name
12
- * @property {number} company_id
13
- * @property {boolean} is_active
14
- * @property {string[]} app_ids
15
- * @property {string[]} [extension_ids]
16
- * @property {string} job_type
17
- * @property {string} discount_type
18
- * @property {string} discount_level
19
- * @property {number} [value]
20
- * @property {string} [file_path]
21
- * @property {number[]} [brand_ids]
22
- * @property {number[]} [store_ids]
23
- * @property {string[]} [zone_ids]
11
+ * @property {string} name - The name of the discount.
12
+ * @property {number} company_id - The unique identifier for the company.
13
+ * @property {boolean} is_active - Indicates if the discount is currently active.
14
+ * @property {string[]} app_ids - List of application IDs associated with the discount.
15
+ * @property {string[]} [extension_ids] - List of extension IDs associated with
16
+ * the discount.
17
+ * @property {string} job_type - The type of job associated with the discount.
18
+ * @property {string} discount_type - The type of discount being offered.
19
+ * @property {string} discount_level - The level at which the discount is applied.
20
+ * @property {number} [value] - The value of the discount.
21
+ * @property {string} [file_path] - The file path for discount file.
22
+ * @property {number[]} [brand_ids] - List of brand IDs associated with the discount.
23
+ * @property {number[]} [store_ids] - List of store IDs associated with the discount.
24
+ * @property {string[]} [zone_ids] - List of zone IDs associated with the discount.
25
+ * @property {string[]} [price_factory_ids] - List of price_factory IDs
26
+ * associated with the discount.
24
27
  * @property {ValidityObject} validity
25
28
  * @property {DiscountMeta} [discount_meta]
26
29
  */
@@ -37,151 +40,158 @@ const Joi = require("joi");
37
40
 
38
41
  /**
39
42
  * @typedef DiscountJob
40
- * @property {string} _id
41
- * @property {string} name
42
- * @property {number} company_id
43
- * @property {boolean} is_active
44
- * @property {string[]} [app_ids]
45
- * @property {string} [job_type]
46
- * @property {string} [discount_type]
47
- * @property {string} [discount_level]
48
- * @property {number} [value]
49
- * @property {string} [file_path]
50
- * @property {number[]} [brand_ids]
51
- * @property {number[]} [store_ids]
52
- * @property {string[]} [zone_ids]
43
+ * @property {string} _id - The unique identifier for the discount job.
44
+ * @property {string} name - The name of the discount job.
45
+ * @property {number} company_id - The unique identifier for the company.
46
+ * @property {boolean} is_active - Indicates if the discount job is currently active.
47
+ * @property {string[]} app_ids - List of application IDs associated with the
48
+ * discount job.
49
+ * @property {string} job_type - The type of job associated with the discount job.
50
+ * @property {string} [discount_type] - The type of discount being offered.
51
+ * @property {string} discount_level - The level at which the discount is applied.
52
+ * @property {number} [value] - The value of the discount.
53
+ * @property {string} [file_path] - The file path for discount file.
54
+ * @property {number[]} [brand_ids] - List of brand IDs associated with the discount job.
55
+ * @property {number[]} [store_ids] - List of store IDs associated with the discount job.
56
+ * @property {string[]} [zone_ids] - List of zone IDs associated with the discount job.
57
+ * @property {string[]} [price_factory_ids] - List of price_factory IDs
58
+ * associated with the discount.
53
59
  * @property {DiscountMeta} [discount_meta]
54
60
  * @property {ValidityObject} validity
55
- * @property {string} created_on
56
- * @property {string} modified_on
61
+ * @property {string} created_on - The date and time when the discount job was created.
62
+ * @property {string} modified_on - The date and time when the discount job was
63
+ * last modified.
57
64
  * @property {UserDetails} created_by
58
65
  * @property {UserDetails} modified_by
59
- * @property {Object} [meta]
66
+ * @property {Object} [meta] - Additional metadata for the discount job.
60
67
  */
61
68
 
62
69
  /**
63
70
  * @typedef FileJobBody
64
- * @property {string} [name]
65
- * @property {number} [company_id]
66
- * @property {boolean} [is_active]
67
- * @property {string[]} [app_ids]
68
- * @property {string} [job_type]
69
- * @property {string} [discount_type]
70
- * @property {string} [discount_level]
71
- * @property {number} [value]
72
- * @property {string} [file_path]
73
- * @property {number[]} [brand_ids]
74
- * @property {number[]} [store_ids]
75
- * @property {string[]} [extension_ids]
76
- * @property {string[]} [zone_ids]
71
+ * @property {string} [name] - The name of the job.
72
+ * @property {number} [company_id] - Unique identifier for the company.
73
+ * @property {boolean} [is_active] - Indicates if the job is active.
74
+ * @property {string[]} [app_ids] - List of application identifiers.
75
+ * @property {string} [job_type] - Type of job being processed.
76
+ * @property {string} [discount_type] - Type of discount applied.
77
+ * @property {string} [discount_level] - Level at which the discount is applied.
78
+ * @property {number} [value] - Value of the discount.
79
+ * @property {string} [file_path] - Path to the discount file associated with the job.
80
+ * @property {number[]} [brand_ids] - List of brand identifiers.
81
+ * @property {number[]} [store_ids] - List of store identifiers.
82
+ * @property {string[]} [extension_ids] - List of extension identifiers.
83
+ * @property {string[]} [zone_ids] - List of zone identifiers.
77
84
  * @property {DiscountMeta} [discount_meta]
78
85
  * @property {ValidityObject} [validity]
79
- * @property {string} [created_on]
80
- * @property {string} [modified_on]
86
+ * @property {string} [created_on] - Timestamp when the job was created.
87
+ * @property {string} [modified_on] - Timestamp when the job was last modified.
81
88
  * @property {UserDetails} [created_by]
82
89
  * @property {UserDetails} [modified_by]
83
- * @property {Object} [meta]
90
+ * @property {Object} [meta] - Additional metadata for the job.
84
91
  */
85
92
 
86
93
  /**
87
94
  * @typedef ListOrCalender
88
- * @property {DiscountJob[]} items
95
+ * @property {DiscountJob[]} items - List of discount jobs.
89
96
  * @property {Page} page
90
97
  */
91
98
 
92
99
  /**
93
100
  * @typedef DiscountItems
94
- * @property {string} [item_code]
95
- * @property {string} [brand_name]
96
- * @property {string} [seller_identifier]
97
- * @property {string} discount_type
98
- * @property {number} value
101
+ * @property {string} [item_code] - Unique code for the item.
102
+ * @property {string} [brand_name] - Name of the brand.
103
+ * @property {string} [seller_identifier] - Unique Identifier for the size.
104
+ * @property {string} discount_type - Type of discount applied.
105
+ * @property {number} value - Value of the discount.
99
106
  * @property {DiscountMeta} [discount_meta]
100
107
  */
101
108
 
102
109
  /**
103
110
  * @typedef BulkDiscount
104
- * @property {number} company_id
105
- * @property {DiscountItems[]} items
111
+ * @property {number} company_id - Uinque Identifier for the company.
112
+ * @property {DiscountItems[]} items - List of discount items.
106
113
  */
107
114
 
108
115
  /**
109
- * @typedef FileJobResponse
110
- * @property {string} stage
111
- * @property {number} total
112
- * @property {number} failed
113
- * @property {number} company_id
116
+ * @typedef FileJobResponseSchema
117
+ * @property {string} stage - Current stage of the file job.
118
+ * @property {number} total - Total number of items processed.
119
+ * @property {number} failed - Number of items that failed processing.
120
+ * @property {number} company_id - Identifier for the company.
114
121
  * @property {FileJobBody} [body]
115
- * @property {string} type
116
- * @property {string} [file_type]
122
+ * @property {string} type - Type of file job.
123
+ * @property {string} [file_type] - Type of file being processed.
117
124
  * @property {string} _id - A unique identifier to distinguish and identify a job.
118
- * @property {string} [file_path]
119
- * @property {number} [progress]
120
- * @property {string[]} [extension_ids]
121
- * @property {string[]} [zone_ids]
122
- * @property {string} [created_on]
123
- * @property {string} [modified_on]
125
+ * @property {string} [file_path] - Path to the disocunt file.
126
+ * @property {number} [progress] - Progress of the file job.
127
+ * @property {string[]} [extension_ids] - List of extension identifiers.
128
+ * @property {string[]} [zone_ids] - List of zone identifiers.
129
+ * @property {string} [created_on] - Timestamp when the job was created.
130
+ * @property {string} [modified_on] - Timestamp when the job was last modified.
124
131
  * @property {UserDetails} [created_by]
125
132
  */
126
133
 
127
134
  /**
128
- * @typedef FileJobRequest
129
- * @property {string} name
130
- * @property {boolean} is_active
131
- * @property {number} company_id
132
- * @property {string[]} [app_ids]
133
- * @property {string} [job_type]
134
- * @property {string} [discount_type]
135
- * @property {string} [discount_level]
136
- * @property {string} [file_path]
137
- * @property {number[]} [brand_ids]
138
- * @property {number[]} [store_ids]
135
+ * @typedef FileJobRequestSchema
136
+ * @property {string} name - Name of the file job.
137
+ * @property {boolean} is_active - Indicates if the job is active.
138
+ * @property {number} company_id - Unique Identifier for the company.
139
+ * @property {string[]} app_ids - List of application identifiers.
140
+ * @property {string} job_type - Type of job.
141
+ * @property {string} [discount_type] - Type of discount.
142
+ * @property {string} discount_level - Level at which the discount is applied.
143
+ * @property {string} [file_path] - Path to the disocunt file.
144
+ * @property {number[]} [brand_ids] - List of brand identifiers.
145
+ * @property {number[]} [store_ids] - List of store identifiers.
146
+ * @property {string[]} [price_factory_ids] - List of price_factory IDs
147
+ * associated with the discount.
139
148
  * @property {ValidityObject} validity
140
- * @property {Object} [meta]
149
+ * @property {Object} [meta] - Additional metadata for the disocunt.
141
150
  */
142
151
 
143
152
  /**
144
153
  * @typedef DownloadFileJob
145
- * @property {number[]} [brand_ids]
146
- * @property {number[]} [store_ids]
154
+ * @property {number[]} [brand_ids] - List of brand identifiers.
155
+ * @property {number[]} [store_ids] - List of store identifiers.
147
156
  */
148
157
 
149
158
  /**
150
- * @typedef CancelJobResponse
151
- * @property {boolean} success
159
+ * @typedef CancelJobResponseSchema
160
+ * @property {boolean} success - Indicates if the job cancellation was successful.
152
161
  */
153
162
 
154
163
  /**
155
164
  * @typedef Page
156
- * @property {number} [item_total] - The total number of items on the page.
165
+ * @property {number} [item_total] - The total number of all items across all pages.
157
166
  * @property {string} [next_id] - The identifier for the next page.
158
167
  * @property {boolean} [has_previous] - Indicates whether there is a previous page.
159
168
  * @property {boolean} [has_next] - Indicates whether there is a next page.
160
169
  * @property {number} [current] - The current page number.
161
- * @property {string} type - The type of the page, such as 'PageType'.
170
+ * @property {string} type - The type of the page, can be 'cursor' or 'number'.
162
171
  * @property {number} [size] - The number of items per page.
172
+ * @property {number} [page_size] - The number of items per page.
163
173
  */
164
174
 
165
175
  /**
166
176
  * @typedef UserDetails
167
- * @property {string} username
168
- * @property {string} user_id
177
+ * @property {string} username - Username of the user.
178
+ * @property {string} user_id - Unique identifier for the user.
169
179
  */
170
180
 
171
181
  /**
172
182
  * @typedef BadRequestObject
173
- * @property {string} message
183
+ * @property {string} message - A brief description of the error encountered.
174
184
  */
175
185
 
176
186
  /**
177
187
  * @typedef BadRequestData
178
- * @property {string} [message]
188
+ * @property {string} [message] - Detailed information about the error.
179
189
  */
180
190
 
181
191
  /**
182
192
  * @typedef BadRequestObjectGet
183
- * @property {string} [message]
184
- * @property {string} [error]
193
+ * @property {string} [message] - A brief description of the error encountered.
194
+ * @property {string} [error] - Specific error code or identifier.
185
195
  * @property {BadRequestData} [data]
186
196
  */
187
197
 
@@ -210,6 +220,7 @@ class DiscountPlatformModel {
210
220
  brand_ids: Joi.array().items(Joi.number()),
211
221
  store_ids: Joi.array().items(Joi.number()),
212
222
  zone_ids: Joi.array().items(Joi.string().allow("")),
223
+ price_factory_ids: Joi.array().items(Joi.string().allow("")),
213
224
  validity: DiscountPlatformModel.ValidityObject().required(),
214
225
  discount_meta: DiscountPlatformModel.DiscountMeta(),
215
226
  });
@@ -231,22 +242,23 @@ class DiscountPlatformModel {
231
242
  name: Joi.string().allow("").required(),
232
243
  company_id: Joi.number().required(),
233
244
  is_active: Joi.boolean().required(),
234
- app_ids: Joi.array().items(Joi.string().allow("")),
235
- job_type: Joi.string().allow(""),
245
+ app_ids: Joi.array().items(Joi.string().allow("")).required(),
246
+ job_type: Joi.string().allow("").required(),
236
247
  discount_type: Joi.string().allow(""),
237
- discount_level: Joi.string().allow(""),
248
+ discount_level: Joi.string().allow("").required(),
238
249
  value: Joi.number(),
239
250
  file_path: Joi.string().allow(""),
240
251
  brand_ids: Joi.array().items(Joi.number()),
241
252
  store_ids: Joi.array().items(Joi.number()),
242
253
  zone_ids: Joi.array().items(Joi.string().allow("")),
254
+ price_factory_ids: Joi.array().items(Joi.string().allow("")),
243
255
  discount_meta: DiscountPlatformModel.DiscountMeta(),
244
256
  validity: DiscountPlatformModel.ValidityObject().required(),
245
257
  created_on: Joi.string().allow("").required(),
246
258
  modified_on: Joi.string().allow("").required(),
247
259
  created_by: DiscountPlatformModel.UserDetails().required(),
248
260
  modified_by: DiscountPlatformModel.UserDetails().required(),
249
- meta: Joi.any(),
261
+ meta: Joi.object().pattern(/\S/, Joi.any()),
250
262
  });
251
263
  }
252
264
 
@@ -272,7 +284,7 @@ class DiscountPlatformModel {
272
284
  modified_on: Joi.string().allow(""),
273
285
  created_by: DiscountPlatformModel.UserDetails(),
274
286
  modified_by: DiscountPlatformModel.UserDetails(),
275
- meta: Joi.any(),
287
+ meta: Joi.object().pattern(/\S/, Joi.any()),
276
288
  });
277
289
  }
278
290
 
@@ -306,8 +318,8 @@ class DiscountPlatformModel {
306
318
  });
307
319
  }
308
320
 
309
- /** @returns {FileJobResponse} */
310
- static FileJobResponse() {
321
+ /** @returns {FileJobResponseSchema} */
322
+ static FileJobResponseSchema() {
311
323
  return Joi.object({
312
324
  stage: Joi.string().allow("").required(),
313
325
  total: Joi.number().required(),
@@ -327,21 +339,22 @@ class DiscountPlatformModel {
327
339
  });
328
340
  }
329
341
 
330
- /** @returns {FileJobRequest} */
331
- static FileJobRequest() {
342
+ /** @returns {FileJobRequestSchema} */
343
+ static FileJobRequestSchema() {
332
344
  return Joi.object({
333
345
  name: Joi.string().allow("").required(),
334
346
  is_active: Joi.boolean().required(),
335
347
  company_id: Joi.number().required(),
336
- app_ids: Joi.array().items(Joi.string().allow("")),
337
- job_type: Joi.string().allow(""),
348
+ app_ids: Joi.array().items(Joi.string().allow("")).required(),
349
+ job_type: Joi.string().allow("").required(),
338
350
  discount_type: Joi.string().allow(""),
339
- discount_level: Joi.string().allow(""),
351
+ discount_level: Joi.string().allow("").required(),
340
352
  file_path: Joi.string().allow(""),
341
353
  brand_ids: Joi.array().items(Joi.number()),
342
354
  store_ids: Joi.array().items(Joi.number()),
355
+ price_factory_ids: Joi.array().items(Joi.string().allow("")),
343
356
  validity: DiscountPlatformModel.ValidityObject().required(),
344
- meta: Joi.any(),
357
+ meta: Joi.object().pattern(/\S/, Joi.any()),
345
358
  });
346
359
  }
347
360
 
@@ -353,8 +366,8 @@ class DiscountPlatformModel {
353
366
  });
354
367
  }
355
368
 
356
- /** @returns {CancelJobResponse} */
357
- static CancelJobResponse() {
369
+ /** @returns {CancelJobResponseSchema} */
370
+ static CancelJobResponseSchema() {
358
371
  return Joi.object({
359
372
  success: Joi.boolean().required(),
360
373
  });
@@ -370,6 +383,7 @@ class DiscountPlatformModel {
370
383
  current: Joi.number(),
371
384
  type: Joi.string().allow("").required(),
372
385
  size: Joi.number(),
386
+ page_size: Joi.number(),
373
387
  });
374
388
  }
375
389
 
@@ -1,11 +1,11 @@
1
1
  export = DiscountPlatformValidator;
2
2
  /**
3
3
  * @typedef CancelDownloadJobParam
4
- * @property {string} id - Id
4
+ * @property {string} id - Unique identifier for the discount
5
5
  */
6
6
  /**
7
7
  * @typedef CancelValidationJobParam
8
- * @property {string} id - Id
8
+ * @property {string} id - Unique identifier for the discount.
9
9
  */
10
10
  /**
11
11
  * @typedef CreateDiscountParam
@@ -13,48 +13,58 @@ export = DiscountPlatformValidator;
13
13
  */
14
14
  /**
15
15
  * @typedef DownloadDiscountFileParam
16
- * @property {string} type - Type
16
+ * @property {string} type - The type of discount file to download, either
17
+ * 'product' or 'inventory'.
17
18
  * @property {DiscountPlatformModel.DownloadFileJob} body
18
19
  */
19
20
  /**
20
21
  * @typedef GetDiscountParam
21
- * @property {string} id - Unique id.
22
+ * @property {string} id - Unique identifier for the discount.
22
23
  */
23
24
  /**
24
25
  * @typedef GetDiscountsParam
25
- * @property {string} [view] - Listing or calender. Default is listing.
26
+ * @property {string} [view] - Specifies the format in which the discounts are
27
+ * displayed. Options are 'listing' for a list view or 'calendar' for a
28
+ * calendar view. Defaults to 'listing'.
26
29
  * @property {string} [q] - The search query. This can be a partial or complete
27
30
  * name of a discount.
28
- * @property {number} [pageNo] - Page number. Default is 1.
29
- * @property {number} [pageSize] - Page size. Default is 12.
30
- * @property {boolean} [archived] - Archived. Default is false.
31
- * @property {number} [month] - Month. Default is current month.
32
- * @property {number} [year] - Year. Default is current year.
33
- * @property {string} [type] - Basic or custom.
34
- * @property {string[]} [appIds] - Application ids.
31
+ * @property {number} [pageNo] - The page number to navigate through the given
32
+ * set of results. Default is 1.
33
+ * @property {number} [pageSize] - Number of items to retrieve in each page.
34
+ * Default is 12.
35
+ * @property {boolean} [archived] - Indicates whether to include expired
36
+ * discounts in the results. Defaults to false.
37
+ * @property {number} [month] - The month for which discounts is requested.
38
+ * Defaults to the current month if not specified.
39
+ * @property {number} [year] - The year for which discounts is requested.
40
+ * Defaults to the current year if not specified.
41
+ * @property {string} [type] - Specifies the type of disocunt to list, either
42
+ * 'basic' or 'custom'.
43
+ * @property {string[]} [appIds] - A `application_id` is a unique identifier for
44
+ * a particular sales channel.
35
45
  */
36
46
  /**
37
47
  * @typedef GetDownloadJobParam
38
- * @property {string} id - Id
48
+ * @property {string} id - Unique identifier for the discount.
39
49
  */
40
50
  /**
41
51
  * @typedef GetValidationJobParam
42
- * @property {string} id - Id
52
+ * @property {string} id - Unique identifier for the discount.
43
53
  */
44
54
  /**
45
55
  * @typedef UpdateDiscountParam
46
- * @property {string} id - Id
56
+ * @property {string} id - Unique identifier for the discount.
47
57
  * @property {DiscountPlatformModel.CreateUpdateDiscount} body
48
58
  */
49
59
  /**
50
60
  * @typedef UpsertDiscountItemsParam
51
- * @property {string} id - Job ID of the discount.
61
+ * @property {string} id - Unique identifier for the discount.
52
62
  * @property {DiscountPlatformModel.BulkDiscount} body
53
63
  */
54
64
  /**
55
65
  * @typedef ValidateDiscountFileParam
56
- * @property {string} [discount] - Discount
57
- * @property {DiscountPlatformModel.FileJobRequest} body
66
+ * @property {string} [discount] - Unique identifier for the discount.
67
+ * @property {DiscountPlatformModel.FileJobRequestSchema} body
58
68
  */
59
69
  declare class DiscountPlatformValidator {
60
70
  /** @returns {CancelDownloadJobParam} */
@@ -85,13 +95,13 @@ declare namespace DiscountPlatformValidator {
85
95
  }
86
96
  type CancelDownloadJobParam = {
87
97
  /**
88
- * - Id
98
+ * - Unique identifier for the discount
89
99
  */
90
100
  id: string;
91
101
  };
92
102
  type CancelValidationJobParam = {
93
103
  /**
94
- * - Id
104
+ * - Unique identifier for the discount.
95
105
  */
96
106
  id: string;
97
107
  };
@@ -100,20 +110,23 @@ type CreateDiscountParam = {
100
110
  };
101
111
  type DownloadDiscountFileParam = {
102
112
  /**
103
- * - Type
113
+ * - The type of discount file to download, either
114
+ * 'product' or 'inventory'.
104
115
  */
105
116
  type: string;
106
117
  body: DiscountPlatformModel.DownloadFileJob;
107
118
  };
108
119
  type GetDiscountParam = {
109
120
  /**
110
- * - Unique id.
121
+ * - Unique identifier for the discount.
111
122
  */
112
123
  id: string;
113
124
  };
114
125
  type GetDiscountsParam = {
115
126
  /**
116
- * - Listing or calender. Default is listing.
127
+ * - Specifies the format in which the discounts are
128
+ * displayed. Options are 'listing' for a list view or 'calendar' for a
129
+ * calendar view. Defaults to 'listing'.
117
130
  */
118
131
  view?: string;
119
132
  /**
@@ -122,65 +135,72 @@ type GetDiscountsParam = {
122
135
  */
123
136
  q?: string;
124
137
  /**
125
- * - Page number. Default is 1.
138
+ * - The page number to navigate through the given
139
+ * set of results. Default is 1.
126
140
  */
127
141
  pageNo?: number;
128
142
  /**
129
- * - Page size. Default is 12.
143
+ * - Number of items to retrieve in each page.
144
+ * Default is 12.
130
145
  */
131
146
  pageSize?: number;
132
147
  /**
133
- * - Archived. Default is false.
148
+ * - Indicates whether to include expired
149
+ * discounts in the results. Defaults to false.
134
150
  */
135
151
  archived?: boolean;
136
152
  /**
137
- * - Month. Default is current month.
153
+ * - The month for which discounts is requested.
154
+ * Defaults to the current month if not specified.
138
155
  */
139
156
  month?: number;
140
157
  /**
141
- * - Year. Default is current year.
158
+ * - The year for which discounts is requested.
159
+ * Defaults to the current year if not specified.
142
160
  */
143
161
  year?: number;
144
162
  /**
145
- * - Basic or custom.
163
+ * - Specifies the type of disocunt to list, either
164
+ * 'basic' or 'custom'.
146
165
  */
147
166
  type?: string;
148
167
  /**
149
- * - Application ids.
168
+ * - A `application_id` is a unique identifier for
169
+ * a particular sales channel.
150
170
  */
151
171
  appIds?: string[];
152
172
  };
153
173
  type GetDownloadJobParam = {
154
174
  /**
155
- * - Id
175
+ * - Unique identifier for the discount.
156
176
  */
157
177
  id: string;
158
178
  };
159
179
  type GetValidationJobParam = {
160
180
  /**
161
- * - Id
181
+ * - Unique identifier for the discount.
162
182
  */
163
183
  id: string;
164
184
  };
165
185
  type UpdateDiscountParam = {
166
186
  /**
167
- * - Id
187
+ * - Unique identifier for the discount.
168
188
  */
169
189
  id: string;
170
190
  body: DiscountPlatformModel.CreateUpdateDiscount;
171
191
  };
172
192
  type UpsertDiscountItemsParam = {
173
193
  /**
174
- * - Job ID of the discount.
194
+ * - Unique identifier for the discount.
175
195
  */
176
196
  id: string;
177
197
  body: DiscountPlatformModel.BulkDiscount;
178
198
  };
179
199
  type ValidateDiscountFileParam = {
180
200
  /**
181
- * - Discount
201
+ * - Unique identifier for the discount.
182
202
  */
183
203
  discount?: string;
184
- body: DiscountPlatformModel.FileJobRequest;
204
+ body: DiscountPlatformModel.FileJobRequestSchema;
185
205
  };
186
206
  import DiscountPlatformModel = require("./DiscountPlatformModel");