@gofynd/fdk-client-javascript 1.4.14 → 1.4.15-beta.10

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 (326) hide show
  1. package/README.md +2 -2
  2. package/application.d.ts +1 -2
  3. package/application.js +2 -3
  4. package/index.d.ts +1 -2
  5. package/index.js +7 -1
  6. package/package.json +2 -3
  7. package/sdk/application/ApplicationClient.d.ts +0 -2
  8. package/sdk/application/ApplicationClient.js +0 -20
  9. package/sdk/application/Cart/CartApplicationClient.d.ts +55 -97
  10. package/sdk/application/Cart/CartApplicationClient.js +60 -1262
  11. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +80 -162
  12. package/sdk/application/Catalog/CatalogApplicationClient.js +148 -1313
  13. package/sdk/application/Common/CommonApplicationClient.d.ts +4 -9
  14. package/sdk/application/Common/CommonApplicationClient.js +5 -90
  15. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +6 -19
  16. package/sdk/application/Communication/CommunicationApplicationClient.js +6 -145
  17. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +32 -80
  18. package/sdk/application/Configuration/ConfigurationApplicationClient.js +31 -725
  19. package/sdk/application/Content/ContentApplicationClient.d.ts +63 -85
  20. package/sdk/application/Content/ContentApplicationClient.js +126 -942
  21. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +11 -15
  22. package/sdk/application/FileStorage/FileStorageApplicationClient.js +26 -130
  23. package/sdk/application/Lead/LeadApplicationClient.d.ts +10 -17
  24. package/sdk/application/Lead/LeadApplicationClient.js +32 -201
  25. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +22 -62
  26. package/sdk/application/Logistic/LogisticApplicationClient.js +51 -647
  27. package/sdk/application/Order/OrderApplicationClient.d.ts +22 -56
  28. package/sdk/application/Order/OrderApplicationClient.js +86 -555
  29. package/sdk/application/Payment/PaymentApplicationClient.d.ts +92 -209
  30. package/sdk/application/Payment/PaymentApplicationClient.js +57 -2099
  31. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +15 -26
  32. package/sdk/application/Rewards/RewardsApplicationClient.js +17 -303
  33. package/sdk/application/Share/ShareApplicationClient.d.ts +14 -24
  34. package/sdk/application/Share/ShareApplicationClient.js +34 -294
  35. package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -14
  36. package/sdk/application/Theme/ThemeApplicationClient.js +30 -166
  37. package/sdk/application/User/UserApplicationClient.d.ts +87 -138
  38. package/sdk/application/User/UserApplicationClient.js +47 -1817
  39. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -7
  40. package/sdk/application/Webhook/WebhookApplicationClient.js +6 -49
  41. package/sdk/application/index.d.ts +0 -19
  42. package/sdk/application/index.js +0 -35
  43. package/sdk/common/Utility.d.ts +1 -1
  44. package/sdk/common/Utility.js +10 -7
  45. package/sdk/common/Validator.d.ts +1 -0
  46. package/sdk/common/Validator.js +20 -0
  47. package/sdk/common/utils.d.ts +0 -1
  48. package/sdk/common/utils.js +0 -14
  49. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -86
  50. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +24 -582
  51. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +21 -116
  52. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +16 -121
  53. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -8
  54. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -51
  55. package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
  56. package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
  57. package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
  58. package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
  59. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +20 -126
  60. package/sdk/partner/Logistics/LogisticsPartnerClient.js +20 -970
  61. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +85 -767
  62. package/sdk/partner/Logistics/LogisticsPartnerModel.js +76 -429
  63. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -10
  64. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +6 -120
  65. package/sdk/partner/OAuthClient.js +1 -0
  66. package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -8
  67. package/sdk/partner/Theme/ThemePartnerClient.js +16 -14
  68. package/sdk/partner/Theme/ThemePartnerModel.d.ts +39 -135
  69. package/sdk/partner/Theme/ThemePartnerModel.js +38 -114
  70. package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
  71. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -28
  72. package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -103
  73. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +179 -612
  74. package/sdk/partner/Webhook/WebhookPartnerModel.js +150 -253
  75. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -1
  76. package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -11
  77. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +4 -5
  78. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +8 -14
  79. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +9 -59
  80. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +4 -40
  81. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
  82. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
  83. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +130 -11
  84. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +152 -12
  85. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
  86. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
  87. package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
  88. package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
  89. package/sdk/platform/Billing/BillingPlatformModel.d.ts +388 -443
  90. package/sdk/platform/Billing/BillingPlatformModel.js +263 -280
  91. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +18 -16
  92. package/sdk/platform/Billing/BillingPlatformValidator.js +9 -8
  93. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +103 -134
  94. package/sdk/platform/Cart/CartPlatformApplicationClient.js +112 -407
  95. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +65 -111
  96. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +44 -106
  97. package/sdk/platform/Cart/CartPlatformModel.d.ts +1328 -4975
  98. package/sdk/platform/Cart/CartPlatformModel.js +1229 -1922
  99. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +183 -208
  100. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +358 -383
  101. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +126 -122
  102. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +68 -66
  103. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +118 -141
  104. package/sdk/platform/Catalog/CatalogPlatformClient.js +170 -193
  105. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1744 -1501
  106. package/sdk/platform/Catalog/CatalogPlatformModel.js +1211 -1383
  107. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +18 -18
  108. package/sdk/platform/Catalog/CatalogPlatformValidator.js +18 -18
  109. package/sdk/platform/Common/CommonPlatformClient.d.ts +2 -3
  110. package/sdk/platform/Common/CommonPlatformClient.js +2 -3
  111. package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
  112. package/sdk/platform/Common/CommonPlatformModel.js +6 -6
  113. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +17 -16
  114. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +17 -16
  115. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
  116. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
  117. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +33 -43
  118. package/sdk/platform/Communication/CommunicationPlatformModel.js +34 -38
  119. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +42 -46
  120. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +43 -47
  121. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
  122. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +212 -210
  123. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
  124. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
  125. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +33 -46
  126. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +54 -67
  127. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
  128. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
  129. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +24 -45
  130. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +30 -134
  131. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +138 -283
  132. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +100 -219
  133. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -37
  134. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +8 -27
  135. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +141 -124
  136. package/sdk/platform/Content/ContentPlatformApplicationClient.js +422 -449
  137. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +141 -179
  138. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +130 -168
  139. package/sdk/platform/Content/ContentPlatformClient.d.ts +106 -142
  140. package/sdk/platform/Content/ContentPlatformClient.js +336 -523
  141. package/sdk/platform/Content/ContentPlatformModel.d.ts +395 -1241
  142. package/sdk/platform/Content/ContentPlatformModel.js +390 -521
  143. package/sdk/platform/Content/ContentPlatformValidator.d.ts +117 -168
  144. package/sdk/platform/Content/ContentPlatformValidator.js +108 -162
  145. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +12 -14
  146. package/sdk/platform/Discount/DiscountPlatformClient.js +12 -14
  147. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
  148. package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
  149. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
  150. package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
  151. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +39 -95
  152. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +63 -462
  153. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +15 -62
  154. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +13 -75
  155. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +22 -20
  156. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +24 -21
  157. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +116 -370
  158. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +104 -313
  159. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  160. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  161. package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
  162. package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
  163. package/sdk/platform/Finance/FinancePlatformModel.d.ts +2890 -0
  164. package/sdk/platform/Finance/FinancePlatformModel.js +2148 -0
  165. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
  166. package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
  167. package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
  168. package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
  169. package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
  170. package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
  171. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +4 -25
  172. package/sdk/platform/Order/OrderPlatformApplicationClient.js +5 -175
  173. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +4 -52
  174. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +3 -34
  175. package/sdk/platform/Order/OrderPlatformClient.d.ts +103 -174
  176. package/sdk/platform/Order/OrderPlatformClient.js +275 -528
  177. package/sdk/platform/Order/OrderPlatformModel.d.ts +3078 -5449
  178. package/sdk/platform/Order/OrderPlatformModel.js +1659 -3501
  179. package/sdk/platform/Order/OrderPlatformValidator.d.ts +219 -234
  180. package/sdk/platform/Order/OrderPlatformValidator.js +118 -146
  181. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
  182. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
  183. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
  184. package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
  185. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +106 -94
  186. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +146 -131
  187. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +93 -64
  188. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +70 -62
  189. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
  190. package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
  191. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +507 -386
  192. package/sdk/platform/Payment/PaymentPlatformModel.js +376 -323
  193. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +10 -10
  194. package/sdk/platform/Payment/PaymentPlatformValidator.js +10 -10
  195. package/sdk/platform/PlatformClient.d.ts +2 -0
  196. package/sdk/platform/PlatformClient.js +4 -0
  197. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  198. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
  199. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
  200. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
  201. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
  202. package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
  203. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +35 -45
  204. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +38 -117
  205. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +13 -22
  206. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +12 -24
  207. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +46 -40
  208. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +68 -62
  209. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +396 -620
  210. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +326 -501
  211. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +11 -11
  212. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +10 -10
  213. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
  214. package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
  215. package/sdk/platform/Share/SharePlatformModel.d.ts +5 -36
  216. package/sdk/platform/Share/SharePlatformModel.js +4 -27
  217. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
  218. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +4 -8
  219. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +0 -5
  220. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +0 -2
  221. package/sdk/platform/Theme/ThemePlatformModel.d.ts +13 -76
  222. package/sdk/platform/Theme/ThemePlatformModel.js +17 -57
  223. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
  224. package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
  225. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
  226. package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
  227. package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
  228. package/sdk/platform/User/UserPlatformModel.js +23 -23
  229. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
  230. package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
  231. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +427 -720
  232. package/sdk/platform/Webhook/WebhookPlatformModel.js +386 -410
  233. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
  234. package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
  235. package/sdk/platform/index.d.ts +1 -0
  236. package/sdk/platform/index.js +2 -0
  237. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -3
  238. package/sdk/public/Configuration/ConfigurationPublicClient.js +10 -8
  239. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
  240. package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
  241. package/sdk/public/Content/ContentPublicClient.d.ts +2 -112
  242. package/sdk/public/Content/ContentPublicClient.js +19 -793
  243. package/sdk/public/Content/ContentPublicModel.d.ts +3 -549
  244. package/sdk/public/Content/ContentPublicModel.js +3 -649
  245. package/sdk/public/Content/ContentPublicValidator.d.ts +3 -69
  246. package/sdk/public/Content/ContentPublicValidator.js +2 -88
  247. package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
  248. package/sdk/public/Partner/PartnerPublicClient.js +14 -2
  249. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  250. package/sdk/public/Webhook/WebhookPublicClient.js +13 -10
  251. package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
  252. package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
  253. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  254. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  255. package/sdk/application/Cart/CartApplicationModel.d.ts +0 -4340
  256. package/sdk/application/Cart/CartApplicationModel.js +0 -2718
  257. package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -788
  258. package/sdk/application/Cart/CartApplicationValidator.js +0 -546
  259. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +0 -3909
  260. package/sdk/application/Catalog/CatalogApplicationModel.js +0 -2667
  261. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -791
  262. package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -551
  263. package/sdk/application/Common/CommonApplicationModel.d.ts +0 -449
  264. package/sdk/application/Common/CommonApplicationModel.js +0 -308
  265. package/sdk/application/Common/CommonApplicationValidator.d.ts +0 -46
  266. package/sdk/application/Common/CommonApplicationValidator.js +0 -38
  267. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +0 -293
  268. package/sdk/application/Communication/CommunicationApplicationModel.js +0 -201
  269. package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +0 -29
  270. package/sdk/application/Communication/CommunicationApplicationValidator.js +0 -38
  271. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +0 -2544
  272. package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -1875
  273. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +0 -179
  274. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +0 -176
  275. package/sdk/application/Content/ContentApplicationModel.d.ts +0 -2189
  276. package/sdk/application/Content/ContentApplicationModel.js +0 -1640
  277. package/sdk/application/Content/ContentApplicationValidator.d.ts +0 -290
  278. package/sdk/application/Content/ContentApplicationValidator.js +0 -269
  279. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +0 -270
  280. package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -188
  281. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +0 -56
  282. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +0 -53
  283. package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -36
  284. package/sdk/application/Finance/FinanceApplicationClient.js +0 -202
  285. package/sdk/application/Finance/FinanceApplicationModel.d.ts +0 -289
  286. package/sdk/application/Finance/FinanceApplicationModel.js +0 -208
  287. package/sdk/application/Finance/FinanceApplicationValidator.d.ts +0 -25
  288. package/sdk/application/Finance/FinanceApplicationValidator.js +0 -31
  289. package/sdk/application/Lead/LeadApplicationModel.d.ts +0 -590
  290. package/sdk/application/Lead/LeadApplicationModel.js +0 -480
  291. package/sdk/application/Lead/LeadApplicationValidator.d.ts +0 -68
  292. package/sdk/application/Lead/LeadApplicationValidator.js +0 -71
  293. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +0 -2034
  294. package/sdk/application/Logistic/LogisticApplicationModel.js +0 -1391
  295. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +0 -299
  296. package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -224
  297. package/sdk/application/Order/OrderApplicationModel.d.ts +0 -2612
  298. package/sdk/application/Order/OrderApplicationModel.js +0 -1669
  299. package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -279
  300. package/sdk/application/Order/OrderApplicationValidator.js +0 -210
  301. package/sdk/application/Payment/PaymentApplicationModel.d.ts +0 -4062
  302. package/sdk/application/Payment/PaymentApplicationModel.js +0 -2632
  303. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +0 -576
  304. package/sdk/application/Payment/PaymentApplicationValidator.js +0 -594
  305. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +0 -365
  306. package/sdk/application/Rewards/RewardsApplicationModel.js +0 -396
  307. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +0 -73
  308. package/sdk/application/Rewards/RewardsApplicationValidator.js +0 -84
  309. package/sdk/application/Share/ShareApplicationModel.d.ts +0 -339
  310. package/sdk/application/Share/ShareApplicationModel.js +0 -234
  311. package/sdk/application/Share/ShareApplicationValidator.d.ts +0 -90
  312. package/sdk/application/Share/ShareApplicationValidator.js +0 -91
  313. package/sdk/application/Theme/ThemeApplicationModel.d.ts +0 -1744
  314. package/sdk/application/Theme/ThemeApplicationModel.js +0 -1446
  315. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -79
  316. package/sdk/application/Theme/ThemeApplicationValidator.js +0 -65
  317. package/sdk/application/User/UserApplicationModel.d.ts +0 -1943
  318. package/sdk/application/User/UserApplicationModel.js +0 -1382
  319. package/sdk/application/User/UserApplicationValidator.d.ts +0 -560
  320. package/sdk/application/User/UserApplicationValidator.js +0 -573
  321. package/sdk/application/Webhook/WebhookApplicationModel.d.ts +0 -54
  322. package/sdk/application/Webhook/WebhookApplicationModel.js +0 -48
  323. package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +0 -16
  324. package/sdk/application/Webhook/WebhookApplicationValidator.js +0 -19
  325. package/sdk/common/Clickstream.d.ts +0 -1
  326. package/sdk/common/Clickstream.js +0 -464
@@ -1,14 +1,14 @@
1
1
  const Joi = require("joi");
2
2
 
3
3
  /**
4
- * @typedef PaymentGatewayConfigDetails
5
- * @property {Object[]} [aggregators] - List of all speceific Payment options
6
- * with their Details.
4
+ * @typedef PaymentGatewayConfigResponse
5
+ * @property {Object[]} [aggregators] - List of all config specific to the
6
+ * aggregator with their Details.
7
7
  * @property {string} app_id - Application Id to which Payment config Mapped
8
- * @property {string[]} excluded_fields - List of all excluded options with their Details.
8
+ * @property {string[]} excluded_fields - List of all excluded config with their Details.
9
9
  * @property {boolean} success - Response is successful or not
10
10
  * @property {boolean} created - Response is created or not
11
- * @property {string[]} display_fields - List of all included options with their Details.
11
+ * @property {string[]} display_fields - List of all display related configs, i.e. logo
12
12
  */
13
13
 
14
14
  /**
@@ -24,11 +24,12 @@ const Joi = require("joi");
24
24
  * @property {string} config_type - Config Type of the aggregator
25
25
  * @property {boolean} [is_active] - Enable or Disable Flag
26
26
  * @property {string} key - Api key of the payment aggregator
27
- * @property {string} merchant_salt - Merchant key of the payment aggregator
27
+ * @property {string} merchant_salt - The secret key or token provided by the
28
+ * payment aggregator for the merchant.
28
29
  */
29
30
 
30
31
  /**
31
- * @typedef PaymentGatewayConfigCreation
32
+ * @typedef PaymentGatewayConfigRequest
32
33
  * @property {string} app_id - Application Id to which Payment config Mapped
33
34
  * @property {boolean} [is_active] - Enable or Disable Flag
34
35
  * @property {PaymentGatewayConfig} [aggregator_name]
@@ -47,7 +48,7 @@ const Joi = require("joi");
47
48
  */
48
49
 
49
50
  /**
50
- * @typedef HttpErrorDetails
51
+ * @typedef HttpErrorCodeAndResponse
51
52
  * @property {ErrorCodeAndDescription} error
52
53
  * @property {boolean} success - Response is successful or not
53
54
  */
@@ -61,11 +62,11 @@ const Joi = require("joi");
61
62
  /**
62
63
  * @typedef ProductCODData
63
64
  * @property {Object} [items] - Item id with its cod availability.
64
- * @property {CODChargesLimitsDetails} [cod_charges]
65
+ * @property {CODChargesLimitsResponse} [cod_charges]
65
66
  */
66
67
 
67
68
  /**
68
- * @typedef CODChargesLimitsDetails
69
+ * @typedef CODChargesLimitsResponse
69
70
  * @property {number} [max_cart_value] - Max allowed cart value for cod order.
70
71
  * @property {number} [min_cart_value] - Min allowed cart value for cod order.
71
72
  * @property {number} [cod_charge] - Cod charges to be applied on order.
@@ -181,7 +182,7 @@ const Joi = require("joi");
181
182
  /**
182
183
  * @typedef PaymentOptionAndFlow
183
184
  * @property {RootPaymentMode[]} payment_option - Payment options
184
- * @property {PaymentFlow} payment_flows
185
+ * @property {PaymentFlow} [payment_flows]
185
186
  * @property {PaymentDefaultSelection} [payment_default_selection]
186
187
  */
187
188
 
@@ -220,7 +221,7 @@ const Joi = require("joi");
220
221
  */
221
222
 
222
223
  /**
223
- * @typedef PaymentModeRouteDetails
224
+ * @typedef PaymentModeRouteResponse
224
225
  * @property {PaymentOptionAndFlow} payment_options
225
226
  * @property {boolean} success - Response is successful or not
226
227
  * @property {Object} [payment_breakup] - Payment Breakup for advance payment
@@ -228,7 +229,7 @@ const Joi = require("joi");
228
229
  */
229
230
 
230
231
  /**
231
- * @typedef PaymentOptionsDetails
232
+ * @typedef PaymentOptionsResponse
232
233
  * @property {PaymentOptions} payment_options
233
234
  * @property {boolean} success - Response is successful or not
234
235
  * @property {Object} [payment_breakup] - Payment Breakup for advance payment
@@ -275,7 +276,7 @@ const Joi = require("joi");
275
276
  */
276
277
 
277
278
  /**
278
- * @typedef PayoutsDetails
279
+ * @typedef PayoutsResponse
279
280
  * @property {boolean} success - Response is successful or not
280
281
  * @property {Payout[]} items - Contains list of PayoutSchema
281
282
  */
@@ -295,7 +296,7 @@ const Joi = require("joi");
295
296
  */
296
297
 
297
298
  /**
298
- * @typedef PayoutCreation
299
+ * @typedef PayoutRequest
299
300
  * @property {string} aggregator - Aggregator Name
300
301
  * @property {Object} users - Payout users object
301
302
  * @property {string} unique_external_id - Unique Id of Payout
@@ -305,7 +306,7 @@ const Joi = require("joi");
305
306
  */
306
307
 
307
308
  /**
308
- * @typedef PayoutDetails
309
+ * @typedef PayoutResponse
309
310
  * @property {string} payment_status - Status of payment
310
311
  * @property {Object} users - Users details object
311
312
  * @property {string} aggregator - Aggregator Name
@@ -319,58 +320,58 @@ const Joi = require("joi");
319
320
  */
320
321
 
321
322
  /**
322
- * @typedef UpdatePayoutDetails
323
+ * @typedef UpdatePayoutResponse
323
324
  * @property {boolean} is_default - Enable or Disable Default Payout
324
325
  * @property {boolean} is_active - Enable or DIsable Flag Payout
325
326
  * @property {boolean} success - Response is successful or not
326
327
  */
327
328
 
328
329
  /**
329
- * @typedef UpdatePayoutCreation
330
+ * @typedef UpdatePayoutRequest
330
331
  * @property {boolean} is_default - Enable or Disable Default Payout
331
332
  * @property {boolean} is_active - Enable or Disable Flag Payout
332
333
  * @property {string} unique_external_id - Unique Id of Payout
333
334
  */
334
335
 
335
336
  /**
336
- * @typedef DeletePayoutDetails
337
+ * @typedef DeletePayoutResponse
337
338
  * @property {boolean} success - Response is successful or not
338
339
  */
339
340
 
340
341
  /**
341
- * @typedef SubscriptionPaymentMethodDetails
342
+ * @typedef SubscriptionPaymentMethodResponse
342
343
  * @property {Object[]} data - Subscription Payment Method Object
343
344
  * @property {boolean} success - Response is successful or not
344
345
  */
345
346
 
346
347
  /**
347
- * @typedef DeleteSubscriptionPaymentMethodDetails
348
+ * @typedef DeleteSubscriptionPaymentMethodResponse
348
349
  * @property {boolean} success - Success or failure.
349
350
  */
350
351
 
351
352
  /**
352
- * @typedef SubscriptionConfigDetails
353
+ * @typedef SubscriptionConfigResponse
353
354
  * @property {string} aggregator - Aggregator Name
354
355
  * @property {Object} config - Aggregator Config
355
356
  * @property {boolean} success - Response is successful or not
356
357
  */
357
358
 
358
359
  /**
359
- * @typedef SaveSubscriptionSetupIntentCreation
360
+ * @typedef SaveSubscriptionSetupIntentRequest
360
361
  * @property {string} unique_external_id - Unique id i.e company:id
361
362
  */
362
363
 
363
364
  /**
364
- * @typedef SaveSubscriptionSetupIntentDetails
365
+ * @typedef SaveSubscriptionSetupIntentResponse
365
366
  * @property {Object} data - Subscription Payment Method Object
366
367
  * @property {boolean} success - Response is successful or not
367
368
  */
368
369
 
369
370
  /**
370
- * @typedef RefundAccountDetails
371
- * @property {boolean} [is_verified_flag]
372
- * @property {string} message - Response message
373
- * @property {Object} [data] - Refund account data.
371
+ * @typedef RefundAccountResponse
372
+ * @property {boolean} [is_verified_flag] - Account is verified or not
373
+ * @property {string} [message] - Response message
374
+ * @property {Object} data - Refund account data.
374
375
  * @property {boolean} success - Success or failure flag.
375
376
  */
376
377
 
@@ -383,21 +384,21 @@ const Joi = require("joi");
383
384
 
384
385
  /**
385
386
  * @typedef BankDetailsForOTP
386
- * @property {string} ifsc_code
387
- * @property {string} account_no
388
- * @property {string} branch_name
389
- * @property {string} bank_name
390
- * @property {string} account_holder
387
+ * @property {string} ifsc_code - IFSC code of account
388
+ * @property {string} account_no - Account number
389
+ * @property {string} branch_name - Branch name of account
390
+ * @property {string} bank_name - Bank name of account
391
+ * @property {string} account_holder - Accountg holder name of account
391
392
  */
392
393
 
393
394
  /**
394
- * @typedef AddBeneficiaryDetailsOTPCreation
395
- * @property {string} order_id
395
+ * @typedef AddBeneficiaryDetailsOTPRequest
396
+ * @property {string} order_id - Order_id for which account will be added
396
397
  * @property {BankDetailsForOTP} details
397
398
  */
398
399
 
399
400
  /**
400
- * @typedef IfscCodeDetails
401
+ * @typedef IfscCodeResponse
401
402
  * @property {string} branch_name - Branch Name Of Account
402
403
  * @property {boolean} [success] - Response is successful or not
403
404
  * @property {string} bank_name - Bank Name Of Account
@@ -415,11 +416,11 @@ const Joi = require("joi");
415
416
  * @property {string} display_name - Display Name Of Account
416
417
  * @property {string} [delights_user_name] - User Id Who filled the Beneficiary
417
418
  * @property {string} transfer_mode - Transfer Mode Of Account
418
- * @property {string} email - EMail of User
419
+ * @property {string} email - Email of User
419
420
  * @property {boolean} is_active - Boolean Flag whether Beneficiary set or not
420
421
  * @property {string} [branch_name] - Branch Name Of Account
421
422
  * @property {string} address - Address of User
422
- * @property {string} modified_on - MOdification Date of Beneficiary
423
+ * @property {string} modified_on - Modification Date of Beneficiary
423
424
  * @property {string} beneficiary_id - Benenficiary Id
424
425
  * @property {string} account_no - Account Number
425
426
  * @property {string} bank_name - Bank Name Of Account
@@ -427,14 +428,14 @@ const Joi = require("joi");
427
428
  */
428
429
 
429
430
  /**
430
- * @typedef OrderBeneficiaryFetchResults
431
+ * @typedef OrderBeneficiaryResponse
431
432
  * @property {OrderBeneficiaryDetails[]} [beneficiaries] - All Beneficiaries Of An Order
432
433
  * @property {boolean} [show_beneficiary_details] - Show beneficiary details or not.
433
434
  */
434
435
 
435
436
  /**
436
437
  * @typedef MultiTenderPaymentMeta
437
- * @property {Object} [extra_meta]
438
+ * @property {Object} [extra_meta] - Key value pair for extra data related to payment mode
438
439
  * @property {string} [order_id] - Fynd Platform order ID
439
440
  * @property {string} [payment_id] - A unique identifier associated with a
440
441
  * specific payment transaction
@@ -452,17 +453,17 @@ const Joi = require("joi");
452
453
  * @property {string} [name] - Payment mode name
453
454
  * @property {MultiTenderPaymentMeta} [meta]
454
455
  * @property {number} amount - Payment amount
455
- * @property {string} mode
456
+ * @property {string} mode - Payment mode short code
456
457
  */
457
458
 
458
459
  /**
459
- * @typedef PaymentConfirmationCreation
460
+ * @typedef PaymentConfirmationRequest
460
461
  * @property {string} order_id - Unique order id
461
462
  * @property {MultiTenderPaymentMethod[]} payment_methods
462
463
  */
463
464
 
464
465
  /**
465
- * @typedef PaymentConfirmationDetails
466
+ * @typedef PaymentConfirmationResponse
466
467
  * @property {string} order_id - Unique order id
467
468
  * @property {string} message - Message
468
469
  * @property {boolean} success - Payment confirmation updated or not.
@@ -478,13 +479,37 @@ const Joi = require("joi");
478
479
  */
479
480
 
480
481
  /**
481
- * @typedef GetUserCODLimitDetails
482
- * @property {CODdata} user_cod_data
482
+ * @typedef CODLimitConfig
483
+ * @property {number} storefront - Limit for storefront
484
+ * @property {number} pos - Limit for pos
485
+ */
486
+
487
+ /**
488
+ * @typedef CODPaymentLimitConfig
489
+ * @property {boolean} is_active - Boolean flag to show the status
490
+ * @property {number} usages - Used cod limit
491
+ * @property {number} user_id - User_id
492
+ * @property {string} merchant_user_id - Merchant_user_id
493
+ * @property {number} remaining_limit - Remaining COD limit
494
+ * @property {CODLimitConfig} limit
495
+ */
496
+
497
+ /**
498
+ * @typedef GetUserBULimitResponse
499
+ * @property {string} business_unit - COD limit business unit
500
+ * @property {string} display_name - Display name for cod limit
501
+ * @property {CODPaymentLimitConfig} config
502
+ */
503
+
504
+ /**
505
+ * @typedef GetUserCODLimitResponse
506
+ * @property {GetUserBULimitResponse[]} items
483
507
  * @property {boolean} success - Response is successful or not
508
+ * @property {string} [message] - Message for cod limit
484
509
  */
485
510
 
486
511
  /**
487
- * @typedef SetCODForUserCreation
512
+ * @typedef SetCODForUserRequest
488
513
  * @property {string} [business_unit] - Business unit
489
514
  * @property {string} mobileno - Mobile No. of User
490
515
  * @property {boolean} is_active - Either true or false
@@ -492,7 +517,7 @@ const Joi = require("joi");
492
517
  */
493
518
 
494
519
  /**
495
- * @typedef SetCODOptionDetails
520
+ * @typedef SetCODOptionResponse
496
521
  * @property {string} message - Message
497
522
  * @property {boolean} success - Response is successful or not
498
523
  */
@@ -505,7 +530,7 @@ const Joi = require("joi");
505
530
  */
506
531
 
507
532
  /**
508
- * @typedef EdcAggregatorAndModelListDetails
533
+ * @typedef EdcAggregatorAndModelListResponse
509
534
  * @property {EdcModelData[]} data - List of aggregators and their edc models
510
535
  * @property {boolean} success - Response is successful or not
511
536
  */
@@ -517,13 +542,13 @@ const Joi = require("joi");
517
542
  */
518
543
 
519
544
  /**
520
- * @typedef EdcDeviceStatsDetails
545
+ * @typedef EdcDeviceStatsResponse
521
546
  * @property {StatisticsData} statistics
522
547
  * @property {boolean} success - Response is successful or not
523
548
  */
524
549
 
525
550
  /**
526
- * @typedef EdcAddCreation
551
+ * @typedef EdcAddRequest
527
552
  * @property {string} edc_model - Model of the edc machine
528
553
  * @property {number} store_id - Store at which devices is to used
529
554
  * @property {number} aggregator_id - Aggregator which will accept payment
@@ -550,19 +575,19 @@ const Joi = require("joi");
550
575
  */
551
576
 
552
577
  /**
553
- * @typedef EdcDeviceAddDetails
578
+ * @typedef EdcDeviceAddResponse
554
579
  * @property {EdcDevice} data
555
580
  * @property {boolean} success - Response is successful or not
556
581
  */
557
582
 
558
583
  /**
559
- * @typedef EdcDeviceDetails
584
+ * @typedef EdcDeviceDetailsResponse
560
585
  * @property {EdcDevice} data
561
586
  * @property {boolean} success - Response is successful or not
562
587
  */
563
588
 
564
589
  /**
565
- * @typedef EdcUpdate
590
+ * @typedef EdcUpdateRequest
566
591
  * @property {string} [edc_model] - Model of the edc machine
567
592
  * @property {number} [store_id] - Store at which devices is to used
568
593
  * @property {number} [aggregator_id] - Aggregator which will accept payment
@@ -573,7 +598,7 @@ const Joi = require("joi");
573
598
  */
574
599
 
575
600
  /**
576
- * @typedef EdcDeviceUpdateDetails
601
+ * @typedef EdcDeviceUpdateResponse
577
602
  * @property {boolean} success - Response is successful or not
578
603
  */
579
604
 
@@ -589,7 +614,7 @@ const Joi = require("joi");
589
614
  */
590
615
 
591
616
  /**
592
- * @typedef EdcDeviceListDetails
617
+ * @typedef EdcDeviceListResponse
593
618
  * @property {EdcDevice[]} items - List of all edc mapped to the application
594
619
  * options with their Details.
595
620
  * @property {Page} page
@@ -597,7 +622,7 @@ const Joi = require("joi");
597
622
  */
598
623
 
599
624
  /**
600
- * @typedef PaymentInitializationCreation
625
+ * @typedef PaymentInitializationRequest
601
626
  * @property {string} [razorpay_payment_id] - Payment gateway payment id
602
627
  * @property {string} [device_id] - EDC machine Unique Identifier
603
628
  * @property {string} email - Customer valid email
@@ -614,7 +639,7 @@ const Joi = require("joi");
614
639
  */
615
640
 
616
641
  /**
617
- * @typedef PaymentInitializationDetails
642
+ * @typedef PaymentInitializationResponse
618
643
  * @property {string} [razorpay_payment_id] - Payment id.
619
644
  * @property {string} [device_id] - EDC machine Unique Identifier
620
645
  * @property {string} [upi_poll_url] - UPI poll url.
@@ -635,7 +660,7 @@ const Joi = require("joi");
635
660
  */
636
661
 
637
662
  /**
638
- * @typedef PaymentStatusUpdateCreation
663
+ * @typedef PaymentStatusUpdateRequest
639
664
  * @property {string} [device_id] - EDC machine Unique Identifier
640
665
  * @property {string} email - Customer valid email
641
666
  * @property {string} customer_id - Payment gateway customer id.
@@ -652,7 +677,7 @@ const Joi = require("joi");
652
677
  */
653
678
 
654
679
  /**
655
- * @typedef PaymentStatusUpdateDetails
680
+ * @typedef PaymentStatusUpdateResponse
656
681
  * @property {string} [redirect_url] - Redirect url
657
682
  * @property {boolean} retry - Response is successful or not.
658
683
  * @property {boolean} [success] - Response is successful or not
@@ -661,7 +686,7 @@ const Joi = require("joi");
661
686
  */
662
687
 
663
688
  /**
664
- * @typedef ResendOrCancelPaymentCreation
689
+ * @typedef ResendOrCancelPaymentRequest
665
690
  * @property {string} order_id - Unique order id
666
691
  * @property {string} [device_id] - EDC machine Unique Identifier
667
692
  * @property {string} request_type - Either resend or cancel
@@ -676,18 +701,18 @@ const Joi = require("joi");
676
701
  */
677
702
 
678
703
  /**
679
- * @typedef ResendOrCancelPaymentDetails
704
+ * @typedef ResendOrCancelPaymentResponse
680
705
  * @property {LinkStatus} data
681
706
  * @property {boolean} success - Response is successful or not.
682
707
  */
683
708
 
684
709
  /**
685
- * @typedef PaymentStatusBulkHandlerCreation
710
+ * @typedef PaymentStatusBulkHandlerRequest
686
711
  * @property {string[]} merchant_order_id - List of order ids
687
712
  */
688
713
 
689
714
  /**
690
- * @typedef PaymentObjectList
715
+ * @typedef PaymentObjectListSerializer
691
716
  * @property {Object} user_object
692
717
  * @property {string} modified_on
693
718
  * @property {string} collected_by
@@ -711,11 +736,11 @@ const Joi = require("joi");
711
736
  /**
712
737
  * @typedef PaymentStatusObject
713
738
  * @property {string} merchant_order_id
714
- * @property {PaymentObjectList[]} [payment_object_list]
739
+ * @property {PaymentObjectListSerializer[]} [payment_object_list]
715
740
  */
716
741
 
717
742
  /**
718
- * @typedef PaymentStatusBulkHandlerDetails
743
+ * @typedef PaymentStatusBulkHandlerResponse
719
744
  * @property {number} [count]
720
745
  * @property {PaymentStatusObject[]} [data]
721
746
  * @property {string} success
@@ -724,7 +749,7 @@ const Joi = require("joi");
724
749
  */
725
750
 
726
751
  /**
727
- * @typedef GetOauthUrlDetails
752
+ * @typedef GetOauthUrlResponse
728
753
  * @property {string} url - The url to call for authenticating
729
754
  * @property {boolean} success - Response is successful or not
730
755
  */
@@ -759,13 +784,13 @@ const Joi = require("joi");
759
784
  */
760
785
 
761
786
  /**
762
- * @typedef RepaymentDetails
787
+ * @typedef RepaymentResponse
763
788
  * @property {Object} data
764
789
  * @property {boolean} success - Success/Failure of the transaction
765
790
  */
766
791
 
767
792
  /**
768
- * @typedef MerchantOnBoardingCreation
793
+ * @typedef MerchantOnBoardingRequest
769
794
  * @property {string} credit_line_id - Merchant ID at Ajiodhan's end
770
795
  * @property {string} aggregator - Payment aggregator name
771
796
  * @property {string} app_id - Application id
@@ -774,13 +799,13 @@ const Joi = require("joi");
774
799
  */
775
800
 
776
801
  /**
777
- * @typedef MerchantOnBoardingDetails
802
+ * @typedef MerchantOnBoardingResponse
778
803
  * @property {Object} data
779
804
  * @property {boolean} success - Success/Failure of the transaction
780
805
  */
781
806
 
782
807
  /**
783
- * @typedef ValidateCustomerCreation
808
+ * @typedef ValidateCustomerRequest
784
809
  * @property {string} phone_number - User mobile number without country code.
785
810
  * @property {string} aggregator - Payment gateway name in camel case i.e Simpl, Rupifi
786
811
  * @property {string} [payload] - Hashed payload string.
@@ -792,14 +817,14 @@ const Joi = require("joi");
792
817
  */
793
818
 
794
819
  /**
795
- * @typedef ValidateCustomerDetails
820
+ * @typedef ValidateCustomerResponse
796
821
  * @property {string} message - Error or success message.
797
822
  * @property {Object} [data] - Payment gateway response data
798
823
  * @property {boolean} success - Response is successful or not
799
824
  */
800
825
 
801
826
  /**
802
- * @typedef GetPaymentLinkDetails
827
+ * @typedef GetPaymentLinkResponse
803
828
  * @property {string} message - Message
804
829
  * @property {number} status_code - HTTP status code
805
830
  * @property {number} [amount] - Total value of order
@@ -807,7 +832,8 @@ const Joi = require("joi");
807
832
  * @property {string} [payment_link_url] - Url of payment link
808
833
  * @property {string} [payment_link_current_status] - Status of payment link
809
834
  * @property {string} [external_order_id] - Merchant order id
810
- * @property {number} [polling_timeout] - Polling request timeout
835
+ * @property {number} [polling_timeout] - Polling request timeout, perform
836
+ * polling till timeout elapsed or payment status is success/failure
811
837
  * @property {boolean} success - Successful or failure
812
838
  */
813
839
 
@@ -824,7 +850,7 @@ const Joi = require("joi");
824
850
  */
825
851
 
826
852
  /**
827
- * @typedef ErrorDetails
853
+ * @typedef ErrorResponse
828
854
  * @property {number} status_code - HTTP status code
829
855
  * @property {ErrorDescription} [error]
830
856
  * @property {string} message - Message
@@ -833,14 +859,15 @@ const Joi = require("joi");
833
859
 
834
860
  /**
835
861
  * @typedef CreatePaymentLinkMeta
836
- * @property {string} cart_id
837
- * @property {string} checkout_mode
838
- * @property {string} amount
839
- * @property {string} [assign_card_id]
862
+ * @property {string} cart_id - Cart id for which payment link needs to be generated.
863
+ * @property {string} checkout_mode - Checkout mode for the payment link i.e. self
864
+ * @property {string} amount - Payment link amount to be paid by the customer
865
+ * @property {string} [assign_card_id] - Assigned card id against which payment
866
+ * to be done via payment link
840
867
  */
841
868
 
842
869
  /**
843
- * @typedef CreatePaymentLinkCreation
870
+ * @typedef CreatePaymentLinkRequest
844
871
  * @property {string} email - Email to which the payment link is to be sent
845
872
  * @property {number} amount - Total value of order
846
873
  * @property {string} mobile_number - Mobile number to which the payment link is
@@ -849,14 +876,10 @@ const Joi = require("joi");
849
876
  * @property {string} [description] - Merchant order id
850
877
  * @property {CreatePaymentLinkMeta} meta
851
878
  * @property {string} external_order_id - Merchant order id
852
- * @property {string} [success_redirection_url] - URL to which the user will be
853
- * redirected after a successful payment.
854
- * @property {string} [failure_redirection_url] - URL to which the user will be
855
- * redirected if the payment fails.
856
879
  */
857
880
 
858
881
  /**
859
- * @typedef CreatePaymentLinkDetails
882
+ * @typedef CreatePaymentLinkResponse
860
883
  * @property {string} message - Message
861
884
  * @property {number} status_code - HTTP status code
862
885
  * @property {string} [payment_link_url] - Url of payment link
@@ -866,7 +889,7 @@ const Joi = require("joi");
866
889
  */
867
890
 
868
891
  /**
869
- * @typedef PollingPaymentLinkDetails
892
+ * @typedef PollingPaymentLinkResponse
870
893
  * @property {string} [message] - Message
871
894
  * @property {number} [http_status] - HTTP status code
872
895
  * @property {number} [status_code] - HTTP status code
@@ -880,12 +903,12 @@ const Joi = require("joi");
880
903
  */
881
904
 
882
905
  /**
883
- * @typedef CancelOrResendPaymentLinkCreation
906
+ * @typedef CancelOrResendPaymentLinkRequest
884
907
  * @property {string} payment_link_id - Unique id of payment link
885
908
  */
886
909
 
887
910
  /**
888
- * @typedef ResendPaymentLinkDetails
911
+ * @typedef ResendPaymentLinkResponse
889
912
  * @property {number} status_code - HTTP status code
890
913
  * @property {string} message - Message
891
914
  * @property {number} [polling_timeout] - Polling request timeout
@@ -893,7 +916,7 @@ const Joi = require("joi");
893
916
  */
894
917
 
895
918
  /**
896
- * @typedef CancelPaymentLinkDetails
919
+ * @typedef CancelPaymentLinkResponse
897
920
  * @property {number} status_code - HTTP status code
898
921
  * @property {string} message - Message
899
922
  * @property {boolean} success - Successful or failure
@@ -920,20 +943,20 @@ const Joi = require("joi");
920
943
  */
921
944
 
922
945
  /**
923
- * @typedef GetPaymentCodeDetails
946
+ * @typedef GetPaymentCodeResponse
924
947
  * @property {GetPaymentCode} data
925
948
  * @property {boolean} success - Response is successful or not.
926
949
  */
927
950
 
928
951
  /**
929
- * @typedef PlatformPaymentModeDetails
952
+ * @typedef PlatformPaymentModeResponse
930
953
  * @property {string} [message] - Message
931
954
  * @property {Object[]} [items] - List of all aggregator and payment mode details.
932
955
  * @property {boolean} success - Response is successful or not.
933
956
  */
934
957
 
935
958
  /**
936
- * @typedef MerchnatPaymentModeCreation
959
+ * @typedef MerchnatPaymentModeRequest
937
960
  * @property {Object} [offline] - Details to be updated for online payment configuration.
938
961
  * @property {Object} [online] - Details to be updated for offline payment configuration.
939
962
  */
@@ -986,7 +1009,8 @@ const Joi = require("joi");
986
1009
  * @property {AddressDetail} [shipping_address] - Shipping address
987
1010
  * @property {number} amount_captured - Amount which is captured or credited to
988
1011
  * merchant account
989
- * @property {number} [amount_refunded]
1012
+ * @property {number} [amount_refunded] - Amount refunded or credited back to
1013
+ * customer accout
990
1014
  * @property {string} [aggregator_customer_id] - Unique customer id generated by
991
1015
  * payment gateway, not required for standard checkout.
992
1016
  * @property {string} cancel_url - Cancel url sent by Fynd platform at the time
@@ -1008,13 +1032,13 @@ const Joi = require("joi");
1008
1032
  * @property {AddressDetail} [billing_address] - Billing address
1009
1033
  * @property {boolean} [captured] - Whether the payment is captured (credited to
1010
1034
  * merchant account) by payment gateway.
1011
- * @property {Object} [meta] - Metadata
1012
- * @property {string} status - Stautus of the payment
1035
+ * @property {Object} [meta] - Extra meta data specific to extension
1036
+ * @property {string} status - Status of the payment
1013
1037
  */
1014
1038
 
1015
1039
  /**
1016
- * @typedef PaymentSessionCreation
1017
- * @property {Object} [meta] - Meta
1040
+ * @typedef PaymentSessionRequestSerializer
1041
+ * @property {Object} [meta] - Extra meta data specific to extensions
1018
1042
  * @property {string} gid - Global identifier of the entity (e.g. order, cart
1019
1043
  * etc.) against which payment_session was initiated. This is generated by
1020
1044
  * Fynd payments platform and is unique.
@@ -1025,10 +1049,11 @@ const Joi = require("joi");
1025
1049
  * the schema `PaymentSessionDetail`.
1026
1050
  * @property {number} total_amount - Amount paid.
1027
1051
  * @property {string} checksum - Checksum to verify the payload
1052
+ * @property {string} [source] - Source of payment update session
1028
1053
  */
1029
1054
 
1030
1055
  /**
1031
- * @typedef PaymentSessionPutDetails
1056
+ * @typedef PaymentSessionResponseSerializer
1032
1057
  * @property {string} gid - Global identifier of the entity (e.g. order, cart
1033
1058
  * etc.) against which payment_session was initiated. This is generated by
1034
1059
  * Fynd payments platform and is unique.
@@ -1059,7 +1084,7 @@ const Joi = require("joi");
1059
1084
  */
1060
1085
 
1061
1086
  /**
1062
- * @typedef RefundSessionCreation
1087
+ * @typedef RefundSessionRequestSerializer
1063
1088
  * @property {Object} [meta] - Meta
1064
1089
  * @property {string} gid - Global identifier of the entity (e.g. order, cart
1065
1090
  * etc.) against which payment_session was initiated. This is generated by
@@ -1075,7 +1100,7 @@ const Joi = require("joi");
1075
1100
  */
1076
1101
 
1077
1102
  /**
1078
- * @typedef RefundSessionDetails
1103
+ * @typedef RefundSessionResponseSerializer
1079
1104
  * @property {string} gid - Global identifier of the entity (e.g. order, cart
1080
1105
  * etc.) against which payment_session was initiated. This is generated by
1081
1106
  * Fynd payments platform and is unique.
@@ -1086,34 +1111,35 @@ const Joi = require("joi");
1086
1111
  */
1087
1112
 
1088
1113
  /**
1089
- * @typedef PaymentDetails
1090
- * @property {Object[]} payment_methods - Method of payment
1114
+ * @typedef PaymentDetailsSerializer
1115
+ * @property {Object[]} payment_methods - List of payment methods
1091
1116
  * @property {string} gid - Global identifier of the entity (e.g. order, cart
1092
1117
  * etc.) against which payment_session was initiated. This is generated by
1093
1118
  * Fynd payments platform and is unique.
1094
- * @property {number} [amount_refunded]
1119
+ * @property {number} [amount_refunded] - Already refunded amount for the given
1120
+ * gid (global identifier for the order).
1095
1121
  * @property {string} currency - Currency of the payment.
1096
1122
  * @property {string} mode - Test or live, test mode uses test credentials so
1097
1123
  * that actual payment is not created.
1098
- * @property {string} [merchant_locale] - Merchant's locale
1099
- * @property {Object} [meta] - Metadata
1124
+ * @property {string} [merchant_locale] - Merchant's locale (language) i.e. en
1125
+ * @property {Object} [meta] - Extra meta data related to the payment methods
1100
1126
  * @property {string} [kind] - Optional kind of purchase/payment - one time
1101
1127
  * payment (sale) or subcription. defaults to sale.
1102
1128
  * @property {string} [success_url] - Success url sent by Fynd platform at the
1103
1129
  * time of payment creation
1104
- * @property {string} status - Stautus of the payment
1130
+ * @property {string} status - Status of the payment
1105
1131
  * @property {boolean} [captured] - Whether the payment is captured (credited to
1106
1132
  * merchant account) by payment gateway.
1107
1133
  * @property {string} [payment_id] - Unique transaction id generated by payment gateway
1108
1134
  * @property {string} g_user_id - Global user identifier - unique user id
1109
1135
  * generated by Fynd platform
1110
- * @property {string} [locale] - User's locale
1136
+ * @property {string} [locale] - User's locale (language), i.e. en
1111
1137
  * @property {string} [cancel_url] - Cancel url sent by Fynd platform at the
1112
- * time of payment creation
1138
+ * time of payment creation, redirect on payment cancellation
1113
1139
  * @property {string} [created] - Timestamp in epoch
1114
1140
  * @property {number} amount_captured - Amount which is captured or credited to
1115
1141
  * merchant account
1116
- * @property {number} amount - Amount paid.
1142
+ * @property {number} amount - Amount paid for the order.
1117
1143
  * @property {string} [aggregator_customer_id] - Unique customer id generated by
1118
1144
  * payment gateway, not required for standard checkout.
1119
1145
  * @property {string} [aggregator_order_id] - Unique order id or payment request
@@ -1121,7 +1147,7 @@ const Joi = require("joi");
1121
1147
  */
1122
1148
 
1123
1149
  /**
1124
- * @typedef CartDetails
1150
+ * @typedef CartDetailsSerializer
1125
1151
  * @property {Object} items - Items that are added in cart
1126
1152
  * @property {Object[]} articles - List of articles that are added in cart
1127
1153
  * @property {number} cart_value - Total cart value i.e. amount to be paid
@@ -1131,7 +1157,7 @@ const Joi = require("joi");
1131
1157
  */
1132
1158
 
1133
1159
  /**
1134
- * @typedef RefundDetails
1160
+ * @typedef RefundDetailsSerializer
1135
1161
  * @property {number} amount - Refunded amount
1136
1162
  * @property {string} currency - The currency of the payment.
1137
1163
  * @property {string} request_id - Refund request id, unique id generated by Fynd platform
@@ -1141,7 +1167,7 @@ const Joi = require("joi");
1141
1167
  */
1142
1168
 
1143
1169
  /**
1144
- * @typedef PaymentSessionFetchDetails
1170
+ * @typedef PaymentSessionSerializer
1145
1171
  * @property {Object} payment_details - Object of payment details
1146
1172
  * @property {string} [currency] - The currency of the payment.
1147
1173
  * @property {string} status - The status of the payment session.
@@ -1149,8 +1175,8 @@ const Joi = require("joi");
1149
1175
  * @property {string} gid - Global identifier of the entity (e.g. order, cart
1150
1176
  * etc.) against which payment_session was initiated. This is generated by
1151
1177
  * Fynd payments platform and is unique.
1152
- * @property {CartDetails} [cart_details]
1153
- * @property {RefundDetails[]} refund_details - Object of refund details
1178
+ * @property {CartDetailsSerializer} [cart_details]
1179
+ * @property {RefundDetailsSerializer[]} refund_details - Object of refund details
1154
1180
  */
1155
1181
 
1156
1182
  /**
@@ -1161,7 +1187,7 @@ const Joi = require("joi");
1161
1187
  */
1162
1188
 
1163
1189
  /**
1164
- * @typedef RefundPriorityDetails
1190
+ * @typedef RefundPriorityResponseSerializer
1165
1191
  * @property {string} configuration - Configuration for merchant or customer
1166
1192
  * @property {boolean} success - Success
1167
1193
  * @property {boolean} apportion - Apportion refund to multiple sources
@@ -1170,13 +1196,13 @@ const Joi = require("joi");
1170
1196
  */
1171
1197
 
1172
1198
  /**
1173
- * @typedef RefundPriorityCreation
1199
+ * @typedef RefundPriorityRequestSerializer
1174
1200
  * @property {boolean} apportion - Apportion refund to multiple sources
1175
1201
  * @property {RefundSourcesPriority[]} refund_sources_priority - Refund sources priority
1176
1202
  */
1177
1203
 
1178
1204
  /**
1179
- * @typedef MerchantPaymentModeCreation
1205
+ * @typedef MerchantPaymentModeRequest
1180
1206
  * @property {string} business_unit - Business unit
1181
1207
  * @property {Object[]} items - List of item details with respect to payment_mode
1182
1208
  * @property {Object} device - List of devices and its activation status
@@ -1195,7 +1221,7 @@ const Joi = require("joi");
1195
1221
  */
1196
1222
 
1197
1223
  /**
1198
- * @typedef PlatformPaymentModeCopyConfigCreation
1224
+ * @typedef PlatformPaymentModeCopyConfigRequest
1199
1225
  * @property {FromConfig} from_config
1200
1226
  * @property {ToConfig} to_config
1201
1227
  */
@@ -1217,7 +1243,7 @@ const Joi = require("joi");
1217
1243
  */
1218
1244
 
1219
1245
  /**
1220
- * @typedef PaymentOrderCreation
1246
+ * @typedef PaymentOrderRequest
1221
1247
  * @property {string} order_id - Order id
1222
1248
  * @property {PaymentOrderMethods[]} [payment_methods]
1223
1249
  * @property {string} [shipment_id] - Shipment_id
@@ -1238,7 +1264,7 @@ const Joi = require("joi");
1238
1264
  */
1239
1265
 
1240
1266
  /**
1241
- * @typedef PaymentOrderDetails
1267
+ * @typedef PaymentOrderResponse
1242
1268
  * @property {string} message - Message
1243
1269
  * @property {boolean} success - Successful or failure
1244
1270
  * @property {string} [payment_confirm_url] - Payment confirm url for aggregator
@@ -1256,7 +1282,7 @@ const Joi = require("joi");
1256
1282
  */
1257
1283
 
1258
1284
  /**
1259
- * @typedef AggregatorVersionDetails
1285
+ * @typedef AggregatorVersionResponse
1260
1286
  * @property {string} message - Message
1261
1287
  * @property {boolean} success - Successful or failure
1262
1288
  * @property {AggregatorVersionItemSchema} [items]
@@ -1270,7 +1296,7 @@ const Joi = require("joi");
1270
1296
  */
1271
1297
 
1272
1298
  /**
1273
- * @typedef PatchAggregatorControl
1299
+ * @typedef AggregatorControlRequest
1274
1300
  * @property {string} [business_unit] - Business unit
1275
1301
  * @property {Object[]} [items] - List of item details with respect to payment_mode
1276
1302
  * @property {string} [device] - Device name
@@ -1332,8 +1358,8 @@ const Joi = require("joi");
1332
1358
  */
1333
1359
 
1334
1360
  class PaymentPlatformModel {
1335
- /** @returns {PaymentGatewayConfigDetails} */
1336
- static PaymentGatewayConfigDetails() {
1361
+ /** @returns {PaymentGatewayConfigResponse} */
1362
+ static PaymentGatewayConfigResponse() {
1337
1363
  return Joi.object({
1338
1364
  aggregators: Joi.array().items(Joi.any()),
1339
1365
  app_id: Joi.string().allow("").required(),
@@ -1364,8 +1390,8 @@ class PaymentPlatformModel {
1364
1390
  });
1365
1391
  }
1366
1392
 
1367
- /** @returns {PaymentGatewayConfigCreation} */
1368
- static PaymentGatewayConfigCreation() {
1393
+ /** @returns {PaymentGatewayConfigRequest} */
1394
+ static PaymentGatewayConfigRequest() {
1369
1395
  return Joi.object({
1370
1396
  app_id: Joi.string().allow("").required(),
1371
1397
  is_active: Joi.boolean().allow(null),
@@ -1389,8 +1415,8 @@ class PaymentPlatformModel {
1389
1415
  });
1390
1416
  }
1391
1417
 
1392
- /** @returns {HttpErrorDetails} */
1393
- static HttpErrorDetails() {
1418
+ /** @returns {HttpErrorCodeAndResponse} */
1419
+ static HttpErrorCodeAndResponse() {
1394
1420
  return Joi.object({
1395
1421
  error: PaymentPlatformModel.ErrorCodeAndDescription().required(),
1396
1422
  success: Joi.boolean().required(),
@@ -1408,13 +1434,13 @@ class PaymentPlatformModel {
1408
1434
  /** @returns {ProductCODData} */
1409
1435
  static ProductCODData() {
1410
1436
  return Joi.object({
1411
- items: Joi.object().pattern(/\S/, Joi.any()).allow(null, ""),
1412
- cod_charges: PaymentPlatformModel.CODChargesLimitsDetails(),
1437
+ items: Joi.any().allow(null),
1438
+ cod_charges: PaymentPlatformModel.CODChargesLimitsResponse(),
1413
1439
  });
1414
1440
  }
1415
1441
 
1416
- /** @returns {CODChargesLimitsDetails} */
1417
- static CODChargesLimitsDetails() {
1442
+ /** @returns {CODChargesLimitsResponse} */
1443
+ static CODChargesLimitsResponse() {
1418
1444
  return Joi.object({
1419
1445
  max_cart_value: Joi.number().allow(null),
1420
1446
  min_cart_value: Joi.number().allow(null),
@@ -1514,8 +1540,8 @@ class PaymentPlatformModel {
1514
1540
  /** @returns {AggregatorRoute} */
1515
1541
  static AggregatorRoute() {
1516
1542
  return Joi.object({
1517
- data: Joi.object().pattern(/\S/, Joi.any()).allow(null, ""),
1518
- payment_flow_data: Joi.object().pattern(/\S/, Joi.any()).allow(null, ""),
1543
+ data: Joi.any().allow(null),
1544
+ payment_flow_data: Joi.any().allow(null),
1519
1545
  payment_flow: Joi.string().allow("").allow(null),
1520
1546
  api_link: Joi.string().allow("").allow(null),
1521
1547
  }).allow(null);
@@ -1555,7 +1581,7 @@ class PaymentPlatformModel {
1555
1581
  payment_option: Joi.array()
1556
1582
  .items(PaymentPlatformModel.RootPaymentMode())
1557
1583
  .required(),
1558
- payment_flows: PaymentPlatformModel.PaymentFlow().required(),
1584
+ payment_flows: PaymentPlatformModel.PaymentFlow(),
1559
1585
  payment_default_selection: PaymentPlatformModel.PaymentDefaultSelection(),
1560
1586
  });
1561
1587
  }
@@ -1603,24 +1629,24 @@ class PaymentPlatformModel {
1603
1629
  });
1604
1630
  }
1605
1631
 
1606
- /** @returns {PaymentModeRouteDetails} */
1607
- static PaymentModeRouteDetails() {
1632
+ /** @returns {PaymentModeRouteResponse} */
1633
+ static PaymentModeRouteResponse() {
1608
1634
  return Joi.object({
1609
1635
  payment_options: PaymentPlatformModel.PaymentOptionAndFlow().required(),
1610
1636
  success: Joi.boolean().required(),
1611
- payment_breakup: Joi.object().pattern(/\S/, Joi.any()),
1637
+ payment_breakup: Joi.any(),
1612
1638
  advance_payment: Joi.array()
1613
1639
  .items(PaymentPlatformModel.AdvancePaymentObject())
1614
1640
  .allow(null, ""),
1615
1641
  });
1616
1642
  }
1617
1643
 
1618
- /** @returns {PaymentOptionsDetails} */
1619
- static PaymentOptionsDetails() {
1644
+ /** @returns {PaymentOptionsResponse} */
1645
+ static PaymentOptionsResponse() {
1620
1646
  return Joi.object({
1621
1647
  payment_options: PaymentPlatformModel.PaymentOptions().required(),
1622
1648
  success: Joi.boolean().required(),
1623
- payment_breakup: Joi.object().pattern(/\S/, Joi.any()),
1649
+ payment_breakup: Joi.any(),
1624
1650
  });
1625
1651
  }
1626
1652
 
@@ -1674,8 +1700,8 @@ class PaymentPlatformModel {
1674
1700
  });
1675
1701
  }
1676
1702
 
1677
- /** @returns {PayoutsDetails} */
1678
- static PayoutsDetails() {
1703
+ /** @returns {PayoutsResponse} */
1704
+ static PayoutsResponse() {
1679
1705
  return Joi.object({
1680
1706
  success: Joi.boolean().required(),
1681
1707
  items: Joi.array().items(PaymentPlatformModel.Payout()).required(),
@@ -1698,11 +1724,11 @@ class PaymentPlatformModel {
1698
1724
  });
1699
1725
  }
1700
1726
 
1701
- /** @returns {PayoutCreation} */
1702
- static PayoutCreation() {
1727
+ /** @returns {PayoutRequest} */
1728
+ static PayoutRequest() {
1703
1729
  return Joi.object({
1704
1730
  aggregator: Joi.string().allow("").required(),
1705
- users: Joi.object().pattern(/\S/, Joi.any()).required(),
1731
+ users: Joi.any().required(),
1706
1732
  unique_external_id: Joi.string().allow("").required(),
1707
1733
  is_active: Joi.boolean().required(),
1708
1734
  bank_details: PaymentPlatformModel.PayoutBankDetails().required(),
@@ -1710,24 +1736,24 @@ class PaymentPlatformModel {
1710
1736
  });
1711
1737
  }
1712
1738
 
1713
- /** @returns {PayoutDetails} */
1714
- static PayoutDetails() {
1739
+ /** @returns {PayoutResponse} */
1740
+ static PayoutResponse() {
1715
1741
  return Joi.object({
1716
1742
  payment_status: Joi.string().allow("").required(),
1717
- users: Joi.object().pattern(/\S/, Joi.any()).required(),
1743
+ users: Joi.any().required(),
1718
1744
  aggregator: Joi.string().allow("").required(),
1719
1745
  unique_transfer_no: Joi.string().allow("").required(),
1720
1746
  is_active: Joi.boolean().required(),
1721
- bank_details: Joi.object().pattern(/\S/, Joi.any()).required(),
1747
+ bank_details: Joi.any().required(),
1722
1748
  success: Joi.boolean().required(),
1723
1749
  transfer_type: Joi.string().allow("").required(),
1724
1750
  created: Joi.boolean().required(),
1725
- payouts: Joi.object().pattern(/\S/, Joi.any()).required(),
1751
+ payouts: Joi.any().required(),
1726
1752
  });
1727
1753
  }
1728
1754
 
1729
- /** @returns {UpdatePayoutDetails} */
1730
- static UpdatePayoutDetails() {
1755
+ /** @returns {UpdatePayoutResponse} */
1756
+ static UpdatePayoutResponse() {
1731
1757
  return Joi.object({
1732
1758
  is_default: Joi.boolean().required(),
1733
1759
  is_active: Joi.boolean().required(),
@@ -1735,8 +1761,8 @@ class PaymentPlatformModel {
1735
1761
  });
1736
1762
  }
1737
1763
 
1738
- /** @returns {UpdatePayoutCreation} */
1739
- static UpdatePayoutCreation() {
1764
+ /** @returns {UpdatePayoutRequest} */
1765
+ static UpdatePayoutRequest() {
1740
1766
  return Joi.object({
1741
1767
  is_default: Joi.boolean().required(),
1742
1768
  is_active: Joi.boolean().required(),
@@ -1744,58 +1770,58 @@ class PaymentPlatformModel {
1744
1770
  });
1745
1771
  }
1746
1772
 
1747
- /** @returns {DeletePayoutDetails} */
1748
- static DeletePayoutDetails() {
1773
+ /** @returns {DeletePayoutResponse} */
1774
+ static DeletePayoutResponse() {
1749
1775
  return Joi.object({
1750
1776
  success: Joi.boolean().required(),
1751
1777
  });
1752
1778
  }
1753
1779
 
1754
- /** @returns {SubscriptionPaymentMethodDetails} */
1755
- static SubscriptionPaymentMethodDetails() {
1780
+ /** @returns {SubscriptionPaymentMethodResponse} */
1781
+ static SubscriptionPaymentMethodResponse() {
1756
1782
  return Joi.object({
1757
1783
  data: Joi.array().items(Joi.any()).required(),
1758
1784
  success: Joi.boolean().required(),
1759
1785
  });
1760
1786
  }
1761
1787
 
1762
- /** @returns {DeleteSubscriptionPaymentMethodDetails} */
1763
- static DeleteSubscriptionPaymentMethodDetails() {
1788
+ /** @returns {DeleteSubscriptionPaymentMethodResponse} */
1789
+ static DeleteSubscriptionPaymentMethodResponse() {
1764
1790
  return Joi.object({
1765
1791
  success: Joi.boolean().required(),
1766
1792
  });
1767
1793
  }
1768
1794
 
1769
- /** @returns {SubscriptionConfigDetails} */
1770
- static SubscriptionConfigDetails() {
1795
+ /** @returns {SubscriptionConfigResponse} */
1796
+ static SubscriptionConfigResponse() {
1771
1797
  return Joi.object({
1772
1798
  aggregator: Joi.string().allow("").required(),
1773
- config: Joi.object().pattern(/\S/, Joi.any()).required(),
1799
+ config: Joi.any().required(),
1774
1800
  success: Joi.boolean().required(),
1775
1801
  });
1776
1802
  }
1777
1803
 
1778
- /** @returns {SaveSubscriptionSetupIntentCreation} */
1779
- static SaveSubscriptionSetupIntentCreation() {
1804
+ /** @returns {SaveSubscriptionSetupIntentRequest} */
1805
+ static SaveSubscriptionSetupIntentRequest() {
1780
1806
  return Joi.object({
1781
1807
  unique_external_id: Joi.string().allow("").required(),
1782
1808
  });
1783
1809
  }
1784
1810
 
1785
- /** @returns {SaveSubscriptionSetupIntentDetails} */
1786
- static SaveSubscriptionSetupIntentDetails() {
1811
+ /** @returns {SaveSubscriptionSetupIntentResponse} */
1812
+ static SaveSubscriptionSetupIntentResponse() {
1787
1813
  return Joi.object({
1788
- data: Joi.object().pattern(/\S/, Joi.any()).required(),
1814
+ data: Joi.any().required(),
1789
1815
  success: Joi.boolean().required(),
1790
1816
  });
1791
1817
  }
1792
1818
 
1793
- /** @returns {RefundAccountDetails} */
1794
- static RefundAccountDetails() {
1819
+ /** @returns {RefundAccountResponse} */
1820
+ static RefundAccountResponse() {
1795
1821
  return Joi.object({
1796
1822
  is_verified_flag: Joi.boolean(),
1797
- message: Joi.string().allow("").required(),
1798
- data: Joi.object().pattern(/\S/, Joi.any()),
1823
+ message: Joi.string().allow(""),
1824
+ data: Joi.any().required(),
1799
1825
  success: Joi.boolean().required(),
1800
1826
  });
1801
1827
  }
@@ -1820,16 +1846,16 @@ class PaymentPlatformModel {
1820
1846
  });
1821
1847
  }
1822
1848
 
1823
- /** @returns {AddBeneficiaryDetailsOTPCreation} */
1824
- static AddBeneficiaryDetailsOTPCreation() {
1849
+ /** @returns {AddBeneficiaryDetailsOTPRequest} */
1850
+ static AddBeneficiaryDetailsOTPRequest() {
1825
1851
  return Joi.object({
1826
1852
  order_id: Joi.string().allow("").required(),
1827
1853
  details: PaymentPlatformModel.BankDetailsForOTP().required(),
1828
1854
  });
1829
1855
  }
1830
1856
 
1831
- /** @returns {IfscCodeDetails} */
1832
- static IfscCodeDetails() {
1857
+ /** @returns {IfscCodeResponse} */
1858
+ static IfscCodeResponse() {
1833
1859
  return Joi.object({
1834
1860
  branch_name: Joi.string().allow("").required(),
1835
1861
  success: Joi.boolean(),
@@ -1862,8 +1888,8 @@ class PaymentPlatformModel {
1862
1888
  });
1863
1889
  }
1864
1890
 
1865
- /** @returns {OrderBeneficiaryFetchResults} */
1866
- static OrderBeneficiaryFetchResults() {
1891
+ /** @returns {OrderBeneficiaryResponse} */
1892
+ static OrderBeneficiaryResponse() {
1867
1893
  return Joi.object({
1868
1894
  beneficiaries: Joi.array()
1869
1895
  .items(PaymentPlatformModel.OrderBeneficiaryDetails())
@@ -1875,7 +1901,7 @@ class PaymentPlatformModel {
1875
1901
  /** @returns {MultiTenderPaymentMeta} */
1876
1902
  static MultiTenderPaymentMeta() {
1877
1903
  return Joi.object({
1878
- extra_meta: Joi.object().pattern(/\S/, Joi.any()).allow(null, ""),
1904
+ extra_meta: Joi.any().allow(null),
1879
1905
  order_id: Joi.string().allow(""),
1880
1906
  payment_id: Joi.string().allow(""),
1881
1907
  current_status: Joi.string().allow(""),
@@ -1894,8 +1920,8 @@ class PaymentPlatformModel {
1894
1920
  });
1895
1921
  }
1896
1922
 
1897
- /** @returns {PaymentConfirmationCreation} */
1898
- static PaymentConfirmationCreation() {
1923
+ /** @returns {PaymentConfirmationRequest} */
1924
+ static PaymentConfirmationRequest() {
1899
1925
  return Joi.object({
1900
1926
  order_id: Joi.string().allow("").required(),
1901
1927
  payment_methods: Joi.array()
@@ -1904,8 +1930,8 @@ class PaymentPlatformModel {
1904
1930
  });
1905
1931
  }
1906
1932
 
1907
- /** @returns {PaymentConfirmationDetails} */
1908
- static PaymentConfirmationDetails() {
1933
+ /** @returns {PaymentConfirmationResponse} */
1934
+ static PaymentConfirmationResponse() {
1909
1935
  return Joi.object({
1910
1936
  order_id: Joi.string().allow("").required(),
1911
1937
  message: Joi.string().allow("").required(),
@@ -1924,16 +1950,48 @@ class PaymentPlatformModel {
1924
1950
  });
1925
1951
  }
1926
1952
 
1927
- /** @returns {GetUserCODLimitDetails} */
1928
- static GetUserCODLimitDetails() {
1953
+ /** @returns {CODLimitConfig} */
1954
+ static CODLimitConfig() {
1955
+ return Joi.object({
1956
+ storefront: Joi.number().required(),
1957
+ pos: Joi.number().required(),
1958
+ });
1959
+ }
1960
+
1961
+ /** @returns {CODPaymentLimitConfig} */
1962
+ static CODPaymentLimitConfig() {
1929
1963
  return Joi.object({
1930
- user_cod_data: PaymentPlatformModel.CODdata().required(),
1964
+ is_active: Joi.boolean().required(),
1965
+ usages: Joi.number().required(),
1966
+ user_id: Joi.number().required(),
1967
+ merchant_user_id: Joi.string().allow("").required(),
1968
+ remaining_limit: Joi.number().required(),
1969
+ limit: PaymentPlatformModel.CODLimitConfig().required(),
1970
+ });
1971
+ }
1972
+
1973
+ /** @returns {GetUserBULimitResponse} */
1974
+ static GetUserBULimitResponse() {
1975
+ return Joi.object({
1976
+ business_unit: Joi.string().allow("").required(),
1977
+ display_name: Joi.string().allow("").required(),
1978
+ config: PaymentPlatformModel.CODPaymentLimitConfig().required(),
1979
+ });
1980
+ }
1981
+
1982
+ /** @returns {GetUserCODLimitResponse} */
1983
+ static GetUserCODLimitResponse() {
1984
+ return Joi.object({
1985
+ items: Joi.array()
1986
+ .items(PaymentPlatformModel.GetUserBULimitResponse())
1987
+ .required(),
1931
1988
  success: Joi.boolean().required(),
1989
+ message: Joi.string().allow(""),
1932
1990
  });
1933
1991
  }
1934
1992
 
1935
- /** @returns {SetCODForUserCreation} */
1936
- static SetCODForUserCreation() {
1993
+ /** @returns {SetCODForUserRequest} */
1994
+ static SetCODForUserRequest() {
1937
1995
  return Joi.object({
1938
1996
  business_unit: Joi.string().allow(""),
1939
1997
  mobileno: Joi.string().allow("").required(),
@@ -1942,8 +2000,8 @@ class PaymentPlatformModel {
1942
2000
  });
1943
2001
  }
1944
2002
 
1945
- /** @returns {SetCODOptionDetails} */
1946
- static SetCODOptionDetails() {
2003
+ /** @returns {SetCODOptionResponse} */
2004
+ static SetCODOptionResponse() {
1947
2005
  return Joi.object({
1948
2006
  message: Joi.string().allow("").required(),
1949
2007
  success: Joi.boolean().required(),
@@ -1959,8 +2017,8 @@ class PaymentPlatformModel {
1959
2017
  });
1960
2018
  }
1961
2019
 
1962
- /** @returns {EdcAggregatorAndModelListDetails} */
1963
- static EdcAggregatorAndModelListDetails() {
2020
+ /** @returns {EdcAggregatorAndModelListResponse} */
2021
+ static EdcAggregatorAndModelListResponse() {
1964
2022
  return Joi.object({
1965
2023
  data: Joi.array().items(PaymentPlatformModel.EdcModelData()).required(),
1966
2024
  success: Joi.boolean().required(),
@@ -1975,16 +2033,16 @@ class PaymentPlatformModel {
1975
2033
  });
1976
2034
  }
1977
2035
 
1978
- /** @returns {EdcDeviceStatsDetails} */
1979
- static EdcDeviceStatsDetails() {
2036
+ /** @returns {EdcDeviceStatsResponse} */
2037
+ static EdcDeviceStatsResponse() {
1980
2038
  return Joi.object({
1981
2039
  statistics: PaymentPlatformModel.StatisticsData().required(),
1982
2040
  success: Joi.boolean().required(),
1983
2041
  });
1984
2042
  }
1985
2043
 
1986
- /** @returns {EdcAddCreation} */
1987
- static EdcAddCreation() {
2044
+ /** @returns {EdcAddRequest} */
2045
+ static EdcAddRequest() {
1988
2046
  return Joi.object({
1989
2047
  edc_model: Joi.string().allow("").required(),
1990
2048
  store_id: Joi.number().required(),
@@ -2012,24 +2070,24 @@ class PaymentPlatformModel {
2012
2070
  });
2013
2071
  }
2014
2072
 
2015
- /** @returns {EdcDeviceAddDetails} */
2016
- static EdcDeviceAddDetails() {
2073
+ /** @returns {EdcDeviceAddResponse} */
2074
+ static EdcDeviceAddResponse() {
2017
2075
  return Joi.object({
2018
2076
  data: PaymentPlatformModel.EdcDevice().required(),
2019
2077
  success: Joi.boolean().required(),
2020
2078
  });
2021
2079
  }
2022
2080
 
2023
- /** @returns {EdcDeviceDetails} */
2024
- static EdcDeviceDetails() {
2081
+ /** @returns {EdcDeviceDetailsResponse} */
2082
+ static EdcDeviceDetailsResponse() {
2025
2083
  return Joi.object({
2026
2084
  data: PaymentPlatformModel.EdcDevice().required(),
2027
2085
  success: Joi.boolean().required(),
2028
2086
  });
2029
2087
  }
2030
2088
 
2031
- /** @returns {EdcUpdate} */
2032
- static EdcUpdate() {
2089
+ /** @returns {EdcUpdateRequest} */
2090
+ static EdcUpdateRequest() {
2033
2091
  return Joi.object({
2034
2092
  edc_model: Joi.string().allow(""),
2035
2093
  store_id: Joi.number(),
@@ -2041,8 +2099,8 @@ class PaymentPlatformModel {
2041
2099
  });
2042
2100
  }
2043
2101
 
2044
- /** @returns {EdcDeviceUpdateDetails} */
2045
- static EdcDeviceUpdateDetails() {
2102
+ /** @returns {EdcDeviceUpdateResponse} */
2103
+ static EdcDeviceUpdateResponse() {
2046
2104
  return Joi.object({
2047
2105
  success: Joi.boolean().required(),
2048
2106
  });
@@ -2061,8 +2119,8 @@ class PaymentPlatformModel {
2061
2119
  });
2062
2120
  }
2063
2121
 
2064
- /** @returns {EdcDeviceListDetails} */
2065
- static EdcDeviceListDetails() {
2122
+ /** @returns {EdcDeviceListResponse} */
2123
+ static EdcDeviceListResponse() {
2066
2124
  return Joi.object({
2067
2125
  items: Joi.array().items(PaymentPlatformModel.EdcDevice()).required(),
2068
2126
  page: PaymentPlatformModel.Page().required(),
@@ -2070,8 +2128,8 @@ class PaymentPlatformModel {
2070
2128
  });
2071
2129
  }
2072
2130
 
2073
- /** @returns {PaymentInitializationCreation} */
2074
- static PaymentInitializationCreation() {
2131
+ /** @returns {PaymentInitializationRequest} */
2132
+ static PaymentInitializationRequest() {
2075
2133
  return Joi.object({
2076
2134
  razorpay_payment_id: Joi.string().allow("").allow(null),
2077
2135
  device_id: Joi.string().allow("").allow(null),
@@ -2081,7 +2139,7 @@ class PaymentPlatformModel {
2081
2139
  aggregator: Joi.string().allow("").required(),
2082
2140
  order_id: Joi.string().allow("").required(),
2083
2141
  currency: Joi.string().allow("").required(),
2084
- amount: Joi.number().required(),
2142
+ amount: Joi.number().allow(null).required(),
2085
2143
  contact: Joi.string().allow("").required(),
2086
2144
  timeout: Joi.number().allow(null),
2087
2145
  merchant_order_id: Joi.string().allow("").required(),
@@ -2089,8 +2147,8 @@ class PaymentPlatformModel {
2089
2147
  });
2090
2148
  }
2091
2149
 
2092
- /** @returns {PaymentInitializationDetails} */
2093
- static PaymentInitializationDetails() {
2150
+ /** @returns {PaymentInitializationResponse} */
2151
+ static PaymentInitializationResponse() {
2094
2152
  return Joi.object({
2095
2153
  razorpay_payment_id: Joi.string().allow("").allow(null),
2096
2154
  device_id: Joi.string().allow("").allow(null),
@@ -2112,8 +2170,8 @@ class PaymentPlatformModel {
2112
2170
  });
2113
2171
  }
2114
2172
 
2115
- /** @returns {PaymentStatusUpdateCreation} */
2116
- static PaymentStatusUpdateCreation() {
2173
+ /** @returns {PaymentStatusUpdateRequest} */
2174
+ static PaymentStatusUpdateRequest() {
2117
2175
  return Joi.object({
2118
2176
  device_id: Joi.string().allow("").allow(null),
2119
2177
  email: Joi.string().allow("").required(),
@@ -2122,7 +2180,7 @@ class PaymentPlatformModel {
2122
2180
  aggregator: Joi.string().allow("").required(),
2123
2181
  order_id: Joi.string().allow("").required(),
2124
2182
  currency: Joi.string().allow("").required(),
2125
- amount: Joi.number().required(),
2183
+ amount: Joi.number().allow(null).required(),
2126
2184
  contact: Joi.string().allow("").required(),
2127
2185
  merchant_order_id: Joi.string().allow("").required(),
2128
2186
  status: Joi.string().allow("").required(),
@@ -2131,8 +2189,8 @@ class PaymentPlatformModel {
2131
2189
  });
2132
2190
  }
2133
2191
 
2134
- /** @returns {PaymentStatusUpdateDetails} */
2135
- static PaymentStatusUpdateDetails() {
2192
+ /** @returns {PaymentStatusUpdateResponse} */
2193
+ static PaymentStatusUpdateResponse() {
2136
2194
  return Joi.object({
2137
2195
  redirect_url: Joi.string().allow("").allow(null),
2138
2196
  retry: Joi.boolean().required(),
@@ -2142,8 +2200,8 @@ class PaymentPlatformModel {
2142
2200
  });
2143
2201
  }
2144
2202
 
2145
- /** @returns {ResendOrCancelPaymentCreation} */
2146
- static ResendOrCancelPaymentCreation() {
2203
+ /** @returns {ResendOrCancelPaymentRequest} */
2204
+ static ResendOrCancelPaymentRequest() {
2147
2205
  return Joi.object({
2148
2206
  order_id: Joi.string().allow("").required(),
2149
2207
  device_id: Joi.string().allow("").allow(null),
@@ -2160,36 +2218,34 @@ class PaymentPlatformModel {
2160
2218
  });
2161
2219
  }
2162
2220
 
2163
- /** @returns {ResendOrCancelPaymentDetails} */
2164
- static ResendOrCancelPaymentDetails() {
2221
+ /** @returns {ResendOrCancelPaymentResponse} */
2222
+ static ResendOrCancelPaymentResponse() {
2165
2223
  return Joi.object({
2166
2224
  data: PaymentPlatformModel.LinkStatus().required(),
2167
2225
  success: Joi.boolean().required(),
2168
2226
  });
2169
2227
  }
2170
2228
 
2171
- /** @returns {PaymentStatusBulkHandlerCreation} */
2172
- static PaymentStatusBulkHandlerCreation() {
2229
+ /** @returns {PaymentStatusBulkHandlerRequest} */
2230
+ static PaymentStatusBulkHandlerRequest() {
2173
2231
  return Joi.object({
2174
2232
  merchant_order_id: Joi.array().items(Joi.string().allow("")).required(),
2175
2233
  });
2176
2234
  }
2177
2235
 
2178
- /** @returns {PaymentObjectList} */
2179
- static PaymentObjectList() {
2236
+ /** @returns {PaymentObjectListSerializer} */
2237
+ static PaymentObjectListSerializer() {
2180
2238
  return Joi.object({
2181
- user_object: Joi.object().pattern(/\S/, Joi.any()).required(),
2239
+ user_object: Joi.any().required(),
2182
2240
  modified_on: Joi.string().allow("").required(),
2183
2241
  collected_by: Joi.string().allow("").required(),
2184
2242
  created_on: Joi.string().allow("").required(),
2185
- refund_object: Joi.object().pattern(/\S/, Joi.any()).allow(null, ""),
2243
+ refund_object: Joi.any().allow(null),
2186
2244
  id: Joi.string().allow("").required(),
2187
2245
  payment_id: Joi.string().allow("").allow(null),
2188
2246
  currency: Joi.string().allow("").required(),
2189
2247
  current_status: Joi.string().allow("").required(),
2190
- aggregator_payment_object: Joi.object()
2191
- .pattern(/\S/, Joi.any())
2192
- .allow(null, ""),
2248
+ aggregator_payment_object: Joi.any().allow(null),
2193
2249
  payment_mode: Joi.string().allow("").required(),
2194
2250
  refunded_by: Joi.string().allow("").required(),
2195
2251
  amount_in_paisa: Joi.string().allow("").required(),
@@ -2206,13 +2262,13 @@ class PaymentPlatformModel {
2206
2262
  return Joi.object({
2207
2263
  merchant_order_id: Joi.string().allow("").required(),
2208
2264
  payment_object_list: Joi.array().items(
2209
- PaymentPlatformModel.PaymentObjectList()
2265
+ PaymentPlatformModel.PaymentObjectListSerializer()
2210
2266
  ),
2211
2267
  });
2212
2268
  }
2213
2269
 
2214
- /** @returns {PaymentStatusBulkHandlerDetails} */
2215
- static PaymentStatusBulkHandlerDetails() {
2270
+ /** @returns {PaymentStatusBulkHandlerResponse} */
2271
+ static PaymentStatusBulkHandlerResponse() {
2216
2272
  return Joi.object({
2217
2273
  count: Joi.number(),
2218
2274
  data: Joi.array().items(PaymentPlatformModel.PaymentStatusObject()),
@@ -2222,8 +2278,8 @@ class PaymentPlatformModel {
2222
2278
  });
2223
2279
  }
2224
2280
 
2225
- /** @returns {GetOauthUrlDetails} */
2226
- static GetOauthUrlDetails() {
2281
+ /** @returns {GetOauthUrlResponse} */
2282
+ static GetOauthUrlResponse() {
2227
2283
  return Joi.object({
2228
2284
  url: Joi.string().allow("").required(),
2229
2285
  success: Joi.boolean().required(),
@@ -2258,7 +2314,7 @@ class PaymentPlatformModel {
2258
2314
  static RepaymentDetailsSerialiserPayAll() {
2259
2315
  return Joi.object({
2260
2316
  total_amount: Joi.number().required(),
2261
- extension_order_id: Joi.string().allow("").required(),
2317
+ extension_order_id: Joi.string().allow("").allow(null).required(),
2262
2318
  aggregator_transaction_id: Joi.string().allow("").required(),
2263
2319
  aggregator_order_id: Joi.string().allow("").required(),
2264
2320
  shipment_details: Joi.array().items(
@@ -2267,16 +2323,16 @@ class PaymentPlatformModel {
2267
2323
  });
2268
2324
  }
2269
2325
 
2270
- /** @returns {RepaymentDetails} */
2271
- static RepaymentDetails() {
2326
+ /** @returns {RepaymentResponse} */
2327
+ static RepaymentResponse() {
2272
2328
  return Joi.object({
2273
- data: Joi.object().pattern(/\S/, Joi.any()).required(),
2329
+ data: Joi.any().required(),
2274
2330
  success: Joi.boolean().required(),
2275
2331
  });
2276
2332
  }
2277
2333
 
2278
- /** @returns {MerchantOnBoardingCreation} */
2279
- static MerchantOnBoardingCreation() {
2334
+ /** @returns {MerchantOnBoardingRequest} */
2335
+ static MerchantOnBoardingRequest() {
2280
2336
  return Joi.object({
2281
2337
  credit_line_id: Joi.string().allow("").required(),
2282
2338
  aggregator: Joi.string().allow("").required(),
@@ -2286,39 +2342,39 @@ class PaymentPlatformModel {
2286
2342
  });
2287
2343
  }
2288
2344
 
2289
- /** @returns {MerchantOnBoardingDetails} */
2290
- static MerchantOnBoardingDetails() {
2345
+ /** @returns {MerchantOnBoardingResponse} */
2346
+ static MerchantOnBoardingResponse() {
2291
2347
  return Joi.object({
2292
- data: Joi.object().pattern(/\S/, Joi.any()).required(),
2348
+ data: Joi.any().required(),
2293
2349
  success: Joi.boolean().required(),
2294
2350
  });
2295
2351
  }
2296
2352
 
2297
- /** @returns {ValidateCustomerCreation} */
2298
- static ValidateCustomerCreation() {
2353
+ /** @returns {ValidateCustomerRequest} */
2354
+ static ValidateCustomerRequest() {
2299
2355
  return Joi.object({
2300
2356
  phone_number: Joi.string().allow("").required(),
2301
2357
  aggregator: Joi.string().allow("").required(),
2302
2358
  payload: Joi.string().allow("").allow(null),
2303
- delivery_address: Joi.object().pattern(/\S/, Joi.any()),
2359
+ delivery_address: Joi.any(),
2304
2360
  transaction_amount_in_paise: Joi.number().required(),
2305
2361
  order_items: Joi.array().items(Joi.any()),
2306
- merchant_params: Joi.object().pattern(/\S/, Joi.any()),
2307
- billing_address: Joi.object().pattern(/\S/, Joi.any()),
2362
+ merchant_params: Joi.any(),
2363
+ billing_address: Joi.any(),
2308
2364
  });
2309
2365
  }
2310
2366
 
2311
- /** @returns {ValidateCustomerDetails} */
2312
- static ValidateCustomerDetails() {
2367
+ /** @returns {ValidateCustomerResponse} */
2368
+ static ValidateCustomerResponse() {
2313
2369
  return Joi.object({
2314
2370
  message: Joi.string().allow("").required(),
2315
- data: Joi.object().pattern(/\S/, Joi.any()),
2371
+ data: Joi.any(),
2316
2372
  success: Joi.boolean().required(),
2317
2373
  });
2318
2374
  }
2319
2375
 
2320
- /** @returns {GetPaymentLinkDetails} */
2321
- static GetPaymentLinkDetails() {
2376
+ /** @returns {GetPaymentLinkResponse} */
2377
+ static GetPaymentLinkResponse() {
2322
2378
  return Joi.object({
2323
2379
  message: Joi.string().allow("").required(),
2324
2380
  status_code: Joi.number().required(),
@@ -2346,8 +2402,8 @@ class PaymentPlatformModel {
2346
2402
  });
2347
2403
  }
2348
2404
 
2349
- /** @returns {ErrorDetails} */
2350
- static ErrorDetails() {
2405
+ /** @returns {ErrorResponse} */
2406
+ static ErrorResponse() {
2351
2407
  return Joi.object({
2352
2408
  status_code: Joi.number().required(),
2353
2409
  error: PaymentPlatformModel.ErrorDescription(),
@@ -2366,8 +2422,8 @@ class PaymentPlatformModel {
2366
2422
  });
2367
2423
  }
2368
2424
 
2369
- /** @returns {CreatePaymentLinkCreation} */
2370
- static CreatePaymentLinkCreation() {
2425
+ /** @returns {CreatePaymentLinkRequest} */
2426
+ static CreatePaymentLinkRequest() {
2371
2427
  return Joi.object({
2372
2428
  email: Joi.string().allow("").required(),
2373
2429
  amount: Joi.number().required(),
@@ -2376,13 +2432,11 @@ class PaymentPlatformModel {
2376
2432
  description: Joi.string().allow("").allow(null),
2377
2433
  meta: PaymentPlatformModel.CreatePaymentLinkMeta().required(),
2378
2434
  external_order_id: Joi.string().allow("").required(),
2379
- success_redirection_url: Joi.string().allow(""),
2380
- failure_redirection_url: Joi.string().allow(""),
2381
2435
  });
2382
2436
  }
2383
2437
 
2384
- /** @returns {CreatePaymentLinkDetails} */
2385
- static CreatePaymentLinkDetails() {
2438
+ /** @returns {CreatePaymentLinkResponse} */
2439
+ static CreatePaymentLinkResponse() {
2386
2440
  return Joi.object({
2387
2441
  message: Joi.string().allow("").required(),
2388
2442
  status_code: Joi.number().required(),
@@ -2393,8 +2447,8 @@ class PaymentPlatformModel {
2393
2447
  });
2394
2448
  }
2395
2449
 
2396
- /** @returns {PollingPaymentLinkDetails} */
2397
- static PollingPaymentLinkDetails() {
2450
+ /** @returns {PollingPaymentLinkResponse} */
2451
+ static PollingPaymentLinkResponse() {
2398
2452
  return Joi.object({
2399
2453
  message: Joi.string().allow("").allow(null),
2400
2454
  http_status: Joi.number().allow(null),
@@ -2409,15 +2463,15 @@ class PaymentPlatformModel {
2409
2463
  });
2410
2464
  }
2411
2465
 
2412
- /** @returns {CancelOrResendPaymentLinkCreation} */
2413
- static CancelOrResendPaymentLinkCreation() {
2466
+ /** @returns {CancelOrResendPaymentLinkRequest} */
2467
+ static CancelOrResendPaymentLinkRequest() {
2414
2468
  return Joi.object({
2415
2469
  payment_link_id: Joi.string().allow("").required(),
2416
2470
  });
2417
2471
  }
2418
2472
 
2419
- /** @returns {ResendPaymentLinkDetails} */
2420
- static ResendPaymentLinkDetails() {
2473
+ /** @returns {ResendPaymentLinkResponse} */
2474
+ static ResendPaymentLinkResponse() {
2421
2475
  return Joi.object({
2422
2476
  status_code: Joi.number().required(),
2423
2477
  message: Joi.string().allow("").required(),
@@ -2426,8 +2480,8 @@ class PaymentPlatformModel {
2426
2480
  });
2427
2481
  }
2428
2482
 
2429
- /** @returns {CancelPaymentLinkDetails} */
2430
- static CancelPaymentLinkDetails() {
2483
+ /** @returns {CancelPaymentLinkResponse} */
2484
+ static CancelPaymentLinkResponse() {
2431
2485
  return Joi.object({
2432
2486
  status_code: Joi.number().required(),
2433
2487
  message: Joi.string().allow("").required(),
@@ -2461,16 +2515,16 @@ class PaymentPlatformModel {
2461
2515
  });
2462
2516
  }
2463
2517
 
2464
- /** @returns {GetPaymentCodeDetails} */
2465
- static GetPaymentCodeDetails() {
2518
+ /** @returns {GetPaymentCodeResponse} */
2519
+ static GetPaymentCodeResponse() {
2466
2520
  return Joi.object({
2467
2521
  data: PaymentPlatformModel.GetPaymentCode().required(),
2468
2522
  success: Joi.boolean().required(),
2469
2523
  });
2470
2524
  }
2471
2525
 
2472
- /** @returns {PlatformPaymentModeDetails} */
2473
- static PlatformPaymentModeDetails() {
2526
+ /** @returns {PlatformPaymentModeResponse} */
2527
+ static PlatformPaymentModeResponse() {
2474
2528
  return Joi.object({
2475
2529
  message: Joi.string().allow("").allow(null),
2476
2530
  items: Joi.array().items(Joi.any()).allow(null, ""),
@@ -2478,11 +2532,11 @@ class PaymentPlatformModel {
2478
2532
  });
2479
2533
  }
2480
2534
 
2481
- /** @returns {MerchnatPaymentModeCreation} */
2482
- static MerchnatPaymentModeCreation() {
2535
+ /** @returns {MerchnatPaymentModeRequest} */
2536
+ static MerchnatPaymentModeRequest() {
2483
2537
  return Joi.object({
2484
- offline: Joi.object().pattern(/\S/, Joi.any()).allow(null, ""),
2485
- online: Joi.object().pattern(/\S/, Joi.any()).allow(null, ""),
2538
+ offline: Joi.any().allow(null),
2539
+ online: Joi.any().allow(null),
2486
2540
  });
2487
2541
  }
2488
2542
 
@@ -2493,9 +2547,7 @@ class PaymentPlatformModel {
2493
2547
  amount: Joi.number().required(),
2494
2548
  status: Joi.string().allow("").required(),
2495
2549
  currency: Joi.string().allow("").required(),
2496
- aggregator_order_details: Joi.object()
2497
- .pattern(/\S/, Joi.any())
2498
- .required(),
2550
+ aggregator_order_details: Joi.any().required(),
2499
2551
  aggregator: Joi.string().allow("").required(),
2500
2552
  });
2501
2553
  }
@@ -2503,14 +2555,14 @@ class PaymentPlatformModel {
2503
2555
  /** @returns {AddressDetail} */
2504
2556
  static AddressDetail() {
2505
2557
  return Joi.object({
2506
- google_map_point: Joi.object().pattern(/\S/, Joi.any()),
2558
+ google_map_point: Joi.any(),
2507
2559
  landmark: Joi.string().allow(""),
2508
2560
  phone: Joi.string().allow("").required(),
2509
2561
  country_iso_code: Joi.string().allow("").required(),
2510
2562
  area_code: Joi.string().allow("").required(),
2511
2563
  country: Joi.string().allow("").required(),
2512
2564
  expire_at: Joi.string().allow(""),
2513
- geo_location: Joi.object().pattern(/\S/, Joi.any()),
2565
+ geo_location: Joi.any(),
2514
2566
  state: Joi.string().allow("").required(),
2515
2567
  area: Joi.string().allow("").required(),
2516
2568
  g_address_id: Joi.string().allow("").required(),
@@ -2548,15 +2600,15 @@ class PaymentPlatformModel {
2548
2600
  kind: Joi.string().allow(""),
2549
2601
  billing_address: PaymentPlatformModel.AddressDetail(),
2550
2602
  captured: Joi.boolean(),
2551
- meta: Joi.object().pattern(/\S/, Joi.any()),
2603
+ meta: Joi.any(),
2552
2604
  status: Joi.string().allow("").required(),
2553
2605
  });
2554
2606
  }
2555
2607
 
2556
- /** @returns {PaymentSessionCreation} */
2557
- static PaymentSessionCreation() {
2608
+ /** @returns {PaymentSessionRequestSerializer} */
2609
+ static PaymentSessionRequestSerializer() {
2558
2610
  return Joi.object({
2559
- meta: Joi.object().pattern(/\S/, Joi.any()),
2611
+ meta: Joi.any(),
2560
2612
  gid: Joi.string().allow("").required(),
2561
2613
  order_details: PaymentPlatformModel.OrderDetail().required(),
2562
2614
  status: Joi.string().allow("").required(),
@@ -2566,11 +2618,12 @@ class PaymentPlatformModel {
2566
2618
  .required(),
2567
2619
  total_amount: Joi.number().required(),
2568
2620
  checksum: Joi.string().allow("").required(),
2621
+ source: Joi.string().allow(""),
2569
2622
  });
2570
2623
  }
2571
2624
 
2572
- /** @returns {PaymentSessionPutDetails} */
2573
- static PaymentSessionPutDetails() {
2625
+ /** @returns {PaymentSessionResponseSerializer} */
2626
+ static PaymentSessionResponseSerializer() {
2574
2627
  return Joi.object({
2575
2628
  gid: Joi.string().allow("").required(),
2576
2629
  platform_transaction_details: Joi.array().items(Joi.any()).required(),
@@ -2599,10 +2652,10 @@ class PaymentPlatformModel {
2599
2652
  });
2600
2653
  }
2601
2654
 
2602
- /** @returns {RefundSessionCreation} */
2603
- static RefundSessionCreation() {
2655
+ /** @returns {RefundSessionRequestSerializer} */
2656
+ static RefundSessionRequestSerializer() {
2604
2657
  return Joi.object({
2605
- meta: Joi.object().pattern(/\S/, Joi.any()),
2658
+ meta: Joi.any(),
2606
2659
  gid: Joi.string().allow("").required(),
2607
2660
  status: Joi.string().allow("").required(),
2608
2661
  currency: Joi.string().allow("").required(),
@@ -2617,8 +2670,8 @@ class PaymentPlatformModel {
2617
2670
  });
2618
2671
  }
2619
2672
 
2620
- /** @returns {RefundSessionDetails} */
2621
- static RefundSessionDetails() {
2673
+ /** @returns {RefundSessionResponseSerializer} */
2674
+ static RefundSessionResponseSerializer() {
2622
2675
  return Joi.object({
2623
2676
  gid: Joi.string().allow("").required(),
2624
2677
  status: Joi.string().allow("").required(),
@@ -2628,8 +2681,8 @@ class PaymentPlatformModel {
2628
2681
  });
2629
2682
  }
2630
2683
 
2631
- /** @returns {PaymentDetails} */
2632
- static PaymentDetails() {
2684
+ /** @returns {PaymentDetailsSerializer} */
2685
+ static PaymentDetailsSerializer() {
2633
2686
  return Joi.object({
2634
2687
  payment_methods: Joi.array().items(Joi.any()).required(),
2635
2688
  gid: Joi.string().allow("").required(),
@@ -2637,7 +2690,7 @@ class PaymentPlatformModel {
2637
2690
  currency: Joi.string().allow("").required(),
2638
2691
  mode: Joi.string().allow("").required(),
2639
2692
  merchant_locale: Joi.string().allow(""),
2640
- meta: Joi.object().pattern(/\S/, Joi.any()).allow(null, ""),
2693
+ meta: Joi.any().allow(null),
2641
2694
  kind: Joi.string().allow(""),
2642
2695
  success_url: Joi.string().allow(""),
2643
2696
  status: Joi.string().allow("").required(),
@@ -2654,10 +2707,10 @@ class PaymentPlatformModel {
2654
2707
  });
2655
2708
  }
2656
2709
 
2657
- /** @returns {CartDetails} */
2658
- static CartDetails() {
2710
+ /** @returns {CartDetailsSerializer} */
2711
+ static CartDetailsSerializer() {
2659
2712
  return Joi.object({
2660
- items: Joi.object().pattern(/\S/, Joi.any()).required(),
2713
+ items: Joi.any().required(),
2661
2714
  articles: Joi.array().items(Joi.any()).required(),
2662
2715
  cart_value: Joi.number().required(),
2663
2716
  total_quantity: Joi.number(),
@@ -2665,8 +2718,8 @@ class PaymentPlatformModel {
2665
2718
  });
2666
2719
  }
2667
2720
 
2668
- /** @returns {RefundDetails} */
2669
- static RefundDetails() {
2721
+ /** @returns {RefundDetailsSerializer} */
2722
+ static RefundDetailsSerializer() {
2670
2723
  return Joi.object({
2671
2724
  amount: Joi.number().required(),
2672
2725
  currency: Joi.string().allow("").required(),
@@ -2677,17 +2730,17 @@ class PaymentPlatformModel {
2677
2730
  });
2678
2731
  }
2679
2732
 
2680
- /** @returns {PaymentSessionFetchDetails} */
2681
- static PaymentSessionFetchDetails() {
2733
+ /** @returns {PaymentSessionSerializer} */
2734
+ static PaymentSessionSerializer() {
2682
2735
  return Joi.object({
2683
2736
  payment_details: Joi.any().required(),
2684
2737
  currency: Joi.string().allow("").allow(null),
2685
2738
  status: Joi.string().allow("").required(),
2686
2739
  total_amount: Joi.number().required(),
2687
- gid: Joi.string().allow("").required(),
2688
- cart_details: PaymentPlatformModel.CartDetails(),
2740
+ gid: Joi.string().allow("").allow(null).required(),
2741
+ cart_details: PaymentPlatformModel.CartDetailsSerializer(),
2689
2742
  refund_details: Joi.array()
2690
- .items(PaymentPlatformModel.RefundDetails())
2743
+ .items(PaymentPlatformModel.RefundDetailsSerializer())
2691
2744
  .required(),
2692
2745
  });
2693
2746
  }
@@ -2701,8 +2754,8 @@ class PaymentPlatformModel {
2701
2754
  });
2702
2755
  }
2703
2756
 
2704
- /** @returns {RefundPriorityDetails} */
2705
- static RefundPriorityDetails() {
2757
+ /** @returns {RefundPriorityResponseSerializer} */
2758
+ static RefundPriorityResponseSerializer() {
2706
2759
  return Joi.object({
2707
2760
  configuration: Joi.string().allow("").required(),
2708
2761
  success: Joi.boolean().required(),
@@ -2714,8 +2767,8 @@ class PaymentPlatformModel {
2714
2767
  });
2715
2768
  }
2716
2769
 
2717
- /** @returns {RefundPriorityCreation} */
2718
- static RefundPriorityCreation() {
2770
+ /** @returns {RefundPriorityRequestSerializer} */
2771
+ static RefundPriorityRequestSerializer() {
2719
2772
  return Joi.object({
2720
2773
  apportion: Joi.boolean().required(),
2721
2774
  refund_sources_priority: Joi.array()
@@ -2724,12 +2777,12 @@ class PaymentPlatformModel {
2724
2777
  });
2725
2778
  }
2726
2779
 
2727
- /** @returns {MerchantPaymentModeCreation} */
2728
- static MerchantPaymentModeCreation() {
2780
+ /** @returns {MerchantPaymentModeRequest} */
2781
+ static MerchantPaymentModeRequest() {
2729
2782
  return Joi.object({
2730
2783
  business_unit: Joi.string().allow("").required(),
2731
2784
  items: Joi.array().items(Joi.any()).required(),
2732
- device: Joi.object().pattern(/\S/, Joi.any()).required(),
2785
+ device: Joi.any().required(),
2733
2786
  });
2734
2787
  }
2735
2788
 
@@ -2749,8 +2802,8 @@ class PaymentPlatformModel {
2749
2802
  });
2750
2803
  }
2751
2804
 
2752
- /** @returns {PlatformPaymentModeCopyConfigCreation} */
2753
- static PlatformPaymentModeCopyConfigCreation() {
2805
+ /** @returns {PlatformPaymentModeCopyConfigRequest} */
2806
+ static PlatformPaymentModeCopyConfigRequest() {
2754
2807
  return Joi.object({
2755
2808
  from_config: PaymentPlatformModel.FromConfig().required(),
2756
2809
  to_config: PaymentPlatformModel.ToConfig().required(),
@@ -2777,8 +2830,8 @@ class PaymentPlatformModel {
2777
2830
  });
2778
2831
  }
2779
2832
 
2780
- /** @returns {PaymentOrderCreation} */
2781
- static PaymentOrderCreation() {
2833
+ /** @returns {PaymentOrderRequest} */
2834
+ static PaymentOrderRequest() {
2782
2835
  return Joi.object({
2783
2836
  order_id: Joi.string().allow("").required(),
2784
2837
  payment_methods: Joi.array().items(
@@ -2804,8 +2857,8 @@ class PaymentPlatformModel {
2804
2857
  });
2805
2858
  }
2806
2859
 
2807
- /** @returns {PaymentOrderDetails} */
2808
- static PaymentOrderDetails() {
2860
+ /** @returns {PaymentOrderResponse} */
2861
+ static PaymentOrderResponse() {
2809
2862
  return Joi.object({
2810
2863
  message: Joi.string().allow("").required(),
2811
2864
  success: Joi.boolean().required(),
@@ -2826,8 +2879,8 @@ class PaymentPlatformModel {
2826
2879
  });
2827
2880
  }
2828
2881
 
2829
- /** @returns {AggregatorVersionDetails} */
2830
- static AggregatorVersionDetails() {
2882
+ /** @returns {AggregatorVersionResponse} */
2883
+ static AggregatorVersionResponse() {
2831
2884
  return Joi.object({
2832
2885
  message: Joi.string().allow("").required(),
2833
2886
  success: Joi.boolean().required(),
@@ -2844,8 +2897,8 @@ class PaymentPlatformModel {
2844
2897
  });
2845
2898
  }
2846
2899
 
2847
- /** @returns {PatchAggregatorControl} */
2848
- static PatchAggregatorControl() {
2900
+ /** @returns {AggregatorControlRequest} */
2901
+ static AggregatorControlRequest() {
2849
2902
  return Joi.object({
2850
2903
  business_unit: Joi.string().allow(""),
2851
2904
  items: Joi.array().items(Joi.any()),