@gofynd/fdk-client-javascript 1.1.6 → 1.3.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 (348) hide show
  1. package/README.md +52 -3
  2. package/index.js +0 -3
  3. package/package.json +1 -2
  4. package/sdk/application/ApplicationAPIClient.d.ts +15 -1
  5. package/sdk/application/ApplicationAPIClient.js +12 -3
  6. package/sdk/application/ApplicationClient.d.ts +36 -6
  7. package/sdk/application/ApplicationClient.js +30 -43
  8. package/sdk/application/ApplicationConfig.d.ts +92 -12
  9. package/sdk/application/ApplicationConfig.js +48 -14
  10. package/sdk/application/Cart/CartApplicationClient.d.ts +200 -357
  11. package/sdk/application/Cart/CartApplicationClient.js +711 -483
  12. package/sdk/application/Cart/CartApplicationModel.d.ts +2054 -96
  13. package/sdk/application/Cart/CartApplicationModel.js +1224 -93
  14. package/sdk/application/Cart/CartApplicationValidator.d.ts +508 -30
  15. package/sdk/application/Cart/CartApplicationValidator.js +270 -15
  16. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +274 -422
  17. package/sdk/application/Catalog/CatalogApplicationClient.js +865 -630
  18. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2320 -117
  19. package/sdk/application/Catalog/CatalogApplicationModel.js +1566 -172
  20. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +798 -31
  21. package/sdk/application/Catalog/CatalogApplicationValidator.js +318 -3
  22. package/sdk/application/Common/CommonApplicationClient.d.ts +16 -21
  23. package/sdk/application/Common/CommonApplicationClient.js +52 -33
  24. package/sdk/application/Common/CommonApplicationModel.d.ts +368 -19
  25. package/sdk/application/Common/CommonApplicationModel.js +192 -40
  26. package/sdk/application/Common/CommonApplicationValidator.d.ts +42 -4
  27. package/sdk/application/Common/CommonApplicationValidator.js +21 -3
  28. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +31 -18
  29. package/sdk/application/Communication/CommunicationApplicationClient.js +86 -47
  30. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +157 -14
  31. package/sdk/application/Communication/CommunicationApplicationModel.js +104 -23
  32. package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +27 -4
  33. package/sdk/application/Communication/CommunicationApplicationValidator.js +21 -5
  34. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +149 -118
  35. package/sdk/application/Configuration/ConfigurationApplicationClient.js +457 -260
  36. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +2235 -110
  37. package/sdk/application/Configuration/ConfigurationApplicationModel.js +1113 -193
  38. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +160 -8
  39. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +88 -4
  40. package/sdk/application/Content/ContentApplicationClient.d.ts +149 -139
  41. package/sdk/application/Content/ContentApplicationClient.js +489 -278
  42. package/sdk/application/Content/ContentApplicationModel.d.ts +1010 -105
  43. package/sdk/application/Content/ContentApplicationModel.js +737 -396
  44. package/sdk/application/Content/ContentApplicationValidator.d.ts +214 -12
  45. package/sdk/application/Content/ContentApplicationValidator.js +113 -3
  46. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +23 -29
  47. package/sdk/application/FileStorage/FileStorageApplicationClient.js +74 -47
  48. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +148 -20
  49. package/sdk/application/FileStorage/FileStorageApplicationModel.js +100 -87
  50. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +55 -5
  51. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +33 -6
  52. package/sdk/application/Lead/LeadApplicationClient.d.ts +57 -53
  53. package/sdk/application/Lead/LeadApplicationClient.js +188 -103
  54. package/sdk/application/Lead/LeadApplicationModel.d.ts +686 -54
  55. package/sdk/application/Lead/LeadApplicationModel.js +330 -244
  56. package/sdk/application/Lead/LeadApplicationValidator.d.ts +91 -9
  57. package/sdk/application/Lead/LeadApplicationValidator.js +51 -6
  58. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +40 -33
  59. package/sdk/application/Logistic/LogisticApplicationClient.js +131 -73
  60. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +399 -28
  61. package/sdk/application/Logistic/LogisticApplicationModel.js +293 -24
  62. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +48 -6
  63. package/sdk/application/Logistic/LogisticApplicationValidator.js +34 -6
  64. package/sdk/application/Order/OrderApplicationClient.d.ts +93 -133
  65. package/sdk/application/Order/OrderApplicationClient.js +329 -217
  66. package/sdk/application/Order/OrderApplicationModel.d.ts +1101 -66
  67. package/sdk/application/Order/OrderApplicationModel.js +776 -57
  68. package/sdk/application/Order/OrderApplicationValidator.d.ts +249 -14
  69. package/sdk/application/Order/OrderApplicationValidator.js +114 -5
  70. package/sdk/application/Payment/PaymentApplicationClient.d.ts +400 -366
  71. package/sdk/application/Payment/PaymentApplicationClient.js +1176 -703
  72. package/sdk/application/Payment/PaymentApplicationModel.d.ts +3125 -99
  73. package/sdk/application/Payment/PaymentApplicationModel.js +1158 -62
  74. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +494 -41
  75. package/sdk/application/Payment/PaymentApplicationValidator.js +297 -25
  76. package/sdk/application/PosCart/PosCartApplicationClient.d.ts +205 -350
  77. package/sdk/application/PosCart/PosCartApplicationClient.js +720 -491
  78. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1823 -89
  79. package/sdk/application/PosCart/PosCartApplicationModel.js +1117 -85
  80. package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +480 -29
  81. package/sdk/application/PosCart/PosCartApplicationValidator.js +262 -15
  82. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +58 -47
  83. package/sdk/application/Rewards/RewardsApplicationClient.js +187 -102
  84. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +343 -22
  85. package/sdk/application/Rewards/RewardsApplicationModel.js +230 -15
  86. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +70 -7
  87. package/sdk/application/Rewards/RewardsApplicationValidator.js +45 -6
  88. package/sdk/application/Share/ShareApplicationClient.d.ts +52 -50
  89. package/sdk/application/Share/ShareApplicationClient.js +185 -97
  90. package/sdk/application/Share/ShareApplicationModel.d.ts +198 -15
  91. package/sdk/application/Share/ShareApplicationModel.js +131 -31
  92. package/sdk/application/Share/ShareApplicationValidator.d.ts +86 -8
  93. package/sdk/application/Share/ShareApplicationValidator.js +48 -4
  94. package/sdk/application/Theme/ThemeApplicationClient.d.ts +30 -27
  95. package/sdk/application/Theme/ThemeApplicationClient.js +102 -56
  96. package/sdk/application/Theme/ThemeApplicationModel.d.ts +1291 -48
  97. package/sdk/application/Theme/ThemeApplicationModel.js +895 -134
  98. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +49 -5
  99. package/sdk/application/Theme/ThemeApplicationValidator.js +26 -3
  100. package/sdk/application/User/UserApplicationClient.d.ts +260 -305
  101. package/sdk/application/User/UserApplicationClient.js +910 -522
  102. package/sdk/application/User/UserApplicationModel.d.ts +992 -101
  103. package/sdk/application/User/UserApplicationModel.js +699 -248
  104. package/sdk/application/User/UserApplicationValidator.d.ts +457 -33
  105. package/sdk/application/User/UserApplicationValidator.js +265 -31
  106. package/sdk/common/AxiosHelper.js +7 -2
  107. package/sdk/common/FDKError.d.ts +3 -0
  108. package/sdk/common/FDKError.js +8 -0
  109. package/sdk/common/Paginator.d.ts +27 -12
  110. package/sdk/common/Paginator.js +15 -0
  111. package/sdk/common/RequestSigner.js +0 -1
  112. package/sdk/common/utils.d.ts +3 -0
  113. package/sdk/common/utils.js +29 -0
  114. package/sdk/partner/PartnerAPIClient.d.ts +16 -1
  115. package/sdk/partner/PartnerAPIClient.js +12 -2
  116. package/sdk/partner/PartnerClient.d.ts +22 -3
  117. package/sdk/partner/PartnerClient.js +20 -0
  118. package/sdk/partner/PartnerConfig.d.ts +40 -14
  119. package/sdk/partner/PartnerConfig.js +31 -6
  120. package/sdk/partner/Theme/ThemePartnerClient.d.ts +299 -0
  121. package/sdk/partner/Theme/ThemePartnerClient.js +768 -0
  122. package/sdk/partner/Theme/ThemePartnerModel.d.ts +1706 -0
  123. package/sdk/partner/Theme/ThemePartnerModel.js +1409 -0
  124. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +22 -0
  125. package/sdk/partner/Theme/ThemePartnerValidator.js +157 -0
  126. package/sdk/partner/index.d.ts +3 -1
  127. package/sdk/partner/index.js +3 -1
  128. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +30 -25
  129. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +104 -53
  130. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +190 -17
  131. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +132 -15
  132. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +52 -5
  133. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +30 -4
  134. package/sdk/platform/Billing/BillingPlatformClient.d.ts +133 -97
  135. package/sdk/platform/Billing/BillingPlatformClient.js +561 -191
  136. package/sdk/platform/Billing/BillingPlatformModel.d.ts +1071 -68
  137. package/sdk/platform/Billing/BillingPlatformModel.js +762 -151
  138. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +175 -12
  139. package/sdk/platform/Billing/BillingPlatformValidator.js +118 -8
  140. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +454 -635
  141. package/sdk/platform/Cart/CartPlatformApplicationClient.js +1646 -957
  142. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +827 -57
  143. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +492 -34
  144. package/sdk/platform/Cart/CartPlatformModel.d.ts +3839 -175
  145. package/sdk/platform/Cart/CartPlatformModel.js +2423 -217
  146. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +528 -638
  147. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1600 -984
  148. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1081 -49
  149. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +482 -23
  150. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +652 -826
  151. package/sdk/platform/Catalog/CatalogPlatformClient.js +1979 -1264
  152. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6869 -326
  153. package/sdk/platform/Catalog/CatalogPlatformModel.js +4215 -351
  154. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +1361 -71
  155. package/sdk/platform/Catalog/CatalogPlatformValidator.js +624 -30
  156. package/sdk/platform/Common/CommonPlatformClient.d.ts +16 -21
  157. package/sdk/platform/Common/CommonPlatformClient.js +50 -33
  158. package/sdk/platform/Common/CommonPlatformModel.d.ts +423 -19
  159. package/sdk/platform/Common/CommonPlatformModel.js +214 -40
  160. package/sdk/platform/Common/CommonPlatformValidator.d.ts +37 -4
  161. package/sdk/platform/Common/CommonPlatformValidator.js +20 -3
  162. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +731 -303
  163. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +3095 -785
  164. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +699 -41
  165. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +463 -27
  166. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +19 -5
  167. package/sdk/platform/Communication/CommunicationPlatformClient.js +59 -19
  168. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1708 -102
  169. package/sdk/platform/Communication/CommunicationPlatformModel.js +1360 -235
  170. package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +16 -3
  171. package/sdk/platform/Communication/CommunicationPlatformValidator.js +11 -3
  172. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +127 -111
  173. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +435 -225
  174. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +882 -43
  175. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +666 -78
  176. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +184 -13
  177. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +105 -10
  178. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +327 -240
  179. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +922 -438
  180. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +297 -22
  181. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +191 -17
  182. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +184 -178
  183. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +555 -311
  184. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +4337 -188
  185. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2178 -248
  186. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +332 -19
  187. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +153 -10
  188. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +605 -578
  189. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1996 -987
  190. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +872 -62
  191. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +487 -35
  192. package/sdk/platform/Content/ContentPlatformModel.d.ts +1472 -108
  193. package/sdk/platform/Content/ContentPlatformModel.js +1085 -204
  194. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +85 -82
  195. package/sdk/platform/Discount/DiscountPlatformClient.js +333 -175
  196. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +281 -15
  197. package/sdk/platform/Discount/DiscountPlatformModel.js +189 -10
  198. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +185 -13
  199. package/sdk/platform/Discount/DiscountPlatformValidator.js +88 -8
  200. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +109 -52
  201. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +570 -105
  202. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +141 -6
  203. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +118 -7
  204. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +43 -63
  205. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +153 -135
  206. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +426 -20
  207. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +379 -40
  208. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +106 -8
  209. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +60 -8
  210. package/sdk/platform/Finance/FinancePlatformClient.d.ts +260 -129
  211. package/sdk/platform/Finance/FinancePlatformClient.js +1182 -194
  212. package/sdk/platform/Finance/FinancePlatformModel.d.ts +1267 -50
  213. package/sdk/platform/Finance/FinancePlatformModel.js +1252 -38
  214. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +233 -15
  215. package/sdk/platform/Finance/FinancePlatformValidator.js +229 -16
  216. package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +111 -97
  217. package/sdk/platform/Inventory/InventoryPlatformClient.js +330 -199
  218. package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +1354 -61
  219. package/sdk/platform/Inventory/InventoryPlatformModel.js +916 -83
  220. package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +168 -12
  221. package/sdk/platform/Inventory/InventoryPlatformValidator.js +82 -6
  222. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +100 -106
  223. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +372 -186
  224. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +180 -14
  225. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +94 -9
  226. package/sdk/platform/Lead/LeadPlatformClient.d.ts +89 -104
  227. package/sdk/platform/Lead/LeadPlatformClient.js +305 -180
  228. package/sdk/platform/Lead/LeadPlatformModel.d.ts +1045 -54
  229. package/sdk/platform/Lead/LeadPlatformModel.js +504 -142
  230. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +173 -12
  231. package/sdk/platform/Lead/LeadPlatformValidator.js +92 -15
  232. package/sdk/platform/OAuthClient.js +6 -2
  233. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +20 -14
  234. package/sdk/platform/Order/OrderPlatformApplicationClient.js +58 -29
  235. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +26 -4
  236. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +16 -3
  237. package/sdk/platform/Order/OrderPlatformClient.d.ts +437 -556
  238. package/sdk/platform/Order/OrderPlatformClient.js +1500 -760
  239. package/sdk/platform/Order/OrderPlatformModel.d.ts +5225 -247
  240. package/sdk/platform/Order/OrderPlatformModel.js +3473 -260
  241. package/sdk/platform/Order/OrderPlatformValidator.d.ts +859 -37
  242. package/sdk/platform/Order/OrderPlatformValidator.js +435 -23
  243. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +16 -42
  244. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +52 -155
  245. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +37 -6
  246. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +19 -17
  247. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +78 -45
  248. package/sdk/platform/Partner/PartnerPlatformModel.js +43 -369
  249. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +418 -288
  250. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +1509 -505
  251. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +438 -30
  252. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +312 -19
  253. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +83 -73
  254. package/sdk/platform/Payment/PaymentPlatformClient.js +259 -154
  255. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +3200 -93
  256. package/sdk/platform/Payment/PaymentPlatformModel.js +1334 -36
  257. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +111 -11
  258. package/sdk/platform/Payment/PaymentPlatformValidator.js +68 -7
  259. package/sdk/platform/PlatformAPIClient.d.ts +16 -1
  260. package/sdk/platform/PlatformAPIClient.js +9 -1
  261. package/sdk/platform/PlatformApplicationClient.d.ts +22 -1798
  262. package/sdk/platform/PlatformApplicationClient.js +17 -1899
  263. package/sdk/platform/PlatformClient.d.ts +31 -12581
  264. package/sdk/platform/PlatformClient.js +30 -15089
  265. package/sdk/platform/PlatformConfig.d.ts +37 -11
  266. package/sdk/platform/PlatformConfig.js +32 -6
  267. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +96 -92
  268. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +344 -177
  269. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +149 -12
  270. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +82 -8
  271. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +360 -23
  272. package/sdk/platform/Rewards/RewardsPlatformModel.js +238 -22
  273. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +159 -92
  274. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +473 -208
  275. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +138 -13
  276. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +100 -14
  277. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +166 -178
  278. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +518 -329
  279. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1408 -96
  280. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1034 -71
  281. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +280 -18
  282. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +134 -11
  283. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +41 -66
  284. package/sdk/platform/Share/SharePlatformApplicationClient.js +149 -116
  285. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +87 -7
  286. package/sdk/platform/Share/SharePlatformApplicationValidator.js +42 -5
  287. package/sdk/platform/Share/SharePlatformModel.d.ts +250 -16
  288. package/sdk/platform/Share/SharePlatformModel.js +167 -19
  289. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +229 -193
  290. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +976 -352
  291. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +345 -24
  292. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +206 -14
  293. package/sdk/platform/Theme/ThemePlatformClient.d.ts +37 -0
  294. package/sdk/platform/Theme/ThemePlatformClient.js +235 -0
  295. package/sdk/platform/Theme/ThemePlatformModel.d.ts +1527 -48
  296. package/sdk/platform/Theme/ThemePlatformModel.js +1099 -118
  297. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +32 -0
  298. package/sdk/platform/Theme/ThemePlatformValidator.js +38 -0
  299. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +138 -152
  300. package/sdk/platform/User/UserPlatformApplicationClient.js +470 -244
  301. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +242 -18
  302. package/sdk/platform/User/UserPlatformApplicationValidator.js +129 -12
  303. package/sdk/platform/User/UserPlatformModel.d.ts +653 -101
  304. package/sdk/platform/User/UserPlatformModel.js +467 -424
  305. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +153 -49
  306. package/sdk/platform/Webhook/WebhookPlatformClient.js +896 -88
  307. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +632 -16
  308. package/sdk/platform/Webhook/WebhookPlatformModel.js +502 -54
  309. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +170 -7
  310. package/sdk/platform/Webhook/WebhookPlatformValidator.js +157 -7
  311. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +16 -21
  312. package/sdk/public/Configuration/ConfigurationPublicClient.js +48 -33
  313. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +370 -19
  314. package/sdk/public/Configuration/ConfigurationPublicModel.js +191 -40
  315. package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +42 -4
  316. package/sdk/public/Configuration/ConfigurationPublicValidator.js +21 -3
  317. package/sdk/public/Inventory/InventoryPublicClient.d.ts +54 -48
  318. package/sdk/public/Inventory/InventoryPublicClient.js +161 -98
  319. package/sdk/public/Inventory/InventoryPublicModel.d.ts +392 -21
  320. package/sdk/public/Inventory/InventoryPublicModel.js +267 -27
  321. package/sdk/public/Inventory/InventoryPublicValidator.d.ts +90 -8
  322. package/sdk/public/Inventory/InventoryPublicValidator.js +44 -4
  323. package/sdk/public/Partner/PartnerPublicClient.d.ts +22 -0
  324. package/sdk/public/Partner/PartnerPublicClient.js +110 -0
  325. package/sdk/public/Partner/PartnerPublicModel.d.ts +240 -0
  326. package/sdk/public/Partner/PartnerPublicModel.js +280 -0
  327. package/sdk/public/Partner/PartnerPublicValidator.d.ts +18 -0
  328. package/sdk/public/Partner/PartnerPublicValidator.js +19 -0
  329. package/sdk/public/PublicAPIClient.d.ts +14 -1
  330. package/sdk/public/PublicAPIClient.js +7 -1
  331. package/sdk/public/PublicClient.d.ts +21 -3
  332. package/sdk/public/PublicClient.js +20 -0
  333. package/sdk/public/PublicConfig.d.ts +27 -6
  334. package/sdk/public/PublicConfig.js +17 -1
  335. package/sdk/public/Webhook/WebhookPublicClient.d.ts +16 -11
  336. package/sdk/public/Webhook/WebhookPublicClient.js +48 -27
  337. package/sdk/public/Webhook/WebhookPublicModel.d.ts +52 -16
  338. package/sdk/public/Webhook/WebhookPublicModel.js +33 -113
  339. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +18 -3
  340. package/sdk/public/Webhook/WebhookPublicValidator.js +14 -4
  341. package/sdk/public/index.d.ts +1 -0
  342. package/sdk/public/index.js +2 -0
  343. package/sdk/application/ApplicationModels.d.ts +0 -3
  344. package/sdk/application/ApplicationModels.js +0 -20
  345. package/sdk/platform/Partner/PartnerPlatformClient.d.ts +0 -145
  346. package/sdk/platform/Partner/PartnerPlatformClient.js +0 -799
  347. package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +0 -14
  348. package/sdk/platform/Partner/PartnerPlatformValidator.js +0 -87
@@ -1,6 +1,808 @@
1
1
  const Joi = require("joi");
2
2
 
3
- class FinanceModel {
3
+ /**
4
+ * @typedef ChannelDisplayName
5
+ * @property {string} [platform_pos]
6
+ */
7
+
8
+ /**
9
+ * @typedef ChannelDisplayNameResponse
10
+ * @property {ChannelDisplayName} [data]
11
+ * @property {boolean} [success]
12
+ */
13
+
14
+ /**
15
+ * @typedef CnDetails
16
+ * @property {string} [channel_of_issuance]
17
+ * @property {string} [date_issued]
18
+ * @property {string} [expiry_date]
19
+ * @property {string} [invoice_number]
20
+ * @property {string} [order_id]
21
+ * @property {string} [ordering_channel]
22
+ * @property {string} [shipment_id]
23
+ * @property {string} [staff_id]
24
+ * @property {string} [store_id]
25
+ */
26
+
27
+ /**
28
+ * @typedef CnDownloadReport
29
+ * @property {string} [affiliate_id]
30
+ * @property {string} [end_date]
31
+ * @property {number} [page]
32
+ * @property {number} [pagesize]
33
+ * @property {string} [search]
34
+ * @property {string} [search_type]
35
+ * @property {string} [start_date]
36
+ * @property {string[]} [status]
37
+ */
38
+
39
+ /**
40
+ * @typedef CnGenerateReport
41
+ * @property {string} [affiliate_id]
42
+ * @property {string} [end_date]
43
+ * @property {CnGenerateReportFilters} [filters]
44
+ * @property {GenerateReportFilters} [meta]
45
+ * @property {number} [page]
46
+ * @property {number} [pagesize]
47
+ * @property {string} [report_id]
48
+ * @property {string} [search]
49
+ * @property {string} [search_type]
50
+ * @property {string} [start_date]
51
+ */
52
+
53
+ /**
54
+ * @typedef CnGenerateReportFilters
55
+ * @property {string[]} [channel_of_issuance]
56
+ * @property {string[]} [ordering_channel]
57
+ * @property {string[]} [staff_id]
58
+ * @property {number[]} [store_id]
59
+ * @property {string[]} [types_of_transaction]
60
+ * @property {string[]} [utilisation]
61
+ */
62
+
63
+ /**
64
+ * @typedef CnGenerateReportItems
65
+ * @property {string} [credit_note_number]
66
+ * @property {string} [date_issued]
67
+ * @property {string} [expiry_date]
68
+ * @property {string} [invoice_number]
69
+ * @property {string} [order_id]
70
+ * @property {string} [shipment_id]
71
+ * @property {string} [status]
72
+ * @property {number} [total_amount]
73
+ */
74
+
75
+ /**
76
+ * @typedef CnReferenceNumber
77
+ * @property {string} [cn_reference_number]
78
+ */
79
+
80
+ /**
81
+ * @typedef CreateSellerCreditNoteConfig
82
+ * @property {string} [affiliate_id]
83
+ * @property {string} [currency_type]
84
+ * @property {boolean} [is_cn_as_refund_method]
85
+ * @property {CreditNoteConfigNotificationEvents} [notification_events]
86
+ * @property {string[]} [ordering_channel]
87
+ * @property {string} [sales_channel_name]
88
+ * @property {number} [seller_id]
89
+ * @property {string[]} [slug_values]
90
+ * @property {string[]} [source_channel]
91
+ * @property {number} [validity]
92
+ */
93
+
94
+ /**
95
+ * @typedef CreateSellerCreditNoteConfigRequest
96
+ * @property {CreateSellerCreditNoteConfig} [data]
97
+ */
98
+
99
+ /**
100
+ * @typedef CreateSellerCreditNoteConfigResponse
101
+ * @property {string} [message]
102
+ * @property {boolean} [success]
103
+ */
104
+
105
+ /**
106
+ * @typedef CreditlineDataPlatformPayload
107
+ * @property {string} [end_end]
108
+ * @property {number} [page]
109
+ * @property {number} [pagesize]
110
+ * @property {string} [seller_id]
111
+ * @property {string} [start_end]
112
+ */
113
+
114
+ /**
115
+ * @typedef CreditlineDataPlatformRequest
116
+ * @property {CreditlineDataPlatformPayload} [data]
117
+ */
118
+
119
+ /**
120
+ * @typedef CreditlineDataPlatformResponse
121
+ * @property {number} [code]
122
+ * @property {string[]} [headers]
123
+ * @property {number} [item_count]
124
+ * @property {Object[]} [items]
125
+ * @property {string} [message]
126
+ * @property {Object} [page]
127
+ * @property {boolean} [show_mr]
128
+ */
129
+
130
+ /**
131
+ * @typedef CreditNoteConfigNotificationEvents
132
+ * @property {number} [expiration_reminder_to_customer]
133
+ */
134
+
135
+ /**
136
+ * @typedef CreditNoteDetails
137
+ * @property {number} [available_cn_balance]
138
+ * @property {number} [cn_amount]
139
+ * @property {Object} [cn_details]
140
+ * @property {string} [cn_reference_number]
141
+ * @property {string} [cn_status]
142
+ * @property {string} [customer_mobile_number]
143
+ * @property {RedemptionDetails[]} [redemption_details]
144
+ * @property {number} [remaining_cn_amount]
145
+ */
146
+
147
+ /**
148
+ * @typedef CreditNoteDetailsRequest
149
+ * @property {CnReferenceNumber} [data]
150
+ */
151
+
152
+ /**
153
+ * @typedef CreditNoteDetailsResponse
154
+ * @property {CreditNoteDetails} [data]
155
+ * @property {boolean} [success]
156
+ */
157
+
158
+ /**
159
+ * @typedef DeleteConfig
160
+ * @property {string} [affiliate_id]
161
+ * @property {number} [seller_id]
162
+ * @property {string[]} [slug_values]
163
+ */
164
+
165
+ /**
166
+ * @typedef DeleteConfigRequest
167
+ * @property {DeleteConfig} [data]
168
+ */
169
+
170
+ /**
171
+ * @typedef DeleteConfigResponse
172
+ * @property {string} [message]
173
+ * @property {boolean} [success]
174
+ */
175
+
176
+ /**
177
+ * @typedef DownloadCreditDebitNote
178
+ * @property {string[]} [note_id]
179
+ */
180
+
181
+ /**
182
+ * @typedef DownloadCreditDebitNoteRequest
183
+ * @property {DownloadCreditDebitNote} [data]
184
+ */
185
+
186
+ /**
187
+ * @typedef DownloadCreditDebitNoteResponse
188
+ * @property {DownloadCreditDebitNoteResponseData[]} [data]
189
+ * @property {boolean} [success]
190
+ */
191
+
192
+ /**
193
+ * @typedef DownloadCreditDebitNoteResponseData
194
+ * @property {string} [id]
195
+ * @property {string} [pdf_s3_url]
196
+ */
197
+
198
+ /**
199
+ * @typedef DownloadReport
200
+ * @property {string} [end_date]
201
+ * @property {number} [page]
202
+ * @property {number} [pagesize]
203
+ * @property {string} [start_date]
204
+ */
205
+
206
+ /**
207
+ * @typedef DownloadReportCustomerCnRequest
208
+ * @property {CnDownloadReport} [data]
209
+ */
210
+
211
+ /**
212
+ * @typedef DownloadReportCustomerCnResponse
213
+ * @property {DownloadReportResponseData[]} [data]
214
+ */
215
+
216
+ /**
217
+ * @typedef DownloadReportItems
218
+ * @property {string} [end_date]
219
+ * @property {GenerateReportFilters} [filters]
220
+ * @property {GenerateReportMeta} [meta]
221
+ * @property {string} [report_id]
222
+ * @property {string} [start_date]
223
+ * @property {string} [type_of_request]
224
+ */
225
+
226
+ /**
227
+ * @typedef DownloadReportList
228
+ * @property {number} [item_count]
229
+ * @property {DownloadReportItems[]} [items]
230
+ * @property {Page} [page]
231
+ */
232
+
233
+ /**
234
+ * @typedef DownloadReportResponseData
235
+ * @property {string} [created_at]
236
+ * @property {string} [display_name]
237
+ * @property {string} [download_link]
238
+ * @property {string} [end_date]
239
+ * @property {Object} [filters]
240
+ * @property {string} [full_name]
241
+ * @property {Object} [meta]
242
+ * @property {string} [msg]
243
+ * @property {string} [report_config_id]
244
+ * @property {string} [report_name]
245
+ * @property {Object} [request_dict]
246
+ * @property {string} [requested_by]
247
+ * @property {string} [start_date]
248
+ * @property {string} [status]
249
+ */
250
+
251
+ /**
252
+ * @typedef Error
253
+ * @property {string} [reason]
254
+ * @property {boolean} [success]
255
+ */
256
+
257
+ /**
258
+ * @typedef GenerateReportCustomerCnRequest
259
+ * @property {CnGenerateReport} [data]
260
+ */
261
+
262
+ /**
263
+ * @typedef GenerateReportCustomerCnResponse
264
+ * @property {GenerateReportCustomerCnResponseData} [data]
265
+ */
266
+
267
+ /**
268
+ * @typedef GenerateReportCustomerCnResponseData
269
+ * @property {string[]} [allowed_filters]
270
+ * @property {string} [end_date]
271
+ * @property {string[]} [headers]
272
+ * @property {number} [item_count]
273
+ * @property {CnGenerateReportItems[]} [items]
274
+ * @property {Page} [page]
275
+ * @property {string[]} [primary_headers]
276
+ * @property {Object} [row_header_display_order]
277
+ * @property {string} [start_date]
278
+ */
279
+
280
+ /**
281
+ * @typedef GenerateReportFilters
282
+ * @property {string[]} [brand]
283
+ * @property {string[]} [channel]
284
+ * @property {string[]} [company]
285
+ */
286
+
287
+ /**
288
+ * @typedef GenerateReportJson
289
+ * @property {string} [end_date]
290
+ * @property {string[]} [headers]
291
+ * @property {number} [item_count]
292
+ * @property {string[][]} [items]
293
+ * @property {Page} [page]
294
+ * @property {string} [start_date]
295
+ */
296
+
297
+ /**
298
+ * @typedef GenerateReportMeta
299
+ * @property {string} [brand]
300
+ * @property {string} [channel]
301
+ * @property {string} [company]
302
+ */
303
+
304
+ /**
305
+ * @typedef GenerateReportPlatform
306
+ * @property {string} [end_date]
307
+ * @property {GenerateReportFilters} [filters]
308
+ * @property {GenerateReportMeta} [meta]
309
+ * @property {string} [report_id]
310
+ * @property {string} [start_date]
311
+ */
312
+
313
+ /**
314
+ * @typedef GenerateReportRequest
315
+ * @property {GenerateReportPlatform} [data]
316
+ */
317
+
318
+ /**
319
+ * @typedef GetAffiliate
320
+ * @property {number} [company_id]
321
+ */
322
+
323
+ /**
324
+ * @typedef GetAffiliateResponse
325
+ * @property {Object[]} [docs]
326
+ * @property {boolean} [success]
327
+ */
328
+
329
+ /**
330
+ * @typedef GetCnConfigRequest
331
+ * @property {DeleteConfig} [data]
332
+ */
333
+
334
+ /**
335
+ * @typedef GetCnConfigResponse
336
+ * @property {GetCnConfigResponseData} [data]
337
+ * @property {boolean} [success]
338
+ */
339
+
340
+ /**
341
+ * @typedef GetCnConfigResponseData
342
+ * @property {string} [affiliate_id]
343
+ * @property {string} [currency_type]
344
+ * @property {boolean} [is_cn_as_refund_method]
345
+ * @property {GetCnConfigResponseMeta} [meta]
346
+ * @property {CreditNoteConfigNotificationEvents} [notification_events]
347
+ * @property {string[]} [redemption_ordering_channel]
348
+ * @property {number} [seller_id]
349
+ * @property {number} [validity]
350
+ */
351
+
352
+ /**
353
+ * @typedef GetCnConfigResponseMeta
354
+ * @property {string} [reason]
355
+ * @property {string[]} [source_channel]
356
+ */
357
+
358
+ /**
359
+ * @typedef GetCustomerCreditBalance
360
+ * @property {string} [affiliate_id]
361
+ * @property {string} [customer_mobile_number]
362
+ * @property {number} [seller_id]
363
+ */
364
+
365
+ /**
366
+ * @typedef GetCustomerCreditBalanceRequest
367
+ * @property {GetCustomerCreditBalance} [data]
368
+ */
369
+
370
+ /**
371
+ * @typedef GetCustomerCreditBalanceResponse
372
+ * @property {GetCustomerCreditBalanceResponseData} [data]
373
+ * @property {boolean} [success]
374
+ */
375
+
376
+ /**
377
+ * @typedef GetCustomerCreditBalanceResponseData
378
+ * @property {string} [customer_mobile_number]
379
+ * @property {number} [total_credited_balance]
380
+ */
381
+
382
+ /**
383
+ * @typedef GetEngineData
384
+ * @property {Object} [filters]
385
+ * @property {string[]} [project]
386
+ * @property {string} [table_name]
387
+ */
388
+
389
+ /**
390
+ * @typedef GetEngineRequest
391
+ * @property {GetEngineData} [data]
392
+ */
393
+
394
+ /**
395
+ * @typedef GetEngineResponse
396
+ * @property {number} [item_count]
397
+ * @property {Object[]} [items]
398
+ * @property {Page} [page]
399
+ * @property {boolean} [success]
400
+ */
401
+
402
+ /**
403
+ * @typedef GetPdfUrlViewRequest
404
+ * @property {CnReferenceNumber} [data]
405
+ */
406
+
407
+ /**
408
+ * @typedef GetPdfUrlViewResponse
409
+ * @property {GetPdfUrlViewResponseData} [data]
410
+ * @property {boolean} [success]
411
+ */
412
+
413
+ /**
414
+ * @typedef GetPdfUrlViewResponseData
415
+ * @property {string} [cn_reference_number]
416
+ * @property {string} [s3_pdf_link]
417
+ */
418
+
419
+ /**
420
+ * @typedef GetReason
421
+ * @property {string} [reason_type]
422
+ */
423
+
424
+ /**
425
+ * @typedef GetReasonRequest
426
+ * @property {GetReason} [data]
427
+ */
428
+
429
+ /**
430
+ * @typedef GetReasonResponse
431
+ * @property {number} [item_count]
432
+ * @property {ReasonItem[]} [item_list]
433
+ * @property {Page} [page]
434
+ * @property {boolean} [success]
435
+ */
436
+
437
+ /**
438
+ * @typedef GetReportingFilters
439
+ * @property {Object[]} [options]
440
+ * @property {string} [text]
441
+ * @property {string} [type]
442
+ * @property {string} [value]
443
+ */
444
+
445
+ /**
446
+ * @typedef GetReportingFiltersResponse
447
+ * @property {GetReportingNestedFilters[]} [filters]
448
+ * @property {GetReportingFilters} [search]
449
+ * @property {GetReportingFilters} [status]
450
+ */
451
+
452
+ /**
453
+ * @typedef GetReportingNestedFilters
454
+ * @property {Object[]} [options]
455
+ * @property {string} [placeholder_text]
456
+ * @property {boolean} [required]
457
+ * @property {string} [text]
458
+ * @property {string} [type]
459
+ * @property {string} [value]
460
+ */
461
+
462
+ /**
463
+ * @typedef GetReportListData
464
+ * @property {boolean} [listing_enabled]
465
+ * @property {string} [role_name]
466
+ */
467
+
468
+ /**
469
+ * @typedef GetReportListRequest
470
+ * @property {GetReportListData} [data]
471
+ */
472
+
473
+ /**
474
+ * @typedef GetReportListResponse
475
+ * @property {ReportItem[]} [items]
476
+ * @property {Page} [page]
477
+ * @property {boolean} [success]
478
+ * @property {number} [total_count]
479
+ */
480
+
481
+ /**
482
+ * @typedef InoviceListingPayloadDataFilters
483
+ * @property {string[]} [company_id]
484
+ * @property {string[]} [invoice_type]
485
+ * @property {string[]} [payment_status]
486
+ */
487
+
488
+ /**
489
+ * @typedef InvoiceListingPayloadData
490
+ * @property {string} [end_date]
491
+ * @property {InoviceListingPayloadDataFilters} [filters]
492
+ * @property {number} [page]
493
+ * @property {number} [page_size]
494
+ * @property {string} [search]
495
+ * @property {string} [start_date]
496
+ */
497
+
498
+ /**
499
+ * @typedef InvoiceListingRequest
500
+ * @property {InvoiceListingPayloadData} [data]
501
+ */
502
+
503
+ /**
504
+ * @typedef InvoiceListingResponse
505
+ * @property {number} [item_count]
506
+ * @property {InvoiceListingResponseItems[]} [items]
507
+ * @property {Page} [page]
508
+ * @property {UnpaidInvoiceDataItems} [unpaid_invoice_data]
509
+ */
510
+
511
+ /**
512
+ * @typedef InvoiceListingResponseItems
513
+ * @property {string} [amount]
514
+ * @property {string} [company]
515
+ * @property {string} [due_date]
516
+ * @property {string} [invoice_date]
517
+ * @property {string} [invoice_id]
518
+ * @property {string} [invoice_number]
519
+ * @property {string} [invoice_type]
520
+ * @property {boolean} [is_downloadable]
521
+ * @property {string} [period]
522
+ * @property {string} [status]
523
+ */
524
+
525
+ /**
526
+ * @typedef InvoicePdfPayloadData
527
+ * @property {string[]} [invoice_number]
528
+ */
529
+
530
+ /**
531
+ * @typedef InvoicePdfRequest
532
+ * @property {InvoicePdfPayloadData} [data]
533
+ */
534
+
535
+ /**
536
+ * @typedef InvoicePdfResponse
537
+ * @property {string[]} [data]
538
+ * @property {string[]} [error]
539
+ * @property {boolean} [success]
540
+ */
541
+
542
+ /**
543
+ * @typedef InvoiceTypePayloadData
544
+ * @property {boolean} [is_active]
545
+ */
546
+
547
+ /**
548
+ * @typedef InvoiceTypeRequest
549
+ * @property {InvoiceTypePayloadData} [data]
550
+ */
551
+
552
+ /**
553
+ * @typedef InvoiceTypeResponse
554
+ * @property {InvoiceTypeResponseItems[]} [invoice_type_list]
555
+ * @property {InvoiceTypeResponseItems[]} [payment_status_list]
556
+ * @property {boolean} [success]
557
+ */
558
+
559
+ /**
560
+ * @typedef InvoiceTypeResponseItems
561
+ * @property {string} [text]
562
+ * @property {string} [value]
563
+ */
564
+
565
+ /**
566
+ * @typedef IsCnRefundMethodData
567
+ * @property {string} [affiliate_id]
568
+ * @property {number} [seller_id]
569
+ * @property {boolean} [toggle_edit_required]
570
+ */
571
+
572
+ /**
573
+ * @typedef IsCnRefundMethodRequest
574
+ * @property {IsCnRefundMethodData} [data]
575
+ */
576
+
577
+ /**
578
+ * @typedef IsCnRefundMethodResponse
579
+ * @property {IsCnRefundMethodResponseData} [data]
580
+ * @property {boolean} [success]
581
+ */
582
+
583
+ /**
584
+ * @typedef IsCnRefundMethodResponseData
585
+ * @property {boolean} [is_first_time_user]
586
+ */
587
+
588
+ /**
589
+ * @typedef IsCreditlinePayload
590
+ * @property {string} [seller_id]
591
+ */
592
+
593
+ /**
594
+ * @typedef IsCreditlinePlatformRequest
595
+ * @property {IsCreditlinePayload} [data]
596
+ */
597
+
598
+ /**
599
+ * @typedef IsCreditlinePlatformResponse
600
+ * @property {number} [code]
601
+ * @property {boolean} [is_creditline_opted]
602
+ */
603
+
604
+ /**
605
+ * @typedef Page
606
+ * @property {number} [current]
607
+ * @property {boolean} [has_next]
608
+ * @property {boolean} [has_previous]
609
+ * @property {number} [item_total]
610
+ * @property {string} [next_id]
611
+ * @property {number} [size]
612
+ * @property {string} type
613
+ */
614
+
615
+ /**
616
+ * @typedef PaymentProcessPayload
617
+ * @property {string} [amount]
618
+ * @property {string} [currency]
619
+ * @property {string} [invoice_number]
620
+ * @property {Object} [meta]
621
+ * @property {string} [mode_of_payment]
622
+ * @property {string} [platform]
623
+ * @property {string} [seller_id]
624
+ * @property {string} [source_reference]
625
+ * @property {string} [total_amount]
626
+ * @property {string} [transaction_type]
627
+ */
628
+
629
+ /**
630
+ * @typedef PaymentProcessRequest
631
+ * @property {PaymentProcessPayload} [data]
632
+ */
633
+
634
+ /**
635
+ * @typedef PaymentProcessResponse
636
+ * @property {number} [code]
637
+ * @property {string} [message]
638
+ * @property {Object} [meta]
639
+ * @property {string} [redirect_url]
640
+ * @property {string} [transaction_id]
641
+ */
642
+
643
+ /**
644
+ * @typedef ReasonItem
645
+ * @property {string} [display_name]
646
+ * @property {string} [id]
647
+ * @property {string} [name]
648
+ */
649
+
650
+ /**
651
+ * @typedef RedemptionDetails
652
+ * @property {number} [amount_debited]
653
+ * @property {string} [created_at]
654
+ * @property {string} [invoice_number]
655
+ * @property {string} [order_id]
656
+ * @property {string} [ordering_channel]
657
+ * @property {string} [shipment_id]
658
+ * @property {string} [staff_id]
659
+ * @property {string} [store_id]
660
+ */
661
+
662
+ /**
663
+ * @typedef ReportItem
664
+ * @property {string[]} [allowed_filters]
665
+ * @property {Object} [config_meta]
666
+ * @property {string} [description]
667
+ * @property {string} [display_date]
668
+ * @property {string} [id]
669
+ * @property {string} [name]
670
+ * @property {string} [report_type]
671
+ */
672
+
673
+ /**
674
+ * @typedef UnpaidInvoiceDataItems
675
+ * @property {string} [currency]
676
+ * @property {number} [total_unpaid_amount]
677
+ * @property {number} [total_unpaid_invoice_count]
678
+ */
679
+
680
+ class FinancePlatformModel {
681
+ /** @returns {ChannelDisplayName} */
682
+ static ChannelDisplayName() {
683
+ return Joi.object({
684
+ platform_pos: Joi.string().allow(""),
685
+ });
686
+ }
687
+
688
+ /** @returns {ChannelDisplayNameResponse} */
689
+ static ChannelDisplayNameResponse() {
690
+ return Joi.object({
691
+ data: FinancePlatformModel.ChannelDisplayName(),
692
+ success: Joi.boolean(),
693
+ });
694
+ }
695
+
696
+ /** @returns {CnDetails} */
697
+ static CnDetails() {
698
+ return Joi.object({
699
+ channel_of_issuance: Joi.string().allow(""),
700
+ date_issued: Joi.string().allow(""),
701
+ expiry_date: Joi.string().allow(""),
702
+ invoice_number: Joi.string().allow(""),
703
+ order_id: Joi.string().allow(""),
704
+ ordering_channel: Joi.string().allow(""),
705
+ shipment_id: Joi.string().allow(""),
706
+ staff_id: Joi.string().allow(""),
707
+ store_id: Joi.string().allow(""),
708
+ });
709
+ }
710
+
711
+ /** @returns {CnDownloadReport} */
712
+ static CnDownloadReport() {
713
+ return Joi.object({
714
+ affiliate_id: Joi.string().allow(""),
715
+ end_date: Joi.string().allow(""),
716
+ page: Joi.number(),
717
+ pagesize: Joi.number(),
718
+ search: Joi.string().allow(""),
719
+ search_type: Joi.string().allow(""),
720
+ start_date: Joi.string().allow(""),
721
+ status: Joi.array().items(Joi.string().allow("")),
722
+ });
723
+ }
724
+
725
+ /** @returns {CnGenerateReport} */
726
+ static CnGenerateReport() {
727
+ return Joi.object({
728
+ affiliate_id: Joi.string().allow(""),
729
+ end_date: Joi.string().allow(""),
730
+ filters: FinancePlatformModel.CnGenerateReportFilters(),
731
+ meta: FinancePlatformModel.GenerateReportFilters(),
732
+ page: Joi.number(),
733
+ pagesize: Joi.number(),
734
+ report_id: Joi.string().allow(""),
735
+ search: Joi.string().allow(""),
736
+ search_type: Joi.string().allow(""),
737
+ start_date: Joi.string().allow(""),
738
+ });
739
+ }
740
+
741
+ /** @returns {CnGenerateReportFilters} */
742
+ static CnGenerateReportFilters() {
743
+ return Joi.object({
744
+ channel_of_issuance: Joi.array().items(Joi.string().allow("")),
745
+ ordering_channel: Joi.array().items(Joi.string().allow("")),
746
+ staff_id: Joi.array().items(Joi.string().allow("")),
747
+ store_id: Joi.array().items(Joi.number()),
748
+ types_of_transaction: Joi.array().items(Joi.string().allow("")),
749
+ utilisation: Joi.array().items(Joi.string().allow("")),
750
+ });
751
+ }
752
+
753
+ /** @returns {CnGenerateReportItems} */
754
+ static CnGenerateReportItems() {
755
+ return Joi.object({
756
+ credit_note_number: Joi.string().allow(""),
757
+ date_issued: Joi.string().allow(""),
758
+ expiry_date: Joi.string().allow(""),
759
+ invoice_number: Joi.string().allow(""),
760
+ order_id: Joi.string().allow(""),
761
+ shipment_id: Joi.string().allow(""),
762
+ status: Joi.string().allow(""),
763
+ total_amount: Joi.number(),
764
+ });
765
+ }
766
+
767
+ /** @returns {CnReferenceNumber} */
768
+ static CnReferenceNumber() {
769
+ return Joi.object({
770
+ cn_reference_number: Joi.string().allow(""),
771
+ });
772
+ }
773
+
774
+ /** @returns {CreateSellerCreditNoteConfig} */
775
+ static CreateSellerCreditNoteConfig() {
776
+ return Joi.object({
777
+ affiliate_id: Joi.string().allow(""),
778
+ currency_type: Joi.string().allow(""),
779
+ is_cn_as_refund_method: Joi.boolean(),
780
+ notification_events: FinancePlatformModel.CreditNoteConfigNotificationEvents(),
781
+ ordering_channel: Joi.array().items(Joi.string().allow("")),
782
+ sales_channel_name: Joi.string().allow(""),
783
+ seller_id: Joi.number(),
784
+ slug_values: Joi.array().items(Joi.string().allow("")),
785
+ source_channel: Joi.array().items(Joi.string().allow("")),
786
+ validity: Joi.number(),
787
+ });
788
+ }
789
+
790
+ /** @returns {CreateSellerCreditNoteConfigRequest} */
791
+ static CreateSellerCreditNoteConfigRequest() {
792
+ return Joi.object({
793
+ data: FinancePlatformModel.CreateSellerCreditNoteConfig(),
794
+ });
795
+ }
796
+
797
+ /** @returns {CreateSellerCreditNoteConfigResponse} */
798
+ static CreateSellerCreditNoteConfigResponse() {
799
+ return Joi.object({
800
+ message: Joi.string().allow(""),
801
+ success: Joi.boolean(),
802
+ });
803
+ }
804
+
805
+ /** @returns {CreditlineDataPlatformPayload} */
4
806
  static CreditlineDataPlatformPayload() {
5
807
  return Joi.object({
6
808
  end_end: Joi.string().allow(""),
@@ -10,11 +812,15 @@ class FinanceModel {
10
812
  start_end: Joi.string().allow(""),
11
813
  });
12
814
  }
815
+
816
+ /** @returns {CreditlineDataPlatformRequest} */
13
817
  static CreditlineDataPlatformRequest() {
14
818
  return Joi.object({
15
- data: FinanceModel.CreditlineDataPlatformPayload(),
819
+ data: FinancePlatformModel.CreditlineDataPlatformPayload(),
16
820
  });
17
821
  }
822
+
823
+ /** @returns {CreditlineDataPlatformResponse} */
18
824
  static CreditlineDataPlatformResponse() {
19
825
  return Joi.object({
20
826
  code: Joi.number(),
@@ -26,30 +832,102 @@ class FinanceModel {
26
832
  show_mr: Joi.boolean(),
27
833
  });
28
834
  }
835
+
836
+ /** @returns {CreditNoteConfigNotificationEvents} */
837
+ static CreditNoteConfigNotificationEvents() {
838
+ return Joi.object({
839
+ expiration_reminder_to_customer: Joi.number(),
840
+ });
841
+ }
842
+
843
+ /** @returns {CreditNoteDetails} */
844
+ static CreditNoteDetails() {
845
+ return Joi.object({
846
+ available_cn_balance: Joi.number(),
847
+ cn_amount: Joi.number(),
848
+ cn_details: Joi.any(),
849
+ cn_reference_number: Joi.string().allow(""),
850
+ cn_status: Joi.string().allow(""),
851
+ customer_mobile_number: Joi.string().allow(""),
852
+ redemption_details: Joi.array().items(
853
+ FinancePlatformModel.RedemptionDetails()
854
+ ),
855
+ remaining_cn_amount: Joi.number(),
856
+ });
857
+ }
858
+
859
+ /** @returns {CreditNoteDetailsRequest} */
860
+ static CreditNoteDetailsRequest() {
861
+ return Joi.object({
862
+ data: FinancePlatformModel.CnReferenceNumber(),
863
+ });
864
+ }
865
+
866
+ /** @returns {CreditNoteDetailsResponse} */
867
+ static CreditNoteDetailsResponse() {
868
+ return Joi.object({
869
+ data: FinancePlatformModel.CreditNoteDetails(),
870
+ success: Joi.boolean(),
871
+ });
872
+ }
873
+
874
+ /** @returns {DeleteConfig} */
875
+ static DeleteConfig() {
876
+ return Joi.object({
877
+ affiliate_id: Joi.string().allow(""),
878
+ seller_id: Joi.number(),
879
+ slug_values: Joi.array().items(Joi.string().allow("")),
880
+ });
881
+ }
882
+
883
+ /** @returns {DeleteConfigRequest} */
884
+ static DeleteConfigRequest() {
885
+ return Joi.object({
886
+ data: FinancePlatformModel.DeleteConfig(),
887
+ });
888
+ }
889
+
890
+ /** @returns {DeleteConfigResponse} */
891
+ static DeleteConfigResponse() {
892
+ return Joi.object({
893
+ message: Joi.string().allow(""),
894
+ success: Joi.boolean(),
895
+ });
896
+ }
897
+
898
+ /** @returns {DownloadCreditDebitNote} */
29
899
  static DownloadCreditDebitNote() {
30
900
  return Joi.object({
31
901
  note_id: Joi.array().items(Joi.string().allow("")),
32
902
  });
33
903
  }
904
+
905
+ /** @returns {DownloadCreditDebitNoteRequest} */
34
906
  static DownloadCreditDebitNoteRequest() {
35
907
  return Joi.object({
36
- data: FinanceModel.DownloadCreditDebitNote(),
908
+ data: FinancePlatformModel.DownloadCreditDebitNote(),
37
909
  });
38
910
  }
911
+
912
+ /** @returns {DownloadCreditDebitNoteResponse} */
39
913
  static DownloadCreditDebitNoteResponse() {
40
914
  return Joi.object({
41
915
  data: Joi.array().items(
42
- FinanceModel.DownloadCreditDebitNoteResponseData()
916
+ FinancePlatformModel.DownloadCreditDebitNoteResponseData()
43
917
  ),
44
918
  success: Joi.boolean(),
45
919
  });
46
920
  }
921
+
922
+ /** @returns {DownloadCreditDebitNoteResponseData} */
47
923
  static DownloadCreditDebitNoteResponseData() {
48
924
  return Joi.object({
49
925
  id: Joi.string().allow(""),
50
926
  pdf_s3_url: Joi.string().allow(""),
51
927
  });
52
928
  }
929
+
930
+ /** @returns {DownloadReport} */
53
931
  static DownloadReport() {
54
932
  return Joi.object({
55
933
  end_date: Joi.string().allow(""),
@@ -58,29 +936,102 @@ class FinanceModel {
58
936
  start_date: Joi.string().allow(""),
59
937
  });
60
938
  }
939
+
940
+ /** @returns {DownloadReportCustomerCnRequest} */
941
+ static DownloadReportCustomerCnRequest() {
942
+ return Joi.object({
943
+ data: FinancePlatformModel.CnDownloadReport(),
944
+ });
945
+ }
946
+
947
+ /** @returns {DownloadReportCustomerCnResponse} */
948
+ static DownloadReportCustomerCnResponse() {
949
+ return Joi.object({
950
+ data: Joi.array().items(
951
+ FinancePlatformModel.DownloadReportResponseData()
952
+ ),
953
+ });
954
+ }
955
+
956
+ /** @returns {DownloadReportItems} */
61
957
  static DownloadReportItems() {
62
958
  return Joi.object({
63
959
  end_date: Joi.string().allow(""),
64
- filters: FinanceModel.GenerateReportFilters(),
65
- meta: FinanceModel.GenerateReportMeta(),
960
+ filters: FinancePlatformModel.GenerateReportFilters(),
961
+ meta: FinancePlatformModel.GenerateReportMeta(),
66
962
  report_id: Joi.string().allow(""),
67
963
  start_date: Joi.string().allow(""),
68
964
  type_of_request: Joi.string().allow(""),
69
965
  });
70
966
  }
967
+
968
+ /** @returns {DownloadReportList} */
71
969
  static DownloadReportList() {
72
970
  return Joi.object({
73
971
  item_count: Joi.number(),
74
- items: Joi.array().items(FinanceModel.DownloadReportItems()),
75
- page: FinanceModel.Page(),
972
+ items: Joi.array().items(FinancePlatformModel.DownloadReportItems()),
973
+ page: FinancePlatformModel.Page(),
76
974
  });
77
975
  }
976
+
977
+ /** @returns {DownloadReportResponseData} */
978
+ static DownloadReportResponseData() {
979
+ return Joi.object({
980
+ created_at: Joi.string().allow(""),
981
+ display_name: Joi.string().allow(""),
982
+ download_link: Joi.string().allow(""),
983
+ end_date: Joi.string().allow(""),
984
+ filters: Joi.any(),
985
+ full_name: Joi.string().allow(""),
986
+ meta: Joi.any(),
987
+ msg: Joi.string().allow(""),
988
+ report_config_id: Joi.string().allow(""),
989
+ report_name: Joi.string().allow(""),
990
+ request_dict: Joi.any(),
991
+ requested_by: Joi.string().allow(""),
992
+ start_date: Joi.string().allow(""),
993
+ status: Joi.string().allow(""),
994
+ });
995
+ }
996
+
997
+ /** @returns {Error} */
78
998
  static Error() {
79
999
  return Joi.object({
80
1000
  reason: Joi.string().allow(""),
81
1001
  success: Joi.boolean(),
82
1002
  });
83
1003
  }
1004
+
1005
+ /** @returns {GenerateReportCustomerCnRequest} */
1006
+ static GenerateReportCustomerCnRequest() {
1007
+ return Joi.object({
1008
+ data: FinancePlatformModel.CnGenerateReport(),
1009
+ });
1010
+ }
1011
+
1012
+ /** @returns {GenerateReportCustomerCnResponse} */
1013
+ static GenerateReportCustomerCnResponse() {
1014
+ return Joi.object({
1015
+ data: FinancePlatformModel.GenerateReportCustomerCnResponseData(),
1016
+ });
1017
+ }
1018
+
1019
+ /** @returns {GenerateReportCustomerCnResponseData} */
1020
+ static GenerateReportCustomerCnResponseData() {
1021
+ return Joi.object({
1022
+ allowed_filters: Joi.array().items(Joi.string().allow("")),
1023
+ end_date: Joi.string().allow(""),
1024
+ headers: Joi.array().items(Joi.string().allow("")),
1025
+ item_count: Joi.number(),
1026
+ items: Joi.array().items(FinancePlatformModel.CnGenerateReportItems()),
1027
+ page: FinancePlatformModel.Page(),
1028
+ primary_headers: Joi.array().items(Joi.string().allow("")),
1029
+ row_header_display_order: Joi.any(),
1030
+ start_date: Joi.string().allow(""),
1031
+ });
1032
+ }
1033
+
1034
+ /** @returns {GenerateReportFilters} */
84
1035
  static GenerateReportFilters() {
85
1036
  return Joi.object({
86
1037
  brand: Joi.array().items(Joi.string().allow("")),
@@ -88,16 +1039,20 @@ class FinanceModel {
88
1039
  company: Joi.array().items(Joi.string().allow("")),
89
1040
  });
90
1041
  }
1042
+
1043
+ /** @returns {GenerateReportJson} */
91
1044
  static GenerateReportJson() {
92
1045
  return Joi.object({
93
1046
  end_date: Joi.string().allow(""),
94
1047
  headers: Joi.array().items(Joi.string().allow("")),
95
1048
  item_count: Joi.number(),
96
1049
  items: Joi.array().items(Joi.array().items(Joi.string().allow(""))),
97
- page: FinanceModel.Page(),
1050
+ page: FinancePlatformModel.Page(),
98
1051
  start_date: Joi.string().allow(""),
99
1052
  });
100
1053
  }
1054
+
1055
+ /** @returns {GenerateReportMeta} */
101
1056
  static GenerateReportMeta() {
102
1057
  return Joi.object({
103
1058
  brand: Joi.string().allow(""),
@@ -105,89 +1060,241 @@ class FinanceModel {
105
1060
  company: Joi.string().allow(""),
106
1061
  });
107
1062
  }
1063
+
1064
+ /** @returns {GenerateReportPlatform} */
108
1065
  static GenerateReportPlatform() {
109
1066
  return Joi.object({
110
1067
  end_date: Joi.string().allow(""),
111
- filters: FinanceModel.GenerateReportFilters(),
112
- meta: FinanceModel.GenerateReportMeta(),
1068
+ filters: FinancePlatformModel.GenerateReportFilters(),
1069
+ meta: FinancePlatformModel.GenerateReportMeta(),
113
1070
  report_id: Joi.string().allow(""),
114
1071
  start_date: Joi.string().allow(""),
115
1072
  });
116
1073
  }
1074
+
1075
+ /** @returns {GenerateReportRequest} */
117
1076
  static GenerateReportRequest() {
118
1077
  return Joi.object({
119
- data: FinanceModel.GenerateReportPlatform(),
1078
+ data: FinancePlatformModel.GenerateReportPlatform(),
120
1079
  });
121
1080
  }
1081
+
1082
+ /** @returns {GetAffiliate} */
122
1083
  static GetAffiliate() {
123
1084
  return Joi.object({
124
1085
  company_id: Joi.number(),
125
1086
  });
126
1087
  }
1088
+
1089
+ /** @returns {GetAffiliateResponse} */
127
1090
  static GetAffiliateResponse() {
128
1091
  return Joi.object({
129
1092
  docs: Joi.array().items(Joi.any()),
130
1093
  success: Joi.boolean(),
131
1094
  });
132
1095
  }
133
- static GetDocs() {
1096
+
1097
+ /** @returns {GetCnConfigRequest} */
1098
+ static GetCnConfigRequest() {
134
1099
  return Joi.object({
135
- docs: Joi.array().items(Joi.any()),
136
- items: Joi.array().items(Joi.any()),
1100
+ data: FinancePlatformModel.DeleteConfig(),
137
1101
  });
138
1102
  }
139
- static GetEngineData() {
1103
+
1104
+ /** @returns {GetCnConfigResponse} */
1105
+ static GetCnConfigResponse() {
140
1106
  return Joi.object({
141
- filters: FinanceModel.GetEngineFilters(),
142
- project: Joi.array().items(Joi.string().allow("")),
143
- table_name: Joi.string().allow(""),
1107
+ data: FinancePlatformModel.GetCnConfigResponseData(),
1108
+ success: Joi.boolean(),
1109
+ });
1110
+ }
1111
+
1112
+ /** @returns {GetCnConfigResponseData} */
1113
+ static GetCnConfigResponseData() {
1114
+ return Joi.object({
1115
+ affiliate_id: Joi.string().allow(""),
1116
+ currency_type: Joi.string().allow(""),
1117
+ is_cn_as_refund_method: Joi.boolean(),
1118
+ meta: FinancePlatformModel.GetCnConfigResponseMeta(),
1119
+ notification_events: FinancePlatformModel.CreditNoteConfigNotificationEvents(),
1120
+ redemption_ordering_channel: Joi.array().items(Joi.string().allow("")),
1121
+ seller_id: Joi.number(),
1122
+ validity: Joi.number(),
1123
+ });
1124
+ }
1125
+
1126
+ /** @returns {GetCnConfigResponseMeta} */
1127
+ static GetCnConfigResponseMeta() {
1128
+ return Joi.object({
1129
+ reason: Joi.string().allow(""),
1130
+ source_channel: Joi.array().items(Joi.string().allow("")),
1131
+ });
1132
+ }
1133
+
1134
+ /** @returns {GetCustomerCreditBalance} */
1135
+ static GetCustomerCreditBalance() {
1136
+ return Joi.object({
1137
+ affiliate_id: Joi.string().allow(""),
1138
+ customer_mobile_number: Joi.string().allow(""),
1139
+ seller_id: Joi.number(),
1140
+ });
1141
+ }
1142
+
1143
+ /** @returns {GetCustomerCreditBalanceRequest} */
1144
+ static GetCustomerCreditBalanceRequest() {
1145
+ return Joi.object({
1146
+ data: FinancePlatformModel.GetCustomerCreditBalance(),
144
1147
  });
145
1148
  }
146
- static GetEngineFilters() {
1149
+
1150
+ /** @returns {GetCustomerCreditBalanceResponse} */
1151
+ static GetCustomerCreditBalanceResponse() {
1152
+ return Joi.object({
1153
+ data: FinancePlatformModel.GetCustomerCreditBalanceResponseData(),
1154
+ success: Joi.boolean(),
1155
+ });
1156
+ }
1157
+
1158
+ /** @returns {GetCustomerCreditBalanceResponseData} */
1159
+ static GetCustomerCreditBalanceResponseData() {
147
1160
  return Joi.object({
148
- config_field: Joi.string().allow(""),
1161
+ customer_mobile_number: Joi.string().allow(""),
1162
+ total_credited_balance: Joi.number(),
149
1163
  });
150
1164
  }
1165
+
1166
+ /** @returns {GetEngineData} */
1167
+ static GetEngineData() {
1168
+ return Joi.object({
1169
+ filters: Joi.any(),
1170
+ project: Joi.array().items(Joi.string().allow("")),
1171
+ table_name: Joi.string().allow(""),
1172
+ });
1173
+ }
1174
+
1175
+ /** @returns {GetEngineRequest} */
151
1176
  static GetEngineRequest() {
152
1177
  return Joi.object({
153
- data: FinanceModel.GetEngineData(),
1178
+ data: FinancePlatformModel.GetEngineData(),
154
1179
  });
155
1180
  }
1181
+
1182
+ /** @returns {GetEngineResponse} */
156
1183
  static GetEngineResponse() {
157
1184
  return Joi.object({
158
1185
  item_count: Joi.number(),
159
1186
  items: Joi.array().items(Joi.any()),
160
- page: FinanceModel.Page(),
1187
+ page: FinancePlatformModel.Page(),
161
1188
  success: Joi.boolean(),
162
1189
  });
163
1190
  }
1191
+
1192
+ /** @returns {GetPdfUrlViewRequest} */
1193
+ static GetPdfUrlViewRequest() {
1194
+ return Joi.object({
1195
+ data: FinancePlatformModel.CnReferenceNumber(),
1196
+ });
1197
+ }
1198
+
1199
+ /** @returns {GetPdfUrlViewResponse} */
1200
+ static GetPdfUrlViewResponse() {
1201
+ return Joi.object({
1202
+ data: FinancePlatformModel.GetPdfUrlViewResponseData(),
1203
+ success: Joi.boolean(),
1204
+ });
1205
+ }
1206
+
1207
+ /** @returns {GetPdfUrlViewResponseData} */
1208
+ static GetPdfUrlViewResponseData() {
1209
+ return Joi.object({
1210
+ cn_reference_number: Joi.string().allow(""),
1211
+ s3_pdf_link: Joi.string().allow(""),
1212
+ });
1213
+ }
1214
+
1215
+ /** @returns {GetReason} */
164
1216
  static GetReason() {
165
1217
  return Joi.object({
166
1218
  reason_type: Joi.string().allow(""),
167
1219
  });
168
1220
  }
1221
+
1222
+ /** @returns {GetReasonRequest} */
169
1223
  static GetReasonRequest() {
170
1224
  return Joi.object({
171
- data: FinanceModel.GetReason(),
1225
+ data: FinancePlatformModel.GetReason(),
172
1226
  });
173
1227
  }
1228
+
1229
+ /** @returns {GetReasonResponse} */
174
1230
  static GetReasonResponse() {
175
1231
  return Joi.object({
176
- data: FinanceModel.GetDocs(),
1232
+ item_count: Joi.number(),
1233
+ item_list: Joi.array().items(FinancePlatformModel.ReasonItem()),
1234
+ page: FinancePlatformModel.Page(),
177
1235
  success: Joi.boolean(),
178
1236
  });
179
1237
  }
1238
+
1239
+ /** @returns {GetReportingFilters} */
1240
+ static GetReportingFilters() {
1241
+ return Joi.object({
1242
+ options: Joi.array().items(Joi.any()),
1243
+ text: Joi.string().allow(""),
1244
+ type: Joi.string().allow(""),
1245
+ value: Joi.string().allow(""),
1246
+ });
1247
+ }
1248
+
1249
+ /** @returns {GetReportingFiltersResponse} */
1250
+ static GetReportingFiltersResponse() {
1251
+ return Joi.object({
1252
+ filters: Joi.array().items(
1253
+ FinancePlatformModel.GetReportingNestedFilters()
1254
+ ),
1255
+ search: FinancePlatformModel.GetReportingFilters(),
1256
+ status: FinancePlatformModel.GetReportingFilters(),
1257
+ });
1258
+ }
1259
+
1260
+ /** @returns {GetReportingNestedFilters} */
1261
+ static GetReportingNestedFilters() {
1262
+ return Joi.object({
1263
+ options: Joi.array().items(Joi.any()),
1264
+ placeholder_text: Joi.string().allow(""),
1265
+ required: Joi.boolean(),
1266
+ text: Joi.string().allow(""),
1267
+ type: Joi.string().allow(""),
1268
+ value: Joi.string().allow(""),
1269
+ });
1270
+ }
1271
+
1272
+ /** @returns {GetReportListData} */
180
1273
  static GetReportListData() {
181
1274
  return Joi.object({
182
1275
  listing_enabled: Joi.boolean(),
183
1276
  role_name: Joi.string().allow(""),
184
1277
  });
185
1278
  }
1279
+
1280
+ /** @returns {GetReportListRequest} */
186
1281
  static GetReportListRequest() {
187
1282
  return Joi.object({
188
- data: FinanceModel.GetReportListData(),
1283
+ data: FinancePlatformModel.GetReportListData(),
189
1284
  });
190
1285
  }
1286
+
1287
+ /** @returns {GetReportListResponse} */
1288
+ static GetReportListResponse() {
1289
+ return Joi.object({
1290
+ items: Joi.array().items(FinancePlatformModel.ReportItem()),
1291
+ page: FinancePlatformModel.Page(),
1292
+ success: Joi.boolean(),
1293
+ total_count: Joi.number(),
1294
+ });
1295
+ }
1296
+
1297
+ /** @returns {InoviceListingPayloadDataFilters} */
191
1298
  static InoviceListingPayloadDataFilters() {
192
1299
  return Joi.object({
193
1300
  company_id: Joi.array().items(Joi.string().allow("")),
@@ -195,29 +1302,39 @@ class FinanceModel {
195
1302
  payment_status: Joi.array().items(Joi.string().allow("")),
196
1303
  });
197
1304
  }
1305
+
1306
+ /** @returns {InvoiceListingPayloadData} */
198
1307
  static InvoiceListingPayloadData() {
199
1308
  return Joi.object({
200
1309
  end_date: Joi.string().allow(""),
201
- filters: FinanceModel.InoviceListingPayloadDataFilters(),
1310
+ filters: FinancePlatformModel.InoviceListingPayloadDataFilters(),
202
1311
  page: Joi.number(),
203
1312
  page_size: Joi.number(),
204
1313
  search: Joi.string().allow(""),
205
1314
  start_date: Joi.string().allow(""),
206
1315
  });
207
1316
  }
1317
+
1318
+ /** @returns {InvoiceListingRequest} */
208
1319
  static InvoiceListingRequest() {
209
1320
  return Joi.object({
210
- data: FinanceModel.InvoiceListingPayloadData(),
1321
+ data: FinancePlatformModel.InvoiceListingPayloadData(),
211
1322
  });
212
1323
  }
1324
+
1325
+ /** @returns {InvoiceListingResponse} */
213
1326
  static InvoiceListingResponse() {
214
1327
  return Joi.object({
215
1328
  item_count: Joi.number(),
216
- items: Joi.array().items(FinanceModel.InvoiceListingResponseItems()),
217
- page: FinanceModel.Page(),
218
- unpaid_invoice_data: FinanceModel.UnpaidInvoiceDataItems(),
1329
+ items: Joi.array().items(
1330
+ FinancePlatformModel.InvoiceListingResponseItems()
1331
+ ),
1332
+ page: FinancePlatformModel.Page(),
1333
+ unpaid_invoice_data: FinancePlatformModel.UnpaidInvoiceDataItems(),
219
1334
  });
220
1335
  }
1336
+
1337
+ /** @returns {InvoiceListingResponseItems} */
221
1338
  static InvoiceListingResponseItems() {
222
1339
  return Joi.object({
223
1340
  amount: Joi.string().allow(""),
@@ -232,16 +1349,22 @@ class FinanceModel {
232
1349
  status: Joi.string().allow(""),
233
1350
  });
234
1351
  }
1352
+
1353
+ /** @returns {InvoicePdfPayloadData} */
235
1354
  static InvoicePdfPayloadData() {
236
1355
  return Joi.object({
237
1356
  invoice_number: Joi.array().items(Joi.string().allow("")),
238
1357
  });
239
1358
  }
1359
+
1360
+ /** @returns {InvoicePdfRequest} */
240
1361
  static InvoicePdfRequest() {
241
1362
  return Joi.object({
242
- data: FinanceModel.InvoicePdfPayloadData(),
1363
+ data: FinancePlatformModel.InvoicePdfPayloadData(),
243
1364
  });
244
1365
  }
1366
+
1367
+ /** @returns {InvoicePdfResponse} */
245
1368
  static InvoicePdfResponse() {
246
1369
  return Joi.object({
247
1370
  data: Joi.array().items(Joi.string().allow("")),
@@ -249,49 +1372,96 @@ class FinanceModel {
249
1372
  success: Joi.boolean(),
250
1373
  });
251
1374
  }
1375
+
1376
+ /** @returns {InvoiceTypePayloadData} */
252
1377
  static InvoiceTypePayloadData() {
253
1378
  return Joi.object({
254
1379
  is_active: Joi.boolean(),
255
1380
  });
256
1381
  }
1382
+
1383
+ /** @returns {InvoiceTypeRequest} */
257
1384
  static InvoiceTypeRequest() {
258
1385
  return Joi.object({
259
- data: FinanceModel.InvoiceTypePayloadData(),
1386
+ data: FinancePlatformModel.InvoiceTypePayloadData(),
260
1387
  });
261
1388
  }
1389
+
1390
+ /** @returns {InvoiceTypeResponse} */
262
1391
  static InvoiceTypeResponse() {
263
1392
  return Joi.object({
264
1393
  invoice_type_list: Joi.array().items(
265
- FinanceModel.InvoiceTypeResponseItems()
1394
+ FinancePlatformModel.InvoiceTypeResponseItems()
266
1395
  ),
267
1396
  payment_status_list: Joi.array().items(
268
- FinanceModel.InvoiceTypeResponseItems()
1397
+ FinancePlatformModel.InvoiceTypeResponseItems()
269
1398
  ),
270
1399
  success: Joi.boolean(),
271
1400
  });
272
1401
  }
1402
+
1403
+ /** @returns {InvoiceTypeResponseItems} */
273
1404
  static InvoiceTypeResponseItems() {
274
1405
  return Joi.object({
275
1406
  text: Joi.string().allow(""),
276
1407
  value: Joi.string().allow(""),
277
1408
  });
278
1409
  }
1410
+
1411
+ /** @returns {IsCnRefundMethodData} */
1412
+ static IsCnRefundMethodData() {
1413
+ return Joi.object({
1414
+ affiliate_id: Joi.string().allow(""),
1415
+ seller_id: Joi.number(),
1416
+ toggle_edit_required: Joi.boolean(),
1417
+ });
1418
+ }
1419
+
1420
+ /** @returns {IsCnRefundMethodRequest} */
1421
+ static IsCnRefundMethodRequest() {
1422
+ return Joi.object({
1423
+ data: FinancePlatformModel.IsCnRefundMethodData(),
1424
+ });
1425
+ }
1426
+
1427
+ /** @returns {IsCnRefundMethodResponse} */
1428
+ static IsCnRefundMethodResponse() {
1429
+ return Joi.object({
1430
+ data: FinancePlatformModel.IsCnRefundMethodResponseData(),
1431
+ success: Joi.boolean(),
1432
+ });
1433
+ }
1434
+
1435
+ /** @returns {IsCnRefundMethodResponseData} */
1436
+ static IsCnRefundMethodResponseData() {
1437
+ return Joi.object({
1438
+ is_first_time_user: Joi.boolean(),
1439
+ });
1440
+ }
1441
+
1442
+ /** @returns {IsCreditlinePayload} */
279
1443
  static IsCreditlinePayload() {
280
1444
  return Joi.object({
281
1445
  seller_id: Joi.string().allow(""),
282
1446
  });
283
1447
  }
1448
+
1449
+ /** @returns {IsCreditlinePlatformRequest} */
284
1450
  static IsCreditlinePlatformRequest() {
285
1451
  return Joi.object({
286
- data: FinanceModel.IsCreditlinePayload(),
1452
+ data: FinancePlatformModel.IsCreditlinePayload(),
287
1453
  });
288
1454
  }
1455
+
1456
+ /** @returns {IsCreditlinePlatformResponse} */
289
1457
  static IsCreditlinePlatformResponse() {
290
1458
  return Joi.object({
291
1459
  code: Joi.number(),
292
1460
  is_creditline_opted: Joi.boolean(),
293
1461
  });
294
1462
  }
1463
+
1464
+ /** @returns {Page} */
295
1465
  static Page() {
296
1466
  return Joi.object({
297
1467
  current: Joi.number(),
@@ -303,6 +1473,8 @@ class FinanceModel {
303
1473
  type: Joi.string().allow("").required(),
304
1474
  });
305
1475
  }
1476
+
1477
+ /** @returns {PaymentProcessPayload} */
306
1478
  static PaymentProcessPayload() {
307
1479
  return Joi.object({
308
1480
  amount: Joi.string().allow(""),
@@ -317,11 +1489,15 @@ class FinanceModel {
317
1489
  transaction_type: Joi.string().allow(""),
318
1490
  });
319
1491
  }
1492
+
1493
+ /** @returns {PaymentProcessRequest} */
320
1494
  static PaymentProcessRequest() {
321
1495
  return Joi.object({
322
- data: FinanceModel.PaymentProcessPayload(),
1496
+ data: FinancePlatformModel.PaymentProcessPayload(),
323
1497
  });
324
1498
  }
1499
+
1500
+ /** @returns {PaymentProcessResponse} */
325
1501
  static PaymentProcessResponse() {
326
1502
  return Joi.object({
327
1503
  code: Joi.number(),
@@ -331,6 +1507,44 @@ class FinanceModel {
331
1507
  transaction_id: Joi.string().allow(""),
332
1508
  });
333
1509
  }
1510
+
1511
+ /** @returns {ReasonItem} */
1512
+ static ReasonItem() {
1513
+ return Joi.object({
1514
+ display_name: Joi.string().allow(""),
1515
+ id: Joi.string().allow(""),
1516
+ name: Joi.string().allow(""),
1517
+ });
1518
+ }
1519
+
1520
+ /** @returns {RedemptionDetails} */
1521
+ static RedemptionDetails() {
1522
+ return Joi.object({
1523
+ amount_debited: Joi.number(),
1524
+ created_at: Joi.string().allow(""),
1525
+ invoice_number: Joi.string().allow(""),
1526
+ order_id: Joi.string().allow(""),
1527
+ ordering_channel: Joi.string().allow(""),
1528
+ shipment_id: Joi.string().allow(""),
1529
+ staff_id: Joi.string().allow(""),
1530
+ store_id: Joi.string().allow(""),
1531
+ });
1532
+ }
1533
+
1534
+ /** @returns {ReportItem} */
1535
+ static ReportItem() {
1536
+ return Joi.object({
1537
+ allowed_filters: Joi.array().items(Joi.string().allow("")),
1538
+ config_meta: Joi.any(),
1539
+ description: Joi.string().allow(""),
1540
+ display_date: Joi.string().allow("").allow(null),
1541
+ id: Joi.string().allow(""),
1542
+ name: Joi.string().allow(""),
1543
+ report_type: Joi.string().allow(""),
1544
+ });
1545
+ }
1546
+
1547
+ /** @returns {UnpaidInvoiceDataItems} */
334
1548
  static UnpaidInvoiceDataItems() {
335
1549
  return Joi.object({
336
1550
  currency: Joi.string().allow(""),
@@ -339,4 +1553,4 @@ class FinanceModel {
339
1553
  });
340
1554
  }
341
1555
  }
342
- module.exports = FinanceModel;
1556
+ module.exports = FinancePlatformModel;