@gofynd/fdk-client-javascript 3.0.0-beta.1 → 3.0.0

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 (310) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/ApplicationClient.d.ts +2 -0
  4. package/sdk/application/ApplicationClient.js +2 -0
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +93 -113
  6. package/sdk/application/Cart/CartApplicationClient.js +157 -530
  7. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +110 -110
  8. package/sdk/application/Catalog/CatalogApplicationClient.js +214 -447
  9. package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
  10. package/sdk/application/Common/CommonApplicationClient.js +4 -19
  11. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +3 -43
  12. package/sdk/application/Communication/CommunicationApplicationClient.js +4 -214
  13. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +41 -54
  14. package/sdk/application/Configuration/ConfigurationApplicationClient.js +39 -192
  15. package/sdk/application/Content/ContentApplicationClient.d.ts +65 -55
  16. package/sdk/application/Content/ContentApplicationClient.js +211 -341
  17. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -6
  18. package/sdk/application/FileStorage/FileStorageApplicationClient.js +14 -33
  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 +6 -6
  22. package/sdk/application/Lead/LeadApplicationClient.js +24 -55
  23. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +32 -87
  24. package/sdk/application/Logistic/LogisticApplicationClient.js +126 -383
  25. package/sdk/application/Order/OrderApplicationClient.d.ts +31 -51
  26. package/sdk/application/Order/OrderApplicationClient.js +89 -293
  27. package/sdk/application/Payment/PaymentApplicationClient.d.ts +108 -218
  28. package/sdk/application/Payment/PaymentApplicationClient.js +100 -1081
  29. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +14 -14
  30. package/sdk/application/Rewards/RewardsApplicationClient.js +13 -66
  31. package/sdk/application/Share/ShareApplicationClient.d.ts +11 -11
  32. package/sdk/application/Share/ShareApplicationClient.js +35 -89
  33. package/sdk/application/Theme/ThemeApplicationClient.d.ts +5 -25
  34. package/sdk/application/Theme/ThemeApplicationClient.js +24 -150
  35. package/sdk/application/User/UserApplicationClient.d.ts +23 -13
  36. package/sdk/application/User/UserApplicationClient.js +49 -407
  37. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
  38. package/sdk/application/Webhook/WebhookApplicationClient.js +4 -11
  39. package/sdk/common/Utility.d.ts +1 -1
  40. package/sdk/common/Utility.js +10 -7
  41. package/sdk/common/Validator.d.ts +1 -0
  42. package/sdk/common/Validator.js +20 -0
  43. package/sdk/common/utils.d.ts +0 -1
  44. package/sdk/common/utils.js +0 -14
  45. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +18 -62
  46. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +40 -372
  47. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +99 -33
  48. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +84 -25
  49. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -5
  50. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +7 -38
  51. package/sdk/partner/Lead/LeadPartnerClient.d.ts +5 -5
  52. package/sdk/partner/Lead/LeadPartnerClient.js +4 -4
  53. package/sdk/partner/Lead/LeadPartnerModel.d.ts +52 -98
  54. package/sdk/partner/Lead/LeadPartnerModel.js +76 -100
  55. package/sdk/partner/Lead/LeadPartnerValidator.js +1 -1
  56. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +172 -41
  57. package/sdk/partner/Logistics/LogisticsPartnerClient.js +1222 -85
  58. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1921 -297
  59. package/sdk/partner/Logistics/LogisticsPartnerModel.js +973 -258
  60. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +13 -1
  61. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +148 -16
  62. package/sdk/partner/PartnerClient.d.ts +0 -6
  63. package/sdk/partner/PartnerClient.js +0 -9
  64. package/sdk/partner/Theme/ThemePartnerClient.d.ts +21 -63
  65. package/sdk/partner/Theme/ThemePartnerClient.js +67 -392
  66. package/sdk/partner/Theme/ThemePartnerModel.d.ts +72 -104
  67. package/sdk/partner/Theme/ThemePartnerModel.js +75 -101
  68. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +1 -5
  69. package/sdk/partner/Theme/ThemePartnerValidator.js +12 -42
  70. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -18
  71. package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -18
  72. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +673 -189
  73. package/sdk/partner/Webhook/WebhookPartnerModel.js +270 -159
  74. package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -3
  75. package/sdk/partner/index.d.ts +0 -3
  76. package/sdk/partner/index.js +0 -6
  77. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +4 -1
  78. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
  79. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +3 -3
  80. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +3 -3
  81. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
  82. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
  83. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +49 -145
  84. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +20 -171
  85. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
  86. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
  87. package/sdk/platform/Billing/BillingPlatformClient.d.ts +15 -406
  88. package/sdk/platform/Billing/BillingPlatformClient.js +76 -3214
  89. package/sdk/platform/Billing/BillingPlatformModel.d.ts +459 -3798
  90. package/sdk/platform/Billing/BillingPlatformModel.js +338 -2573
  91. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +24 -465
  92. package/sdk/platform/Billing/BillingPlatformValidator.js +14 -490
  93. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +205 -284
  94. package/sdk/platform/Cart/CartPlatformApplicationClient.js +554 -672
  95. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +165 -165
  96. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +132 -108
  97. package/sdk/platform/Cart/CartPlatformModel.d.ts +4865 -3148
  98. package/sdk/platform/Cart/CartPlatformModel.js +2071 -2854
  99. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +419 -1015
  100. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +2004 -6444
  101. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +226 -1117
  102. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +127 -919
  103. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +574 -372
  104. package/sdk/platform/Catalog/CatalogPlatformClient.js +1315 -1238
  105. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +9334 -7634
  106. package/sdk/platform/Catalog/CatalogPlatformModel.js +6980 -9652
  107. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +239 -294
  108. package/sdk/platform/Catalog/CatalogPlatformValidator.js +186 -246
  109. package/sdk/platform/Common/CommonPlatformClient.d.ts +6 -5
  110. package/sdk/platform/Common/CommonPlatformClient.js +6 -5
  111. package/sdk/platform/Common/CommonPlatformModel.d.ts +19 -25
  112. package/sdk/platform/Common/CommonPlatformModel.js +11 -14
  113. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +236 -376
  114. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +579 -868
  115. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +139 -170
  116. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +126 -145
  117. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +3 -56
  118. package/sdk/platform/Communication/CommunicationPlatformClient.js +4 -307
  119. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +314 -422
  120. package/sdk/platform/Communication/CommunicationPlatformModel.js +382 -538
  121. package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +3 -62
  122. package/sdk/platform/Communication/CommunicationPlatformValidator.js +2 -48
  123. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +72 -68
  124. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +88 -84
  125. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +270 -241
  126. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +248 -226
  127. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +20 -20
  128. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +20 -20
  129. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +118 -333
  130. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +409 -1470
  131. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +55 -158
  132. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +41 -163
  133. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +65 -142
  134. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +103 -568
  135. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +565 -1282
  136. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +369 -1034
  137. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +34 -80
  138. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +24 -79
  139. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +302 -246
  140. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1297 -776
  141. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +330 -218
  142. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +325 -208
  143. package/sdk/platform/Content/ContentPlatformClient.d.ts +279 -118
  144. package/sdk/platform/Content/ContentPlatformClient.js +1617 -492
  145. package/sdk/platform/Content/ContentPlatformModel.d.ts +2374 -877
  146. package/sdk/platform/Content/ContentPlatformModel.js +1304 -930
  147. package/sdk/platform/Content/ContentPlatformValidator.d.ts +272 -134
  148. package/sdk/platform/Content/ContentPlatformValidator.js +295 -118
  149. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +53 -43
  150. package/sdk/platform/Discount/DiscountPlatformClient.js +53 -43
  151. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +383 -110
  152. package/sdk/platform/Discount/DiscountPlatformModel.js +117 -108
  153. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +56 -36
  154. package/sdk/platform/Discount/DiscountPlatformValidator.js +29 -19
  155. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +4 -163
  156. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +4 -1078
  157. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +5 -141
  158. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -177
  159. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +8 -8
  160. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +8 -8
  161. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +30 -1123
  162. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +24 -1135
  163. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  164. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  165. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +17 -17
  166. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +33 -33
  167. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +19 -19
  168. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +14 -14
  169. package/sdk/platform/Lead/LeadPlatformClient.d.ts +24 -4
  170. package/sdk/platform/Lead/LeadPlatformClient.js +160 -4
  171. package/sdk/platform/Lead/LeadPlatformModel.d.ts +60 -140
  172. package/sdk/platform/Lead/LeadPlatformModel.js +81 -162
  173. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +29 -3
  174. package/sdk/platform/Lead/LeadPlatformValidator.js +28 -2
  175. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +19 -98
  176. package/sdk/platform/Order/OrderPlatformApplicationClient.js +27 -662
  177. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +91 -118
  178. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +32 -127
  179. package/sdk/platform/Order/OrderPlatformClient.d.ts +421 -418
  180. package/sdk/platform/Order/OrderPlatformClient.js +1194 -1350
  181. package/sdk/platform/Order/OrderPlatformModel.d.ts +9145 -4107
  182. package/sdk/platform/Order/OrderPlatformModel.js +4257 -3197
  183. package/sdk/platform/Order/OrderPlatformValidator.d.ts +641 -442
  184. package/sdk/platform/Order/OrderPlatformValidator.js +341 -311
  185. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
  186. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
  187. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +67 -19
  188. package/sdk/platform/Partner/PartnerPlatformModel.js +26 -17
  189. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +135 -382
  190. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +934 -2452
  191. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +93 -306
  192. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +70 -305
  193. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +56 -66
  194. package/sdk/platform/Payment/PaymentPlatformClient.js +124 -269
  195. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +1327 -3529
  196. package/sdk/platform/Payment/PaymentPlatformModel.js +1397 -3693
  197. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +35 -64
  198. package/sdk/platform/Payment/PaymentPlatformValidator.js +34 -60
  199. package/sdk/platform/PlatformClient.d.ts +0 -2
  200. package/sdk/platform/PlatformClient.js +0 -4
  201. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  202. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
  203. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
  204. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
  205. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +12 -12
  206. package/sdk/platform/Rewards/RewardsPlatformModel.js +10 -10
  207. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +64 -136
  208. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +111 -513
  209. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +75 -103
  210. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +50 -99
  211. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +162 -127
  212. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +775 -435
  213. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +6250 -3861
  214. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3178 -3798
  215. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +295 -199
  216. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +205 -133
  217. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +16 -4
  218. package/sdk/platform/Share/SharePlatformApplicationClient.js +86 -8
  219. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +23 -6
  220. package/sdk/platform/Share/SharePlatformApplicationValidator.js +16 -3
  221. package/sdk/platform/Share/SharePlatformModel.d.ts +53 -4
  222. package/sdk/platform/Share/SharePlatformModel.js +45 -3
  223. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +4 -26
  224. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +10 -157
  225. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +10 -21
  226. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +6 -23
  227. package/sdk/platform/Theme/ThemePlatformClient.d.ts +8 -18
  228. package/sdk/platform/Theme/ThemePlatformClient.js +8 -85
  229. package/sdk/platform/Theme/ThemePlatformModel.d.ts +17 -425
  230. package/sdk/platform/Theme/ThemePlatformModel.js +23 -329
  231. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +3 -7
  232. package/sdk/platform/Theme/ThemePlatformValidator.js +2 -9
  233. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +81 -18
  234. package/sdk/platform/User/UserPlatformApplicationClient.js +491 -27
  235. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +126 -10
  236. package/sdk/platform/User/UserPlatformApplicationValidator.js +92 -7
  237. package/sdk/platform/User/UserPlatformModel.d.ts +317 -218
  238. package/sdk/platform/User/UserPlatformModel.js +253 -210
  239. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
  240. package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
  241. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +813 -426
  242. package/sdk/platform/Webhook/WebhookPlatformModel.js +446 -395
  243. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
  244. package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
  245. package/sdk/platform/index.d.ts +0 -1
  246. package/sdk/platform/index.js +0 -2
  247. package/sdk/public/Catalog/CatalogPublicClient.d.ts +22 -0
  248. package/sdk/public/Catalog/CatalogPublicClient.js +133 -0
  249. package/sdk/public/Catalog/CatalogPublicModel.d.ts +158 -0
  250. package/sdk/public/Catalog/CatalogPublicModel.js +116 -0
  251. package/sdk/public/Catalog/CatalogPublicValidator.d.ts +55 -0
  252. package/sdk/public/Catalog/CatalogPublicValidator.js +35 -0
  253. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +4 -14
  254. package/sdk/public/Configuration/ConfigurationPublicClient.js +10 -113
  255. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +46 -114
  256. package/sdk/public/Configuration/ConfigurationPublicModel.js +32 -117
  257. package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +1 -11
  258. package/sdk/public/Configuration/ConfigurationPublicValidator.js +0 -12
  259. package/sdk/public/Content/ContentPublicClient.d.ts +36 -25
  260. package/sdk/public/Content/ContentPublicClient.js +254 -280
  261. package/sdk/public/Content/ContentPublicModel.d.ts +151 -38
  262. package/sdk/public/Content/ContentPublicModel.js +98 -44
  263. package/sdk/public/Content/ContentPublicValidator.d.ts +18 -17
  264. package/sdk/public/Content/ContentPublicValidator.js +26 -19
  265. package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
  266. package/sdk/public/Partner/PartnerPublicClient.js +6 -11
  267. package/sdk/public/Partner/PartnerPublicModel.d.ts +248 -72
  268. package/sdk/public/Partner/PartnerPublicModel.js +81 -71
  269. package/sdk/public/Partner/PartnerPublicValidator.d.ts +2 -2
  270. package/sdk/public/Partner/PartnerPublicValidator.js +1 -1
  271. package/sdk/public/PublicClient.d.ts +2 -2
  272. package/sdk/public/PublicClient.js +2 -2
  273. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  274. package/sdk/public/Webhook/WebhookPublicClient.js +9 -48
  275. package/sdk/public/Webhook/WebhookPublicModel.d.ts +215 -67
  276. package/sdk/public/Webhook/WebhookPublicModel.js +66 -61
  277. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  278. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  279. package/sdk/public/index.d.ts +1 -1
  280. package/sdk/public/index.js +1 -1
  281. package/sdk/partner/Authorization/AuthorizationPartnerClient.d.ts +0 -66
  282. package/sdk/partner/Authorization/AuthorizationPartnerClient.js +0 -431
  283. package/sdk/partner/Authorization/AuthorizationPartnerModel.d.ts +0 -231
  284. package/sdk/partner/Authorization/AuthorizationPartnerModel.js +0 -152
  285. package/sdk/partner/Authorization/AuthorizationPartnerValidator.d.ts +0 -8
  286. package/sdk/partner/Authorization/AuthorizationPartnerValidator.js +0 -39
  287. package/sdk/partner/Catalog/CatalogPartnerClient.d.ts +0 -26
  288. package/sdk/partner/Catalog/CatalogPartnerClient.js +0 -173
  289. package/sdk/partner/Catalog/CatalogPartnerModel.d.ts +0 -238
  290. package/sdk/partner/Catalog/CatalogPartnerModel.js +0 -248
  291. package/sdk/partner/Catalog/CatalogPartnerValidator.d.ts +0 -5
  292. package/sdk/partner/Catalog/CatalogPartnerValidator.js +0 -19
  293. package/sdk/partner/Payment/PaymentPartnerClient.d.ts +0 -116
  294. package/sdk/partner/Payment/PaymentPartnerClient.js +0 -857
  295. package/sdk/partner/Payment/PaymentPartnerModel.d.ts +0 -388
  296. package/sdk/partner/Payment/PaymentPartnerModel.js +0 -442
  297. package/sdk/partner/Payment/PaymentPartnerValidator.d.ts +0 -14
  298. package/sdk/partner/Payment/PaymentPartnerValidator.js +0 -74
  299. package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
  300. package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
  301. package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2895
  302. package/sdk/platform/Finance/FinancePlatformModel.js +0 -2150
  303. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
  304. package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
  305. package/sdk/public/Billing/BillingPublicClient.d.ts +0 -56
  306. package/sdk/public/Billing/BillingPublicClient.js +0 -397
  307. package/sdk/public/Billing/BillingPublicModel.d.ts +0 -919
  308. package/sdk/public/Billing/BillingPublicModel.js +0 -560
  309. package/sdk/public/Billing/BillingPublicValidator.d.ts +0 -43
  310. package/sdk/public/Billing/BillingPublicValidator.js +0 -50
@@ -178,95 +178,13 @@ class Serviceability {
178
178
  return response;
179
179
  }
180
180
 
181
- /**
182
- * @param {ServiceabilityPlatformApplicationValidator.CreateBulkZoneParam} arg
183
- * - Arg object
184
- *
185
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
186
- * @param {import("../PlatformAPIClient").Options} - Options
187
- * @returns {Promise<ServiceabilityPlatformModel.CreateBulkZoneResponse>} -
188
- * Success response
189
- * @name createBulkZone
190
- * @summary: Create bulk zones.
191
- * @description: Creates bulk zones defined at the application level. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/createBulkZone/).
192
- */
193
- async createBulkZone(
194
- { body, requestHeaders } = { requestHeaders: {} },
195
- { responseHeaders } = { responseHeaders: false }
196
- ) {
197
- const {
198
- error,
199
- } = ServiceabilityPlatformApplicationValidator.createBulkZone().validate(
200
- {
201
- body,
202
- },
203
- { abortEarly: false, allowUnknown: true }
204
- );
205
- if (error) {
206
- return Promise.reject(new FDKClientValidationError(error));
207
- }
208
-
209
- // Showing warrnings if extra unknown parameters are found
210
- const {
211
- error: warrning,
212
- } = ServiceabilityPlatformApplicationValidator.createBulkZone().validate(
213
- {
214
- body,
215
- },
216
- { abortEarly: false, allowUnknown: false }
217
- );
218
- if (warrning) {
219
- Logger({
220
- level: "WARN",
221
- message: `Parameter Validation warrnings for platform > Serviceability > createBulkZone \n ${warrning}`,
222
- });
223
- }
224
-
225
- const query_params = {};
226
-
227
- const response = await PlatformAPIClient.execute(
228
- this.config,
229
- "post",
230
- `/service/platform/logistics/v2.0/company/${this.config.companyId}/application/${this.applicationId}/zones/bulk`,
231
- query_params,
232
- body,
233
- requestHeaders,
234
- { responseHeaders }
235
- );
236
-
237
- let responseData = response;
238
- if (responseHeaders) {
239
- responseData = response[0];
240
- }
241
-
242
- const {
243
- error: res_error,
244
- } = ServiceabilityPlatformModel.CreateBulkZoneResponse().validate(
245
- responseData,
246
- { abortEarly: false, allowUnknown: true }
247
- );
248
-
249
- if (res_error) {
250
- if (this.config.options.strictResponseCheck === true) {
251
- return Promise.reject(new FDKResponseValidationError(res_error));
252
- } else {
253
- Logger({
254
- level: "WARN",
255
- message: `Response Validation Warnings for platform > Serviceability > createBulkZone \n ${res_error}`,
256
- });
257
- }
258
- }
259
-
260
- return response;
261
- }
262
-
263
181
  /**
264
182
  * @param {ServiceabilityPlatformApplicationValidator.CreateCourierPartnerRuleParam} arg
265
183
  * - Arg object
266
184
  *
267
185
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
268
186
  * @param {import("../PlatformAPIClient").Options} - Options
269
- * @returns {Promise<ServiceabilityPlatformModel.CourierPartnerRuleResponseSchema>}
187
+ * @returns {Promise<ServiceabilityPlatformModel.CourierPartnerRuleResult>}
270
188
  * - Success response
271
189
  *
272
190
  * @name createCourierPartnerRule
@@ -324,7 +242,7 @@ class Serviceability {
324
242
 
325
243
  const {
326
244
  error: res_error,
327
- } = ServiceabilityPlatformModel.CourierPartnerRuleResponseSchema().validate(
245
+ } = ServiceabilityPlatformModel.CourierPartnerRuleResult().validate(
328
246
  responseData,
329
247
  { abortEarly: false, allowUnknown: true }
330
248
  );
@@ -514,9 +432,8 @@ class Serviceability {
514
432
  *
515
433
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
516
434
  * @param {import("../PlatformAPIClient").Options} - Options
517
- * @returns {Promise<ServiceabilityPlatformModel.StoreRuleResponseSchema>}
518
- * - Success response
519
- *
435
+ * @returns {Promise<ServiceabilityPlatformModel.StoreRuleResultSchema>} -
436
+ * Success response
520
437
  * @name createStoreRules
521
438
  * @summary: Create store rule
522
439
  * @description: Create a rule within the order routing rules - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/createStoreRules/).
@@ -572,7 +489,7 @@ class Serviceability {
572
489
 
573
490
  const {
574
491
  error: res_error,
575
- } = ServiceabilityPlatformModel.StoreRuleResponseSchema().validate(
492
+ } = ServiceabilityPlatformModel.StoreRuleResultSchema().validate(
576
493
  responseData,
577
494
  { abortEarly: false, allowUnknown: true }
578
495
  );
@@ -597,7 +514,7 @@ class Serviceability {
597
514
  *
598
515
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
599
516
  * @param {import("../PlatformAPIClient").Options} - Options
600
- * @returns {Promise<ServiceabilityPlatformModel.ZoneResponseV2>} - Success response
517
+ * @returns {Promise<ServiceabilityPlatformModel.ZoneSchema>} - Success response
601
518
  * @name createZone
602
519
  * @summary: Create zone
603
520
  * @description: Creates a delivery zone. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/createZone/).
@@ -653,7 +570,7 @@ class Serviceability {
653
570
 
654
571
  const {
655
572
  error: res_error,
656
- } = ServiceabilityPlatformModel.ZoneResponseV2().validate(responseData, {
573
+ } = ServiceabilityPlatformModel.ZoneSchema().validate(responseData, {
657
574
  abortEarly: false,
658
575
  allowUnknown: true,
659
576
  });
@@ -678,7 +595,7 @@ class Serviceability {
678
595
  *
679
596
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
680
597
  * @param {import("../PlatformAPIClient").Options} - Options
681
- * @returns {Promise<ServiceabilityPlatformModel.ZoneDeleteSuccessResponse>}
598
+ * @returns {Promise<ServiceabilityPlatformModel.ZoneDeleteSuccessResult>}
682
599
  * - Success response
683
600
  *
684
601
  * @name deleteZone
@@ -736,7 +653,7 @@ class Serviceability {
736
653
 
737
654
  const {
738
655
  error: res_error,
739
- } = ServiceabilityPlatformModel.ZoneDeleteSuccessResponse().validate(
656
+ } = ServiceabilityPlatformModel.ZoneDeleteSuccessResult().validate(
740
657
  responseData,
741
658
  { abortEarly: false, allowUnknown: true }
742
659
  );
@@ -763,7 +680,7 @@ class Serviceability {
763
680
  * @param {import("../PlatformAPIClient").Options} - Options
764
681
  * @returns {Promise<string>} - Success response
765
682
  * @name downloadGeoareaSampleFile
766
- * @summary: Download geoarea sample file.
683
+ * @summary: Download geoarea sample file
767
684
  * @description: Download a sample file for geoarea data. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/downloadGeoareaSampleFile/).
768
685
  */
769
686
  async downloadGeoareaSampleFile(
@@ -829,84 +746,6 @@ class Serviceability {
829
746
  return response;
830
747
  }
831
748
 
832
- /**
833
- * @param {ServiceabilityPlatformApplicationValidator.DownloadZoneSampleFileParam} arg
834
- * - Arg object
835
- *
836
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
837
- * @param {import("../PlatformAPIClient").Options} - Options
838
- * @returns {Promise<string>} - Success response
839
- * @name downloadZoneSampleFile
840
- * @summary: Download Sample Delivery Zone Product Type file.
841
- * @description: Download a sample file for Delivery Zone with specified product type column (i.e. category, department, Item IDs or tags). - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/downloadZoneSampleFile/).
842
- */
843
- async downloadZoneSampleFile(
844
- { productType, requestHeaders } = { requestHeaders: {} },
845
- { responseHeaders } = { responseHeaders: false }
846
- ) {
847
- const {
848
- error,
849
- } = ServiceabilityPlatformApplicationValidator.downloadZoneSampleFile().validate(
850
- {
851
- productType,
852
- },
853
- { abortEarly: false, allowUnknown: true }
854
- );
855
- if (error) {
856
- return Promise.reject(new FDKClientValidationError(error));
857
- }
858
-
859
- // Showing warrnings if extra unknown parameters are found
860
- const {
861
- error: warrning,
862
- } = ServiceabilityPlatformApplicationValidator.downloadZoneSampleFile().validate(
863
- {
864
- productType,
865
- },
866
- { abortEarly: false, allowUnknown: false }
867
- );
868
- if (warrning) {
869
- Logger({
870
- level: "WARN",
871
- message: `Parameter Validation warrnings for platform > Serviceability > downloadZoneSampleFile \n ${warrning}`,
872
- });
873
- }
874
-
875
- const query_params = {};
876
-
877
- const response = await PlatformAPIClient.execute(
878
- this.config,
879
- "get",
880
- `/service/platform/logistics/v2.0/company/${this.config.companyId}/application/${this.applicationId}/zones/bulk/sample/${productType}`,
881
- query_params,
882
- undefined,
883
- requestHeaders,
884
- { responseHeaders }
885
- );
886
-
887
- let responseData = response;
888
- if (responseHeaders) {
889
- responseData = response[0];
890
- }
891
-
892
- const { error: res_error } = Joi.string()
893
- .allow("")
894
- .validate(responseData, { abortEarly: false, allowUnknown: true });
895
-
896
- if (res_error) {
897
- if (this.config.options.strictResponseCheck === true) {
898
- return Promise.reject(new FDKResponseValidationError(res_error));
899
- } else {
900
- Logger({
901
- level: "WARN",
902
- message: `Response Validation Warnings for platform > Serviceability > downloadZoneSampleFile \n ${res_error}`,
903
- });
904
- }
905
- }
906
-
907
- return response;
908
- }
909
-
910
749
  /**
911
750
  * @param {ServiceabilityPlatformApplicationValidator.GetApplicationConfigParam} arg
912
751
  * - Arg object
@@ -991,7 +830,7 @@ class Serviceability {
991
830
  *
992
831
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
993
832
  * @param {import("../PlatformAPIClient").Options} - Options
994
- * @returns {Promise<ServiceabilityPlatformModel.ApplicationConfigGetResponse>}
833
+ * @returns {Promise<ServiceabilityPlatformModel.ApplicationConfigGetResult>}
995
834
  * - Success response
996
835
  *
997
836
  * @name getApplicationConfiguration
@@ -1045,7 +884,7 @@ class Serviceability {
1045
884
 
1046
885
  const {
1047
886
  error: res_error,
1048
- } = ServiceabilityPlatformModel.ApplicationConfigGetResponse().validate(
887
+ } = ServiceabilityPlatformModel.ApplicationConfigGetResult().validate(
1049
888
  responseData,
1050
889
  { abortEarly: false, allowUnknown: true }
1051
890
  );
@@ -1152,7 +991,7 @@ class Serviceability {
1152
991
  *
1153
992
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1154
993
  * @param {import("../PlatformAPIClient").Options} - Options
1155
- * @returns {Promise<ServiceabilityPlatformModel.BulkGeoAreaGetResponse>} -
994
+ * @returns {Promise<ServiceabilityPlatformModel.BulkGeoAreaGetResult>} -
1156
995
  * Success response
1157
996
  * @name getBulkGeoArea
1158
997
  * @summary: Get status of GeoAreas created in bulk
@@ -1209,7 +1048,7 @@ class Serviceability {
1209
1048
 
1210
1049
  const {
1211
1050
  error: res_error,
1212
- } = ServiceabilityPlatformModel.BulkGeoAreaGetResponse().validate(
1051
+ } = ServiceabilityPlatformModel.BulkGeoAreaGetResult().validate(
1213
1052
  responseData,
1214
1053
  { abortEarly: false, allowUnknown: true }
1215
1054
  );
@@ -1228,91 +1067,13 @@ class Serviceability {
1228
1067
  return response;
1229
1068
  }
1230
1069
 
1231
- /**
1232
- * @param {ServiceabilityPlatformApplicationValidator.GetBulkZoneParam} arg
1233
- * - Arg object
1234
- *
1235
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1236
- * @param {import("../PlatformAPIClient").Options} - Options
1237
- * @returns {Promise<ServiceabilityPlatformModel.GetBulkZoneHistory>} -
1238
- * Success response
1239
- * @name getBulkZone
1240
- * @summary: Get bulk zones.
1241
- * @description: Fetch bulk zones created at the application level. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getBulkZone/).
1242
- */
1243
- async getBulkZone(
1244
- { requestHeaders } = { requestHeaders: {} },
1245
- { responseHeaders } = { responseHeaders: false }
1246
- ) {
1247
- const {
1248
- error,
1249
- } = ServiceabilityPlatformApplicationValidator.getBulkZone().validate(
1250
- {},
1251
- { abortEarly: false, allowUnknown: true }
1252
- );
1253
- if (error) {
1254
- return Promise.reject(new FDKClientValidationError(error));
1255
- }
1256
-
1257
- // Showing warrnings if extra unknown parameters are found
1258
- const {
1259
- error: warrning,
1260
- } = ServiceabilityPlatformApplicationValidator.getBulkZone().validate(
1261
- {},
1262
- { abortEarly: false, allowUnknown: false }
1263
- );
1264
- if (warrning) {
1265
- Logger({
1266
- level: "WARN",
1267
- message: `Parameter Validation warrnings for platform > Serviceability > getBulkZone \n ${warrning}`,
1268
- });
1269
- }
1270
-
1271
- const query_params = {};
1272
-
1273
- const response = await PlatformAPIClient.execute(
1274
- this.config,
1275
- "get",
1276
- `/service/platform/logistics/v2.0/company/${this.config.companyId}/application/${this.applicationId}/zones/bulk/history`,
1277
- query_params,
1278
- undefined,
1279
- requestHeaders,
1280
- { responseHeaders }
1281
- );
1282
-
1283
- let responseData = response;
1284
- if (responseHeaders) {
1285
- responseData = response[0];
1286
- }
1287
-
1288
- const {
1289
- error: res_error,
1290
- } = ServiceabilityPlatformModel.GetBulkZoneHistory().validate(
1291
- responseData,
1292
- { abortEarly: false, allowUnknown: true }
1293
- );
1294
-
1295
- if (res_error) {
1296
- if (this.config.options.strictResponseCheck === true) {
1297
- return Promise.reject(new FDKResponseValidationError(res_error));
1298
- } else {
1299
- Logger({
1300
- level: "WARN",
1301
- message: `Response Validation Warnings for platform > Serviceability > getBulkZone \n ${res_error}`,
1302
- });
1303
- }
1304
- }
1305
-
1306
- return response;
1307
- }
1308
-
1309
1070
  /**
1310
1071
  * @param {ServiceabilityPlatformApplicationValidator.GetCourierPartnerRuleParam} arg
1311
1072
  * - Arg object
1312
1073
  *
1313
1074
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1314
1075
  * @param {import("../PlatformAPIClient").Options} - Options
1315
- * @returns {Promise<ServiceabilityPlatformModel.CourierPartnerRuleResponseSchema>}
1076
+ * @returns {Promise<ServiceabilityPlatformModel.CourierPartnerRuleResult>}
1316
1077
  * - Success response
1317
1078
  *
1318
1079
  * @name getCourierPartnerRule
@@ -1370,7 +1131,7 @@ class Serviceability {
1370
1131
 
1371
1132
  const {
1372
1133
  error: res_error,
1373
- } = ServiceabilityPlatformModel.CourierPartnerRuleResponseSchema().validate(
1134
+ } = ServiceabilityPlatformModel.CourierPartnerRuleResult().validate(
1374
1135
  responseData,
1375
1136
  { abortEarly: false, allowUnknown: true }
1376
1137
  );
@@ -1390,27 +1151,29 @@ class Serviceability {
1390
1151
  }
1391
1152
 
1392
1153
  /**
1393
- * @param {ServiceabilityPlatformApplicationValidator.GetCourierPartnerRuleDetailsParam} arg
1154
+ * @param {ServiceabilityPlatformApplicationValidator.GetCourierPartnerRulesParam} arg
1394
1155
  * - Arg object
1395
1156
  *
1396
1157
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1397
1158
  * @param {import("../PlatformAPIClient").Options} - Options
1398
- * @returns {Promise<ServiceabilityPlatformModel.CourierPartnerRuleResponseDetailSchema>}
1159
+ * @returns {Promise<ServiceabilityPlatformModel.CourierPartnerRulesListResult>}
1399
1160
  * - Success response
1400
1161
  *
1401
- * @name getCourierPartnerRuleDetails
1402
- * @summary: Get courier rule
1403
- * @description: Retrieves details for a courier partner rule. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getCourierPartnerRuleDetails/).
1162
+ * @name getCourierPartnerRules
1163
+ * @summary: Get courier rules
1164
+ * @description: Retrieve a list of rules within the delivery configuration. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getCourierPartnerRules/).
1404
1165
  */
1405
- async getCourierPartnerRuleDetails(
1406
- { ruleUid, requestHeaders } = { requestHeaders: {} },
1166
+ async getCourierPartnerRules(
1167
+ { pageNo, pageSize, status, requestHeaders } = { requestHeaders: {} },
1407
1168
  { responseHeaders } = { responseHeaders: false }
1408
1169
  ) {
1409
1170
  const {
1410
1171
  error,
1411
- } = ServiceabilityPlatformApplicationValidator.getCourierPartnerRuleDetails().validate(
1172
+ } = ServiceabilityPlatformApplicationValidator.getCourierPartnerRules().validate(
1412
1173
  {
1413
- ruleUid,
1174
+ pageNo,
1175
+ pageSize,
1176
+ status,
1414
1177
  },
1415
1178
  { abortEarly: false, allowUnknown: true }
1416
1179
  );
@@ -1421,25 +1184,30 @@ class Serviceability {
1421
1184
  // Showing warrnings if extra unknown parameters are found
1422
1185
  const {
1423
1186
  error: warrning,
1424
- } = ServiceabilityPlatformApplicationValidator.getCourierPartnerRuleDetails().validate(
1187
+ } = ServiceabilityPlatformApplicationValidator.getCourierPartnerRules().validate(
1425
1188
  {
1426
- ruleUid,
1189
+ pageNo,
1190
+ pageSize,
1191
+ status,
1427
1192
  },
1428
1193
  { abortEarly: false, allowUnknown: false }
1429
1194
  );
1430
1195
  if (warrning) {
1431
1196
  Logger({
1432
1197
  level: "WARN",
1433
- message: `Parameter Validation warrnings for platform > Serviceability > getCourierPartnerRuleDetails \n ${warrning}`,
1198
+ message: `Parameter Validation warrnings for platform > Serviceability > getCourierPartnerRules \n ${warrning}`,
1434
1199
  });
1435
1200
  }
1436
1201
 
1437
1202
  const query_params = {};
1203
+ query_params["page_no"] = pageNo;
1204
+ query_params["page_size"] = pageSize;
1205
+ query_params["status"] = status;
1438
1206
 
1439
1207
  const response = await PlatformAPIClient.execute(
1440
1208
  this.config,
1441
1209
  "get",
1442
- `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/courier-partner/rules/${ruleUid}/details`,
1210
+ `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/courier-partner/rules`,
1443
1211
  query_params,
1444
1212
  undefined,
1445
1213
  requestHeaders,
@@ -1453,7 +1221,7 @@ class Serviceability {
1453
1221
 
1454
1222
  const {
1455
1223
  error: res_error,
1456
- } = ServiceabilityPlatformModel.CourierPartnerRuleResponseDetailSchema().validate(
1224
+ } = ServiceabilityPlatformModel.CourierPartnerRulesListResult().validate(
1457
1225
  responseData,
1458
1226
  { abortEarly: false, allowUnknown: true }
1459
1227
  );
@@ -1464,7 +1232,7 @@ class Serviceability {
1464
1232
  } else {
1465
1233
  Logger({
1466
1234
  level: "WARN",
1467
- message: `Response Validation Warnings for platform > Serviceability > getCourierPartnerRuleDetails \n ${res_error}`,
1235
+ message: `Response Validation Warnings for platform > Serviceability > getCourierPartnerRules \n ${res_error}`,
1468
1236
  });
1469
1237
  }
1470
1238
  }
@@ -1473,29 +1241,27 @@ class Serviceability {
1473
1241
  }
1474
1242
 
1475
1243
  /**
1476
- * @param {ServiceabilityPlatformApplicationValidator.GetCourierPartnerRulesParam} arg
1244
+ * @param {ServiceabilityPlatformApplicationValidator.GetCourierPartnersParam} arg
1477
1245
  * - Arg object
1478
1246
  *
1479
1247
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1480
1248
  * @param {import("../PlatformAPIClient").Options} - Options
1481
- * @returns {Promise<ServiceabilityPlatformModel.CourierPartnerRulesListResponse>}
1249
+ * @returns {Promise<ServiceabilityPlatformModel.ShipmentCourierPartnerResult>}
1482
1250
  * - Success response
1483
1251
  *
1484
- * @name getCourierPartnerRules
1485
- * @summary: Get courier rules
1486
- * @description: Retrieve a list of rules within the delivery configuration. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getCourierPartnerRules/).
1252
+ * @name getCourierPartners
1253
+ * @summary: Serviceable Courier Partners
1254
+ * @description: Get all the serviceable courier partners of a destination and the shipments. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getCourierPartners/).
1487
1255
  */
1488
- async getCourierPartnerRules(
1489
- { pageNo, pageSize, status, requestHeaders } = { requestHeaders: {} },
1256
+ async getCourierPartners(
1257
+ { body, requestHeaders } = { requestHeaders: {} },
1490
1258
  { responseHeaders } = { responseHeaders: false }
1491
1259
  ) {
1492
1260
  const {
1493
1261
  error,
1494
- } = ServiceabilityPlatformApplicationValidator.getCourierPartnerRules().validate(
1262
+ } = ServiceabilityPlatformApplicationValidator.getCourierPartners().validate(
1495
1263
  {
1496
- pageNo,
1497
- pageSize,
1498
- status,
1264
+ body,
1499
1265
  },
1500
1266
  { abortEarly: false, allowUnknown: true }
1501
1267
  );
@@ -1506,32 +1272,27 @@ class Serviceability {
1506
1272
  // Showing warrnings if extra unknown parameters are found
1507
1273
  const {
1508
1274
  error: warrning,
1509
- } = ServiceabilityPlatformApplicationValidator.getCourierPartnerRules().validate(
1275
+ } = ServiceabilityPlatformApplicationValidator.getCourierPartners().validate(
1510
1276
  {
1511
- pageNo,
1512
- pageSize,
1513
- status,
1277
+ body,
1514
1278
  },
1515
1279
  { abortEarly: false, allowUnknown: false }
1516
1280
  );
1517
1281
  if (warrning) {
1518
1282
  Logger({
1519
1283
  level: "WARN",
1520
- message: `Parameter Validation warrnings for platform > Serviceability > getCourierPartnerRules \n ${warrning}`,
1284
+ message: `Parameter Validation warrnings for platform > Serviceability > getCourierPartners \n ${warrning}`,
1521
1285
  });
1522
1286
  }
1523
1287
 
1524
1288
  const query_params = {};
1525
- query_params["page_no"] = pageNo;
1526
- query_params["page_size"] = pageSize;
1527
- query_params["status"] = status;
1528
1289
 
1529
1290
  const response = await PlatformAPIClient.execute(
1530
1291
  this.config,
1531
- "get",
1532
- `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/courier-partner/rules`,
1292
+ "post",
1293
+ `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/shipment/courier-partners`,
1533
1294
  query_params,
1534
- undefined,
1295
+ body,
1535
1296
  requestHeaders,
1536
1297
  { responseHeaders }
1537
1298
  );
@@ -1543,7 +1304,7 @@ class Serviceability {
1543
1304
 
1544
1305
  const {
1545
1306
  error: res_error,
1546
- } = ServiceabilityPlatformModel.CourierPartnerRulesListResponse().validate(
1307
+ } = ServiceabilityPlatformModel.ShipmentCourierPartnerResult().validate(
1547
1308
  responseData,
1548
1309
  { abortEarly: false, allowUnknown: true }
1549
1310
  );
@@ -1554,7 +1315,7 @@ class Serviceability {
1554
1315
  } else {
1555
1316
  Logger({
1556
1317
  level: "WARN",
1557
- message: `Response Validation Warnings for platform > Serviceability > getCourierPartnerRules \n ${res_error}`,
1318
+ message: `Response Validation Warnings for platform > Serviceability > getCourierPartners \n ${res_error}`,
1558
1319
  });
1559
1320
  }
1560
1321
  }
@@ -1568,7 +1329,7 @@ class Serviceability {
1568
1329
  *
1569
1330
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1570
1331
  * @param {import("../PlatformAPIClient").Options} - Options
1571
- * @returns {Promise<ServiceabilityPlatformModel.GeoAreaResponse>} - Success response
1332
+ * @returns {Promise<ServiceabilityPlatformModel.GeoAreaDetails>} - Success response
1572
1333
  * @name getGeoArea
1573
1334
  * @summary: Get details of the specific geoarea
1574
1335
  * @description: This API Returns the data of the specific GeoArea which exists on the platform. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getGeoArea/).
@@ -1624,7 +1385,7 @@ class Serviceability {
1624
1385
 
1625
1386
  const {
1626
1387
  error: res_error,
1627
- } = ServiceabilityPlatformModel.GeoAreaResponse().validate(responseData, {
1388
+ } = ServiceabilityPlatformModel.GeoAreaDetails().validate(responseData, {
1628
1389
  abortEarly: false,
1629
1390
  allowUnknown: true,
1630
1391
  });
@@ -1735,7 +1496,7 @@ class Serviceability {
1735
1496
  * @returns {Promise<ServiceabilityPlatformModel.GeoAreaGetResponseBody>} -
1736
1497
  * Success response
1737
1498
  * @name getGeoAreas
1738
- * @summary: Get all geoareas in the current application.
1499
+ * @summary: Get all geoareas in the current application
1739
1500
  * @description: Retrieves a listing view of created GeoAreas. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getGeoAreas/).
1740
1501
  */
1741
1502
  async getGeoAreas(
@@ -1930,98 +1691,14 @@ class Serviceability {
1930
1691
  return response;
1931
1692
  }
1932
1693
 
1933
- /**
1934
- * @param {ServiceabilityPlatformApplicationValidator.GetStoreRuleDetailsParam} arg
1935
- * - Arg object
1936
- *
1937
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1938
- * @param {import("../PlatformAPIClient").Options} - Options
1939
- * @returns {Promise<ServiceabilityPlatformModel.StoreRuleDataDetailsSchema>}
1940
- * - Success response
1941
- *
1942
- * @name getStoreRuleDetails
1943
- * @summary: Get store rule Details
1944
- * @description: Retrieves details of a order routing rule. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getStoreRuleDetails/).
1945
- */
1946
- async getStoreRuleDetails(
1947
- { ruleUid, requestHeaders } = { requestHeaders: {} },
1948
- { responseHeaders } = { responseHeaders: false }
1949
- ) {
1950
- const {
1951
- error,
1952
- } = ServiceabilityPlatformApplicationValidator.getStoreRuleDetails().validate(
1953
- {
1954
- ruleUid,
1955
- },
1956
- { abortEarly: false, allowUnknown: true }
1957
- );
1958
- if (error) {
1959
- return Promise.reject(new FDKClientValidationError(error));
1960
- }
1961
-
1962
- // Showing warrnings if extra unknown parameters are found
1963
- const {
1964
- error: warrning,
1965
- } = ServiceabilityPlatformApplicationValidator.getStoreRuleDetails().validate(
1966
- {
1967
- ruleUid,
1968
- },
1969
- { abortEarly: false, allowUnknown: false }
1970
- );
1971
- if (warrning) {
1972
- Logger({
1973
- level: "WARN",
1974
- message: `Parameter Validation warrnings for platform > Serviceability > getStoreRuleDetails \n ${warrning}`,
1975
- });
1976
- }
1977
-
1978
- const query_params = {};
1979
-
1980
- const response = await PlatformAPIClient.execute(
1981
- this.config,
1982
- "get",
1983
- `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/store/rules/${ruleUid}/details`,
1984
- query_params,
1985
- undefined,
1986
- requestHeaders,
1987
- { responseHeaders }
1988
- );
1989
-
1990
- let responseData = response;
1991
- if (responseHeaders) {
1992
- responseData = response[0];
1993
- }
1994
-
1995
- const {
1996
- error: res_error,
1997
- } = ServiceabilityPlatformModel.StoreRuleDataDetailsSchema().validate(
1998
- responseData,
1999
- { abortEarly: false, allowUnknown: true }
2000
- );
2001
-
2002
- if (res_error) {
2003
- if (this.config.options.strictResponseCheck === true) {
2004
- return Promise.reject(new FDKResponseValidationError(res_error));
2005
- } else {
2006
- Logger({
2007
- level: "WARN",
2008
- message: `Response Validation Warnings for platform > Serviceability > getStoreRuleDetails \n ${res_error}`,
2009
- });
2010
- }
2011
- }
2012
-
2013
- return response;
2014
- }
2015
-
2016
1694
  /**
2017
1695
  * @param {ServiceabilityPlatformApplicationValidator.GetStoreRulesParam} arg
2018
1696
  * - Arg object
2019
1697
  *
2020
1698
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2021
1699
  * @param {import("../PlatformAPIClient").Options} - Options
2022
- * @returns {Promise<ServiceabilityPlatformModel.GetStoreRulesApiResponse>}
2023
- * - Success response
2024
- *
1700
+ * @returns {Promise<ServiceabilityPlatformModel.GetStoreRulesApiResult>} -
1701
+ * Success response
2025
1702
  * @name getStoreRules
2026
1703
  * @summary: Get store rules
2027
1704
  * @description: Retrieves an existing order routing setup for a single application - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getStoreRules/).
@@ -2084,7 +1761,7 @@ class Serviceability {
2084
1761
 
2085
1762
  const {
2086
1763
  error: res_error,
2087
- } = ServiceabilityPlatformModel.GetStoreRulesApiResponse().validate(
1764
+ } = ServiceabilityPlatformModel.GetStoreRulesApiResult().validate(
2088
1765
  responseData,
2089
1766
  { abortEarly: false, allowUnknown: true }
2090
1767
  );
@@ -2183,95 +1860,11 @@ class Serviceability {
2183
1860
  return response;
2184
1861
  }
2185
1862
 
2186
- /**
2187
- * @param {ServiceabilityPlatformApplicationValidator.GetZoneDetailsParam} arg
2188
- * - Arg object
2189
- *
2190
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2191
- * @param {import("../PlatformAPIClient").Options} - Options
2192
- * @returns {Promise<ServiceabilityPlatformModel.GetZoneByIdDetailsSchema>}
2193
- * - Success response
2194
- *
2195
- * @name getZoneDetails
2196
- * @summary: Get details of a delivery zone
2197
- * @description: Get details of a single delivery zone along with product, store and region details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getZoneDetails/).
2198
- */
2199
- async getZoneDetails(
2200
- { zoneId, requestHeaders } = { requestHeaders: {} },
2201
- { responseHeaders } = { responseHeaders: false }
2202
- ) {
2203
- const {
2204
- error,
2205
- } = ServiceabilityPlatformApplicationValidator.getZoneDetails().validate(
2206
- {
2207
- zoneId,
2208
- },
2209
- { abortEarly: false, allowUnknown: true }
2210
- );
2211
- if (error) {
2212
- return Promise.reject(new FDKClientValidationError(error));
2213
- }
2214
-
2215
- // Showing warrnings if extra unknown parameters are found
2216
- const {
2217
- error: warrning,
2218
- } = ServiceabilityPlatformApplicationValidator.getZoneDetails().validate(
2219
- {
2220
- zoneId,
2221
- },
2222
- { abortEarly: false, allowUnknown: false }
2223
- );
2224
- if (warrning) {
2225
- Logger({
2226
- level: "WARN",
2227
- message: `Parameter Validation warrnings for platform > Serviceability > getZoneDetails \n ${warrning}`,
2228
- });
2229
- }
2230
-
2231
- const query_params = {};
2232
-
2233
- const response = await PlatformAPIClient.execute(
2234
- this.config,
2235
- "get",
2236
- `/service/platform/logistics/v2.0/company/${this.config.companyId}/application/${this.applicationId}/zones/${zoneId}/details`,
2237
- query_params,
2238
- undefined,
2239
- requestHeaders,
2240
- { responseHeaders }
2241
- );
2242
-
2243
- let responseData = response;
2244
- if (responseHeaders) {
2245
- responseData = response[0];
2246
- }
2247
-
2248
- const {
2249
- error: res_error,
2250
- } = ServiceabilityPlatformModel.GetZoneByIdDetailsSchema().validate(
2251
- responseData,
2252
- { abortEarly: false, allowUnknown: true }
2253
- );
2254
-
2255
- if (res_error) {
2256
- if (this.config.options.strictResponseCheck === true) {
2257
- return Promise.reject(new FDKResponseValidationError(res_error));
2258
- } else {
2259
- Logger({
2260
- level: "WARN",
2261
- message: `Response Validation Warnings for platform > Serviceability > getZoneDetails \n ${res_error}`,
2262
- });
2263
- }
2264
- }
2265
-
2266
- return response;
2267
- }
2268
-
2269
1863
  /**
2270
1864
  * @param {ServiceabilityPlatformApplicationValidator.GetZonesParam} arg - Arg object
2271
1865
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2272
1866
  * @param {import("../PlatformAPIClient").Options} - Options
2273
- * @returns {Promise<ServiceabilityPlatformModel.ListViewResponseV2>} -
2274
- * Success response
1867
+ * @returns {Promise<ServiceabilityPlatformModel.ListViewSchema>} - Success response
2275
1868
  * @name getZones
2276
1869
  * @summary: Get zones
2277
1870
  * @description: Retrieves a list of delivery zones. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getZones/).
@@ -2279,7 +1872,6 @@ class Serviceability {
2279
1872
  async getZones(
2280
1873
  {
2281
1874
  stage,
2282
- type,
2283
1875
  pageSize,
2284
1876
  pageNo,
2285
1877
  isActive,
@@ -2298,7 +1890,6 @@ class Serviceability {
2298
1890
  } = ServiceabilityPlatformApplicationValidator.getZones().validate(
2299
1891
  {
2300
1892
  stage,
2301
- type,
2302
1893
  pageSize,
2303
1894
  pageNo,
2304
1895
  isActive,
@@ -2321,7 +1912,6 @@ class Serviceability {
2321
1912
  } = ServiceabilityPlatformApplicationValidator.getZones().validate(
2322
1913
  {
2323
1914
  stage,
2324
- type,
2325
1915
  pageSize,
2326
1916
  pageNo,
2327
1917
  isActive,
@@ -2343,7 +1933,6 @@ class Serviceability {
2343
1933
 
2344
1934
  const query_params = {};
2345
1935
  query_params["stage"] = stage;
2346
- query_params["type"] = type;
2347
1936
  query_params["page_size"] = pageSize;
2348
1937
  query_params["page_no"] = pageNo;
2349
1938
  query_params["is_active"] = isActive;
@@ -2371,10 +1960,10 @@ class Serviceability {
2371
1960
 
2372
1961
  const {
2373
1962
  error: res_error,
2374
- } = ServiceabilityPlatformModel.ListViewResponseV2().validate(
2375
- responseData,
2376
- { abortEarly: false, allowUnknown: true }
2377
- );
1963
+ } = ServiceabilityPlatformModel.ListViewSchema().validate(responseData, {
1964
+ abortEarly: false,
1965
+ allowUnknown: true,
1966
+ });
2378
1967
 
2379
1968
  if (res_error) {
2380
1969
  if (this.config.options.strictResponseCheck === true) {
@@ -2478,11 +2067,11 @@ class Serviceability {
2478
2067
  *
2479
2068
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2480
2069
  * @param {import("../PlatformAPIClient").Options} - Options
2481
- * @returns {Promise<ServiceabilityPlatformModel.ApplicationConfigPatchResponse>}
2070
+ * @returns {Promise<ServiceabilityPlatformModel.ApplicationConfigPatchResult>}
2482
2071
  * - Success response
2483
2072
  *
2484
2073
  * @name patchApplicationConfiguration
2485
- * @summary: To patch any config which can be applied to application.
2074
+ * @summary: To patch any config which can be applied to application
2486
2075
  * @description: Apply configs to application. Supports patching for buybox rule config and promise config. For reference, refer to examples - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/patchApplicationConfiguration/).
2487
2076
  */
2488
2077
  async patchApplicationConfiguration(
@@ -2536,7 +2125,7 @@ class Serviceability {
2536
2125
 
2537
2126
  const {
2538
2127
  error: res_error,
2539
- } = ServiceabilityPlatformModel.ApplicationConfigPatchResponse().validate(
2128
+ } = ServiceabilityPlatformModel.ApplicationConfigPatchResult().validate(
2540
2129
  responseData,
2541
2130
  { abortEarly: false, allowUnknown: true }
2542
2131
  );
@@ -2561,9 +2150,8 @@ class Serviceability {
2561
2150
  *
2562
2151
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2563
2152
  * @param {import("../PlatformAPIClient").Options} - Options
2564
- * @returns {Promise<ServiceabilityPlatformModel.ApplicationConfigPutResponse>}
2565
- * - Success response
2566
- *
2153
+ * @returns {Promise<ServiceabilityPlatformModel.ApplicationConfigPut>} -
2154
+ * Success response
2567
2155
  * @name updateApplicationConfiguration
2568
2156
  * @summary: Apply configuration to an application
2569
2157
  * @description: Apply configuration to application to set DP rules and Zone configuration - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/updateApplicationConfiguration/).
@@ -2619,7 +2207,7 @@ class Serviceability {
2619
2207
 
2620
2208
  const {
2621
2209
  error: res_error,
2622
- } = ServiceabilityPlatformModel.ApplicationConfigPutResponse().validate(
2210
+ } = ServiceabilityPlatformModel.ApplicationConfigPut().validate(
2623
2211
  responseData,
2624
2212
  { abortEarly: false, allowUnknown: true }
2625
2213
  );
@@ -2647,7 +2235,7 @@ class Serviceability {
2647
2235
  * @returns {Promise<ServiceabilityPlatformModel.BulkGeoAreaResult>} -
2648
2236
  * Success response
2649
2237
  * @name updateBulkGeoArea
2650
- * @summary: Update geoareas and their associated regions in bulk.
2238
+ * @summary: Update geoareas and their associated regions in bulk
2651
2239
  * @description: Update geoarea details and their associated regions through a CSV file in bulk. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/updateBulkGeoArea/).
2652
2240
  */
2653
2241
  async updateBulkGeoArea(
@@ -2728,7 +2316,7 @@ class Serviceability {
2728
2316
  *
2729
2317
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2730
2318
  * @param {import("../PlatformAPIClient").Options} - Options
2731
- * @returns {Promise<ServiceabilityPlatformModel.RulePriorityResponse>} -
2319
+ * @returns {Promise<ServiceabilityPlatformModel.RulePriorityResult>} -
2732
2320
  * Success response
2733
2321
  * @name updateCourierPartnerRulePriority
2734
2322
  * @summary: Update courier partner rule priority
@@ -2785,7 +2373,7 @@ class Serviceability {
2785
2373
 
2786
2374
  const {
2787
2375
  error: res_error,
2788
- } = ServiceabilityPlatformModel.RulePriorityResponse().validate(
2376
+ } = ServiceabilityPlatformModel.RulePriorityResult().validate(
2789
2377
  responseData,
2790
2378
  { abortEarly: false, allowUnknown: true }
2791
2379
  );
@@ -2810,12 +2398,12 @@ class Serviceability {
2810
2398
  *
2811
2399
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2812
2400
  * @param {import("../PlatformAPIClient").Options} - Options
2813
- * @returns {Promise<ServiceabilityPlatformModel.CourierPartnerRuleResponseSchema>}
2401
+ * @returns {Promise<ServiceabilityPlatformModel.CourierPartnerRuleResult>}
2814
2402
  * - Success response
2815
2403
  *
2816
2404
  * @name updateCourierRule
2817
2405
  * @summary: Update courier rule
2818
- * @description: Updates an existing rule within the delivery configuration - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/updateCourierRule/).
2406
+ * @description: Updates an existing rule within the delivery configuration. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/updateCourierRule/).
2819
2407
  */
2820
2408
  async updateCourierRule(
2821
2409
  { ruleUid, body, requestHeaders } = { requestHeaders: {} },
@@ -2870,7 +2458,7 @@ class Serviceability {
2870
2458
 
2871
2459
  const {
2872
2460
  error: res_error,
2873
- } = ServiceabilityPlatformModel.CourierPartnerRuleResponseSchema().validate(
2461
+ } = ServiceabilityPlatformModel.CourierPartnerRuleResult().validate(
2874
2462
  responseData,
2875
2463
  { abortEarly: false, allowUnknown: true }
2876
2464
  );
@@ -2981,7 +2569,7 @@ class Serviceability {
2981
2569
  *
2982
2570
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2983
2571
  * @param {import("../PlatformAPIClient").Options} - Options
2984
- * @returns {Promise<ServiceabilityPlatformModel.PincodeMopUpdateAuditHistoryResponseData>}
2572
+ * @returns {Promise<ServiceabilityPlatformModel.PincodeMopUpdateAuditHistoryResultData>}
2985
2573
  * - Success response
2986
2574
  *
2987
2575
  * @name updatePincodeAuditHistory
@@ -2989,7 +2577,7 @@ class Serviceability {
2989
2577
  * @description: Retrieves the history of changes made to cash on delivery settings for pincodes. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/updatePincodeAuditHistory/).
2990
2578
  */
2991
2579
  async updatePincodeAuditHistory(
2992
- { body, requestHeaders } = { requestHeaders: {} },
2580
+ { body, pageNumber, pageSize, requestHeaders } = { requestHeaders: {} },
2993
2581
  { responseHeaders } = { responseHeaders: false }
2994
2582
  ) {
2995
2583
  const {
@@ -2997,6 +2585,8 @@ class Serviceability {
2997
2585
  } = ServiceabilityPlatformApplicationValidator.updatePincodeAuditHistory().validate(
2998
2586
  {
2999
2587
  body,
2588
+ pageNumber,
2589
+ pageSize,
3000
2590
  },
3001
2591
  { abortEarly: false, allowUnknown: true }
3002
2592
  );
@@ -3010,6 +2600,8 @@ class Serviceability {
3010
2600
  } = ServiceabilityPlatformApplicationValidator.updatePincodeAuditHistory().validate(
3011
2601
  {
3012
2602
  body,
2603
+ pageNumber,
2604
+ pageSize,
3013
2605
  },
3014
2606
  { abortEarly: false, allowUnknown: false }
3015
2607
  );
@@ -3021,6 +2613,8 @@ class Serviceability {
3021
2613
  }
3022
2614
 
3023
2615
  const query_params = {};
2616
+ query_params["page_number"] = pageNumber;
2617
+ query_params["page_size"] = pageSize;
3024
2618
 
3025
2619
  const response = await PlatformAPIClient.execute(
3026
2620
  this.config,
@@ -3039,7 +2633,7 @@ class Serviceability {
3039
2633
 
3040
2634
  const {
3041
2635
  error: res_error,
3042
- } = ServiceabilityPlatformModel.PincodeMopUpdateAuditHistoryResponseData().validate(
2636
+ } = ServiceabilityPlatformModel.PincodeMopUpdateAuditHistoryResultData().validate(
3043
2637
  responseData,
3044
2638
  { abortEarly: false, allowUnknown: true }
3045
2639
  );
@@ -3064,9 +2658,8 @@ class Serviceability {
3064
2658
  *
3065
2659
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3066
2660
  * @param {import("../PlatformAPIClient").Options} - Options
3067
- * @returns {Promise<ServiceabilityPlatformModel.PincodeBulkViewResponse>}
3068
- * - Success response
3069
- *
2661
+ * @returns {Promise<ServiceabilityPlatformModel.PincodeBulkViewResult>} -
2662
+ * Success response
3070
2663
  * @name updatePincodeBulkView
3071
2664
  * @summary: Bulk update pincode COD support
3072
2665
  * @description: Updates the cash on delivery settings for multiple specified pin codes simultaneously. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/updatePincodeBulkView/).
@@ -3122,7 +2715,7 @@ class Serviceability {
3122
2715
 
3123
2716
  const {
3124
2717
  error: res_error,
3125
- } = ServiceabilityPlatformModel.PincodeBulkViewResponse().validate(
2718
+ } = ServiceabilityPlatformModel.PincodeBulkViewResult().validate(
3126
2719
  responseData,
3127
2720
  { abortEarly: false, allowUnknown: true }
3128
2721
  );
@@ -3147,7 +2740,7 @@ class Serviceability {
3147
2740
  *
3148
2741
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3149
2742
  * @param {import("../PlatformAPIClient").Options} - Options
3150
- * @returns {Promise<ServiceabilityPlatformModel.PincodeCodStatusListingResponse>}
2743
+ * @returns {Promise<ServiceabilityPlatformModel.PincodeCodStatusListingResult>}
3151
2744
  * - Success response
3152
2745
  *
3153
2746
  * @name updatePincodeCoDListing
@@ -3155,7 +2748,7 @@ class Serviceability {
3155
2748
  * @description: Retrieves a list of pincodes along with the count based on whether cash on delivery settings. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/updatePincodeCoDListing/).
3156
2749
  */
3157
2750
  async updatePincodeCoDListing(
3158
- { body, requestHeaders } = { requestHeaders: {} },
2751
+ { body, pageNumber, pageSize, requestHeaders } = { requestHeaders: {} },
3159
2752
  { responseHeaders } = { responseHeaders: false }
3160
2753
  ) {
3161
2754
  const {
@@ -3163,6 +2756,8 @@ class Serviceability {
3163
2756
  } = ServiceabilityPlatformApplicationValidator.updatePincodeCoDListing().validate(
3164
2757
  {
3165
2758
  body,
2759
+ pageNumber,
2760
+ pageSize,
3166
2761
  },
3167
2762
  { abortEarly: false, allowUnknown: true }
3168
2763
  );
@@ -3176,6 +2771,8 @@ class Serviceability {
3176
2771
  } = ServiceabilityPlatformApplicationValidator.updatePincodeCoDListing().validate(
3177
2772
  {
3178
2773
  body,
2774
+ pageNumber,
2775
+ pageSize,
3179
2776
  },
3180
2777
  { abortEarly: false, allowUnknown: false }
3181
2778
  );
@@ -3187,6 +2784,8 @@ class Serviceability {
3187
2784
  }
3188
2785
 
3189
2786
  const query_params = {};
2787
+ query_params["page_number"] = pageNumber;
2788
+ query_params["page_size"] = pageSize;
3190
2789
 
3191
2790
  const response = await PlatformAPIClient.execute(
3192
2791
  this.config,
@@ -3205,7 +2804,7 @@ class Serviceability {
3205
2804
 
3206
2805
  const {
3207
2806
  error: res_error,
3208
- } = ServiceabilityPlatformModel.PincodeCodStatusListingResponse().validate(
2807
+ } = ServiceabilityPlatformModel.PincodeCodStatusListingResult().validate(
3209
2808
  responseData,
3210
2809
  { abortEarly: false, allowUnknown: true }
3211
2810
  );
@@ -3230,8 +2829,7 @@ class Serviceability {
3230
2829
  *
3231
2830
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3232
2831
  * @param {import("../PlatformAPIClient").Options} - Options
3233
- * @returns {Promise<ServiceabilityPlatformModel.PincodeMOPresponse>} -
3234
- * Success response
2832
+ * @returns {Promise<ServiceabilityPlatformModel.PincodeMOPResult>} - Success response
3235
2833
  * @name updatePincodeMopView
3236
2834
  * @summary: Update pincode COD support
3237
2835
  * @description: Modify and update views related to pincode MOP (Mode of Payment). - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/updatePincodeMopView/).
@@ -3287,10 +2885,10 @@ class Serviceability {
3287
2885
 
3288
2886
  const {
3289
2887
  error: res_error,
3290
- } = ServiceabilityPlatformModel.PincodeMOPresponse().validate(
3291
- responseData,
3292
- { abortEarly: false, allowUnknown: true }
3293
- );
2888
+ } = ServiceabilityPlatformModel.PincodeMOPResult().validate(responseData, {
2889
+ abortEarly: false,
2890
+ allowUnknown: true,
2891
+ });
3294
2892
 
3295
2893
  if (res_error) {
3296
2894
  if (this.config.options.strictResponseCheck === true) {
@@ -3312,7 +2910,7 @@ class Serviceability {
3312
2910
  *
3313
2911
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3314
2912
  * @param {import("../PlatformAPIClient").Options} - Options
3315
- * @returns {Promise<ServiceabilityPlatformModel.RulePriorityResponse>} -
2913
+ * @returns {Promise<ServiceabilityPlatformModel.RulePriorityResult>} -
3316
2914
  * Success response
3317
2915
  * @name updateStoreRulePriority
3318
2916
  * @summary: Update Store Rule priority
@@ -3369,7 +2967,7 @@ class Serviceability {
3369
2967
 
3370
2968
  const {
3371
2969
  error: res_error,
3372
- } = ServiceabilityPlatformModel.RulePriorityResponse().validate(
2970
+ } = ServiceabilityPlatformModel.RulePriorityResult().validate(
3373
2971
  responseData,
3374
2972
  { abortEarly: false, allowUnknown: true }
3375
2973
  );
@@ -3394,7 +2992,7 @@ class Serviceability {
3394
2992
  *
3395
2993
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3396
2994
  * @param {import("../PlatformAPIClient").Options} - Options
3397
- * @returns {Promise<ServiceabilityPlatformModel.StoreRuleUpdateResponseSchema>}
2995
+ * @returns {Promise<ServiceabilityPlatformModel.StoreRuleUpdateResultSchema>}
3398
2996
  * - Success response
3399
2997
  *
3400
2998
  * @name updateStoreRules
@@ -3454,7 +3052,7 @@ class Serviceability {
3454
3052
 
3455
3053
  const {
3456
3054
  error: res_error,
3457
- } = ServiceabilityPlatformModel.StoreRuleUpdateResponseSchema().validate(
3055
+ } = ServiceabilityPlatformModel.StoreRuleUpdateResultSchema().validate(
3458
3056
  responseData,
3459
3057
  { abortEarly: false, allowUnknown: true }
3460
3058
  );
@@ -3561,11 +3159,11 @@ class Serviceability {
3561
3159
  *
3562
3160
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3563
3161
  * @param {import("../PlatformAPIClient").Options} - Options
3564
- * @returns {Promise<ServiceabilityPlatformModel.ZoneUpdateSuccessResponse>}
3162
+ * @returns {Promise<ServiceabilityPlatformModel.ZoneUpdateSuccessResult>}
3565
3163
  * - Success response
3566
3164
  *
3567
3165
  * @name updateZone
3568
- * @summary: Update details of a Zone to enable or disable.
3166
+ * @summary: Update details of a Zone to enable or disable
3569
3167
  * @description: Enable or Disable a Zone under that application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/updateZone/).
3570
3168
  */
3571
3169
  async updateZone(
@@ -3623,7 +3221,7 @@ class Serviceability {
3623
3221
 
3624
3222
  const {
3625
3223
  error: res_error,
3626
- } = ServiceabilityPlatformModel.ZoneUpdateSuccessResponse().validate(
3224
+ } = ServiceabilityPlatformModel.ZoneUpdateSuccessResult().validate(
3627
3225
  responseData,
3628
3226
  { abortEarly: false, allowUnknown: true }
3629
3227
  );