@gofynd/fdk-client-javascript 1.0.2 → 1.0.4

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 (346) hide show
  1. package/README.md +31 -2
  2. package/index.d.ts +4 -4
  3. package/index.js +9 -10
  4. package/package.json +14 -14
  5. package/sdk/APIClient.d.ts +11 -0
  6. package/sdk/APIClient.js +35 -0
  7. package/sdk/Client.d.ts +6 -0
  8. package/sdk/Client.js +17 -0
  9. package/sdk/Config.d.ts +9 -0
  10. package/sdk/Config.js +17 -0
  11. package/sdk/application/Cart/CartApplicationClient.d.ts +243 -243
  12. package/sdk/application/Cart/CartApplicationClient.js +595 -594
  13. package/sdk/application/Cart/CartApplicationModel.d.ts +64 -63
  14. package/sdk/application/Cart/CartApplicationModel.js +490 -885
  15. package/sdk/application/Cart/CartApplicationValidator.d.ts +17 -17
  16. package/sdk/application/Cart/CartApplicationValidator.js +98 -98
  17. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +358 -358
  18. package/sdk/application/Catalog/CatalogApplicationClient.js +1079 -1078
  19. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +90 -90
  20. package/sdk/application/Catalog/CatalogApplicationModel.js +683 -1249
  21. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +19 -19
  22. package/sdk/application/Catalog/CatalogApplicationValidator.js +110 -110
  23. package/sdk/application/Common/CommonApplicationClient.d.ts +13 -13
  24. package/sdk/application/Common/CommonApplicationClient.js +43 -42
  25. package/sdk/application/Common/CommonApplicationModel.d.ts +12 -12
  26. package/sdk/application/Common/CommonApplicationModel.js +83 -160
  27. package/sdk/application/Common/CommonApplicationValidator.d.ts +1 -1
  28. package/sdk/application/Common/CommonApplicationValidator.js +6 -6
  29. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +11 -11
  30. package/sdk/application/Communication/CommunicationApplicationClient.js +32 -31
  31. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +6 -6
  32. package/sdk/application/Communication/CommunicationApplicationModel.js +38 -83
  33. package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +1 -1
  34. package/sdk/application/Communication/CommunicationApplicationValidator.js +4 -4
  35. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +116 -116
  36. package/sdk/application/Configuration/ConfigurationApplicationClient.js +350 -349
  37. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +85 -85
  38. package/sdk/application/Configuration/ConfigurationApplicationModel.js +480 -851
  39. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +8 -8
  40. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +33 -33
  41. package/sdk/application/Content/ContentApplicationClient.d.ts +67 -67
  42. package/sdk/application/Content/ContentApplicationClient.js +216 -215
  43. package/sdk/application/Content/ContentApplicationModel.d.ts +76 -76
  44. package/sdk/application/Content/ContentApplicationModel.js +468 -884
  45. package/sdk/application/Content/ContentApplicationValidator.d.ts +5 -5
  46. package/sdk/application/Content/ContentApplicationValidator.js +24 -24
  47. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +25 -25
  48. package/sdk/application/FileStorage/FileStorageApplicationClient.js +65 -64
  49. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +13 -13
  50. package/sdk/application/FileStorage/FileStorageApplicationModel.js +86 -169
  51. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +1 -1
  52. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +7 -7
  53. package/sdk/application/Lead/LeadApplicationClient.d.ts +24 -24
  54. package/sdk/application/Lead/LeadApplicationClient.js +109 -108
  55. package/sdk/application/Lead/LeadApplicationModel.d.ts +35 -35
  56. package/sdk/application/Lead/LeadApplicationModel.js +267 -474
  57. package/sdk/application/Lead/LeadApplicationValidator.d.ts +2 -2
  58. package/sdk/application/Lead/LeadApplicationValidator.js +11 -11
  59. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +31 -22
  60. package/sdk/application/Logistic/LogisticApplicationClient.js +115 -49
  61. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +17 -14
  62. package/sdk/application/Logistic/LogisticApplicationModel.js +133 -201
  63. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +3 -2
  64. package/sdk/application/Logistic/LogisticApplicationValidator.js +14 -9
  65. package/sdk/application/Order/OrderApplicationClient.d.ts +85 -85
  66. package/sdk/application/Order/OrderApplicationClient.js +247 -246
  67. package/sdk/application/Order/OrderApplicationModel.d.ts +50 -50
  68. package/sdk/application/Order/OrderApplicationModel.js +361 -656
  69. package/sdk/application/Order/OrderApplicationValidator.d.ts +7 -7
  70. package/sdk/application/Order/OrderApplicationValidator.js +28 -28
  71. package/sdk/application/Payment/PaymentApplicationClient.d.ts +318 -318
  72. package/sdk/application/Payment/PaymentApplicationClient.js +781 -780
  73. package/sdk/application/Payment/PaymentApplicationModel.d.ts +72 -72
  74. package/sdk/application/Payment/PaymentApplicationModel.js +570 -1038
  75. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +28 -28
  76. package/sdk/application/Payment/PaymentApplicationValidator.js +107 -107
  77. package/sdk/application/PosCart/PosCartApplicationClient.d.ts +254 -254
  78. package/sdk/application/PosCart/PosCartApplicationClient.js +646 -645
  79. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +64 -63
  80. package/sdk/application/PosCart/PosCartApplicationModel.js +476 -870
  81. package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +18 -18
  82. package/sdk/application/PosCart/PosCartApplicationValidator.js +103 -103
  83. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +27 -27
  84. package/sdk/application/Rewards/RewardsApplicationClient.js +122 -121
  85. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +14 -14
  86. package/sdk/application/Rewards/RewardsApplicationModel.js +96 -191
  87. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +3 -3
  88. package/sdk/application/Rewards/RewardsApplicationValidator.js +12 -12
  89. package/sdk/application/Share/ShareApplicationClient.d.ts +37 -37
  90. package/sdk/application/Share/ShareApplicationClient.js +94 -93
  91. package/sdk/application/Share/ShareApplicationModel.d.ts +8 -8
  92. package/sdk/application/Share/ShareApplicationModel.js +63 -123
  93. package/sdk/application/Share/ShareApplicationValidator.d.ts +4 -4
  94. package/sdk/application/Share/ShareApplicationValidator.js +12 -12
  95. package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -8
  96. package/sdk/application/Theme/ThemeApplicationClient.js +38 -37
  97. package/sdk/application/Theme/ThemeApplicationModel.d.ts +34 -34
  98. package/sdk/application/Theme/ThemeApplicationModel.js +190 -336
  99. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +1 -1
  100. package/sdk/application/Theme/ThemeApplicationValidator.js +4 -4
  101. package/sdk/application/User/UserApplicationClient.d.ts +280 -280
  102. package/sdk/application/User/UserApplicationClient.js +619 -618
  103. package/sdk/application/User/UserApplicationModel.d.ts +79 -72
  104. package/sdk/application/User/UserApplicationModel.js +440 -689
  105. package/sdk/application/User/UserApplicationValidator.d.ts +24 -24
  106. package/sdk/application/User/UserApplicationValidator.js +89 -89
  107. package/sdk/common/AxiosHelper.js +18 -7
  108. package/sdk/constructUrl.d.ts +5 -0
  109. package/sdk/constructUrl.js +13 -0
  110. package/sdk/index.d.ts +3 -0
  111. package/sdk/index.js +5 -0
  112. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +51 -51
  113. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +182 -180
  114. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +6 -6
  115. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +21 -21
  116. package/sdk/platform/Analytics/AnalyticsPlatformClient.js +5 -4
  117. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +11 -11
  118. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +95 -178
  119. package/sdk/platform/Analytics/AnalyticsPlatformValidator.js +1 -0
  120. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +10 -10
  121. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +44 -43
  122. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +10 -10
  123. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +50 -89
  124. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -1
  125. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +7 -6
  126. package/sdk/platform/Billing/BillingPlatformClient.d.ts +60 -60
  127. package/sdk/platform/Billing/BillingPlatformClient.js +184 -183
  128. package/sdk/platform/Billing/BillingPlatformModel.d.ts +40 -40
  129. package/sdk/platform/Billing/BillingPlatformModel.js +342 -668
  130. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +8 -8
  131. package/sdk/platform/Billing/BillingPlatformValidator.js +26 -25
  132. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +192 -165
  133. package/sdk/platform/Cart/CartPlatformApplicationClient.js +686 -510
  134. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +14 -11
  135. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +77 -61
  136. package/sdk/platform/Cart/CartPlatformModel.d.ts +84 -83
  137. package/sdk/platform/Cart/CartPlatformModel.js +676 -1206
  138. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +632 -632
  139. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1558 -1556
  140. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +40 -40
  141. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +175 -175
  142. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +688 -688
  143. package/sdk/platform/Catalog/CatalogPlatformClient.js +1556 -1559
  144. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +291 -291
  145. package/sdk/platform/Catalog/CatalogPlatformModel.js +2133 -3910
  146. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +66 -66
  147. package/sdk/platform/Catalog/CatalogPlatformValidator.js +229 -228
  148. package/sdk/platform/Common/CommonPlatformClient.d.ts +12 -12
  149. package/sdk/platform/Common/CommonPlatformClient.js +40 -51
  150. package/sdk/platform/Common/CommonPlatformModel.d.ts +12 -12
  151. package/sdk/platform/Common/CommonPlatformModel.js +83 -160
  152. package/sdk/platform/Common/CommonPlatformValidator.d.ts +1 -1
  153. package/sdk/platform/Common/CommonPlatformValidator.js +7 -6
  154. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +326 -326
  155. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +945 -943
  156. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +30 -30
  157. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +88 -88
  158. package/sdk/platform/Communication/CommunicationPlatformClient.js +4 -3
  159. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +67 -67
  160. package/sdk/platform/Communication/CommunicationPlatformModel.js +522 -974
  161. package/sdk/platform/Communication/CommunicationPlatformValidator.js +1 -0
  162. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +55 -55
  163. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +217 -216
  164. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +27 -27
  165. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +279 -542
  166. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +7 -7
  167. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +25 -24
  168. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +163 -153
  169. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +617 -552
  170. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +22 -21
  171. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +70 -64
  172. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +125 -125
  173. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +348 -347
  174. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +148 -146
  175. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +854 -1508
  176. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -9
  177. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +39 -38
  178. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +524 -534
  179. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1287 -1346
  180. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +49 -50
  181. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +153 -159
  182. package/sdk/platform/Content/ContentPlatformModel.d.ts +78 -78
  183. package/sdk/platform/Content/ContentPlatformModel.js +485 -907
  184. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +65 -65
  185. package/sdk/platform/Discount/DiscountPlatformClient.js +219 -218
  186. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +7 -7
  187. package/sdk/platform/Discount/DiscountPlatformModel.js +60 -121
  188. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +6 -6
  189. package/sdk/platform/Discount/DiscountPlatformValidator.js +30 -29
  190. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +25 -25
  191. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +83 -61
  192. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +1 -1
  193. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +9 -9
  194. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +53 -53
  195. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +147 -125
  196. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +13 -13
  197. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +86 -169
  198. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +3 -3
  199. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +12 -11
  200. package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +63 -63
  201. package/sdk/platform/Inventory/InventoryPlatformClient.js +231 -230
  202. package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +30 -30
  203. package/sdk/platform/Inventory/InventoryPlatformModel.js +497 -964
  204. package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +7 -7
  205. package/sdk/platform/Inventory/InventoryPlatformValidator.js +29 -28
  206. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +73 -73
  207. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +203 -201
  208. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +7 -7
  209. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +29 -29
  210. package/sdk/platform/Lead/LeadPlatformClient.d.ts +80 -80
  211. package/sdk/platform/Lead/LeadPlatformClient.js +215 -214
  212. package/sdk/platform/Lead/LeadPlatformModel.d.ts +35 -35
  213. package/sdk/platform/Lead/LeadPlatformModel.js +267 -474
  214. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +6 -6
  215. package/sdk/platform/Lead/LeadPlatformValidator.js +25 -24
  216. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +10 -10
  217. package/sdk/platform/Order/OrderPlatformApplicationClient.js +68 -66
  218. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -1
  219. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +7 -7
  220. package/sdk/platform/Order/OrderPlatformClient.d.ts +357 -357
  221. package/sdk/platform/Order/OrderPlatformClient.js +1046 -1033
  222. package/sdk/platform/Order/OrderPlatformModel.d.ts +198 -196
  223. package/sdk/platform/Order/OrderPlatformModel.js +1575 -2861
  224. package/sdk/platform/Order/OrderPlatformValidator.d.ts +32 -32
  225. package/sdk/platform/Order/OrderPlatformValidator.js +161 -160
  226. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +3 -1
  227. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +1 -1
  228. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +1 -1
  229. package/sdk/platform/Partner/PartnerPlatformModel.js +10 -26
  230. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +58 -58
  231. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +178 -178
  232. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +6 -6
  233. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +24 -24
  234. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +42 -42
  235. package/sdk/platform/Payment/PaymentPlatformClient.js +156 -155
  236. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +27 -27
  237. package/sdk/platform/Payment/PaymentPlatformModel.js +222 -410
  238. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +4 -4
  239. package/sdk/platform/Payment/PaymentPlatformValidator.js +22 -21
  240. package/sdk/platform/PlatformApplicationClient.d.ts +1496 -10325
  241. package/sdk/platform/PlatformApplicationClient.js +1584 -13899
  242. package/sdk/platform/PlatformClient.d.ts +7972 -7888
  243. package/sdk/platform/PlatformClient.js +8678 -10107
  244. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +85 -85
  245. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +299 -280
  246. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +8 -8
  247. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +35 -35
  248. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +15 -15
  249. package/sdk/platform/Rewards/RewardsPlatformModel.js +92 -194
  250. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +10 -10
  251. package/sdk/platform/Share/SharePlatformApplicationClient.js +62 -60
  252. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +1 -1
  253. package/sdk/platform/Share/SharePlatformApplicationValidator.js +7 -7
  254. package/sdk/platform/Share/SharePlatformModel.d.ts +8 -8
  255. package/sdk/platform/Share/SharePlatformModel.js +60 -118
  256. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +132 -132
  257. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +314 -312
  258. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +15 -15
  259. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +45 -45
  260. package/sdk/platform/Theme/ThemePlatformModel.d.ts +34 -34
  261. package/sdk/platform/Theme/ThemePlatformModel.js +190 -336
  262. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +136 -69
  263. package/sdk/platform/User/UserPlatformApplicationClient.js +507 -166
  264. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +12 -7
  265. package/sdk/platform/User/UserPlatformApplicationValidator.js +62 -24
  266. package/sdk/platform/User/UserPlatformModel.d.ts +79 -72
  267. package/sdk/platform/User/UserPlatformModel.js +440 -689
  268. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +31 -31
  269. package/sdk/platform/Webhook/WebhookPlatformClient.js +91 -90
  270. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +7 -7
  271. package/sdk/platform/Webhook/WebhookPlatformModel.js +68 -136
  272. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +3 -3
  273. package/sdk/platform/Webhook/WebhookPlatformValidator.js +15 -14
  274. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +13 -13
  275. package/sdk/public/Configuration/ConfigurationPublicClient.js +40 -38
  276. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +12 -12
  277. package/sdk/public/Configuration/ConfigurationPublicModel.js +85 -162
  278. package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +1 -1
  279. package/sdk/public/Configuration/ConfigurationPublicValidator.js +6 -6
  280. package/sdk/public/Inventory/InventoryPublicClient.d.ts +34 -34
  281. package/sdk/public/Inventory/InventoryPublicClient.js +115 -113
  282. package/sdk/public/Inventory/InventoryPublicModel.d.ts +10 -10
  283. package/sdk/public/Inventory/InventoryPublicModel.js +119 -245
  284. package/sdk/public/Inventory/InventoryPublicValidator.d.ts +3 -3
  285. package/sdk/public/Inventory/InventoryPublicValidator.js +15 -15
  286. package/sdk/public/Webhook/WebhookPublicClient.js +2 -0
  287. package/sdk/public/Webhook/WebhookPublicModel.d.ts +7 -7
  288. package/sdk/public/Webhook/WebhookPublicModel.js +68 -136
  289. package/.github/workflows/on_create_release.yml +0 -23
  290. package/.github/workflows/on_merge_main.yml +0 -38
  291. package/.github/workflows/on_pull_request.yml +0 -35
  292. package/.prettierrc +0 -5
  293. package/documentation/application/CART.md +0 -7339
  294. package/documentation/application/CATALOG.md +0 -9597
  295. package/documentation/application/COMMON.md +0 -452
  296. package/documentation/application/COMMUNICATION.md +0 -467
  297. package/documentation/application/CONFIGURATION.md +0 -2906
  298. package/documentation/application/CONTENT.md +0 -3351
  299. package/documentation/application/FILESTORAGE.md +0 -578
  300. package/documentation/application/LEAD.md +0 -1895
  301. package/documentation/application/LOGISTIC.md +0 -765
  302. package/documentation/application/ORDER.md +0 -3432
  303. package/documentation/application/PAYMENT.md +0 -5221
  304. package/documentation/application/POSCART.md +0 -7938
  305. package/documentation/application/README.md +0 -21
  306. package/documentation/application/REWARDS.md +0 -708
  307. package/documentation/application/SHARE.md +0 -733
  308. package/documentation/application/THEME.md +0 -5800
  309. package/documentation/application/USER.md +0 -4335
  310. package/documentation/platform/ANALYTICS.md +0 -1154
  311. package/documentation/platform/AUDITTRAIL.md +0 -576
  312. package/documentation/platform/BILLING.md +0 -2400
  313. package/documentation/platform/CART.md +0 -5559
  314. package/documentation/platform/CATALOG.md +0 -23261
  315. package/documentation/platform/COMMON.md +0 -452
  316. package/documentation/platform/COMMUNICATION.md +0 -5718
  317. package/documentation/platform/COMPANYPROFILE.md +0 -2031
  318. package/documentation/platform/CONFIGURATION.md +0 -7339
  319. package/documentation/platform/CONTENT.md +0 -9098
  320. package/documentation/platform/DISCOUNT.md +0 -863
  321. package/documentation/platform/FILESTORAGE.md +0 -1081
  322. package/documentation/platform/INVENTORY.md +0 -1779
  323. package/documentation/platform/LEAD.md +0 -4740
  324. package/documentation/platform/ORDER.md +0 -8486
  325. package/documentation/platform/PARTNER.md +0 -220
  326. package/documentation/platform/PAYMENT.md +0 -3448
  327. package/documentation/platform/README.md +0 -27
  328. package/documentation/platform/REWARDS.md +0 -1083
  329. package/documentation/platform/SHARE.md +0 -606
  330. package/documentation/platform/THEME.md +0 -35729
  331. package/documentation/platform/USER.md +0 -2319
  332. package/documentation/platform/WEBHOOK.md +0 -591
  333. package/documentation/public/CONFIGURATION.md +0 -452
  334. package/documentation/public/INVENTORY.md +0 -690
  335. package/documentation/public/WEBHOOK.md +0 -352
  336. package/jest.config.d.ts +0 -4
  337. package/jest.config.js +0 -6
  338. package/tests/application/catalog.spec.js +0 -47
  339. package/tests/common/action-url.spec.js +0 -35
  340. package/tests/common/schema/action-url.json +0 -178
  341. package/tests/common/schema/url-action.json +0 -683
  342. package/tests/common/url-action.spec.js +0 -48
  343. package/tests/helpers/cookie.helper.js +0 -31
  344. package/tests/helpers/oauth.helper.js +0 -43
  345. package/tests/platform/catalog.spec.js +0 -49
  346. package/tests/public/location.spec.js +0 -39
@@ -1,1317 +1,849 @@
1
1
  const Joi = require("joi");
2
2
 
3
3
  class PaymentModel {
4
+ static ActiveCardPaymentGatewayResponse() {
5
+ return Joi.object({
6
+ cards: PaymentModel.CardPaymentGateway().required(),
7
+ message: Joi.string().allow("").required(),
8
+ success: Joi.boolean().required(),
9
+ });
10
+ }
11
+ static AddBeneficiaryDetailsOTPRequest() {
12
+ return Joi.object({
13
+ details: PaymentModel.BankDetailsForOTP().required(),
14
+ order_id: Joi.string().allow("").required(),
15
+ });
16
+ }
17
+ static AddBeneficiaryDetailsRequest() {
18
+ return Joi.object({
19
+ delights: Joi.boolean().required(),
20
+ details: PaymentModel.BeneficiaryModeDetails().required(),
21
+ order_id: Joi.string().allow("").required(),
22
+ otp: Joi.string().allow(""),
23
+ request_id: Joi.string().allow(""),
24
+ shipment_id: Joi.string().allow("").required(),
25
+ transfer_mode: Joi.string().allow("").required(),
26
+ });
27
+ }
28
+ static AddBeneficiaryViaOtpVerificationRequest() {
29
+ return Joi.object({
30
+ hash_key: Joi.string().allow("").required(),
31
+ otp: Joi.string().allow("").required(),
32
+ request_id: Joi.string().allow("").required(),
33
+ });
34
+ }
35
+ static AddBeneficiaryViaOtpVerificationResponse() {
36
+ return Joi.object({
37
+ message: Joi.string().allow("").required(),
38
+ success: Joi.boolean(),
39
+ });
40
+ }
4
41
  static AggregatorConfigDetail() {
5
42
  return Joi.object({
6
- secret: Joi.string().allow("").required(),
7
-
8
- pin: Joi.string().allow("").allow(null),
9
-
10
- sdk: Joi.boolean().allow(null),
11
-
12
- verify_api: Joi.string().allow("").allow(null),
13
-
43
+ api: Joi.string().allow("").allow(null),
14
44
  config_type: Joi.string().allow("").required(),
15
-
16
- user_id: Joi.string().allow("").allow(null),
17
-
45
+ key: Joi.string().allow("").required(),
18
46
  merchant_id: Joi.string().allow("").allow(null),
19
-
20
- api: Joi.string().allow("").allow(null),
21
-
22
47
  merchant_key: Joi.string().allow("").allow(null),
23
-
24
- key: Joi.string().allow("").required(),
48
+ pin: Joi.string().allow("").allow(null),
49
+ sdk: Joi.boolean().allow(null),
50
+ secret: Joi.string().allow("").required(),
51
+ user_id: Joi.string().allow("").allow(null),
52
+ verify_api: Joi.string().allow("").allow(null),
53
+ });
54
+ }
55
+ static AggregatorRoute() {
56
+ return Joi.object({
57
+ api_link: Joi.string().allow("").allow(null),
58
+ data: Joi.any().allow(null),
59
+ payment_flow: Joi.string().allow("").allow(null),
60
+ payment_flow_data: Joi.string().allow("").allow(null),
25
61
  });
26
62
  }
27
-
28
63
  static AggregatorsConfigDetailResponse() {
29
64
  return Joi.object({
30
- stripe: PaymentModel.AggregatorConfigDetail(),
31
-
32
- mswipe: PaymentModel.AggregatorConfigDetail(),
33
-
34
65
  ccavenue: PaymentModel.AggregatorConfigDetail(),
35
-
36
- rupifi: PaymentModel.AggregatorConfigDetail(),
37
-
38
- razorpay: PaymentModel.AggregatorConfigDetail(),
39
-
40
- payumoney: PaymentModel.AggregatorConfigDetail(),
41
-
66
+ env: Joi.string().allow("").required(),
42
67
  juspay: PaymentModel.AggregatorConfigDetail(),
43
-
68
+ mswipe: PaymentModel.AggregatorConfigDetail(),
69
+ payumoney: PaymentModel.AggregatorConfigDetail(),
70
+ razorpay: PaymentModel.AggregatorConfigDetail(),
71
+ rupifi: PaymentModel.AggregatorConfigDetail(),
44
72
  simpl: PaymentModel.AggregatorConfigDetail(),
45
-
73
+ stripe: PaymentModel.AggregatorConfigDetail(),
46
74
  success: Joi.boolean().required(),
47
-
48
- env: Joi.string().allow("").required(),
49
75
  });
50
76
  }
51
-
52
- static ErrorCodeAndDescription() {
77
+ static AttachCardRequest() {
53
78
  return Joi.object({
54
- description: Joi.string().allow("").required(),
55
-
56
- code: Joi.string().allow("").required(),
79
+ card_id: Joi.string().allow("").allow(null).required(),
80
+ name_on_card: Joi.string().allow(""),
81
+ nickname: Joi.string().allow(""),
82
+ refresh: Joi.boolean().allow(null),
57
83
  });
58
84
  }
59
-
60
- static HttpErrorCodeAndResponse() {
85
+ static AttachCardsResponse() {
61
86
  return Joi.object({
62
- error: PaymentModel.ErrorCodeAndDescription().required(),
63
-
87
+ data: Joi.any().required(),
88
+ message: Joi.string().allow(""),
64
89
  success: Joi.boolean().required(),
65
90
  });
66
91
  }
67
-
68
- static AttachCardRequest() {
92
+ static BalanceDetails() {
69
93
  return Joi.object({
70
- nickname: Joi.string().allow(""),
71
-
72
- card_id: Joi.string().allow("").allow(null).required(),
73
-
74
- refresh: Joi.boolean().allow(null),
75
-
76
- name_on_card: Joi.string().allow(""),
94
+ currency: Joi.string().allow("").required(),
95
+ formatted_value: Joi.string().allow("").required(),
96
+ value: Joi.number().required(),
77
97
  });
78
98
  }
79
-
80
- static AttachCardsResponse() {
99
+ static BankDetailsForOTP() {
81
100
  return Joi.object({
82
- data: Joi.any().required(),
83
-
84
- success: Joi.boolean().required(),
85
-
86
- message: Joi.string().allow(""),
101
+ account_holder: Joi.string().allow("").required(),
102
+ account_no: Joi.string().allow("").required(),
103
+ bank_name: Joi.string().allow("").required(),
104
+ branch_name: Joi.string().allow("").required(),
105
+ ifsc_code: Joi.string().allow("").required(),
87
106
  });
88
107
  }
89
-
90
- static CardPaymentGateway() {
108
+ static BeneficiaryModeDetails() {
91
109
  return Joi.object({
92
- customer_id: Joi.string().allow("").allow(null),
93
-
94
- api: Joi.string().allow("").allow(null),
95
-
96
- aggregator: Joi.string().allow("").required(),
110
+ account_holder: Joi.string().allow("").required(),
111
+ account_no: Joi.string().allow("").required(),
112
+ address: Joi.string().allow(""),
113
+ bank_name: Joi.string().allow("").required(),
114
+ branch_name: Joi.string().allow("").required(),
115
+ comment: Joi.string().allow(""),
116
+ email: Joi.string().allow("").required(),
117
+ ifsc_code: Joi.string().allow("").required(),
118
+ mobile: Joi.string().allow("").required(),
119
+ vpa: Joi.string().allow("").allow(null),
120
+ wallet: Joi.string().allow("").allow(null),
97
121
  });
98
122
  }
99
-
100
- static ActiveCardPaymentGatewayResponse() {
123
+ static BusinessDetails() {
124
+ return Joi.object({
125
+ address: PaymentModel.KYCAddress(),
126
+ business_ownership_type: Joi.string().allow("").allow(null),
127
+ business_type: Joi.string().allow("").allow(null),
128
+ entity_type: Joi.string().allow("").allow(null),
129
+ fda: Joi.string().allow("").allow(null),
130
+ fssai: Joi.string().allow("").allow(null),
131
+ gstin: Joi.string().allow("").allow(null),
132
+ name: Joi.string().allow("").allow(null),
133
+ pan: Joi.string().allow("").allow(null),
134
+ shop_and_establishment: Joi.any(),
135
+ vintage: Joi.string().allow("").allow(null),
136
+ });
137
+ }
138
+ static CancelOrResendPaymentLinkRequest() {
139
+ return Joi.object({
140
+ payment_link_id: Joi.string().allow("").required(),
141
+ });
142
+ }
143
+ static CancelPaymentLinkResponse() {
101
144
  return Joi.object({
102
- cards: PaymentModel.CardPaymentGateway().required(),
103
-
104
- success: Joi.boolean().required(),
105
-
106
145
  message: Joi.string().allow("").required(),
146
+ status_code: Joi.number().required(),
147
+ success: Joi.boolean().required(),
107
148
  });
108
149
  }
109
-
110
150
  static Card() {
111
151
  return Joi.object({
112
- expired: Joi.boolean().allow(null),
113
-
152
+ aggregator_name: Joi.string().allow("").required(),
153
+ card_brand: Joi.string().allow("").allow(null),
114
154
  card_brand_image: Joi.string().allow("").allow(null),
115
-
116
- compliant_with_tokenisation_guidelines: Joi.boolean().allow(null),
117
-
118
- card_number: Joi.string().allow("").allow(null),
119
-
120
155
  card_fingerprint: Joi.string().allow("").allow(null),
121
-
122
- card_brand: Joi.string().allow("").allow(null),
123
-
124
- card_token: Joi.string().allow("").allow(null),
125
-
126
- exp_year: Joi.number().allow(null),
127
-
128
- card_isin: Joi.string().allow("").allow(null),
129
-
130
156
  card_id: Joi.string().allow("").allow(null),
131
-
157
+ card_isin: Joi.string().allow("").allow(null),
132
158
  card_issuer: Joi.string().allow("").allow(null),
133
-
134
- card_type: Joi.string().allow("").allow(null),
135
-
159
+ card_name: Joi.string().allow("").allow(null),
160
+ card_number: Joi.string().allow("").allow(null),
136
161
  card_reference: Joi.string().allow("").allow(null),
137
-
138
- nickname: Joi.string().allow("").allow(null),
139
-
162
+ card_token: Joi.string().allow("").allow(null),
163
+ card_type: Joi.string().allow("").allow(null),
164
+ compliant_with_tokenisation_guidelines: Joi.boolean().allow(null),
140
165
  exp_month: Joi.number().allow(null),
141
-
142
- aggregator_name: Joi.string().allow("").required(),
143
-
144
- card_name: Joi.string().allow("").allow(null),
166
+ exp_year: Joi.number().allow(null),
167
+ expired: Joi.boolean().allow(null),
168
+ nickname: Joi.string().allow("").allow(null),
145
169
  });
146
170
  }
147
-
148
- static ListCardsResponse() {
171
+ static CardPaymentGateway() {
149
172
  return Joi.object({
150
- data: Joi.array().items(PaymentModel.Card()),
151
-
152
- success: Joi.boolean().required(),
153
-
154
- message: Joi.string().allow("").required(),
173
+ aggregator: Joi.string().allow("").required(),
174
+ api: Joi.string().allow("").allow(null),
175
+ customer_id: Joi.string().allow("").allow(null),
155
176
  });
156
177
  }
157
-
158
- static DeletehCardRequest() {
178
+ static ChargeCustomerRequest() {
159
179
  return Joi.object({
160
- card_id: Joi.string().allow("").allow(null).required(),
180
+ aggregator: Joi.string().allow("").required(),
181
+ amount: Joi.number().allow(null).required(),
182
+ order_id: Joi.string().allow("").required(),
183
+ transaction_token: Joi.string().allow("").allow(null),
184
+ verified: Joi.boolean().allow(null),
161
185
  });
162
186
  }
163
-
164
- static DeleteCardsResponse() {
187
+ static ChargeCustomerResponse() {
165
188
  return Joi.object({
189
+ aggregator: Joi.string().allow("").required(),
190
+ cart_id: Joi.string().allow("").allow(null),
191
+ delivery_address_id: Joi.string().allow("").allow(null),
192
+ message: Joi.string().allow("").required(),
193
+ order_id: Joi.string().allow("").required(),
194
+ status: Joi.string().allow("").required(),
166
195
  success: Joi.boolean().required(),
167
-
168
- message: Joi.string().allow("").allow(null),
169
196
  });
170
197
  }
171
-
172
- static ValidateCustomerRequest() {
198
+ static CheckCreditResponse() {
173
199
  return Joi.object({
174
- merchant_params: Joi.any(),
175
-
176
- delivery_address: Joi.any(),
177
-
178
- payload: Joi.string().allow("").allow(null),
179
-
180
- billing_address: Joi.any(),
181
-
182
- order_items: Joi.array().items(Joi.any()),
183
-
184
- phone_number: Joi.string().allow("").required(),
185
-
186
- transaction_amount_in_paise: Joi.number().required(),
187
-
188
- aggregator: Joi.string().allow("").required(),
189
- });
190
- }
191
-
192
- static ValidateCustomerResponse() {
193
- return Joi.object({
194
- data: Joi.any().required(),
195
-
196
- success: Joi.boolean().required(),
197
-
198
- message: Joi.string().allow("").required(),
199
- });
200
- }
201
-
202
- static ChargeCustomerRequest() {
203
- return Joi.object({
204
- order_id: Joi.string().allow("").required(),
205
-
206
- transaction_token: Joi.string().allow("").allow(null),
207
-
208
- amount: Joi.number().allow(null).required(),
209
-
210
- verified: Joi.boolean().allow(null),
211
-
212
- aggregator: Joi.string().allow("").required(),
213
- });
214
- }
215
-
216
- static ChargeCustomerResponse() {
217
- return Joi.object({
218
- cart_id: Joi.string().allow("").allow(null),
219
-
220
- status: Joi.string().allow("").required(),
221
-
222
- message: Joi.string().allow("").required(),
223
-
224
- order_id: Joi.string().allow("").required(),
225
-
226
- delivery_address_id: Joi.string().allow("").allow(null),
227
-
228
- success: Joi.boolean().required(),
229
-
230
- aggregator: Joi.string().allow("").required(),
231
- });
232
- }
233
-
234
- static PaymentInitializationRequest() {
235
- return Joi.object({
236
- method: Joi.string().allow("").required(),
237
-
238
- merchant_order_id: Joi.string().allow("").required(),
239
-
240
- order_id: Joi.string().allow("").required(),
241
-
242
- contact: Joi.string().allow("").required(),
243
-
244
- amount: Joi.number().allow(null).required(),
245
-
246
- customer_id: Joi.string().allow("").required(),
247
-
248
- currency: Joi.string().allow("").required(),
249
-
250
- vpa: Joi.string().allow("").allow(null),
251
-
252
- email: Joi.string().allow("").required(),
253
-
254
- timeout: Joi.number().allow(null),
255
-
256
- razorpay_payment_id: Joi.string().allow("").allow(null),
257
-
258
- aggregator: Joi.string().allow("").required(),
259
- });
260
- }
261
-
262
- static PaymentInitializationResponse() {
263
- return Joi.object({
264
- bqr_image: Joi.string().allow("").allow(null),
265
-
266
- method: Joi.string().allow("").required(),
267
-
268
- upi_poll_url: Joi.string().allow("").allow(null),
269
-
270
- status: Joi.string().allow(""),
271
-
272
- polling_url: Joi.string().allow("").required(),
273
-
274
- vpa: Joi.string().allow("").allow(null),
275
-
276
- virtual_id: Joi.string().allow("").allow(null),
277
-
278
- aggregator: Joi.string().allow("").required(),
279
-
280
- amount: Joi.number().allow(null),
281
-
282
- aggregator_order_id: Joi.string().allow(""),
283
-
284
- currency: Joi.string().allow("").allow(null),
285
-
286
- customer_id: Joi.string().allow("").allow(null),
287
-
288
- timeout: Joi.number().allow(null),
289
-
290
- razorpay_payment_id: Joi.string().allow("").allow(null),
291
-
292
- success: Joi.boolean().required(),
293
-
294
- merchant_order_id: Joi.string().allow("").required(),
295
- });
296
- }
297
-
298
- static PaymentStatusUpdateRequest() {
299
- return Joi.object({
300
- method: Joi.string().allow("").required(),
301
-
302
- status: Joi.string().allow("").required(),
303
-
304
- merchant_order_id: Joi.string().allow("").required(),
305
-
306
- order_id: Joi.string().allow("").required(),
307
-
308
- contact: Joi.string().allow("").required(),
309
-
310
- amount: Joi.number().allow(null).required(),
311
-
312
- customer_id: Joi.string().allow("").required(),
313
-
314
- currency: Joi.string().allow("").required(),
315
-
316
- vpa: Joi.string().allow("").required(),
317
-
318
- email: Joi.string().allow("").required(),
319
-
320
- aggregator: Joi.string().allow("").required(),
321
- });
322
- }
323
-
324
- static PaymentStatusUpdateResponse() {
325
- return Joi.object({
326
- aggregator_name: Joi.string().allow("").required(),
327
-
328
- status: Joi.string().allow("").required(),
329
-
330
- retry: Joi.boolean().required(),
331
-
332
- redirect_url: Joi.string().allow("").allow(null),
333
-
334
- success: Joi.boolean().allow(null),
335
- });
336
- }
337
-
338
- static PaymentModeLogo() {
339
- return Joi.object({
340
- large: Joi.string().allow("").required(),
341
-
342
- small: Joi.string().allow("").required(),
343
- });
344
- }
345
-
346
- static IntentApp() {
347
- return Joi.object({
348
- logos: PaymentModel.PaymentModeLogo(),
349
-
350
- package_name: Joi.string().allow("").allow(null),
351
-
352
- code: Joi.string().allow("").allow(null),
353
-
354
- display_name: Joi.string().allow("").allow(null),
355
- });
356
- }
357
-
358
- static IntentAppErrorList() {
359
- return Joi.object({
360
- package_name: Joi.string().allow("").allow(null),
361
-
362
- code: Joi.string().allow("").allow(null),
363
- });
364
- }
365
-
366
- static PaymentModeList() {
367
- return Joi.object({
368
- code: Joi.string().allow("").allow(null),
369
-
370
- compliant_with_tokenisation_guidelines: Joi.boolean().allow(null),
371
-
372
- intent_app: Joi.array().items(PaymentModel.IntentApp()),
373
-
374
- retry_count: Joi.number().allow(null),
375
-
376
- fynd_vpa: Joi.string().allow("").allow(null),
377
-
378
- display_name: Joi.string().allow("").allow(null),
379
-
380
- logo_url: PaymentModel.PaymentModeLogo(),
381
-
382
- card_type: Joi.string().allow("").allow(null),
383
-
384
- card_brand_image: Joi.string().allow("").allow(null),
385
-
386
- nickname: Joi.string().allow("").allow(null),
387
-
388
- aggregator_name: Joi.string().allow("").required(),
389
-
390
- intent_app_error_dict_list: Joi.array().items(
391
- PaymentModel.IntentAppErrorList()
392
- ),
393
-
394
- merchant_code: Joi.string().allow("").allow(null),
395
-
396
- name: Joi.string().allow("").allow(null),
397
-
398
- card_issuer: Joi.string().allow("").allow(null),
399
-
400
- card_reference: Joi.string().allow("").allow(null),
401
-
402
- timeout: Joi.number().allow(null),
403
-
404
- intent_app_error_list: Joi.array().items(Joi.string().allow("")),
405
-
406
- card_token: Joi.string().allow("").allow(null),
407
-
408
- cod_limit: Joi.number().allow(null),
409
-
410
- remaining_limit: Joi.number().allow(null),
411
-
412
- cod_limit_per_order: Joi.number().allow(null),
413
-
414
- card_name: Joi.string().allow("").allow(null),
415
-
416
- expired: Joi.boolean().allow(null),
417
-
418
- card_number: Joi.string().allow("").allow(null),
419
-
420
- intent_flow: Joi.boolean().allow(null),
421
-
422
- card_fingerprint: Joi.string().allow("").allow(null),
423
-
424
- card_brand: Joi.string().allow("").allow(null),
425
-
426
- exp_year: Joi.number().allow(null),
427
-
428
- card_isin: Joi.string().allow("").allow(null),
429
-
430
- card_id: Joi.string().allow("").allow(null),
431
-
432
- display_priority: Joi.number().allow(null),
433
-
434
- exp_month: Joi.number().allow(null),
435
- });
436
- }
437
-
438
- static RootPaymentMode() {
439
- return Joi.object({
440
- list: Joi.array().items(PaymentModel.PaymentModeList()),
441
-
442
- anonymous_enable: Joi.boolean().allow(null),
443
-
444
- display_name: Joi.string().allow("").required(),
445
-
446
- name: Joi.string().allow("").required(),
447
-
448
- save_card: Joi.boolean().allow(null),
449
-
450
- display_priority: Joi.number().required(),
451
-
452
- add_card_enabled: Joi.boolean().allow(null),
453
-
454
- is_pay_by_card_pl: Joi.boolean().allow(null),
455
-
456
- aggregator_name: Joi.string().allow("").allow(null),
457
- });
458
- }
459
-
460
- static AggregatorRoute() {
461
- return Joi.object({
462
- payment_flow_data: Joi.string().allow("").allow(null),
463
-
464
- payment_flow: Joi.string().allow("").allow(null),
465
-
466
- data: Joi.any().allow(null),
467
-
468
- api_link: Joi.string().allow("").allow(null),
469
- });
470
- }
471
-
472
- static PaymentFlow() {
473
- return Joi.object({
474
- stripe: PaymentModel.AggregatorRoute(),
475
-
476
- mswipe: PaymentModel.AggregatorRoute(),
477
-
478
- fynd: PaymentModel.AggregatorRoute(),
479
-
480
- ccavenue: PaymentModel.AggregatorRoute(),
481
-
482
- rupifi: PaymentModel.AggregatorRoute(),
483
-
484
- razorpay: PaymentModel.AggregatorRoute(),
485
-
486
- payubiz: PaymentModel.AggregatorRoute(),
487
-
488
- upi_razorpay: PaymentModel.AggregatorRoute(),
489
-
490
- simpl: PaymentModel.AggregatorRoute(),
491
-
492
- juspay: PaymentModel.AggregatorRoute(),
493
-
494
- bqr_razorpay: PaymentModel.AggregatorRoute(),
495
-
496
- epaylater: PaymentModel.AggregatorRoute(),
497
-
498
- jiopay: PaymentModel.AggregatorRoute(),
499
- });
500
- }
501
-
502
- static PaymentOptionAndFlow() {
503
- return Joi.object({
504
- payment_option: Joi.array()
505
- .items(PaymentModel.RootPaymentMode())
506
- .required(),
507
-
508
- payment_flows: PaymentModel.PaymentFlow().required(),
509
- });
510
- }
511
-
512
- static PaymentModeRouteResponse() {
513
- return Joi.object({
514
- payment_options: PaymentModel.PaymentOptionAndFlow().required(),
515
-
200
+ data: PaymentModel.CreditDetail().required(),
516
201
  success: Joi.boolean().required(),
517
202
  });
518
203
  }
519
-
520
- static RupifiBannerData() {
204
+ static CreateOrderUserData() {
521
205
  return Joi.object({
522
- kyc_url: Joi.string().allow(""),
523
-
524
- status: Joi.string().allow(""),
206
+ aggregator: Joi.string().allow("").allow(null),
207
+ amount: Joi.number().allow(null),
208
+ callback_url: Joi.string().allow("").allow(null),
209
+ contact: Joi.string().allow("").allow(null),
210
+ currency: Joi.string().allow("").allow(null),
211
+ customer_id: Joi.string().allow("").allow(null),
212
+ email: Joi.string().allow("").allow(null),
213
+ merchant_order_id: Joi.string().allow("").allow(null),
214
+ method: Joi.string().allow("").allow(null),
215
+ order_id: Joi.string().allow("").allow(null),
525
216
  });
526
217
  }
527
-
528
- static RupifiBannerResponse() {
218
+ static CreateOrderUserPaymentMethods() {
529
219
  return Joi.object({
530
- data: PaymentModel.RupifiBannerData().required(),
531
-
532
- success: Joi.boolean().required(),
220
+ meta: PaymentModel.PaymentMethodsMeta().required(),
221
+ mode: Joi.string().allow("").required(),
222
+ name: Joi.string().allow("").required(),
533
223
  });
534
224
  }
535
-
536
- static EpaylaterBannerData() {
225
+ static CreateOrderUserRequest() {
537
226
  return Joi.object({
538
- display: Joi.boolean().required(),
539
-
540
- status: Joi.string().allow(""),
541
-
542
- message: Joi.string().allow(""),
227
+ currency: Joi.string().allow("").required(),
228
+ failure_callback_url: Joi.string().allow("").required(),
229
+ meta: Joi.any().allow(null),
230
+ payment_link_id: Joi.string().allow("").required(),
231
+ payment_methods: PaymentModel.CreateOrderUserPaymentMethods().required(),
232
+ success_callback_url: Joi.string().allow("").required(),
543
233
  });
544
234
  }
545
-
546
- static EpaylaterBannerResponse() {
235
+ static CreateOrderUserResponse() {
547
236
  return Joi.object({
548
- data: PaymentModel.EpaylaterBannerData().required(),
549
-
237
+ callback_url: Joi.string().allow("").allow(null),
238
+ data: PaymentModel.CreateOrderUserData(),
239
+ message: Joi.string().allow("").required(),
240
+ order_id: Joi.string().allow("").allow(null),
241
+ payment_confirm_url: Joi.string().allow("").allow(null),
242
+ status_code: Joi.number().required(),
550
243
  success: Joi.boolean().required(),
551
244
  });
552
245
  }
553
-
554
- static ResendOrCancelPaymentRequest() {
246
+ static CreatePaymentLinkMeta() {
555
247
  return Joi.object({
556
- order_id: Joi.string().allow("").required(),
557
-
558
- request_type: Joi.string().allow("").required(),
248
+ amount: Joi.string().allow("").required(),
249
+ assign_card_id: Joi.string().allow("").allow(null),
250
+ cart_id: Joi.string().allow("").required(),
251
+ checkout_mode: Joi.string().allow("").required(),
252
+ pincode: Joi.string().allow("").required(),
559
253
  });
560
254
  }
561
-
562
- static LinkStatus() {
255
+ static CreatePaymentLinkRequest() {
563
256
  return Joi.object({
564
- status: Joi.boolean().required(),
565
-
566
- message: Joi.string().allow("").required(),
257
+ amount: Joi.number().required(),
258
+ description: Joi.string().allow("").allow(null),
259
+ email: Joi.string().allow("").required(),
260
+ external_order_id: Joi.string().allow("").required(),
261
+ meta: PaymentModel.CreatePaymentLinkMeta().required(),
262
+ mobile_number: Joi.string().allow("").required(),
567
263
  });
568
264
  }
569
-
570
- static ResendOrCancelPaymentResponse() {
265
+ static CreatePaymentLinkResponse() {
571
266
  return Joi.object({
572
- data: PaymentModel.LinkStatus().required(),
573
-
267
+ message: Joi.string().allow("").required(),
268
+ payment_link_id: Joi.string().allow("").allow(null),
269
+ payment_link_url: Joi.string().allow("").allow(null),
270
+ polling_timeout: Joi.number().allow(null),
271
+ status_code: Joi.number().required(),
574
272
  success: Joi.boolean().required(),
575
273
  });
576
274
  }
577
-
578
- static renderHTMLRequest() {
275
+ static CreditDetail() {
579
276
  return Joi.object({
580
- returntype: Joi.string().allow("").allow(null),
581
-
582
- base64_html: Joi.string().allow("").required(),
277
+ is_registered: Joi.boolean().required(),
278
+ signup_url: Joi.string().allow("").required(),
279
+ status: Joi.boolean().required(),
583
280
  });
584
281
  }
585
-
586
- static renderHTMLResponse() {
282
+ static CreditSummary() {
587
283
  return Joi.object({
588
- html: Joi.string().allow("").required(),
284
+ balance: PaymentModel.BalanceDetails(),
285
+ merchant_customer_ref_id: Joi.string().allow("").required(),
286
+ status: Joi.string().allow("").required(),
287
+ status_message: Joi.string().allow("").required(),
589
288
  });
590
289
  }
591
-
592
- static ValidateVPARequest() {
290
+ static CustomerCreditSummaryResponse() {
593
291
  return Joi.object({
594
- upi_vpa: Joi.string().allow("").required(),
292
+ data: PaymentModel.CreditSummary(),
293
+ success: Joi.boolean().required(),
595
294
  });
596
295
  }
597
-
598
- static ValidateUPI() {
296
+ static CustomerOnboardingRequest() {
599
297
  return Joi.object({
600
- upi_vpa: Joi.string().allow("").required(),
601
-
602
- is_valid: Joi.boolean().required(),
603
-
604
- customer_name: Joi.string().allow("").required(),
605
-
606
- status: Joi.string().allow("").required(),
298
+ aggregator: Joi.string().allow("").required(),
299
+ business_info: PaymentModel.BusinessDetails(),
300
+ device: PaymentModel.DeviceDetails(),
301
+ marketplace_info: PaymentModel.MarketplaceInfo(),
302
+ mcc: Joi.string().allow("").allow(null),
303
+ personal_info: PaymentModel.UserPersonalInfoInDetails().required(),
304
+ source: Joi.string().allow("").required(),
607
305
  });
608
306
  }
609
-
610
- static ValidateVPAResponse() {
307
+ static CustomerOnboardingResponse() {
611
308
  return Joi.object({
612
- data: PaymentModel.ValidateUPI().required(),
613
-
309
+ data: PaymentModel.OnboardSummary().required(),
614
310
  success: Joi.boolean().required(),
615
311
  });
616
312
  }
617
-
618
- static TransferItemsDetails() {
313
+ static DeleteCardsResponse() {
619
314
  return Joi.object({
620
- display_name: Joi.string().allow(""),
621
-
622
- name: Joi.string().allow("").required(),
623
-
624
- logo_large: Joi.string().allow("").required(),
625
-
626
- logo_small: Joi.string().allow("").required(),
627
-
628
- id: Joi.number().required(),
315
+ message: Joi.string().allow("").allow(null),
316
+ success: Joi.boolean().required(),
629
317
  });
630
318
  }
631
-
632
- static TransferModeDetails() {
319
+ static DeletehCardRequest() {
633
320
  return Joi.object({
634
- items: Joi.array().items(PaymentModel.TransferItemsDetails()),
635
-
636
- display_name: Joi.string().allow("").required(),
321
+ card_id: Joi.string().allow("").allow(null).required(),
637
322
  });
638
323
  }
639
-
640
- static TransferModeResponse() {
324
+ static DeviceDetails() {
641
325
  return Joi.object({
642
- data: Joi.array().items(PaymentModel.TransferModeDetails()).required(),
326
+ device_make: Joi.string().allow("").allow(null),
327
+ device_model: Joi.string().allow("").allow(null),
328
+ device_type: Joi.string().allow("").allow(null),
329
+ identification_number: Joi.string().allow("").allow(null),
330
+ identifier_type: Joi.string().allow("").allow(null),
331
+ os: Joi.string().allow("").allow(null),
332
+ os_version: Joi.string().allow("").allow(null),
643
333
  });
644
334
  }
645
-
646
- static UpdateRefundTransferModeRequest() {
335
+ static EpaylaterBannerData() {
647
336
  return Joi.object({
648
- transfer_mode: Joi.string().allow("").required(),
649
-
650
- enable: Joi.boolean().required(),
337
+ display: Joi.boolean().required(),
338
+ message: Joi.string().allow(""),
339
+ status: Joi.string().allow(""),
651
340
  });
652
341
  }
653
-
654
- static UpdateRefundTransferModeResponse() {
342
+ static EpaylaterBannerResponse() {
655
343
  return Joi.object({
656
- success: Joi.boolean(),
344
+ data: PaymentModel.EpaylaterBannerData().required(),
345
+ success: Joi.boolean().required(),
657
346
  });
658
347
  }
659
-
660
- static OrderBeneficiaryDetails() {
348
+ static ErrorCodeAndDescription() {
661
349
  return Joi.object({
662
- branch_name: Joi.string().allow(""),
663
-
664
- modified_on: Joi.string().allow("").required(),
665
-
666
- display_name: Joi.string().allow("").required(),
667
-
668
- bank_name: Joi.string().allow("").required(),
669
-
670
- subtitle: Joi.string().allow("").required(),
671
-
672
- account_holder: Joi.string().allow("").required(),
673
-
674
- comment: Joi.string().allow(""),
675
-
676
- created_on: Joi.string().allow("").required(),
677
-
678
- title: Joi.string().allow("").required(),
679
-
680
- id: Joi.number().required(),
681
-
682
- beneficiary_id: Joi.string().allow("").required(),
683
-
684
- delights_user_name: Joi.string().allow("").allow(null),
685
-
686
- transfer_mode: Joi.string().allow("").required(),
687
-
688
- address: Joi.string().allow("").required(),
689
-
690
- email: Joi.string().allow("").required(),
691
-
692
- account_no: Joi.string().allow("").required(),
693
-
694
- is_active: Joi.boolean().required(),
695
-
696
- ifsc_code: Joi.string().allow("").required(),
697
-
698
- mobile: Joi.string().allow(""),
350
+ code: Joi.string().allow("").required(),
351
+ description: Joi.string().allow("").required(),
699
352
  });
700
353
  }
701
-
702
- static OrderBeneficiaryResponse() {
354
+ static ErrorCodeDescription() {
703
355
  return Joi.object({
704
- beneficiaries: Joi.array().items(PaymentModel.OrderBeneficiaryDetails()),
705
-
706
- show_beneficiary_details: Joi.boolean(),
356
+ code: Joi.string().allow("").required(),
357
+ description: Joi.string().allow("").required(),
358
+ success: Joi.boolean().required(),
707
359
  });
708
360
  }
709
-
710
- static NotFoundResourceError() {
361
+ static ErrorDescription() {
711
362
  return Joi.object({
712
- description: Joi.string().allow("").required(),
713
-
714
- code: Joi.string().allow("").required(),
715
-
716
- success: Joi.boolean().required(),
363
+ amount: Joi.number().allow(null),
364
+ cancelled: Joi.boolean().allow(null),
365
+ expired: Joi.boolean().allow(null),
366
+ invalid_id: Joi.boolean().allow(null),
367
+ merchant_name: Joi.string().allow("").allow(null),
368
+ merchant_order_id: Joi.string().allow("").allow(null),
369
+ msg: Joi.string().allow("").allow(null),
370
+ payment_transaction_id: Joi.string().allow("").allow(null),
717
371
  });
718
372
  }
719
-
720
- static IfscCodeResponse() {
373
+ static ErrorResponse() {
721
374
  return Joi.object({
722
- branch_name: Joi.string().allow("").required(),
723
-
724
- success: Joi.boolean(),
725
-
726
- bank_name: Joi.string().allow("").required(),
375
+ error: PaymentModel.ErrorDescription(),
376
+ message: Joi.string().allow("").required(),
377
+ status_code: Joi.number().required(),
378
+ success: Joi.boolean().required(),
727
379
  });
728
380
  }
729
-
730
- static ErrorCodeDescription() {
381
+ static GetPaymentLinkResponse() {
731
382
  return Joi.object({
732
- description: Joi.string().allow("").required(),
733
-
734
- code: Joi.string().allow("").required(),
735
-
383
+ amount: Joi.number().allow(null),
384
+ external_order_id: Joi.string().allow("").allow(null),
385
+ merchant_name: Joi.string().allow("").allow(null),
386
+ message: Joi.string().allow("").required(),
387
+ payment_link_current_status: Joi.string().allow("").allow(null),
388
+ payment_link_url: Joi.string().allow("").allow(null),
389
+ polling_timeout: Joi.number().allow(null),
390
+ status_code: Joi.number().required(),
736
391
  success: Joi.boolean().required(),
737
392
  });
738
393
  }
739
-
740
- static AddBeneficiaryViaOtpVerificationRequest() {
394
+ static HttpErrorCodeAndResponse() {
741
395
  return Joi.object({
742
- otp: Joi.string().allow("").required(),
743
-
744
- hash_key: Joi.string().allow("").required(),
745
-
746
- request_id: Joi.string().allow("").required(),
396
+ error: PaymentModel.ErrorCodeAndDescription().required(),
397
+ success: Joi.boolean().required(),
747
398
  });
748
399
  }
749
-
750
- static AddBeneficiaryViaOtpVerificationResponse() {
400
+ static IfscCodeResponse() {
751
401
  return Joi.object({
402
+ bank_name: Joi.string().allow("").required(),
403
+ branch_name: Joi.string().allow("").required(),
752
404
  success: Joi.boolean(),
753
-
754
- message: Joi.string().allow("").required(),
755
405
  });
756
406
  }
757
-
758
- static WrongOtpError() {
407
+ static IntentApp() {
759
408
  return Joi.object({
760
- description: Joi.string().allow("").required(),
761
-
762
- is_verified_flag: Joi.boolean().required(),
763
-
764
- success: Joi.string().allow("").required(),
409
+ code: Joi.string().allow("").allow(null),
410
+ display_name: Joi.string().allow("").allow(null),
411
+ logos: PaymentModel.PaymentModeLogo(),
412
+ package_name: Joi.string().allow("").allow(null),
765
413
  });
766
414
  }
767
-
768
- static BeneficiaryModeDetails() {
415
+ static IntentAppErrorList() {
769
416
  return Joi.object({
770
- account_no: Joi.string().allow("").required(),
771
-
772
- bank_name: Joi.string().allow("").required(),
773
-
774
- wallet: Joi.string().allow("").allow(null),
775
-
776
- email: Joi.string().allow("").required(),
777
-
778
- branch_name: Joi.string().allow("").required(),
779
-
780
- ifsc_code: Joi.string().allow("").required(),
781
-
782
- account_holder: Joi.string().allow("").required(),
783
-
784
- comment: Joi.string().allow(""),
785
-
786
- vpa: Joi.string().allow("").allow(null),
787
-
788
- address: Joi.string().allow(""),
789
-
790
- mobile: Joi.string().allow("").required(),
417
+ code: Joi.string().allow("").allow(null),
418
+ package_name: Joi.string().allow("").allow(null),
791
419
  });
792
420
  }
793
-
794
- static AddBeneficiaryDetailsRequest() {
421
+ static KYCAddress() {
795
422
  return Joi.object({
796
- details: PaymentModel.BeneficiaryModeDetails().required(),
797
-
798
- request_id: Joi.string().allow(""),
799
-
800
- shipment_id: Joi.string().allow("").required(),
801
-
802
- order_id: Joi.string().allow("").required(),
803
-
804
- otp: Joi.string().allow(""),
805
-
806
- transfer_mode: Joi.string().allow("").required(),
807
-
808
- delights: Joi.boolean().required(),
423
+ addressline1: Joi.string().allow("").required(),
424
+ addressline2: Joi.string().allow("").allow(null),
425
+ city: Joi.string().allow("").required(),
426
+ land_mark: Joi.string().allow("").allow(null),
427
+ ownership_type: Joi.string().allow("").allow(null),
428
+ pincode: Joi.string().allow("").required(),
429
+ state: Joi.string().allow("").required(),
809
430
  });
810
431
  }
811
-
812
- static RefundAccountResponse() {
432
+ static LinkStatus() {
813
433
  return Joi.object({
814
- is_verified_flag: Joi.boolean(),
815
-
816
- data: Joi.any(),
817
-
818
- success: Joi.boolean().required(),
819
-
820
434
  message: Joi.string().allow("").required(),
435
+ status: Joi.boolean().required(),
821
436
  });
822
437
  }
823
-
824
- static BankDetailsForOTP() {
438
+ static ListCardsResponse() {
825
439
  return Joi.object({
826
- account_no: Joi.string().allow("").required(),
827
-
828
- branch_name: Joi.string().allow("").required(),
829
-
830
- ifsc_code: Joi.string().allow("").required(),
831
-
832
- account_holder: Joi.string().allow("").required(),
833
-
834
- bank_name: Joi.string().allow("").required(),
440
+ data: Joi.array().items(PaymentModel.Card()),
441
+ message: Joi.string().allow("").required(),
442
+ success: Joi.boolean().required(),
835
443
  });
836
444
  }
837
-
838
- static AddBeneficiaryDetailsOTPRequest() {
445
+ static MarketplaceInfo() {
839
446
  return Joi.object({
840
- order_id: Joi.string().allow("").required(),
841
-
842
- details: PaymentModel.BankDetailsForOTP().required(),
447
+ date_of_joining: Joi.string().allow("").allow(null),
448
+ membership_id: Joi.string().allow("").required(),
449
+ name: Joi.string().allow("").required(),
843
450
  });
844
451
  }
845
-
846
- static WalletOtpRequest() {
452
+ static NotFoundResourceError() {
847
453
  return Joi.object({
848
- country_code: Joi.string().allow("").required(),
849
-
850
- mobile: Joi.string().allow("").required(),
454
+ code: Joi.string().allow("").required(),
455
+ description: Joi.string().allow("").required(),
456
+ success: Joi.boolean().required(),
851
457
  });
852
458
  }
853
-
854
- static WalletOtpResponse() {
459
+ static OnboardSummary() {
855
460
  return Joi.object({
856
- is_verified_flag: Joi.string().allow("").required(),
857
-
858
- success: Joi.boolean(),
859
-
860
- request_id: Joi.string().allow("").required(),
461
+ redirect_url: Joi.string().allow("").required(),
462
+ session: Joi.any().required(),
463
+ status: Joi.boolean().required(),
861
464
  });
862
465
  }
863
-
864
- static SetDefaultBeneficiaryRequest() {
466
+ static OrderBeneficiaryDetails() {
865
467
  return Joi.object({
468
+ account_holder: Joi.string().allow("").required(),
469
+ account_no: Joi.string().allow("").required(),
470
+ address: Joi.string().allow("").required(),
471
+ bank_name: Joi.string().allow("").required(),
866
472
  beneficiary_id: Joi.string().allow("").required(),
867
-
868
- order_id: Joi.string().allow("").required(),
473
+ branch_name: Joi.string().allow(""),
474
+ comment: Joi.string().allow(""),
475
+ created_on: Joi.string().allow("").required(),
476
+ delights_user_name: Joi.string().allow("").allow(null),
477
+ display_name: Joi.string().allow("").required(),
478
+ email: Joi.string().allow("").required(),
479
+ id: Joi.number().required(),
480
+ ifsc_code: Joi.string().allow("").required(),
481
+ is_active: Joi.boolean().required(),
482
+ mobile: Joi.string().allow(""),
483
+ modified_on: Joi.string().allow("").required(),
484
+ subtitle: Joi.string().allow("").required(),
485
+ title: Joi.string().allow("").required(),
486
+ transfer_mode: Joi.string().allow("").required(),
869
487
  });
870
488
  }
871
-
872
- static SetDefaultBeneficiaryResponse() {
489
+ static OrderBeneficiaryResponse() {
873
490
  return Joi.object({
874
- is_beneficiary_set: Joi.boolean().required(),
875
-
876
- success: Joi.boolean(),
491
+ beneficiaries: Joi.array().items(PaymentModel.OrderBeneficiaryDetails()),
492
+ show_beneficiary_details: Joi.boolean(),
877
493
  });
878
494
  }
879
-
880
- static GetPaymentLinkResponse() {
495
+ static PaymentFlow() {
881
496
  return Joi.object({
882
- external_order_id: Joi.string().allow("").allow(null),
883
-
884
- message: Joi.string().allow("").required(),
885
-
886
- polling_timeout: Joi.number().allow(null),
887
-
888
- payment_link_current_status: Joi.string().allow("").allow(null),
889
-
890
- merchant_name: Joi.string().allow("").allow(null),
891
-
892
- amount: Joi.number().allow(null),
893
-
894
- status_code: Joi.number().required(),
895
-
896
- payment_link_url: Joi.string().allow("").allow(null),
897
-
898
- success: Joi.boolean().required(),
497
+ bqr_razorpay: PaymentModel.AggregatorRoute(),
498
+ ccavenue: PaymentModel.AggregatorRoute(),
499
+ epaylater: PaymentModel.AggregatorRoute(),
500
+ fynd: PaymentModel.AggregatorRoute(),
501
+ jiopay: PaymentModel.AggregatorRoute(),
502
+ juspay: PaymentModel.AggregatorRoute(),
503
+ mswipe: PaymentModel.AggregatorRoute(),
504
+ payubiz: PaymentModel.AggregatorRoute(),
505
+ razorpay: PaymentModel.AggregatorRoute(),
506
+ rupifi: PaymentModel.AggregatorRoute(),
507
+ simpl: PaymentModel.AggregatorRoute(),
508
+ stripe: PaymentModel.AggregatorRoute(),
509
+ upi_razorpay: PaymentModel.AggregatorRoute(),
899
510
  });
900
511
  }
901
-
902
- static ErrorDescription() {
512
+ static PaymentInitializationRequest() {
903
513
  return Joi.object({
904
- expired: Joi.boolean().allow(null),
905
-
906
- invalid_id: Joi.boolean().allow(null),
907
-
908
- payment_transaction_id: Joi.string().allow("").allow(null),
909
-
910
- merchant_name: Joi.string().allow("").allow(null),
911
-
912
- amount: Joi.number().allow(null),
913
-
914
- cancelled: Joi.boolean().allow(null),
915
-
916
- msg: Joi.string().allow("").allow(null),
917
-
918
- merchant_order_id: Joi.string().allow("").allow(null),
514
+ aggregator: Joi.string().allow("").required(),
515
+ amount: Joi.number().allow(null).required(),
516
+ contact: Joi.string().allow("").required(),
517
+ currency: Joi.string().allow("").required(),
518
+ customer_id: Joi.string().allow("").required(),
519
+ email: Joi.string().allow("").required(),
520
+ merchant_order_id: Joi.string().allow("").required(),
521
+ method: Joi.string().allow("").required(),
522
+ order_id: Joi.string().allow("").required(),
523
+ razorpay_payment_id: Joi.string().allow("").allow(null),
524
+ timeout: Joi.number().allow(null),
525
+ vpa: Joi.string().allow("").allow(null),
526
+ });
527
+ }
528
+ static PaymentInitializationResponse() {
529
+ return Joi.object({
530
+ aggregator: Joi.string().allow("").required(),
531
+ aggregator_order_id: Joi.string().allow(""),
532
+ amount: Joi.number().allow(null),
533
+ bqr_image: Joi.string().allow("").allow(null),
534
+ currency: Joi.string().allow("").allow(null),
535
+ customer_id: Joi.string().allow("").allow(null),
536
+ merchant_order_id: Joi.string().allow("").required(),
537
+ method: Joi.string().allow("").required(),
538
+ polling_url: Joi.string().allow("").required(),
539
+ razorpay_payment_id: Joi.string().allow("").allow(null),
540
+ status: Joi.string().allow(""),
541
+ success: Joi.boolean().required(),
542
+ timeout: Joi.number().allow(null),
543
+ upi_poll_url: Joi.string().allow("").allow(null),
544
+ virtual_id: Joi.string().allow("").allow(null),
545
+ vpa: Joi.string().allow("").allow(null),
919
546
  });
920
547
  }
921
-
922
- static ErrorResponse() {
548
+ static PaymentMethodsMeta() {
923
549
  return Joi.object({
924
- status_code: Joi.number().required(),
925
-
926
- error: PaymentModel.ErrorDescription(),
927
-
928
- success: Joi.boolean().required(),
929
-
930
- message: Joi.string().allow("").required(),
550
+ merchant_code: Joi.string().allow("").required(),
551
+ payment_gateway: Joi.string().allow("").required(),
552
+ payment_identifier: Joi.string().allow("").required(),
931
553
  });
932
554
  }
933
-
934
- static CreatePaymentLinkMeta() {
555
+ static PaymentModeList() {
935
556
  return Joi.object({
936
- cart_id: Joi.string().allow("").required(),
937
-
938
- assign_card_id: Joi.string().allow("").allow(null),
939
-
940
- checkout_mode: Joi.string().allow("").required(),
941
-
942
- amount: Joi.string().allow("").required(),
943
-
944
- pincode: Joi.string().allow("").required(),
557
+ aggregator_name: Joi.string().allow("").required(),
558
+ card_brand: Joi.string().allow("").allow(null),
559
+ card_brand_image: Joi.string().allow("").allow(null),
560
+ card_fingerprint: Joi.string().allow("").allow(null),
561
+ card_id: Joi.string().allow("").allow(null),
562
+ card_isin: Joi.string().allow("").allow(null),
563
+ card_issuer: Joi.string().allow("").allow(null),
564
+ card_name: Joi.string().allow("").allow(null),
565
+ card_number: Joi.string().allow("").allow(null),
566
+ card_reference: Joi.string().allow("").allow(null),
567
+ card_token: Joi.string().allow("").allow(null),
568
+ card_type: Joi.string().allow("").allow(null),
569
+ cod_limit: Joi.number().allow(null),
570
+ cod_limit_per_order: Joi.number().allow(null),
571
+ code: Joi.string().allow("").allow(null),
572
+ compliant_with_tokenisation_guidelines: Joi.boolean().allow(null),
573
+ display_name: Joi.string().allow("").allow(null),
574
+ display_priority: Joi.number().allow(null),
575
+ exp_month: Joi.number().allow(null),
576
+ exp_year: Joi.number().allow(null),
577
+ expired: Joi.boolean().allow(null),
578
+ fynd_vpa: Joi.string().allow("").allow(null),
579
+ intent_app: Joi.array().items(PaymentModel.IntentApp()),
580
+ intent_app_error_dict_list: Joi.array().items(
581
+ PaymentModel.IntentAppErrorList()
582
+ ),
583
+ intent_app_error_list: Joi.array().items(Joi.string().allow("")),
584
+ intent_flow: Joi.boolean().allow(null),
585
+ logo_url: PaymentModel.PaymentModeLogo(),
586
+ merchant_code: Joi.string().allow("").allow(null),
587
+ name: Joi.string().allow("").allow(null),
588
+ nickname: Joi.string().allow("").allow(null),
589
+ remaining_limit: Joi.number().allow(null),
590
+ retry_count: Joi.number().allow(null),
591
+ timeout: Joi.number().allow(null),
945
592
  });
946
593
  }
947
-
948
- static CreatePaymentLinkRequest() {
594
+ static PaymentModeLogo() {
949
595
  return Joi.object({
950
- mobile_number: Joi.string().allow("").required(),
951
-
952
- meta: PaymentModel.CreatePaymentLinkMeta().required(),
953
-
954
- amount: Joi.number().required(),
955
-
956
- description: Joi.string().allow("").allow(null),
957
-
958
- email: Joi.string().allow("").required(),
959
-
960
- external_order_id: Joi.string().allow("").required(),
596
+ large: Joi.string().allow("").required(),
597
+ small: Joi.string().allow("").required(),
961
598
  });
962
599
  }
963
-
964
- static CreatePaymentLinkResponse() {
600
+ static PaymentModeRouteResponse() {
965
601
  return Joi.object({
966
- message: Joi.string().allow("").required(),
967
-
968
- polling_timeout: Joi.number().allow(null),
969
-
970
- status_code: Joi.number().required(),
971
-
972
- payment_link_id: Joi.string().allow("").allow(null),
973
-
974
- payment_link_url: Joi.string().allow("").allow(null),
975
-
602
+ payment_options: PaymentModel.PaymentOptionAndFlow().required(),
976
603
  success: Joi.boolean().required(),
977
604
  });
978
605
  }
979
-
980
- static CancelOrResendPaymentLinkRequest() {
606
+ static PaymentOptionAndFlow() {
981
607
  return Joi.object({
982
- payment_link_id: Joi.string().allow("").required(),
608
+ payment_flows: PaymentModel.PaymentFlow().required(),
609
+ payment_option: Joi.array()
610
+ .items(PaymentModel.RootPaymentMode())
611
+ .required(),
983
612
  });
984
613
  }
985
-
986
- static ResendPaymentLinkResponse() {
614
+ static PaymentStatusUpdateRequest() {
987
615
  return Joi.object({
988
- status_code: Joi.number().required(),
989
-
990
- polling_timeout: Joi.number().allow(null),
991
-
992
- success: Joi.boolean().required(),
993
-
994
- message: Joi.string().allow("").required(),
616
+ aggregator: Joi.string().allow("").required(),
617
+ amount: Joi.number().allow(null).required(),
618
+ contact: Joi.string().allow("").required(),
619
+ currency: Joi.string().allow("").required(),
620
+ customer_id: Joi.string().allow("").required(),
621
+ email: Joi.string().allow("").required(),
622
+ merchant_order_id: Joi.string().allow("").required(),
623
+ method: Joi.string().allow("").required(),
624
+ order_id: Joi.string().allow("").required(),
625
+ status: Joi.string().allow("").required(),
626
+ vpa: Joi.string().allow("").required(),
995
627
  });
996
628
  }
997
-
998
- static CancelPaymentLinkResponse() {
629
+ static PaymentStatusUpdateResponse() {
999
630
  return Joi.object({
1000
- status_code: Joi.number().required(),
1001
-
1002
- success: Joi.boolean().required(),
1003
-
1004
- message: Joi.string().allow("").required(),
631
+ aggregator_name: Joi.string().allow("").required(),
632
+ redirect_url: Joi.string().allow("").allow(null),
633
+ retry: Joi.boolean().required(),
634
+ status: Joi.string().allow("").required(),
635
+ success: Joi.boolean().allow(null),
1005
636
  });
1006
637
  }
1007
-
1008
638
  static PollingPaymentLinkResponse() {
1009
639
  return Joi.object({
640
+ aggregator_name: Joi.string().allow("").allow(null),
641
+ amount: Joi.number().allow(null),
1010
642
  http_status: Joi.number().allow(null),
1011
-
1012
- status: Joi.string().allow("").allow(null),
1013
-
1014
643
  message: Joi.string().allow("").allow(null),
1015
-
1016
644
  order_id: Joi.string().allow("").allow(null),
1017
-
1018
- success: Joi.boolean().allow(null),
1019
-
1020
- status_code: Joi.number().allow(null),
1021
-
1022
645
  payment_link_id: Joi.string().allow("").allow(null),
1023
-
1024
- amount: Joi.number().allow(null),
1025
-
1026
646
  redirect_url: Joi.string().allow("").allow(null),
1027
-
1028
- aggregator_name: Joi.string().allow("").allow(null),
647
+ status: Joi.string().allow("").allow(null),
648
+ status_code: Joi.number().allow(null),
649
+ success: Joi.boolean().allow(null),
1029
650
  });
1030
651
  }
1031
-
1032
- static PaymentMethodsMeta() {
652
+ static RedirectToAggregatorResponse() {
1033
653
  return Joi.object({
1034
- merchant_code: Joi.string().allow("").required(),
1035
-
1036
- payment_gateway: Joi.string().allow("").required(),
1037
-
1038
- payment_identifier: Joi.string().allow("").required(),
654
+ data: PaymentModel.RedirectURL().required(),
655
+ success: Joi.boolean().required(),
1039
656
  });
1040
657
  }
1041
-
1042
- static CreateOrderUserPaymentMethods() {
658
+ static RedirectURL() {
1043
659
  return Joi.object({
1044
- name: Joi.string().allow("").required(),
1045
-
1046
- meta: PaymentModel.PaymentMethodsMeta().required(),
1047
-
1048
- mode: Joi.string().allow("").required(),
660
+ signup_url: Joi.string().allow("").required(),
661
+ status: Joi.boolean().required(),
1049
662
  });
1050
663
  }
1051
-
1052
- static CreateOrderUserRequest() {
664
+ static RefundAccountResponse() {
1053
665
  return Joi.object({
1054
- success_callback_url: Joi.string().allow("").required(),
1055
-
1056
- meta: Joi.any().allow(null),
1057
-
1058
- failure_callback_url: Joi.string().allow("").required(),
1059
-
1060
- payment_link_id: Joi.string().allow("").required(),
1061
-
1062
- payment_methods: PaymentModel.CreateOrderUserPaymentMethods().required(),
1063
-
1064
- currency: Joi.string().allow("").required(),
666
+ data: Joi.any(),
667
+ is_verified_flag: Joi.boolean(),
668
+ message: Joi.string().allow("").required(),
669
+ success: Joi.boolean().required(),
1065
670
  });
1066
671
  }
1067
-
1068
- static CreateOrderUserData() {
672
+ static renderHTMLRequest() {
1069
673
  return Joi.object({
1070
- method: Joi.string().allow("").allow(null),
1071
-
1072
- merchant_order_id: Joi.string().allow("").allow(null),
1073
-
1074
- order_id: Joi.string().allow("").allow(null),
1075
-
1076
- contact: Joi.string().allow("").allow(null),
1077
-
1078
- amount: Joi.number().allow(null),
1079
-
1080
- callback_url: Joi.string().allow("").allow(null),
1081
-
1082
- customer_id: Joi.string().allow("").allow(null),
1083
-
1084
- currency: Joi.string().allow("").allow(null),
1085
-
1086
- email: Joi.string().allow("").allow(null),
1087
-
1088
- aggregator: Joi.string().allow("").allow(null),
674
+ base64_html: Joi.string().allow("").required(),
675
+ returntype: Joi.string().allow("").allow(null),
1089
676
  });
1090
677
  }
1091
-
1092
- static CreateOrderUserResponse() {
678
+ static renderHTMLResponse() {
1093
679
  return Joi.object({
1094
- message: Joi.string().allow("").required(),
1095
-
1096
- order_id: Joi.string().allow("").allow(null),
1097
-
1098
- data: PaymentModel.CreateOrderUserData(),
1099
-
1100
- callback_url: Joi.string().allow("").allow(null),
1101
-
680
+ html: Joi.string().allow("").required(),
681
+ });
682
+ }
683
+ static ResendOrCancelPaymentRequest() {
684
+ return Joi.object({
685
+ order_id: Joi.string().allow("").required(),
686
+ request_type: Joi.string().allow("").required(),
687
+ });
688
+ }
689
+ static ResendOrCancelPaymentResponse() {
690
+ return Joi.object({
691
+ data: PaymentModel.LinkStatus().required(),
692
+ success: Joi.boolean().required(),
693
+ });
694
+ }
695
+ static ResendPaymentLinkResponse() {
696
+ return Joi.object({
697
+ message: Joi.string().allow("").required(),
698
+ polling_timeout: Joi.number().allow(null),
1102
699
  status_code: Joi.number().required(),
1103
-
1104
- payment_confirm_url: Joi.string().allow("").allow(null),
1105
-
1106
700
  success: Joi.boolean().required(),
1107
701
  });
1108
702
  }
1109
-
1110
- static BalanceDetails() {
703
+ static RootPaymentMode() {
1111
704
  return Joi.object({
1112
- currency: Joi.string().allow("").required(),
1113
-
1114
- value: Joi.number().required(),
1115
-
1116
- formatted_value: Joi.string().allow("").required(),
705
+ add_card_enabled: Joi.boolean().allow(null),
706
+ aggregator_name: Joi.string().allow("").allow(null),
707
+ anonymous_enable: Joi.boolean().allow(null),
708
+ display_name: Joi.string().allow("").required(),
709
+ display_priority: Joi.number().required(),
710
+ is_pay_by_card_pl: Joi.boolean().allow(null),
711
+ list: Joi.array().items(PaymentModel.PaymentModeList()),
712
+ name: Joi.string().allow("").required(),
713
+ save_card: Joi.boolean().allow(null),
1117
714
  });
1118
715
  }
1119
-
1120
- static CreditSummary() {
716
+ static RupifiBannerData() {
1121
717
  return Joi.object({
1122
- merchant_customer_ref_id: Joi.string().allow("").required(),
1123
-
1124
- status_message: Joi.string().allow("").required(),
1125
-
1126
- status: Joi.string().allow("").required(),
1127
-
1128
- balance: PaymentModel.BalanceDetails(),
718
+ kyc_url: Joi.string().allow(""),
719
+ status: Joi.string().allow(""),
1129
720
  });
1130
721
  }
1131
-
1132
- static CustomerCreditSummaryResponse() {
722
+ static RupifiBannerResponse() {
1133
723
  return Joi.object({
1134
- data: PaymentModel.CreditSummary(),
1135
-
724
+ data: PaymentModel.RupifiBannerData().required(),
1136
725
  success: Joi.boolean().required(),
1137
726
  });
1138
727
  }
1139
-
1140
- static RedirectURL() {
728
+ static SetDefaultBeneficiaryRequest() {
1141
729
  return Joi.object({
1142
- signup_url: Joi.string().allow("").required(),
1143
-
1144
- status: Joi.boolean().required(),
730
+ beneficiary_id: Joi.string().allow("").required(),
731
+ order_id: Joi.string().allow("").required(),
1145
732
  });
1146
733
  }
1147
-
1148
- static RedirectToAggregatorResponse() {
734
+ static SetDefaultBeneficiaryResponse() {
1149
735
  return Joi.object({
1150
- data: PaymentModel.RedirectURL().required(),
1151
-
1152
- success: Joi.boolean().required(),
736
+ is_beneficiary_set: Joi.boolean().required(),
737
+ success: Joi.boolean(),
1153
738
  });
1154
739
  }
1155
-
1156
- static CreditDetail() {
740
+ static TransferItemsDetails() {
1157
741
  return Joi.object({
1158
- is_registered: Joi.boolean().required(),
1159
-
1160
- signup_url: Joi.string().allow("").required(),
1161
-
1162
- status: Joi.boolean().required(),
742
+ display_name: Joi.string().allow(""),
743
+ id: Joi.number().required(),
744
+ logo_large: Joi.string().allow("").required(),
745
+ logo_small: Joi.string().allow("").required(),
746
+ name: Joi.string().allow("").required(),
1163
747
  });
1164
748
  }
1165
-
1166
- static CheckCreditResponse() {
749
+ static TransferModeDetails() {
1167
750
  return Joi.object({
1168
- data: PaymentModel.CreditDetail().required(),
1169
-
1170
- success: Joi.boolean().required(),
751
+ display_name: Joi.string().allow("").required(),
752
+ items: Joi.array().items(PaymentModel.TransferItemsDetails()),
1171
753
  });
1172
754
  }
1173
-
1174
- static KYCAddress() {
755
+ static TransferModeResponse() {
1175
756
  return Joi.object({
1176
- land_mark: Joi.string().allow("").allow(null),
1177
-
1178
- state: Joi.string().allow("").required(),
1179
-
1180
- city: Joi.string().allow("").required(),
1181
-
1182
- addressline2: Joi.string().allow("").allow(null),
1183
-
1184
- ownership_type: Joi.string().allow("").allow(null),
1185
-
1186
- pincode: Joi.string().allow("").required(),
1187
-
1188
- addressline1: Joi.string().allow("").required(),
757
+ data: Joi.array().items(PaymentModel.TransferModeDetails()).required(),
758
+ });
759
+ }
760
+ static UpdateRefundTransferModeRequest() {
761
+ return Joi.object({
762
+ enable: Joi.boolean().required(),
763
+ transfer_mode: Joi.string().allow("").required(),
764
+ });
765
+ }
766
+ static UpdateRefundTransferModeResponse() {
767
+ return Joi.object({
768
+ success: Joi.boolean(),
1189
769
  });
1190
770
  }
1191
-
1192
771
  static UserPersonalInfoInDetails() {
1193
772
  return Joi.object({
1194
- driving_license: Joi.string().allow("").allow(null),
1195
-
1196
- mobile_verified: Joi.boolean().required(),
1197
-
1198
- dob: Joi.string().allow("").allow(null).required(),
1199
-
1200
773
  address_as_per_id: PaymentModel.KYCAddress().required(),
1201
-
774
+ dob: Joi.string().allow("").allow(null).required(),
775
+ driving_license: Joi.string().allow("").allow(null),
776
+ email: Joi.string().allow("").allow(null),
777
+ email_verified: Joi.boolean().required(),
1202
778
  fathers_name: Joi.string().allow("").allow(null),
1203
-
779
+ first_name: Joi.string().allow("").required(),
780
+ gender: Joi.string().allow("").allow(null),
781
+ last_name: Joi.string().allow("").allow(null),
782
+ middle_name: Joi.string().allow("").allow(null),
783
+ mobile_verified: Joi.boolean().required(),
784
+ mothers_name: Joi.string().allow("").allow(null),
1204
785
  pan: Joi.string().allow("").allow(null),
1205
-
1206
- email_verified: Joi.boolean().required(),
1207
-
1208
786
  passport: Joi.string().allow("").allow(null),
1209
-
1210
- mothers_name: Joi.string().allow("").allow(null),
1211
-
1212
- first_name: Joi.string().allow("").required(),
1213
-
1214
787
  phone: Joi.string().allow("").required(),
1215
-
1216
- middle_name: Joi.string().allow("").allow(null),
1217
-
1218
- last_name: Joi.string().allow("").allow(null),
1219
-
1220
788
  voter_id: Joi.string().allow("").allow(null),
1221
-
1222
- gender: Joi.string().allow("").allow(null),
1223
-
1224
- email: Joi.string().allow("").allow(null),
1225
789
  });
1226
790
  }
1227
-
1228
- static DeviceDetails() {
791
+ static ValidateCustomerRequest() {
1229
792
  return Joi.object({
1230
- identifier_type: Joi.string().allow("").allow(null),
1231
-
1232
- device_model: Joi.string().allow("").allow(null),
1233
-
1234
- os: Joi.string().allow("").allow(null),
1235
-
1236
- os_version: Joi.string().allow("").allow(null),
1237
-
1238
- device_make: Joi.string().allow("").allow(null),
1239
-
1240
- device_type: Joi.string().allow("").allow(null),
1241
-
1242
- identification_number: Joi.string().allow("").allow(null),
793
+ aggregator: Joi.string().allow("").required(),
794
+ billing_address: Joi.any(),
795
+ delivery_address: Joi.any(),
796
+ merchant_params: Joi.any(),
797
+ order_items: Joi.array().items(Joi.any()),
798
+ payload: Joi.string().allow("").allow(null),
799
+ phone_number: Joi.string().allow("").required(),
800
+ transaction_amount_in_paise: Joi.number().required(),
1243
801
  });
1244
802
  }
1245
-
1246
- static BusinessDetails() {
803
+ static ValidateCustomerResponse() {
1247
804
  return Joi.object({
1248
- entity_type: Joi.string().allow("").allow(null),
1249
-
1250
- fssai: Joi.string().allow("").allow(null),
1251
-
1252
- pan: Joi.string().allow("").allow(null),
1253
-
1254
- business_type: Joi.string().allow("").allow(null),
1255
-
1256
- fda: Joi.string().allow("").allow(null),
1257
-
1258
- shop_and_establishment: Joi.any(),
1259
-
1260
- name: Joi.string().allow("").allow(null),
1261
-
1262
- vintage: Joi.string().allow("").allow(null),
1263
-
1264
- business_ownership_type: Joi.string().allow("").allow(null),
1265
-
1266
- address: PaymentModel.KYCAddress(),
1267
-
1268
- gstin: Joi.string().allow("").allow(null),
805
+ data: Joi.any().required(),
806
+ message: Joi.string().allow("").required(),
807
+ success: Joi.boolean().required(),
1269
808
  });
1270
809
  }
1271
-
1272
- static MarketplaceInfo() {
810
+ static ValidateUPI() {
1273
811
  return Joi.object({
1274
- name: Joi.string().allow("").required(),
1275
-
1276
- membership_id: Joi.string().allow("").required(),
1277
-
1278
- date_of_joining: Joi.string().allow("").allow(null),
812
+ customer_name: Joi.string().allow("").required(),
813
+ is_valid: Joi.boolean().required(),
814
+ status: Joi.string().allow("").required(),
815
+ upi_vpa: Joi.string().allow("").required(),
1279
816
  });
1280
817
  }
1281
-
1282
- static CustomerOnboardingRequest() {
818
+ static ValidateVPARequest() {
1283
819
  return Joi.object({
1284
- personal_info: PaymentModel.UserPersonalInfoInDetails().required(),
1285
-
1286
- device: PaymentModel.DeviceDetails(),
1287
-
1288
- mcc: Joi.string().allow("").allow(null),
1289
-
1290
- source: Joi.string().allow("").required(),
1291
-
1292
- business_info: PaymentModel.BusinessDetails(),
1293
-
1294
- marketplace_info: PaymentModel.MarketplaceInfo(),
1295
-
1296
- aggregator: Joi.string().allow("").required(),
820
+ upi_vpa: Joi.string().allow("").required(),
1297
821
  });
1298
822
  }
1299
-
1300
- static OnboardSummary() {
823
+ static ValidateVPAResponse() {
1301
824
  return Joi.object({
1302
- redirect_url: Joi.string().allow("").required(),
1303
-
1304
- status: Joi.boolean().required(),
1305
-
1306
- session: Joi.any().required(),
825
+ data: PaymentModel.ValidateUPI().required(),
826
+ success: Joi.boolean().required(),
1307
827
  });
1308
828
  }
1309
-
1310
- static CustomerOnboardingResponse() {
829
+ static WalletOtpRequest() {
1311
830
  return Joi.object({
1312
- data: PaymentModel.OnboardSummary().required(),
1313
-
1314
- success: Joi.boolean().required(),
831
+ country_code: Joi.string().allow("").required(),
832
+ mobile: Joi.string().allow("").required(),
833
+ });
834
+ }
835
+ static WalletOtpResponse() {
836
+ return Joi.object({
837
+ is_verified_flag: Joi.string().allow("").required(),
838
+ request_id: Joi.string().allow("").required(),
839
+ success: Joi.boolean(),
840
+ });
841
+ }
842
+ static WrongOtpError() {
843
+ return Joi.object({
844
+ description: Joi.string().allow("").required(),
845
+ is_verified_flag: Joi.boolean().required(),
846
+ success: Joi.string().allow("").required(),
1315
847
  });
1316
848
  }
1317
849
  }