@gofynd/fdk-client-javascript 0.1.37 → 1.0.1

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 (353) hide show
  1. package/README.md +24 -0
  2. package/application.d.ts +2 -1
  3. package/application.js +2 -1
  4. package/documentation/application/CART.md +315 -289
  5. package/documentation/application/CATALOG.md +438 -415
  6. package/documentation/application/FILESTORAGE.md +2 -0
  7. package/documentation/application/LEAD.md +18 -18
  8. package/documentation/application/LOGISTIC.md +45 -45
  9. package/documentation/application/ORDER.md +277 -277
  10. package/documentation/application/PAYMENT.md +251 -251
  11. package/documentation/application/POSCART.md +318 -292
  12. package/documentation/application/REWARDS.md +1 -0
  13. package/documentation/application/USER.md +19 -14
  14. package/documentation/platform/CART.md +465 -462
  15. package/documentation/platform/CATALOG.md +2792 -2711
  16. package/documentation/platform/COMPANYPROFILE.md +200 -362
  17. package/documentation/platform/DISCOUNT.md +86 -0
  18. package/documentation/platform/FILESTORAGE.md +2 -0
  19. package/documentation/platform/LEAD.md +60 -60
  20. package/documentation/platform/ORDER.md +1451 -1654
  21. package/documentation/platform/PAYMENT.md +94 -94
  22. package/documentation/platform/REWARDS.md +145 -0
  23. package/documentation/platform/USER.md +24 -14
  24. package/index.d.ts +4 -1
  25. package/index.js +13 -4
  26. package/package.json +9 -9
  27. package/platform.d.ts +2 -1
  28. package/platform.js +3 -2
  29. package/public.d.ts +1 -0
  30. package/public.js +3 -2
  31. package/sdk/application/ApplicationAPIClient.js +3 -1
  32. package/sdk/application/ApplicationClient.d.ts +16 -16
  33. package/sdk/application/ApplicationClient.js +32 -16
  34. package/sdk/application/ApplicationConfig.js +3 -2
  35. package/sdk/application/ApplicationModels.d.ts +0 -832
  36. package/sdk/application/ApplicationModels.js +3 -10574
  37. package/sdk/application/{client → Cart}/CartApplicationClient.d.ts +9 -3
  38. package/sdk/application/{client → Cart}/CartApplicationClient.js +316 -8
  39. package/sdk/application/Cart/CartApplicationModel.d.ts +81 -0
  40. package/sdk/application/Cart/CartApplicationModel.js +1136 -0
  41. package/sdk/application/{models/CartValidator.js → Cart/CartApplicationValidator.js} +17 -12
  42. package/sdk/application/{client → Catalog}/CatalogApplicationClient.d.ts +8 -5
  43. package/sdk/application/{client → Catalog}/CatalogApplicationClient.js +389 -8
  44. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +117 -0
  45. package/sdk/application/Catalog/CatalogApplicationModel.js +1606 -0
  46. package/sdk/application/{models/CatalogValidator.js → Catalog/CatalogApplicationValidator.js} +4 -1
  47. package/sdk/application/{client → Common}/CommonApplicationClient.js +24 -2
  48. package/sdk/application/Common/CommonApplicationModel.d.ts +20 -0
  49. package/sdk/application/Common/CommonApplicationModel.js +228 -0
  50. package/sdk/{platform/models/CommonValidator.js → application/Common/CommonApplicationValidator.js} +3 -1
  51. package/sdk/application/{client → Communication}/CommunicationApplicationClient.js +43 -2
  52. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +15 -0
  53. package/sdk/application/Communication/CommunicationApplicationModel.js +144 -0
  54. package/sdk/application/{models/CommunicationValidator.js → Communication/CommunicationApplicationValidator.js} +5 -3
  55. package/sdk/application/{client → Configuration}/ConfigurationApplicationClient.js +202 -2
  56. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +111 -0
  57. package/sdk/application/Configuration/ConfigurationApplicationModel.js +1182 -0
  58. package/sdk/application/{models/ConfigurationValidator.js → Configuration/ConfigurationApplicationValidator.js} +4 -2
  59. package/sdk/application/{client → Content}/ContentApplicationClient.js +217 -2
  60. package/sdk/application/Content/ContentApplicationModel.d.ts +105 -0
  61. package/sdk/application/Content/ContentApplicationModel.js +1349 -0
  62. package/sdk/application/{models/ContentValidator.js → Content/ContentApplicationValidator.js} +3 -1
  63. package/sdk/application/{client → FileStorage}/FileStorageApplicationClient.js +35 -2
  64. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +21 -0
  65. package/sdk/application/FileStorage/FileStorageApplicationModel.js +244 -0
  66. package/sdk/application/{models/FileStorageValidator.js → FileStorage/FileStorageApplicationValidator.js} +6 -4
  67. package/sdk/application/{client → Lead}/LeadApplicationClient.js +83 -2
  68. package/sdk/application/Lead/LeadApplicationModel.d.ts +55 -0
  69. package/sdk/application/Lead/LeadApplicationModel.js +690 -0
  70. package/sdk/application/{models/LeadValidator.js → Lead/LeadApplicationValidator.js} +6 -4
  71. package/sdk/application/{client → Logistic}/LogisticApplicationClient.js +46 -2
  72. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +26 -0
  73. package/sdk/application/Logistic/LogisticApplicationModel.js +286 -0
  74. package/sdk/application/{models/LogisticValidator.js → Logistic/LogisticApplicationValidator.js} +5 -3
  75. package/sdk/application/{client → Order}/OrderApplicationClient.js +148 -2
  76. package/sdk/application/Order/OrderApplicationModel.d.ts +67 -0
  77. package/sdk/application/Order/OrderApplicationModel.js +872 -0
  78. package/sdk/application/{models/OrderValidator.js → Order/OrderApplicationValidator.js} +5 -3
  79. package/sdk/application/{client → Payment}/PaymentApplicationClient.js +530 -2
  80. package/sdk/application/Payment/PaymentApplicationModel.d.ts +96 -0
  81. package/sdk/application/Payment/PaymentApplicationModel.js +1318 -0
  82. package/sdk/application/{models/PaymentValidator.js → Payment/PaymentApplicationValidator.js} +25 -23
  83. package/sdk/application/{client → PosCart}/PosCartApplicationClient.d.ts +9 -3
  84. package/sdk/application/{client → PosCart}/PosCartApplicationClient.js +343 -8
  85. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +79 -0
  86. package/sdk/application/PosCart/PosCartApplicationModel.js +1132 -0
  87. package/sdk/application/{models/PosCartValidator.js → PosCart/PosCartApplicationValidator.js} +18 -13
  88. package/sdk/application/{client → Rewards}/RewardsApplicationClient.js +83 -2
  89. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +23 -0
  90. package/sdk/application/Rewards/RewardsApplicationModel.js +276 -0
  91. package/sdk/application/{models/RewardsValidator.js → Rewards/RewardsApplicationValidator.js} +6 -4
  92. package/sdk/application/{client → Share}/ShareApplicationClient.js +89 -2
  93. package/sdk/application/Share/ShareApplicationModel.d.ts +16 -0
  94. package/sdk/application/Share/ShareApplicationModel.js +178 -0
  95. package/sdk/application/{models/ShareValidator.js → Share/ShareApplicationValidator.js} +4 -2
  96. package/sdk/application/{client → Theme}/ThemeApplicationClient.js +46 -2
  97. package/sdk/application/Theme/ThemeApplicationModel.d.ts +49 -0
  98. package/sdk/application/Theme/ThemeApplicationModel.js +486 -0
  99. package/sdk/application/{models/ThemeValidator.js → Theme/ThemeApplicationValidator.js} +3 -1
  100. package/sdk/application/{client → User}/UserApplicationClient.js +407 -2
  101. package/sdk/application/User/UserApplicationModel.d.ts +95 -0
  102. package/sdk/application/User/UserApplicationModel.js +998 -0
  103. package/sdk/application/{models/UserValidator.js → User/UserApplicationValidator.js} +31 -29
  104. package/sdk/application/index.d.ts +18 -0
  105. package/sdk/application/index.js +33 -0
  106. package/sdk/common/AxiosHelper.js +23 -10
  107. package/sdk/common/Logger.d.ts +2 -0
  108. package/sdk/common/Logger.js +6 -0
  109. package/sdk/common/curlHelper.d.ts +2 -0
  110. package/sdk/common/curlHelper.js +95 -0
  111. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +101 -0
  112. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +399 -0
  113. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +11 -0
  114. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +56 -0
  115. package/sdk/platform/{client → Analytics}/AnalyticsPlatformClient.js +60 -2
  116. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +23 -0
  117. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +252 -0
  118. package/sdk/platform/{models/AnalyticsValidator.js → Analytics/AnalyticsPlatformValidator.js} +5 -4
  119. package/sdk/platform/{client → AuditTrail}/AuditTrailPlatformClient.js +48 -2
  120. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +18 -0
  121. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +144 -0
  122. package/sdk/platform/{models/AuditTrailValidator.js → AuditTrail/AuditTrailPlatformValidator.js} +3 -2
  123. package/sdk/platform/{client → Billing}/BillingPlatformClient.js +162 -2
  124. package/sdk/platform/Billing/BillingPlatformModel.d.ts +65 -0
  125. package/sdk/platform/Billing/BillingPlatformModel.js +906 -0
  126. package/sdk/platform/{models/BillingValidator.js → Billing/BillingPlatformValidator.js} +6 -5
  127. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +293 -0
  128. package/sdk/platform/Cart/CartPlatformApplicationClient.js +1001 -0
  129. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +20 -0
  130. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +138 -0
  131. package/sdk/platform/Cart/CartPlatformModel.d.ts +104 -0
  132. package/sdk/platform/Cart/CartPlatformModel.js +1516 -0
  133. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +856 -0
  134. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +2927 -0
  135. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +56 -0
  136. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +389 -0
  137. package/sdk/platform/{client → Catalog}/CatalogPlatformClient.js +1402 -349
  138. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +317 -0
  139. package/sdk/platform/Catalog/CatalogPlatformModel.js +4702 -0
  140. package/sdk/platform/{models/CatalogValidator.js → Catalog/CatalogPlatformValidator.js} +92 -91
  141. package/sdk/platform/{client → Common}/CommonPlatformClient.js +28 -2
  142. package/sdk/platform/Common/CommonPlatformModel.d.ts +20 -0
  143. package/sdk/platform/Common/CommonPlatformModel.js +228 -0
  144. package/sdk/{application/models/CommonValidator.js → platform/Common/CommonPlatformValidator.js} +2 -1
  145. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +611 -0
  146. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +2243 -0
  147. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +43 -0
  148. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +277 -0
  149. package/sdk/platform/{client → Communication}/CommunicationPlatformClient.js +17 -2
  150. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +102 -0
  151. package/sdk/platform/Communication/CommunicationPlatformModel.js +1312 -0
  152. package/sdk/platform/{models/CommunicationValidator.js → Communication/CommunicationPlatformValidator.js} +2 -1
  153. package/sdk/platform/{client → CompanyProfile}/CompanyProfilePlatformClient.d.ts +0 -9
  154. package/sdk/platform/{client → CompanyProfile}/CompanyProfilePlatformClient.js +176 -28
  155. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +44 -0
  156. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +706 -0
  157. package/sdk/platform/{models/CompanyProfileValidator.d.ts → CompanyProfile/CompanyProfilePlatformValidator.d.ts} +0 -1
  158. package/sdk/platform/{models/CompanyProfileValidator.js → CompanyProfile/CompanyProfilePlatformValidator.js} +9 -14
  159. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +309 -0
  160. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +1322 -0
  161. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +31 -0
  162. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +164 -0
  163. package/sdk/platform/{client → Configuration}/ConfigurationPlatformClient.js +284 -2
  164. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +185 -0
  165. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2072 -0
  166. package/sdk/platform/{models/ConfigurationValidator.js → Configuration/ConfigurationPlatformValidator.js} +9 -8
  167. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +781 -0
  168. package/sdk/platform/Content/ContentPlatformApplicationClient.js +3074 -0
  169. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +71 -0
  170. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +422 -0
  171. package/sdk/platform/Content/ContentPlatformModel.d.ts +105 -0
  172. package/sdk/platform/Content/ContentPlatformModel.js +1349 -0
  173. package/sdk/platform/{client → Discount}/DiscountPlatformClient.d.ts +11 -0
  174. package/sdk/platform/{client → Discount}/DiscountPlatformClient.js +187 -2
  175. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +15 -0
  176. package/sdk/platform/Discount/DiscountPlatformModel.js +176 -0
  177. package/sdk/platform/{models/DiscountValidator.d.ts → Discount/DiscountPlatformValidator.d.ts} +1 -0
  178. package/sdk/platform/{models/DiscountValidator.js → Discount/DiscountPlatformValidator.js} +13 -5
  179. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +114 -0
  180. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +301 -0
  181. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +7 -0
  182. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +38 -0
  183. package/sdk/platform/{client → FileStorage}/FileStoragePlatformClient.js +78 -2
  184. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +21 -0
  185. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +244 -0
  186. package/sdk/platform/{models/FileStorageValidator.js → FileStorage/FileStoragePlatformValidator.js} +6 -5
  187. package/sdk/platform/{client → Inventory}/InventoryPlatformClient.js +163 -2
  188. package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +62 -0
  189. package/sdk/platform/Inventory/InventoryPlatformModel.js +1178 -0
  190. package/sdk/platform/{models/InventoryValidator.js → Inventory/InventoryPlatformValidator.js} +5 -4
  191. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +138 -0
  192. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +559 -0
  193. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +16 -0
  194. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +90 -0
  195. package/sdk/platform/{client → Lead}/LeadPlatformClient.js +142 -2
  196. package/sdk/platform/Lead/LeadPlatformModel.d.ts +55 -0
  197. package/sdk/platform/Lead/LeadPlatformModel.js +690 -0
  198. package/sdk/platform/{models/LeadValidator.js → Lead/LeadPlatformValidator.js} +7 -6
  199. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +59 -0
  200. package/sdk/platform/Order/OrderPlatformApplicationClient.js +207 -0
  201. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +6 -0
  202. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +37 -0
  203. package/sdk/platform/{client → Order}/OrderPlatformClient.d.ts +24 -55
  204. package/sdk/platform/{client → Order}/OrderPlatformClient.js +693 -146
  205. package/sdk/platform/Order/OrderPlatformModel.d.ts +222 -0
  206. package/sdk/platform/Order/OrderPlatformModel.js +3466 -0
  207. package/sdk/platform/{models/OrderValidator.d.ts → Order/OrderPlatformValidator.d.ts} +2 -3
  208. package/sdk/platform/{models/OrderValidator.js → Order/OrderPlatformValidator.js} +32 -48
  209. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +30 -0
  210. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +100 -0
  211. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +5 -0
  212. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +20 -0
  213. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +7 -0
  214. package/sdk/platform/Partner/PartnerPlatformModel.js +54 -0
  215. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +108 -0
  216. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +498 -0
  217. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +14 -0
  218. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +73 -0
  219. package/sdk/platform/{client → Payment}/PaymentPlatformClient.js +141 -2
  220. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +44 -0
  221. package/sdk/platform/Payment/PaymentPlatformModel.js +552 -0
  222. package/sdk/platform/{models/PaymentValidator.js → Payment/PaymentPlatformValidator.js} +6 -5
  223. package/sdk/platform/PlatformAPIClient.js +2 -1
  224. package/sdk/platform/PlatformApplicationClient.d.ts +2824 -18486
  225. package/sdk/platform/PlatformApplicationClient.js +3772 -13928
  226. package/sdk/platform/PlatformClient.d.ts +2824 -2881
  227. package/sdk/platform/PlatformClient.js +3710 -3145
  228. package/sdk/platform/PlatformConfig.js +2 -1
  229. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +150 -0
  230. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +597 -0
  231. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +16 -0
  232. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +91 -0
  233. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +24 -0
  234. package/sdk/platform/Rewards/RewardsPlatformModel.js +294 -0
  235. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +72 -0
  236. package/sdk/platform/Share/SharePlatformApplicationClient.js +235 -0
  237. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +7 -0
  238. package/sdk/platform/Share/SharePlatformApplicationValidator.js +35 -0
  239. package/sdk/platform/Share/SharePlatformModel.d.ts +15 -0
  240. package/sdk/platform/Share/SharePlatformModel.js +170 -0
  241. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +238 -0
  242. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +997 -0
  243. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +27 -0
  244. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +155 -0
  245. package/sdk/platform/Theme/ThemePlatformModel.d.ts +49 -0
  246. package/sdk/platform/Theme/ThemePlatformModel.js +486 -0
  247. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +121 -0
  248. package/sdk/platform/User/UserPlatformApplicationClient.js +506 -0
  249. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +15 -0
  250. package/sdk/platform/User/UserPlatformApplicationValidator.js +79 -0
  251. package/sdk/platform/User/UserPlatformModel.d.ts +95 -0
  252. package/sdk/platform/User/UserPlatformModel.js +998 -0
  253. package/sdk/platform/{client → Webhook}/WebhookPlatformClient.js +92 -2
  254. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +17 -0
  255. package/sdk/platform/Webhook/WebhookPlatformModel.js +208 -0
  256. package/sdk/platform/{models/WebhookValidator.js → Webhook/WebhookPlatformValidator.js} +4 -3
  257. package/sdk/platform/index.d.ts +24 -0
  258. package/sdk/platform/index.js +45 -0
  259. package/sdk/public/{client → Configuration}/ConfigurationPublicClient.js +26 -1
  260. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +20 -0
  261. package/sdk/public/Configuration/ConfigurationPublicModel.js +230 -0
  262. package/sdk/public/{models/ConfigurationValidator.js → Configuration/ConfigurationPublicValidator.js} +3 -1
  263. package/sdk/public/{client → Inventory}/InventoryPublicClient.js +76 -1
  264. package/sdk/public/Inventory/InventoryPublicModel.d.ts +22 -0
  265. package/sdk/public/Inventory/InventoryPublicModel.js +334 -0
  266. package/sdk/public/{models/InventoryValidator.js → Inventory/InventoryPublicValidator.js} +4 -2
  267. package/sdk/public/PublicClient.d.ts +3 -3
  268. package/sdk/public/PublicClient.js +8 -3
  269. package/sdk/public/{client → Webhook}/WebhookPublicClient.js +30 -1
  270. package/sdk/public/Webhook/WebhookPublicModel.d.ts +17 -0
  271. package/sdk/public/Webhook/WebhookPublicModel.js +208 -0
  272. package/sdk/public/{models/WebhookValidator.js → Webhook/WebhookPublicValidator.js} +4 -2
  273. package/sdk/public/index.d.ts +5 -0
  274. package/sdk/public/index.js +7 -0
  275. package/sdk/platform/PlatformApplicationModels.d.ts +0 -328
  276. package/sdk/platform/PlatformApplicationModels.js +0 -22658
  277. package/sdk/platform/PlatformModels.d.ts +0 -1477
  278. package/sdk/platform/PlatformModels.js +0 -20646
  279. package/sdk/platform/models/CartValidator.d.ts +0 -0
  280. package/sdk/platform/models/CartValidator.js +0 -0
  281. package/sdk/platform/models/ContentValidator.d.ts +0 -0
  282. package/sdk/platform/models/ContentValidator.js +0 -0
  283. package/sdk/platform/models/PartnerValidator.d.ts +0 -0
  284. package/sdk/platform/models/PartnerValidator.js +0 -0
  285. package/sdk/platform/models/RewardsValidator.d.ts +0 -0
  286. package/sdk/platform/models/RewardsValidator.js +0 -0
  287. package/sdk/platform/models/ShareValidator.d.ts +0 -0
  288. package/sdk/platform/models/ShareValidator.js +0 -0
  289. package/sdk/platform/models/ThemeValidator.d.ts +0 -0
  290. package/sdk/platform/models/ThemeValidator.js +0 -0
  291. package/sdk/platform/models/UserValidator.d.ts +0 -0
  292. package/sdk/platform/models/UserValidator.js +0 -0
  293. package/sdk/public/PublicModels.d.ts +0 -50
  294. package/sdk/public/PublicModels.js +0 -712
  295. package/sdk/application/{models/CartValidator.d.ts → Cart/CartApplicationValidator.d.ts} +0 -0
  296. package/sdk/application/{models/CatalogValidator.d.ts → Catalog/CatalogApplicationValidator.d.ts} +0 -0
  297. package/sdk/application/{client → Common}/CommonApplicationClient.d.ts +0 -0
  298. package/sdk/application/{models/CommonValidator.d.ts → Common/CommonApplicationValidator.d.ts} +0 -0
  299. package/sdk/application/{client → Communication}/CommunicationApplicationClient.d.ts +0 -0
  300. package/sdk/application/{models/CommunicationValidator.d.ts → Communication/CommunicationApplicationValidator.d.ts} +0 -0
  301. package/sdk/application/{client → Configuration}/ConfigurationApplicationClient.d.ts +0 -0
  302. package/sdk/application/{models/ConfigurationValidator.d.ts → Configuration/ConfigurationApplicationValidator.d.ts} +0 -0
  303. package/sdk/application/{client → Content}/ContentApplicationClient.d.ts +0 -0
  304. package/sdk/application/{models/ContentValidator.d.ts → Content/ContentApplicationValidator.d.ts} +0 -0
  305. package/sdk/application/{client → FileStorage}/FileStorageApplicationClient.d.ts +0 -0
  306. package/sdk/application/{models/FileStorageValidator.d.ts → FileStorage/FileStorageApplicationValidator.d.ts} +0 -0
  307. package/sdk/application/{client → Lead}/LeadApplicationClient.d.ts +0 -0
  308. package/sdk/application/{models/LeadValidator.d.ts → Lead/LeadApplicationValidator.d.ts} +0 -0
  309. package/sdk/application/{client → Logistic}/LogisticApplicationClient.d.ts +0 -0
  310. package/sdk/application/{models/LogisticValidator.d.ts → Logistic/LogisticApplicationValidator.d.ts} +0 -0
  311. package/sdk/application/{client → Order}/OrderApplicationClient.d.ts +0 -0
  312. package/sdk/application/{models/OrderValidator.d.ts → Order/OrderApplicationValidator.d.ts} +0 -0
  313. package/sdk/application/{client → Payment}/PaymentApplicationClient.d.ts +0 -0
  314. package/sdk/application/{models/PaymentValidator.d.ts → Payment/PaymentApplicationValidator.d.ts} +0 -0
  315. package/sdk/application/{models/PosCartValidator.d.ts → PosCart/PosCartApplicationValidator.d.ts} +0 -0
  316. package/sdk/application/{client → Rewards}/RewardsApplicationClient.d.ts +0 -0
  317. package/sdk/application/{models/RewardsValidator.d.ts → Rewards/RewardsApplicationValidator.d.ts} +0 -0
  318. package/sdk/application/{client → Share}/ShareApplicationClient.d.ts +0 -0
  319. package/sdk/application/{models/ShareValidator.d.ts → Share/ShareApplicationValidator.d.ts} +0 -0
  320. package/sdk/application/{client → Theme}/ThemeApplicationClient.d.ts +0 -0
  321. package/sdk/application/{models/ThemeValidator.d.ts → Theme/ThemeApplicationValidator.d.ts} +0 -0
  322. package/sdk/application/{client → User}/UserApplicationClient.d.ts +0 -0
  323. package/sdk/application/{models/UserValidator.d.ts → User/UserApplicationValidator.d.ts} +0 -0
  324. package/sdk/platform/{client → Analytics}/AnalyticsPlatformClient.d.ts +0 -0
  325. package/sdk/platform/{models/AnalyticsValidator.d.ts → Analytics/AnalyticsPlatformValidator.d.ts} +0 -0
  326. package/sdk/platform/{client → AuditTrail}/AuditTrailPlatformClient.d.ts +0 -0
  327. package/sdk/platform/{models/AuditTrailValidator.d.ts → AuditTrail/AuditTrailPlatformValidator.d.ts} +0 -0
  328. package/sdk/platform/{client → Billing}/BillingPlatformClient.d.ts +0 -0
  329. package/sdk/platform/{models/BillingValidator.d.ts → Billing/BillingPlatformValidator.d.ts} +0 -0
  330. package/sdk/platform/{client → Catalog}/CatalogPlatformClient.d.ts +149 -149
  331. package/sdk/platform/{models/CatalogValidator.d.ts → Catalog/CatalogPlatformValidator.d.ts} +21 -21
  332. /package/sdk/platform/{client → Common}/CommonPlatformClient.d.ts +0 -0
  333. /package/sdk/platform/{models/CommonValidator.d.ts → Common/CommonPlatformValidator.d.ts} +0 -0
  334. /package/sdk/platform/{client → Communication}/CommunicationPlatformClient.d.ts +0 -0
  335. /package/sdk/platform/{models/CommunicationValidator.d.ts → Communication/CommunicationPlatformValidator.d.ts} +0 -0
  336. /package/sdk/platform/{client → Configuration}/ConfigurationPlatformClient.d.ts +0 -0
  337. /package/sdk/platform/{models/ConfigurationValidator.d.ts → Configuration/ConfigurationPlatformValidator.d.ts} +0 -0
  338. /package/sdk/platform/{client → FileStorage}/FileStoragePlatformClient.d.ts +0 -0
  339. /package/sdk/platform/{models/FileStorageValidator.d.ts → FileStorage/FileStoragePlatformValidator.d.ts} +0 -0
  340. /package/sdk/platform/{client → Inventory}/InventoryPlatformClient.d.ts +0 -0
  341. /package/sdk/platform/{models/InventoryValidator.d.ts → Inventory/InventoryPlatformValidator.d.ts} +0 -0
  342. /package/sdk/platform/{client → Lead}/LeadPlatformClient.d.ts +0 -0
  343. /package/sdk/platform/{models/LeadValidator.d.ts → Lead/LeadPlatformValidator.d.ts} +0 -0
  344. /package/sdk/platform/{client → Payment}/PaymentPlatformClient.d.ts +0 -0
  345. /package/sdk/platform/{models/PaymentValidator.d.ts → Payment/PaymentPlatformValidator.d.ts} +0 -0
  346. /package/sdk/platform/{client → Webhook}/WebhookPlatformClient.d.ts +0 -0
  347. /package/sdk/platform/{models/WebhookValidator.d.ts → Webhook/WebhookPlatformValidator.d.ts} +0 -0
  348. /package/sdk/public/{client → Configuration}/ConfigurationPublicClient.d.ts +0 -0
  349. /package/sdk/public/{models/ConfigurationValidator.d.ts → Configuration/ConfigurationPublicValidator.d.ts} +0 -0
  350. /package/sdk/public/{client → Inventory}/InventoryPublicClient.d.ts +0 -0
  351. /package/sdk/public/{models/InventoryValidator.d.ts → Inventory/InventoryPublicValidator.d.ts} +0 -0
  352. /package/sdk/public/{client → Webhook}/WebhookPublicClient.d.ts +0 -0
  353. /package/sdk/public/{models/WebhookValidator.d.ts → Webhook/WebhookPublicValidator.d.ts} +0 -0
@@ -38,16 +38,18 @@ declare class Cart {
38
38
  * @param {boolean} [arg.i] -
39
39
  * @param {boolean} [arg.b] -
40
40
  * @param {number} [arg.assignCardId] -
41
+ * @param {string} [arg.areaCode] -
41
42
  * @param {boolean} [arg.buyNow] -
42
43
  * @returns {Promise<CartDetailResponse>} - Success response
43
44
  * @summary: Fetch all items added to the cart
44
45
  * @description: Use this API to get details of all the items added to a cart.
45
46
  */
46
- getCart({ id, i, b, assignCardId, buyNow }?: {
47
+ getCart({ id, i, b, assignCardId, areaCode, buyNow }?: {
47
48
  id?: string;
48
49
  i?: boolean;
49
50
  b?: boolean;
50
51
  assignCardId?: number;
52
+ areaCode?: string;
51
53
  buyNow?: boolean;
52
54
  }): Promise<CartDetailResponse>;
53
55
  /**
@@ -64,15 +66,17 @@ declare class Cart {
64
66
  * @param {Object} arg - Arg object.
65
67
  * @param {boolean} [arg.i] -
66
68
  * @param {boolean} [arg.b] -
69
+ * @param {string} [arg.areaCode] -
67
70
  * @param {boolean} [arg.buyNow] -
68
71
  * @param {AddCartRequest} arg.body
69
72
  * @returns {Promise<AddCartDetailResponse>} - Success response
70
73
  * @summary: Add items to cart
71
74
  * @description: Use this API to add items to the cart.
72
75
  */
73
- addItems({ body, i, b, buyNow }?: {
76
+ addItems({ body, i, b, areaCode, buyNow }?: {
74
77
  i?: boolean;
75
78
  b?: boolean;
79
+ areaCode?: string;
76
80
  buyNow?: boolean;
77
81
  body: AddCartRequest;
78
82
  }): Promise<AddCartDetailResponse>;
@@ -81,16 +85,18 @@ declare class Cart {
81
85
  * @param {string} [arg.id] -
82
86
  * @param {boolean} [arg.i] -
83
87
  * @param {boolean} [arg.b] -
88
+ * @param {string} [arg.areaCode] -
84
89
  * @param {boolean} [arg.buyNow] -
85
90
  * @param {UpdateCartRequest} arg.body
86
91
  * @returns {Promise<UpdateCartDetailResponse>} - Success response
87
92
  * @summary: Update items in the cart
88
93
  * @description: <p>Use this API to update items added to the cart with the help of a request object containing attributes like item_quantity and item_size. These attributes will be fetched from the following APIs</p> <ul> <li><font color="monochrome">operation</font> Operation for current api call. <b>update_item</b> for update items. <b>remove_item</b> for removing items.</li> <li> <font color="monochrome">item_id</font> "/platform/content/v1/products/"</li> <li> <font color="monochrome">item_size</font> "/platform/content/v1/products/:slug/sizes/"</li> <li> <font color="monochrome">quantity</font> item quantity (must be greater than or equal to 1)</li> <li> <font color="monochrome">article_id</font> "/content​/v1​/products​/:identifier​/sizes​/price​/"</li> <li> <font color="monochrome">item_index</font> item position in the cart (must be greater than or equal to 0)</li> </ul>
89
94
  */
90
- updateCart({ body, id, i, b, buyNow }?: {
95
+ updateCart({ body, id, i, b, areaCode, buyNow }?: {
91
96
  id?: string;
92
97
  i?: boolean;
93
98
  b?: boolean;
99
+ areaCode?: string;
94
100
  buyNow?: boolean;
95
101
  body: UpdateCartRequest;
96
102
  }): Promise<UpdateCartDetailResponse>;
@@ -1,8 +1,8 @@
1
1
  const APIClient = require("../ApplicationAPIClient");
2
- const Paginator = require("../../common/Paginator");
3
2
  const constructUrl = require("../constructUrl");
3
+ const Paginator = require("../../common/Paginator");
4
4
  const { FDKClientValidationError } = require("../../common/FDKError");
5
- const CartValidator = require("../models/CartValidator");
5
+ const CartValidator = require("./CartApplicationValidator");
6
6
 
7
7
  class Cart {
8
8
  constructor(_conf) {
@@ -59,24 +59,37 @@ class Cart {
59
59
  * @param {boolean} [arg.i] -
60
60
  * @param {boolean} [arg.b] -
61
61
  * @param {number} [arg.assignCardId] -
62
+ * @param {string} [arg.areaCode] -
62
63
  * @param {boolean} [arg.buyNow] -
63
64
  * @returns {Promise<CartDetailResponse>} - Success response
64
65
  * @summary: Fetch all items added to the cart
65
66
  * @description: Use this API to get details of all the items added to a cart.
66
67
  */
67
- getCart({ id, i, b, assignCardId, buyNow } = {}) {
68
+ getCart({ id, i, b, assignCardId, areaCode, buyNow } = {}) {
68
69
  const { error } = CartValidator.getCart().validate(
69
- { id, i, b, assignCardId, buyNow },
70
+ { id, i, b, assignCardId, areaCode, buyNow },
70
71
  { abortEarly: false, allowUnknown: true }
71
72
  );
72
73
  if (error) {
73
74
  return Promise.reject(new FDKClientValidationError(error));
74
75
  }
76
+
77
+ // Showing warrnings if extra unknown parameters are found
78
+ const { error: warrning } = CartValidator.getCart().validate(
79
+ { id, i, b, assignCardId, areaCode, buyNow },
80
+ { abortEarly: false, allowUnknown: false }
81
+ );
82
+ if (warrning) {
83
+ console.log("Parameter Validation warrnings for getCart");
84
+ console.log(warrning);
85
+ }
86
+
75
87
  const query_params = {};
76
88
  query_params["id"] = id;
77
89
  query_params["i"] = i;
78
90
  query_params["b"] = b;
79
91
  query_params["assign_card_id"] = assignCardId;
92
+ query_params["area_code"] = areaCode;
80
93
  query_params["buy_now"] = buyNow;
81
94
 
82
95
  const xHeaders = {};
@@ -109,6 +122,17 @@ class Cart {
109
122
  if (error) {
110
123
  return Promise.reject(new FDKClientValidationError(error));
111
124
  }
125
+
126
+ // Showing warrnings if extra unknown parameters are found
127
+ const { error: warrning } = CartValidator.getCartLastModified().validate(
128
+ { id },
129
+ { abortEarly: false, allowUnknown: false }
130
+ );
131
+ if (warrning) {
132
+ console.log("Parameter Validation warrnings for getCartLastModified");
133
+ console.log(warrning);
134
+ }
135
+
112
136
  const query_params = {};
113
137
  query_params["id"] = id;
114
138
 
@@ -131,23 +155,36 @@ class Cart {
131
155
  * @param {Object} arg - Arg object.
132
156
  * @param {boolean} [arg.i] -
133
157
  * @param {boolean} [arg.b] -
158
+ * @param {string} [arg.areaCode] -
134
159
  * @param {boolean} [arg.buyNow] -
135
160
  * @param {AddCartRequest} arg.body
136
161
  * @returns {Promise<AddCartDetailResponse>} - Success response
137
162
  * @summary: Add items to cart
138
163
  * @description: Use this API to add items to the cart.
139
164
  */
140
- addItems({ body, i, b, buyNow } = {}) {
165
+ addItems({ body, i, b, areaCode, buyNow } = {}) {
141
166
  const { error } = CartValidator.addItems().validate(
142
- { body, i, b, buyNow },
167
+ { body, i, b, areaCode, buyNow },
143
168
  { abortEarly: false, allowUnknown: true }
144
169
  );
145
170
  if (error) {
146
171
  return Promise.reject(new FDKClientValidationError(error));
147
172
  }
173
+
174
+ // Showing warrnings if extra unknown parameters are found
175
+ const { error: warrning } = CartValidator.addItems().validate(
176
+ { body, i, b, areaCode, buyNow },
177
+ { abortEarly: false, allowUnknown: false }
178
+ );
179
+ if (warrning) {
180
+ console.log("Parameter Validation warrnings for addItems");
181
+ console.log(warrning);
182
+ }
183
+
148
184
  const query_params = {};
149
185
  query_params["i"] = i;
150
186
  query_params["b"] = b;
187
+ query_params["area_code"] = areaCode;
151
188
  query_params["buy_now"] = buyNow;
152
189
 
153
190
  const xHeaders = {};
@@ -170,24 +207,37 @@ class Cart {
170
207
  * @param {string} [arg.id] -
171
208
  * @param {boolean} [arg.i] -
172
209
  * @param {boolean} [arg.b] -
210
+ * @param {string} [arg.areaCode] -
173
211
  * @param {boolean} [arg.buyNow] -
174
212
  * @param {UpdateCartRequest} arg.body
175
213
  * @returns {Promise<UpdateCartDetailResponse>} - Success response
176
214
  * @summary: Update items in the cart
177
215
  * @description: <p>Use this API to update items added to the cart with the help of a request object containing attributes like item_quantity and item_size. These attributes will be fetched from the following APIs</p> <ul> <li><font color="monochrome">operation</font> Operation for current api call. <b>update_item</b> for update items. <b>remove_item</b> for removing items.</li> <li> <font color="monochrome">item_id</font> "/platform/content/v1/products/"</li> <li> <font color="monochrome">item_size</font> "/platform/content/v1/products/:slug/sizes/"</li> <li> <font color="monochrome">quantity</font> item quantity (must be greater than or equal to 1)</li> <li> <font color="monochrome">article_id</font> "/content​/v1​/products​/:identifier​/sizes​/price​/"</li> <li> <font color="monochrome">item_index</font> item position in the cart (must be greater than or equal to 0)</li> </ul>
178
216
  */
179
- updateCart({ body, id, i, b, buyNow } = {}) {
217
+ updateCart({ body, id, i, b, areaCode, buyNow } = {}) {
180
218
  const { error } = CartValidator.updateCart().validate(
181
- { body, id, i, b, buyNow },
219
+ { body, id, i, b, areaCode, buyNow },
182
220
  { abortEarly: false, allowUnknown: true }
183
221
  );
184
222
  if (error) {
185
223
  return Promise.reject(new FDKClientValidationError(error));
186
224
  }
225
+
226
+ // Showing warrnings if extra unknown parameters are found
227
+ const { error: warrning } = CartValidator.updateCart().validate(
228
+ { body, id, i, b, areaCode, buyNow },
229
+ { abortEarly: false, allowUnknown: false }
230
+ );
231
+ if (warrning) {
232
+ console.log("Parameter Validation warrnings for updateCart");
233
+ console.log(warrning);
234
+ }
235
+
187
236
  const query_params = {};
188
237
  query_params["id"] = id;
189
238
  query_params["i"] = i;
190
239
  query_params["b"] = b;
240
+ query_params["area_code"] = areaCode;
191
241
  query_params["buy_now"] = buyNow;
192
242
 
193
243
  const xHeaders = {};
@@ -221,6 +271,17 @@ class Cart {
221
271
  if (error) {
222
272
  return Promise.reject(new FDKClientValidationError(error));
223
273
  }
274
+
275
+ // Showing warrnings if extra unknown parameters are found
276
+ const { error: warrning } = CartValidator.getItemCount().validate(
277
+ { id, buyNow },
278
+ { abortEarly: false, allowUnknown: false }
279
+ );
280
+ if (warrning) {
281
+ console.log("Parameter Validation warrnings for getItemCount");
282
+ console.log(warrning);
283
+ }
284
+
224
285
  const query_params = {};
225
286
  query_params["id"] = id;
226
287
  query_params["buy_now"] = buyNow;
@@ -256,6 +317,17 @@ class Cart {
256
317
  if (error) {
257
318
  return Promise.reject(new FDKClientValidationError(error));
258
319
  }
320
+
321
+ // Showing warrnings if extra unknown parameters are found
322
+ const { error: warrning } = CartValidator.getCoupons().validate(
323
+ { id, buyNow },
324
+ { abortEarly: false, allowUnknown: false }
325
+ );
326
+ if (warrning) {
327
+ console.log("Parameter Validation warrnings for getCoupons");
328
+ console.log(warrning);
329
+ }
330
+
259
331
  const query_params = {};
260
332
  query_params["id"] = id;
261
333
  query_params["buy_now"] = buyNow;
@@ -295,6 +367,17 @@ class Cart {
295
367
  if (error) {
296
368
  return Promise.reject(new FDKClientValidationError(error));
297
369
  }
370
+
371
+ // Showing warrnings if extra unknown parameters are found
372
+ const { error: warrning } = CartValidator.applyCoupon().validate(
373
+ { body, i, b, p, id, buyNow },
374
+ { abortEarly: false, allowUnknown: false }
375
+ );
376
+ if (warrning) {
377
+ console.log("Parameter Validation warrnings for applyCoupon");
378
+ console.log(warrning);
379
+ }
380
+
298
381
  const query_params = {};
299
382
  query_params["i"] = i;
300
383
  query_params["b"] = b;
@@ -333,6 +416,17 @@ class Cart {
333
416
  if (error) {
334
417
  return Promise.reject(new FDKClientValidationError(error));
335
418
  }
419
+
420
+ // Showing warrnings if extra unknown parameters are found
421
+ const { error: warrning } = CartValidator.removeCoupon().validate(
422
+ { id, buyNow },
423
+ { abortEarly: false, allowUnknown: false }
424
+ );
425
+ if (warrning) {
426
+ console.log("Parameter Validation warrnings for removeCoupon");
427
+ console.log(warrning);
428
+ }
429
+
336
430
  const query_params = {};
337
431
  query_params["id"] = id;
338
432
  query_params["buy_now"] = buyNow;
@@ -372,6 +466,17 @@ class Cart {
372
466
  if (error) {
373
467
  return Promise.reject(new FDKClientValidationError(error));
374
468
  }
469
+
470
+ // Showing warrnings if extra unknown parameters are found
471
+ const { error: warrning } = CartValidator.getBulkDiscountOffers().validate(
472
+ { itemId, articleId, uid, slug },
473
+ { abortEarly: false, allowUnknown: false }
474
+ );
475
+ if (warrning) {
476
+ console.log("Parameter Validation warrnings for getBulkDiscountOffers");
477
+ console.log(warrning);
478
+ }
479
+
375
480
  const query_params = {};
376
481
  query_params["item_id"] = itemId;
377
482
  query_params["article_id"] = articleId;
@@ -412,6 +517,17 @@ class Cart {
412
517
  if (error) {
413
518
  return Promise.reject(new FDKClientValidationError(error));
414
519
  }
520
+
521
+ // Showing warrnings if extra unknown parameters are found
522
+ const { error: warrning } = CartValidator.applyRewardPoints().validate(
523
+ { body, id, i, b, buyNow },
524
+ { abortEarly: false, allowUnknown: false }
525
+ );
526
+ if (warrning) {
527
+ console.log("Parameter Validation warrnings for applyRewardPoints");
528
+ console.log(warrning);
529
+ }
530
+
415
531
  const query_params = {};
416
532
  query_params["id"] = id;
417
533
  query_params["i"] = i;
@@ -460,6 +576,17 @@ class Cart {
460
576
  if (error) {
461
577
  return Promise.reject(new FDKClientValidationError(error));
462
578
  }
579
+
580
+ // Showing warrnings if extra unknown parameters are found
581
+ const { error: warrning } = CartValidator.getAddresses().validate(
582
+ { cartId, buyNow, mobileNo, checkoutMode, tags, isDefault },
583
+ { abortEarly: false, allowUnknown: false }
584
+ );
585
+ if (warrning) {
586
+ console.log("Parameter Validation warrnings for getAddresses");
587
+ console.log(warrning);
588
+ }
589
+
463
590
  const query_params = {};
464
591
  query_params["cart_id"] = cartId;
465
592
  query_params["buy_now"] = buyNow;
@@ -498,6 +625,17 @@ class Cart {
498
625
  if (error) {
499
626
  return Promise.reject(new FDKClientValidationError(error));
500
627
  }
628
+
629
+ // Showing warrnings if extra unknown parameters are found
630
+ const { error: warrning } = CartValidator.addAddress().validate(
631
+ { body },
632
+ { abortEarly: false, allowUnknown: false }
633
+ );
634
+ if (warrning) {
635
+ console.log("Parameter Validation warrnings for addAddress");
636
+ console.log(warrning);
637
+ }
638
+
501
639
  const query_params = {};
502
640
 
503
641
  const xHeaders = {};
@@ -544,6 +682,17 @@ class Cart {
544
682
  if (error) {
545
683
  return Promise.reject(new FDKClientValidationError(error));
546
684
  }
685
+
686
+ // Showing warrnings if extra unknown parameters are found
687
+ const { error: warrning } = CartValidator.getAddressById().validate(
688
+ { id, cartId, buyNow, mobileNo, checkoutMode, tags, isDefault },
689
+ { abortEarly: false, allowUnknown: false }
690
+ );
691
+ if (warrning) {
692
+ console.log("Parameter Validation warrnings for getAddressById");
693
+ console.log(warrning);
694
+ }
695
+
547
696
  const query_params = {};
548
697
  query_params["cart_id"] = cartId;
549
698
  query_params["buy_now"] = buyNow;
@@ -583,6 +732,17 @@ class Cart {
583
732
  if (error) {
584
733
  return Promise.reject(new FDKClientValidationError(error));
585
734
  }
735
+
736
+ // Showing warrnings if extra unknown parameters are found
737
+ const { error: warrning } = CartValidator.updateAddress().validate(
738
+ { id, body },
739
+ { abortEarly: false, allowUnknown: false }
740
+ );
741
+ if (warrning) {
742
+ console.log("Parameter Validation warrnings for updateAddress");
743
+ console.log(warrning);
744
+ }
745
+
586
746
  const query_params = {};
587
747
 
588
748
  const xHeaders = {};
@@ -615,6 +775,17 @@ class Cart {
615
775
  if (error) {
616
776
  return Promise.reject(new FDKClientValidationError(error));
617
777
  }
778
+
779
+ // Showing warrnings if extra unknown parameters are found
780
+ const { error: warrning } = CartValidator.removeAddress().validate(
781
+ { id },
782
+ { abortEarly: false, allowUnknown: false }
783
+ );
784
+ if (warrning) {
785
+ console.log("Parameter Validation warrnings for removeAddress");
786
+ console.log(warrning);
787
+ }
788
+
618
789
  const query_params = {};
619
790
 
620
791
  const xHeaders = {};
@@ -651,6 +822,17 @@ class Cart {
651
822
  if (error) {
652
823
  return Promise.reject(new FDKClientValidationError(error));
653
824
  }
825
+
826
+ // Showing warrnings if extra unknown parameters are found
827
+ const { error: warrning } = CartValidator.selectAddress().validate(
828
+ { body, cartId, buyNow, i, b },
829
+ { abortEarly: false, allowUnknown: false }
830
+ );
831
+ if (warrning) {
832
+ console.log("Parameter Validation warrnings for selectAddress");
833
+ console.log(warrning);
834
+ }
835
+
654
836
  const query_params = {};
655
837
  query_params["cart_id"] = cartId;
656
838
  query_params["buy_now"] = buyNow;
@@ -689,6 +871,17 @@ class Cart {
689
871
  if (error) {
690
872
  return Promise.reject(new FDKClientValidationError(error));
691
873
  }
874
+
875
+ // Showing warrnings if extra unknown parameters are found
876
+ const { error: warrning } = CartValidator.selectPaymentMode().validate(
877
+ { body, id, buyNow },
878
+ { abortEarly: false, allowUnknown: false }
879
+ );
880
+ if (warrning) {
881
+ console.log("Parameter Validation warrnings for selectPaymentMode");
882
+ console.log(warrning);
883
+ }
884
+
692
885
  const query_params = {};
693
886
  query_params["id"] = id;
694
887
  query_params["buy_now"] = buyNow;
@@ -745,6 +938,29 @@ class Cart {
745
938
  if (error) {
746
939
  return Promise.reject(new FDKClientValidationError(error));
747
940
  }
941
+
942
+ // Showing warrnings if extra unknown parameters are found
943
+ const {
944
+ error: warrning,
945
+ } = CartValidator.validateCouponForPayment().validate(
946
+ {
947
+ id,
948
+ buyNow,
949
+ addressId,
950
+ paymentMode,
951
+ paymentIdentifier,
952
+ aggregatorName,
953
+ merchantCode,
954
+ },
955
+ { abortEarly: false, allowUnknown: false }
956
+ );
957
+ if (warrning) {
958
+ console.log(
959
+ "Parameter Validation warrnings for validateCouponForPayment"
960
+ );
961
+ console.log(warrning);
962
+ }
963
+
748
964
  const query_params = {};
749
965
  query_params["id"] = id;
750
966
  query_params["buy_now"] = buyNow;
@@ -790,6 +1006,17 @@ class Cart {
790
1006
  if (error) {
791
1007
  return Promise.reject(new FDKClientValidationError(error));
792
1008
  }
1009
+
1010
+ // Showing warrnings if extra unknown parameters are found
1011
+ const { error: warrning } = CartValidator.getShipments().validate(
1012
+ { p, id, buyNow, addressId, areaCode },
1013
+ { abortEarly: false, allowUnknown: false }
1014
+ );
1015
+ if (warrning) {
1016
+ console.log("Parameter Validation warrnings for getShipments");
1017
+ console.log(warrning);
1018
+ }
1019
+
793
1020
  const query_params = {};
794
1021
  query_params["p"] = p;
795
1022
  query_params["id"] = id;
@@ -828,6 +1055,17 @@ class Cart {
828
1055
  if (error) {
829
1056
  return Promise.reject(new FDKClientValidationError(error));
830
1057
  }
1058
+
1059
+ // Showing warrnings if extra unknown parameters are found
1060
+ const { error: warrning } = CartValidator.checkoutCart().validate(
1061
+ { body, buyNow },
1062
+ { abortEarly: false, allowUnknown: false }
1063
+ );
1064
+ if (warrning) {
1065
+ console.log("Parameter Validation warrnings for checkoutCart");
1066
+ console.log(warrning);
1067
+ }
1068
+
831
1069
  const query_params = {};
832
1070
  query_params["buy_now"] = buyNow;
833
1071
 
@@ -863,6 +1101,17 @@ class Cart {
863
1101
  if (error) {
864
1102
  return Promise.reject(new FDKClientValidationError(error));
865
1103
  }
1104
+
1105
+ // Showing warrnings if extra unknown parameters are found
1106
+ const { error: warrning } = CartValidator.updateCartMeta().validate(
1107
+ { body, id, buyNow },
1108
+ { abortEarly: false, allowUnknown: false }
1109
+ );
1110
+ if (warrning) {
1111
+ console.log("Parameter Validation warrnings for updateCartMeta");
1112
+ console.log(warrning);
1113
+ }
1114
+
866
1115
  const query_params = {};
867
1116
  query_params["id"] = id;
868
1117
  query_params["buy_now"] = buyNow;
@@ -897,6 +1146,17 @@ class Cart {
897
1146
  if (error) {
898
1147
  return Promise.reject(new FDKClientValidationError(error));
899
1148
  }
1149
+
1150
+ // Showing warrnings if extra unknown parameters are found
1151
+ const { error: warrning } = CartValidator.getCartShareLink().validate(
1152
+ { body },
1153
+ { abortEarly: false, allowUnknown: false }
1154
+ );
1155
+ if (warrning) {
1156
+ console.log("Parameter Validation warrnings for getCartShareLink");
1157
+ console.log(warrning);
1158
+ }
1159
+
900
1160
  const query_params = {};
901
1161
 
902
1162
  const xHeaders = {};
@@ -929,6 +1189,17 @@ class Cart {
929
1189
  if (error) {
930
1190
  return Promise.reject(new FDKClientValidationError(error));
931
1191
  }
1192
+
1193
+ // Showing warrnings if extra unknown parameters are found
1194
+ const { error: warrning } = CartValidator.getCartSharedItems().validate(
1195
+ { token },
1196
+ { abortEarly: false, allowUnknown: false }
1197
+ );
1198
+ if (warrning) {
1199
+ console.log("Parameter Validation warrnings for getCartSharedItems");
1200
+ console.log(warrning);
1201
+ }
1202
+
932
1203
  const query_params = {};
933
1204
 
934
1205
  const xHeaders = {};
@@ -963,6 +1234,21 @@ class Cart {
963
1234
  if (error) {
964
1235
  return Promise.reject(new FDKClientValidationError(error));
965
1236
  }
1237
+
1238
+ // Showing warrnings if extra unknown parameters are found
1239
+ const {
1240
+ error: warrning,
1241
+ } = CartValidator.updateCartWithSharedItems().validate(
1242
+ { token, action },
1243
+ { abortEarly: false, allowUnknown: false }
1244
+ );
1245
+ if (warrning) {
1246
+ console.log(
1247
+ "Parameter Validation warrnings for updateCartWithSharedItems"
1248
+ );
1249
+ console.log(warrning);
1250
+ }
1251
+
966
1252
  const query_params = {};
967
1253
 
968
1254
  const xHeaders = {};
@@ -999,6 +1285,17 @@ class Cart {
999
1285
  if (error) {
1000
1286
  return Promise.reject(new FDKClientValidationError(error));
1001
1287
  }
1288
+
1289
+ // Showing warrnings if extra unknown parameters are found
1290
+ const { error: warrning } = CartValidator.getPromotionOffers().validate(
1291
+ { slug, pageSize, promotionGroup },
1292
+ { abortEarly: false, allowUnknown: false }
1293
+ );
1294
+ if (warrning) {
1295
+ console.log("Parameter Validation warrnings for getPromotionOffers");
1296
+ console.log(warrning);
1297
+ }
1298
+
1002
1299
  const query_params = {};
1003
1300
  query_params["slug"] = slug;
1004
1301
  query_params["page_size"] = pageSize;
@@ -1041,6 +1338,17 @@ class Cart {
1041
1338
  if (error) {
1042
1339
  return Promise.reject(new FDKClientValidationError(error));
1043
1340
  }
1341
+
1342
+ // Showing warrnings if extra unknown parameters are found
1343
+ const { error: warrning } = CartValidator.getLadderOffers().validate(
1344
+ { slug, storeId, promotionId, pageSize },
1345
+ { abortEarly: false, allowUnknown: false }
1346
+ );
1347
+ if (warrning) {
1348
+ console.log("Parameter Validation warrnings for getLadderOffers");
1349
+ console.log(warrning);
1350
+ }
1351
+
1044
1352
  const query_params = {};
1045
1353
  query_params["slug"] = slug;
1046
1354
  query_params["store_id"] = storeId;
@@ -0,0 +1,81 @@
1
+ export = CartModel;
2
+ declare class CartModel {
3
+ static PaymentSelectionLock(): any;
4
+ static CartCurrency(): any;
5
+ static ProductImage(): any;
6
+ static ActionQuery(): any;
7
+ static ProductAction(): any;
8
+ static BaseInfo(): any;
9
+ static CategoryInfo(): any;
10
+ static CartProduct(): any;
11
+ static ProductPrice(): any;
12
+ static ProductPriceInfo(): any;
13
+ static ProductAvailability(): any;
14
+ static BasePrice(): any;
15
+ static ArticlePriceInfo(): any;
16
+ static ProductArticle(): any;
17
+ static CartProductIdentifer(): any;
18
+ static PromoMeta(): any;
19
+ static Ownership(): any;
20
+ static AppliedPromotion(): any;
21
+ static CartProductInfo(): any;
22
+ static PromiseTimestamp(): any;
23
+ static PromiseFormatted(): any;
24
+ static ShipmentPromise(): any;
25
+ static RawBreakup(): any;
26
+ static LoyaltyPoints(): any;
27
+ static DisplayBreakup(): any;
28
+ static CouponBreakup(): any;
29
+ static CartBreakup(): any;
30
+ static CartDetailResponse(): any;
31
+ static AddProductCart(): any;
32
+ static AddCartRequest(): any;
33
+ static AddCartDetailResponse(): any;
34
+ static UpdateProductCart(): any;
35
+ static UpdateCartRequest(): any;
36
+ static UpdateCartDetailResponse(): any;
37
+ static CartItemCountResponse(): any;
38
+ static PageCoupon(): any;
39
+ static Coupon(): any;
40
+ static GetCouponResponse(): any;
41
+ static ApplyCouponRequest(): any;
42
+ static OfferSeller(): any;
43
+ static OfferPrice(): any;
44
+ static OfferItem(): any;
45
+ static BulkPriceOffer(): any;
46
+ static BulkPriceResponse(): any;
47
+ static RewardPointRequest(): any;
48
+ static GeoLocation(): any;
49
+ static Address(): any;
50
+ static GetAddressesResponse(): any;
51
+ static SaveAddressResponse(): any;
52
+ static UpdateAddressResponse(): any;
53
+ static DeleteAddressResponse(): any;
54
+ static SelectCartAddressRequest(): any;
55
+ static UpdateCartPaymentRequest(): any;
56
+ static CouponValidity(): any;
57
+ static PaymentCouponValidate(): any;
58
+ static ShipmentResponse(): any;
59
+ static CartShipmentsResponse(): any;
60
+ static CartCheckoutCustomMeta(): any;
61
+ static StaffCheckout(): any;
62
+ static CartCheckoutDetailRequest(): any;
63
+ static CheckCart(): any;
64
+ static CartCheckoutResponse(): any;
65
+ static CartMetaRequest(): any;
66
+ static CartMetaResponse(): any;
67
+ static CartMetaMissingResponse(): any;
68
+ static GetShareCartLinkRequest(): any;
69
+ static GetShareCartLinkResponse(): any;
70
+ static SharedCartDetails(): any;
71
+ static SharedCart(): any;
72
+ static SharedCartResponse(): any;
73
+ static PromotionOffer(): any;
74
+ static PromotionOffersResponse(): any;
75
+ static OperationErrorResponse(): any;
76
+ static CurrencyInfo(): any;
77
+ static LadderPrice(): any;
78
+ static LadderOfferItem(): any;
79
+ static LadderPriceOffer(): any;
80
+ static LadderPriceOffers(): any;
81
+ }