@gofynd/fdk-client-javascript 1.4.13 → 1.4.14

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 (294) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/ApplicationClient.d.ts +2 -0
  4. package/sdk/application/ApplicationClient.js +2 -0
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +60 -53
  6. package/sdk/application/Cart/CartApplicationClient.js +130 -53
  7. package/sdk/application/Cart/CartApplicationModel.d.ts +489 -143
  8. package/sdk/application/Cart/CartApplicationModel.js +380 -159
  9. package/sdk/application/Cart/CartApplicationValidator.d.ts +38 -19
  10. package/sdk/application/Cart/CartApplicationValidator.js +34 -18
  11. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +88 -68
  12. package/sdk/application/Catalog/CatalogApplicationClient.js +114 -94
  13. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +194 -142
  14. package/sdk/application/Catalog/CatalogApplicationModel.js +171 -133
  15. package/sdk/application/Common/CommonApplicationClient.d.ts +3 -2
  16. package/sdk/application/Common/CommonApplicationClient.js +6 -5
  17. package/sdk/application/Common/CommonApplicationModel.d.ts +9 -9
  18. package/sdk/application/Common/CommonApplicationModel.js +6 -6
  19. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +34 -27
  20. package/sdk/application/Configuration/ConfigurationApplicationClient.js +34 -27
  21. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +45 -57
  22. package/sdk/application/Configuration/ConfigurationApplicationModel.js +35 -47
  23. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +2 -2
  24. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +2 -2
  25. package/sdk/application/Content/ContentApplicationClient.d.ts +23 -33
  26. package/sdk/application/Content/ContentApplicationClient.js +54 -75
  27. package/sdk/application/Content/ContentApplicationModel.d.ts +93 -37
  28. package/sdk/application/Content/ContentApplicationModel.js +83 -32
  29. package/sdk/application/Content/ContentApplicationValidator.d.ts +23 -17
  30. package/sdk/application/Content/ContentApplicationValidator.js +15 -10
  31. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +9 -8
  32. package/sdk/application/FileStorage/FileStorageApplicationClient.js +14 -13
  33. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +23 -25
  34. package/sdk/application/FileStorage/FileStorageApplicationModel.js +16 -18
  35. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +6 -6
  36. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +6 -6
  37. package/sdk/application/Finance/FinanceApplicationClient.d.ts +36 -0
  38. package/sdk/application/Finance/FinanceApplicationClient.js +202 -0
  39. package/sdk/application/Finance/FinanceApplicationModel.d.ts +289 -0
  40. package/sdk/application/Finance/FinanceApplicationModel.js +208 -0
  41. package/sdk/application/Finance/FinanceApplicationValidator.d.ts +25 -0
  42. package/sdk/application/Finance/FinanceApplicationValidator.js +31 -0
  43. package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -3
  44. package/sdk/application/Lead/LeadApplicationClient.js +2 -3
  45. package/sdk/application/Lead/LeadApplicationModel.d.ts +11 -11
  46. package/sdk/application/Lead/LeadApplicationModel.js +19 -19
  47. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +39 -16
  48. package/sdk/application/Logistic/LogisticApplicationClient.js +189 -21
  49. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +532 -173
  50. package/sdk/application/Logistic/LogisticApplicationModel.js +409 -139
  51. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +54 -9
  52. package/sdk/application/Logistic/LogisticApplicationValidator.js +42 -8
  53. package/sdk/application/Order/OrderApplicationClient.d.ts +24 -10
  54. package/sdk/application/Order/OrderApplicationClient.js +96 -13
  55. package/sdk/application/Order/OrderApplicationModel.d.ts +434 -102
  56. package/sdk/application/Order/OrderApplicationModel.js +278 -73
  57. package/sdk/application/Order/OrderApplicationValidator.d.ts +17 -3
  58. package/sdk/application/Order/OrderApplicationValidator.js +15 -2
  59. package/sdk/application/Payment/PaymentApplicationClient.d.ts +96 -99
  60. package/sdk/application/Payment/PaymentApplicationClient.js +111 -114
  61. package/sdk/application/Payment/PaymentApplicationModel.d.ts +293 -289
  62. package/sdk/application/Payment/PaymentApplicationModel.js +243 -241
  63. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +46 -46
  64. package/sdk/application/Payment/PaymentApplicationValidator.js +46 -46
  65. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -16
  66. package/sdk/application/Rewards/RewardsApplicationClient.js +19 -22
  67. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +37 -37
  68. package/sdk/application/Rewards/RewardsApplicationModel.js +29 -29
  69. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +6 -6
  70. package/sdk/application/Rewards/RewardsApplicationValidator.js +6 -6
  71. package/sdk/application/Share/ShareApplicationModel.js +1 -1
  72. package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
  73. package/sdk/application/Theme/ThemeApplicationClient.js +8 -6
  74. package/sdk/application/Theme/ThemeApplicationModel.d.ts +48 -17
  75. package/sdk/application/Theme/ThemeApplicationModel.js +42 -22
  76. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +16 -3
  77. package/sdk/application/Theme/ThemeApplicationValidator.js +9 -2
  78. package/sdk/application/User/UserApplicationClient.d.ts +10 -10
  79. package/sdk/application/User/UserApplicationClient.js +10 -10
  80. package/sdk/application/User/UserApplicationModel.d.ts +17 -17
  81. package/sdk/application/User/UserApplicationModel.js +16 -16
  82. package/sdk/application/User/UserApplicationValidator.d.ts +2 -2
  83. package/sdk/application/User/UserApplicationValidator.js +2 -2
  84. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
  85. package/sdk/application/Webhook/WebhookApplicationClient.js +4 -4
  86. package/sdk/application/Webhook/WebhookApplicationModel.d.ts +11 -9
  87. package/sdk/application/Webhook/WebhookApplicationModel.js +8 -6
  88. package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +2 -2
  89. package/sdk/application/Webhook/WebhookApplicationValidator.js +2 -2
  90. package/sdk/application/index.d.ts +1 -0
  91. package/sdk/application/index.js +2 -0
  92. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +86 -12
  93. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +582 -24
  94. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +116 -19
  95. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +121 -14
  96. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +8 -1
  97. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +51 -4
  98. package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
  99. package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
  100. package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
  101. package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
  102. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +126 -20
  103. package/sdk/partner/Logistics/LogisticsPartnerClient.js +970 -20
  104. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +767 -85
  105. package/sdk/partner/Logistics/LogisticsPartnerModel.js +429 -76
  106. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +10 -0
  107. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +120 -6
  108. package/sdk/partner/Theme/ThemePartnerClient.d.ts +8 -10
  109. package/sdk/partner/Theme/ThemePartnerClient.js +14 -16
  110. package/sdk/partner/Theme/ThemePartnerModel.d.ts +96 -37
  111. package/sdk/partner/Theme/ThemePartnerModel.js +90 -36
  112. package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
  113. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +28 -18
  114. package/sdk/partner/Webhook/WebhookPartnerClient.js +103 -18
  115. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +612 -179
  116. package/sdk/partner/Webhook/WebhookPartnerModel.js +253 -150
  117. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +1 -0
  118. package/sdk/partner/Webhook/WebhookPartnerValidator.js +11 -3
  119. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +5 -4
  120. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +14 -8
  121. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +59 -9
  122. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +40 -4
  123. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
  124. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
  125. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +11 -130
  126. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +12 -152
  127. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
  128. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
  129. package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
  130. package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
  131. package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
  132. package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
  133. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
  134. package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
  135. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +134 -103
  136. package/sdk/platform/Cart/CartPlatformApplicationClient.js +407 -112
  137. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +111 -65
  138. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +106 -44
  139. package/sdk/platform/Cart/CartPlatformModel.d.ts +4978 -1303
  140. package/sdk/platform/Cart/CartPlatformModel.js +1922 -1217
  141. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +208 -183
  142. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +383 -358
  143. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +122 -126
  144. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +66 -68
  145. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +141 -118
  146. package/sdk/platform/Catalog/CatalogPlatformClient.js +193 -170
  147. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1516 -1766
  148. package/sdk/platform/Catalog/CatalogPlatformModel.js +1393 -1224
  149. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +18 -18
  150. package/sdk/platform/Catalog/CatalogPlatformValidator.js +18 -18
  151. package/sdk/platform/Common/CommonPlatformClient.d.ts +3 -2
  152. package/sdk/platform/Common/CommonPlatformClient.js +3 -2
  153. package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
  154. package/sdk/platform/Common/CommonPlatformModel.js +6 -6
  155. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +16 -17
  156. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +16 -17
  157. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
  158. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
  159. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +43 -33
  160. package/sdk/platform/Communication/CommunicationPlatformModel.js +38 -34
  161. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +46 -42
  162. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +47 -43
  163. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
  164. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +210 -212
  165. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
  166. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
  167. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +46 -33
  168. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +67 -54
  169. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
  170. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
  171. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +45 -24
  172. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +134 -30
  173. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +283 -124
  174. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +219 -94
  175. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
  176. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
  177. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +124 -141
  178. package/sdk/platform/Content/ContentPlatformApplicationClient.js +449 -422
  179. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +179 -141
  180. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +168 -130
  181. package/sdk/platform/Content/ContentPlatformClient.d.ts +142 -106
  182. package/sdk/platform/Content/ContentPlatformClient.js +523 -336
  183. package/sdk/platform/Content/ContentPlatformModel.d.ts +1241 -395
  184. package/sdk/platform/Content/ContentPlatformModel.js +521 -390
  185. package/sdk/platform/Content/ContentPlatformValidator.d.ts +168 -117
  186. package/sdk/platform/Content/ContentPlatformValidator.js +162 -108
  187. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +14 -12
  188. package/sdk/platform/Discount/DiscountPlatformClient.js +14 -12
  189. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
  190. package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
  191. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
  192. package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
  193. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +94 -36
  194. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +462 -60
  195. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +62 -15
  196. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +75 -13
  197. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
  198. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
  199. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +370 -101
  200. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +313 -84
  201. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  202. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  203. package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
  204. package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
  205. package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
  206. package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
  207. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +15 -4
  208. package/sdk/platform/Order/OrderPlatformApplicationClient.js +83 -5
  209. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +25 -4
  210. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +16 -3
  211. package/sdk/platform/Order/OrderPlatformClient.d.ts +178 -97
  212. package/sdk/platform/Order/OrderPlatformClient.js +589 -229
  213. package/sdk/platform/Order/OrderPlatformModel.d.ts +5447 -3071
  214. package/sdk/platform/Order/OrderPlatformModel.js +3496 -1653
  215. package/sdk/platform/Order/OrderPlatformValidator.d.ts +241 -176
  216. package/sdk/platform/Order/OrderPlatformValidator.js +153 -97
  217. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
  218. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
  219. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
  220. package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
  221. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +93 -105
  222. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +129 -141
  223. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +48 -48
  224. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +48 -48
  225. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
  226. package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
  227. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +327 -313
  228. package/sdk/platform/Payment/PaymentPlatformModel.js +283 -273
  229. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
  230. package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
  231. package/sdk/platform/PlatformClient.d.ts +0 -2
  232. package/sdk/platform/PlatformClient.js +0 -4
  233. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  234. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
  235. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
  236. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
  237. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
  238. package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
  239. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +45 -35
  240. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +117 -38
  241. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +22 -13
  242. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +24 -12
  243. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +40 -46
  244. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +58 -64
  245. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +602 -341
  246. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +483 -284
  247. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +8 -8
  248. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +8 -8
  249. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
  250. package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
  251. package/sdk/platform/Share/SharePlatformModel.d.ts +36 -5
  252. package/sdk/platform/Share/SharePlatformModel.js +27 -4
  253. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
  254. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +8 -4
  255. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +5 -0
  256. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +2 -0
  257. package/sdk/platform/Theme/ThemePlatformModel.d.ts +37 -11
  258. package/sdk/platform/Theme/ThemePlatformModel.js +33 -15
  259. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
  260. package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
  261. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
  262. package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
  263. package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
  264. package/sdk/platform/User/UserPlatformModel.js +23 -23
  265. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
  266. package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
  267. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +720 -427
  268. package/sdk/platform/Webhook/WebhookPlatformModel.js +410 -386
  269. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
  270. package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
  271. package/sdk/platform/index.d.ts +0 -1
  272. package/sdk/platform/index.js +0 -2
  273. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +3 -2
  274. package/sdk/public/Configuration/ConfigurationPublicClient.js +6 -5
  275. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
  276. package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
  277. package/sdk/public/Content/ContentPublicClient.d.ts +112 -2
  278. package/sdk/public/Content/ContentPublicClient.js +791 -5
  279. package/sdk/public/Content/ContentPublicModel.d.ts +549 -3
  280. package/sdk/public/Content/ContentPublicModel.js +649 -3
  281. package/sdk/public/Content/ContentPublicValidator.d.ts +69 -3
  282. package/sdk/public/Content/ContentPublicValidator.js +88 -2
  283. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  284. package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
  285. package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
  286. package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
  287. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  288. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  289. package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
  290. package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
  291. package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2890
  292. package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
  293. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
  294. package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
@@ -15,7 +15,7 @@ const Joi = require("joi");
15
15
  */
16
16
 
17
17
  /**
18
- * @typedef AggregatorsConfigDetailResponse
18
+ * @typedef AggregatorsConfigDetail
19
19
  * @property {boolean} success - Api response was successful or not.
20
20
  * @property {AggregatorConfigDetail} [razorpay]
21
21
  * @property {AggregatorConfigDetail} [juspay]
@@ -35,13 +35,13 @@ const Joi = require("joi");
35
35
  */
36
36
 
37
37
  /**
38
- * @typedef HttpErrorCodeAndResponse
38
+ * @typedef HttpErrorCodeDetails
39
39
  * @property {ErrorCodeAndDescription} [error]
40
40
  * @property {boolean} success - Response is successful or not.
41
41
  */
42
42
 
43
43
  /**
44
- * @typedef AttachCardRequest
44
+ * @typedef AttachCard
45
45
  * @property {string} [nickname] - Nickname of the card holder.
46
46
  * @property {boolean} [refresh] - Refresh cache flag.
47
47
  * @property {string} card_id - Card token of payment gateway.
@@ -49,7 +49,7 @@ const Joi = require("joi");
49
49
  */
50
50
 
51
51
  /**
52
- * @typedef AttachCardsResponse
52
+ * @typedef AttachCardsDetails
53
53
  * @property {Object} data - List of cards of customer.
54
54
  * @property {boolean} success - Response is successful or not.
55
55
  * @property {string} [message] - Human readable message.
@@ -63,7 +63,7 @@ const Joi = require("joi");
63
63
  */
64
64
 
65
65
  /**
66
- * @typedef ActiveCardPaymentGatewayResponse
66
+ * @typedef ActiveCardPaymentGatewayDetails
67
67
  * @property {CardPaymentGateway} cards
68
68
  * @property {boolean} success - Response is successful or not.
69
69
  * @property {string} message - Human readable message.
@@ -94,25 +94,25 @@ const Joi = require("joi");
94
94
  */
95
95
 
96
96
  /**
97
- * @typedef ListCardsResponse
97
+ * @typedef ListCardsDetails
98
98
  * @property {Card[]} [data] - List of cards of customer.
99
99
  * @property {boolean} success - Response is successful or not.
100
100
  * @property {string} message - Human readable message.
101
101
  */
102
102
 
103
103
  /**
104
- * @typedef DeletehCardRequest
104
+ * @typedef DeleteCard
105
105
  * @property {string} card_id - Card token of payment gateway.
106
106
  */
107
107
 
108
108
  /**
109
- * @typedef DeleteCardsResponse
109
+ * @typedef DeleteCardsDetails
110
110
  * @property {boolean} success - Response is successful or not.
111
111
  * @property {string} [message] - Human readable message.
112
112
  */
113
113
 
114
114
  /**
115
- * @typedef ValidateCustomerRequest
115
+ * @typedef ValidateCustomer
116
116
  * @property {string} aggregator - Payment gateway name in camelcase i.e Simple, Rupifi.
117
117
  * @property {number} transaction_amount_in_paise - Payable amount in paise.
118
118
  * @property {string} phone_number - User mobile number without country code.
@@ -124,14 +124,14 @@ const Joi = require("joi");
124
124
  */
125
125
 
126
126
  /**
127
- * @typedef ValidateCustomerResponse
127
+ * @typedef ValidateCustomerDetails
128
128
  * @property {Object} [data] - Payment gateway response data.
129
129
  * @property {boolean} success - Response is successful or not.
130
130
  * @property {string} message - Error or success message.
131
131
  */
132
132
 
133
133
  /**
134
- * @typedef ChargeCustomerRequest
134
+ * @typedef ChargeCustomer
135
135
  * @property {boolean} [verified] - Already Verified flag from payment gateway i.e Mswipe.
136
136
  * @property {string} aggregator - Payment gateway name i.e Simpl, Mswipe.
137
137
  * @property {string} order_id - Unique order id.
@@ -140,7 +140,7 @@ const Joi = require("joi");
140
140
  */
141
141
 
142
142
  /**
143
- * @typedef ChargeCustomerResponse
143
+ * @typedef ChargeCustomerDetails
144
144
  * @property {string} status - Status of charged payment.
145
145
  * @property {string} [cart_id] - Cart id of customer.
146
146
  * @property {boolean} success - Response is successful or not.
@@ -151,7 +151,7 @@ const Joi = require("joi");
151
151
  */
152
152
 
153
153
  /**
154
- * @typedef PaymentInitializationRequest
154
+ * @typedef PaymentInitialization
155
155
  * @property {string} [razorpay_payment_id] - Payment gateway payment id.
156
156
  * @property {string} method - Payment method.
157
157
  * @property {string} [device_id] - EDC machine Unique Identifier.
@@ -168,7 +168,7 @@ const Joi = require("joi");
168
168
  */
169
169
 
170
170
  /**
171
- * @typedef PaymentInitializationResponse
171
+ * @typedef PaymentInitializationDetails
172
172
  * @property {string} [status] - Status of payment.
173
173
  * @property {string} [razorpay_payment_id] - Payment id.
174
174
  * @property {string} [aggregator_order_id] - Payment order id.
@@ -189,8 +189,8 @@ const Joi = require("joi");
189
189
  */
190
190
 
191
191
  /**
192
- * @typedef PaymentStatusUpdateRequest
193
- * @property {string} [status] - Status of payment.
192
+ * @typedef PaymentStatusUpdate
193
+ * @property {string} status - Status of payment.
194
194
  * @property {string} [merchant_transaction_id] - Unique fynd transaction id.
195
195
  * @property {string} method - Payment method.
196
196
  * @property {string} [device_id] - EDC machine Unique Identifier.
@@ -199,14 +199,14 @@ const Joi = require("joi");
199
199
  * @property {string} [contact] - Customer valid mobile number.
200
200
  * @property {string} merchant_order_id - Unique fynd order id.
201
201
  * @property {string} [vpa] - Customer vpa address.
202
- * @property {string} [order_id] - Payment gateway order id.
202
+ * @property {string} order_id - Payment gateway order id.
203
203
  * @property {string} [currency] - Currency code.
204
204
  * @property {number} [amount] - Payable amount.
205
205
  * @property {string} [email] - Customer valid email.
206
206
  */
207
207
 
208
208
  /**
209
- * @typedef PaymentStatusUpdateResponse
209
+ * @typedef PaymentStatusUpdateDetails
210
210
  * @property {string} status - Payment status.
211
211
  * @property {boolean} [success] - Response is successful or not.
212
212
  * @property {boolean} retry - Response is successful or not.
@@ -369,7 +369,7 @@ const Joi = require("joi");
369
369
  */
370
370
 
371
371
  /**
372
- * @typedef PaymentModeRouteResponse
372
+ * @typedef PaymentModeRouteDetails
373
373
  * @property {PaymentOptionAndFlow} payment_options
374
374
  * @property {boolean} success - Response is successful or not.
375
375
  * @property {Object} [payment_breakup] - Payment Breakup for advance payment.
@@ -409,7 +409,7 @@ const Joi = require("joi");
409
409
  */
410
410
 
411
411
  /**
412
- * @typedef RupifiBannerResponse
412
+ * @typedef RupifiBannerDetails
413
413
  * @property {RupifiBannerData} data
414
414
  * @property {boolean} success - Successful or not.
415
415
  */
@@ -422,13 +422,13 @@ const Joi = require("joi");
422
422
  */
423
423
 
424
424
  /**
425
- * @typedef EpaylaterBannerResponse
425
+ * @typedef EpaylaterBannerDetails
426
426
  * @property {EpaylaterBannerData} data
427
427
  * @property {boolean} success - Successful or not.
428
428
  */
429
429
 
430
430
  /**
431
- * @typedef ResendOrCancelPaymentRequest
431
+ * @typedef ResendOrCancelPayment
432
432
  * @property {string} order_id - Unique order id.
433
433
  * @property {string} [device_id] - EDC machine Unique Identifier.
434
434
  * @property {string} request_type - Either resend or cancel.
@@ -443,24 +443,24 @@ const Joi = require("joi");
443
443
  */
444
444
 
445
445
  /**
446
- * @typedef ResendOrCancelPaymentResponse
446
+ * @typedef ResendOrCancelPaymentDetails
447
447
  * @property {LinkStatus} data
448
448
  * @property {boolean} success - Response is successful or not.
449
449
  */
450
450
 
451
451
  /**
452
- * @typedef renderHTMLRequest
452
+ * @typedef RenderHTML
453
453
  * @property {string} [returntype] - Return Type of API.
454
454
  * @property {string} base64_html - Base64 encoded html string.
455
455
  */
456
456
 
457
457
  /**
458
- * @typedef renderHTMLResponse
458
+ * @typedef RenderHTMLDetails
459
459
  * @property {string} html - HTML string.
460
460
  */
461
461
 
462
462
  /**
463
- * @typedef ValidateVPARequest
463
+ * @typedef ValidateVPA
464
464
  * @property {string} upi_vpa - UPI ID.
465
465
  * @property {string} [aggregator] - Aggregator slug.
466
466
  */
@@ -474,7 +474,7 @@ const Joi = require("joi");
474
474
  */
475
475
 
476
476
  /**
477
- * @typedef ValidateVPAResponse
477
+ * @typedef ValidateVPADetails
478
478
  * @property {ValidateUPI} data
479
479
  * @property {boolean} success - Response is successful or not.
480
480
  */
@@ -501,7 +501,7 @@ const Joi = require("joi");
501
501
  */
502
502
 
503
503
  /**
504
- * @typedef CardDetailsResponse
504
+ * @typedef CardDetailsFetchedDetails
505
505
  * @property {CardDetails} data
506
506
  * @property {boolean} success - Response is successful or not.
507
507
  */
@@ -522,24 +522,24 @@ const Joi = require("joi");
522
522
  */
523
523
 
524
524
  /**
525
- * @typedef TransferModeResponse
525
+ * @typedef TransferModeFetchDetails
526
526
  * @property {TransferModeDetails[]} data - Response Object.
527
527
  */
528
528
 
529
529
  /**
530
- * @typedef UpdateRefundTransferModeRequest
530
+ * @typedef UpdateRefundTransferMode
531
531
  * @property {boolean} enable - True for enabling the Transfer Mode.
532
532
  * @property {string} transfer_mode - Transfer Mode of the Beneficiary to be added.
533
533
  */
534
534
 
535
535
  /**
536
- * @typedef UpdateRefundTransferModeResponse
536
+ * @typedef RefundTransferModeUpdateDetails
537
537
  * @property {boolean} [success] - Response is successful or not.
538
538
  */
539
539
 
540
540
  /**
541
541
  * @typedef OrderBeneficiaryDetails
542
- * @property {string} modified_on - MOdification Date of Beneficiary.
542
+ * @property {string} modified_on - Modification Date of Beneficiary.
543
543
  * @property {string} account_no - Account Number.
544
544
  * @property {string} [mobile] - MObile no of User.
545
545
  * @property {string} bank_name - Bank Name Of Account.
@@ -561,7 +561,7 @@ const Joi = require("joi");
561
561
  */
562
562
 
563
563
  /**
564
- * @typedef OrderBeneficiaryResponse
564
+ * @typedef OrderBeneficiaryFetchDetails
565
565
  * @property {boolean} [show_beneficiary_details] - Show beneficiary details or not.
566
566
  * @property {OrderBeneficiaryDetails[]} [beneficiaries] - All Beneficiaries Of An Order.
567
567
  */
@@ -574,7 +574,7 @@ const Joi = require("joi");
574
574
  */
575
575
 
576
576
  /**
577
- * @typedef IfscCodeResponse
577
+ * @typedef IfscCodeDetails
578
578
  * @property {string} branch_name - Branch Name Of Account.
579
579
  * @property {boolean} [success] - Response is successful or not.
580
580
  * @property {string} bank_name - Bank Name Of Account.
@@ -588,14 +588,14 @@ const Joi = require("joi");
588
588
  */
589
589
 
590
590
  /**
591
- * @typedef AddBeneficiaryViaOtpVerificationRequest
591
+ * @typedef AddBeneficiaryViaOtpVerification
592
592
  * @property {string} request_id - Request id.
593
593
  * @property {string} hash_key - Hash key of the beneficiary Id.
594
594
  * @property {string} otp - Otp sent to the given Mobile No.
595
595
  */
596
596
 
597
597
  /**
598
- * @typedef AddBeneficiaryViaOtpVerificationResponse
598
+ * @typedef AddBeneficiaryViaOtpVerificationDetails
599
599
  * @property {boolean} [success] - Response is successful or not.
600
600
  * @property {string} message - Aggregator Response of beneficiary.
601
601
  */
@@ -623,7 +623,7 @@ const Joi = require("joi");
623
623
  */
624
624
 
625
625
  /**
626
- * @typedef AddBeneficiaryDetailsRequest
626
+ * @typedef AddBeneficiaryDetails
627
627
  * @property {boolean} delights - True if beneficiary to be added by delights or
628
628
  * False if by User.
629
629
  * @property {string} shipment_id - Shipment Id of the respective Merchant Order Id.
@@ -635,7 +635,7 @@ const Joi = require("joi");
635
635
  */
636
636
 
637
637
  /**
638
- * @typedef RefundAccountResponse
638
+ * @typedef RefundAccountDetails
639
639
  * @property {boolean} [is_verified_flag] - Flag for verification of refund.
640
640
  * @property {Object} [data] - Refund account data.
641
641
  * @property {boolean} success - Success or failure flag.
@@ -652,19 +652,19 @@ const Joi = require("joi");
652
652
  */
653
653
 
654
654
  /**
655
- * @typedef AddBeneficiaryDetailsOTPRequest
655
+ * @typedef AddBeneficiaryDetailsOTP
656
656
  * @property {string} order_id - Unique identifier for an order.
657
657
  * @property {BankDetailsForOTP} details
658
658
  */
659
659
 
660
660
  /**
661
- * @typedef WalletOtpRequest
661
+ * @typedef WalletOtp
662
662
  * @property {string} country_code - Country Code of the Mobile Number.
663
663
  * @property {string} mobile - Wallet Mobile Number of the User.
664
664
  */
665
665
 
666
666
  /**
667
- * @typedef WalletOtpResponse
667
+ * @typedef WalletOtpDetails
668
668
  * @property {string} request_id - Request Id for wallet otp request.
669
669
  * @property {string} is_verified_flag - Boolean Flag whether OTP Validation is
670
670
  * already done or not.
@@ -672,19 +672,19 @@ const Joi = require("joi");
672
672
  */
673
673
 
674
674
  /**
675
- * @typedef SetDefaultBeneficiaryRequest
675
+ * @typedef SetDefaultBeneficiary
676
676
  * @property {string} order_id - Merchant Order Id.
677
677
  * @property {string} beneficiary_id - Beneficiary Hash Id of the beneficiary added.
678
678
  */
679
679
 
680
680
  /**
681
- * @typedef SetDefaultBeneficiaryResponse
681
+ * @typedef SetDefaultBeneficiaryDetails
682
682
  * @property {boolean} is_beneficiary_set - Boolean Flag whether Beneficiary set or not.
683
683
  * @property {boolean} [success] - Response is successful or not.
684
684
  */
685
685
 
686
686
  /**
687
- * @typedef GetPaymentLinkResponse
687
+ * @typedef GetPaymentLinkDetails
688
688
  * @property {number} status_code - HTTP status code.
689
689
  * @property {string} [payment_link_current_status] - Status of payment link.
690
690
  * @property {boolean} success - Successful or failure.
@@ -709,7 +709,7 @@ const Joi = require("joi");
709
709
  */
710
710
 
711
711
  /**
712
- * @typedef ErrorResponse
712
+ * @typedef ErrorDetails
713
713
  * @property {number} status_code - HTTP status code.
714
714
  * @property {ErrorDescription} [error]
715
715
  * @property {string} message - Detailed message.
@@ -727,7 +727,7 @@ const Joi = require("joi");
727
727
  */
728
728
 
729
729
  /**
730
- * @typedef CreatePaymentLinkRequest
730
+ * @typedef CreatePaymentLink
731
731
  * @property {string} [description] - Merchant order id.
732
732
  * @property {string} external_order_id - Merchant order id.
733
733
  * @property {string} mobile_number - Mobile number to which the payment link is
@@ -735,10 +735,14 @@ const Joi = require("joi");
735
735
  * @property {number} amount - Total value of order.
736
736
  * @property {CreatePaymentLinkMeta} meta
737
737
  * @property {string} email - Email to which the payment link is to be sent.
738
+ * @property {string} [success_redirection_url] - URL to which the user will be
739
+ * redirected after a successful payment.
740
+ * @property {string} [failure_redirection_url] - URL to which the user will be
741
+ * redirected if the payment fails.
738
742
  */
739
743
 
740
744
  /**
741
- * @typedef CreatePaymentLinkResponse
745
+ * @typedef CreatePaymentLinkDetails
742
746
  * @property {number} status_code - HTTP status code.
743
747
  * @property {boolean} success - Successful or failure.
744
748
  * @property {number} [polling_timeout] - Polling request timeout.
@@ -748,12 +752,12 @@ const Joi = require("joi");
748
752
  */
749
753
 
750
754
  /**
751
- * @typedef CancelOrResendPaymentLinkRequest
755
+ * @typedef CancelOrResendPaymentLink
752
756
  * @property {string} payment_link_id - Unique id of payment link.
753
757
  */
754
758
 
755
759
  /**
756
- * @typedef ResendPaymentLinkResponse
760
+ * @typedef ResendPaymentLinkDetails
757
761
  * @property {number} status_code - HTTP status code.
758
762
  * @property {number} [polling_timeout] - Polling request timeout.
759
763
  * @property {boolean} success - Successful or failure.
@@ -761,14 +765,14 @@ const Joi = require("joi");
761
765
  */
762
766
 
763
767
  /**
764
- * @typedef CancelPaymentLinkResponse
768
+ * @typedef CancelPaymentLinkDetails
765
769
  * @property {number} status_code - HTTP status code.
766
770
  * @property {boolean} success - Successful or failure.
767
771
  * @property {string} message - Detailed message.
768
772
  */
769
773
 
770
774
  /**
771
- * @typedef PollingPaymentLinkResponse
775
+ * @typedef PollingPaymentLinkDetails
772
776
  * @property {string} [status] - Status of payment link.
773
777
  * @property {number} [status_code] - HTTP status code.
774
778
  * @property {boolean} [success] - Successful or failure.
@@ -796,12 +800,10 @@ const Joi = require("joi");
796
800
  */
797
801
 
798
802
  /**
799
- * @typedef CreateOrderUserRequest
800
- * @property {string} failure_callback_url - Failure page url.
803
+ * @typedef CreateOrderUser
801
804
  * @property {string} currency - Currency of the transaction.
802
805
  * @property {string} payment_link_id - Unique id of payment link.
803
806
  * @property {CreateOrderUserPaymentMethods} payment_methods
804
- * @property {string} success_callback_url - Success page url.
805
807
  * @property {Object} [meta] - Meta details.
806
808
  */
807
809
 
@@ -820,7 +822,7 @@ const Joi = require("joi");
820
822
  */
821
823
 
822
824
  /**
823
- * @typedef CreateOrderUserResponse
825
+ * @typedef CreateOrderUserDetails
824
826
  * @property {number} status_code - HTTP status code.
825
827
  * @property {boolean} success - Successful or failure.
826
828
  * @property {CreateOrderUserData} [data]
@@ -857,7 +859,7 @@ const Joi = require("joi");
857
859
  */
858
860
 
859
861
  /**
860
- * @typedef CustomerCreditSummaryResponse
862
+ * @typedef CustomerCreditSummaryDetails
861
863
  * @property {CreditSummary} [data]
862
864
  * @property {boolean} success - Payment confirmation updated or not.
863
865
  */
@@ -869,7 +871,7 @@ const Joi = require("joi");
869
871
  */
870
872
 
871
873
  /**
872
- * @typedef RedirectToAggregatorResponse
874
+ * @typedef RedirectToAggregatorDetails
873
875
  * @property {RedirectURL} data
874
876
  * @property {boolean} success - Status updated or not.
875
877
  */
@@ -882,7 +884,7 @@ const Joi = require("joi");
882
884
  */
883
885
 
884
886
  /**
885
- * @typedef CheckCreditResponse
887
+ * @typedef CheckCreditDetails
886
888
  * @property {CreditDetail} data
887
889
  * @property {boolean} success - Operation is successful or not.
888
890
  */
@@ -956,7 +958,7 @@ const Joi = require("joi");
956
958
  */
957
959
 
958
960
  /**
959
- * @typedef CustomerOnboardingRequest
961
+ * @typedef CustomerOnboarding
960
962
  * @property {UserPersonalInfoInDetails} [personal_info]
961
963
  * @property {string} [mcc] - Merchant Category Code, indicating the type of business.
962
964
  * @property {string} aggregator - Payment aggregator handling the transaction.
@@ -978,29 +980,29 @@ const Joi = require("joi");
978
980
  */
979
981
 
980
982
  /**
981
- * @typedef CustomerOnboardingResponse
983
+ * @typedef CustomerOnboardingDetails
982
984
  * @property {OnboardSummary} data
983
985
  * @property {boolean} success - Status updated or not.
984
986
  */
985
987
 
986
988
  /**
987
- * @typedef OutstandingOrderDetailsResponse
988
- * @property {number} status_code - HTTP Status code.
989
+ * @typedef OutstandingOrderDetails
990
+ * @property {number} status_code - HTTP status code.
989
991
  * @property {Object[]} [data] - Dict containing the outstanding order details.
990
992
  * @property {boolean} success - Response is successful or not.
991
993
  * @property {string} [message] - Message.
992
994
  */
993
995
 
994
996
  /**
995
- * @typedef PaidOrderDetailsResponse
996
- * @property {number} status_code - HTTP Status code.
997
+ * @typedef PaidOrderDetails
998
+ * @property {number} status_code - HTTP status code.
997
999
  * @property {Object[]} [data] - Dict containing the paid order details.
998
1000
  * @property {boolean} success - Response is successful or not.
999
1001
  * @property {string} [message] - Message.
1000
1002
  */
1001
1003
 
1002
1004
  /**
1003
- * @typedef DeleteRefundAccountResponse
1005
+ * @typedef DeleteRefundAccountDetails
1004
1006
  * @property {boolean} success - Success/Failure of the deleted beneficiary.
1005
1007
  * @property {string} message - Message.
1006
1008
  */
@@ -1026,7 +1028,7 @@ const Joi = require("joi");
1026
1028
  */
1027
1029
 
1028
1030
  /**
1029
- * @typedef RefundOptionResponse
1031
+ * @typedef RefundOptionDetails
1030
1032
  * @property {OfflineRefundOptions} offline_refund_options - Available offline
1031
1033
  * refund options data.
1032
1034
  * @property {boolean} success - Success/Failure Of response.
@@ -1034,7 +1036,7 @@ const Joi = require("joi");
1034
1036
  */
1035
1037
 
1036
1038
  /**
1037
- * @typedef SelectedRefundOptionResponse
1039
+ * @typedef SelectedRefundOptionDetails
1038
1040
  * @property {Object} transfer_mode - Selected transfer mode for given shipment.
1039
1041
  * @property {string} shipment_id - ID of the shipment.
1040
1042
  * @property {string} message - Detailed message.
@@ -1090,7 +1092,7 @@ const Joi = require("joi");
1090
1092
  */
1091
1093
 
1092
1094
  /**
1093
- * @typedef OrderBeneficiaryResponseSchemaV2
1095
+ * @typedef OrderBeneficiaryDetailsSchemaV2
1094
1096
  * @property {boolean} show_beneficiary_details - Show Beneficiary details on UI or not.
1095
1097
  * @property {BeneficiaryRefundOptions} data - Beneficiary Data for Bank
1096
1098
  * account, UPI and Wallets.
@@ -1098,7 +1100,7 @@ const Joi = require("joi");
1098
1100
  */
1099
1101
 
1100
1102
  /**
1101
- * @typedef ValidateValidateAddressRequest
1103
+ * @typedef ValidateValidateAddress
1102
1104
  * @property {string} [ifsc_code] - IFSC Code.
1103
1105
  * @property {string} [upi_vpa] - VPA Address.
1104
1106
  * @property {string} [aggregator] - Aggregator Name.
@@ -1113,7 +1115,7 @@ const Joi = require("joi");
1113
1115
  */
1114
1116
 
1115
1117
  /**
1116
- * @typedef ValidateValidateAddressResponse
1118
+ * @typedef ValidateValidateAddressDetails
1117
1119
  * @property {VPADetails} [upi] - UPI validation details.
1118
1120
  * @property {boolean} success - Whether address validation is successful or not.
1119
1121
  * @property {Object} [ifsc] - IFSC details response data.
@@ -1136,7 +1138,7 @@ const Joi = require("joi");
1136
1138
  */
1137
1139
 
1138
1140
  /**
1139
- * @typedef PaymentOrderRequest
1141
+ * @typedef PaymentOrder
1140
1142
  * @property {PaymentOrderMethods[]} [payment_methods] - All payment methods for order.
1141
1143
  * @property {string} order_id - Order id.
1142
1144
  * @property {string} [shipment_id] - Shipment_id.
@@ -1157,7 +1159,7 @@ const Joi = require("joi");
1157
1159
  */
1158
1160
 
1159
1161
  /**
1160
- * @typedef PaymentOrderResponse
1162
+ * @typedef PaymentOrderDetails
1161
1163
  * @property {string} [payment_confirm_url] - Payment confirm url for aggregator.
1162
1164
  * @property {string} [callback_url] - Callback url for aggregator.
1163
1165
  * @property {string} [order_id] - Merchant order id.
@@ -1168,7 +1170,7 @@ const Joi = require("joi");
1168
1170
  */
1169
1171
 
1170
1172
  /**
1171
- * @typedef ShipmentRefundRequest
1173
+ * @typedef ShipmentRefund
1172
1174
  * @property {string} shipment_id - Shipment Id of the respective Merchant Order Id.
1173
1175
  * @property {string} order_id - Merchant Order Id.
1174
1176
  * @property {string} transfer_mode - Transfer Mode of the Beneficiary to be added.
@@ -1186,7 +1188,7 @@ const Joi = require("joi");
1186
1188
  */
1187
1189
 
1188
1190
  /**
1189
- * @typedef ShipmentRefundResponse
1191
+ * @typedef ShipmentRefundDetails
1190
1192
  * @property {ShipmentRefundDetail} data - Selected Shipment refund option details.
1191
1193
  * @property {boolean} success - Successful or not.
1192
1194
  * @property {string} message - Detailed message.
@@ -1209,8 +1211,8 @@ class PaymentApplicationModel {
1209
1211
  });
1210
1212
  }
1211
1213
 
1212
- /** @returns {AggregatorsConfigDetailResponse} */
1213
- static AggregatorsConfigDetailResponse() {
1214
+ /** @returns {AggregatorsConfigDetail} */
1215
+ static AggregatorsConfigDetail() {
1214
1216
  return Joi.object({
1215
1217
  success: Joi.boolean().required(),
1216
1218
  razorpay: PaymentApplicationModel.AggregatorConfigDetail(),
@@ -1233,28 +1235,28 @@ class PaymentApplicationModel {
1233
1235
  });
1234
1236
  }
1235
1237
 
1236
- /** @returns {HttpErrorCodeAndResponse} */
1237
- static HttpErrorCodeAndResponse() {
1238
+ /** @returns {HttpErrorCodeDetails} */
1239
+ static HttpErrorCodeDetails() {
1238
1240
  return Joi.object({
1239
1241
  error: PaymentApplicationModel.ErrorCodeAndDescription(),
1240
1242
  success: Joi.boolean().required(),
1241
1243
  });
1242
1244
  }
1243
1245
 
1244
- /** @returns {AttachCardRequest} */
1245
- static AttachCardRequest() {
1246
+ /** @returns {AttachCard} */
1247
+ static AttachCard() {
1246
1248
  return Joi.object({
1247
1249
  nickname: Joi.string().allow(""),
1248
1250
  refresh: Joi.boolean().allow(null),
1249
- card_id: Joi.string().allow("").allow(null).required(),
1251
+ card_id: Joi.string().allow("").required(),
1250
1252
  name_on_card: Joi.string().allow(""),
1251
1253
  });
1252
1254
  }
1253
1255
 
1254
- /** @returns {AttachCardsResponse} */
1255
- static AttachCardsResponse() {
1256
+ /** @returns {AttachCardsDetails} */
1257
+ static AttachCardsDetails() {
1256
1258
  return Joi.object({
1257
- data: Joi.any().required(),
1259
+ data: Joi.object().pattern(/\S/, Joi.any()).required(),
1258
1260
  success: Joi.boolean().required(),
1259
1261
  message: Joi.string().allow(""),
1260
1262
  });
@@ -1269,8 +1271,8 @@ class PaymentApplicationModel {
1269
1271
  });
1270
1272
  }
1271
1273
 
1272
- /** @returns {ActiveCardPaymentGatewayResponse} */
1273
- static ActiveCardPaymentGatewayResponse() {
1274
+ /** @returns {ActiveCardPaymentGatewayDetails} */
1275
+ static ActiveCardPaymentGatewayDetails() {
1274
1276
  return Joi.object({
1275
1277
  cards: PaymentApplicationModel.CardPaymentGateway().required(),
1276
1278
  success: Joi.boolean().required(),
@@ -1301,8 +1303,8 @@ class PaymentApplicationModel {
1301
1303
  });
1302
1304
  }
1303
1305
 
1304
- /** @returns {ListCardsResponse} */
1305
- static ListCardsResponse() {
1306
+ /** @returns {ListCardsDetails} */
1307
+ static ListCardsDetails() {
1306
1308
  return Joi.object({
1307
1309
  data: Joi.array().items(PaymentApplicationModel.Card()),
1308
1310
  success: Joi.boolean().required(),
@@ -1310,57 +1312,57 @@ class PaymentApplicationModel {
1310
1312
  });
1311
1313
  }
1312
1314
 
1313
- /** @returns {DeletehCardRequest} */
1314
- static DeletehCardRequest() {
1315
+ /** @returns {DeleteCard} */
1316
+ static DeleteCard() {
1315
1317
  return Joi.object({
1316
- card_id: Joi.string().allow("").allow(null).required(),
1318
+ card_id: Joi.string().allow("").required(),
1317
1319
  });
1318
1320
  }
1319
1321
 
1320
- /** @returns {DeleteCardsResponse} */
1321
- static DeleteCardsResponse() {
1322
+ /** @returns {DeleteCardsDetails} */
1323
+ static DeleteCardsDetails() {
1322
1324
  return Joi.object({
1323
1325
  success: Joi.boolean().required(),
1324
1326
  message: Joi.string().allow("").allow(null),
1325
1327
  });
1326
1328
  }
1327
1329
 
1328
- /** @returns {ValidateCustomerRequest} */
1329
- static ValidateCustomerRequest() {
1330
+ /** @returns {ValidateCustomer} */
1331
+ static ValidateCustomer() {
1330
1332
  return Joi.object({
1331
1333
  aggregator: Joi.string().allow("").required(),
1332
1334
  transaction_amount_in_paise: Joi.number().required(),
1333
1335
  phone_number: Joi.string().allow("").required(),
1334
- billing_address: Joi.any(),
1336
+ billing_address: Joi.object().pattern(/\S/, Joi.any()),
1335
1337
  order_items: Joi.array().items(Joi.any()),
1336
1338
  payload: Joi.string().allow("").allow(null),
1337
- merchant_params: Joi.any(),
1338
- delivery_address: Joi.any(),
1339
+ merchant_params: Joi.object().pattern(/\S/, Joi.any()),
1340
+ delivery_address: Joi.object().pattern(/\S/, Joi.any()),
1339
1341
  });
1340
1342
  }
1341
1343
 
1342
- /** @returns {ValidateCustomerResponse} */
1343
- static ValidateCustomerResponse() {
1344
+ /** @returns {ValidateCustomerDetails} */
1345
+ static ValidateCustomerDetails() {
1344
1346
  return Joi.object({
1345
- data: Joi.any(),
1347
+ data: Joi.object().pattern(/\S/, Joi.any()),
1346
1348
  success: Joi.boolean().required(),
1347
1349
  message: Joi.string().allow("").required(),
1348
1350
  });
1349
1351
  }
1350
1352
 
1351
- /** @returns {ChargeCustomerRequest} */
1352
- static ChargeCustomerRequest() {
1353
+ /** @returns {ChargeCustomer} */
1354
+ static ChargeCustomer() {
1353
1355
  return Joi.object({
1354
1356
  verified: Joi.boolean().allow(null),
1355
1357
  aggregator: Joi.string().allow("").required(),
1356
1358
  order_id: Joi.string().allow("").required(),
1357
1359
  transaction_token: Joi.string().allow("").allow(null),
1358
- amount: Joi.number().allow(null).required(),
1360
+ amount: Joi.number().required(),
1359
1361
  });
1360
1362
  }
1361
1363
 
1362
- /** @returns {ChargeCustomerResponse} */
1363
- static ChargeCustomerResponse() {
1364
+ /** @returns {ChargeCustomerDetails} */
1365
+ static ChargeCustomerDetails() {
1364
1366
  return Joi.object({
1365
1367
  status: Joi.string().allow("").required(),
1366
1368
  cart_id: Joi.string().allow("").allow(null),
@@ -1372,8 +1374,8 @@ class PaymentApplicationModel {
1372
1374
  });
1373
1375
  }
1374
1376
 
1375
- /** @returns {PaymentInitializationRequest} */
1376
- static PaymentInitializationRequest() {
1377
+ /** @returns {PaymentInitialization} */
1378
+ static PaymentInitialization() {
1377
1379
  return Joi.object({
1378
1380
  razorpay_payment_id: Joi.string().allow("").allow(null),
1379
1381
  method: Joi.string().allow("").required(),
@@ -1386,13 +1388,13 @@ class PaymentApplicationModel {
1386
1388
  order_id: Joi.string().allow("").required(),
1387
1389
  currency: Joi.string().allow("").required(),
1388
1390
  timeout: Joi.number().allow(null),
1389
- amount: Joi.number().allow(null).required(),
1391
+ amount: Joi.number().required(),
1390
1392
  email: Joi.string().allow("").required(),
1391
1393
  });
1392
1394
  }
1393
1395
 
1394
- /** @returns {PaymentInitializationResponse} */
1395
- static PaymentInitializationResponse() {
1396
+ /** @returns {PaymentInitializationDetails} */
1397
+ static PaymentInitializationDetails() {
1396
1398
  return Joi.object({
1397
1399
  status: Joi.string().allow(""),
1398
1400
  razorpay_payment_id: Joi.string().allow("").allow(null),
@@ -1414,10 +1416,10 @@ class PaymentApplicationModel {
1414
1416
  });
1415
1417
  }
1416
1418
 
1417
- /** @returns {PaymentStatusUpdateRequest} */
1418
- static PaymentStatusUpdateRequest() {
1419
+ /** @returns {PaymentStatusUpdate} */
1420
+ static PaymentStatusUpdate() {
1419
1421
  return Joi.object({
1420
- status: Joi.string().allow(""),
1422
+ status: Joi.string().allow("").required(),
1421
1423
  merchant_transaction_id: Joi.string().allow(""),
1422
1424
  method: Joi.string().allow("").required(),
1423
1425
  device_id: Joi.string().allow("").allow(null),
@@ -1426,15 +1428,15 @@ class PaymentApplicationModel {
1426
1428
  contact: Joi.string().allow(""),
1427
1429
  merchant_order_id: Joi.string().allow("").required(),
1428
1430
  vpa: Joi.string().allow(""),
1429
- order_id: Joi.string().allow(""),
1431
+ order_id: Joi.string().allow("").required(),
1430
1432
  currency: Joi.string().allow(""),
1431
1433
  amount: Joi.number().allow(null),
1432
1434
  email: Joi.string().allow(""),
1433
1435
  });
1434
1436
  }
1435
1437
 
1436
- /** @returns {PaymentStatusUpdateResponse} */
1437
- static PaymentStatusUpdateResponse() {
1438
+ /** @returns {PaymentStatusUpdateDetails} */
1439
+ static PaymentStatusUpdateDetails() {
1438
1440
  return Joi.object({
1439
1441
  status: Joi.string().allow("").required(),
1440
1442
  success: Joi.boolean().allow(null),
@@ -1512,7 +1514,7 @@ class PaymentApplicationModel {
1512
1514
  timeout: Joi.number().allow(null),
1513
1515
  card_token: Joi.string().allow("").allow(null),
1514
1516
  name: Joi.string().allow("").allow(null),
1515
- meta: Joi.any().allow(null),
1517
+ meta: Joi.object().pattern(/\S/, Joi.any()).allow(null, ""),
1516
1518
  });
1517
1519
  }
1518
1520
 
@@ -1534,8 +1536,8 @@ class PaymentApplicationModel {
1534
1536
  /** @returns {AggregatorRoute} */
1535
1537
  static AggregatorRoute() {
1536
1538
  return Joi.object({
1537
- data: Joi.any().allow(null),
1538
- payment_flow_data: Joi.any().allow(null),
1539
+ data: Joi.object().pattern(/\S/, Joi.any()).allow(null, ""),
1540
+ payment_flow_data: Joi.object().pattern(/\S/, Joi.any()).allow(null, ""),
1539
1541
  payment_flow: Joi.string().allow("").allow(null),
1540
1542
  api_link: Joi.string().allow("").allow(null),
1541
1543
  });
@@ -1624,12 +1626,12 @@ class PaymentApplicationModel {
1624
1626
  });
1625
1627
  }
1626
1628
 
1627
- /** @returns {PaymentModeRouteResponse} */
1628
- static PaymentModeRouteResponse() {
1629
+ /** @returns {PaymentModeRouteDetails} */
1630
+ static PaymentModeRouteDetails() {
1629
1631
  return Joi.object({
1630
1632
  payment_options: PaymentApplicationModel.PaymentOptionAndFlow().required(),
1631
1633
  success: Joi.boolean().required(),
1632
- payment_breakup: Joi.any(),
1634
+ payment_breakup: Joi.object().pattern(/\S/, Joi.any()),
1633
1635
  advance_payment: Joi.array()
1634
1636
  .items(PaymentApplicationModel.AdvancePaymentObject())
1635
1637
  .allow(null, ""),
@@ -1665,7 +1667,7 @@ class PaymentApplicationModel {
1665
1667
  /** @returns {WalletResponseSchema} */
1666
1668
  static WalletResponseSchema() {
1667
1669
  return Joi.object({
1668
- data: Joi.any().required(),
1670
+ data: Joi.object().pattern(/\S/, Joi.any()).required(),
1669
1671
  success: Joi.boolean().required(),
1670
1672
  });
1671
1673
  }
@@ -1678,8 +1680,8 @@ class PaymentApplicationModel {
1678
1680
  });
1679
1681
  }
1680
1682
 
1681
- /** @returns {RupifiBannerResponse} */
1682
- static RupifiBannerResponse() {
1683
+ /** @returns {RupifiBannerDetails} */
1684
+ static RupifiBannerDetails() {
1683
1685
  return Joi.object({
1684
1686
  data: PaymentApplicationModel.RupifiBannerData().required(),
1685
1687
  success: Joi.boolean().required(),
@@ -1695,16 +1697,16 @@ class PaymentApplicationModel {
1695
1697
  });
1696
1698
  }
1697
1699
 
1698
- /** @returns {EpaylaterBannerResponse} */
1699
- static EpaylaterBannerResponse() {
1700
+ /** @returns {EpaylaterBannerDetails} */
1701
+ static EpaylaterBannerDetails() {
1700
1702
  return Joi.object({
1701
1703
  data: PaymentApplicationModel.EpaylaterBannerData().required(),
1702
1704
  success: Joi.boolean().required(),
1703
1705
  });
1704
1706
  }
1705
1707
 
1706
- /** @returns {ResendOrCancelPaymentRequest} */
1707
- static ResendOrCancelPaymentRequest() {
1708
+ /** @returns {ResendOrCancelPayment} */
1709
+ static ResendOrCancelPayment() {
1708
1710
  return Joi.object({
1709
1711
  order_id: Joi.string().allow("").required(),
1710
1712
  device_id: Joi.string().allow("").allow(null),
@@ -1721,31 +1723,31 @@ class PaymentApplicationModel {
1721
1723
  });
1722
1724
  }
1723
1725
 
1724
- /** @returns {ResendOrCancelPaymentResponse} */
1725
- static ResendOrCancelPaymentResponse() {
1726
+ /** @returns {ResendOrCancelPaymentDetails} */
1727
+ static ResendOrCancelPaymentDetails() {
1726
1728
  return Joi.object({
1727
1729
  data: PaymentApplicationModel.LinkStatus().required(),
1728
1730
  success: Joi.boolean().required(),
1729
1731
  });
1730
1732
  }
1731
1733
 
1732
- /** @returns {renderHTMLRequest} */
1733
- static renderHTMLRequest() {
1734
+ /** @returns {RenderHTML} */
1735
+ static RenderHTML() {
1734
1736
  return Joi.object({
1735
1737
  returntype: Joi.string().allow("").allow(null),
1736
1738
  base64_html: Joi.string().allow("").required(),
1737
1739
  });
1738
1740
  }
1739
1741
 
1740
- /** @returns {renderHTMLResponse} */
1741
- static renderHTMLResponse() {
1742
+ /** @returns {RenderHTMLDetails} */
1743
+ static RenderHTMLDetails() {
1742
1744
  return Joi.object({
1743
1745
  html: Joi.string().allow("").required(),
1744
1746
  });
1745
1747
  }
1746
1748
 
1747
- /** @returns {ValidateVPARequest} */
1748
- static ValidateVPARequest() {
1749
+ /** @returns {ValidateVPA} */
1750
+ static ValidateVPA() {
1749
1751
  return Joi.object({
1750
1752
  upi_vpa: Joi.string().allow("").required(),
1751
1753
  aggregator: Joi.string().allow(""),
@@ -1762,8 +1764,8 @@ class PaymentApplicationModel {
1762
1764
  });
1763
1765
  }
1764
1766
 
1765
- /** @returns {ValidateVPAResponse} */
1766
- static ValidateVPAResponse() {
1767
+ /** @returns {ValidateVPADetails} */
1768
+ static ValidateVPADetails() {
1767
1769
  return Joi.object({
1768
1770
  data: PaymentApplicationModel.ValidateUPI().required(),
1769
1771
  success: Joi.boolean().required(),
@@ -1775,12 +1777,12 @@ class PaymentApplicationModel {
1775
1777
  return Joi.object({
1776
1778
  status: Joi.boolean().required(),
1777
1779
  country: Joi.string().allow("").required(),
1778
- bank_code: Joi.string().allow("").allow(null).required(),
1780
+ bank_code: Joi.string().allow("").required(),
1779
1781
  id: Joi.string().allow("").required(),
1780
1782
  card_exp_year: Joi.string().allow(""),
1781
1783
  card_brand: Joi.string().allow("").required(),
1782
1784
  type: Joi.string().allow("").required(),
1783
- card_sub_type: Joi.string().allow("").allow(null).required(),
1785
+ card_sub_type: Joi.string().allow("").required(),
1784
1786
  is_domestic_card: Joi.boolean().required(),
1785
1787
  name_on_card: Joi.string().allow(""),
1786
1788
  card_exp_month: Joi.string().allow(""),
@@ -1792,8 +1794,8 @@ class PaymentApplicationModel {
1792
1794
  });
1793
1795
  }
1794
1796
 
1795
- /** @returns {CardDetailsResponse} */
1796
- static CardDetailsResponse() {
1797
+ /** @returns {CardDetailsFetchedDetails} */
1798
+ static CardDetailsFetchedDetails() {
1797
1799
  return Joi.object({
1798
1800
  data: PaymentApplicationModel.CardDetails().required(),
1799
1801
  success: Joi.boolean().required(),
@@ -1819,8 +1821,8 @@ class PaymentApplicationModel {
1819
1821
  });
1820
1822
  }
1821
1823
 
1822
- /** @returns {TransferModeResponse} */
1823
- static TransferModeResponse() {
1824
+ /** @returns {TransferModeFetchDetails} */
1825
+ static TransferModeFetchDetails() {
1824
1826
  return Joi.object({
1825
1827
  data: Joi.array()
1826
1828
  .items(PaymentApplicationModel.TransferModeDetails())
@@ -1828,16 +1830,16 @@ class PaymentApplicationModel {
1828
1830
  });
1829
1831
  }
1830
1832
 
1831
- /** @returns {UpdateRefundTransferModeRequest} */
1832
- static UpdateRefundTransferModeRequest() {
1833
+ /** @returns {UpdateRefundTransferMode} */
1834
+ static UpdateRefundTransferMode() {
1833
1835
  return Joi.object({
1834
1836
  enable: Joi.boolean().required(),
1835
1837
  transfer_mode: Joi.string().allow("").required(),
1836
1838
  });
1837
1839
  }
1838
1840
 
1839
- /** @returns {UpdateRefundTransferModeResponse} */
1840
- static UpdateRefundTransferModeResponse() {
1841
+ /** @returns {RefundTransferModeUpdateDetails} */
1842
+ static RefundTransferModeUpdateDetails() {
1841
1843
  return Joi.object({
1842
1844
  success: Joi.boolean(),
1843
1845
  });
@@ -1868,8 +1870,8 @@ class PaymentApplicationModel {
1868
1870
  });
1869
1871
  }
1870
1872
 
1871
- /** @returns {OrderBeneficiaryResponse} */
1872
- static OrderBeneficiaryResponse() {
1873
+ /** @returns {OrderBeneficiaryFetchDetails} */
1874
+ static OrderBeneficiaryFetchDetails() {
1873
1875
  return Joi.object({
1874
1876
  show_beneficiary_details: Joi.boolean(),
1875
1877
  beneficiaries: Joi.array()
@@ -1887,8 +1889,8 @@ class PaymentApplicationModel {
1887
1889
  });
1888
1890
  }
1889
1891
 
1890
- /** @returns {IfscCodeResponse} */
1891
- static IfscCodeResponse() {
1892
+ /** @returns {IfscCodeDetails} */
1893
+ static IfscCodeDetails() {
1892
1894
  return Joi.object({
1893
1895
  branch_name: Joi.string().allow("").required(),
1894
1896
  success: Joi.boolean(),
@@ -1905,8 +1907,8 @@ class PaymentApplicationModel {
1905
1907
  });
1906
1908
  }
1907
1909
 
1908
- /** @returns {AddBeneficiaryViaOtpVerificationRequest} */
1909
- static AddBeneficiaryViaOtpVerificationRequest() {
1910
+ /** @returns {AddBeneficiaryViaOtpVerification} */
1911
+ static AddBeneficiaryViaOtpVerification() {
1910
1912
  return Joi.object({
1911
1913
  request_id: Joi.string().allow("").required(),
1912
1914
  hash_key: Joi.string().allow("").required(),
@@ -1914,8 +1916,8 @@ class PaymentApplicationModel {
1914
1916
  });
1915
1917
  }
1916
1918
 
1917
- /** @returns {AddBeneficiaryViaOtpVerificationResponse} */
1918
- static AddBeneficiaryViaOtpVerificationResponse() {
1919
+ /** @returns {AddBeneficiaryViaOtpVerificationDetails} */
1920
+ static AddBeneficiaryViaOtpVerificationDetails() {
1919
1921
  return Joi.object({
1920
1922
  success: Joi.boolean(),
1921
1923
  message: Joi.string().allow("").required(),
@@ -1948,8 +1950,8 @@ class PaymentApplicationModel {
1948
1950
  });
1949
1951
  }
1950
1952
 
1951
- /** @returns {AddBeneficiaryDetailsRequest} */
1952
- static AddBeneficiaryDetailsRequest() {
1953
+ /** @returns {AddBeneficiaryDetails} */
1954
+ static AddBeneficiaryDetails() {
1953
1955
  return Joi.object({
1954
1956
  delights: Joi.boolean().required(),
1955
1957
  shipment_id: Joi.string().allow("").required(),
@@ -1961,11 +1963,11 @@ class PaymentApplicationModel {
1961
1963
  });
1962
1964
  }
1963
1965
 
1964
- /** @returns {RefundAccountResponse} */
1965
- static RefundAccountResponse() {
1966
+ /** @returns {RefundAccountDetails} */
1967
+ static RefundAccountDetails() {
1966
1968
  return Joi.object({
1967
1969
  is_verified_flag: Joi.boolean(),
1968
- data: Joi.any(),
1970
+ data: Joi.object().pattern(/\S/, Joi.any()),
1969
1971
  success: Joi.boolean().required(),
1970
1972
  message: Joi.string().allow("").required(),
1971
1973
  });
@@ -1982,24 +1984,24 @@ class PaymentApplicationModel {
1982
1984
  });
1983
1985
  }
1984
1986
 
1985
- /** @returns {AddBeneficiaryDetailsOTPRequest} */
1986
- static AddBeneficiaryDetailsOTPRequest() {
1987
+ /** @returns {AddBeneficiaryDetailsOTP} */
1988
+ static AddBeneficiaryDetailsOTP() {
1987
1989
  return Joi.object({
1988
1990
  order_id: Joi.string().allow("").required(),
1989
1991
  details: PaymentApplicationModel.BankDetailsForOTP().required(),
1990
1992
  });
1991
1993
  }
1992
1994
 
1993
- /** @returns {WalletOtpRequest} */
1994
- static WalletOtpRequest() {
1995
+ /** @returns {WalletOtp} */
1996
+ static WalletOtp() {
1995
1997
  return Joi.object({
1996
1998
  country_code: Joi.string().allow("").required(),
1997
1999
  mobile: Joi.string().allow("").required(),
1998
2000
  });
1999
2001
  }
2000
2002
 
2001
- /** @returns {WalletOtpResponse} */
2002
- static WalletOtpResponse() {
2003
+ /** @returns {WalletOtpDetails} */
2004
+ static WalletOtpDetails() {
2003
2005
  return Joi.object({
2004
2006
  request_id: Joi.string().allow("").required(),
2005
2007
  is_verified_flag: Joi.string().allow("").required(),
@@ -2007,24 +2009,24 @@ class PaymentApplicationModel {
2007
2009
  });
2008
2010
  }
2009
2011
 
2010
- /** @returns {SetDefaultBeneficiaryRequest} */
2011
- static SetDefaultBeneficiaryRequest() {
2012
+ /** @returns {SetDefaultBeneficiary} */
2013
+ static SetDefaultBeneficiary() {
2012
2014
  return Joi.object({
2013
2015
  order_id: Joi.string().allow("").required(),
2014
2016
  beneficiary_id: Joi.string().allow("").required(),
2015
2017
  });
2016
2018
  }
2017
2019
 
2018
- /** @returns {SetDefaultBeneficiaryResponse} */
2019
- static SetDefaultBeneficiaryResponse() {
2020
+ /** @returns {SetDefaultBeneficiaryDetails} */
2021
+ static SetDefaultBeneficiaryDetails() {
2020
2022
  return Joi.object({
2021
2023
  is_beneficiary_set: Joi.boolean().required(),
2022
2024
  success: Joi.boolean(),
2023
2025
  });
2024
2026
  }
2025
2027
 
2026
- /** @returns {GetPaymentLinkResponse} */
2027
- static GetPaymentLinkResponse() {
2028
+ /** @returns {GetPaymentLinkDetails} */
2029
+ static GetPaymentLinkDetails() {
2028
2030
  return Joi.object({
2029
2031
  status_code: Joi.number().required(),
2030
2032
  payment_link_current_status: Joi.string().allow("").allow(null),
@@ -2052,8 +2054,8 @@ class PaymentApplicationModel {
2052
2054
  });
2053
2055
  }
2054
2056
 
2055
- /** @returns {ErrorResponse} */
2056
- static ErrorResponse() {
2057
+ /** @returns {ErrorDetails} */
2058
+ static ErrorDetails() {
2057
2059
  return Joi.object({
2058
2060
  status_code: Joi.number().required(),
2059
2061
  error: PaymentApplicationModel.ErrorDescription(),
@@ -2072,8 +2074,8 @@ class PaymentApplicationModel {
2072
2074
  });
2073
2075
  }
2074
2076
 
2075
- /** @returns {CreatePaymentLinkRequest} */
2076
- static CreatePaymentLinkRequest() {
2077
+ /** @returns {CreatePaymentLink} */
2078
+ static CreatePaymentLink() {
2077
2079
  return Joi.object({
2078
2080
  description: Joi.string().allow("").allow(null),
2079
2081
  external_order_id: Joi.string().allow("").required(),
@@ -2081,11 +2083,13 @@ class PaymentApplicationModel {
2081
2083
  amount: Joi.number().required(),
2082
2084
  meta: PaymentApplicationModel.CreatePaymentLinkMeta().required(),
2083
2085
  email: Joi.string().allow("").required(),
2086
+ success_redirection_url: Joi.string().allow(""),
2087
+ failure_redirection_url: Joi.string().allow(""),
2084
2088
  });
2085
2089
  }
2086
2090
 
2087
- /** @returns {CreatePaymentLinkResponse} */
2088
- static CreatePaymentLinkResponse() {
2091
+ /** @returns {CreatePaymentLinkDetails} */
2092
+ static CreatePaymentLinkDetails() {
2089
2093
  return Joi.object({
2090
2094
  status_code: Joi.number().required(),
2091
2095
  success: Joi.boolean().required(),
@@ -2096,15 +2100,15 @@ class PaymentApplicationModel {
2096
2100
  });
2097
2101
  }
2098
2102
 
2099
- /** @returns {CancelOrResendPaymentLinkRequest} */
2100
- static CancelOrResendPaymentLinkRequest() {
2103
+ /** @returns {CancelOrResendPaymentLink} */
2104
+ static CancelOrResendPaymentLink() {
2101
2105
  return Joi.object({
2102
2106
  payment_link_id: Joi.string().allow("").required(),
2103
2107
  });
2104
2108
  }
2105
2109
 
2106
- /** @returns {ResendPaymentLinkResponse} */
2107
- static ResendPaymentLinkResponse() {
2110
+ /** @returns {ResendPaymentLinkDetails} */
2111
+ static ResendPaymentLinkDetails() {
2108
2112
  return Joi.object({
2109
2113
  status_code: Joi.number().required(),
2110
2114
  polling_timeout: Joi.number().allow(null),
@@ -2113,8 +2117,8 @@ class PaymentApplicationModel {
2113
2117
  });
2114
2118
  }
2115
2119
 
2116
- /** @returns {CancelPaymentLinkResponse} */
2117
- static CancelPaymentLinkResponse() {
2120
+ /** @returns {CancelPaymentLinkDetails} */
2121
+ static CancelPaymentLinkDetails() {
2118
2122
  return Joi.object({
2119
2123
  status_code: Joi.number().required(),
2120
2124
  success: Joi.boolean().required(),
@@ -2122,8 +2126,8 @@ class PaymentApplicationModel {
2122
2126
  });
2123
2127
  }
2124
2128
 
2125
- /** @returns {PollingPaymentLinkResponse} */
2126
- static PollingPaymentLinkResponse() {
2129
+ /** @returns {PollingPaymentLinkDetails} */
2130
+ static PollingPaymentLinkDetails() {
2127
2131
  return Joi.object({
2128
2132
  status: Joi.string().allow("").allow(null),
2129
2133
  status_code: Joi.number().allow(null),
@@ -2156,15 +2160,13 @@ class PaymentApplicationModel {
2156
2160
  });
2157
2161
  }
2158
2162
 
2159
- /** @returns {CreateOrderUserRequest} */
2160
- static CreateOrderUserRequest() {
2163
+ /** @returns {CreateOrderUser} */
2164
+ static CreateOrderUser() {
2161
2165
  return Joi.object({
2162
- failure_callback_url: Joi.string().allow("").required(),
2163
2166
  currency: Joi.string().allow("").required(),
2164
2167
  payment_link_id: Joi.string().allow("").required(),
2165
2168
  payment_methods: PaymentApplicationModel.CreateOrderUserPaymentMethods().required(),
2166
- success_callback_url: Joi.string().allow("").required(),
2167
- meta: Joi.any().allow(null),
2169
+ meta: Joi.object().pattern(/\S/, Joi.any()).allow(null, ""),
2168
2170
  });
2169
2171
  }
2170
2172
 
@@ -2184,8 +2186,8 @@ class PaymentApplicationModel {
2184
2186
  });
2185
2187
  }
2186
2188
 
2187
- /** @returns {CreateOrderUserResponse} */
2188
- static CreateOrderUserResponse() {
2189
+ /** @returns {CreateOrderUserDetails} */
2190
+ static CreateOrderUserDetails() {
2189
2191
  return Joi.object({
2190
2192
  status_code: Joi.number().required(),
2191
2193
  success: Joi.boolean().required(),
@@ -2227,8 +2229,8 @@ class PaymentApplicationModel {
2227
2229
  });
2228
2230
  }
2229
2231
 
2230
- /** @returns {CustomerCreditSummaryResponse} */
2231
- static CustomerCreditSummaryResponse() {
2232
+ /** @returns {CustomerCreditSummaryDetails} */
2233
+ static CustomerCreditSummaryDetails() {
2232
2234
  return Joi.object({
2233
2235
  data: PaymentApplicationModel.CreditSummary(),
2234
2236
  success: Joi.boolean().required(),
@@ -2243,8 +2245,8 @@ class PaymentApplicationModel {
2243
2245
  });
2244
2246
  }
2245
2247
 
2246
- /** @returns {RedirectToAggregatorResponse} */
2247
- static RedirectToAggregatorResponse() {
2248
+ /** @returns {RedirectToAggregatorDetails} */
2249
+ static RedirectToAggregatorDetails() {
2248
2250
  return Joi.object({
2249
2251
  data: PaymentApplicationModel.RedirectURL().required(),
2250
2252
  success: Joi.boolean().required(),
@@ -2260,8 +2262,8 @@ class PaymentApplicationModel {
2260
2262
  });
2261
2263
  }
2262
2264
 
2263
- /** @returns {CheckCreditResponse} */
2264
- static CheckCreditResponse() {
2265
+ /** @returns {CheckCreditDetails} */
2266
+ static CheckCreditDetails() {
2265
2267
  return Joi.object({
2266
2268
  data: PaymentApplicationModel.CreditDetail().required(),
2267
2269
  success: Joi.boolean().required(),
@@ -2287,7 +2289,7 @@ class PaymentApplicationModel {
2287
2289
  first_name: Joi.string().allow("").required(),
2288
2290
  voter_id: Joi.string().allow("").allow(null),
2289
2291
  gender: Joi.string().allow("").allow(null),
2290
- dob: Joi.string().allow("").allow(null).required(),
2292
+ dob: Joi.string().allow("").required(),
2291
2293
  passport: Joi.string().allow("").allow(null),
2292
2294
  fathers_name: Joi.string().allow("").allow(null),
2293
2295
  mothers_name: Joi.string().allow("").allow(null),
@@ -2320,7 +2322,7 @@ class PaymentApplicationModel {
2320
2322
  gstin: Joi.string().allow("").allow(null),
2321
2323
  pan: Joi.string().allow("").allow(null),
2322
2324
  entity_type: Joi.string().allow("").allow(null),
2323
- shop_and_establishment: Joi.any(),
2325
+ shop_and_establishment: Joi.object().pattern(/\S/, Joi.any()),
2324
2326
  fssai: Joi.string().allow("").allow(null),
2325
2327
  fda: Joi.string().allow("").allow(null),
2326
2328
  business_type: Joi.string().allow("").allow(null),
@@ -2342,8 +2344,8 @@ class PaymentApplicationModel {
2342
2344
  });
2343
2345
  }
2344
2346
 
2345
- /** @returns {CustomerOnboardingRequest} */
2346
- static CustomerOnboardingRequest() {
2347
+ /** @returns {CustomerOnboarding} */
2348
+ static CustomerOnboarding() {
2347
2349
  return Joi.object({
2348
2350
  personal_info: PaymentApplicationModel.UserPersonalInfoInDetails(),
2349
2351
  mcc: Joi.string().allow("").allow(null),
@@ -2359,7 +2361,7 @@ class PaymentApplicationModel {
2359
2361
  static OnboardSummary() {
2360
2362
  return Joi.object({
2361
2363
  redirect_url: Joi.string().allow(""),
2362
- session: Joi.any(),
2364
+ session: Joi.object().pattern(/\S/, Joi.any()),
2363
2365
  status: Joi.boolean().required(),
2364
2366
  status_remark: Joi.string().allow(""),
2365
2367
  is_eligible_for_txn: Joi.boolean(),
@@ -2368,16 +2370,16 @@ class PaymentApplicationModel {
2368
2370
  });
2369
2371
  }
2370
2372
 
2371
- /** @returns {CustomerOnboardingResponse} */
2372
- static CustomerOnboardingResponse() {
2373
+ /** @returns {CustomerOnboardingDetails} */
2374
+ static CustomerOnboardingDetails() {
2373
2375
  return Joi.object({
2374
2376
  data: PaymentApplicationModel.OnboardSummary().required(),
2375
2377
  success: Joi.boolean().required(),
2376
2378
  });
2377
2379
  }
2378
2380
 
2379
- /** @returns {OutstandingOrderDetailsResponse} */
2380
- static OutstandingOrderDetailsResponse() {
2381
+ /** @returns {OutstandingOrderDetails} */
2382
+ static OutstandingOrderDetails() {
2381
2383
  return Joi.object({
2382
2384
  status_code: Joi.number().required(),
2383
2385
  data: Joi.array().items(Joi.any()).allow(null, ""),
@@ -2386,8 +2388,8 @@ class PaymentApplicationModel {
2386
2388
  });
2387
2389
  }
2388
2390
 
2389
- /** @returns {PaidOrderDetailsResponse} */
2390
- static PaidOrderDetailsResponse() {
2391
+ /** @returns {PaidOrderDetails} */
2392
+ static PaidOrderDetails() {
2391
2393
  return Joi.object({
2392
2394
  status_code: Joi.number().required(),
2393
2395
  data: Joi.array().items(Joi.any()).allow(null, ""),
@@ -2396,11 +2398,11 @@ class PaymentApplicationModel {
2396
2398
  });
2397
2399
  }
2398
2400
 
2399
- /** @returns {DeleteRefundAccountResponse} */
2400
- static DeleteRefundAccountResponse() {
2401
+ /** @returns {DeleteRefundAccountDetails} */
2402
+ static DeleteRefundAccountDetails() {
2401
2403
  return Joi.object({
2402
2404
  success: Joi.boolean().required(),
2403
- message: Joi.string().allow("").allow(null).required(),
2405
+ message: Joi.string().allow("").required(),
2404
2406
  });
2405
2407
  }
2406
2408
 
@@ -2429,8 +2431,8 @@ class PaymentApplicationModel {
2429
2431
  });
2430
2432
  }
2431
2433
 
2432
- /** @returns {RefundOptionResponse} */
2433
- static RefundOptionResponse() {
2434
+ /** @returns {RefundOptionDetails} */
2435
+ static RefundOptionDetails() {
2434
2436
  return Joi.object({
2435
2437
  offline_refund_options: PaymentApplicationModel.OfflineRefundOptions().required(),
2436
2438
  success: Joi.boolean().required(),
@@ -2438,12 +2440,12 @@ class PaymentApplicationModel {
2438
2440
  });
2439
2441
  }
2440
2442
 
2441
- /** @returns {SelectedRefundOptionResponse} */
2442
- static SelectedRefundOptionResponse() {
2443
+ /** @returns {SelectedRefundOptionDetails} */
2444
+ static SelectedRefundOptionDetails() {
2443
2445
  return Joi.object({
2444
- transfer_mode: Joi.any().required(),
2445
- shipment_id: Joi.string().allow("").allow(null).required(),
2446
- message: Joi.string().allow("").allow(null).required(),
2446
+ transfer_mode: Joi.object().pattern(/\S/, Joi.any()).required(),
2447
+ shipment_id: Joi.string().allow("").required(),
2448
+ message: Joi.string().allow("").required(),
2447
2449
  success: Joi.boolean().required(),
2448
2450
  });
2449
2451
  }
@@ -2501,19 +2503,19 @@ class PaymentApplicationModel {
2501
2503
  });
2502
2504
  }
2503
2505
 
2504
- /** @returns {OrderBeneficiaryResponseSchemaV2} */
2505
- static OrderBeneficiaryResponseSchemaV2() {
2506
+ /** @returns {OrderBeneficiaryDetailsSchemaV2} */
2507
+ static OrderBeneficiaryDetailsSchemaV2() {
2506
2508
  return Joi.object({
2507
2509
  show_beneficiary_details: Joi.boolean().required(),
2508
2510
  data: PaymentApplicationModel.BeneficiaryRefundOptions().required(),
2509
- limit: Joi.any().required(),
2511
+ limit: Joi.object().pattern(/\S/, Joi.any()).required(),
2510
2512
  });
2511
2513
  }
2512
2514
 
2513
- /** @returns {ValidateValidateAddressRequest} */
2514
- static ValidateValidateAddressRequest() {
2515
+ /** @returns {ValidateValidateAddress} */
2516
+ static ValidateValidateAddress() {
2515
2517
  return Joi.object({
2516
- ifsc_code: Joi.string().allow("").allow(null),
2518
+ ifsc_code: Joi.string().allow(""),
2517
2519
  upi_vpa: Joi.string().allow("").allow(null),
2518
2520
  aggregator: Joi.string().allow("").allow(null),
2519
2521
  });
@@ -2529,12 +2531,12 @@ class PaymentApplicationModel {
2529
2531
  });
2530
2532
  }
2531
2533
 
2532
- /** @returns {ValidateValidateAddressResponse} */
2533
- static ValidateValidateAddressResponse() {
2534
+ /** @returns {ValidateValidateAddressDetails} */
2535
+ static ValidateValidateAddressDetails() {
2534
2536
  return Joi.object({
2535
2537
  upi: PaymentApplicationModel.VPADetails(),
2536
2538
  success: Joi.boolean().required(),
2537
- ifsc: Joi.any(),
2539
+ ifsc: Joi.object().pattern(/\S/, Joi.any()),
2538
2540
  });
2539
2541
  }
2540
2542
 
@@ -2558,8 +2560,8 @@ class PaymentApplicationModel {
2558
2560
  });
2559
2561
  }
2560
2562
 
2561
- /** @returns {PaymentOrderRequest} */
2562
- static PaymentOrderRequest() {
2563
+ /** @returns {PaymentOrder} */
2564
+ static PaymentOrder() {
2563
2565
  return Joi.object({
2564
2566
  payment_methods: Joi.array().items(
2565
2567
  PaymentApplicationModel.PaymentOrderMethods()
@@ -2585,8 +2587,8 @@ class PaymentApplicationModel {
2585
2587
  });
2586
2588
  }
2587
2589
 
2588
- /** @returns {PaymentOrderResponse} */
2589
- static PaymentOrderResponse() {
2590
+ /** @returns {PaymentOrderDetails} */
2591
+ static PaymentOrderDetails() {
2590
2592
  return Joi.object({
2591
2593
  payment_confirm_url: Joi.string().allow("").allow(null),
2592
2594
  callback_url: Joi.string().allow("").allow(null),
@@ -2598,8 +2600,8 @@ class PaymentApplicationModel {
2598
2600
  });
2599
2601
  }
2600
2602
 
2601
- /** @returns {ShipmentRefundRequest} */
2602
- static ShipmentRefundRequest() {
2603
+ /** @returns {ShipmentRefund} */
2604
+ static ShipmentRefund() {
2603
2605
  return Joi.object({
2604
2606
  shipment_id: Joi.string().allow("").required(),
2605
2607
  order_id: Joi.string().allow("").required(),
@@ -2618,12 +2620,12 @@ class PaymentApplicationModel {
2618
2620
  });
2619
2621
  }
2620
2622
 
2621
- /** @returns {ShipmentRefundResponse} */
2622
- static ShipmentRefundResponse() {
2623
+ /** @returns {ShipmentRefundDetails} */
2624
+ static ShipmentRefundDetails() {
2623
2625
  return Joi.object({
2624
2626
  data: PaymentApplicationModel.ShipmentRefundDetail().required(),
2625
2627
  success: Joi.boolean().required(),
2626
- message: Joi.string().allow("").allow(null).required(),
2628
+ message: Joi.string().allow("").required(),
2627
2629
  });
2628
2630
  }
2629
2631
  }