@gofynd/fdk-client-javascript 1.1.6 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (321) hide show
  1. package/README.md +12 -0
  2. package/index.js +0 -3
  3. package/package.json +1 -1
  4. package/sdk/application/ApplicationAPIClient.d.ts +15 -1
  5. package/sdk/application/ApplicationAPIClient.js +8 -1
  6. package/sdk/application/ApplicationClient.d.ts +37 -6
  7. package/sdk/application/ApplicationClient.js +31 -0
  8. package/sdk/application/ApplicationConfig.d.ts +52 -12
  9. package/sdk/application/ApplicationConfig.js +37 -2
  10. package/sdk/application/ApplicationModels.d.ts +46 -1
  11. package/sdk/application/ApplicationModels.js +18 -0
  12. package/sdk/application/Cart/CartApplicationClient.d.ts +172 -357
  13. package/sdk/application/Cart/CartApplicationClient.js +620 -483
  14. package/sdk/application/Cart/CartApplicationModel.d.ts +2054 -96
  15. package/sdk/application/Cart/CartApplicationModel.js +1224 -93
  16. package/sdk/application/Cart/CartApplicationValidator.d.ts +508 -30
  17. package/sdk/application/Cart/CartApplicationValidator.js +270 -15
  18. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +234 -413
  19. package/sdk/application/Catalog/CatalogApplicationClient.js +777 -630
  20. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2218 -117
  21. package/sdk/application/Catalog/CatalogApplicationModel.js +1499 -170
  22. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +798 -31
  23. package/sdk/application/Catalog/CatalogApplicationValidator.js +318 -3
  24. package/sdk/application/Common/CommonApplicationClient.d.ts +14 -21
  25. package/sdk/application/Common/CommonApplicationClient.js +50 -33
  26. package/sdk/application/Common/CommonApplicationModel.d.ts +448 -19
  27. package/sdk/application/Common/CommonApplicationModel.js +224 -16
  28. package/sdk/application/Common/CommonApplicationValidator.d.ts +42 -4
  29. package/sdk/application/Common/CommonApplicationValidator.js +21 -3
  30. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +25 -18
  31. package/sdk/application/Communication/CommunicationApplicationClient.js +74 -47
  32. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +190 -14
  33. package/sdk/application/Communication/CommunicationApplicationModel.js +124 -7
  34. package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +27 -4
  35. package/sdk/application/Communication/CommunicationApplicationValidator.js +21 -5
  36. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +113 -112
  37. package/sdk/application/Configuration/ConfigurationApplicationClient.js +381 -260
  38. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +2453 -110
  39. package/sdk/application/Configuration/ConfigurationApplicationModel.js +1254 -108
  40. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +160 -8
  41. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +88 -4
  42. package/sdk/application/Content/ContentApplicationClient.d.ts +120 -138
  43. package/sdk/application/Content/ContentApplicationClient.js +409 -277
  44. package/sdk/application/Content/ContentApplicationModel.d.ts +1627 -105
  45. package/sdk/application/Content/ContentApplicationModel.js +1202 -109
  46. package/sdk/application/Content/ContentApplicationValidator.d.ts +214 -12
  47. package/sdk/application/Content/ContentApplicationValidator.js +113 -3
  48. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +20 -29
  49. package/sdk/application/FileStorage/FileStorageApplicationClient.js +68 -47
  50. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +299 -20
  51. package/sdk/application/FileStorage/FileStorageApplicationModel.js +209 -16
  52. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +55 -5
  53. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +33 -6
  54. package/sdk/application/Lead/LeadApplicationClient.d.ts +50 -53
  55. package/sdk/application/Lead/LeadApplicationClient.js +169 -103
  56. package/sdk/application/Lead/LeadApplicationModel.d.ts +1405 -54
  57. package/sdk/application/Lead/LeadApplicationModel.js +619 -73
  58. package/sdk/application/Lead/LeadApplicationValidator.d.ts +91 -9
  59. package/sdk/application/Lead/LeadApplicationValidator.js +51 -6
  60. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +34 -33
  61. package/sdk/application/Logistic/LogisticApplicationClient.js +110 -73
  62. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +399 -28
  63. package/sdk/application/Logistic/LogisticApplicationModel.js +293 -24
  64. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +48 -6
  65. package/sdk/application/Logistic/LogisticApplicationValidator.js +34 -6
  66. package/sdk/application/Order/OrderApplicationClient.d.ts +81 -133
  67. package/sdk/application/Order/OrderApplicationClient.js +297 -217
  68. package/sdk/application/Order/OrderApplicationModel.d.ts +1101 -66
  69. package/sdk/application/Order/OrderApplicationModel.js +776 -57
  70. package/sdk/application/Order/OrderApplicationValidator.d.ts +249 -14
  71. package/sdk/application/Order/OrderApplicationValidator.js +114 -5
  72. package/sdk/application/Payment/PaymentApplicationClient.d.ts +341 -356
  73. package/sdk/application/Payment/PaymentApplicationClient.js +1077 -703
  74. package/sdk/application/Payment/PaymentApplicationModel.d.ts +3125 -99
  75. package/sdk/application/Payment/PaymentApplicationModel.js +1158 -62
  76. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +494 -41
  77. package/sdk/application/Payment/PaymentApplicationValidator.js +297 -25
  78. package/sdk/application/PosCart/PosCartApplicationClient.d.ts +178 -350
  79. package/sdk/application/PosCart/PosCartApplicationClient.js +636 -491
  80. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1823 -89
  81. package/sdk/application/PosCart/PosCartApplicationModel.js +1117 -85
  82. package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +480 -29
  83. package/sdk/application/PosCart/PosCartApplicationValidator.js +262 -15
  84. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +49 -47
  85. package/sdk/application/Rewards/RewardsApplicationClient.js +160 -102
  86. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +343 -22
  87. package/sdk/application/Rewards/RewardsApplicationModel.js +230 -15
  88. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +70 -7
  89. package/sdk/application/Rewards/RewardsApplicationValidator.js +45 -6
  90. package/sdk/application/Share/ShareApplicationClient.d.ts +44 -50
  91. package/sdk/application/Share/ShareApplicationClient.js +165 -97
  92. package/sdk/application/Share/ShareApplicationModel.d.ts +230 -15
  93. package/sdk/application/Share/ShareApplicationModel.js +154 -16
  94. package/sdk/application/Share/ShareApplicationValidator.d.ts +86 -8
  95. package/sdk/application/Share/ShareApplicationValidator.js +48 -4
  96. package/sdk/application/Theme/ThemeApplicationClient.d.ts +25 -27
  97. package/sdk/application/Theme/ThemeApplicationClient.js +83 -54
  98. package/sdk/application/Theme/ThemeApplicationModel.d.ts +621 -48
  99. package/sdk/application/Theme/ThemeApplicationModel.js +464 -40
  100. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +49 -5
  101. package/sdk/application/Theme/ThemeApplicationValidator.js +26 -3
  102. package/sdk/application/User/UserApplicationClient.d.ts +219 -303
  103. package/sdk/application/User/UserApplicationClient.js +819 -522
  104. package/sdk/application/User/UserApplicationModel.d.ts +1390 -101
  105. package/sdk/application/User/UserApplicationModel.js +983 -44
  106. package/sdk/application/User/UserApplicationValidator.d.ts +457 -33
  107. package/sdk/application/User/UserApplicationValidator.js +265 -31
  108. package/sdk/common/AxiosHelper.js +8 -2
  109. package/sdk/common/Paginator.d.ts +27 -12
  110. package/sdk/common/Paginator.js +15 -0
  111. package/sdk/common/RequestSigner.js +0 -1
  112. package/sdk/partner/PartnerAPIClient.d.ts +15 -1
  113. package/sdk/partner/PartnerAPIClient.js +8 -1
  114. package/sdk/partner/PartnerClient.d.ts +20 -3
  115. package/sdk/partner/PartnerClient.js +17 -0
  116. package/sdk/partner/PartnerConfig.d.ts +40 -14
  117. package/sdk/partner/PartnerConfig.js +31 -6
  118. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +26 -25
  119. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +82 -53
  120. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +202 -17
  121. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +139 -10
  122. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +42 -5
  123. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +26 -4
  124. package/sdk/platform/Billing/BillingPlatformClient.d.ts +88 -97
  125. package/sdk/platform/Billing/BillingPlatformClient.js +310 -191
  126. package/sdk/platform/Billing/BillingPlatformModel.d.ts +1211 -68
  127. package/sdk/platform/Billing/BillingPlatformModel.js +824 -59
  128. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +153 -12
  129. package/sdk/platform/Billing/BillingPlatformValidator.js +87 -8
  130. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +392 -634
  131. package/sdk/platform/Cart/CartPlatformApplicationClient.js +1480 -957
  132. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +827 -57
  133. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +492 -34
  134. package/sdk/platform/Cart/CartPlatformModel.d.ts +3639 -175
  135. package/sdk/platform/Cart/CartPlatformModel.js +2368 -212
  136. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +438 -615
  137. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1449 -984
  138. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1081 -49
  139. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +482 -23
  140. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +573 -824
  141. package/sdk/platform/Catalog/CatalogPlatformClient.js +1773 -1264
  142. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6871 -326
  143. package/sdk/platform/Catalog/CatalogPlatformModel.js +4215 -349
  144. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +1331 -71
  145. package/sdk/platform/Catalog/CatalogPlatformValidator.js +611 -30
  146. package/sdk/platform/Common/CommonPlatformClient.d.ts +14 -21
  147. package/sdk/platform/Common/CommonPlatformClient.js +48 -33
  148. package/sdk/platform/Common/CommonPlatformModel.d.ts +448 -19
  149. package/sdk/platform/Common/CommonPlatformModel.js +224 -16
  150. package/sdk/platform/Common/CommonPlatformValidator.d.ts +42 -4
  151. package/sdk/platform/Common/CommonPlatformValidator.js +21 -3
  152. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +457 -279
  153. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +1423 -553
  154. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +581 -42
  155. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +294 -22
  156. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +18 -5
  157. package/sdk/platform/Communication/CommunicationPlatformClient.js +58 -19
  158. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1630 -102
  159. package/sdk/platform/Communication/CommunicationPlatformModel.js +1150 -85
  160. package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +16 -3
  161. package/sdk/platform/Communication/CommunicationPlatformValidator.js +11 -3
  162. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +102 -111
  163. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +321 -225
  164. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +830 -43
  165. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +612 -78
  166. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +180 -13
  167. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +98 -10
  168. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +232 -212
  169. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +737 -438
  170. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +293 -22
  171. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +184 -17
  172. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +166 -178
  173. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +519 -310
  174. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +4504 -188
  175. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2242 -204
  176. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +332 -19
  177. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +153 -10
  178. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +495 -560
  179. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1777 -987
  180. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +872 -62
  181. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +487 -35
  182. package/sdk/platform/Content/ContentPlatformModel.d.ts +1661 -108
  183. package/sdk/platform/Content/ContentPlatformModel.js +1217 -113
  184. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +67 -101
  185. package/sdk/platform/Discount/DiscountPlatformClient.js +240 -176
  186. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +242 -15
  187. package/sdk/platform/Discount/DiscountPlatformModel.js +162 -10
  188. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +185 -13
  189. package/sdk/platform/Discount/DiscountPlatformValidator.js +88 -8
  190. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +32 -41
  191. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +106 -74
  192. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +77 -6
  193. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +41 -6
  194. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +39 -54
  195. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +124 -99
  196. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +299 -20
  197. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +207 -16
  198. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +98 -8
  199. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +54 -7
  200. package/sdk/platform/Finance/FinancePlatformClient.d.ts +85 -91
  201. package/sdk/platform/Finance/FinancePlatformClient.js +272 -180
  202. package/sdk/platform/Finance/FinancePlatformModel.d.ts +619 -50
  203. package/sdk/platform/Finance/FinancePlatformModel.js +458 -30
  204. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +123 -15
  205. package/sdk/platform/Finance/FinancePlatformValidator.js +95 -16
  206. package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +99 -97
  207. package/sdk/platform/Inventory/InventoryPlatformClient.js +288 -199
  208. package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +1354 -61
  209. package/sdk/platform/Inventory/InventoryPlatformModel.js +916 -83
  210. package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +168 -12
  211. package/sdk/platform/Inventory/InventoryPlatformValidator.js +82 -6
  212. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +86 -106
  213. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +326 -186
  214. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +180 -14
  215. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +94 -9
  216. package/sdk/platform/Lead/LeadPlatformClient.d.ts +75 -101
  217. package/sdk/platform/Lead/LeadPlatformClient.js +240 -174
  218. package/sdk/platform/Lead/LeadPlatformModel.d.ts +1403 -54
  219. package/sdk/platform/Lead/LeadPlatformModel.js +618 -73
  220. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +173 -12
  221. package/sdk/platform/Lead/LeadPlatformValidator.js +85 -8
  222. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +18 -14
  223. package/sdk/platform/Order/OrderPlatformApplicationClient.js +56 -29
  224. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +26 -4
  225. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +16 -3
  226. package/sdk/platform/Order/OrderPlatformClient.d.ts +343 -556
  227. package/sdk/platform/Order/OrderPlatformClient.js +969 -762
  228. package/sdk/platform/Order/OrderPlatformModel.d.ts +4967 -247
  229. package/sdk/platform/Order/OrderPlatformModel.js +3249 -259
  230. package/sdk/platform/Order/OrderPlatformValidator.d.ts +758 -37
  231. package/sdk/platform/Order/OrderPlatformValidator.js +351 -22
  232. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +28 -36
  233. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +103 -59
  234. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +66 -6
  235. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +32 -4
  236. package/sdk/platform/Partner/PartnerPlatformClient.d.ts +68 -107
  237. package/sdk/platform/Partner/PartnerPlatformClient.js +253 -174
  238. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +767 -45
  239. package/sdk/platform/Partner/PartnerPlatformModel.js +524 -41
  240. package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +207 -13
  241. package/sdk/platform/Partner/PartnerPlatformValidator.js +87 -5
  242. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +255 -260
  243. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +860 -504
  244. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +348 -30
  245. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +221 -19
  246. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +73 -73
  247. package/sdk/platform/Payment/PaymentPlatformClient.js +238 -154
  248. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2658 -93
  249. package/sdk/platform/Payment/PaymentPlatformModel.js +1035 -36
  250. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +111 -11
  251. package/sdk/platform/Payment/PaymentPlatformValidator.js +68 -7
  252. package/sdk/platform/PlatformAPIClient.d.ts +16 -1
  253. package/sdk/platform/PlatformAPIClient.js +9 -1
  254. package/sdk/platform/PlatformApplicationClient.d.ts +22 -1798
  255. package/sdk/platform/PlatformApplicationClient.js +17 -1899
  256. package/sdk/platform/PlatformClient.d.ts +29 -12579
  257. package/sdk/platform/PlatformClient.js +26 -15085
  258. package/sdk/platform/PlatformConfig.d.ts +37 -11
  259. package/sdk/platform/PlatformConfig.js +32 -6
  260. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +80 -92
  261. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +307 -177
  262. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +149 -12
  263. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +82 -8
  264. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +371 -23
  265. package/sdk/platform/Rewards/RewardsPlatformModel.js +246 -16
  266. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +120 -89
  267. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +349 -201
  268. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +128 -12
  269. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +85 -11
  270. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +148 -178
  271. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +454 -329
  272. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1399 -96
  273. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1022 -71
  274. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +280 -18
  275. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +134 -11
  276. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +38 -47
  277. package/sdk/platform/Share/SharePlatformApplicationClient.js +137 -73
  278. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +87 -7
  279. package/sdk/platform/Share/SharePlatformApplicationValidator.js +42 -5
  280. package/sdk/platform/Share/SharePlatformModel.d.ts +250 -16
  281. package/sdk/platform/Share/SharePlatformModel.js +165 -17
  282. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +149 -183
  283. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +579 -330
  284. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +308 -24
  285. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +162 -10
  286. package/sdk/platform/Theme/ThemePlatformModel.d.ts +621 -48
  287. package/sdk/platform/Theme/ThemePlatformModel.js +464 -40
  288. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +119 -151
  289. package/sdk/platform/User/UserPlatformApplicationClient.js +411 -244
  290. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +235 -18
  291. package/sdk/platform/User/UserPlatformApplicationValidator.js +126 -12
  292. package/sdk/platform/User/UserPlatformModel.d.ts +1390 -101
  293. package/sdk/platform/User/UserPlatformModel.js +983 -44
  294. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +38 -47
  295. package/sdk/platform/Webhook/WebhookPlatformClient.js +137 -87
  296. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +242 -16
  297. package/sdk/platform/Webhook/WebhookPlatformModel.js +167 -18
  298. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +83 -7
  299. package/sdk/platform/Webhook/WebhookPlatformValidator.js +43 -5
  300. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +14 -21
  301. package/sdk/public/Configuration/ConfigurationPublicClient.js +46 -33
  302. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +473 -19
  303. package/sdk/public/Configuration/ConfigurationPublicModel.js +224 -16
  304. package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +42 -4
  305. package/sdk/public/Configuration/ConfigurationPublicValidator.js +21 -3
  306. package/sdk/public/Inventory/InventoryPublicClient.d.ts +48 -48
  307. package/sdk/public/Inventory/InventoryPublicClient.js +146 -98
  308. package/sdk/public/Inventory/InventoryPublicModel.d.ts +392 -21
  309. package/sdk/public/Inventory/InventoryPublicModel.js +267 -27
  310. package/sdk/public/Inventory/InventoryPublicValidator.d.ts +90 -8
  311. package/sdk/public/Inventory/InventoryPublicValidator.js +44 -4
  312. package/sdk/public/PublicClient.d.ts +19 -3
  313. package/sdk/public/PublicClient.js +16 -0
  314. package/sdk/public/PublicConfig.d.ts +27 -6
  315. package/sdk/public/PublicConfig.js +17 -1
  316. package/sdk/public/Webhook/WebhookPublicClient.d.ts +13 -11
  317. package/sdk/public/Webhook/WebhookPublicClient.js +42 -27
  318. package/sdk/public/Webhook/WebhookPublicModel.d.ts +242 -16
  319. package/sdk/public/Webhook/WebhookPublicModel.js +167 -18
  320. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +18 -3
  321. package/sdk/public/Webhook/WebhookPublicValidator.js +14 -4
@@ -1,23 +1,927 @@
1
1
  const Joi = require("joi");
2
2
 
3
- class PaymentModel {
3
+ /**
4
+ * @typedef ActiveCardPaymentGatewayResponse
5
+ * @property {CardPaymentGateway} cards - Card's payment gateway with customer id.
6
+ * @property {string} message - Human readable message.
7
+ * @property {boolean} success - Response is successful or not.
8
+ */
9
+
10
+ /**
11
+ * @typedef AddBeneficiaryDetailsOTPRequest
12
+ * @property {BankDetailsForOTP} details
13
+ * @property {string} order_id
14
+ */
15
+
16
+ /**
17
+ * @typedef AddBeneficiaryDetailsRequest
18
+ * @property {boolean} delights - True if beneficiary to be added by delights or
19
+ * False if by User
20
+ * @property {BeneficiaryModeDetails} details - Beneficiary bank details
21
+ * @property {string} order_id - Merchant Order Id
22
+ * @property {string} [otp]
23
+ * @property {string} [request_id]
24
+ * @property {string} shipment_id - Shipment Id of the respective Merchant Order Id
25
+ * @property {string} transfer_mode - Transfer Mode of the Beneficiary to be added
26
+ */
27
+
28
+ /**
29
+ * @typedef AddBeneficiaryViaOtpVerificationRequest
30
+ * @property {string} hash_key - Hash key of the beneficiary Id
31
+ * @property {string} otp - Otp sent to the given Mobile No
32
+ * @property {string} request_id - Request Id sent in
33
+ */
34
+
35
+ /**
36
+ * @typedef AddBeneficiaryViaOtpVerificationResponse
37
+ * @property {string} message - Aggregator Response of beneficicary
38
+ * @property {boolean} [success] - Response is successful or not
39
+ */
40
+
41
+ /**
42
+ * @typedef AggregatorConfigDetail
43
+ * @property {string} [api] - Payment gateway api endpoint
44
+ * @property {string} config_type - Fynd or self payment gateway
45
+ * @property {string} key - Payment gateway api key
46
+ * @property {string} [merchant_id] - Unique merchant id
47
+ * @property {string} [merchant_key] - Unique merchant key
48
+ * @property {string} [pin] - Masked pin
49
+ * @property {boolean} [sdk] - SDK
50
+ * @property {string} secret - Masked payment gateway api secret
51
+ * @property {string} [user_id] - Registered User id
52
+ * @property {string} [verify_api] - Payment gateway verify payment api endpoint
53
+ */
54
+
55
+ /**
56
+ * @typedef AggregatorRoute
57
+ * @property {string} [api_link] - Api_link
58
+ * @property {Object} [data] - Data
59
+ * @property {string} [payment_flow] - Payment_flow
60
+ * @property {string} [payment_flow_data] - Payment_flow_data
61
+ */
62
+
63
+ /**
64
+ * @typedef AggregatorsConfigDetailResponse
65
+ * @property {AggregatorConfigDetail} [ccavenue]
66
+ * @property {string} env - Environment i.e Live or Test
67
+ * @property {AggregatorConfigDetail} [juspay]
68
+ * @property {AggregatorConfigDetail} [mswipe]
69
+ * @property {AggregatorConfigDetail} [payumoney]
70
+ * @property {AggregatorConfigDetail} [razorpay]
71
+ * @property {AggregatorConfigDetail} [rupifi]
72
+ * @property {AggregatorConfigDetail} [simpl]
73
+ * @property {AggregatorConfigDetail} [stripe]
74
+ * @property {boolean} success
75
+ */
76
+
77
+ /**
78
+ * @typedef AttachCardRequest
79
+ * @property {string} card_id - Card token of payment gateway.
80
+ * @property {string} [name_on_card]
81
+ * @property {string} [nickname]
82
+ * @property {boolean} [refresh] - Refresh cache flag.
83
+ */
84
+
85
+ /**
86
+ * @typedef AttachCardsResponse
87
+ * @property {Object} data - List of cards of customer.
88
+ * @property {string} [message] - Human readable message.
89
+ * @property {boolean} success - Response is successful or not.
90
+ */
91
+
92
+ /**
93
+ * @typedef BalanceDetails
94
+ * @property {string} [currency] - Currency Code
95
+ * @property {string} [formatted_value] - Formated Amount with currency symbol
96
+ * @property {number} [value] - Payment amount
97
+ */
98
+
99
+ /**
100
+ * @typedef BankDetailsForOTP
101
+ * @property {string} account_holder
102
+ * @property {string} account_no
103
+ * @property {string} bank_name
104
+ * @property {string} branch_name
105
+ * @property {string} ifsc_code
106
+ */
107
+
108
+ /**
109
+ * @typedef BeneficiaryModeDetails
110
+ * @property {string} account_holder - Name of the Account Holder
111
+ * @property {string} account_no - Account NUmber of the Account Holder
112
+ * @property {string} [address] - Address of the User
113
+ * @property {string} bank_name - Bank Name of the Account
114
+ * @property {string} branch_name - Branch Name of the Account
115
+ * @property {string} [comment] - Remarks added by The user
116
+ * @property {string} email - Email of the Account Holder
117
+ * @property {string} ifsc_code - Ifsc Code of the Account
118
+ * @property {string} mobile - Moblie Number of the User
119
+ * @property {string} [vpa]
120
+ * @property {string} [wallet]
121
+ */
122
+
123
+ /**
124
+ * @typedef BusinessDetails
125
+ * @property {KYCAddress} [address] - Address details
126
+ * @property {string} [business_ownership_type] - Business Ownershipp type(e.g Rented)
127
+ * @property {string} [business_type] - Business Type
128
+ * @property {string} [entity_type] - Busineess Entity Type
129
+ * @property {string} [fda] - Driver License
130
+ * @property {string} [fssai] - FDA License Number
131
+ * @property {string} [gstin] - GSTIN Number
132
+ * @property {string} [name] - Business Name
133
+ * @property {string} [pan] - Pan Number
134
+ * @property {Object} [shop_and_establishment] - Shop Establishment
135
+ * @property {string} [vintage] - Vintage
136
+ */
137
+
138
+ /**
139
+ * @typedef CancelOrResendPaymentLinkRequest
140
+ * @property {string} payment_link_id - Unique id of payment link
141
+ */
142
+
143
+ /**
144
+ * @typedef CancelPaymentLinkResponse
145
+ * @property {string} message - Message
146
+ * @property {number} status_code - HTTP status code
147
+ * @property {boolean} success - Successful or failure
148
+ */
149
+
150
+ /**
151
+ * @typedef Card
152
+ * @property {string} aggregator_name - Aggregator_name
153
+ * @property {string} [card_brand] - Card_brand
154
+ * @property {string} [card_brand_image] - Card_brand_image
155
+ * @property {string} [card_fingerprint] - Card_fingerprint
156
+ * @property {string} [card_id] - Card_id
157
+ * @property {string} [card_isin] - Card_isin
158
+ * @property {string} [card_issuer] - Card_issuer
159
+ * @property {string} [card_name] - Card_name
160
+ * @property {string} [card_number] - Card_number
161
+ * @property {string} [card_reference] - Card_reference
162
+ * @property {string} [card_token] - Card_token
163
+ * @property {string} [card_type] - Card_type
164
+ * @property {boolean} [compliant_with_tokenisation_guidelines] - If card is
165
+ * tokenised or not
166
+ * @property {number} [exp_month] - Exp_month
167
+ * @property {number} [exp_year] - Exp_year
168
+ * @property {boolean} [expired] - Expired
169
+ * @property {string} [nickname] - Nickname
170
+ */
171
+
172
+ /**
173
+ * @typedef CardDetails
174
+ * @property {string} bank - Bank name
175
+ * @property {string} bank_code - Bank Code
176
+ * @property {string} card_brand - Card brand like VISA/RUPAY
177
+ * @property {string} [card_exp_month] - Card Expire Month
178
+ * @property {string} [card_exp_year] - Card Expire Year
179
+ * @property {string} card_object - Card bin or Card refrence
180
+ * @property {string} card_sub_type - Card Sub type
181
+ * @property {string} [card_token] - Card Token
182
+ * @property {string} country - Country Name
183
+ * @property {string} extended_card_type - Extended Card Type
184
+ * @property {string} id - Id
185
+ * @property {boolean} is_domestic_card - Is card domestic or international
186
+ * @property {string} [name_on_card] - Name on Card
187
+ * @property {boolean} status - Status
188
+ * @property {string} type - Card Type Credit/Debit
189
+ * @property {string} [user] - Customer/User ID
190
+ */
191
+
192
+ /**
193
+ * @typedef CardDetailsResponse
194
+ * @property {CardDetails} data - Saved Card Details
195
+ * @property {boolean} success - Response is successful or not.
196
+ */
197
+
198
+ /**
199
+ * @typedef CardPaymentGateway
200
+ * @property {string} aggregator - Payment gateway name.
201
+ * @property {string} [api] - Payment gateway CARD api endpoint
202
+ * @property {string} [customer_id] - Payment gateway customer id.
203
+ */
204
+
205
+ /**
206
+ * @typedef ChargeCustomerRequest
207
+ * @property {string} aggregator - Payment gateway name i.e Simpl, Mswipe
208
+ * @property {number} amount - Chargable amount of order.
209
+ * @property {string} order_id - Unique order id.
210
+ * @property {string} [transaction_token] - Transaction token of payment gateway.
211
+ * @property {boolean} [verified] - Already Verified flag from payment gateway i.e Mswipe
212
+ */
213
+
214
+ /**
215
+ * @typedef ChargeCustomerResponse
216
+ * @property {string} aggregator - Payment gateway name i.e Simpl, Mswipe
217
+ * @property {string} [cart_id] - Cart id of customer
218
+ * @property {string} [delivery_address_id] - Delivery adddress id of customer
219
+ * @property {string} message - Human readable message.
220
+ * @property {string} order_id - Unique order id.
221
+ * @property {string} status - Status of charged payment.
222
+ * @property {boolean} success - Response is successful or not.
223
+ */
224
+
225
+ /**
226
+ * @typedef CheckCreditResponse
227
+ * @property {CreditDetail} data - Credit summary of user.
228
+ * @property {boolean} success - Operation is successful or not.
229
+ */
230
+
231
+ /**
232
+ * @typedef CreateOrderUserData
233
+ * @property {string} [aggregator] - Aggregator name
234
+ * @property {number} [amount] - Amount
235
+ * @property {string} [callback_url] - Callback url for aggregator
236
+ * @property {string} [contact] - Mobile number
237
+ * @property {string} [currency] - Currency
238
+ * @property {string} [customer_id] - Aggregator customer id
239
+ * @property {string} [email] - Email
240
+ * @property {string} [merchant_order_id] - Merchant order id
241
+ * @property {string} [method] - Method
242
+ * @property {string} [order_id] - Aggregator order id
243
+ */
244
+
245
+ /**
246
+ * @typedef CreateOrderUserPaymentMethods
247
+ * @property {PaymentMethodsMeta} meta - Meta
248
+ * @property {string} mode - Payment mode
249
+ * @property {string} name - Payment mode name
250
+ */
251
+
252
+ /**
253
+ * @typedef CreateOrderUserRequest
254
+ * @property {string} currency - Currency
255
+ * @property {string} failure_callback_url - Failure page url
256
+ * @property {Object} [meta] - Meta
257
+ * @property {string} payment_link_id - Unique id of payment link
258
+ * @property {CreateOrderUserPaymentMethods} payment_methods - Payment method details
259
+ * @property {string} success_callback_url - Success page url
260
+ */
261
+
262
+ /**
263
+ * @typedef CreateOrderUserResponse
264
+ * @property {string} [callback_url] - Callback url for aggregator
265
+ * @property {CreateOrderUserData} [data]
266
+ * @property {string} message - Message
267
+ * @property {string} [order_id] - Merchant order id
268
+ * @property {string} [payment_confirm_url] - Payment confirm url for aggregator
269
+ * @property {number} status_code - HTTP status code
270
+ * @property {boolean} success - Successful or failure
271
+ */
272
+
273
+ /**
274
+ * @typedef CreatePaymentLinkMeta
275
+ * @property {string} amount
276
+ * @property {string} [assign_card_id]
277
+ * @property {string} cart_id
278
+ * @property {string} checkout_mode
279
+ * @property {string} pincode
280
+ */
281
+
282
+ /**
283
+ * @typedef CreatePaymentLinkRequest
284
+ * @property {number} amount - Total value of order
285
+ * @property {string} [description] - Merchant order id
286
+ * @property {string} email - Email to which the payment link is to be sent
287
+ * @property {string} external_order_id - Merchant order id
288
+ * @property {CreatePaymentLinkMeta} meta - Meta
289
+ * @property {string} mobile_number - Mobile number to which the payment link is
290
+ * to be sent
291
+ */
292
+
293
+ /**
294
+ * @typedef CreatePaymentLinkResponse
295
+ * @property {string} message - Message
296
+ * @property {string} [payment_link_id] - Unique id of payment link
297
+ * @property {string} [payment_link_url] - Url of payment link
298
+ * @property {number} [polling_timeout] - Polling request timeout
299
+ * @property {number} status_code - HTTP status code
300
+ * @property {boolean} success - Successful or failure
301
+ */
302
+
303
+ /**
304
+ * @typedef CreditDetail
305
+ * @property {boolean} is_registered - User is registered with aggregator or not.
306
+ * @property {string} signup_url - URL to which the user may redirect.
307
+ * @property {boolean} status - Operation is successful or not.
308
+ */
309
+
310
+ /**
311
+ * @typedef CreditSummary
312
+ * @property {BalanceDetails} [amount_available] - Credit summary of user.
313
+ * @property {BalanceDetails} [balance] - Credit summary of user.
314
+ * @property {string} [buyer_status] - Status from Credit aggregator's end
315
+ * @property {string} [credit_line_id] - ID at Credit aggregator's end
316
+ * @property {string} [merchant_customer_ref_id] - Unique aggregator customer id
317
+ * @property {string} [status] - Customer Credit status
318
+ * @property {string} [status_message] - Message to customer
319
+ */
320
+
321
+ /**
322
+ * @typedef CustomerCreditSummaryResponse
323
+ * @property {CreditSummary} [data] - Credit summary of user.
324
+ * @property {boolean} success - Payment confirmation updated or not.
325
+ */
326
+
327
+ /**
328
+ * @typedef CustomerOnboardingRequest
329
+ * @property {string} aggregator - Aggregator Name
330
+ * @property {BusinessDetails} [business_info] - Business summary.
331
+ * @property {DeviceDetails} [device] - Device Details.
332
+ * @property {MarketplaceInfo} [marketplace_info] - Market Place info.
333
+ * @property {string} [mcc] - Mcc
334
+ * @property {UserPersonalInfoInDetails} personal_info - Credit summary of user.
335
+ * @property {string} source - CallbackURL
336
+ */
337
+
338
+ /**
339
+ * @typedef CustomerOnboardingResponse
340
+ * @property {OnboardSummary} data - Redirect URL.
341
+ * @property {boolean} success - Status updated or not.
342
+ */
343
+
344
+ /**
345
+ * @typedef DeleteCardsResponse
346
+ * @property {string} [message] - Human readable message.
347
+ * @property {boolean} success - Response is successful or not.
348
+ */
349
+
350
+ /**
351
+ * @typedef DeletehCardRequest
352
+ * @property {string} card_id - Card token of payment gateway.
353
+ */
354
+
355
+ /**
356
+ * @typedef DeviceDetails
357
+ * @property {string} [device_make] - Device maker
358
+ * @property {string} [device_model] - Device Model
359
+ * @property {string} [device_type] - Device Type(E.g. Mobile)
360
+ * @property {string} [identification_number] - IP
361
+ * @property {string} [identifier_type] - Static value = ip
362
+ * @property {string} [os] - OS Name
363
+ * @property {string} [os_version] - OS Version
364
+ */
365
+
366
+ /**
367
+ * @typedef EpaylaterBannerData
368
+ * @property {boolean} display - Need to display banner or not
369
+ * @property {string} [message] - EPayLater message
370
+ * @property {string} [status] - Epaylater KYC status
371
+ */
372
+
373
+ /**
374
+ * @typedef EpaylaterBannerResponse
375
+ * @property {EpaylaterBannerData} data - Epaylater KYC banner details.
376
+ * @property {boolean} success - Successful or not.
377
+ */
378
+
379
+ /**
380
+ * @typedef ErrorCodeAndDescription
381
+ * @property {string} code - Error descrption code.
382
+ * @property {string} description - Error human understandable description.
383
+ */
384
+
385
+ /**
386
+ * @typedef ErrorCodeDescription
387
+ * @property {string} code - Error descrption code.
388
+ * @property {string} description - Error human understandable description.
389
+ * @property {boolean} success - Response is successful or not
390
+ */
391
+
392
+ /**
393
+ * @typedef ErrorDescription
394
+ * @property {number} [amount] - Amount paid
395
+ * @property {boolean} [cancelled] - Payment link is cancelled or not
396
+ * @property {boolean} [expired] - Payment link expired or not
397
+ * @property {boolean} [invalid_id] - Payment link id is valid or not
398
+ * @property {string} [merchant_name] - Name of merchant that created payment link
399
+ * @property {string} [merchant_order_id] - Order id
400
+ * @property {string} [msg] - Message
401
+ * @property {string} [payment_transaction_id] - Payment transaction id
402
+ */
403
+
404
+ /**
405
+ * @typedef ErrorResponse
406
+ * @property {ErrorDescription} [error]
407
+ * @property {string} message - Message
408
+ * @property {number} status_code - HTTP status code
409
+ * @property {boolean} success - Successful or failure
410
+ */
411
+
412
+ /**
413
+ * @typedef GetPaymentLinkResponse
414
+ * @property {number} [amount] - Total value of order
415
+ * @property {string} [external_order_id] - Merchant order id
416
+ * @property {string} [merchant_name] - Merchant name
417
+ * @property {string} message - Message
418
+ * @property {string} [payment_link_current_status] - Status of payment link
419
+ * @property {string} [payment_link_url] - Url of payment link
420
+ * @property {number} [polling_timeout] - Polling request timeout
421
+ * @property {number} status_code - HTTP status code
422
+ * @property {boolean} success - Successful or failure
423
+ */
424
+
425
+ /**
426
+ * @typedef HttpErrorCodeAndResponse
427
+ * @property {ErrorCodeAndDescription} error
428
+ * @property {boolean} success - Response is successful or not
429
+ */
430
+
431
+ /**
432
+ * @typedef IfscCodeResponse
433
+ * @property {string} bank_name - Bank Name Of Account
434
+ * @property {string} branch_name - Branch Name Of Account
435
+ * @property {boolean} [success] - Response is successful or not
436
+ */
437
+
438
+ /**
439
+ * @typedef IntentApp
440
+ * @property {string} [code] - Code
441
+ * @property {string} [display_name] - Display_name
442
+ * @property {PaymentModeLogo} [logos] - Logos
443
+ * @property {string} [package_name] - Package_name
444
+ */
445
+
446
+ /**
447
+ * @typedef IntentAppErrorList
448
+ * @property {string} [code] - Code
449
+ * @property {string} [package_name] - Package_name
450
+ */
451
+
452
+ /**
453
+ * @typedef KYCAddress
454
+ * @property {string} addressline1 - Address Line 1
455
+ * @property {string} [addressline2] - Address Line 2
456
+ * @property {string} city - City
457
+ * @property {string} [land_mark] - Land Mark
458
+ * @property {string} [ownership_type] - Address Owner Type
459
+ * @property {string} pincode - Pincode
460
+ * @property {string} state - State
461
+ */
462
+
463
+ /**
464
+ * @typedef LinkStatus
465
+ * @property {string} message - Message
466
+ * @property {boolean} status - Link action status
467
+ */
468
+
469
+ /**
470
+ * @typedef ListCardsResponse
471
+ * @property {Card[]} [data] - List of cards of customer.
472
+ * @property {string} message - Human readable message.
473
+ * @property {boolean} success - Response is successful or not.
474
+ */
475
+
476
+ /**
477
+ * @typedef MarketplaceInfo
478
+ * @property {string} [date_of_joining] - Date of joining
479
+ * @property {string} membership_id - Merchant id
480
+ * @property {string} name - Name of store
481
+ */
482
+
483
+ /**
484
+ * @typedef NotFoundResourceError
485
+ * @property {string} code - Bad Request Data
486
+ * @property {string} description - Not Found
487
+ * @property {boolean} success - Response is successful or not
488
+ */
489
+
490
+ /**
491
+ * @typedef OnboardSummary
492
+ * @property {string} redirect_url - URL to which the user may redirect.
493
+ * @property {Object} session - User Session
494
+ * @property {boolean} status - Operation Status
495
+ */
496
+
497
+ /**
498
+ * @typedef OrderBeneficiaryDetails
499
+ * @property {string} account_holder - Account Holder Name
500
+ * @property {string} account_no - Account Number
501
+ * @property {string} address - Address of User
502
+ * @property {string} bank_name - Bank Name Of Account
503
+ * @property {string} beneficiary_id - Benenficiary Id
504
+ * @property {string} [branch_name] - Branch Name Of Account
505
+ * @property {string} [comment] - Remarks
506
+ * @property {string} created_on - Creation Date of Beneficiary
507
+ * @property {string} [delights_user_name] - User Id Who filled the Beneficiary
508
+ * @property {string} display_name - Display Name Of Account
509
+ * @property {string} email - EMail of User
510
+ * @property {number} id -
511
+ * @property {string} ifsc_code - Ifsc Code Of Account
512
+ * @property {boolean} is_active - Boolean Flag whether Beneficiary set or not
513
+ * @property {string} [mobile] - MObile no of User
514
+ * @property {string} modified_on - MOdification Date of Beneficiary
515
+ * @property {string} subtitle - SHort Title Of Account
516
+ * @property {string} title - Title Of Account
517
+ * @property {string} transfer_mode - Transfer Mode Of Account
518
+ */
519
+
520
+ /**
521
+ * @typedef OrderBeneficiaryResponse
522
+ * @property {OrderBeneficiaryDetails[]} [beneficiaries] - All Beneficiaries Of An Order
523
+ * @property {boolean} [show_beneficiary_details] - Show beneficiary details or not.
524
+ */
525
+
526
+ /**
527
+ * @typedef OutstandingOrderDetailsResponse
528
+ * @property {Object[]} [data] - Dict containing the outstanding order details
529
+ * @property {string} [message] - Message
530
+ * @property {number} status_code - HTTP Status code
531
+ * @property {boolean} success - Response is successful or not.
532
+ */
533
+
534
+ /**
535
+ * @typedef PaidOrderDetailsResponse
536
+ * @property {Object[]} [data] - Dict containing the paid order details
537
+ * @property {string} [message] - Message
538
+ * @property {number} status_code - HTTP Status code
539
+ * @property {boolean} success - Response is successful or not.
540
+ */
541
+
542
+ /**
543
+ * @typedef PaymentFlow
544
+ * @property {AggregatorRoute} [ajiodhan] - Ajiodhan
545
+ * @property {AggregatorRoute} [bqr_razorpay] - BQR_Razorpay
546
+ * @property {AggregatorRoute} [ccavenue] - Ccavenue
547
+ * @property {AggregatorRoute} [epaylater] - Epaylater
548
+ * @property {AggregatorRoute} [fynd] - Fynd
549
+ * @property {AggregatorRoute} [jiopay] - Jiopay
550
+ * @property {AggregatorRoute} [juspay] - Juspay
551
+ * @property {AggregatorRoute} [mswipe] - Mswipe
552
+ * @property {AggregatorRoute} [payubiz] - Payubiz
553
+ * @property {AggregatorRoute} [razorpay] - Razorpay
554
+ * @property {AggregatorRoute} [rupifi] - Rupifi
555
+ * @property {AggregatorRoute} [simpl] - Simpl
556
+ * @property {AggregatorRoute} [stripe] - Stripe
557
+ * @property {AggregatorRoute} [upi_razorpay] - UPI_Razorpay
558
+ */
559
+
560
+ /**
561
+ * @typedef PaymentInitializationRequest
562
+ * @property {string} aggregator - Payment gateway name
563
+ * @property {number} amount - Payable amount.
564
+ * @property {string} contact - Customer valid mobile number
565
+ * @property {string} currency - Currency code.
566
+ * @property {string} customer_id - Payment gateway customer id.
567
+ * @property {string} [device_id] - EDC machine Unique Identifier
568
+ * @property {string} email - Customer valid email
569
+ * @property {string} merchant_order_id - Unique fynd order id
570
+ * @property {string} method - Payment method
571
+ * @property {string} order_id - Payment gateway order id
572
+ * @property {string} [razorpay_payment_id] - Payment gateway payment id
573
+ * @property {number} [timeout] - Payment polling timeout if not recieved response
574
+ * @property {string} [vpa] - Customer vpa address
575
+ */
576
+
577
+ /**
578
+ * @typedef PaymentInitializationResponse
579
+ * @property {string} aggregator - Payment gateway name
580
+ * @property {string} [aggregator_order_id] - Payment order id
581
+ * @property {number} [amount] - Payable amount.
582
+ * @property {string} [bqr_image] - Bharath qr image url.
583
+ * @property {string} [currency] - Currency code.
584
+ * @property {string} [customer_id] - Payment gateway customer id.
585
+ * @property {string} [device_id] - EDC machine Unique Identifier
586
+ * @property {string} merchant_order_id - Order id
587
+ * @property {string} method - Payment method
588
+ * @property {string} polling_url - Polling url.
589
+ * @property {string} [razorpay_payment_id] - Payment id.
590
+ * @property {string} [status] - Status of payment.
591
+ * @property {boolean} success - Response is successful or not.
592
+ * @property {number} [timeout] - Timeout.
593
+ * @property {string} [upi_poll_url] - UPI poll url.
594
+ * @property {string} [virtual_id] - Payment virtual address.
595
+ * @property {string} [vpa] - Customer vpa address
596
+ */
597
+
598
+ /**
599
+ * @typedef PaymentMethodsMeta
600
+ * @property {string} merchant_code - Merchant code
601
+ * @property {string} payment_gateway - Payment gateway name
602
+ * @property {string} payment_identifier - Payment identifier
603
+ */
604
+
605
+ /**
606
+ * @typedef PaymentModeList
607
+ * @property {string} aggregator_name - Aggregator_name
608
+ * @property {string} [card_brand] - Card_brand
609
+ * @property {string} [card_brand_image] - Card_brand_image
610
+ * @property {string} [card_fingerprint] - Card_fingerprint
611
+ * @property {string} [card_id] - Card_id
612
+ * @property {string} [card_isin] - Card_isin
613
+ * @property {string} [card_issuer] - Card_issuer
614
+ * @property {string} [card_name] - Card_name
615
+ * @property {string} [card_number] - Card_number
616
+ * @property {string} [card_reference] - Card_reference
617
+ * @property {string} [card_token] - Card_token
618
+ * @property {string} [card_type] - Card_type
619
+ * @property {number} [cod_limit] - Cod limit
620
+ * @property {number} [cod_limit_per_order] - Cod limit per order
621
+ * @property {string} [code] - Code
622
+ * @property {boolean} [compliant_with_tokenisation_guidelines] - If card is
623
+ * tokenised or not
624
+ * @property {string} [display_name] - Display name
625
+ * @property {number} [display_priority] - Dispaly Priority
626
+ * @property {number} [exp_month] - Exp_month
627
+ * @property {number} [exp_year] - Exp_year
628
+ * @property {boolean} [expired] - Expired
629
+ * @property {string} [fynd_vpa] - Fynd_vpa
630
+ * @property {IntentApp[]} [intent_app] - Intent_app
631
+ * @property {IntentAppErrorList[]} [intent_app_error_dict_list] -
632
+ * Intent_app_error_dict_list
633
+ * @property {string[]} [intent_app_error_list] - Intent_app_error_list
634
+ * @property {boolean} [intent_flow] - Intent_flow
635
+ * @property {PaymentModeLogo} [logo_url] - Logo
636
+ * @property {string} [merchant_code] - Merchant code
637
+ * @property {string} [name] - Name
638
+ * @property {string} [nickname] - Nickname
639
+ * @property {number} [remaining_limit] - Remaining limit
640
+ * @property {number} [retry_count] - Retry_count
641
+ * @property {number} [timeout] - Timeout
642
+ */
643
+
644
+ /**
645
+ * @typedef PaymentModeLogo
646
+ * @property {string} large - Large
647
+ * @property {string} small - Smalll
648
+ */
649
+
650
+ /**
651
+ * @typedef PaymentModeRouteResponse
652
+ * @property {PaymentOptionAndFlow} payment_options - Payment_options
653
+ * @property {boolean} success - Response is successful or not
654
+ */
655
+
656
+ /**
657
+ * @typedef PaymentOptionAndFlow
658
+ * @property {PaymentFlow} payment_flows - Payment_flows
659
+ * @property {RootPaymentMode[]} payment_option - Payment options
660
+ */
661
+
662
+ /**
663
+ * @typedef PaymentStatusUpdateRequest
664
+ * @property {string} aggregator - Payment gateway name
665
+ * @property {number} amount - Payable amount.
666
+ * @property {string} contact - Customer valid mobile number
667
+ * @property {string} currency - Currency code.
668
+ * @property {string} customer_id - Payment gateway customer id.
669
+ * @property {string} [device_id] - EDC machine Unique Identifier
670
+ * @property {string} email - Customer valid email
671
+ * @property {string} merchant_order_id - Unique fynd order id
672
+ * @property {string} merchant_transaction_id - Unique fynd transaction id
673
+ * @property {string} method - Payment method
674
+ * @property {string} order_id - Payment gateway order id
675
+ * @property {string} status - Status of payment.
676
+ * @property {string} [vpa] - Customer vpa address
677
+ */
678
+
679
+ /**
680
+ * @typedef PaymentStatusUpdateResponse
681
+ * @property {string} aggregator_name - Payment gateway name
682
+ * @property {string} [redirect_url] - Redirect url
683
+ * @property {boolean} retry - Response is successful or not.
684
+ * @property {string} status - Payment status
685
+ * @property {boolean} [success] - Response is successful or not
686
+ */
687
+
688
+ /**
689
+ * @typedef PollingPaymentLinkResponse
690
+ * @property {string} [aggregator_name] - Aggregator name
691
+ * @property {number} [amount] - Amount
692
+ * @property {number} [http_status] - HTTP status code
693
+ * @property {string} [message] - Message
694
+ * @property {string} [order_id] - Fynd order id
695
+ * @property {string} [payment_link_id] - Payment link id
696
+ * @property {string} [redirect_url] - Url to redirect to
697
+ * @property {string} [status] - Status of payment link
698
+ * @property {number} [status_code] - HTTP status code
699
+ * @property {boolean} [success] - Successful or failure
700
+ */
701
+
702
+ /**
703
+ * @typedef RedirectToAggregatorResponse
704
+ * @property {RedirectURL} data - Redirect URL.
705
+ * @property {boolean} success - Status updated or not.
706
+ */
707
+
708
+ /**
709
+ * @typedef RedirectURL
710
+ * @property {string} signup_url - URL to which the user may redirect.
711
+ * @property {boolean} status - Aggregator's Operation is successful or not.
712
+ */
713
+
714
+ /**
715
+ * @typedef RefundAccountResponse
716
+ * @property {Object} [data] - Refund account data.
717
+ * @property {boolean} [is_verified_flag]
718
+ * @property {string} message - Response message
719
+ * @property {boolean} success - Success or failure flag.
720
+ */
721
+
722
+ /**
723
+ * @typedef renderHTMLRequest
724
+ * @property {string} base64_html - Base64 encoded html string
725
+ * @property {string} [returntype] - Return Type of API
726
+ */
727
+
728
+ /**
729
+ * @typedef renderHTMLResponse
730
+ * @property {string} html - HTML string
731
+ */
732
+
733
+ /**
734
+ * @typedef ResendOrCancelPaymentRequest
735
+ * @property {string} [device_id] - EDC machine Unique Identifier
736
+ * @property {string} order_id - Unique order id
737
+ * @property {string} request_type - Either resend or cancel
738
+ */
739
+
740
+ /**
741
+ * @typedef ResendOrCancelPaymentResponse
742
+ * @property {LinkStatus} data - Data about link action status.
743
+ * @property {boolean} success - Response is successful or not.
744
+ */
745
+
746
+ /**
747
+ * @typedef ResendPaymentLinkResponse
748
+ * @property {string} message - Message
749
+ * @property {number} [polling_timeout] - Polling request timeout
750
+ * @property {number} status_code - HTTP status code
751
+ * @property {boolean} success - Successful or failure
752
+ */
753
+
754
+ /**
755
+ * @typedef RootPaymentMode
756
+ * @property {boolean} [add_card_enabled] - Annonymous card flag
757
+ * @property {string} [aggregator_name] - Dispaly Priority
758
+ * @property {boolean} [anonymous_enable] - Annonymous card flag
759
+ * @property {string} display_name - Payment mode display name
760
+ * @property {number} display_priority - Dispaly Priority
761
+ * @property {boolean} [is_pay_by_card_pl] - This flag will be true in case of
762
+ * Payment link payment through card
763
+ * @property {PaymentModeList[]} [list] - Payment mode
764
+ * @property {string} name - Payment mode name
765
+ * @property {boolean} [save_card] - Card save or not
766
+ */
767
+
768
+ /**
769
+ * @typedef RupifiBannerData
770
+ * @property {string} [kyc_url] - Rupifi KYC banner url.
771
+ * @property {string} [status] - Rupifi KYC status
772
+ */
773
+
774
+ /**
775
+ * @typedef RupifiBannerResponse
776
+ * @property {RupifiBannerData} data - Rupifi KYC banner details.
777
+ * @property {boolean} success - Successful or not.
778
+ */
779
+
780
+ /**
781
+ * @typedef SetDefaultBeneficiaryRequest
782
+ * @property {string} beneficiary_id - Beneficiary Hash Id of the beneficiary added
783
+ * @property {string} order_id - Merchant Order Id
784
+ */
785
+
786
+ /**
787
+ * @typedef SetDefaultBeneficiaryResponse
788
+ * @property {boolean} is_beneficiary_set - Boolean Flag whether Beneficiary set or not
789
+ * @property {boolean} [success] - Response is successful or not
790
+ */
791
+
792
+ /**
793
+ * @typedef TransferItemsDetails
794
+ * @property {string} [display_name] - Beneficiary Display Name
795
+ * @property {number} id -
796
+ * @property {string} logo_large - Beneficiary large Logo
797
+ * @property {string} logo_small - Beneficiary small Logo
798
+ * @property {string} name - Beneficiary Name
799
+ */
800
+
801
+ /**
802
+ * @typedef TransferModeDetails
803
+ * @property {string} display_name - Beneficiary Mode Name
804
+ * @property {TransferItemsDetails[]} [items] - Beneficiary Mode Items
805
+ */
806
+
807
+ /**
808
+ * @typedef TransferModeResponse
809
+ * @property {TransferModeDetails[]} data - Response Object
810
+ */
811
+
812
+ /**
813
+ * @typedef UpdateRefundTransferModeRequest
814
+ * @property {boolean} enable - True for enabling the Transfer Mode
815
+ * @property {string} transfer_mode - Transfer Mode of the Beneficiary to be added
816
+ */
817
+
818
+ /**
819
+ * @typedef UpdateRefundTransferModeResponse
820
+ * @property {boolean} [success] - Response is successful or not
821
+ */
822
+
823
+ /**
824
+ * @typedef UserPersonalInfoInDetails
825
+ * @property {KYCAddress} address_as_per_id - Address details
826
+ * @property {string} dob - DOB
827
+ * @property {string} [driving_license] - Driver License
828
+ * @property {string} [email] - Email
829
+ * @property {boolean} email_verified - Is Email Verified or not
830
+ * @property {string} [fathers_name] - Father's Name
831
+ * @property {string} first_name - First Name
832
+ * @property {string} [gender] - Gender
833
+ * @property {string} [last_name] - Last Name
834
+ * @property {string} [middle_name] - Middle Name
835
+ * @property {boolean} mobile_verified - Is Mobile Verified or not
836
+ * @property {string} [mothers_name] - Mother's Name
837
+ * @property {string} [pan] - Pan Number
838
+ * @property {string} [passport] - Passport
839
+ * @property {string} phone - Email
840
+ * @property {string} [voter_id] - Voter ID Number
841
+ */
842
+
843
+ /**
844
+ * @typedef ValidateCustomerRequest
845
+ * @property {string} aggregator - Payment gateway name in camel case i.e Simpl, Rupifi
846
+ * @property {Object} [billing_address] - Extra meta fields.
847
+ * @property {Object} [delivery_address] - Extra meta fields.
848
+ * @property {Object} [merchant_params] - Extra meta fields.
849
+ * @property {Object[]} [order_items] - Extra meta fields.
850
+ * @property {string} [payload] - Hashed payload string.
851
+ * @property {string} phone_number - User mobile number without country code.
852
+ * @property {number} transaction_amount_in_paise - Payable amount in paise
853
+ */
854
+
855
+ /**
856
+ * @typedef ValidateCustomerResponse
857
+ * @property {Object} data - Payment gateway response data
858
+ * @property {string} message - Error or success message.
859
+ * @property {boolean} success - Response is successful or not
860
+ */
861
+
862
+ /**
863
+ * @typedef ValidateUPI
864
+ * @property {string} customer_name - Customer Bank
865
+ * @property {boolean} is_valid - Boolean is true or false.
866
+ * @property {string} status - VALID or INVALID
867
+ * @property {string} upi_vpa - UPI ID
868
+ */
869
+
870
+ /**
871
+ * @typedef ValidateVPARequest
872
+ * @property {string} upi_vpa - UPI ID
873
+ */
874
+
875
+ /**
876
+ * @typedef ValidateVPAResponse
877
+ * @property {ValidateUPI} data - Data about UPI ID validate.
878
+ * @property {boolean} success - Response is successful or not.
879
+ */
880
+
881
+ /**
882
+ * @typedef WalletOtpRequest
883
+ * @property {string} country_code - Country Code of the Mobile Number
884
+ * @property {string} mobile - Wallet Moblie Number of the User
885
+ */
886
+
887
+ /**
888
+ * @typedef WalletOtpResponse
889
+ * @property {string} is_verified_flag - Boolean Flag whether OTP Validation is
890
+ * already done or not
891
+ * @property {string} request_id - Request id
892
+ * @property {boolean} [success] - Response is successful or not
893
+ */
894
+
895
+ /**
896
+ * @typedef WrongOtpError
897
+ * @property {string} description - Wrong OTP Code
898
+ * @property {boolean} is_verified_flag - Vefified flag.
899
+ * @property {string} success - Response is successful or not
900
+ */
901
+
902
+ class PaymentApplicationModel {
903
+ /** @returns {ActiveCardPaymentGatewayResponse} */
4
904
  static ActiveCardPaymentGatewayResponse() {
5
905
  return Joi.object({
6
- cards: PaymentModel.CardPaymentGateway().required(),
906
+ cards: PaymentApplicationModel.CardPaymentGateway().required(),
7
907
  message: Joi.string().allow("").required(),
8
908
  success: Joi.boolean().required(),
9
909
  });
10
910
  }
911
+
912
+ /** @returns {AddBeneficiaryDetailsOTPRequest} */
11
913
  static AddBeneficiaryDetailsOTPRequest() {
12
914
  return Joi.object({
13
- details: PaymentModel.BankDetailsForOTP().required(),
915
+ details: PaymentApplicationModel.BankDetailsForOTP().required(),
14
916
  order_id: Joi.string().allow("").required(),
15
917
  });
16
918
  }
919
+
920
+ /** @returns {AddBeneficiaryDetailsRequest} */
17
921
  static AddBeneficiaryDetailsRequest() {
18
922
  return Joi.object({
19
923
  delights: Joi.boolean().required(),
20
- details: PaymentModel.BeneficiaryModeDetails().required(),
924
+ details: PaymentApplicationModel.BeneficiaryModeDetails().required(),
21
925
  order_id: Joi.string().allow("").required(),
22
926
  otp: Joi.string().allow(""),
23
927
  request_id: Joi.string().allow(""),
@@ -25,6 +929,8 @@ class PaymentModel {
25
929
  transfer_mode: Joi.string().allow("").required(),
26
930
  });
27
931
  }
932
+
933
+ /** @returns {AddBeneficiaryViaOtpVerificationRequest} */
28
934
  static AddBeneficiaryViaOtpVerificationRequest() {
29
935
  return Joi.object({
30
936
  hash_key: Joi.string().allow("").required(),
@@ -32,12 +938,16 @@ class PaymentModel {
32
938
  request_id: Joi.string().allow("").required(),
33
939
  });
34
940
  }
941
+
942
+ /** @returns {AddBeneficiaryViaOtpVerificationResponse} */
35
943
  static AddBeneficiaryViaOtpVerificationResponse() {
36
944
  return Joi.object({
37
945
  message: Joi.string().allow("").required(),
38
946
  success: Joi.boolean(),
39
947
  });
40
948
  }
949
+
950
+ /** @returns {AggregatorConfigDetail} */
41
951
  static AggregatorConfigDetail() {
42
952
  return Joi.object({
43
953
  api: Joi.string().allow("").allow(null),
@@ -52,6 +962,8 @@ class PaymentModel {
52
962
  verify_api: Joi.string().allow("").allow(null),
53
963
  });
54
964
  }
965
+
966
+ /** @returns {AggregatorRoute} */
55
967
  static AggregatorRoute() {
56
968
  return Joi.object({
57
969
  api_link: Joi.string().allow("").allow(null),
@@ -60,20 +972,24 @@ class PaymentModel {
60
972
  payment_flow_data: Joi.string().allow("").allow(null),
61
973
  });
62
974
  }
975
+
976
+ /** @returns {AggregatorsConfigDetailResponse} */
63
977
  static AggregatorsConfigDetailResponse() {
64
978
  return Joi.object({
65
- ccavenue: PaymentModel.AggregatorConfigDetail(),
979
+ ccavenue: PaymentApplicationModel.AggregatorConfigDetail(),
66
980
  env: Joi.string().allow("").required(),
67
- juspay: PaymentModel.AggregatorConfigDetail(),
68
- mswipe: PaymentModel.AggregatorConfigDetail(),
69
- payumoney: PaymentModel.AggregatorConfigDetail(),
70
- razorpay: PaymentModel.AggregatorConfigDetail(),
71
- rupifi: PaymentModel.AggregatorConfigDetail(),
72
- simpl: PaymentModel.AggregatorConfigDetail(),
73
- stripe: PaymentModel.AggregatorConfigDetail(),
981
+ juspay: PaymentApplicationModel.AggregatorConfigDetail(),
982
+ mswipe: PaymentApplicationModel.AggregatorConfigDetail(),
983
+ payumoney: PaymentApplicationModel.AggregatorConfigDetail(),
984
+ razorpay: PaymentApplicationModel.AggregatorConfigDetail(),
985
+ rupifi: PaymentApplicationModel.AggregatorConfigDetail(),
986
+ simpl: PaymentApplicationModel.AggregatorConfigDetail(),
987
+ stripe: PaymentApplicationModel.AggregatorConfigDetail(),
74
988
  success: Joi.boolean().required(),
75
989
  });
76
990
  }
991
+
992
+ /** @returns {AttachCardRequest} */
77
993
  static AttachCardRequest() {
78
994
  return Joi.object({
79
995
  card_id: Joi.string().allow("").allow(null).required(),
@@ -82,6 +998,8 @@ class PaymentModel {
82
998
  refresh: Joi.boolean().allow(null),
83
999
  });
84
1000
  }
1001
+
1002
+ /** @returns {AttachCardsResponse} */
85
1003
  static AttachCardsResponse() {
86
1004
  return Joi.object({
87
1005
  data: Joi.any().required(),
@@ -89,6 +1007,8 @@ class PaymentModel {
89
1007
  success: Joi.boolean().required(),
90
1008
  });
91
1009
  }
1010
+
1011
+ /** @returns {BalanceDetails} */
92
1012
  static BalanceDetails() {
93
1013
  return Joi.object({
94
1014
  currency: Joi.string().allow("").allow(null),
@@ -96,6 +1016,8 @@ class PaymentModel {
96
1016
  value: Joi.number().allow(null),
97
1017
  });
98
1018
  }
1019
+
1020
+ /** @returns {BankDetailsForOTP} */
99
1021
  static BankDetailsForOTP() {
100
1022
  return Joi.object({
101
1023
  account_holder: Joi.string().allow("").required(),
@@ -105,6 +1027,8 @@ class PaymentModel {
105
1027
  ifsc_code: Joi.string().allow("").required(),
106
1028
  });
107
1029
  }
1030
+
1031
+ /** @returns {BeneficiaryModeDetails} */
108
1032
  static BeneficiaryModeDetails() {
109
1033
  return Joi.object({
110
1034
  account_holder: Joi.string().allow("").required(),
@@ -120,9 +1044,11 @@ class PaymentModel {
120
1044
  wallet: Joi.string().allow("").allow(null),
121
1045
  });
122
1046
  }
1047
+
1048
+ /** @returns {BusinessDetails} */
123
1049
  static BusinessDetails() {
124
1050
  return Joi.object({
125
- address: PaymentModel.KYCAddress(),
1051
+ address: PaymentApplicationModel.KYCAddress(),
126
1052
  business_ownership_type: Joi.string().allow("").allow(null),
127
1053
  business_type: Joi.string().allow("").allow(null),
128
1054
  entity_type: Joi.string().allow("").allow(null),
@@ -135,11 +1061,15 @@ class PaymentModel {
135
1061
  vintage: Joi.string().allow("").allow(null),
136
1062
  });
137
1063
  }
1064
+
1065
+ /** @returns {CancelOrResendPaymentLinkRequest} */
138
1066
  static CancelOrResendPaymentLinkRequest() {
139
1067
  return Joi.object({
140
1068
  payment_link_id: Joi.string().allow("").required(),
141
1069
  });
142
1070
  }
1071
+
1072
+ /** @returns {CancelPaymentLinkResponse} */
143
1073
  static CancelPaymentLinkResponse() {
144
1074
  return Joi.object({
145
1075
  message: Joi.string().allow("").required(),
@@ -147,6 +1077,8 @@ class PaymentModel {
147
1077
  success: Joi.boolean().required(),
148
1078
  });
149
1079
  }
1080
+
1081
+ /** @returns {Card} */
150
1082
  static Card() {
151
1083
  return Joi.object({
152
1084
  aggregator_name: Joi.string().allow("").required(),
@@ -168,6 +1100,8 @@ class PaymentModel {
168
1100
  nickname: Joi.string().allow("").allow(null),
169
1101
  });
170
1102
  }
1103
+
1104
+ /** @returns {CardDetails} */
171
1105
  static CardDetails() {
172
1106
  return Joi.object({
173
1107
  bank: Joi.string().allow("").required(),
@@ -188,12 +1122,16 @@ class PaymentModel {
188
1122
  user: Joi.string().allow(""),
189
1123
  });
190
1124
  }
1125
+
1126
+ /** @returns {CardDetailsResponse} */
191
1127
  static CardDetailsResponse() {
192
1128
  return Joi.object({
193
- data: PaymentModel.CardDetails().required(),
1129
+ data: PaymentApplicationModel.CardDetails().required(),
194
1130
  success: Joi.boolean().required(),
195
1131
  });
196
1132
  }
1133
+
1134
+ /** @returns {CardPaymentGateway} */
197
1135
  static CardPaymentGateway() {
198
1136
  return Joi.object({
199
1137
  aggregator: Joi.string().allow("").required(),
@@ -201,6 +1139,8 @@ class PaymentModel {
201
1139
  customer_id: Joi.string().allow("").allow(null),
202
1140
  });
203
1141
  }
1142
+
1143
+ /** @returns {ChargeCustomerRequest} */
204
1144
  static ChargeCustomerRequest() {
205
1145
  return Joi.object({
206
1146
  aggregator: Joi.string().allow("").required(),
@@ -210,6 +1150,8 @@ class PaymentModel {
210
1150
  verified: Joi.boolean().allow(null),
211
1151
  });
212
1152
  }
1153
+
1154
+ /** @returns {ChargeCustomerResponse} */
213
1155
  static ChargeCustomerResponse() {
214
1156
  return Joi.object({
215
1157
  aggregator: Joi.string().allow("").required(),
@@ -221,12 +1163,16 @@ class PaymentModel {
221
1163
  success: Joi.boolean().required(),
222
1164
  });
223
1165
  }
1166
+
1167
+ /** @returns {CheckCreditResponse} */
224
1168
  static CheckCreditResponse() {
225
1169
  return Joi.object({
226
- data: PaymentModel.CreditDetail().required(),
1170
+ data: PaymentApplicationModel.CreditDetail().required(),
227
1171
  success: Joi.boolean().required(),
228
1172
  });
229
1173
  }
1174
+
1175
+ /** @returns {CreateOrderUserData} */
230
1176
  static CreateOrderUserData() {
231
1177
  return Joi.object({
232
1178
  aggregator: Joi.string().allow("").allow(null),
@@ -241,27 +1187,33 @@ class PaymentModel {
241
1187
  order_id: Joi.string().allow("").allow(null),
242
1188
  });
243
1189
  }
1190
+
1191
+ /** @returns {CreateOrderUserPaymentMethods} */
244
1192
  static CreateOrderUserPaymentMethods() {
245
1193
  return Joi.object({
246
- meta: PaymentModel.PaymentMethodsMeta().required(),
1194
+ meta: PaymentApplicationModel.PaymentMethodsMeta().required(),
247
1195
  mode: Joi.string().allow("").required(),
248
1196
  name: Joi.string().allow("").required(),
249
1197
  });
250
1198
  }
1199
+
1200
+ /** @returns {CreateOrderUserRequest} */
251
1201
  static CreateOrderUserRequest() {
252
1202
  return Joi.object({
253
1203
  currency: Joi.string().allow("").required(),
254
1204
  failure_callback_url: Joi.string().allow("").required(),
255
1205
  meta: Joi.any().allow(null),
256
1206
  payment_link_id: Joi.string().allow("").required(),
257
- payment_methods: PaymentModel.CreateOrderUserPaymentMethods().required(),
1207
+ payment_methods: PaymentApplicationModel.CreateOrderUserPaymentMethods().required(),
258
1208
  success_callback_url: Joi.string().allow("").required(),
259
1209
  });
260
1210
  }
1211
+
1212
+ /** @returns {CreateOrderUserResponse} */
261
1213
  static CreateOrderUserResponse() {
262
1214
  return Joi.object({
263
1215
  callback_url: Joi.string().allow("").allow(null),
264
- data: PaymentModel.CreateOrderUserData(),
1216
+ data: PaymentApplicationModel.CreateOrderUserData(),
265
1217
  message: Joi.string().allow("").required(),
266
1218
  order_id: Joi.string().allow("").allow(null),
267
1219
  payment_confirm_url: Joi.string().allow("").allow(null),
@@ -269,6 +1221,8 @@ class PaymentModel {
269
1221
  success: Joi.boolean().required(),
270
1222
  });
271
1223
  }
1224
+
1225
+ /** @returns {CreatePaymentLinkMeta} */
272
1226
  static CreatePaymentLinkMeta() {
273
1227
  return Joi.object({
274
1228
  amount: Joi.string().allow("").required(),
@@ -278,16 +1232,20 @@ class PaymentModel {
278
1232
  pincode: Joi.string().allow("").required(),
279
1233
  });
280
1234
  }
1235
+
1236
+ /** @returns {CreatePaymentLinkRequest} */
281
1237
  static CreatePaymentLinkRequest() {
282
1238
  return Joi.object({
283
1239
  amount: Joi.number().required(),
284
1240
  description: Joi.string().allow("").allow(null),
285
1241
  email: Joi.string().allow("").required(),
286
1242
  external_order_id: Joi.string().allow("").required(),
287
- meta: PaymentModel.CreatePaymentLinkMeta().required(),
1243
+ meta: PaymentApplicationModel.CreatePaymentLinkMeta().required(),
288
1244
  mobile_number: Joi.string().allow("").required(),
289
1245
  });
290
1246
  }
1247
+
1248
+ /** @returns {CreatePaymentLinkResponse} */
291
1249
  static CreatePaymentLinkResponse() {
292
1250
  return Joi.object({
293
1251
  message: Joi.string().allow("").required(),
@@ -298,6 +1256,8 @@ class PaymentModel {
298
1256
  success: Joi.boolean().required(),
299
1257
  });
300
1258
  }
1259
+
1260
+ /** @returns {CreditDetail} */
301
1261
  static CreditDetail() {
302
1262
  return Joi.object({
303
1263
  is_registered: Joi.boolean().required(),
@@ -305,10 +1265,12 @@ class PaymentModel {
305
1265
  status: Joi.boolean().required(),
306
1266
  });
307
1267
  }
1268
+
1269
+ /** @returns {CreditSummary} */
308
1270
  static CreditSummary() {
309
1271
  return Joi.object({
310
- amount_available: PaymentModel.BalanceDetails(),
311
- balance: PaymentModel.BalanceDetails(),
1272
+ amount_available: PaymentApplicationModel.BalanceDetails(),
1273
+ balance: PaymentApplicationModel.BalanceDetails(),
312
1274
  buyer_status: Joi.string().allow("").allow(null),
313
1275
  credit_line_id: Joi.string().allow("").allow(null),
314
1276
  merchant_customer_ref_id: Joi.string().allow("").allow(null),
@@ -316,40 +1278,52 @@ class PaymentModel {
316
1278
  status_message: Joi.string().allow("").allow(null),
317
1279
  });
318
1280
  }
1281
+
1282
+ /** @returns {CustomerCreditSummaryResponse} */
319
1283
  static CustomerCreditSummaryResponse() {
320
1284
  return Joi.object({
321
- data: PaymentModel.CreditSummary(),
1285
+ data: PaymentApplicationModel.CreditSummary(),
322
1286
  success: Joi.boolean().required(),
323
1287
  });
324
1288
  }
1289
+
1290
+ /** @returns {CustomerOnboardingRequest} */
325
1291
  static CustomerOnboardingRequest() {
326
1292
  return Joi.object({
327
1293
  aggregator: Joi.string().allow("").required(),
328
- business_info: PaymentModel.BusinessDetails(),
329
- device: PaymentModel.DeviceDetails(),
330
- marketplace_info: PaymentModel.MarketplaceInfo(),
1294
+ business_info: PaymentApplicationModel.BusinessDetails(),
1295
+ device: PaymentApplicationModel.DeviceDetails(),
1296
+ marketplace_info: PaymentApplicationModel.MarketplaceInfo(),
331
1297
  mcc: Joi.string().allow("").allow(null),
332
- personal_info: PaymentModel.UserPersonalInfoInDetails().required(),
1298
+ personal_info: PaymentApplicationModel.UserPersonalInfoInDetails().required(),
333
1299
  source: Joi.string().allow("").required(),
334
1300
  });
335
1301
  }
1302
+
1303
+ /** @returns {CustomerOnboardingResponse} */
336
1304
  static CustomerOnboardingResponse() {
337
1305
  return Joi.object({
338
- data: PaymentModel.OnboardSummary().required(),
1306
+ data: PaymentApplicationModel.OnboardSummary().required(),
339
1307
  success: Joi.boolean().required(),
340
1308
  });
341
1309
  }
1310
+
1311
+ /** @returns {DeleteCardsResponse} */
342
1312
  static DeleteCardsResponse() {
343
1313
  return Joi.object({
344
1314
  message: Joi.string().allow("").allow(null),
345
1315
  success: Joi.boolean().required(),
346
1316
  });
347
1317
  }
1318
+
1319
+ /** @returns {DeletehCardRequest} */
348
1320
  static DeletehCardRequest() {
349
1321
  return Joi.object({
350
1322
  card_id: Joi.string().allow("").allow(null).required(),
351
1323
  });
352
1324
  }
1325
+
1326
+ /** @returns {DeviceDetails} */
353
1327
  static DeviceDetails() {
354
1328
  return Joi.object({
355
1329
  device_make: Joi.string().allow("").allow(null),
@@ -361,6 +1335,8 @@ class PaymentModel {
361
1335
  os_version: Joi.string().allow("").allow(null),
362
1336
  });
363
1337
  }
1338
+
1339
+ /** @returns {EpaylaterBannerData} */
364
1340
  static EpaylaterBannerData() {
365
1341
  return Joi.object({
366
1342
  display: Joi.boolean().required(),
@@ -368,18 +1344,24 @@ class PaymentModel {
368
1344
  status: Joi.string().allow(""),
369
1345
  });
370
1346
  }
1347
+
1348
+ /** @returns {EpaylaterBannerResponse} */
371
1349
  static EpaylaterBannerResponse() {
372
1350
  return Joi.object({
373
- data: PaymentModel.EpaylaterBannerData().required(),
1351
+ data: PaymentApplicationModel.EpaylaterBannerData().required(),
374
1352
  success: Joi.boolean().required(),
375
1353
  });
376
1354
  }
1355
+
1356
+ /** @returns {ErrorCodeAndDescription} */
377
1357
  static ErrorCodeAndDescription() {
378
1358
  return Joi.object({
379
1359
  code: Joi.string().allow("").required(),
380
1360
  description: Joi.string().allow("").required(),
381
1361
  });
382
1362
  }
1363
+
1364
+ /** @returns {ErrorCodeDescription} */
383
1365
  static ErrorCodeDescription() {
384
1366
  return Joi.object({
385
1367
  code: Joi.string().allow("").required(),
@@ -387,6 +1369,8 @@ class PaymentModel {
387
1369
  success: Joi.boolean().required(),
388
1370
  });
389
1371
  }
1372
+
1373
+ /** @returns {ErrorDescription} */
390
1374
  static ErrorDescription() {
391
1375
  return Joi.object({
392
1376
  amount: Joi.number().allow(null),
@@ -399,14 +1383,18 @@ class PaymentModel {
399
1383
  payment_transaction_id: Joi.string().allow("").allow(null),
400
1384
  });
401
1385
  }
1386
+
1387
+ /** @returns {ErrorResponse} */
402
1388
  static ErrorResponse() {
403
1389
  return Joi.object({
404
- error: PaymentModel.ErrorDescription(),
1390
+ error: PaymentApplicationModel.ErrorDescription(),
405
1391
  message: Joi.string().allow("").required(),
406
1392
  status_code: Joi.number().required(),
407
1393
  success: Joi.boolean().required(),
408
1394
  });
409
1395
  }
1396
+
1397
+ /** @returns {GetPaymentLinkResponse} */
410
1398
  static GetPaymentLinkResponse() {
411
1399
  return Joi.object({
412
1400
  amount: Joi.number().allow(null),
@@ -420,12 +1408,16 @@ class PaymentModel {
420
1408
  success: Joi.boolean().required(),
421
1409
  });
422
1410
  }
1411
+
1412
+ /** @returns {HttpErrorCodeAndResponse} */
423
1413
  static HttpErrorCodeAndResponse() {
424
1414
  return Joi.object({
425
- error: PaymentModel.ErrorCodeAndDescription().required(),
1415
+ error: PaymentApplicationModel.ErrorCodeAndDescription().required(),
426
1416
  success: Joi.boolean().required(),
427
1417
  });
428
1418
  }
1419
+
1420
+ /** @returns {IfscCodeResponse} */
429
1421
  static IfscCodeResponse() {
430
1422
  return Joi.object({
431
1423
  bank_name: Joi.string().allow("").required(),
@@ -433,20 +1425,26 @@ class PaymentModel {
433
1425
  success: Joi.boolean(),
434
1426
  });
435
1427
  }
1428
+
1429
+ /** @returns {IntentApp} */
436
1430
  static IntentApp() {
437
1431
  return Joi.object({
438
1432
  code: Joi.string().allow("").allow(null),
439
1433
  display_name: Joi.string().allow("").allow(null),
440
- logos: PaymentModel.PaymentModeLogo(),
1434
+ logos: PaymentApplicationModel.PaymentModeLogo(),
441
1435
  package_name: Joi.string().allow("").allow(null),
442
1436
  });
443
1437
  }
1438
+
1439
+ /** @returns {IntentAppErrorList} */
444
1440
  static IntentAppErrorList() {
445
1441
  return Joi.object({
446
1442
  code: Joi.string().allow("").allow(null),
447
1443
  package_name: Joi.string().allow("").allow(null),
448
1444
  });
449
1445
  }
1446
+
1447
+ /** @returns {KYCAddress} */
450
1448
  static KYCAddress() {
451
1449
  return Joi.object({
452
1450
  addressline1: Joi.string().allow("").required(),
@@ -458,19 +1456,25 @@ class PaymentModel {
458
1456
  state: Joi.string().allow("").required(),
459
1457
  });
460
1458
  }
1459
+
1460
+ /** @returns {LinkStatus} */
461
1461
  static LinkStatus() {
462
1462
  return Joi.object({
463
1463
  message: Joi.string().allow("").required(),
464
1464
  status: Joi.boolean().required(),
465
1465
  });
466
1466
  }
1467
+
1468
+ /** @returns {ListCardsResponse} */
467
1469
  static ListCardsResponse() {
468
1470
  return Joi.object({
469
- data: Joi.array().items(PaymentModel.Card()),
1471
+ data: Joi.array().items(PaymentApplicationModel.Card()),
470
1472
  message: Joi.string().allow("").required(),
471
1473
  success: Joi.boolean().required(),
472
1474
  });
473
1475
  }
1476
+
1477
+ /** @returns {MarketplaceInfo} */
474
1478
  static MarketplaceInfo() {
475
1479
  return Joi.object({
476
1480
  date_of_joining: Joi.string().allow("").allow(null),
@@ -478,6 +1482,8 @@ class PaymentModel {
478
1482
  name: Joi.string().allow("").required(),
479
1483
  });
480
1484
  }
1485
+
1486
+ /** @returns {NotFoundResourceError} */
481
1487
  static NotFoundResourceError() {
482
1488
  return Joi.object({
483
1489
  code: Joi.string().allow("").required(),
@@ -485,6 +1491,8 @@ class PaymentModel {
485
1491
  success: Joi.boolean().required(),
486
1492
  });
487
1493
  }
1494
+
1495
+ /** @returns {OnboardSummary} */
488
1496
  static OnboardSummary() {
489
1497
  return Joi.object({
490
1498
  redirect_url: Joi.string().allow("").required(),
@@ -492,6 +1500,8 @@ class PaymentModel {
492
1500
  status: Joi.boolean().required(),
493
1501
  });
494
1502
  }
1503
+
1504
+ /** @returns {OrderBeneficiaryDetails} */
495
1505
  static OrderBeneficiaryDetails() {
496
1506
  return Joi.object({
497
1507
  account_holder: Joi.string().allow("").required(),
@@ -515,12 +1525,18 @@ class PaymentModel {
515
1525
  transfer_mode: Joi.string().allow("").required(),
516
1526
  });
517
1527
  }
1528
+
1529
+ /** @returns {OrderBeneficiaryResponse} */
518
1530
  static OrderBeneficiaryResponse() {
519
1531
  return Joi.object({
520
- beneficiaries: Joi.array().items(PaymentModel.OrderBeneficiaryDetails()),
1532
+ beneficiaries: Joi.array().items(
1533
+ PaymentApplicationModel.OrderBeneficiaryDetails()
1534
+ ),
521
1535
  show_beneficiary_details: Joi.boolean(),
522
1536
  });
523
1537
  }
1538
+
1539
+ /** @returns {OutstandingOrderDetailsResponse} */
524
1540
  static OutstandingOrderDetailsResponse() {
525
1541
  return Joi.object({
526
1542
  data: Joi.array().items(Joi.any()),
@@ -529,6 +1545,8 @@ class PaymentModel {
529
1545
  success: Joi.boolean().required(),
530
1546
  });
531
1547
  }
1548
+
1549
+ /** @returns {PaidOrderDetailsResponse} */
532
1550
  static PaidOrderDetailsResponse() {
533
1551
  return Joi.object({
534
1552
  data: Joi.array().items(Joi.any()),
@@ -537,24 +1555,28 @@ class PaymentModel {
537
1555
  success: Joi.boolean().required(),
538
1556
  });
539
1557
  }
1558
+
1559
+ /** @returns {PaymentFlow} */
540
1560
  static PaymentFlow() {
541
1561
  return Joi.object({
542
- ajiodhan: PaymentModel.AggregatorRoute(),
543
- bqr_razorpay: PaymentModel.AggregatorRoute(),
544
- ccavenue: PaymentModel.AggregatorRoute(),
545
- epaylater: PaymentModel.AggregatorRoute(),
546
- fynd: PaymentModel.AggregatorRoute(),
547
- jiopay: PaymentModel.AggregatorRoute(),
548
- juspay: PaymentModel.AggregatorRoute(),
549
- mswipe: PaymentModel.AggregatorRoute(),
550
- payubiz: PaymentModel.AggregatorRoute(),
551
- razorpay: PaymentModel.AggregatorRoute(),
552
- rupifi: PaymentModel.AggregatorRoute(),
553
- simpl: PaymentModel.AggregatorRoute(),
554
- stripe: PaymentModel.AggregatorRoute(),
555
- upi_razorpay: PaymentModel.AggregatorRoute(),
1562
+ ajiodhan: PaymentApplicationModel.AggregatorRoute(),
1563
+ bqr_razorpay: PaymentApplicationModel.AggregatorRoute(),
1564
+ ccavenue: PaymentApplicationModel.AggregatorRoute(),
1565
+ epaylater: PaymentApplicationModel.AggregatorRoute(),
1566
+ fynd: PaymentApplicationModel.AggregatorRoute(),
1567
+ jiopay: PaymentApplicationModel.AggregatorRoute(),
1568
+ juspay: PaymentApplicationModel.AggregatorRoute(),
1569
+ mswipe: PaymentApplicationModel.AggregatorRoute(),
1570
+ payubiz: PaymentApplicationModel.AggregatorRoute(),
1571
+ razorpay: PaymentApplicationModel.AggregatorRoute(),
1572
+ rupifi: PaymentApplicationModel.AggregatorRoute(),
1573
+ simpl: PaymentApplicationModel.AggregatorRoute(),
1574
+ stripe: PaymentApplicationModel.AggregatorRoute(),
1575
+ upi_razorpay: PaymentApplicationModel.AggregatorRoute(),
556
1576
  });
557
1577
  }
1578
+
1579
+ /** @returns {PaymentInitializationRequest} */
558
1580
  static PaymentInitializationRequest() {
559
1581
  return Joi.object({
560
1582
  aggregator: Joi.string().allow("").required(),
@@ -572,6 +1594,8 @@ class PaymentModel {
572
1594
  vpa: Joi.string().allow("").allow(null),
573
1595
  });
574
1596
  }
1597
+
1598
+ /** @returns {PaymentInitializationResponse} */
575
1599
  static PaymentInitializationResponse() {
576
1600
  return Joi.object({
577
1601
  aggregator: Joi.string().allow("").required(),
@@ -593,6 +1617,8 @@ class PaymentModel {
593
1617
  vpa: Joi.string().allow("").allow(null),
594
1618
  });
595
1619
  }
1620
+
1621
+ /** @returns {PaymentMethodsMeta} */
596
1622
  static PaymentMethodsMeta() {
597
1623
  return Joi.object({
598
1624
  merchant_code: Joi.string().allow("").required(),
@@ -600,6 +1626,8 @@ class PaymentModel {
600
1626
  payment_identifier: Joi.string().allow("").required(),
601
1627
  });
602
1628
  }
1629
+
1630
+ /** @returns {PaymentModeList} */
603
1631
  static PaymentModeList() {
604
1632
  return Joi.object({
605
1633
  aggregator_name: Joi.string().allow("").required(),
@@ -624,13 +1652,13 @@ class PaymentModel {
624
1652
  exp_year: Joi.number().allow(null),
625
1653
  expired: Joi.boolean().allow(null),
626
1654
  fynd_vpa: Joi.string().allow("").allow(null),
627
- intent_app: Joi.array().items(PaymentModel.IntentApp()),
1655
+ intent_app: Joi.array().items(PaymentApplicationModel.IntentApp()),
628
1656
  intent_app_error_dict_list: Joi.array().items(
629
- PaymentModel.IntentAppErrorList()
1657
+ PaymentApplicationModel.IntentAppErrorList()
630
1658
  ),
631
1659
  intent_app_error_list: Joi.array().items(Joi.string().allow("")),
632
1660
  intent_flow: Joi.boolean().allow(null),
633
- logo_url: PaymentModel.PaymentModeLogo(),
1661
+ logo_url: PaymentApplicationModel.PaymentModeLogo(),
634
1662
  merchant_code: Joi.string().allow("").allow(null),
635
1663
  name: Joi.string().allow("").allow(null),
636
1664
  nickname: Joi.string().allow("").allow(null),
@@ -639,26 +1667,34 @@ class PaymentModel {
639
1667
  timeout: Joi.number().allow(null),
640
1668
  });
641
1669
  }
1670
+
1671
+ /** @returns {PaymentModeLogo} */
642
1672
  static PaymentModeLogo() {
643
1673
  return Joi.object({
644
1674
  large: Joi.string().allow("").required(),
645
1675
  small: Joi.string().allow("").required(),
646
1676
  });
647
1677
  }
1678
+
1679
+ /** @returns {PaymentModeRouteResponse} */
648
1680
  static PaymentModeRouteResponse() {
649
1681
  return Joi.object({
650
- payment_options: PaymentModel.PaymentOptionAndFlow().required(),
1682
+ payment_options: PaymentApplicationModel.PaymentOptionAndFlow().required(),
651
1683
  success: Joi.boolean().required(),
652
1684
  });
653
1685
  }
1686
+
1687
+ /** @returns {PaymentOptionAndFlow} */
654
1688
  static PaymentOptionAndFlow() {
655
1689
  return Joi.object({
656
- payment_flows: PaymentModel.PaymentFlow().required(),
1690
+ payment_flows: PaymentApplicationModel.PaymentFlow().required(),
657
1691
  payment_option: Joi.array()
658
- .items(PaymentModel.RootPaymentMode())
1692
+ .items(PaymentApplicationModel.RootPaymentMode())
659
1693
  .required(),
660
1694
  });
661
1695
  }
1696
+
1697
+ /** @returns {PaymentStatusUpdateRequest} */
662
1698
  static PaymentStatusUpdateRequest() {
663
1699
  return Joi.object({
664
1700
  aggregator: Joi.string().allow("").required(),
@@ -676,6 +1712,8 @@ class PaymentModel {
676
1712
  vpa: Joi.string().allow(""),
677
1713
  });
678
1714
  }
1715
+
1716
+ /** @returns {PaymentStatusUpdateResponse} */
679
1717
  static PaymentStatusUpdateResponse() {
680
1718
  return Joi.object({
681
1719
  aggregator_name: Joi.string().allow("").required(),
@@ -685,6 +1723,8 @@ class PaymentModel {
685
1723
  success: Joi.boolean().allow(null),
686
1724
  });
687
1725
  }
1726
+
1727
+ /** @returns {PollingPaymentLinkResponse} */
688
1728
  static PollingPaymentLinkResponse() {
689
1729
  return Joi.object({
690
1730
  aggregator_name: Joi.string().allow("").allow(null),
@@ -699,18 +1739,24 @@ class PaymentModel {
699
1739
  success: Joi.boolean().allow(null),
700
1740
  });
701
1741
  }
1742
+
1743
+ /** @returns {RedirectToAggregatorResponse} */
702
1744
  static RedirectToAggregatorResponse() {
703
1745
  return Joi.object({
704
- data: PaymentModel.RedirectURL().required(),
1746
+ data: PaymentApplicationModel.RedirectURL().required(),
705
1747
  success: Joi.boolean().required(),
706
1748
  });
707
1749
  }
1750
+
1751
+ /** @returns {RedirectURL} */
708
1752
  static RedirectURL() {
709
1753
  return Joi.object({
710
1754
  signup_url: Joi.string().allow("").required(),
711
1755
  status: Joi.boolean().required(),
712
1756
  });
713
1757
  }
1758
+
1759
+ /** @returns {RefundAccountResponse} */
714
1760
  static RefundAccountResponse() {
715
1761
  return Joi.object({
716
1762
  data: Joi.any(),
@@ -719,17 +1765,23 @@ class PaymentModel {
719
1765
  success: Joi.boolean().required(),
720
1766
  });
721
1767
  }
1768
+
1769
+ /** @returns {renderHTMLRequest} */
722
1770
  static renderHTMLRequest() {
723
1771
  return Joi.object({
724
1772
  base64_html: Joi.string().allow("").required(),
725
1773
  returntype: Joi.string().allow("").allow(null),
726
1774
  });
727
1775
  }
1776
+
1777
+ /** @returns {renderHTMLResponse} */
728
1778
  static renderHTMLResponse() {
729
1779
  return Joi.object({
730
1780
  html: Joi.string().allow("").required(),
731
1781
  });
732
1782
  }
1783
+
1784
+ /** @returns {ResendOrCancelPaymentRequest} */
733
1785
  static ResendOrCancelPaymentRequest() {
734
1786
  return Joi.object({
735
1787
  device_id: Joi.string().allow("").allow(null),
@@ -737,12 +1789,16 @@ class PaymentModel {
737
1789
  request_type: Joi.string().allow("").required(),
738
1790
  });
739
1791
  }
1792
+
1793
+ /** @returns {ResendOrCancelPaymentResponse} */
740
1794
  static ResendOrCancelPaymentResponse() {
741
1795
  return Joi.object({
742
- data: PaymentModel.LinkStatus().required(),
1796
+ data: PaymentApplicationModel.LinkStatus().required(),
743
1797
  success: Joi.boolean().required(),
744
1798
  });
745
1799
  }
1800
+
1801
+ /** @returns {ResendPaymentLinkResponse} */
746
1802
  static ResendPaymentLinkResponse() {
747
1803
  return Joi.object({
748
1804
  message: Joi.string().allow("").required(),
@@ -751,6 +1807,8 @@ class PaymentModel {
751
1807
  success: Joi.boolean().required(),
752
1808
  });
753
1809
  }
1810
+
1811
+ /** @returns {RootPaymentMode} */
754
1812
  static RootPaymentMode() {
755
1813
  return Joi.object({
756
1814
  add_card_enabled: Joi.boolean().allow(null),
@@ -759,35 +1817,45 @@ class PaymentModel {
759
1817
  display_name: Joi.string().allow("").required(),
760
1818
  display_priority: Joi.number().required(),
761
1819
  is_pay_by_card_pl: Joi.boolean().allow(null),
762
- list: Joi.array().items(PaymentModel.PaymentModeList()),
1820
+ list: Joi.array().items(PaymentApplicationModel.PaymentModeList()),
763
1821
  name: Joi.string().allow("").required(),
764
1822
  save_card: Joi.boolean().allow(null),
765
1823
  });
766
1824
  }
1825
+
1826
+ /** @returns {RupifiBannerData} */
767
1827
  static RupifiBannerData() {
768
1828
  return Joi.object({
769
1829
  kyc_url: Joi.string().allow(""),
770
1830
  status: Joi.string().allow(""),
771
1831
  });
772
1832
  }
1833
+
1834
+ /** @returns {RupifiBannerResponse} */
773
1835
  static RupifiBannerResponse() {
774
1836
  return Joi.object({
775
- data: PaymentModel.RupifiBannerData().required(),
1837
+ data: PaymentApplicationModel.RupifiBannerData().required(),
776
1838
  success: Joi.boolean().required(),
777
1839
  });
778
1840
  }
1841
+
1842
+ /** @returns {SetDefaultBeneficiaryRequest} */
779
1843
  static SetDefaultBeneficiaryRequest() {
780
1844
  return Joi.object({
781
1845
  beneficiary_id: Joi.string().allow("").required(),
782
1846
  order_id: Joi.string().allow("").required(),
783
1847
  });
784
1848
  }
1849
+
1850
+ /** @returns {SetDefaultBeneficiaryResponse} */
785
1851
  static SetDefaultBeneficiaryResponse() {
786
1852
  return Joi.object({
787
1853
  is_beneficiary_set: Joi.boolean().required(),
788
1854
  success: Joi.boolean(),
789
1855
  });
790
1856
  }
1857
+
1858
+ /** @returns {TransferItemsDetails} */
791
1859
  static TransferItemsDetails() {
792
1860
  return Joi.object({
793
1861
  display_name: Joi.string().allow(""),
@@ -797,31 +1865,43 @@ class PaymentModel {
797
1865
  name: Joi.string().allow("").required(),
798
1866
  });
799
1867
  }
1868
+
1869
+ /** @returns {TransferModeDetails} */
800
1870
  static TransferModeDetails() {
801
1871
  return Joi.object({
802
1872
  display_name: Joi.string().allow("").required(),
803
- items: Joi.array().items(PaymentModel.TransferItemsDetails()),
1873
+ items: Joi.array().items(PaymentApplicationModel.TransferItemsDetails()),
804
1874
  });
805
1875
  }
1876
+
1877
+ /** @returns {TransferModeResponse} */
806
1878
  static TransferModeResponse() {
807
1879
  return Joi.object({
808
- data: Joi.array().items(PaymentModel.TransferModeDetails()).required(),
1880
+ data: Joi.array()
1881
+ .items(PaymentApplicationModel.TransferModeDetails())
1882
+ .required(),
809
1883
  });
810
1884
  }
1885
+
1886
+ /** @returns {UpdateRefundTransferModeRequest} */
811
1887
  static UpdateRefundTransferModeRequest() {
812
1888
  return Joi.object({
813
1889
  enable: Joi.boolean().required(),
814
1890
  transfer_mode: Joi.string().allow("").required(),
815
1891
  });
816
1892
  }
1893
+
1894
+ /** @returns {UpdateRefundTransferModeResponse} */
817
1895
  static UpdateRefundTransferModeResponse() {
818
1896
  return Joi.object({
819
1897
  success: Joi.boolean(),
820
1898
  });
821
1899
  }
1900
+
1901
+ /** @returns {UserPersonalInfoInDetails} */
822
1902
  static UserPersonalInfoInDetails() {
823
1903
  return Joi.object({
824
- address_as_per_id: PaymentModel.KYCAddress().required(),
1904
+ address_as_per_id: PaymentApplicationModel.KYCAddress().required(),
825
1905
  dob: Joi.string().allow("").allow(null).required(),
826
1906
  driving_license: Joi.string().allow("").allow(null),
827
1907
  email: Joi.string().allow("").allow(null),
@@ -839,6 +1919,8 @@ class PaymentModel {
839
1919
  voter_id: Joi.string().allow("").allow(null),
840
1920
  });
841
1921
  }
1922
+
1923
+ /** @returns {ValidateCustomerRequest} */
842
1924
  static ValidateCustomerRequest() {
843
1925
  return Joi.object({
844
1926
  aggregator: Joi.string().allow("").required(),
@@ -851,6 +1933,8 @@ class PaymentModel {
851
1933
  transaction_amount_in_paise: Joi.number().required(),
852
1934
  });
853
1935
  }
1936
+
1937
+ /** @returns {ValidateCustomerResponse} */
854
1938
  static ValidateCustomerResponse() {
855
1939
  return Joi.object({
856
1940
  data: Joi.any().required(),
@@ -858,6 +1942,8 @@ class PaymentModel {
858
1942
  success: Joi.boolean().required(),
859
1943
  });
860
1944
  }
1945
+
1946
+ /** @returns {ValidateUPI} */
861
1947
  static ValidateUPI() {
862
1948
  return Joi.object({
863
1949
  customer_name: Joi.string().allow("").required(),
@@ -866,23 +1952,31 @@ class PaymentModel {
866
1952
  upi_vpa: Joi.string().allow("").required(),
867
1953
  });
868
1954
  }
1955
+
1956
+ /** @returns {ValidateVPARequest} */
869
1957
  static ValidateVPARequest() {
870
1958
  return Joi.object({
871
1959
  upi_vpa: Joi.string().allow("").required(),
872
1960
  });
873
1961
  }
1962
+
1963
+ /** @returns {ValidateVPAResponse} */
874
1964
  static ValidateVPAResponse() {
875
1965
  return Joi.object({
876
- data: PaymentModel.ValidateUPI().required(),
1966
+ data: PaymentApplicationModel.ValidateUPI().required(),
877
1967
  success: Joi.boolean().required(),
878
1968
  });
879
1969
  }
1970
+
1971
+ /** @returns {WalletOtpRequest} */
880
1972
  static WalletOtpRequest() {
881
1973
  return Joi.object({
882
1974
  country_code: Joi.string().allow("").required(),
883
1975
  mobile: Joi.string().allow("").required(),
884
1976
  });
885
1977
  }
1978
+
1979
+ /** @returns {WalletOtpResponse} */
886
1980
  static WalletOtpResponse() {
887
1981
  return Joi.object({
888
1982
  is_verified_flag: Joi.string().allow("").required(),
@@ -890,6 +1984,8 @@ class PaymentModel {
890
1984
  success: Joi.boolean(),
891
1985
  });
892
1986
  }
1987
+
1988
+ /** @returns {WrongOtpError} */
893
1989
  static WrongOtpError() {
894
1990
  return Joi.object({
895
1991
  description: Joi.string().allow("").required(),
@@ -898,4 +1994,4 @@ class PaymentModel {
898
1994
  });
899
1995
  }
900
1996
  }
901
- module.exports = PaymentModel;
1997
+ module.exports = PaymentApplicationModel;