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

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