@gofynd/fdk-client-javascript 1.4.1 → 1.4.2-beta.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (265) hide show
  1. package/README.md +1 -1
  2. package/package.json +3 -2
  3. package/sdk/application/ApplicationClient.js +20 -0
  4. package/sdk/application/Cart/CartApplicationClient.d.ts +1 -1
  5. package/sdk/application/Cart/CartApplicationClient.js +3 -5
  6. package/sdk/application/Cart/CartApplicationModel.d.ts +1634 -1742
  7. package/sdk/application/Cart/CartApplicationModel.js +1388 -1464
  8. package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -4
  9. package/sdk/application/Cart/CartApplicationValidator.js +0 -4
  10. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +6 -3
  11. package/sdk/application/Catalog/CatalogApplicationClient.js +20 -7
  12. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +1917 -1917
  13. package/sdk/application/Catalog/CatalogApplicationModel.js +1613 -1613
  14. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +14 -0
  15. package/sdk/application/Catalog/CatalogApplicationValidator.js +6 -0
  16. package/sdk/application/Common/CommonApplicationModel.d.ts +235 -235
  17. package/sdk/application/Common/CommonApplicationModel.js +172 -172
  18. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +72 -72
  19. package/sdk/application/Communication/CommunicationApplicationModel.js +64 -64
  20. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1492 -1626
  21. package/sdk/application/Configuration/ConfigurationApplicationModel.js +1038 -1180
  22. package/sdk/application/Content/ContentApplicationClient.d.ts +0 -36
  23. package/sdk/application/Content/ContentApplicationClient.js +0 -246
  24. package/sdk/application/Content/ContentApplicationModel.d.ts +546 -753
  25. package/sdk/application/Content/ContentApplicationModel.js +565 -817
  26. package/sdk/application/Content/ContentApplicationValidator.d.ts +1 -40
  27. package/sdk/application/Content/ContentApplicationValidator.js +0 -41
  28. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +79 -79
  29. package/sdk/application/FileStorage/FileStorageApplicationModel.js +84 -84
  30. package/sdk/application/Lead/LeadApplicationModel.d.ts +417 -417
  31. package/sdk/application/Lead/LeadApplicationModel.js +301 -301
  32. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +0 -67
  33. package/sdk/application/Logistic/LogisticApplicationClient.js +0 -547
  34. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +257 -712
  35. package/sdk/application/Logistic/LogisticApplicationModel.js +267 -755
  36. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +1 -211
  37. package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -131
  38. package/sdk/application/Order/OrderApplicationClient.d.ts +3 -3
  39. package/sdk/application/Order/OrderApplicationClient.js +8 -32
  40. package/sdk/application/Order/OrderApplicationModel.d.ts +845 -853
  41. package/sdk/application/Order/OrderApplicationModel.js +816 -824
  42. package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -20
  43. package/sdk/application/Order/OrderApplicationValidator.js +0 -8
  44. package/sdk/application/Payment/PaymentApplicationClient.d.ts +2 -46
  45. package/sdk/application/Payment/PaymentApplicationClient.js +10 -341
  46. package/sdk/application/Payment/PaymentApplicationModel.d.ts +1892 -2199
  47. package/sdk/application/Payment/PaymentApplicationModel.js +1235 -1506
  48. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +14 -59
  49. package/sdk/application/Payment/PaymentApplicationValidator.js +10 -64
  50. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1396 -1429
  51. package/sdk/application/PosCart/PosCartApplicationModel.js +1233 -1257
  52. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +214 -214
  53. package/sdk/application/Rewards/RewardsApplicationModel.js +211 -211
  54. package/sdk/application/Share/ShareApplicationModel.d.ts +114 -114
  55. package/sdk/application/Share/ShareApplicationModel.js +121 -121
  56. package/sdk/application/Theme/ThemeApplicationClient.d.ts +1 -1
  57. package/sdk/application/Theme/ThemeApplicationClient.js +3 -7
  58. package/sdk/application/Theme/ThemeApplicationModel.d.ts +783 -969
  59. package/sdk/application/Theme/ThemeApplicationModel.js +571 -867
  60. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -10
  61. package/sdk/application/Theme/ThemeApplicationValidator.js +0 -4
  62. package/sdk/application/User/UserApplicationClient.d.ts +0 -33
  63. package/sdk/application/User/UserApplicationClient.js +0 -239
  64. package/sdk/application/User/UserApplicationModel.d.ts +753 -768
  65. package/sdk/application/User/UserApplicationModel.js +731 -755
  66. package/sdk/application/User/UserApplicationValidator.d.ts +1 -34
  67. package/sdk/application/User/UserApplicationValidator.js +0 -36
  68. package/sdk/common/Clickstream.d.ts +1 -0
  69. package/sdk/common/Clickstream.js +254 -0
  70. package/sdk/common/Utility.js +1 -4
  71. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +72 -60
  72. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +70 -58
  73. package/sdk/partner/PartnerClient.d.ts +0 -6
  74. package/sdk/partner/PartnerClient.js +0 -9
  75. package/sdk/partner/Theme/ThemePartnerClient.d.ts +0 -10
  76. package/sdk/partner/Theme/ThemePartnerClient.js +0 -80
  77. package/sdk/partner/Theme/ThemePartnerModel.d.ts +1178 -1153
  78. package/sdk/partner/Theme/ThemePartnerModel.js +830 -974
  79. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +0 -1
  80. package/sdk/partner/Theme/ThemePartnerValidator.js +0 -9
  81. package/sdk/partner/index.d.ts +0 -3
  82. package/sdk/partner/index.js +0 -6
  83. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +2 -2
  84. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +123 -123
  85. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +109 -109
  86. package/sdk/platform/Billing/BillingPlatformClient.d.ts +1 -11
  87. package/sdk/platform/Billing/BillingPlatformClient.js +3 -110
  88. package/sdk/platform/Billing/BillingPlatformModel.d.ts +734 -800
  89. package/sdk/platform/Billing/BillingPlatformModel.js +732 -810
  90. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +4 -43
  91. package/sdk/platform/Billing/BillingPlatformValidator.js +2 -29
  92. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +11 -1
  93. package/sdk/platform/Cart/CartPlatformApplicationClient.js +81 -7
  94. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +13 -5
  95. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +12 -4
  96. package/sdk/platform/Cart/CartPlatformModel.d.ts +3223 -3328
  97. package/sdk/platform/Cart/CartPlatformModel.js +2875 -2946
  98. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +11 -15
  99. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +21 -52
  100. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +0 -27
  101. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +0 -11
  102. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +15 -27
  103. package/sdk/platform/Catalog/CatalogPlatformClient.js +93 -189
  104. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +617 -920
  105. package/sdk/platform/Catalog/CatalogPlatformModel.js +584 -919
  106. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +27 -41
  107. package/sdk/platform/Catalog/CatalogPlatformValidator.js +19 -31
  108. package/sdk/platform/Common/CommonPlatformModel.d.ts +255 -255
  109. package/sdk/platform/Common/CommonPlatformModel.js +187 -187
  110. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +37 -139
  111. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +52 -737
  112. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +3 -133
  113. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +1 -113
  114. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1079 -1228
  115. package/sdk/platform/Communication/CommunicationPlatformModel.js +1090 -1262
  116. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +2 -8
  117. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +4 -32
  118. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +629 -658
  119. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +641 -675
  120. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +0 -14
  121. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +0 -6
  122. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +8 -8
  123. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +4 -4
  124. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +2992 -3231
  125. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2092 -2303
  126. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +2 -2
  127. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +2 -2
  128. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -391
  129. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1074 -3656
  130. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -351
  131. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +0 -410
  132. package/sdk/platform/Content/ContentPlatformModel.d.ts +972 -2071
  133. package/sdk/platform/Content/ContentPlatformModel.js +1039 -2355
  134. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +2 -2
  135. package/sdk/platform/Discount/DiscountPlatformClient.js +2 -2
  136. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +174 -259
  137. package/sdk/platform/Discount/DiscountPlatformModel.js +163 -257
  138. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +6 -16
  139. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +8 -117
  140. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +4 -55
  141. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +2 -39
  142. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +821 -892
  143. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +833 -901
  144. package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -33
  145. package/sdk/platform/Finance/FinancePlatformClient.js +0 -240
  146. package/sdk/platform/Finance/FinancePlatformModel.d.ts +910 -1056
  147. package/sdk/platform/Finance/FinancePlatformModel.js +884 -1070
  148. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +1 -38
  149. package/sdk/platform/Finance/FinancePlatformValidator.js +0 -38
  150. package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +942 -942
  151. package/sdk/platform/Inventory/InventoryPlatformModel.js +1003 -1003
  152. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +28 -38
  153. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +56 -137
  154. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +29 -41
  155. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +21 -33
  156. package/sdk/platform/Lead/LeadPlatformModel.d.ts +601 -610
  157. package/sdk/platform/Lead/LeadPlatformModel.js +457 -471
  158. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +1 -11
  159. package/sdk/platform/Order/OrderPlatformApplicationClient.js +1 -93
  160. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -28
  161. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +0 -18
  162. package/sdk/platform/Order/OrderPlatformClient.d.ts +22 -143
  163. package/sdk/platform/Order/OrderPlatformClient.js +160 -1190
  164. package/sdk/platform/Order/OrderPlatformModel.d.ts +4451 -5275
  165. package/sdk/platform/Order/OrderPlatformModel.js +4039 -4994
  166. package/sdk/platform/Order/OrderPlatformValidator.d.ts +21 -257
  167. package/sdk/platform/Order/OrderPlatformValidator.js +15 -216
  168. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +22 -22
  169. package/sdk/platform/Partner/PartnerPlatformModel.js +22 -22
  170. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +13 -119
  171. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +40 -750
  172. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +7 -143
  173. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +6 -133
  174. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +1 -1
  175. package/sdk/platform/Payment/PaymentPlatformClient.js +1 -1
  176. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2067 -2929
  177. package/sdk/platform/Payment/PaymentPlatformModel.js +1427 -2090
  178. package/sdk/platform/PlatformApplicationClient.d.ts +2 -2
  179. package/sdk/platform/PlatformApplicationClient.js +4 -4
  180. package/sdk/platform/PlatformClient.d.ts +2 -4
  181. package/sdk/platform/PlatformClient.js +4 -8
  182. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +204 -204
  183. package/sdk/platform/Rewards/RewardsPlatformModel.js +199 -199
  184. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +66 -142
  185. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +147 -645
  186. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +63 -131
  187. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +47 -126
  188. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +105 -217
  189. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +349 -1138
  190. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +990 -1589
  191. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +986 -1702
  192. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +133 -382
  193. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +102 -266
  194. package/sdk/platform/Share/SharePlatformModel.d.ts +147 -147
  195. package/sdk/platform/Share/SharePlatformModel.js +139 -139
  196. package/sdk/platform/Theme/ThemePlatformClient.d.ts +1 -11
  197. package/sdk/platform/Theme/ThemePlatformClient.js +3 -87
  198. package/sdk/platform/Theme/ThemePlatformModel.d.ts +765 -1133
  199. package/sdk/platform/Theme/ThemePlatformModel.js +561 -1009
  200. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +4 -28
  201. package/sdk/platform/Theme/ThemePlatformValidator.js +2 -21
  202. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +1 -116
  203. package/sdk/platform/User/UserPlatformApplicationClient.js +86 -932
  204. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +7 -224
  205. package/sdk/platform/User/UserPlatformApplicationValidator.js +5 -173
  206. package/sdk/platform/User/UserPlatformModel.d.ts +428 -765
  207. package/sdk/platform/User/UserPlatformModel.js +428 -679
  208. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +37 -45
  209. package/sdk/platform/Webhook/WebhookPlatformClient.js +57 -61
  210. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +403 -448
  211. package/sdk/platform/Webhook/WebhookPlatformModel.js +309 -369
  212. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -7
  213. package/sdk/platform/Webhook/WebhookPlatformValidator.js +6 -6
  214. package/sdk/platform/index.d.ts +1 -1
  215. package/sdk/platform/index.js +2 -2
  216. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +237 -237
  217. package/sdk/public/Configuration/ConfigurationPublicModel.js +174 -174
  218. package/sdk/public/Inventory/InventoryPublicModel.d.ts +237 -237
  219. package/sdk/public/Inventory/InventoryPublicModel.js +257 -257
  220. package/sdk/public/Partner/PartnerPublicModel.d.ts +104 -104
  221. package/sdk/public/Partner/PartnerPublicModel.js +113 -113
  222. package/sdk/public/PublicClient.d.ts +0 -4
  223. package/sdk/public/PublicClient.js +0 -8
  224. package/sdk/public/Webhook/WebhookPublicClient.d.ts +0 -33
  225. package/sdk/public/Webhook/WebhookPublicClient.js +0 -242
  226. package/sdk/public/Webhook/WebhookPublicModel.d.ts +15 -161
  227. package/sdk/public/Webhook/WebhookPublicModel.js +13 -189
  228. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +1 -23
  229. package/sdk/public/Webhook/WebhookPublicValidator.js +0 -31
  230. package/sdk/public/index.d.ts +0 -2
  231. package/sdk/public/index.js +0 -4
  232. package/sdk/partner/Lead/LeadPartnerClient.d.ts +0 -125
  233. package/sdk/partner/Lead/LeadPartnerClient.js +0 -785
  234. package/sdk/partner/Lead/LeadPartnerModel.d.ts +0 -1127
  235. package/sdk/partner/Lead/LeadPartnerModel.js +0 -896
  236. package/sdk/partner/Lead/LeadPartnerValidator.d.ts +0 -12
  237. package/sdk/partner/Lead/LeadPartnerValidator.js +0 -67
  238. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +0 -155
  239. package/sdk/partner/Logistics/LogisticsPartnerClient.js +0 -1195
  240. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +0 -372
  241. package/sdk/partner/Logistics/LogisticsPartnerModel.js +0 -442
  242. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -16
  243. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +0 -123
  244. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +0 -99
  245. package/sdk/partner/Webhook/WebhookPartnerClient.js +0 -753
  246. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +0 -566
  247. package/sdk/partner/Webhook/WebhookPartnerModel.js +0 -583
  248. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -12
  249. package/sdk/partner/Webhook/WebhookPartnerValidator.js +0 -74
  250. package/sdk/platform/Content/ContentPlatformClient.d.ts +0 -277
  251. package/sdk/platform/Content/ContentPlatformClient.js +0 -2011
  252. package/sdk/platform/Content/ContentPlatformValidator.d.ts +0 -247
  253. package/sdk/platform/Content/ContentPlatformValidator.js +0 -319
  254. package/sdk/public/Billing/BillingPublicClient.d.ts +0 -23
  255. package/sdk/public/Billing/BillingPublicClient.js +0 -116
  256. package/sdk/public/Billing/BillingPublicModel.d.ts +0 -92
  257. package/sdk/public/Billing/BillingPublicModel.js +0 -96
  258. package/sdk/public/Billing/BillingPublicValidator.d.ts +0 -18
  259. package/sdk/public/Billing/BillingPublicValidator.js +0 -19
  260. package/sdk/public/Content/ContentPublicClient.d.ts +0 -22
  261. package/sdk/public/Content/ContentPublicClient.js +0 -114
  262. package/sdk/public/Content/ContentPublicModel.d.ts +0 -53
  263. package/sdk/public/Content/ContentPublicModel.js +0 -60
  264. package/sdk/public/Content/ContentPublicValidator.d.ts +0 -18
  265. package/sdk/public/Content/ContentPublicValidator.js +0 -19
@@ -1,1508 +1,1308 @@
1
1
  const Joi = require("joi");
2
2
 
3
- /**
4
- * @typedef ActiveCardPaymentGatewayResponse
5
- * @property {CardPaymentGateway} cards
6
- * @property {string} message - Human readable message.
7
- * @property {boolean} success - Response is successful or not.
8
- */
9
-
10
- /**
11
- * @typedef AddBeneficiaryDetailsOTPRequest
12
- * @property {BankDetailsForOTP} details
13
- * @property {string} order_id
14
- */
15
-
16
- /**
17
- * @typedef AddBeneficiaryDetailsRequest
18
- * @property {boolean} delights - True if beneficiary to be added by delights or
19
- * False if by User
20
- * @property {BeneficiaryModeDetails} details
21
- * @property {string} order_id - Merchant Order Id
22
- * @property {string} [otp]
23
- * @property {string} [request_id]
24
- * @property {string} shipment_id - Shipment Id of the respective Merchant Order Id
25
- * @property {string} transfer_mode - Transfer Mode of the Beneficiary to be added
26
- */
27
-
28
- /**
29
- * @typedef AddBeneficiaryViaOtpVerificationRequest
30
- * @property {string} hash_key - Hash key of the beneficiary Id
31
- * @property {string} otp - Otp sent to the given Mobile No
32
- * @property {string} request_id - Request Id sent in
33
- */
34
-
35
- /**
36
- * @typedef AddBeneficiaryViaOtpVerificationResponse
37
- * @property {string} message - Aggregator Response of beneficicary
38
- * @property {boolean} [success] - Response is successful or not
39
- */
40
-
41
- /**
42
- * @typedef AdvanceObject
43
- * @property {string[]} [all_prepayment_type] - All available types of prepayment
44
- * @property {boolean} [allow_custom_advance_amount] - Is custom advance amount allowed?
45
- * @property {number} [amount] - Amount for Payment Breakdown
46
- * @property {string} [cancellation_type] - Type of cancellation
47
- * @property {string} [description] - The description for Advance Payment (user
48
- * configured)
49
- * @property {string} [display_name] - The display name for Advance payment
50
- * @property {boolean} [is_active] - Is Advance Payment active
51
- * @property {string} [prepayment_type] - Type of prepayment value
52
- * @property {number} [prepayment_value] - Value for prepayment in advance payment
53
- * @property {number} [refund_time_limit] - Time limit for processing refund
54
- * @property {string} [time_unit] - Time unit for refunds
55
- */
56
-
57
- /**
58
- * @typedef AdvancePaymentObject
59
- * @property {AdvanceObject} [advance]
60
- * @property {string} [display_name] - Display name for Advance Payment Mode
61
- * @property {number} [display_priority] - Display Priority for Payment Option
62
- * @property {PaymentModeList[]} [list] - Payment mode
63
- * @property {string} [name] - Name of Advance Payment Mode
64
- * @property {number} [payment_mode_id] - Payment Mode ID for Advance Payment Option
65
- * @property {SplitObject} [split]
66
- */
67
-
68
3
  /**
69
4
  * @typedef AggregatorConfigDetail
5
+ * @property {boolean} [sdk] - SDK
6
+ * @property {string} secret - Masked payment gateway api secret
70
7
  * @property {string} [api] - Payment gateway api endpoint
8
+ * @property {string} [pin] - Masked pin
71
9
  * @property {string} config_type - Fynd or self payment gateway
72
- * @property {string} key - Payment gateway api key
73
- * @property {string} [merchant_id] - Unique merchant id
74
10
  * @property {string} [merchant_key] - Unique merchant key
75
- * @property {string} [pin] - Masked pin
76
- * @property {boolean} [sdk] - SDK
77
- * @property {string} secret - Masked payment gateway api secret
78
- * @property {string} [user_id] - Registered User id
79
11
  * @property {string} [verify_api] - Payment gateway verify payment api endpoint
80
- */
81
-
82
- /**
83
- * @typedef AggregatorRoute
84
- * @property {string} [api_link] - Api_link
85
- * @property {Object} [data] - Data
86
- * @property {string} [payment_flow] - Payment_flow
87
- * @property {string} [payment_flow_data] - Payment_flow_data
12
+ * @property {string} key - Payment gateway api key
13
+ * @property {string} [user_id] - Registered User id
14
+ * @property {string} [merchant_id] - Unique merchant id
88
15
  */
89
16
 
90
17
  /**
91
18
  * @typedef AggregatorsConfigDetailResponse
92
- * @property {AggregatorConfigDetail} [ccavenue]
93
- * @property {string} env - Environment i.e Live or Test
19
+ * @property {boolean} success
20
+ * @property {AggregatorConfigDetail} [razorpay]
94
21
  * @property {AggregatorConfigDetail} [juspay]
95
- * @property {AggregatorConfigDetail} [mswipe]
22
+ * @property {AggregatorConfigDetail} [simpl]
96
23
  * @property {AggregatorConfigDetail} [payumoney]
97
- * @property {AggregatorConfigDetail} [razorpay]
98
24
  * @property {AggregatorConfigDetail} [rupifi]
99
- * @property {AggregatorConfigDetail} [simpl]
25
+ * @property {AggregatorConfigDetail} [mswipe]
100
26
  * @property {AggregatorConfigDetail} [stripe]
101
- * @property {boolean} success
102
- */
103
-
104
- /**
105
- * @typedef AttachCardRequest
106
- * @property {string} card_id - Card token of payment gateway.
107
- * @property {string} [name_on_card]
108
- * @property {string} [nickname]
109
- * @property {boolean} [refresh] - Refresh cache flag.
110
- */
111
-
112
- /**
113
- * @typedef AttachCardsResponse
114
- * @property {Object} data - List of cards of customer.
115
- * @property {string} [message] - Human readable message.
116
- * @property {boolean} success - Response is successful or not.
27
+ * @property {AggregatorConfigDetail} [ccavenue]
28
+ * @property {string} env - Environment i.e Live or Test
117
29
  */
118
30
 
119
31
  /**
120
- * @typedef BalanceDetails
121
- * @property {string} [currency] - Currency Code
122
- * @property {string} [formatted_value] - Formated Amount with currency symbol
123
- * @property {number} [value] - Payment amount
32
+ * @typedef ErrorCodeAndDescription
33
+ * @property {string} code - Error descrption code.
34
+ * @property {string} description - Error human understandable description.
124
35
  */
125
36
 
126
37
  /**
127
- * @typedef BankDetailsForOTP
128
- * @property {string} account_holder
129
- * @property {string} account_no
130
- * @property {string} bank_name
131
- * @property {string} branch_name
132
- * @property {string} ifsc_code
38
+ * @typedef HttpErrorCodeAndResponse
39
+ * @property {ErrorCodeAndDescription} [error]
40
+ * @property {boolean} success - Response is successful or not
133
41
  */
134
42
 
135
43
  /**
136
- * @typedef BeneficiaryModeDetails
137
- * @property {string} account_holder - Name of the Account Holder
138
- * @property {string} account_no - Account NUmber of the Account Holder
139
- * @property {string} [address] - Address of the User
140
- * @property {string} bank_name - Bank Name of the Account
141
- * @property {string} branch_name - Branch Name of the Account
142
- * @property {string} [comment] - Remarks added by The user
143
- * @property {string} email - Email of the Account Holder
144
- * @property {string} ifsc_code - Ifsc Code of the Account
145
- * @property {string} mobile - Moblie Number of the User
146
- * @property {string} [vpa]
147
- * @property {string} [wallet]
44
+ * @typedef AttachCardRequest
45
+ * @property {string} [nickname]
46
+ * @property {boolean} [refresh] - Refresh cache flag.
47
+ * @property {string} card_id - Card token of payment gateway.
48
+ * @property {string} [name_on_card]
148
49
  */
149
50
 
150
51
  /**
151
- * @typedef BusinessDetails
152
- * @property {KYCAddress} [address]
153
- * @property {string} [business_ownership_type] - Business Ownershipp type(e.g Rented)
154
- * @property {string} [business_type] - Business Type
155
- * @property {string} [entity_type] - Busineess Entity Type
156
- * @property {string} [fda] - Driver License
157
- * @property {string} [fssai] - FDA License Number
158
- * @property {string} [gstin] - GSTIN Number
159
- * @property {string} [name] - Business Name
160
- * @property {string} [pan] - Pan Number
161
- * @property {Object} [shop_and_establishment] - Shop Establishment
162
- * @property {string} [vintage] - Vintage
52
+ * @typedef AttachCardsResponse
53
+ * @property {Object} data - List of cards of customer.
54
+ * @property {boolean} success - Response is successful or not.
55
+ * @property {string} [message] - Human readable message.
163
56
  */
164
57
 
165
58
  /**
166
- * @typedef CancelOrResendPaymentLinkRequest
167
- * @property {string} payment_link_id - Unique id of payment link
59
+ * @typedef CardPaymentGateway
60
+ * @property {string} [api] - Payment gateway CARD api endpoint
61
+ * @property {string} aggregator - Payment gateway name.
62
+ * @property {string} [customer_id] - Payment gateway customer id.
168
63
  */
169
64
 
170
65
  /**
171
- * @typedef CancelPaymentLinkResponse
172
- * @property {string} message - Message
173
- * @property {number} status_code - HTTP status code
174
- * @property {boolean} success - Successful or failure
66
+ * @typedef ActiveCardPaymentGatewayResponse
67
+ * @property {CardPaymentGateway} cards - Card's payment gateway with customer id.
68
+ * @property {boolean} success - Response is successful or not.
69
+ * @property {string} message - Human readable message.
175
70
  */
176
71
 
177
72
  /**
178
73
  * @typedef Card
179
- * @property {string} aggregator_name - Aggregator_name
180
- * @property {string} [card_brand] - Card_brand
181
- * @property {string} [card_brand_image] - Card_brand_image
182
- * @property {string} [card_fingerprint] - Card_fingerprint
183
- * @property {string} [card_id] - Card_id
184
- * @property {string} [card_isin] - Card_isin
185
- * @property {string} [card_issuer] - Card_issuer
186
- * @property {string} [card_name] - Card_name
187
74
  * @property {string} [card_number] - Card_number
188
- * @property {string} [card_reference] - Card_reference
189
- * @property {string} [card_token] - Card_token
75
+ * @property {string} [card_name] - Card_name
190
76
  * @property {string} [card_type] - Card_type
77
+ * @property {string} [card_brand_image] - Card_brand_image
78
+ * @property {string} [card_reference] - Card_reference
79
+ * @property {string} [card_issuer] - Card_issuer
80
+ * @property {string} [card_brand] - Card_brand
81
+ * @property {boolean} [expired] - Expired
191
82
  * @property {boolean} [compliant_with_tokenisation_guidelines] - If card is
192
83
  * tokenised or not
193
- * @property {number} [exp_month] - Exp_month
84
+ * @property {string} [card_isin] - Card_isin
194
85
  * @property {number} [exp_year] - Exp_year
195
- * @property {boolean} [expired] - Expired
196
86
  * @property {string} [nickname] - Nickname
87
+ * @property {string} aggregator_name - Aggregator_name
88
+ * @property {string} [card_fingerprint] - Card_fingerprint
89
+ * @property {string} [card_token] - Card_token
90
+ * @property {number} [exp_month] - Exp_month
91
+ * @property {string} [card_id] - Card_id
197
92
  */
198
93
 
199
94
  /**
200
- * @typedef CardDetails
201
- * @property {string} bank - Bank name
202
- * @property {string} bank_code - Bank Code
203
- * @property {string} card_brand - Card brand like VISA/RUPAY
204
- * @property {string} [card_exp_month] - Card Expire Month
205
- * @property {string} [card_exp_year] - Card Expire Year
206
- * @property {string} card_object - Card bin or Card refrence
207
- * @property {string} card_sub_type - Card Sub type
208
- * @property {string} [card_token] - Card Token
209
- * @property {string} country - Country Name
210
- * @property {string} extended_card_type - Extended Card Type
211
- * @property {string} id - Id
212
- * @property {boolean} is_domestic_card - Is card domestic or international
213
- * @property {string} [name_on_card] - Name on Card
214
- * @property {boolean} status - Status
215
- * @property {string} type - Card Type Credit/Debit
216
- * @property {string} [user] - Customer/User ID
95
+ * @typedef ListCardsResponse
96
+ * @property {Card[]} [data] - List of cards of customer.
97
+ * @property {boolean} success - Response is successful or not.
98
+ * @property {string} message - Human readable message.
217
99
  */
218
100
 
219
101
  /**
220
- * @typedef CardDetailsResponse
221
- * @property {CardDetails} data
102
+ * @typedef DeletehCardRequest
103
+ * @property {string} card_id - Card token of payment gateway.
104
+ */
105
+
106
+ /**
107
+ * @typedef DeleteCardsResponse
222
108
  * @property {boolean} success - Response is successful or not.
109
+ * @property {string} [message] - Human readable message.
223
110
  */
224
111
 
225
112
  /**
226
- * @typedef CardPaymentGateway
227
- * @property {string} aggregator - Payment gateway name.
228
- * @property {string} [api] - Payment gateway CARD api endpoint
229
- * @property {string} [customer_id] - Payment gateway customer id.
113
+ * @typedef ValidateCustomerRequest
114
+ * @property {string} aggregator - Payment gateway name in camel case i.e Simpl, Rupifi
115
+ * @property {number} transaction_amount_in_paise - Payable amount in paise
116
+ * @property {string} phone_number - User mobile number without country code.
117
+ * @property {Object} [billing_address] - Extra meta fields.
118
+ * @property {Object[]} [order_items] - Extra meta fields.
119
+ * @property {string} [payload] - Hashed payload string.
120
+ * @property {Object} [merchant_params] - Extra meta fields.
121
+ * @property {Object} [delivery_address] - Extra meta fields.
122
+ */
123
+
124
+ /**
125
+ * @typedef ValidateCustomerResponse
126
+ * @property {Object} data - Payment gateway response data
127
+ * @property {boolean} success - Response is successful or not
128
+ * @property {string} message - Error or success message.
230
129
  */
231
130
 
232
131
  /**
233
132
  * @typedef ChargeCustomerRequest
133
+ * @property {boolean} [verified] - Already Verified flag from payment gateway i.e Mswipe
234
134
  * @property {string} aggregator - Payment gateway name i.e Simpl, Mswipe
235
- * @property {number} amount - Chargable amount of order.
236
135
  * @property {string} order_id - Unique order id.
237
136
  * @property {string} [transaction_token] - Transaction token of payment gateway.
238
- * @property {boolean} [verified] - Already Verified flag from payment gateway i.e Mswipe
137
+ * @property {number} amount - Chargable amount of order.
239
138
  */
240
139
 
241
140
  /**
242
141
  * @typedef ChargeCustomerResponse
243
- * @property {string} aggregator - Payment gateway name i.e Simpl, Mswipe
142
+ * @property {string} status - Status of charged payment.
244
143
  * @property {string} [cart_id] - Cart id of customer
245
- * @property {string} [delivery_address_id] - Delivery adddress id of customer
144
+ * @property {boolean} success - Response is successful or not.
145
+ * @property {string} aggregator - Payment gateway name i.e Simpl, Mswipe
246
146
  * @property {string} message - Human readable message.
247
147
  * @property {string} order_id - Unique order id.
248
- * @property {string} status - Status of charged payment.
249
- * @property {boolean} success - Response is successful or not.
148
+ * @property {string} [delivery_address_id] - Delivery adddress id of customer
250
149
  */
251
150
 
252
151
  /**
253
- * @typedef CheckCreditResponse
254
- * @property {CreditDetail} data
255
- * @property {boolean} success - Operation is successful or not.
152
+ * @typedef PaymentInitializationRequest
153
+ * @property {string} [razorpay_payment_id] - Payment gateway payment id
154
+ * @property {string} method - Payment method
155
+ * @property {string} [device_id] - EDC machine Unique Identifier
156
+ * @property {string} aggregator - Payment gateway name
157
+ * @property {string} customer_id - Payment gateway customer id.
158
+ * @property {string} contact - Customer valid mobile number
159
+ * @property {string} merchant_order_id - Unique fynd order id
160
+ * @property {string} [vpa] - Customer vpa address
161
+ * @property {string} order_id - Payment gateway order id
162
+ * @property {string} currency - Currency code.
163
+ * @property {number} [timeout] - Payment polling timeout if not recieved response
164
+ * @property {number} amount - Payable amount.
165
+ * @property {string} email - Customer valid email
256
166
  */
257
167
 
258
168
  /**
259
- * @typedef CreateOrderUserData
260
- * @property {string} [aggregator] - Aggregator name
261
- * @property {number} [amount] - Amount
262
- * @property {string} [callback_url] - Callback url for aggregator
263
- * @property {string} [contact] - Mobile number
264
- * @property {string} [currency] - Currency
265
- * @property {string} [customer_id] - Aggregator customer id
266
- * @property {string} [email] - Email
267
- * @property {string} [merchant_order_id] - Merchant order id
268
- * @property {string} [method] - Method
269
- * @property {string} [order_id] - Aggregator order id
270
- */
271
-
272
- /**
273
- * @typedef CreateOrderUserPaymentMethods
274
- * @property {PaymentMethodsMeta} meta
275
- * @property {string} mode - Payment mode
276
- * @property {string} name - Payment mode name
169
+ * @typedef PaymentInitializationResponse
170
+ * @property {string} [status] - Status of payment.
171
+ * @property {string} [razorpay_payment_id] - Payment id.
172
+ * @property {string} [aggregator_order_id] - Payment order id
173
+ * @property {string} method - Payment method
174
+ * @property {boolean} success - Response is successful or not.
175
+ * @property {string} [upi_poll_url] - UPI poll url.
176
+ * @property {string} [virtual_id] - Payment virtual address.
177
+ * @property {string} [device_id] - EDC machine Unique Identifier
178
+ * @property {string} polling_url - Polling url.
179
+ * @property {string} aggregator - Payment gateway name
180
+ * @property {string} merchant_order_id - Order id
181
+ * @property {string} [customer_id] - Payment gateway customer id.
182
+ * @property {string} [vpa] - Customer vpa address
183
+ * @property {string} [currency] - Currency code.
184
+ * @property {number} [timeout] - Timeout.
185
+ * @property {number} [amount] - Payable amount.
186
+ * @property {string} [bqr_image] - Bharath qr image url.
277
187
  */
278
188
 
279
189
  /**
280
- * @typedef CreateOrderUserRequest
281
- * @property {string} currency - Currency
282
- * @property {string} failure_callback_url - Failure page url
283
- * @property {Object} [meta] - Meta
284
- * @property {string} payment_link_id - Unique id of payment link
285
- * @property {CreateOrderUserPaymentMethods} payment_methods
286
- * @property {string} success_callback_url - Success page url
190
+ * @typedef PaymentStatusUpdateRequest
191
+ * @property {string} status - Status of payment.
192
+ * @property {string} merchant_transaction_id - Unique fynd transaction id
193
+ * @property {string} method - Payment method
194
+ * @property {string} [device_id] - EDC machine Unique Identifier
195
+ * @property {string} aggregator - Payment gateway name
196
+ * @property {string} customer_id - Payment gateway customer id.
197
+ * @property {string} contact - Customer valid mobile number
198
+ * @property {string} merchant_order_id - Unique fynd order id
199
+ * @property {string} [vpa] - Customer vpa address
200
+ * @property {string} order_id - Payment gateway order id
201
+ * @property {string} currency - Currency code.
202
+ * @property {number} amount - Payable amount.
203
+ * @property {string} email - Customer valid email
287
204
  */
288
205
 
289
206
  /**
290
- * @typedef CreateOrderUserResponse
291
- * @property {string} [callback_url] - Callback url for aggregator
292
- * @property {CreateOrderUserData} [data]
293
- * @property {string} message - Message
294
- * @property {string} [order_id] - Merchant order id
295
- * @property {string} [payment_confirm_url] - Payment confirm url for aggregator
296
- * @property {number} status_code - HTTP status code
297
- * @property {boolean} success - Successful or failure
207
+ * @typedef PaymentStatusUpdateResponse
208
+ * @property {string} status - Payment status
209
+ * @property {boolean} [success] - Response is successful or not
210
+ * @property {boolean} retry - Response is successful or not.
211
+ * @property {string} [redirect_url] - Redirect url
212
+ * @property {string} aggregator_name - Payment gateway name
298
213
  */
299
214
 
300
215
  /**
301
- * @typedef CreatePaymentLinkMeta
302
- * @property {string} amount
303
- * @property {string} [assign_card_id]
304
- * @property {string} cart_id
305
- * @property {string} checkout_mode
216
+ * @typedef IntentAppErrorList
217
+ * @property {string} [code] - Code
218
+ * @property {string} [package_name] - Package_name
306
219
  */
307
220
 
308
221
  /**
309
- * @typedef CreatePaymentLinkRequest
310
- * @property {number} amount - Total value of order
311
- * @property {string} [description] - Merchant order id
312
- * @property {string} email - Email to which the payment link is to be sent
313
- * @property {string} external_order_id - Merchant order id
314
- * @property {CreatePaymentLinkMeta} meta
315
- * @property {string} mobile_number - Mobile number to which the payment link is
316
- * to be sent
222
+ * @typedef PaymentModeLogo
223
+ * @property {string} large - Large
224
+ * @property {string} small - Smalll
317
225
  */
318
226
 
319
227
  /**
320
- * @typedef CreatePaymentLinkResponse
321
- * @property {string} message - Message
322
- * @property {string} [payment_link_id] - Unique id of payment link
323
- * @property {string} [payment_link_url] - Url of payment link
324
- * @property {number} [polling_timeout] - Polling request timeout
325
- * @property {number} status_code - HTTP status code
326
- * @property {boolean} success - Successful or failure
228
+ * @typedef IntentApp
229
+ * @property {string} [code] - Code
230
+ * @property {string} [package_name] - Package_name
231
+ * @property {Object} [logos] - Logos
232
+ * @property {string} [display_name] - Display_name
327
233
  */
328
234
 
329
235
  /**
330
- * @typedef CreditDetail
331
- * @property {boolean} is_registered - User is registered with aggregator or not.
332
- * @property {string} signup_url - URL to which the user may redirect.
333
- * @property {boolean} status - Operation is successful or not.
236
+ * @typedef PaymentModeList
237
+ * @property {string} [card_number] - Card_number
238
+ * @property {string} [merchant_code] - Merchant code
239
+ * @property {string} [card_reference] - Card_reference
240
+ * @property {string} [card_issuer] - Card_issuer
241
+ * @property {boolean} [compliant_with_tokenisation_guidelines] - If card is
242
+ * tokenised or not
243
+ * @property {string} [code] - Code
244
+ * @property {number} [cod_limit] - Cod limit
245
+ * @property {boolean} [intent_flow] - Intent_flow
246
+ * @property {string} [fynd_vpa] - Fynd_vpa
247
+ * @property {IntentAppErrorList[]} [intent_app_error_dict_list] -
248
+ * Intent_app_error_dict_list
249
+ * @property {string} aggregator_name - Aggregator_name
250
+ * @property {string} [card_fingerprint] - Card_fingerprint
251
+ * @property {string[]} [intent_app_error_list] - Intent_app_error_list
252
+ * @property {IntentApp[]} [intent_app] - Intent_app
253
+ * @property {boolean} [expired] - Expired
254
+ * @property {number} [retry_count] - Retry_count
255
+ * @property {number} [exp_year] - Exp_year
256
+ * @property {number} [exp_month] - Exp_month
257
+ * @property {string} [card_id] - Card_id
258
+ * @property {number} [remaining_limit] - Remaining limit
259
+ * @property {number} [display_priority] - Dispaly Priority
260
+ * @property {string} [card_brand] - Card_brand
261
+ * @property {number} [cod_limit_per_order] - Cod limit per order
262
+ * @property {Object} [logo_url] - Logo
263
+ * @property {string} [nickname] - Nickname
264
+ * @property {string} [card_name] - Card_name
265
+ * @property {string} [card_type] - Card_type
266
+ * @property {string} [card_brand_image] - Card_brand_image
267
+ * @property {string} [display_name] - Display name
268
+ * @property {string} [card_isin] - Card_isin
269
+ * @property {number} [timeout] - Timeout
270
+ * @property {string} [card_token] - Card_token
271
+ * @property {string} [name] - Name
334
272
  */
335
273
 
336
274
  /**
337
- * @typedef CreditSummary
338
- * @property {string} [activation_url] - Url for activation
339
- * @property {BalanceDetails} [amount_available]
340
- * @property {BalanceDetails} [balance]
341
- * @property {string} [buyer_status] - Status from Credit aggregator's end
342
- * @property {string} [credit_line_id] - ID at Credit aggregator's end
343
- * @property {BalanceDetails} [due_amount]
344
- * @property {string} [due_date] - Due date for repayment
345
- * @property {boolean} [is_eligible_for_txn] - Eligiblity flag to complete transaction
346
- * @property {BalanceDetails} [limit]
347
- * @property {string} [merchant_customer_ref_id] - Unique aggregator customer id
348
- * @property {string} [repayment_url] - Url for repayment
349
- * @property {string} [soa_url] - Statement of accounts. Show payment history.
350
- * @property {string} [status] - Customer Credit status
351
- * @property {string} [status_message] - Message to customer
352
- * @property {BalanceDetails} [total_due_amount]
275
+ * @typedef RootPaymentMode
276
+ * @property {boolean} [is_pay_by_card_pl] - This flag will be true in case of
277
+ * Payment link payment through card
278
+ * @property {boolean} [add_card_enabled] - Annonymous card flag
279
+ * @property {number} display_priority - Dispaly Priority
280
+ * @property {string} display_name - Payment mode display name
281
+ * @property {PaymentModeList[]} [list] - Payment mode
282
+ * @property {boolean} [save_card] - Card save or not
283
+ * @property {string} [aggregator_name] - Dispaly Priority
284
+ * @property {string} name - Payment mode name
285
+ * @property {boolean} [anonymous_enable] - Annonymous card flag
353
286
  */
354
287
 
355
288
  /**
356
- * @typedef CustomerCreditSummaryResponse
357
- * @property {CreditSummary} [data]
358
- * @property {boolean} success - Payment confirmation updated or not.
289
+ * @typedef AggregatorRoute
290
+ * @property {Object} [data] - Data
291
+ * @property {string} [payment_flow_data] - Payment_flow_data
292
+ * @property {string} [payment_flow] - Payment_flow
293
+ * @property {string} [api_link] - Api_link
359
294
  */
360
295
 
361
296
  /**
362
- * @typedef CustomerOnboardingRequest
363
- * @property {string} aggregator - Aggregator Name
364
- * @property {BusinessDetails} [business_info]
365
- * @property {DeviceDetails} [device]
366
- * @property {MarketplaceInfo} [marketplace_info]
367
- * @property {string} [mcc] - Mcc
368
- * @property {UserPersonalInfoInDetails} [personal_info]
369
- * @property {string} source - CallbackURL
297
+ * @typedef PaymentFlow
298
+ * @property {Object} [bqr_razorpay] - BQR_Razorpay
299
+ * @property {Object} [fynd] - Fynd
300
+ * @property {Object} [epaylater] - Epaylater
301
+ * @property {Object} [razorpay] - Razorpay
302
+ * @property {Object} [juspay] - Juspay
303
+ * @property {Object} [ajiodhan] - Ajiodhan
304
+ * @property {Object} [simpl] - Simpl
305
+ * @property {Object} [rupifi] - Rupifi
306
+ * @property {Object} [mswipe] - Mswipe
307
+ * @property {Object} [stripe] - Stripe
308
+ * @property {Object} [ccavenue] - Ccavenue
309
+ * @property {Object} [payubiz] - Payubiz
310
+ * @property {Object} [jiopay] - Jiopay
311
+ * @property {Object} [upi_razorpay] - UPI_Razorpay
370
312
  */
371
313
 
372
314
  /**
373
- * @typedef CustomerOnboardingResponse
374
- * @property {OnboardSummary} data
375
- * @property {boolean} success - Status updated or not.
315
+ * @typedef PaymentOptionAndFlow
316
+ * @property {RootPaymentMode[]} payment_option - Payment options
317
+ * @property {PaymentFlow} payment_flows - Payment_flows
376
318
  */
377
319
 
378
320
  /**
379
- * @typedef DeleteCardsResponse
380
- * @property {string} [message] - Human readable message.
381
- * @property {boolean} success - Response is successful or not.
321
+ * @typedef PaymentModeRouteResponse
322
+ * @property {PaymentOptionAndFlow} payment_options - Payment_options
323
+ * @property {boolean} success - Response is successful or not
382
324
  */
383
325
 
384
326
  /**
385
- * @typedef DeletehCardRequest
386
- * @property {string} card_id - Card token of payment gateway.
327
+ * @typedef RupifiBannerData
328
+ * @property {string} [status] - Rupifi KYC status
329
+ * @property {string} [kyc_url] - Rupifi KYC banner url.
387
330
  */
388
331
 
389
332
  /**
390
- * @typedef DeviceDetails
391
- * @property {string} [device_make] - Device maker
392
- * @property {string} [device_model] - Device Model
393
- * @property {string} [device_type] - Device Type(E.g. Mobile)
394
- * @property {string} [identification_number] - IP
395
- * @property {string} [identifier_type] - Static value = ip
396
- * @property {string} [os] - OS Name
397
- * @property {string} [os_version] - OS Version
333
+ * @typedef RupifiBannerResponse
334
+ * @property {RupifiBannerData} data - Rupifi KYC banner details.
335
+ * @property {boolean} success - Successful or not.
398
336
  */
399
337
 
400
338
  /**
401
339
  * @typedef EpaylaterBannerData
402
- * @property {boolean} display - Need to display banner or not
403
- * @property {string} [message] - EPayLater message
404
340
  * @property {string} [status] - Epaylater KYC status
341
+ * @property {string} [message] - EPayLater message
342
+ * @property {boolean} display - Need to display banner or not
405
343
  */
406
344
 
407
345
  /**
408
346
  * @typedef EpaylaterBannerResponse
409
- * @property {EpaylaterBannerData} data
347
+ * @property {EpaylaterBannerData} data - Epaylater KYC banner details.
410
348
  * @property {boolean} success - Successful or not.
411
349
  */
412
350
 
413
351
  /**
414
- * @typedef ErrorCodeAndDescription
415
- * @property {string} code - Error descrption code.
416
- * @property {string} description - Error human understandable description.
352
+ * @typedef ResendOrCancelPaymentRequest
353
+ * @property {string} order_id - Unique order id
354
+ * @property {string} [device_id] - EDC machine Unique Identifier
355
+ * @property {string} request_type - Either resend or cancel
417
356
  */
418
357
 
419
358
  /**
420
- * @typedef ErrorCodeDescription
421
- * @property {string} code - Error descrption code.
422
- * @property {string} description - Error human understandable description.
423
- * @property {boolean} success - Response is successful or not
359
+ * @typedef LinkStatus
360
+ * @property {boolean} status - Link action status
361
+ * @property {string} message - Message
424
362
  */
425
363
 
426
364
  /**
427
- * @typedef ErrorDescription
428
- * @property {number} [amount] - Amount paid
429
- * @property {boolean} [cancelled] - Payment link is cancelled or not
430
- * @property {boolean} [expired] - Payment link expired or not
431
- * @property {boolean} [invalid_id] - Payment link id is valid or not
432
- * @property {string} [merchant_name] - Name of merchant that created payment link
433
- * @property {string} [merchant_order_id] - Order id
434
- * @property {string} [msg] - Message
435
- * @property {string} [payment_transaction_id] - Payment transaction id
365
+ * @typedef ResendOrCancelPaymentResponse
366
+ * @property {LinkStatus} data - Data about link action status.
367
+ * @property {boolean} success - Response is successful or not.
436
368
  */
437
369
 
438
370
  /**
439
- * @typedef ErrorResponse
440
- * @property {ErrorDescription} [error]
441
- * @property {string} message - Message
442
- * @property {number} status_code - HTTP status code
443
- * @property {boolean} success - Successful or failure
371
+ * @typedef renderHTMLRequest
372
+ * @property {string} [returntype] - Return Type of API
373
+ * @property {string} base64_html - Base64 encoded html string
444
374
  */
445
375
 
446
376
  /**
447
- * @typedef GetPaymentLinkResponse
448
- * @property {number} [amount] - Total value of order
449
- * @property {string} [external_order_id] - Merchant order id
450
- * @property {string} [merchant_name] - Merchant name
451
- * @property {string} message - Message
452
- * @property {string} [payment_link_current_status] - Status of payment link
453
- * @property {string} [payment_link_url] - Url of payment link
454
- * @property {number} [polling_timeout] - Polling request timeout
455
- * @property {number} status_code - HTTP status code
456
- * @property {boolean} success - Successful or failure
377
+ * @typedef renderHTMLResponse
378
+ * @property {string} html - HTML string
457
379
  */
458
380
 
459
381
  /**
460
- * @typedef HttpErrorCodeAndResponse
461
- * @property {ErrorCodeAndDescription} [error]
462
- * @property {boolean} success - Response is successful or not
382
+ * @typedef ValidateVPARequest
383
+ * @property {string} upi_vpa - UPI ID
463
384
  */
464
385
 
465
386
  /**
466
- * @typedef IfscCodeResponse
467
- * @property {string} bank_name - Bank Name Of Account
468
- * @property {string} branch_name - Branch Name Of Account
469
- * @property {boolean} [success] - Response is successful or not
387
+ * @typedef ValidateUPI
388
+ * @property {string} status - VALID or INVALID
389
+ * @property {string} customer_name - Customer Bank
390
+ * @property {boolean} is_valid - Boolean is true or false.
391
+ * @property {string} upi_vpa - UPI ID
470
392
  */
471
393
 
472
394
  /**
473
- * @typedef IntentApp
474
- * @property {string} [code] - Code
475
- * @property {string} [display_name] - Display_name
476
- * @property {PaymentModeLogo} [logos]
477
- * @property {string} [package_name] - Package_name
395
+ * @typedef ValidateVPAResponse
396
+ * @property {ValidateUPI} data - Data about UPI ID validate.
397
+ * @property {boolean} success - Response is successful or not.
478
398
  */
479
399
 
480
400
  /**
481
- * @typedef IntentAppErrorList
482
- * @property {string} [code] - Code
483
- * @property {string} [package_name] - Package_name
401
+ * @typedef CardDetails
402
+ * @property {boolean} status - Status
403
+ * @property {string} country - Country Name
404
+ * @property {string} bank_code - Bank Code
405
+ * @property {string} id - Id
406
+ * @property {string} [card_exp_year] - Card Expire Year
407
+ * @property {string} card_brand - Card brand like VISA/RUPAY
408
+ * @property {string} type - Card Type Credit/Debit
409
+ * @property {string} card_sub_type - Card Sub type
410
+ * @property {boolean} is_domestic_card - Is card domestic or international
411
+ * @property {string} [name_on_card] - Name on Card
412
+ * @property {string} [card_exp_month] - Card Expire Month
413
+ * @property {string} extended_card_type - Extended Card Type
414
+ * @property {string} card_object - Card bin or Card refrence
415
+ * @property {string} [card_token] - Card Token
416
+ * @property {string} [user] - Customer/User ID
417
+ * @property {string} bank - Bank name
484
418
  */
485
419
 
486
420
  /**
487
- * @typedef KYCAddress
488
- * @property {string} addressline1 - Address Line 1
489
- * @property {string} [addressline2] - Address Line 2
490
- * @property {string} city - City
491
- * @property {string} [land_mark] - Land Mark
492
- * @property {string} [ownership_type] - Address Owner Type
493
- * @property {string} pincode - Pincode
494
- * @property {string} state - State
421
+ * @typedef CardDetailsResponse
422
+ * @property {CardDetails} data - Saved Card Details
423
+ * @property {boolean} success - Response is successful or not.
495
424
  */
496
425
 
497
426
  /**
498
- * @typedef LinkStatus
499
- * @property {string} message - Message
500
- * @property {boolean} status - Link action status
427
+ * @typedef TransferItemsDetails
428
+ * @property {number} id -
429
+ * @property {string} [display_name] - Beneficiary Display Name
430
+ * @property {string} logo_large - Beneficiary large Logo
431
+ * @property {string} logo_small - Beneficiary small Logo
432
+ * @property {string} name - Beneficiary Name
501
433
  */
502
434
 
503
435
  /**
504
- * @typedef ListCardsResponse
505
- * @property {Card[]} [data] - List of cards of customer.
506
- * @property {string} message - Human readable message.
507
- * @property {boolean} success - Response is successful or not.
436
+ * @typedef TransferModeDetails
437
+ * @property {TransferItemsDetails[]} [items] - Beneficiary Mode Items
438
+ * @property {string} display_name - Beneficiary Mode Name
508
439
  */
509
440
 
510
441
  /**
511
- * @typedef MarketplaceInfo
512
- * @property {string} [date_of_joining] - Date of joining
513
- * @property {string} membership_id - Merchant id
514
- * @property {string} name - Name of store
442
+ * @typedef TransferModeResponse
443
+ * @property {TransferModeDetails[]} data - Response Object
515
444
  */
516
445
 
517
446
  /**
518
- * @typedef NotFoundResourceError
519
- * @property {string} code - Bad Request Data
520
- * @property {string} description - Not Found
521
- * @property {boolean} success - Response is successful or not
447
+ * @typedef UpdateRefundTransferModeRequest
448
+ * @property {boolean} enable - True for enabling the Transfer Mode
449
+ * @property {string} transfer_mode - Transfer Mode of the Beneficiary to be added
522
450
  */
523
451
 
524
452
  /**
525
- * @typedef OnboardSummary
526
- * @property {string} [activation_url] - Url for activation
527
- * @property {boolean} [is_eligible_for_txn] - Whether is eligible for transaction
528
- * @property {string} [merchant_customer_ref_id] - Rupifi customer ID
529
- * @property {string} [redirect_url] - URL to which the user may redirect.
530
- * @property {Object} [session] - User Session
531
- * @property {boolean} status - Transaction status
532
- * @property {string} [status_remark] - Decription of status
453
+ * @typedef UpdateRefundTransferModeResponse
454
+ * @property {boolean} [success] - Response is successful or not
533
455
  */
534
456
 
535
457
  /**
536
458
  * @typedef OrderBeneficiaryDetails
537
- * @property {string} account_holder - Account Holder Name
459
+ * @property {string} modified_on - MOdification Date of Beneficiary
538
460
  * @property {string} account_no - Account Number
539
- * @property {string} address - Address of User
461
+ * @property {string} [mobile] - MObile no of User
540
462
  * @property {string} bank_name - Bank Name Of Account
463
+ * @property {string} ifsc_code - Ifsc Code Of Account
464
+ * @property {boolean} is_active - Boolean Flag whether Beneficiary set or not
541
465
  * @property {string} beneficiary_id - Benenficiary Id
542
- * @property {string} [branch_name] - Branch Name Of Account
543
- * @property {string} [comment] - Remarks
544
- * @property {string} created_on - Creation Date of Beneficiary
545
- * @property {string} [delights_user_name] - User Id Who filled the Beneficiary
546
- * @property {string} display_name - Display Name Of Account
466
+ * @property {string} account_holder - Account Holder Name
547
467
  * @property {string} email - EMail of User
468
+ * @property {string} [delights_user_name] - User Id Who filled the Beneficiary
548
469
  * @property {number} id -
549
- * @property {string} ifsc_code - Ifsc Code Of Account
550
- * @property {boolean} is_active - Boolean Flag whether Beneficiary set or not
551
- * @property {string} [mobile] - MObile no of User
552
- * @property {string} modified_on - MOdification Date of Beneficiary
470
+ * @property {string} transfer_mode - Transfer Mode Of Account
471
+ * @property {string} [branch_name] - Branch Name Of Account
472
+ * @property {string} created_on - Creation Date of Beneficiary
553
473
  * @property {string} subtitle - SHort Title Of Account
474
+ * @property {string} [comment] - Remarks
475
+ * @property {string} address - Address of User
554
476
  * @property {string} title - Title Of Account
555
- * @property {string} transfer_mode - Transfer Mode Of Account
477
+ * @property {string} display_name - Display Name Of Account
556
478
  */
557
479
 
558
480
  /**
559
481
  * @typedef OrderBeneficiaryResponse
560
- * @property {OrderBeneficiaryDetails[]} [beneficiaries] - All Beneficiaries Of An Order
561
482
  * @property {boolean} [show_beneficiary_details] - Show beneficiary details or not.
483
+ * @property {OrderBeneficiaryDetails[]} [beneficiaries] - All Beneficiaries Of An Order
562
484
  */
563
485
 
564
486
  /**
565
- * @typedef OutstandingOrderDetailsResponse
566
- * @property {Object[]} [data] - Dict containing the outstanding order details
567
- * @property {string} [message] - Message
568
- * @property {number} status_code - HTTP Status code
569
- * @property {boolean} success - Response is successful or not.
487
+ * @typedef NotFoundResourceError
488
+ * @property {string} code - Bad Request Data
489
+ * @property {string} description - Not Found
490
+ * @property {boolean} success - Response is successful or not
570
491
  */
571
492
 
572
493
  /**
573
- * @typedef PaidOrderDetailsResponse
574
- * @property {Object[]} [data] - Dict containing the paid order details
575
- * @property {string} [message] - Message
576
- * @property {number} status_code - HTTP Status code
577
- * @property {boolean} success - Response is successful or not.
494
+ * @typedef IfscCodeResponse
495
+ * @property {string} branch_name - Branch Name Of Account
496
+ * @property {boolean} [success] - Response is successful or not
497
+ * @property {string} bank_name - Bank Name Of Account
578
498
  */
579
499
 
580
500
  /**
581
- * @typedef PaymentFlow
582
- * @property {AggregatorRoute} [ajiodhan]
583
- * @property {AggregatorRoute} [bqr_razorpay]
584
- * @property {AggregatorRoute} [ccavenue]
585
- * @property {AggregatorRoute} [epaylater]
586
- * @property {AggregatorRoute} [fynd]
587
- * @property {AggregatorRoute} [jiopay]
588
- * @property {AggregatorRoute} [juspay]
589
- * @property {AggregatorRoute} [mswipe]
590
- * @property {AggregatorRoute} [payubiz]
591
- * @property {AggregatorRoute} [razorpay]
592
- * @property {AggregatorRoute} [rupifi]
593
- * @property {AggregatorRoute} [simpl]
594
- * @property {AggregatorRoute} [stripe]
595
- * @property {AggregatorRoute} [upi_razorpay]
501
+ * @typedef ErrorCodeDescription
502
+ * @property {string} code - Error descrption code.
503
+ * @property {string} description - Error human understandable description.
504
+ * @property {boolean} success - Response is successful or not
596
505
  */
597
506
 
598
507
  /**
599
- * @typedef PaymentInitializationRequest
600
- * @property {string} aggregator - Payment gateway name
601
- * @property {number} amount - Payable amount.
602
- * @property {string} contact - Customer valid mobile number
603
- * @property {string} currency - Currency code.
604
- * @property {string} customer_id - Payment gateway customer id.
605
- * @property {string} [device_id] - EDC machine Unique Identifier
606
- * @property {string} email - Customer valid email
607
- * @property {string} merchant_order_id - Unique fynd order id
608
- * @property {string} method - Payment method
609
- * @property {string} order_id - Payment gateway order id
610
- * @property {string} [razorpay_payment_id] - Payment gateway payment id
611
- * @property {number} [timeout] - Payment polling timeout if not recieved response
612
- * @property {string} [vpa] - Customer vpa address
508
+ * @typedef AddBeneficiaryViaOtpVerificationRequest
509
+ * @property {string} request_id - Request Id sent in
510
+ * @property {string} hash_key - Hash key of the beneficiary Id
511
+ * @property {string} otp - Otp sent to the given Mobile No
613
512
  */
614
513
 
615
514
  /**
616
- * @typedef PaymentInitializationResponse
617
- * @property {string} aggregator - Payment gateway name
618
- * @property {string} [aggregator_order_id] - Payment order id
619
- * @property {number} [amount] - Payable amount.
620
- * @property {string} [bqr_image] - Bharath qr image url.
621
- * @property {string} [currency] - Currency code.
622
- * @property {string} [customer_id] - Payment gateway customer id.
623
- * @property {string} [device_id] - EDC machine Unique Identifier
624
- * @property {string} merchant_order_id - Order id
625
- * @property {string} method - Payment method
626
- * @property {string} polling_url - Polling url.
627
- * @property {string} [razorpay_payment_id] - Payment id.
628
- * @property {string} [status] - Status of payment.
629
- * @property {boolean} success - Response is successful or not.
630
- * @property {number} [timeout] - Timeout.
631
- * @property {string} [upi_poll_url] - UPI poll url.
632
- * @property {string} [virtual_id] - Payment virtual address.
633
- * @property {string} [vpa] - Customer vpa address
515
+ * @typedef AddBeneficiaryViaOtpVerificationResponse
516
+ * @property {boolean} [success] - Response is successful or not
517
+ * @property {string} message - Aggregator Response of beneficicary
634
518
  */
635
519
 
636
520
  /**
637
- * @typedef PaymentMethodsMeta
638
- * @property {string} merchant_code - Merchant code
639
- * @property {string} payment_gateway - Payment gateway name
640
- * @property {string} payment_identifier - Payment identifier
521
+ * @typedef WrongOtpError
522
+ * @property {boolean} is_verified_flag - Vefified flag.
523
+ * @property {string} description - Wrong OTP Code
524
+ * @property {string} success - Response is successful or not
641
525
  */
642
526
 
643
527
  /**
644
- * @typedef PaymentMethodsMetaOrder
645
- * @property {string} merchant_code - Merchant code
646
- * @property {string} payment_gateway - Payment gateway name
647
- * @property {string} payment_identifier - Payment identifier
528
+ * @typedef BeneficiaryModeDetails
529
+ * @property {string} account_no - Account NUmber of the Account Holder
530
+ * @property {string} [address] - Address of the User
531
+ * @property {string} mobile - Moblie Number of the User
532
+ * @property {string} bank_name - Bank Name of the Account
533
+ * @property {string} [comment] - Remarks added by The user
534
+ * @property {string} ifsc_code - Ifsc Code of the Account
535
+ * @property {string} [vpa]
536
+ * @property {string} branch_name - Branch Name of the Account
537
+ * @property {string} account_holder - Name of the Account Holder
538
+ * @property {string} [wallet]
539
+ * @property {string} email - Email of the Account Holder
648
540
  */
649
541
 
650
542
  /**
651
- * @typedef PaymentModeList
652
- * @property {string} aggregator_name - Aggregator_name
653
- * @property {string} [card_brand] - Card_brand
654
- * @property {string} [card_brand_image] - Card_brand_image
655
- * @property {string} [card_fingerprint] - Card_fingerprint
656
- * @property {string} [card_id] - Card_id
657
- * @property {string} [card_isin] - Card_isin
658
- * @property {string} [card_issuer] - Card_issuer
659
- * @property {string} [card_name] - Card_name
660
- * @property {string} [card_number] - Card_number
661
- * @property {string} [card_reference] - Card_reference
662
- * @property {string} [card_token] - Card_token
663
- * @property {string} [card_type] - Card_type
664
- * @property {number} [cod_limit] - Cod limit
665
- * @property {number} [cod_limit_per_order] - Cod limit per order
666
- * @property {string} [code] - Code
667
- * @property {boolean} [compliant_with_tokenisation_guidelines] - If card is
668
- * tokenised or not
669
- * @property {string} [display_name] - Display name
670
- * @property {number} [display_priority] - Dispaly Priority
671
- * @property {number} [exp_month] - Exp_month
672
- * @property {number} [exp_year] - Exp_year
673
- * @property {boolean} [expired] - Expired
674
- * @property {string} [fynd_vpa] - Fynd_vpa
675
- * @property {IntentApp[]} [intent_app] - Intent_app
676
- * @property {IntentAppErrorList[]} [intent_app_error_dict_list] -
677
- * Intent_app_error_dict_list
678
- * @property {string[]} [intent_app_error_list] - Intent_app_error_list
679
- * @property {boolean} [intent_flow] - Intent_flow
680
- * @property {PaymentModeLogo} [logo_url]
681
- * @property {string} [merchant_code] - Merchant code
682
- * @property {Object} [meta] - Payment methods meta
683
- * @property {string} [name] - Name
684
- * @property {string} [nickname] - Nickname
685
- * @property {number} [remaining_limit] - Remaining limit
686
- * @property {number} [retry_count] - Retry_count
687
- * @property {number} [timeout] - Timeout
543
+ * @typedef AddBeneficiaryDetailsRequest
544
+ * @property {boolean} delights - True if beneficiary to be added by delights or
545
+ * False if by User
546
+ * @property {string} shipment_id - Shipment Id of the respective Merchant Order Id
547
+ * @property {BeneficiaryModeDetails} details - Beneficiary bank details
548
+ * @property {string} [otp]
549
+ * @property {string} order_id - Merchant Order Id
550
+ * @property {string} transfer_mode - Transfer Mode of the Beneficiary to be added
551
+ * @property {string} [request_id]
688
552
  */
689
553
 
690
554
  /**
691
- * @typedef PaymentModeLogo
692
- * @property {string} large - Large
693
- * @property {string} small - Smalll
555
+ * @typedef RefundAccountResponse
556
+ * @property {boolean} [is_verified_flag]
557
+ * @property {Object} [data] - Refund account data.
558
+ * @property {boolean} success - Success or failure flag.
559
+ * @property {string} message - Response message
694
560
  */
695
561
 
696
562
  /**
697
- * @typedef PaymentModeRouteResponse
698
- * @property {AdvancePaymentObject[]} [advance_payment] - Advance Payment Array
699
- * @property {Object} [payment_breakup] - Payment Breakup for advance payment
700
- * @property {PaymentOptionAndFlow} payment_options
701
- * @property {boolean} success - Response is successful or not
563
+ * @typedef BankDetailsForOTP
564
+ * @property {string} account_no
565
+ * @property {string} bank_name
566
+ * @property {string} ifsc_code
567
+ * @property {string} branch_name
568
+ * @property {string} account_holder
702
569
  */
703
570
 
704
571
  /**
705
- * @typedef PaymentOptionAndFlow
706
- * @property {PaymentFlow} payment_flows
707
- * @property {RootPaymentMode} payment_option
572
+ * @typedef AddBeneficiaryDetailsOTPRequest
573
+ * @property {string} order_id
574
+ * @property {BankDetailsForOTP} details
708
575
  */
709
576
 
710
577
  /**
711
- * @typedef PaymentOrderData
712
- * @property {string} [aggregator] - Aggregator name
713
- * @property {number} [amount] - Amount
714
- * @property {string} [callback_url] - Callback url for aggregator
715
- * @property {string} [contact] - Mobile number
716
- * @property {string} [currency] - Currency
717
- * @property {string} [customer_id] - Aggregator customer id
718
- * @property {string} [email] - Email
719
- * @property {string} [merchant_order_id] - Merchant order id
720
- * @property {string} [method] - Method
721
- * @property {string} [order_id] - Aggregator order id
578
+ * @typedef WalletOtpRequest
579
+ * @property {string} country_code - Country Code of the Mobile Number
580
+ * @property {string} mobile - Wallet Moblie Number of the User
722
581
  */
723
582
 
724
583
  /**
725
- * @typedef PaymentOrderMethods
726
- * @property {number} amount - Amount to be collected
727
- * @property {PaymentMethodsMetaOrder} meta
728
- * @property {string} mode - Payment mode
729
- * @property {string} name - Payment mode name
730
- * @property {string} [payment] - Payment type i.e. Required / Blocked
584
+ * @typedef WalletOtpResponse
585
+ * @property {string} request_id - Request id
586
+ * @property {string} is_verified_flag - Boolean Flag whether OTP Validation is
587
+ * already done or not
588
+ * @property {boolean} [success] - Response is successful or not
731
589
  */
732
590
 
733
591
  /**
734
- * @typedef PaymentOrderRequest
735
- * @property {string} order_id - Order id
736
- * @property {PaymentOrderMethods[]} [payment_methods]
737
- * @property {string} [shipment_id] - Shipment_id
592
+ * @typedef SetDefaultBeneficiaryRequest
593
+ * @property {string} order_id - Merchant Order Id
594
+ * @property {string} beneficiary_id - Beneficiary Hash Id of the beneficiary added
738
595
  */
739
596
 
740
597
  /**
741
- * @typedef PaymentOrderResponse
742
- * @property {string} [callback_url] - Callback url for aggregator
743
- * @property {PaymentOrderData} [data]
744
- * @property {string} message - Message
745
- * @property {string} [order_id] - Merchant order id
746
- * @property {string} [payment_confirm_url] - Payment confirm url for aggregator
598
+ * @typedef SetDefaultBeneficiaryResponse
599
+ * @property {boolean} is_beneficiary_set - Boolean Flag whether Beneficiary set or not
600
+ * @property {boolean} [success] - Response is successful or not
601
+ */
602
+
603
+ /**
604
+ * @typedef GetPaymentLinkResponse
747
605
  * @property {number} status_code - HTTP status code
606
+ * @property {string} [payment_link_current_status] - Status of payment link
748
607
  * @property {boolean} success - Successful or failure
608
+ * @property {number} [polling_timeout] - Polling request timeout
609
+ * @property {string} [payment_link_url] - Url of payment link
610
+ * @property {string} [external_order_id] - Merchant order id
611
+ * @property {string} message - Message
612
+ * @property {string} [merchant_name] - Merchant name
613
+ * @property {number} [amount] - Total value of order
749
614
  */
750
615
 
751
616
  /**
752
- * @typedef PaymentStatusUpdateRequest
753
- * @property {string} aggregator - Payment gateway name
754
- * @property {number} amount - Payable amount.
755
- * @property {string} contact - Customer valid mobile number
756
- * @property {string} currency - Currency code.
757
- * @property {string} customer_id - Payment gateway customer id.
758
- * @property {string} [device_id] - EDC machine Unique Identifier
759
- * @property {string} email - Customer valid email
760
- * @property {string} merchant_order_id - Unique fynd order id
761
- * @property {string} merchant_transaction_id - Unique fynd transaction id
762
- * @property {string} method - Payment method
763
- * @property {string} order_id - Payment gateway order id
764
- * @property {string} status - Status of payment.
765
- * @property {string} [vpa] - Customer vpa address
617
+ * @typedef ErrorDescription
618
+ * @property {string} [payment_transaction_id] - Payment transaction id
619
+ * @property {boolean} [expired] - Payment link expired or not
620
+ * @property {string} [merchant_order_id] - Order id
621
+ * @property {string} [merchant_name] - Name of merchant that created payment link
622
+ * @property {string} [msg] - Message
623
+ * @property {boolean} [cancelled] - Payment link is cancelled or not
624
+ * @property {number} [amount] - Amount paid
625
+ * @property {boolean} [invalid_id] - Payment link id is valid or not
766
626
  */
767
627
 
768
628
  /**
769
- * @typedef PaymentStatusUpdateResponse
770
- * @property {string} aggregator_name - Payment gateway name
771
- * @property {string} [redirect_url] - Redirect url
772
- * @property {boolean} retry - Response is successful or not.
773
- * @property {string} status - Payment status
774
- * @property {boolean} [success] - Response is successful or not
629
+ * @typedef ErrorResponse
630
+ * @property {number} status_code - HTTP status code
631
+ * @property {Object} [error]
632
+ * @property {string} message - Message
633
+ * @property {boolean} success - Successful or failure
775
634
  */
776
635
 
777
636
  /**
778
- * @typedef PollingPaymentLinkResponse
779
- * @property {string} [aggregator_name] - Aggregator name
780
- * @property {number} [amount] - Amount
781
- * @property {number} [http_status] - HTTP status code
782
- * @property {string} [message] - Message
783
- * @property {string} [order_id] - Fynd order id
784
- * @property {string} [payment_link_id] - Payment link id
785
- * @property {string} [redirect_url] - Url to redirect to
786
- * @property {string} [status] - Status of payment link
787
- * @property {number} [status_code] - HTTP status code
788
- * @property {boolean} [success] - Successful or failure
637
+ * @typedef CreatePaymentLinkMeta
638
+ * @property {string} cart_id
639
+ * @property {string} checkout_mode
640
+ * @property {string} pincode
641
+ * @property {string} [assign_card_id]
642
+ * @property {string} amount
789
643
  */
790
644
 
791
645
  /**
792
- * @typedef RedirectToAggregatorResponse
793
- * @property {RedirectURL} data
794
- * @property {boolean} success - Status updated or not.
646
+ * @typedef CreatePaymentLinkRequest
647
+ * @property {string} [description] - Merchant order id
648
+ * @property {string} external_order_id - Merchant order id
649
+ * @property {string} mobile_number - Mobile number to which the payment link is
650
+ * to be sent
651
+ * @property {number} amount - Total value of order
652
+ * @property {CreatePaymentLinkMeta} meta - Meta
653
+ * @property {string} email - Email to which the payment link is to be sent
795
654
  */
796
655
 
797
656
  /**
798
- * @typedef RedirectURL
799
- * @property {string} signup_url - URL to which the user may redirect.
800
- * @property {boolean} status - Aggregator's Operation is successful or not.
657
+ * @typedef CreatePaymentLinkResponse
658
+ * @property {number} status_code - HTTP status code
659
+ * @property {boolean} success - Successful or failure
660
+ * @property {number} [polling_timeout] - Polling request timeout
661
+ * @property {string} [payment_link_url] - Url of payment link
662
+ * @property {string} message - Message
663
+ * @property {string} [payment_link_id] - Unique id of payment link
801
664
  */
802
665
 
803
666
  /**
804
- * @typedef RefundAccountResponse
805
- * @property {Object} [data] - Refund account data.
806
- * @property {boolean} [is_verified_flag]
807
- * @property {string} message - Response message
808
- * @property {boolean} success - Success or failure flag.
667
+ * @typedef CancelOrResendPaymentLinkRequest
668
+ * @property {string} payment_link_id - Unique id of payment link
809
669
  */
810
670
 
811
671
  /**
812
- * @typedef renderHTMLRequest
813
- * @property {string} base64_html - Base64 encoded html string
814
- * @property {string} [returntype] - Return Type of API
672
+ * @typedef ResendPaymentLinkResponse
673
+ * @property {number} status_code - HTTP status code
674
+ * @property {number} [polling_timeout] - Polling request timeout
675
+ * @property {boolean} success - Successful or failure
676
+ * @property {string} message - Message
815
677
  */
816
678
 
817
679
  /**
818
- * @typedef renderHTMLResponse
819
- * @property {string} html - HTML string
680
+ * @typedef CancelPaymentLinkResponse
681
+ * @property {number} status_code - HTTP status code
682
+ * @property {boolean} success - Successful or failure
683
+ * @property {string} message - Message
820
684
  */
821
685
 
822
686
  /**
823
- * @typedef ResendOrCancelPaymentRequest
824
- * @property {string} [device_id] - EDC machine Unique Identifier
825
- * @property {string} order_id - Unique order id
826
- * @property {string} request_type - Either resend or cancel
687
+ * @typedef PollingPaymentLinkResponse
688
+ * @property {string} [status] - Status of payment link
689
+ * @property {number} [status_code] - HTTP status code
690
+ * @property {boolean} [success] - Successful or failure
691
+ * @property {number} [http_status] - HTTP status code
692
+ * @property {string} [message] - Message
693
+ * @property {string} [order_id] - Fynd order id
694
+ * @property {string} [redirect_url] - Url to redirect to
695
+ * @property {string} [payment_link_id] - Payment link id
696
+ * @property {string} [aggregator_name] - Aggregator name
697
+ * @property {number} [amount] - Amount
827
698
  */
828
699
 
829
700
  /**
830
- * @typedef ResendOrCancelPaymentResponse
831
- * @property {LinkStatus} data
832
- * @property {boolean} success - Response is successful or not.
701
+ * @typedef PaymentMethodsMeta
702
+ * @property {string} merchant_code - Merchant code
703
+ * @property {string} payment_gateway - Payment gateway name
704
+ * @property {string} payment_identifier - Payment identifier
833
705
  */
834
706
 
835
707
  /**
836
- * @typedef ResendPaymentLinkResponse
837
- * @property {string} message - Message
838
- * @property {number} [polling_timeout] - Polling request timeout
839
- * @property {number} status_code - HTTP status code
840
- * @property {boolean} success - Successful or failure
708
+ * @typedef CreateOrderUserPaymentMethods
709
+ * @property {string} name - Payment mode name
710
+ * @property {string} mode - Payment mode
711
+ * @property {PaymentMethodsMeta} meta - Meta
841
712
  */
842
713
 
843
714
  /**
844
- * @typedef RootPaymentMode
845
- * @property {boolean} [add_card_enabled] - Annonymous card flag
846
- * @property {string} [aggregator_name] - Dispaly Priority
847
- * @property {boolean} [anonymous_enable] - Annonymous card flag
848
- * @property {string} display_name - Payment mode display name
849
- * @property {number} display_priority - Dispaly Priority
850
- * @property {boolean} [is_pay_by_card_pl] - This flag will be true in case of
851
- * Payment link payment through card
852
- * @property {PaymentModeList[]} [list] - Payment mode
853
- * @property {string} name - Payment mode name
854
- * @property {boolean} [save_card] - Card save or not
715
+ * @typedef CreateOrderUserRequest
716
+ * @property {string} failure_callback_url - Failure page url
717
+ * @property {string} currency - Currency
718
+ * @property {string} payment_link_id - Unique id of payment link
719
+ * @property {CreateOrderUserPaymentMethods} payment_methods - Payment method details
720
+ * @property {string} success_callback_url - Success page url
721
+ * @property {Object} [meta] - Meta
855
722
  */
856
723
 
857
724
  /**
858
- * @typedef RupifiBannerData
859
- * @property {string} [kyc_url] - Rupifi KYC banner url.
860
- * @property {string} [status] - Rupifi KYC status
725
+ * @typedef CreateOrderUserData
726
+ * @property {string} [method] - Method
727
+ * @property {string} [aggregator] - Aggregator name
728
+ * @property {string} [customer_id] - Aggregator customer id
729
+ * @property {string} [contact] - Mobile number
730
+ * @property {string} [merchant_order_id] - Merchant order id
731
+ * @property {string} [order_id] - Aggregator order id
732
+ * @property {string} [currency] - Currency
733
+ * @property {string} [callback_url] - Callback url for aggregator
734
+ * @property {number} [amount] - Amount
735
+ * @property {string} [email] - Email
861
736
  */
862
737
 
863
738
  /**
864
- * @typedef RupifiBannerResponse
865
- * @property {RupifiBannerData} data
866
- * @property {boolean} success - Successful or not.
739
+ * @typedef CreateOrderUserResponse
740
+ * @property {number} status_code - HTTP status code
741
+ * @property {boolean} success - Successful or failure
742
+ * @property {CreateOrderUserData} [data]
743
+ * @property {string} message - Message
744
+ * @property {string} [order_id] - Merchant order id
745
+ * @property {string} [callback_url] - Callback url for aggregator
746
+ * @property {string} [payment_confirm_url] - Payment confirm url for aggregator
867
747
  */
868
748
 
869
749
  /**
870
- * @typedef SetDefaultBeneficiaryRequest
871
- * @property {string} beneficiary_id - Beneficiary Hash Id of the beneficiary added
872
- * @property {string} order_id - Merchant Order Id
750
+ * @typedef BalanceDetails
751
+ * @property {string} [formatted_value] - Formated Amount with currency symbol
752
+ * @property {string} [currency] - Currency Code
753
+ * @property {number} [value] - Payment amount
873
754
  */
874
755
 
875
756
  /**
876
- * @typedef SetDefaultBeneficiaryResponse
877
- * @property {boolean} is_beneficiary_set - Boolean Flag whether Beneficiary set or not
878
- * @property {boolean} [success] - Response is successful or not
757
+ * @typedef CreditSummary
758
+ * @property {string} [status] - Customer Credit status
759
+ * @property {string} [credit_line_id] - ID at Credit aggregator's end
760
+ * @property {BalanceDetails} [amount_available] - Credit summary of user.
761
+ * @property {BalanceDetails} [balance] - Credit summary of user.
762
+ * @property {string} [status_message] - Message to customer
763
+ * @property {string} [merchant_customer_ref_id] - Unique aggregator customer id
764
+ * @property {string} [buyer_status] - Status from Credit aggregator's end
879
765
  */
880
766
 
881
767
  /**
882
- * @typedef SplitObject
883
- * @property {number} [amount_remaining] - Amount pending to be paid
884
- * @property {number} [splits_remaining] - Number of splits remaining
885
- * @property {number} [total_number_of_splits] - Maximum amount of splits allowed
768
+ * @typedef CustomerCreditSummaryResponse
769
+ * @property {CreditSummary} [data] - Credit summary of user.
770
+ * @property {boolean} success - Payment confirmation updated or not.
886
771
  */
887
772
 
888
773
  /**
889
- * @typedef TransferItemsDetails
890
- * @property {string} [display_name] - Beneficiary Display Name
891
- * @property {number} id -
892
- * @property {string} logo_large - Beneficiary large Logo
893
- * @property {string} logo_small - Beneficiary small Logo
894
- * @property {string} name - Beneficiary Name
774
+ * @typedef RedirectURL
775
+ * @property {boolean} status - Aggregator's Operation is successful or not.
776
+ * @property {string} signup_url - URL to which the user may redirect.
895
777
  */
896
778
 
897
779
  /**
898
- * @typedef TransferModeDetails
899
- * @property {string} display_name - Beneficiary Mode Name
900
- * @property {TransferItemsDetails[]} [items] - Beneficiary Mode Items
780
+ * @typedef RedirectToAggregatorResponse
781
+ * @property {RedirectURL} data - Redirect URL.
782
+ * @property {boolean} success - Status updated or not.
901
783
  */
902
784
 
903
785
  /**
904
- * @typedef TransferModeResponse
905
- * @property {TransferModeDetails[]} data - Response Object
786
+ * @typedef CreditDetail
787
+ * @property {boolean} status - Operation is successful or not.
788
+ * @property {boolean} is_registered - User is registered with aggregator or not.
789
+ * @property {string} signup_url - URL to which the user may redirect.
906
790
  */
907
791
 
908
792
  /**
909
- * @typedef UpdateRefundTransferModeRequest
910
- * @property {boolean} enable - True for enabling the Transfer Mode
911
- * @property {string} transfer_mode - Transfer Mode of the Beneficiary to be added
793
+ * @typedef CheckCreditResponse
794
+ * @property {CreditDetail} data - Credit summary of user.
795
+ * @property {boolean} success - Operation is successful or not.
912
796
  */
913
797
 
914
798
  /**
915
- * @typedef UpdateRefundTransferModeResponse
916
- * @property {boolean} [success] - Response is successful or not
799
+ * @typedef KYCAddress
800
+ * @property {string} city - City
801
+ * @property {string} [addressline2] - Address Line 2
802
+ * @property {string} state - State
803
+ * @property {string} [ownership_type] - Address Owner Type
804
+ * @property {string} pincode - Pincode
805
+ * @property {string} [land_mark] - Land Mark
806
+ * @property {string} addressline1 - Address Line 1
917
807
  */
918
808
 
919
809
  /**
920
810
  * @typedef UserPersonalInfoInDetails
921
- * @property {KYCAddress} address_as_per_id
922
- * @property {string} dob - DOB
923
- * @property {string} [driving_license] - Driver License
924
- * @property {string} [email] - Email
925
- * @property {boolean} email_verified - Is Email Verified or not
926
- * @property {string} [fathers_name] - Father's Name
927
811
  * @property {string} first_name - First Name
812
+ * @property {string} [voter_id] - Voter ID Number
928
813
  * @property {string} [gender] - Gender
929
- * @property {string} [last_name] - Last Name
930
- * @property {string} [middle_name] - Middle Name
931
- * @property {boolean} mobile_verified - Is Mobile Verified or not
814
+ * @property {string} dob - DOB
815
+ * @property {string} [passport] - Passport
816
+ * @property {string} [fathers_name] - Father's Name
932
817
  * @property {string} [mothers_name] - Mother's Name
818
+ * @property {string} [middle_name] - Middle Name
819
+ * @property {string} [last_name] - Last Name
933
820
  * @property {string} [pan] - Pan Number
934
- * @property {string} [passport] - Passport
821
+ * @property {string} [driving_license] - Driver License
822
+ * @property {boolean} email_verified - Is Email Verified or not
823
+ * @property {KYCAddress} address_as_per_id - Address details
824
+ * @property {boolean} mobile_verified - Is Mobile Verified or not
935
825
  * @property {string} phone - Email
936
- * @property {string} [voter_id] - Voter ID Number
826
+ * @property {string} [email] - Email
937
827
  */
938
828
 
939
829
  /**
940
- * @typedef ValidateCustomerRequest
941
- * @property {string} aggregator - Payment gateway name in camel case i.e Simpl, Rupifi
942
- * @property {Object} [billing_address] - Extra meta fields.
943
- * @property {Object} [delivery_address] - Extra meta fields.
944
- * @property {Object} [merchant_params] - Extra meta fields.
945
- * @property {Object[]} [order_items] - Extra meta fields.
946
- * @property {string} [payload] - Hashed payload string.
947
- * @property {string} phone_number - User mobile number without country code.
948
- * @property {number} transaction_amount_in_paise - Payable amount in paise
949
- */
950
-
951
- /**
952
- * @typedef ValidateCustomerResponse
953
- * @property {Object} data - Payment gateway response data
954
- * @property {string} message - Error or success message.
955
- * @property {boolean} success - Response is successful or not
956
- */
957
-
958
- /**
959
- * @typedef ValidateUPI
960
- * @property {string} customer_name - Customer Bank
961
- * @property {boolean} is_valid - Boolean is true or false.
962
- * @property {string} status - VALID or INVALID
963
- * @property {string} upi_vpa - UPI ID
964
- */
965
-
966
- /**
967
- * @typedef ValidateVPARequest
968
- * @property {string} upi_vpa - UPI ID
830
+ * @typedef MarketplaceInfo
831
+ * @property {string} [date_of_joining] - Date of joining
832
+ * @property {string} name - Name of store
833
+ * @property {string} membership_id - Merchant id
969
834
  */
970
835
 
971
836
  /**
972
- * @typedef ValidateVPAResponse
973
- * @property {ValidateUPI} data
974
- * @property {boolean} success - Response is successful or not.
837
+ * @typedef BusinessDetails
838
+ * @property {string} [business_ownership_type] - Business Ownershipp type(e.g Rented)
839
+ * @property {string} [vintage] - Vintage
840
+ * @property {string} [gstin] - GSTIN Number
841
+ * @property {string} [pan] - Pan Number
842
+ * @property {string} [entity_type] - Busineess Entity Type
843
+ * @property {Object} [shop_and_establishment] - Shop Establishment
844
+ * @property {string} [fssai] - FDA License Number
845
+ * @property {string} [fda] - Driver License
846
+ * @property {string} [business_type] - Business Type
847
+ * @property {string} [name] - Business Name
848
+ * @property {KYCAddress} [address] - Address details
975
849
  */
976
850
 
977
851
  /**
978
- * @typedef WalletDelinkRequestSchema
979
- * @property {string} aggregator - Aggregator Name
980
- * @property {string} wallet_code - Wallet Code
852
+ * @typedef DeviceDetails
853
+ * @property {string} [identification_number] - IP
854
+ * @property {string} [identifier_type] - Static value = ip
855
+ * @property {string} [device_model] - Device Model
856
+ * @property {string} [device_make] - Device maker
857
+ * @property {string} [device_type] - Device Type(E.g. Mobile)
858
+ * @property {string} [os] - OS Name
859
+ * @property {string} [os_version] - OS Version
981
860
  */
982
861
 
983
862
  /**
984
- * @typedef WalletLinkRequestSchema
863
+ * @typedef CustomerOnboardingRequest
864
+ * @property {UserPersonalInfoInDetails} personal_info - Credit summary of user.
865
+ * @property {string} [mcc] - Mcc
985
866
  * @property {string} aggregator - Aggregator Name
986
- * @property {string} mobile - Mobile Number for Wallet
987
- * @property {string} wallet_code - Wallet Code
988
- */
989
-
990
- /**
991
- * @typedef WalletOtpRequest
992
- * @property {string} country_code - Country Code of the Mobile Number
993
- * @property {string} mobile - Wallet Moblie Number of the User
867
+ * @property {MarketplaceInfo} [marketplace_info] - Market Place info.
868
+ * @property {string} source - CallbackURL
869
+ * @property {BusinessDetails} [business_info] - Business summary.
870
+ * @property {DeviceDetails} [device] - Device Details.
994
871
  */
995
872
 
996
873
  /**
997
- * @typedef WalletOtpResponse
998
- * @property {string} is_verified_flag - Boolean Flag whether OTP Validation is
999
- * already done or not
1000
- * @property {string} request_id - Request id
1001
- * @property {boolean} [success] - Response is successful or not
874
+ * @typedef OnboardSummary
875
+ * @property {boolean} status - Operation Status
876
+ * @property {string} redirect_url - URL to which the user may redirect.
877
+ * @property {Object} session - User Session
1002
878
  */
1003
879
 
1004
880
  /**
1005
- * @typedef WalletResponseSchema
1006
- * @property {Object} data - Response received from aggregator
1007
- * @property {boolean} success - Success/Failure of the API call
881
+ * @typedef CustomerOnboardingResponse
882
+ * @property {OnboardSummary} data - Redirect URL.
883
+ * @property {boolean} success - Status updated or not.
1008
884
  */
1009
885
 
1010
886
  /**
1011
- * @typedef WalletVerifyRequestSchema
1012
- * @property {string} aggregator - Aggregator Name
1013
- * @property {string} link_token - Token for wallet linking
1014
- * @property {number} otp - OTP received for wallet linking
887
+ * @typedef OutstandingOrderDetailsResponse
888
+ * @property {number} status_code - HTTP Status code
889
+ * @property {Object[]} [data] - Dict containing the outstanding order details
890
+ * @property {boolean} success - Response is successful or not.
891
+ * @property {string} [message] - Message
1015
892
  */
1016
893
 
1017
894
  /**
1018
- * @typedef WrongOtpError
1019
- * @property {string} description - Wrong OTP Code
1020
- * @property {boolean} is_verified_flag - Vefified flag.
1021
- * @property {string} success - Response is successful or not
895
+ * @typedef PaidOrderDetailsResponse
896
+ * @property {number} status_code - HTTP Status code
897
+ * @property {Object[]} [data] - Dict containing the paid order details
898
+ * @property {boolean} success - Response is successful or not.
899
+ * @property {string} [message] - Message
1022
900
  */
1023
901
 
1024
902
  class PaymentApplicationModel {
1025
- /** @returns {ActiveCardPaymentGatewayResponse} */
1026
- static ActiveCardPaymentGatewayResponse() {
903
+ /** @returns {AggregatorConfigDetail} */
904
+ static AggregatorConfigDetail() {
1027
905
  return Joi.object({
1028
- cards: PaymentApplicationModel.CardPaymentGateway().required(),
1029
- message: Joi.string().allow("").required(),
1030
- success: Joi.boolean().required(),
906
+ sdk: Joi.boolean().allow(null),
907
+ secret: Joi.string().allow("").required(),
908
+ api: Joi.string().allow("").allow(null),
909
+ pin: Joi.string().allow("").allow(null),
910
+ config_type: Joi.string().allow("").required(),
911
+ merchant_key: Joi.string().allow("").allow(null),
912
+ verify_api: Joi.string().allow("").allow(null),
913
+ key: Joi.string().allow("").required(),
914
+ user_id: Joi.string().allow("").allow(null),
915
+ merchant_id: Joi.string().allow("").allow(null),
1031
916
  });
1032
917
  }
1033
918
 
1034
- /** @returns {AddBeneficiaryDetailsOTPRequest} */
1035
- static AddBeneficiaryDetailsOTPRequest() {
919
+ /** @returns {AggregatorsConfigDetailResponse} */
920
+ static AggregatorsConfigDetailResponse() {
1036
921
  return Joi.object({
1037
- details: PaymentApplicationModel.BankDetailsForOTP().required(),
1038
- order_id: Joi.string().allow("").required(),
922
+ success: Joi.boolean().required(),
923
+ razorpay: PaymentApplicationModel.AggregatorConfigDetail(),
924
+ juspay: PaymentApplicationModel.AggregatorConfigDetail(),
925
+ simpl: PaymentApplicationModel.AggregatorConfigDetail(),
926
+ payumoney: PaymentApplicationModel.AggregatorConfigDetail(),
927
+ rupifi: PaymentApplicationModel.AggregatorConfigDetail(),
928
+ mswipe: PaymentApplicationModel.AggregatorConfigDetail(),
929
+ stripe: PaymentApplicationModel.AggregatorConfigDetail(),
930
+ ccavenue: PaymentApplicationModel.AggregatorConfigDetail(),
931
+ env: Joi.string().allow("").required(),
1039
932
  });
1040
933
  }
1041
934
 
1042
- /** @returns {AddBeneficiaryDetailsRequest} */
1043
- static AddBeneficiaryDetailsRequest() {
935
+ /** @returns {ErrorCodeAndDescription} */
936
+ static ErrorCodeAndDescription() {
1044
937
  return Joi.object({
1045
- delights: Joi.boolean().required(),
1046
- details: PaymentApplicationModel.BeneficiaryModeDetails().required(),
1047
- order_id: Joi.string().allow("").required(),
1048
- otp: Joi.string().allow(""),
1049
- request_id: Joi.string().allow(""),
1050
- shipment_id: Joi.string().allow("").required(),
1051
- transfer_mode: Joi.string().allow("").required(),
938
+ code: Joi.string().allow("").required(),
939
+ description: Joi.string().allow("").required(),
1052
940
  });
1053
941
  }
1054
942
 
1055
- /** @returns {AddBeneficiaryViaOtpVerificationRequest} */
1056
- static AddBeneficiaryViaOtpVerificationRequest() {
943
+ /** @returns {HttpErrorCodeAndResponse} */
944
+ static HttpErrorCodeAndResponse() {
1057
945
  return Joi.object({
1058
- hash_key: Joi.string().allow("").required(),
1059
- otp: Joi.string().allow("").required(),
1060
- request_id: Joi.string().allow("").required(),
946
+ error: PaymentApplicationModel.ErrorCodeAndDescription(),
947
+ success: Joi.boolean().required(),
1061
948
  });
1062
949
  }
1063
950
 
1064
- /** @returns {AddBeneficiaryViaOtpVerificationResponse} */
1065
- static AddBeneficiaryViaOtpVerificationResponse() {
951
+ /** @returns {AttachCardRequest} */
952
+ static AttachCardRequest() {
1066
953
  return Joi.object({
1067
- message: Joi.string().allow("").required(),
1068
- success: Joi.boolean(),
954
+ nickname: Joi.string().allow(""),
955
+ refresh: Joi.boolean().allow(null),
956
+ card_id: Joi.string().allow("").allow(null).required(),
957
+ name_on_card: Joi.string().allow(""),
1069
958
  });
1070
959
  }
1071
960
 
1072
- /** @returns {AdvanceObject} */
1073
- static AdvanceObject() {
961
+ /** @returns {AttachCardsResponse} */
962
+ static AttachCardsResponse() {
1074
963
  return Joi.object({
1075
- all_prepayment_type: Joi.array().items(
1076
- Joi.string().allow("").allow(null)
1077
- ),
1078
- allow_custom_advance_amount: Joi.boolean().allow(null),
1079
- amount: Joi.number(),
1080
- cancellation_type: Joi.string().allow("").allow(null),
1081
- description: Joi.string().allow("").allow(null),
1082
- display_name: Joi.string().allow("").allow(null),
1083
- is_active: Joi.boolean().allow(null),
1084
- prepayment_type: Joi.string().allow("").allow(null),
1085
- prepayment_value: Joi.number().allow(null),
1086
- refund_time_limit: Joi.number().allow(null),
1087
- time_unit: Joi.string().allow("").allow(null),
964
+ data: Joi.any().required(),
965
+ success: Joi.boolean().required(),
966
+ message: Joi.string().allow(""),
1088
967
  });
1089
968
  }
1090
969
 
1091
- /** @returns {AdvancePaymentObject} */
1092
- static AdvancePaymentObject() {
970
+ /** @returns {CardPaymentGateway} */
971
+ static CardPaymentGateway() {
1093
972
  return Joi.object({
1094
- advance: PaymentApplicationModel.AdvanceObject(),
1095
- display_name: Joi.string().allow("").allow(null),
1096
- display_priority: Joi.number().allow(null),
1097
- list: Joi.array().items(PaymentApplicationModel.PaymentModeList()),
1098
- name: Joi.string().allow("").allow(null),
1099
- payment_mode_id: Joi.number().allow(null),
1100
- split: PaymentApplicationModel.SplitObject(),
973
+ api: Joi.string().allow("").allow(null),
974
+ aggregator: Joi.string().allow("").required(),
975
+ customer_id: Joi.string().allow("").allow(null),
1101
976
  });
1102
977
  }
1103
978
 
1104
- /** @returns {AggregatorConfigDetail} */
1105
- static AggregatorConfigDetail() {
979
+ /** @returns {ActiveCardPaymentGatewayResponse} */
980
+ static ActiveCardPaymentGatewayResponse() {
1106
981
  return Joi.object({
1107
- api: Joi.string().allow("").allow(null),
1108
- config_type: Joi.string().allow("").required(),
1109
- key: Joi.string().allow("").required(),
1110
- merchant_id: Joi.string().allow("").allow(null),
1111
- merchant_key: Joi.string().allow("").allow(null),
1112
- pin: Joi.string().allow("").allow(null),
1113
- sdk: Joi.boolean().allow(null),
1114
- secret: Joi.string().allow("").required(),
1115
- user_id: Joi.string().allow("").allow(null),
1116
- verify_api: Joi.string().allow("").allow(null),
982
+ cards: PaymentApplicationModel.CardPaymentGateway().required(),
983
+ success: Joi.boolean().required(),
984
+ message: Joi.string().allow("").required(),
1117
985
  });
1118
986
  }
1119
987
 
1120
- /** @returns {AggregatorRoute} */
1121
- static AggregatorRoute() {
988
+ /** @returns {Card} */
989
+ static Card() {
1122
990
  return Joi.object({
1123
- api_link: Joi.string().allow("").allow(null),
1124
- data: Joi.any().allow(null),
1125
- payment_flow: Joi.string().allow("").allow(null),
1126
- payment_flow_data: Joi.string().allow("").allow(null),
991
+ card_number: Joi.string().allow("").allow(null),
992
+ card_name: Joi.string().allow("").allow(null),
993
+ card_type: Joi.string().allow("").allow(null),
994
+ card_brand_image: Joi.string().allow("").allow(null),
995
+ card_reference: Joi.string().allow("").allow(null),
996
+ card_issuer: Joi.string().allow("").allow(null),
997
+ card_brand: Joi.string().allow("").allow(null),
998
+ expired: Joi.boolean().allow(null),
999
+ compliant_with_tokenisation_guidelines: Joi.boolean().allow(null),
1000
+ card_isin: Joi.string().allow("").allow(null),
1001
+ exp_year: Joi.number().allow(null),
1002
+ nickname: Joi.string().allow("").allow(null),
1003
+ aggregator_name: Joi.string().allow("").required(),
1004
+ card_fingerprint: Joi.string().allow("").allow(null),
1005
+ card_token: Joi.string().allow("").allow(null),
1006
+ exp_month: Joi.number().allow(null),
1007
+ card_id: Joi.string().allow("").allow(null),
1127
1008
  });
1128
1009
  }
1129
1010
 
1130
- /** @returns {AggregatorsConfigDetailResponse} */
1131
- static AggregatorsConfigDetailResponse() {
1011
+ /** @returns {ListCardsResponse} */
1012
+ static ListCardsResponse() {
1132
1013
  return Joi.object({
1133
- ccavenue: PaymentApplicationModel.AggregatorConfigDetail(),
1134
- env: Joi.string().allow("").required(),
1135
- juspay: PaymentApplicationModel.AggregatorConfigDetail(),
1136
- mswipe: PaymentApplicationModel.AggregatorConfigDetail(),
1137
- payumoney: PaymentApplicationModel.AggregatorConfigDetail(),
1138
- razorpay: PaymentApplicationModel.AggregatorConfigDetail(),
1139
- rupifi: PaymentApplicationModel.AggregatorConfigDetail(),
1140
- simpl: PaymentApplicationModel.AggregatorConfigDetail(),
1141
- stripe: PaymentApplicationModel.AggregatorConfigDetail(),
1014
+ data: Joi.array().items(PaymentApplicationModel.Card()),
1142
1015
  success: Joi.boolean().required(),
1016
+ message: Joi.string().allow("").required(),
1143
1017
  });
1144
1018
  }
1145
1019
 
1146
- /** @returns {AttachCardRequest} */
1147
- static AttachCardRequest() {
1020
+ /** @returns {DeletehCardRequest} */
1021
+ static DeletehCardRequest() {
1148
1022
  return Joi.object({
1149
1023
  card_id: Joi.string().allow("").allow(null).required(),
1150
- name_on_card: Joi.string().allow(""),
1151
- nickname: Joi.string().allow(""),
1152
- refresh: Joi.boolean().allow(null),
1153
1024
  });
1154
1025
  }
1155
1026
 
1156
- /** @returns {AttachCardsResponse} */
1157
- static AttachCardsResponse() {
1027
+ /** @returns {DeleteCardsResponse} */
1028
+ static DeleteCardsResponse() {
1158
1029
  return Joi.object({
1159
- data: Joi.any().required(),
1160
- message: Joi.string().allow(""),
1161
1030
  success: Joi.boolean().required(),
1031
+ message: Joi.string().allow("").allow(null),
1162
1032
  });
1163
1033
  }
1164
1034
 
1165
- /** @returns {BalanceDetails} */
1166
- static BalanceDetails() {
1035
+ /** @returns {ValidateCustomerRequest} */
1036
+ static ValidateCustomerRequest() {
1167
1037
  return Joi.object({
1168
- currency: Joi.string().allow("").allow(null),
1169
- formatted_value: Joi.string().allow("").allow(null),
1170
- value: Joi.number().allow(null),
1038
+ aggregator: Joi.string().allow("").required(),
1039
+ transaction_amount_in_paise: Joi.number().required(),
1040
+ phone_number: Joi.string().allow("").required(),
1041
+ billing_address: Joi.any(),
1042
+ order_items: Joi.array().items(Joi.any()),
1043
+ payload: Joi.string().allow("").allow(null),
1044
+ merchant_params: Joi.any(),
1045
+ delivery_address: Joi.any(),
1171
1046
  });
1172
1047
  }
1173
1048
 
1174
- /** @returns {BankDetailsForOTP} */
1175
- static BankDetailsForOTP() {
1049
+ /** @returns {ValidateCustomerResponse} */
1050
+ static ValidateCustomerResponse() {
1176
1051
  return Joi.object({
1177
- account_holder: Joi.string().allow("").required(),
1178
- account_no: Joi.string().allow("").required(),
1179
- bank_name: Joi.string().allow("").required(),
1180
- branch_name: Joi.string().allow("").required(),
1181
- ifsc_code: Joi.string().allow("").required(),
1182
- });
1183
- }
1184
-
1185
- /** @returns {BeneficiaryModeDetails} */
1186
- static BeneficiaryModeDetails() {
1187
- return Joi.object({
1188
- account_holder: Joi.string().allow("").required(),
1189
- account_no: Joi.string().allow("").required(),
1190
- address: Joi.string().allow(""),
1191
- bank_name: Joi.string().allow("").required(),
1192
- branch_name: Joi.string().allow("").required(),
1193
- comment: Joi.string().allow(""),
1194
- email: Joi.string().allow("").required(),
1195
- ifsc_code: Joi.string().allow("").required(),
1196
- mobile: Joi.string().allow("").required(),
1197
- vpa: Joi.string().allow("").allow(null),
1198
- wallet: Joi.string().allow("").allow(null),
1199
- });
1200
- }
1201
-
1202
- /** @returns {BusinessDetails} */
1203
- static BusinessDetails() {
1204
- return Joi.object({
1205
- address: PaymentApplicationModel.KYCAddress(),
1206
- business_ownership_type: Joi.string().allow("").allow(null),
1207
- business_type: Joi.string().allow("").allow(null),
1208
- entity_type: Joi.string().allow("").allow(null),
1209
- fda: Joi.string().allow("").allow(null),
1210
- fssai: Joi.string().allow("").allow(null),
1211
- gstin: Joi.string().allow("").allow(null),
1212
- name: Joi.string().allow("").allow(null),
1213
- pan: Joi.string().allow("").allow(null),
1214
- shop_and_establishment: Joi.any(),
1215
- vintage: Joi.string().allow("").allow(null),
1216
- });
1217
- }
1218
-
1219
- /** @returns {CancelOrResendPaymentLinkRequest} */
1220
- static CancelOrResendPaymentLinkRequest() {
1221
- return Joi.object({
1222
- payment_link_id: Joi.string().allow("").required(),
1223
- });
1224
- }
1225
-
1226
- /** @returns {CancelPaymentLinkResponse} */
1227
- static CancelPaymentLinkResponse() {
1228
- return Joi.object({
1229
- message: Joi.string().allow("").required(),
1230
- status_code: Joi.number().required(),
1231
- success: Joi.boolean().required(),
1232
- });
1233
- }
1234
-
1235
- /** @returns {Card} */
1236
- static Card() {
1237
- return Joi.object({
1238
- aggregator_name: Joi.string().allow("").required(),
1239
- card_brand: Joi.string().allow("").allow(null),
1240
- card_brand_image: Joi.string().allow("").allow(null),
1241
- card_fingerprint: Joi.string().allow("").allow(null),
1242
- card_id: Joi.string().allow("").allow(null),
1243
- card_isin: Joi.string().allow("").allow(null),
1244
- card_issuer: Joi.string().allow("").allow(null),
1245
- card_name: Joi.string().allow("").allow(null),
1246
- card_number: Joi.string().allow("").allow(null),
1247
- card_reference: Joi.string().allow("").allow(null),
1248
- card_token: Joi.string().allow("").allow(null),
1249
- card_type: Joi.string().allow("").allow(null),
1250
- compliant_with_tokenisation_guidelines: Joi.boolean().allow(null),
1251
- exp_month: Joi.number().allow(null),
1252
- exp_year: Joi.number().allow(null),
1253
- expired: Joi.boolean().allow(null),
1254
- nickname: Joi.string().allow("").allow(null),
1255
- });
1256
- }
1257
-
1258
- /** @returns {CardDetails} */
1259
- static CardDetails() {
1260
- return Joi.object({
1261
- bank: Joi.string().allow("").required(),
1262
- bank_code: Joi.string().allow("").allow(null).required(),
1263
- card_brand: Joi.string().allow("").required(),
1264
- card_exp_month: Joi.string().allow(""),
1265
- card_exp_year: Joi.string().allow(""),
1266
- card_object: Joi.string().allow("").required(),
1267
- card_sub_type: Joi.string().allow("").allow(null).required(),
1268
- card_token: Joi.string().allow(""),
1269
- country: Joi.string().allow("").required(),
1270
- extended_card_type: Joi.string().allow("").required(),
1271
- id: Joi.string().allow("").required(),
1272
- is_domestic_card: Joi.boolean().required(),
1273
- name_on_card: Joi.string().allow(""),
1274
- status: Joi.boolean().required(),
1275
- type: Joi.string().allow("").required(),
1276
- user: Joi.string().allow(""),
1277
- });
1278
- }
1279
-
1280
- /** @returns {CardDetailsResponse} */
1281
- static CardDetailsResponse() {
1282
- return Joi.object({
1283
- data: PaymentApplicationModel.CardDetails().required(),
1052
+ data: Joi.any().required(),
1284
1053
  success: Joi.boolean().required(),
1285
- });
1286
- }
1287
-
1288
- /** @returns {CardPaymentGateway} */
1289
- static CardPaymentGateway() {
1290
- return Joi.object({
1291
- aggregator: Joi.string().allow("").required(),
1292
- api: Joi.string().allow("").allow(null),
1293
- customer_id: Joi.string().allow("").allow(null),
1054
+ message: Joi.string().allow("").required(),
1294
1055
  });
1295
1056
  }
1296
1057
 
1297
1058
  /** @returns {ChargeCustomerRequest} */
1298
1059
  static ChargeCustomerRequest() {
1299
1060
  return Joi.object({
1061
+ verified: Joi.boolean().allow(null),
1300
1062
  aggregator: Joi.string().allow("").required(),
1301
- amount: Joi.number().allow(null).required(),
1302
1063
  order_id: Joi.string().allow("").required(),
1303
1064
  transaction_token: Joi.string().allow("").allow(null),
1304
- verified: Joi.boolean().allow(null),
1065
+ amount: Joi.number().allow(null).required(),
1305
1066
  });
1306
1067
  }
1307
1068
 
1308
1069
  /** @returns {ChargeCustomerResponse} */
1309
1070
  static ChargeCustomerResponse() {
1310
1071
  return Joi.object({
1311
- aggregator: Joi.string().allow("").required(),
1072
+ status: Joi.string().allow("").required(),
1312
1073
  cart_id: Joi.string().allow("").allow(null),
1313
- delivery_address_id: Joi.string().allow("").allow(null),
1074
+ success: Joi.boolean().required(),
1075
+ aggregator: Joi.string().allow("").required(),
1314
1076
  message: Joi.string().allow("").required(),
1315
1077
  order_id: Joi.string().allow("").required(),
1316
- status: Joi.string().allow("").required(),
1317
- success: Joi.boolean().required(),
1078
+ delivery_address_id: Joi.string().allow("").allow(null),
1318
1079
  });
1319
1080
  }
1320
1081
 
1321
- /** @returns {CheckCreditResponse} */
1322
- static CheckCreditResponse() {
1082
+ /** @returns {PaymentInitializationRequest} */
1083
+ static PaymentInitializationRequest() {
1323
1084
  return Joi.object({
1324
- data: PaymentApplicationModel.CreditDetail().required(),
1325
- success: Joi.boolean().required(),
1085
+ razorpay_payment_id: Joi.string().allow("").allow(null),
1086
+ method: Joi.string().allow("").required(),
1087
+ device_id: Joi.string().allow("").allow(null),
1088
+ aggregator: Joi.string().allow("").required(),
1089
+ customer_id: Joi.string().allow("").required(),
1090
+ contact: Joi.string().allow("").required(),
1091
+ merchant_order_id: Joi.string().allow("").required(),
1092
+ vpa: Joi.string().allow("").allow(null),
1093
+ order_id: Joi.string().allow("").required(),
1094
+ currency: Joi.string().allow("").required(),
1095
+ timeout: Joi.number().allow(null),
1096
+ amount: Joi.number().allow(null).required(),
1097
+ email: Joi.string().allow("").required(),
1326
1098
  });
1327
1099
  }
1328
1100
 
1329
- /** @returns {CreateOrderUserData} */
1330
- static CreateOrderUserData() {
1101
+ /** @returns {PaymentInitializationResponse} */
1102
+ static PaymentInitializationResponse() {
1331
1103
  return Joi.object({
1332
- aggregator: Joi.string().allow("").allow(null),
1333
- amount: Joi.number().allow(null),
1334
- callback_url: Joi.string().allow("").allow(null),
1335
- contact: Joi.string().allow("").allow(null),
1336
- currency: Joi.string().allow("").allow(null),
1104
+ status: Joi.string().allow(""),
1105
+ razorpay_payment_id: Joi.string().allow("").allow(null),
1106
+ aggregator_order_id: Joi.string().allow(""),
1107
+ method: Joi.string().allow("").required(),
1108
+ success: Joi.boolean().required(),
1109
+ upi_poll_url: Joi.string().allow("").allow(null),
1110
+ virtual_id: Joi.string().allow("").allow(null),
1111
+ device_id: Joi.string().allow("").allow(null),
1112
+ polling_url: Joi.string().allow("").required(),
1113
+ aggregator: Joi.string().allow("").required(),
1114
+ merchant_order_id: Joi.string().allow("").required(),
1337
1115
  customer_id: Joi.string().allow("").allow(null),
1338
- email: Joi.string().allow("").allow(null),
1339
- merchant_order_id: Joi.string().allow("").allow(null),
1340
- method: Joi.string().allow("").allow(null),
1341
- order_id: Joi.string().allow("").allow(null),
1342
- });
1343
- }
1344
-
1345
- /** @returns {CreateOrderUserPaymentMethods} */
1346
- static CreateOrderUserPaymentMethods() {
1347
- return Joi.object({
1348
- meta: PaymentApplicationModel.PaymentMethodsMeta().required(),
1349
- mode: Joi.string().allow("").required(),
1350
- name: Joi.string().allow("").required(),
1116
+ vpa: Joi.string().allow("").allow(null),
1117
+ currency: Joi.string().allow("").allow(null),
1118
+ timeout: Joi.number().allow(null),
1119
+ amount: Joi.number().allow(null),
1120
+ bqr_image: Joi.string().allow("").allow(null),
1351
1121
  });
1352
1122
  }
1353
1123
 
1354
- /** @returns {CreateOrderUserRequest} */
1355
- static CreateOrderUserRequest() {
1124
+ /** @returns {PaymentStatusUpdateRequest} */
1125
+ static PaymentStatusUpdateRequest() {
1356
1126
  return Joi.object({
1127
+ status: Joi.string().allow("").required(),
1128
+ merchant_transaction_id: Joi.string().allow("").required(),
1129
+ method: Joi.string().allow("").required(),
1130
+ device_id: Joi.string().allow("").allow(null),
1131
+ aggregator: Joi.string().allow("").required(),
1132
+ customer_id: Joi.string().allow("").required(),
1133
+ contact: Joi.string().allow("").required(),
1134
+ merchant_order_id: Joi.string().allow("").required(),
1135
+ vpa: Joi.string().allow(""),
1136
+ order_id: Joi.string().allow("").required(),
1357
1137
  currency: Joi.string().allow("").required(),
1358
- failure_callback_url: Joi.string().allow("").required(),
1359
- meta: Joi.any().allow(null),
1360
- payment_link_id: Joi.string().allow("").required(),
1361
- payment_methods: PaymentApplicationModel.CreateOrderUserPaymentMethods().required(),
1362
- success_callback_url: Joi.string().allow("").required(),
1138
+ amount: Joi.number().allow(null).required(),
1139
+ email: Joi.string().allow("").required(),
1363
1140
  });
1364
1141
  }
1365
1142
 
1366
- /** @returns {CreateOrderUserResponse} */
1367
- static CreateOrderUserResponse() {
1143
+ /** @returns {PaymentStatusUpdateResponse} */
1144
+ static PaymentStatusUpdateResponse() {
1368
1145
  return Joi.object({
1369
- callback_url: Joi.string().allow("").allow(null),
1370
- data: PaymentApplicationModel.CreateOrderUserData(),
1371
- message: Joi.string().allow("").required(),
1372
- order_id: Joi.string().allow("").allow(null),
1373
- payment_confirm_url: Joi.string().allow("").allow(null),
1374
- status_code: Joi.number().required(),
1375
- success: Joi.boolean().required(),
1146
+ status: Joi.string().allow("").required(),
1147
+ success: Joi.boolean().allow(null),
1148
+ retry: Joi.boolean().required(),
1149
+ redirect_url: Joi.string().allow("").allow(null),
1150
+ aggregator_name: Joi.string().allow("").required(),
1376
1151
  });
1377
1152
  }
1378
1153
 
1379
- /** @returns {CreatePaymentLinkMeta} */
1380
- static CreatePaymentLinkMeta() {
1154
+ /** @returns {IntentAppErrorList} */
1155
+ static IntentAppErrorList() {
1381
1156
  return Joi.object({
1382
- amount: Joi.string().allow("").required(),
1383
- assign_card_id: Joi.string().allow("").allow(null),
1384
- cart_id: Joi.string().allow("").required(),
1385
- checkout_mode: Joi.string().allow("").required(),
1157
+ code: Joi.string().allow("").allow(null),
1158
+ package_name: Joi.string().allow("").allow(null),
1386
1159
  });
1387
1160
  }
1388
1161
 
1389
- /** @returns {CreatePaymentLinkRequest} */
1390
- static CreatePaymentLinkRequest() {
1162
+ /** @returns {PaymentModeLogo} */
1163
+ static PaymentModeLogo() {
1391
1164
  return Joi.object({
1392
- amount: Joi.number().required(),
1393
- description: Joi.string().allow("").allow(null),
1394
- email: Joi.string().allow("").required(),
1395
- external_order_id: Joi.string().allow("").required(),
1396
- meta: PaymentApplicationModel.CreatePaymentLinkMeta().required(),
1397
- mobile_number: Joi.string().allow("").required(),
1165
+ large: Joi.string().allow("").required(),
1166
+ small: Joi.string().allow("").required(),
1398
1167
  });
1399
1168
  }
1400
1169
 
1401
- /** @returns {CreatePaymentLinkResponse} */
1402
- static CreatePaymentLinkResponse() {
1170
+ /** @returns {IntentApp} */
1171
+ static IntentApp() {
1403
1172
  return Joi.object({
1404
- message: Joi.string().allow("").required(),
1405
- payment_link_id: Joi.string().allow("").allow(null),
1406
- payment_link_url: Joi.string().allow("").allow(null),
1407
- polling_timeout: Joi.number().allow(null),
1408
- status_code: Joi.number().required(),
1409
- success: Joi.boolean().required(),
1173
+ code: Joi.string().allow("").allow(null),
1174
+ package_name: Joi.string().allow("").allow(null),
1175
+ logos: Joi.any().allow(null),
1176
+ display_name: Joi.string().allow("").allow(null),
1410
1177
  });
1411
1178
  }
1412
1179
 
1413
- /** @returns {CreditDetail} */
1414
- static CreditDetail() {
1180
+ /** @returns {PaymentModeList} */
1181
+ static PaymentModeList() {
1415
1182
  return Joi.object({
1416
- is_registered: Joi.boolean().required(),
1417
- signup_url: Joi.string().allow("").required(),
1418
- status: Joi.boolean().required(),
1183
+ card_number: Joi.string().allow("").allow(null),
1184
+ merchant_code: Joi.string().allow("").allow(null),
1185
+ card_reference: Joi.string().allow("").allow(null),
1186
+ card_issuer: Joi.string().allow("").allow(null),
1187
+ compliant_with_tokenisation_guidelines: Joi.boolean().allow(null),
1188
+ code: Joi.string().allow("").allow(null),
1189
+ cod_limit: Joi.number().allow(null),
1190
+ intent_flow: Joi.boolean().allow(null),
1191
+ fynd_vpa: Joi.string().allow("").allow(null),
1192
+ intent_app_error_dict_list: Joi.array().items(
1193
+ PaymentApplicationModel.IntentAppErrorList()
1194
+ ),
1195
+ aggregator_name: Joi.string().allow("").required(),
1196
+ card_fingerprint: Joi.string().allow("").allow(null),
1197
+ intent_app_error_list: Joi.array().items(Joi.string().allow("")),
1198
+ intent_app: Joi.array().items(PaymentApplicationModel.IntentApp()),
1199
+ expired: Joi.boolean().allow(null),
1200
+ retry_count: Joi.number().allow(null),
1201
+ exp_year: Joi.number().allow(null),
1202
+ exp_month: Joi.number().allow(null),
1203
+ card_id: Joi.string().allow("").allow(null),
1204
+ remaining_limit: Joi.number().allow(null),
1205
+ display_priority: Joi.number().allow(null),
1206
+ card_brand: Joi.string().allow("").allow(null),
1207
+ cod_limit_per_order: Joi.number().allow(null),
1208
+ logo_url: Joi.any().allow(null),
1209
+ nickname: Joi.string().allow("").allow(null),
1210
+ card_name: Joi.string().allow("").allow(null),
1211
+ card_type: Joi.string().allow("").allow(null),
1212
+ card_brand_image: Joi.string().allow("").allow(null),
1213
+ display_name: Joi.string().allow("").allow(null),
1214
+ card_isin: Joi.string().allow("").allow(null),
1215
+ timeout: Joi.number().allow(null),
1216
+ card_token: Joi.string().allow("").allow(null),
1217
+ name: Joi.string().allow("").allow(null),
1419
1218
  });
1420
1219
  }
1421
1220
 
1422
- /** @returns {CreditSummary} */
1423
- static CreditSummary() {
1221
+ /** @returns {RootPaymentMode} */
1222
+ static RootPaymentMode() {
1424
1223
  return Joi.object({
1425
- activation_url: Joi.string().allow("").allow(null),
1426
- amount_available: PaymentApplicationModel.BalanceDetails(),
1427
- balance: PaymentApplicationModel.BalanceDetails(),
1428
- buyer_status: Joi.string().allow("").allow(null),
1429
- credit_line_id: Joi.string().allow("").allow(null),
1430
- due_amount: PaymentApplicationModel.BalanceDetails(),
1431
- due_date: Joi.string().allow("").allow(null),
1432
- is_eligible_for_txn: Joi.boolean().allow(null),
1433
- limit: PaymentApplicationModel.BalanceDetails(),
1434
- merchant_customer_ref_id: Joi.string().allow("").allow(null),
1435
- repayment_url: Joi.string().allow("").allow(null),
1436
- soa_url: Joi.string().allow("").allow(null),
1437
- status: Joi.string().allow("").allow(null),
1438
- status_message: Joi.string().allow("").allow(null),
1439
- total_due_amount: PaymentApplicationModel.BalanceDetails(),
1224
+ is_pay_by_card_pl: Joi.boolean().allow(null),
1225
+ add_card_enabled: Joi.boolean().allow(null),
1226
+ display_priority: Joi.number().required(),
1227
+ display_name: Joi.string().allow("").required(),
1228
+ list: Joi.array().items(PaymentApplicationModel.PaymentModeList()),
1229
+ save_card: Joi.boolean().allow(null),
1230
+ aggregator_name: Joi.string().allow("").allow(null),
1231
+ name: Joi.string().allow("").required(),
1232
+ anonymous_enable: Joi.boolean().allow(null),
1440
1233
  });
1441
1234
  }
1442
1235
 
1443
- /** @returns {CustomerCreditSummaryResponse} */
1444
- static CustomerCreditSummaryResponse() {
1236
+ /** @returns {AggregatorRoute} */
1237
+ static AggregatorRoute() {
1445
1238
  return Joi.object({
1446
- data: PaymentApplicationModel.CreditSummary(),
1447
- success: Joi.boolean().required(),
1239
+ data: Joi.any().allow(null),
1240
+ payment_flow_data: Joi.string().allow("").allow(null),
1241
+ payment_flow: Joi.string().allow("").allow(null),
1242
+ api_link: Joi.string().allow("").allow(null),
1448
1243
  });
1449
1244
  }
1450
1245
 
1451
- /** @returns {CustomerOnboardingRequest} */
1452
- static CustomerOnboardingRequest() {
1246
+ /** @returns {PaymentFlow} */
1247
+ static PaymentFlow() {
1453
1248
  return Joi.object({
1454
- aggregator: Joi.string().allow("").required(),
1455
- business_info: PaymentApplicationModel.BusinessDetails(),
1456
- device: PaymentApplicationModel.DeviceDetails(),
1457
- marketplace_info: PaymentApplicationModel.MarketplaceInfo(),
1458
- mcc: Joi.string().allow("").allow(null),
1459
- personal_info: PaymentApplicationModel.UserPersonalInfoInDetails(),
1460
- source: Joi.string().allow("").required(),
1249
+ bqr_razorpay: Joi.any().allow(null),
1250
+ fynd: Joi.any().allow(null),
1251
+ epaylater: Joi.any().allow(null),
1252
+ razorpay: Joi.any().allow(null),
1253
+ juspay: Joi.any().allow(null),
1254
+ ajiodhan: Joi.any().allow(null),
1255
+ simpl: Joi.any().allow(null),
1256
+ rupifi: Joi.any().allow(null),
1257
+ mswipe: Joi.any().allow(null),
1258
+ stripe: Joi.any().allow(null),
1259
+ ccavenue: Joi.any().allow(null),
1260
+ payubiz: Joi.any().allow(null),
1261
+ jiopay: Joi.any().allow(null),
1262
+ upi_razorpay: Joi.any().allow(null),
1461
1263
  });
1462
1264
  }
1463
1265
 
1464
- /** @returns {CustomerOnboardingResponse} */
1465
- static CustomerOnboardingResponse() {
1266
+ /** @returns {PaymentOptionAndFlow} */
1267
+ static PaymentOptionAndFlow() {
1466
1268
  return Joi.object({
1467
- data: PaymentApplicationModel.OnboardSummary().required(),
1468
- success: Joi.boolean().required(),
1269
+ payment_option: Joi.array()
1270
+ .items(PaymentApplicationModel.RootPaymentMode())
1271
+ .required(),
1272
+ payment_flows: PaymentApplicationModel.PaymentFlow().required(),
1469
1273
  });
1470
1274
  }
1471
1275
 
1472
- /** @returns {DeleteCardsResponse} */
1473
- static DeleteCardsResponse() {
1276
+ /** @returns {PaymentModeRouteResponse} */
1277
+ static PaymentModeRouteResponse() {
1474
1278
  return Joi.object({
1475
- message: Joi.string().allow("").allow(null),
1279
+ payment_options: PaymentApplicationModel.PaymentOptionAndFlow().required(),
1476
1280
  success: Joi.boolean().required(),
1477
1281
  });
1478
1282
  }
1479
1283
 
1480
- /** @returns {DeletehCardRequest} */
1481
- static DeletehCardRequest() {
1284
+ /** @returns {RupifiBannerData} */
1285
+ static RupifiBannerData() {
1482
1286
  return Joi.object({
1483
- card_id: Joi.string().allow("").allow(null).required(),
1287
+ status: Joi.string().allow(""),
1288
+ kyc_url: Joi.string().allow(""),
1484
1289
  });
1485
1290
  }
1486
1291
 
1487
- /** @returns {DeviceDetails} */
1488
- static DeviceDetails() {
1292
+ /** @returns {RupifiBannerResponse} */
1293
+ static RupifiBannerResponse() {
1489
1294
  return Joi.object({
1490
- device_make: Joi.string().allow("").allow(null),
1491
- device_model: Joi.string().allow("").allow(null),
1492
- device_type: Joi.string().allow("").allow(null),
1493
- identification_number: Joi.string().allow("").allow(null),
1494
- identifier_type: Joi.string().allow("").allow(null),
1495
- os: Joi.string().allow("").allow(null),
1496
- os_version: Joi.string().allow("").allow(null),
1295
+ data: PaymentApplicationModel.RupifiBannerData().required(),
1296
+ success: Joi.boolean().required(),
1497
1297
  });
1498
1298
  }
1499
1299
 
1500
1300
  /** @returns {EpaylaterBannerData} */
1501
1301
  static EpaylaterBannerData() {
1502
1302
  return Joi.object({
1503
- display: Joi.boolean().required(),
1504
- message: Joi.string().allow(""),
1505
1303
  status: Joi.string().allow(""),
1304
+ message: Joi.string().allow(""),
1305
+ display: Joi.boolean().required(),
1506
1306
  });
1507
1307
  }
1508
1308
 
@@ -1514,754 +1314,683 @@ class PaymentApplicationModel {
1514
1314
  });
1515
1315
  }
1516
1316
 
1517
- /** @returns {ErrorCodeAndDescription} */
1518
- static ErrorCodeAndDescription() {
1317
+ /** @returns {ResendOrCancelPaymentRequest} */
1318
+ static ResendOrCancelPaymentRequest() {
1519
1319
  return Joi.object({
1520
- code: Joi.string().allow("").required(),
1521
- description: Joi.string().allow("").required(),
1320
+ order_id: Joi.string().allow("").required(),
1321
+ device_id: Joi.string().allow("").allow(null),
1322
+ request_type: Joi.string().allow("").required(),
1522
1323
  });
1523
1324
  }
1524
1325
 
1525
- /** @returns {ErrorCodeDescription} */
1526
- static ErrorCodeDescription() {
1326
+ /** @returns {LinkStatus} */
1327
+ static LinkStatus() {
1527
1328
  return Joi.object({
1528
- code: Joi.string().allow("").required(),
1529
- description: Joi.string().allow("").required(),
1530
- success: Joi.boolean().required(),
1329
+ status: Joi.boolean().required(),
1330
+ message: Joi.string().allow("").required(),
1531
1331
  });
1532
1332
  }
1533
1333
 
1534
- /** @returns {ErrorDescription} */
1535
- static ErrorDescription() {
1334
+ /** @returns {ResendOrCancelPaymentResponse} */
1335
+ static ResendOrCancelPaymentResponse() {
1536
1336
  return Joi.object({
1537
- amount: Joi.number().allow(null),
1538
- cancelled: Joi.boolean().allow(null),
1539
- expired: Joi.boolean().allow(null),
1540
- invalid_id: Joi.boolean().allow(null),
1541
- merchant_name: Joi.string().allow("").allow(null),
1542
- merchant_order_id: Joi.string().allow("").allow(null),
1543
- msg: Joi.string().allow("").allow(null),
1544
- payment_transaction_id: Joi.string().allow("").allow(null),
1337
+ data: PaymentApplicationModel.LinkStatus().required(),
1338
+ success: Joi.boolean().required(),
1545
1339
  });
1546
1340
  }
1547
1341
 
1548
- /** @returns {ErrorResponse} */
1549
- static ErrorResponse() {
1342
+ /** @returns {renderHTMLRequest} */
1343
+ static renderHTMLRequest() {
1550
1344
  return Joi.object({
1551
- error: PaymentApplicationModel.ErrorDescription(),
1552
- message: Joi.string().allow("").required(),
1553
- status_code: Joi.number().required(),
1554
- success: Joi.boolean().required(),
1345
+ returntype: Joi.string().allow("").allow(null),
1346
+ base64_html: Joi.string().allow("").required(),
1555
1347
  });
1556
1348
  }
1557
1349
 
1558
- /** @returns {GetPaymentLinkResponse} */
1559
- static GetPaymentLinkResponse() {
1350
+ /** @returns {renderHTMLResponse} */
1351
+ static renderHTMLResponse() {
1560
1352
  return Joi.object({
1561
- amount: Joi.number().allow(null),
1562
- external_order_id: Joi.string().allow("").allow(null),
1563
- merchant_name: Joi.string().allow("").allow(null),
1564
- message: Joi.string().allow("").required(),
1565
- payment_link_current_status: Joi.string().allow("").allow(null),
1566
- payment_link_url: Joi.string().allow("").allow(null),
1567
- polling_timeout: Joi.number().allow(null),
1568
- status_code: Joi.number().required(),
1569
- success: Joi.boolean().required(),
1353
+ html: Joi.string().allow("").required(),
1570
1354
  });
1571
1355
  }
1572
1356
 
1573
- /** @returns {HttpErrorCodeAndResponse} */
1574
- static HttpErrorCodeAndResponse() {
1357
+ /** @returns {ValidateVPARequest} */
1358
+ static ValidateVPARequest() {
1575
1359
  return Joi.object({
1576
- error: PaymentApplicationModel.ErrorCodeAndDescription(),
1577
- success: Joi.boolean().required(),
1360
+ upi_vpa: Joi.string().allow("").required(),
1578
1361
  });
1579
1362
  }
1580
1363
 
1581
- /** @returns {IfscCodeResponse} */
1582
- static IfscCodeResponse() {
1364
+ /** @returns {ValidateUPI} */
1365
+ static ValidateUPI() {
1583
1366
  return Joi.object({
1584
- bank_name: Joi.string().allow("").required(),
1585
- branch_name: Joi.string().allow("").required(),
1586
- success: Joi.boolean(),
1367
+ status: Joi.string().allow("").required(),
1368
+ customer_name: Joi.string().allow("").required(),
1369
+ is_valid: Joi.boolean().required(),
1370
+ upi_vpa: Joi.string().allow("").required(),
1587
1371
  });
1588
1372
  }
1589
1373
 
1590
- /** @returns {IntentApp} */
1591
- static IntentApp() {
1374
+ /** @returns {ValidateVPAResponse} */
1375
+ static ValidateVPAResponse() {
1592
1376
  return Joi.object({
1593
- code: Joi.string().allow("").allow(null),
1594
- display_name: Joi.string().allow("").allow(null),
1595
- logos: PaymentApplicationModel.PaymentModeLogo(),
1596
- package_name: Joi.string().allow("").allow(null),
1377
+ data: PaymentApplicationModel.ValidateUPI().required(),
1378
+ success: Joi.boolean().required(),
1597
1379
  });
1598
1380
  }
1599
1381
 
1600
- /** @returns {IntentAppErrorList} */
1601
- static IntentAppErrorList() {
1382
+ /** @returns {CardDetails} */
1383
+ static CardDetails() {
1602
1384
  return Joi.object({
1603
- code: Joi.string().allow("").allow(null),
1604
- package_name: Joi.string().allow("").allow(null),
1385
+ status: Joi.boolean().required(),
1386
+ country: Joi.string().allow("").required(),
1387
+ bank_code: Joi.string().allow("").allow(null).required(),
1388
+ id: Joi.string().allow("").required(),
1389
+ card_exp_year: Joi.string().allow(""),
1390
+ card_brand: Joi.string().allow("").required(),
1391
+ type: Joi.string().allow("").required(),
1392
+ card_sub_type: Joi.string().allow("").allow(null).required(),
1393
+ is_domestic_card: Joi.boolean().required(),
1394
+ name_on_card: Joi.string().allow(""),
1395
+ card_exp_month: Joi.string().allow(""),
1396
+ extended_card_type: Joi.string().allow("").required(),
1397
+ card_object: Joi.string().allow("").required(),
1398
+ card_token: Joi.string().allow(""),
1399
+ user: Joi.string().allow(""),
1400
+ bank: Joi.string().allow("").required(),
1605
1401
  });
1606
1402
  }
1607
1403
 
1608
- /** @returns {KYCAddress} */
1609
- static KYCAddress() {
1404
+ /** @returns {CardDetailsResponse} */
1405
+ static CardDetailsResponse() {
1610
1406
  return Joi.object({
1611
- addressline1: Joi.string().allow("").required(),
1612
- addressline2: Joi.string().allow("").allow(null),
1613
- city: Joi.string().allow("").required(),
1614
- land_mark: Joi.string().allow("").allow(null),
1615
- ownership_type: Joi.string().allow("").allow(null),
1616
- pincode: Joi.string().allow("").required(),
1617
- state: Joi.string().allow("").required(),
1407
+ data: PaymentApplicationModel.CardDetails().required(),
1408
+ success: Joi.boolean().required(),
1618
1409
  });
1619
1410
  }
1620
1411
 
1621
- /** @returns {LinkStatus} */
1622
- static LinkStatus() {
1412
+ /** @returns {TransferItemsDetails} */
1413
+ static TransferItemsDetails() {
1623
1414
  return Joi.object({
1624
- message: Joi.string().allow("").required(),
1625
- status: Joi.boolean().required(),
1415
+ id: Joi.number().required(),
1416
+ display_name: Joi.string().allow(""),
1417
+ logo_large: Joi.string().allow("").required(),
1418
+ logo_small: Joi.string().allow("").required(),
1419
+ name: Joi.string().allow("").required(),
1626
1420
  });
1627
1421
  }
1628
1422
 
1629
- /** @returns {ListCardsResponse} */
1630
- static ListCardsResponse() {
1423
+ /** @returns {TransferModeDetails} */
1424
+ static TransferModeDetails() {
1631
1425
  return Joi.object({
1632
- data: Joi.array().items(PaymentApplicationModel.Card()),
1633
- message: Joi.string().allow("").required(),
1634
- success: Joi.boolean().required(),
1426
+ items: Joi.array().items(PaymentApplicationModel.TransferItemsDetails()),
1427
+ display_name: Joi.string().allow("").required(),
1635
1428
  });
1636
1429
  }
1637
1430
 
1638
- /** @returns {MarketplaceInfo} */
1639
- static MarketplaceInfo() {
1431
+ /** @returns {TransferModeResponse} */
1432
+ static TransferModeResponse() {
1640
1433
  return Joi.object({
1641
- date_of_joining: Joi.string().allow("").allow(null),
1642
- membership_id: Joi.string().allow("").required(),
1643
- name: Joi.string().allow("").required(),
1434
+ data: Joi.array()
1435
+ .items(PaymentApplicationModel.TransferModeDetails())
1436
+ .required(),
1644
1437
  });
1645
1438
  }
1646
1439
 
1647
- /** @returns {NotFoundResourceError} */
1648
- static NotFoundResourceError() {
1440
+ /** @returns {UpdateRefundTransferModeRequest} */
1441
+ static UpdateRefundTransferModeRequest() {
1649
1442
  return Joi.object({
1650
- code: Joi.string().allow("").required(),
1651
- description: Joi.string().allow("").required(),
1652
- success: Joi.boolean().required(),
1443
+ enable: Joi.boolean().required(),
1444
+ transfer_mode: Joi.string().allow("").required(),
1653
1445
  });
1654
1446
  }
1655
1447
 
1656
- /** @returns {OnboardSummary} */
1657
- static OnboardSummary() {
1448
+ /** @returns {UpdateRefundTransferModeResponse} */
1449
+ static UpdateRefundTransferModeResponse() {
1658
1450
  return Joi.object({
1659
- activation_url: Joi.string().allow(""),
1660
- is_eligible_for_txn: Joi.boolean(),
1661
- merchant_customer_ref_id: Joi.string().allow(""),
1662
- redirect_url: Joi.string().allow(""),
1663
- session: Joi.any(),
1664
- status: Joi.boolean().required(),
1665
- status_remark: Joi.string().allow(""),
1451
+ success: Joi.boolean(),
1666
1452
  });
1667
1453
  }
1668
1454
 
1669
1455
  /** @returns {OrderBeneficiaryDetails} */
1670
1456
  static OrderBeneficiaryDetails() {
1671
1457
  return Joi.object({
1672
- account_holder: Joi.string().allow("").required(),
1458
+ modified_on: Joi.string().allow("").required(),
1673
1459
  account_no: Joi.string().allow("").required(),
1674
- address: Joi.string().allow("").required(),
1460
+ mobile: Joi.string().allow(""),
1675
1461
  bank_name: Joi.string().allow("").required(),
1462
+ ifsc_code: Joi.string().allow("").required(),
1463
+ is_active: Joi.boolean().required(),
1676
1464
  beneficiary_id: Joi.string().allow("").required(),
1677
- branch_name: Joi.string().allow(""),
1678
- comment: Joi.string().allow(""),
1679
- created_on: Joi.string().allow("").required(),
1680
- delights_user_name: Joi.string().allow("").allow(null),
1681
- display_name: Joi.string().allow("").required(),
1465
+ account_holder: Joi.string().allow("").required(),
1682
1466
  email: Joi.string().allow("").required(),
1467
+ delights_user_name: Joi.string().allow("").allow(null),
1683
1468
  id: Joi.number().required(),
1684
- ifsc_code: Joi.string().allow("").required(),
1685
- is_active: Joi.boolean().required(),
1686
- mobile: Joi.string().allow(""),
1687
- modified_on: Joi.string().allow("").required(),
1469
+ transfer_mode: Joi.string().allow("").required(),
1470
+ branch_name: Joi.string().allow(""),
1471
+ created_on: Joi.string().allow("").required(),
1688
1472
  subtitle: Joi.string().allow("").required(),
1473
+ comment: Joi.string().allow(""),
1474
+ address: Joi.string().allow("").required(),
1689
1475
  title: Joi.string().allow("").required(),
1690
- transfer_mode: Joi.string().allow("").required(),
1476
+ display_name: Joi.string().allow("").required(),
1691
1477
  });
1692
1478
  }
1693
1479
 
1694
1480
  /** @returns {OrderBeneficiaryResponse} */
1695
1481
  static OrderBeneficiaryResponse() {
1696
1482
  return Joi.object({
1483
+ show_beneficiary_details: Joi.boolean(),
1697
1484
  beneficiaries: Joi.array().items(
1698
1485
  PaymentApplicationModel.OrderBeneficiaryDetails()
1699
1486
  ),
1700
- show_beneficiary_details: Joi.boolean(),
1701
- });
1702
- }
1703
-
1704
- /** @returns {OutstandingOrderDetailsResponse} */
1705
- static OutstandingOrderDetailsResponse() {
1706
- return Joi.object({
1707
- data: Joi.array().items(Joi.any()),
1708
- message: Joi.string().allow("").allow(null),
1709
- status_code: Joi.number().required(),
1710
- success: Joi.boolean().required(),
1711
- });
1712
- }
1713
-
1714
- /** @returns {PaidOrderDetailsResponse} */
1715
- static PaidOrderDetailsResponse() {
1716
- return Joi.object({
1717
- data: Joi.array().items(Joi.any()),
1718
- message: Joi.string().allow("").allow(null),
1719
- status_code: Joi.number().required(),
1720
- success: Joi.boolean().required(),
1721
- });
1722
- }
1723
-
1724
- /** @returns {PaymentFlow} */
1725
- static PaymentFlow() {
1726
- return Joi.object({
1727
- ajiodhan: PaymentApplicationModel.AggregatorRoute(),
1728
- bqr_razorpay: PaymentApplicationModel.AggregatorRoute(),
1729
- ccavenue: PaymentApplicationModel.AggregatorRoute(),
1730
- epaylater: PaymentApplicationModel.AggregatorRoute(),
1731
- fynd: PaymentApplicationModel.AggregatorRoute(),
1732
- jiopay: PaymentApplicationModel.AggregatorRoute(),
1733
- juspay: PaymentApplicationModel.AggregatorRoute(),
1734
- mswipe: PaymentApplicationModel.AggregatorRoute(),
1735
- payubiz: PaymentApplicationModel.AggregatorRoute(),
1736
- razorpay: PaymentApplicationModel.AggregatorRoute(),
1737
- rupifi: PaymentApplicationModel.AggregatorRoute(),
1738
- simpl: PaymentApplicationModel.AggregatorRoute(),
1739
- stripe: PaymentApplicationModel.AggregatorRoute(),
1740
- upi_razorpay: PaymentApplicationModel.AggregatorRoute(),
1741
- });
1742
- }
1743
-
1744
- /** @returns {PaymentInitializationRequest} */
1745
- static PaymentInitializationRequest() {
1746
- return Joi.object({
1747
- aggregator: Joi.string().allow("").required(),
1748
- amount: Joi.number().allow(null).required(),
1749
- contact: Joi.string().allow("").required(),
1750
- currency: Joi.string().allow("").required(),
1751
- customer_id: Joi.string().allow("").required(),
1752
- device_id: Joi.string().allow("").allow(null),
1753
- email: Joi.string().allow("").required(),
1754
- merchant_order_id: Joi.string().allow("").required(),
1755
- method: Joi.string().allow("").required(),
1756
- order_id: Joi.string().allow("").required(),
1757
- razorpay_payment_id: Joi.string().allow("").allow(null),
1758
- timeout: Joi.number().allow(null),
1759
- vpa: Joi.string().allow("").allow(null),
1760
1487
  });
1761
1488
  }
1762
1489
 
1763
- /** @returns {PaymentInitializationResponse} */
1764
- static PaymentInitializationResponse() {
1490
+ /** @returns {NotFoundResourceError} */
1491
+ static NotFoundResourceError() {
1765
1492
  return Joi.object({
1766
- aggregator: Joi.string().allow("").required(),
1767
- aggregator_order_id: Joi.string().allow(""),
1768
- amount: Joi.number().allow(null),
1769
- bqr_image: Joi.string().allow("").allow(null),
1770
- currency: Joi.string().allow("").allow(null),
1771
- customer_id: Joi.string().allow("").allow(null),
1772
- device_id: Joi.string().allow("").allow(null),
1773
- merchant_order_id: Joi.string().allow("").required(),
1774
- method: Joi.string().allow("").required(),
1775
- polling_url: Joi.string().allow("").required(),
1776
- razorpay_payment_id: Joi.string().allow("").allow(null),
1777
- status: Joi.string().allow(""),
1493
+ code: Joi.string().allow("").required(),
1494
+ description: Joi.string().allow("").required(),
1778
1495
  success: Joi.boolean().required(),
1779
- timeout: Joi.number().allow(null),
1780
- upi_poll_url: Joi.string().allow("").allow(null),
1781
- virtual_id: Joi.string().allow("").allow(null),
1782
- vpa: Joi.string().allow("").allow(null),
1783
- });
1784
- }
1785
-
1786
- /** @returns {PaymentMethodsMeta} */
1787
- static PaymentMethodsMeta() {
1788
- return Joi.object({
1789
- merchant_code: Joi.string().allow("").required(),
1790
- payment_gateway: Joi.string().allow("").required(),
1791
- payment_identifier: Joi.string().allow("").required(),
1792
- });
1793
- }
1794
-
1795
- /** @returns {PaymentMethodsMetaOrder} */
1796
- static PaymentMethodsMetaOrder() {
1797
- return Joi.object({
1798
- merchant_code: Joi.string().allow("").required(),
1799
- payment_gateway: Joi.string().allow("").required(),
1800
- payment_identifier: Joi.string().allow("").required(),
1801
1496
  });
1802
1497
  }
1803
1498
 
1804
- /** @returns {PaymentModeList} */
1805
- static PaymentModeList() {
1499
+ /** @returns {IfscCodeResponse} */
1500
+ static IfscCodeResponse() {
1806
1501
  return Joi.object({
1807
- aggregator_name: Joi.string().allow("").required(),
1808
- card_brand: Joi.string().allow("").allow(null),
1809
- card_brand_image: Joi.string().allow("").allow(null),
1810
- card_fingerprint: Joi.string().allow("").allow(null),
1811
- card_id: Joi.string().allow("").allow(null),
1812
- card_isin: Joi.string().allow("").allow(null),
1813
- card_issuer: Joi.string().allow("").allow(null),
1814
- card_name: Joi.string().allow("").allow(null),
1815
- card_number: Joi.string().allow("").allow(null),
1816
- card_reference: Joi.string().allow("").allow(null),
1817
- card_token: Joi.string().allow("").allow(null),
1818
- card_type: Joi.string().allow("").allow(null),
1819
- cod_limit: Joi.number().allow(null),
1820
- cod_limit_per_order: Joi.number().allow(null),
1821
- code: Joi.string().allow("").allow(null),
1822
- compliant_with_tokenisation_guidelines: Joi.boolean().allow(null),
1823
- display_name: Joi.string().allow("").allow(null),
1824
- display_priority: Joi.number().allow(null),
1825
- exp_month: Joi.number().allow(null),
1826
- exp_year: Joi.number().allow(null),
1827
- expired: Joi.boolean().allow(null),
1828
- fynd_vpa: Joi.string().allow("").allow(null),
1829
- intent_app: Joi.array().items(PaymentApplicationModel.IntentApp()),
1830
- intent_app_error_dict_list: Joi.array().items(
1831
- PaymentApplicationModel.IntentAppErrorList()
1832
- ),
1833
- intent_app_error_list: Joi.array().items(Joi.string().allow("")),
1834
- intent_flow: Joi.boolean().allow(null),
1835
- logo_url: PaymentApplicationModel.PaymentModeLogo(),
1836
- merchant_code: Joi.string().allow("").allow(null),
1837
- meta: Joi.any().allow(null),
1838
- name: Joi.string().allow("").allow(null),
1839
- nickname: Joi.string().allow("").allow(null),
1840
- remaining_limit: Joi.number().allow(null),
1841
- retry_count: Joi.number().allow(null),
1842
- timeout: Joi.number().allow(null),
1502
+ branch_name: Joi.string().allow("").required(),
1503
+ success: Joi.boolean(),
1504
+ bank_name: Joi.string().allow("").required(),
1843
1505
  });
1844
1506
  }
1845
1507
 
1846
- /** @returns {PaymentModeLogo} */
1847
- static PaymentModeLogo() {
1508
+ /** @returns {ErrorCodeDescription} */
1509
+ static ErrorCodeDescription() {
1848
1510
  return Joi.object({
1849
- large: Joi.string().allow("").required(),
1850
- small: Joi.string().allow("").required(),
1511
+ code: Joi.string().allow("").required(),
1512
+ description: Joi.string().allow("").required(),
1513
+ success: Joi.boolean().required(),
1851
1514
  });
1852
1515
  }
1853
1516
 
1854
- /** @returns {PaymentModeRouteResponse} */
1855
- static PaymentModeRouteResponse() {
1517
+ /** @returns {AddBeneficiaryViaOtpVerificationRequest} */
1518
+ static AddBeneficiaryViaOtpVerificationRequest() {
1856
1519
  return Joi.object({
1857
- advance_payment: Joi.array().items(
1858
- PaymentApplicationModel.AdvancePaymentObject()
1859
- ),
1860
- payment_breakup: Joi.any(),
1861
- payment_options: PaymentApplicationModel.PaymentOptionAndFlow().required(),
1862
- success: Joi.boolean().required(),
1520
+ request_id: Joi.string().allow("").required(),
1521
+ hash_key: Joi.string().allow("").required(),
1522
+ otp: Joi.string().allow("").required(),
1863
1523
  });
1864
1524
  }
1865
1525
 
1866
- /** @returns {PaymentOptionAndFlow} */
1867
- static PaymentOptionAndFlow() {
1526
+ /** @returns {AddBeneficiaryViaOtpVerificationResponse} */
1527
+ static AddBeneficiaryViaOtpVerificationResponse() {
1868
1528
  return Joi.object({
1869
- payment_flows: PaymentApplicationModel.PaymentFlow().required(),
1870
- payment_option: PaymentApplicationModel.RootPaymentMode().required(),
1529
+ success: Joi.boolean(),
1530
+ message: Joi.string().allow("").required(),
1871
1531
  });
1872
1532
  }
1873
1533
 
1874
- /** @returns {PaymentOrderData} */
1875
- static PaymentOrderData() {
1534
+ /** @returns {WrongOtpError} */
1535
+ static WrongOtpError() {
1876
1536
  return Joi.object({
1877
- aggregator: Joi.string().allow("").allow(null),
1878
- amount: Joi.number().allow(null),
1879
- callback_url: Joi.string().allow("").allow(null),
1880
- contact: Joi.string().allow("").allow(null),
1881
- currency: Joi.string().allow("").allow(null),
1882
- customer_id: Joi.string().allow("").allow(null),
1883
- email: Joi.string().allow("").allow(null),
1884
- merchant_order_id: Joi.string().allow("").allow(null),
1885
- method: Joi.string().allow("").allow(null),
1886
- order_id: Joi.string().allow("").allow(null),
1537
+ is_verified_flag: Joi.boolean().required(),
1538
+ description: Joi.string().allow("").required(),
1539
+ success: Joi.string().allow("").required(),
1887
1540
  });
1888
1541
  }
1889
1542
 
1890
- /** @returns {PaymentOrderMethods} */
1891
- static PaymentOrderMethods() {
1543
+ /** @returns {BeneficiaryModeDetails} */
1544
+ static BeneficiaryModeDetails() {
1892
1545
  return Joi.object({
1893
- amount: Joi.number().required(),
1894
- meta: PaymentApplicationModel.PaymentMethodsMetaOrder().required(),
1895
- mode: Joi.string().allow("").required(),
1896
- name: Joi.string().allow("").required(),
1897
- payment: Joi.string().allow(""),
1546
+ account_no: Joi.string().allow("").required(),
1547
+ address: Joi.string().allow(""),
1548
+ mobile: Joi.string().allow("").required(),
1549
+ bank_name: Joi.string().allow("").required(),
1550
+ comment: Joi.string().allow(""),
1551
+ ifsc_code: Joi.string().allow("").required(),
1552
+ vpa: Joi.string().allow("").allow(null),
1553
+ branch_name: Joi.string().allow("").required(),
1554
+ account_holder: Joi.string().allow("").required(),
1555
+ wallet: Joi.string().allow("").allow(null),
1556
+ email: Joi.string().allow("").required(),
1898
1557
  });
1899
1558
  }
1900
1559
 
1901
- /** @returns {PaymentOrderRequest} */
1902
- static PaymentOrderRequest() {
1560
+ /** @returns {AddBeneficiaryDetailsRequest} */
1561
+ static AddBeneficiaryDetailsRequest() {
1903
1562
  return Joi.object({
1563
+ delights: Joi.boolean().required(),
1564
+ shipment_id: Joi.string().allow("").required(),
1565
+ details: PaymentApplicationModel.BeneficiaryModeDetails().required(),
1566
+ otp: Joi.string().allow(""),
1904
1567
  order_id: Joi.string().allow("").required(),
1905
- payment_methods: Joi.array().items(
1906
- PaymentApplicationModel.PaymentOrderMethods()
1907
- ),
1908
- shipment_id: Joi.string().allow(""),
1568
+ transfer_mode: Joi.string().allow("").required(),
1569
+ request_id: Joi.string().allow(""),
1909
1570
  });
1910
1571
  }
1911
1572
 
1912
- /** @returns {PaymentOrderResponse} */
1913
- static PaymentOrderResponse() {
1573
+ /** @returns {RefundAccountResponse} */
1574
+ static RefundAccountResponse() {
1914
1575
  return Joi.object({
1915
- callback_url: Joi.string().allow("").allow(null),
1916
- data: PaymentApplicationModel.PaymentOrderData(),
1917
- message: Joi.string().allow("").required(),
1918
- order_id: Joi.string().allow("").allow(null),
1919
- payment_confirm_url: Joi.string().allow("").allow(null),
1920
- status_code: Joi.number().required(),
1576
+ is_verified_flag: Joi.boolean(),
1577
+ data: Joi.any(),
1921
1578
  success: Joi.boolean().required(),
1579
+ message: Joi.string().allow("").required(),
1922
1580
  });
1923
1581
  }
1924
1582
 
1925
- /** @returns {PaymentStatusUpdateRequest} */
1926
- static PaymentStatusUpdateRequest() {
1583
+ /** @returns {BankDetailsForOTP} */
1584
+ static BankDetailsForOTP() {
1585
+ return Joi.object({
1586
+ account_no: Joi.string().allow("").required(),
1587
+ bank_name: Joi.string().allow("").required(),
1588
+ ifsc_code: Joi.string().allow("").required(),
1589
+ branch_name: Joi.string().allow("").required(),
1590
+ account_holder: Joi.string().allow("").required(),
1591
+ });
1592
+ }
1593
+
1594
+ /** @returns {AddBeneficiaryDetailsOTPRequest} */
1595
+ static AddBeneficiaryDetailsOTPRequest() {
1927
1596
  return Joi.object({
1928
- aggregator: Joi.string().allow("").required(),
1929
- amount: Joi.number().allow(null).required(),
1930
- contact: Joi.string().allow("").required(),
1931
- currency: Joi.string().allow("").required(),
1932
- customer_id: Joi.string().allow("").required(),
1933
- device_id: Joi.string().allow("").allow(null),
1934
- email: Joi.string().allow("").required(),
1935
- merchant_order_id: Joi.string().allow("").required(),
1936
- merchant_transaction_id: Joi.string().allow("").required(),
1937
- method: Joi.string().allow("").required(),
1938
1597
  order_id: Joi.string().allow("").required(),
1939
- status: Joi.string().allow("").required(),
1940
- vpa: Joi.string().allow(""),
1598
+ details: PaymentApplicationModel.BankDetailsForOTP().required(),
1941
1599
  });
1942
1600
  }
1943
1601
 
1944
- /** @returns {PaymentStatusUpdateResponse} */
1945
- static PaymentStatusUpdateResponse() {
1602
+ /** @returns {WalletOtpRequest} */
1603
+ static WalletOtpRequest() {
1946
1604
  return Joi.object({
1947
- aggregator_name: Joi.string().allow("").required(),
1948
- redirect_url: Joi.string().allow("").allow(null),
1949
- retry: Joi.boolean().required(),
1950
- status: Joi.string().allow("").required(),
1951
- success: Joi.boolean().allow(null),
1605
+ country_code: Joi.string().allow("").required(),
1606
+ mobile: Joi.string().allow("").required(),
1952
1607
  });
1953
1608
  }
1954
1609
 
1955
- /** @returns {PollingPaymentLinkResponse} */
1956
- static PollingPaymentLinkResponse() {
1610
+ /** @returns {WalletOtpResponse} */
1611
+ static WalletOtpResponse() {
1957
1612
  return Joi.object({
1958
- aggregator_name: Joi.string().allow("").allow(null),
1959
- amount: Joi.number().allow(null),
1960
- http_status: Joi.number().allow(null),
1961
- message: Joi.string().allow("").allow(null),
1962
- order_id: Joi.string().allow("").allow(null),
1963
- payment_link_id: Joi.string().allow("").allow(null),
1964
- redirect_url: Joi.string().allow("").allow(null),
1965
- status: Joi.string().allow("").allow(null),
1966
- status_code: Joi.number().allow(null),
1967
- success: Joi.boolean().allow(null),
1613
+ request_id: Joi.string().allow("").required(),
1614
+ is_verified_flag: Joi.string().allow("").required(),
1615
+ success: Joi.boolean(),
1968
1616
  });
1969
1617
  }
1970
1618
 
1971
- /** @returns {RedirectToAggregatorResponse} */
1972
- static RedirectToAggregatorResponse() {
1619
+ /** @returns {SetDefaultBeneficiaryRequest} */
1620
+ static SetDefaultBeneficiaryRequest() {
1973
1621
  return Joi.object({
1974
- data: PaymentApplicationModel.RedirectURL().required(),
1622
+ order_id: Joi.string().allow("").required(),
1623
+ beneficiary_id: Joi.string().allow("").required(),
1624
+ });
1625
+ }
1626
+
1627
+ /** @returns {SetDefaultBeneficiaryResponse} */
1628
+ static SetDefaultBeneficiaryResponse() {
1629
+ return Joi.object({
1630
+ is_beneficiary_set: Joi.boolean().required(),
1631
+ success: Joi.boolean(),
1632
+ });
1633
+ }
1634
+
1635
+ /** @returns {GetPaymentLinkResponse} */
1636
+ static GetPaymentLinkResponse() {
1637
+ return Joi.object({
1638
+ status_code: Joi.number().required(),
1639
+ payment_link_current_status: Joi.string().allow("").allow(null),
1975
1640
  success: Joi.boolean().required(),
1641
+ polling_timeout: Joi.number().allow(null),
1642
+ payment_link_url: Joi.string().allow("").allow(null),
1643
+ external_order_id: Joi.string().allow("").allow(null),
1644
+ message: Joi.string().allow("").required(),
1645
+ merchant_name: Joi.string().allow("").allow(null),
1646
+ amount: Joi.number().allow(null),
1976
1647
  });
1977
1648
  }
1978
1649
 
1979
- /** @returns {RedirectURL} */
1980
- static RedirectURL() {
1650
+ /** @returns {ErrorDescription} */
1651
+ static ErrorDescription() {
1981
1652
  return Joi.object({
1982
- signup_url: Joi.string().allow("").required(),
1983
- status: Joi.boolean().required(),
1653
+ payment_transaction_id: Joi.string().allow("").allow(null),
1654
+ expired: Joi.boolean().allow(null),
1655
+ merchant_order_id: Joi.string().allow("").allow(null),
1656
+ merchant_name: Joi.string().allow("").allow(null),
1657
+ msg: Joi.string().allow("").allow(null),
1658
+ cancelled: Joi.boolean().allow(null),
1659
+ amount: Joi.number().allow(null),
1660
+ invalid_id: Joi.boolean().allow(null),
1984
1661
  });
1985
1662
  }
1986
1663
 
1987
- /** @returns {RefundAccountResponse} */
1988
- static RefundAccountResponse() {
1664
+ /** @returns {ErrorResponse} */
1665
+ static ErrorResponse() {
1989
1666
  return Joi.object({
1990
- data: Joi.any(),
1991
- is_verified_flag: Joi.boolean(),
1667
+ status_code: Joi.number().required(),
1668
+ error: Joi.any().allow(null),
1992
1669
  message: Joi.string().allow("").required(),
1993
1670
  success: Joi.boolean().required(),
1994
1671
  });
1995
1672
  }
1996
1673
 
1997
- /** @returns {renderHTMLRequest} */
1998
- static renderHTMLRequest() {
1674
+ /** @returns {CreatePaymentLinkMeta} */
1675
+ static CreatePaymentLinkMeta() {
1999
1676
  return Joi.object({
2000
- base64_html: Joi.string().allow("").required(),
2001
- returntype: Joi.string().allow("").allow(null),
1677
+ cart_id: Joi.string().allow("").required(),
1678
+ checkout_mode: Joi.string().allow("").required(),
1679
+ pincode: Joi.string().allow("").required(),
1680
+ assign_card_id: Joi.string().allow("").allow(null),
1681
+ amount: Joi.string().allow("").required(),
2002
1682
  });
2003
1683
  }
2004
1684
 
2005
- /** @returns {renderHTMLResponse} */
2006
- static renderHTMLResponse() {
1685
+ /** @returns {CreatePaymentLinkRequest} */
1686
+ static CreatePaymentLinkRequest() {
2007
1687
  return Joi.object({
2008
- html: Joi.string().allow("").required(),
1688
+ description: Joi.string().allow("").allow(null),
1689
+ external_order_id: Joi.string().allow("").required(),
1690
+ mobile_number: Joi.string().allow("").required(),
1691
+ amount: Joi.number().required(),
1692
+ meta: PaymentApplicationModel.CreatePaymentLinkMeta().required(),
1693
+ email: Joi.string().allow("").required(),
2009
1694
  });
2010
1695
  }
2011
1696
 
2012
- /** @returns {ResendOrCancelPaymentRequest} */
2013
- static ResendOrCancelPaymentRequest() {
1697
+ /** @returns {CreatePaymentLinkResponse} */
1698
+ static CreatePaymentLinkResponse() {
2014
1699
  return Joi.object({
2015
- device_id: Joi.string().allow("").allow(null),
2016
- order_id: Joi.string().allow("").required(),
2017
- request_type: Joi.string().allow("").required(),
1700
+ status_code: Joi.number().required(),
1701
+ success: Joi.boolean().required(),
1702
+ polling_timeout: Joi.number().allow(null),
1703
+ payment_link_url: Joi.string().allow("").allow(null),
1704
+ message: Joi.string().allow("").required(),
1705
+ payment_link_id: Joi.string().allow("").allow(null),
2018
1706
  });
2019
1707
  }
2020
1708
 
2021
- /** @returns {ResendOrCancelPaymentResponse} */
2022
- static ResendOrCancelPaymentResponse() {
1709
+ /** @returns {CancelOrResendPaymentLinkRequest} */
1710
+ static CancelOrResendPaymentLinkRequest() {
2023
1711
  return Joi.object({
2024
- data: PaymentApplicationModel.LinkStatus().required(),
2025
- success: Joi.boolean().required(),
1712
+ payment_link_id: Joi.string().allow("").required(),
2026
1713
  });
2027
1714
  }
2028
1715
 
2029
1716
  /** @returns {ResendPaymentLinkResponse} */
2030
1717
  static ResendPaymentLinkResponse() {
2031
1718
  return Joi.object({
2032
- message: Joi.string().allow("").required(),
2033
- polling_timeout: Joi.number().allow(null),
2034
1719
  status_code: Joi.number().required(),
1720
+ polling_timeout: Joi.number().allow(null),
2035
1721
  success: Joi.boolean().required(),
1722
+ message: Joi.string().allow("").required(),
2036
1723
  });
2037
1724
  }
2038
1725
 
2039
- /** @returns {RootPaymentMode} */
2040
- static RootPaymentMode() {
1726
+ /** @returns {CancelPaymentLinkResponse} */
1727
+ static CancelPaymentLinkResponse() {
2041
1728
  return Joi.object({
2042
- add_card_enabled: Joi.boolean().allow(null),
2043
- aggregator_name: Joi.string().allow("").allow(null),
2044
- anonymous_enable: Joi.boolean().allow(null),
2045
- display_name: Joi.string().allow("").required(),
2046
- display_priority: Joi.number().required(),
2047
- is_pay_by_card_pl: Joi.boolean().allow(null),
2048
- list: Joi.array().items(PaymentApplicationModel.PaymentModeList()),
2049
- name: Joi.string().allow("").required(),
2050
- save_card: Joi.boolean().allow(null),
1729
+ status_code: Joi.number().required(),
1730
+ success: Joi.boolean().required(),
1731
+ message: Joi.string().allow("").required(),
2051
1732
  });
2052
1733
  }
2053
1734
 
2054
- /** @returns {RupifiBannerData} */
2055
- static RupifiBannerData() {
1735
+ /** @returns {PollingPaymentLinkResponse} */
1736
+ static PollingPaymentLinkResponse() {
2056
1737
  return Joi.object({
2057
- kyc_url: Joi.string().allow(""),
2058
- status: Joi.string().allow(""),
1738
+ status: Joi.string().allow("").allow(null),
1739
+ status_code: Joi.number().allow(null),
1740
+ success: Joi.boolean().allow(null),
1741
+ http_status: Joi.number().allow(null),
1742
+ message: Joi.string().allow("").allow(null),
1743
+ order_id: Joi.string().allow("").allow(null),
1744
+ redirect_url: Joi.string().allow("").allow(null),
1745
+ payment_link_id: Joi.string().allow("").allow(null),
1746
+ aggregator_name: Joi.string().allow("").allow(null),
1747
+ amount: Joi.number().allow(null),
2059
1748
  });
2060
1749
  }
2061
1750
 
2062
- /** @returns {RupifiBannerResponse} */
2063
- static RupifiBannerResponse() {
1751
+ /** @returns {PaymentMethodsMeta} */
1752
+ static PaymentMethodsMeta() {
2064
1753
  return Joi.object({
2065
- data: PaymentApplicationModel.RupifiBannerData().required(),
2066
- success: Joi.boolean().required(),
1754
+ merchant_code: Joi.string().allow("").required(),
1755
+ payment_gateway: Joi.string().allow("").required(),
1756
+ payment_identifier: Joi.string().allow("").required(),
2067
1757
  });
2068
1758
  }
2069
1759
 
2070
- /** @returns {SetDefaultBeneficiaryRequest} */
2071
- static SetDefaultBeneficiaryRequest() {
1760
+ /** @returns {CreateOrderUserPaymentMethods} */
1761
+ static CreateOrderUserPaymentMethods() {
2072
1762
  return Joi.object({
2073
- beneficiary_id: Joi.string().allow("").required(),
2074
- order_id: Joi.string().allow("").required(),
1763
+ name: Joi.string().allow("").required(),
1764
+ mode: Joi.string().allow("").required(),
1765
+ meta: PaymentApplicationModel.PaymentMethodsMeta().required(),
2075
1766
  });
2076
1767
  }
2077
1768
 
2078
- /** @returns {SetDefaultBeneficiaryResponse} */
2079
- static SetDefaultBeneficiaryResponse() {
1769
+ /** @returns {CreateOrderUserRequest} */
1770
+ static CreateOrderUserRequest() {
2080
1771
  return Joi.object({
2081
- is_beneficiary_set: Joi.boolean().required(),
2082
- success: Joi.boolean(),
1772
+ failure_callback_url: Joi.string().allow("").required(),
1773
+ currency: Joi.string().allow("").required(),
1774
+ payment_link_id: Joi.string().allow("").required(),
1775
+ payment_methods: PaymentApplicationModel.CreateOrderUserPaymentMethods().required(),
1776
+ success_callback_url: Joi.string().allow("").required(),
1777
+ meta: Joi.any().allow(null),
2083
1778
  });
2084
1779
  }
2085
1780
 
2086
- /** @returns {SplitObject} */
2087
- static SplitObject() {
1781
+ /** @returns {CreateOrderUserData} */
1782
+ static CreateOrderUserData() {
2088
1783
  return Joi.object({
2089
- amount_remaining: Joi.number().allow(null),
2090
- splits_remaining: Joi.number().allow(null),
2091
- total_number_of_splits: Joi.number().allow(null),
1784
+ method: Joi.string().allow("").allow(null),
1785
+ aggregator: Joi.string().allow("").allow(null),
1786
+ customer_id: Joi.string().allow("").allow(null),
1787
+ contact: Joi.string().allow("").allow(null),
1788
+ merchant_order_id: Joi.string().allow("").allow(null),
1789
+ order_id: Joi.string().allow("").allow(null),
1790
+ currency: Joi.string().allow("").allow(null),
1791
+ callback_url: Joi.string().allow("").allow(null),
1792
+ amount: Joi.number().allow(null),
1793
+ email: Joi.string().allow("").allow(null),
2092
1794
  });
2093
1795
  }
2094
1796
 
2095
- /** @returns {TransferItemsDetails} */
2096
- static TransferItemsDetails() {
1797
+ /** @returns {CreateOrderUserResponse} */
1798
+ static CreateOrderUserResponse() {
2097
1799
  return Joi.object({
2098
- display_name: Joi.string().allow(""),
2099
- id: Joi.number().required(),
2100
- logo_large: Joi.string().allow("").required(),
2101
- logo_small: Joi.string().allow("").required(),
2102
- name: Joi.string().allow("").required(),
1800
+ status_code: Joi.number().required(),
1801
+ success: Joi.boolean().required(),
1802
+ data: PaymentApplicationModel.CreateOrderUserData(),
1803
+ message: Joi.string().allow("").required(),
1804
+ order_id: Joi.string().allow("").allow(null),
1805
+ callback_url: Joi.string().allow("").allow(null),
1806
+ payment_confirm_url: Joi.string().allow("").allow(null),
2103
1807
  });
2104
1808
  }
2105
1809
 
2106
- /** @returns {TransferModeDetails} */
2107
- static TransferModeDetails() {
1810
+ /** @returns {BalanceDetails} */
1811
+ static BalanceDetails() {
2108
1812
  return Joi.object({
2109
- display_name: Joi.string().allow("").required(),
2110
- items: Joi.array().items(PaymentApplicationModel.TransferItemsDetails()),
1813
+ formatted_value: Joi.string().allow("").allow(null),
1814
+ currency: Joi.string().allow("").allow(null),
1815
+ value: Joi.number().allow(null),
2111
1816
  });
2112
1817
  }
2113
1818
 
2114
- /** @returns {TransferModeResponse} */
2115
- static TransferModeResponse() {
1819
+ /** @returns {CreditSummary} */
1820
+ static CreditSummary() {
2116
1821
  return Joi.object({
2117
- data: Joi.array()
2118
- .items(PaymentApplicationModel.TransferModeDetails())
2119
- .required(),
1822
+ status: Joi.string().allow("").allow(null),
1823
+ credit_line_id: Joi.string().allow("").allow(null),
1824
+ amount_available: PaymentApplicationModel.BalanceDetails(),
1825
+ balance: PaymentApplicationModel.BalanceDetails(),
1826
+ status_message: Joi.string().allow("").allow(null),
1827
+ merchant_customer_ref_id: Joi.string().allow("").allow(null),
1828
+ buyer_status: Joi.string().allow("").allow(null),
2120
1829
  });
2121
1830
  }
2122
1831
 
2123
- /** @returns {UpdateRefundTransferModeRequest} */
2124
- static UpdateRefundTransferModeRequest() {
1832
+ /** @returns {CustomerCreditSummaryResponse} */
1833
+ static CustomerCreditSummaryResponse() {
2125
1834
  return Joi.object({
2126
- enable: Joi.boolean().required(),
2127
- transfer_mode: Joi.string().allow("").required(),
1835
+ data: PaymentApplicationModel.CreditSummary(),
1836
+ success: Joi.boolean().required(),
2128
1837
  });
2129
1838
  }
2130
1839
 
2131
- /** @returns {UpdateRefundTransferModeResponse} */
2132
- static UpdateRefundTransferModeResponse() {
1840
+ /** @returns {RedirectURL} */
1841
+ static RedirectURL() {
2133
1842
  return Joi.object({
2134
- success: Joi.boolean(),
1843
+ status: Joi.boolean().required(),
1844
+ signup_url: Joi.string().allow("").required(),
2135
1845
  });
2136
1846
  }
2137
1847
 
2138
- /** @returns {UserPersonalInfoInDetails} */
2139
- static UserPersonalInfoInDetails() {
1848
+ /** @returns {RedirectToAggregatorResponse} */
1849
+ static RedirectToAggregatorResponse() {
2140
1850
  return Joi.object({
2141
- address_as_per_id: PaymentApplicationModel.KYCAddress().required(),
2142
- dob: Joi.string().allow("").allow(null).required(),
2143
- driving_license: Joi.string().allow("").allow(null),
2144
- email: Joi.string().allow("").allow(null),
2145
- email_verified: Joi.boolean().required(),
2146
- fathers_name: Joi.string().allow("").allow(null),
2147
- first_name: Joi.string().allow("").required(),
2148
- gender: Joi.string().allow("").allow(null),
2149
- last_name: Joi.string().allow("").allow(null),
2150
- middle_name: Joi.string().allow("").allow(null),
2151
- mobile_verified: Joi.boolean().required(),
2152
- mothers_name: Joi.string().allow("").allow(null),
2153
- pan: Joi.string().allow("").allow(null),
2154
- passport: Joi.string().allow("").allow(null),
2155
- phone: Joi.string().allow("").required(),
2156
- voter_id: Joi.string().allow("").allow(null),
1851
+ data: PaymentApplicationModel.RedirectURL().required(),
1852
+ success: Joi.boolean().required(),
2157
1853
  });
2158
1854
  }
2159
1855
 
2160
- /** @returns {ValidateCustomerRequest} */
2161
- static ValidateCustomerRequest() {
1856
+ /** @returns {CreditDetail} */
1857
+ static CreditDetail() {
2162
1858
  return Joi.object({
2163
- aggregator: Joi.string().allow("").required(),
2164
- billing_address: Joi.any(),
2165
- delivery_address: Joi.any(),
2166
- merchant_params: Joi.any(),
2167
- order_items: Joi.array().items(Joi.any()),
2168
- payload: Joi.string().allow("").allow(null),
2169
- phone_number: Joi.string().allow("").required(),
2170
- transaction_amount_in_paise: Joi.number().required(),
1859
+ status: Joi.boolean().required(),
1860
+ is_registered: Joi.boolean().required(),
1861
+ signup_url: Joi.string().allow("").required(),
2171
1862
  });
2172
1863
  }
2173
1864
 
2174
- /** @returns {ValidateCustomerResponse} */
2175
- static ValidateCustomerResponse() {
1865
+ /** @returns {CheckCreditResponse} */
1866
+ static CheckCreditResponse() {
2176
1867
  return Joi.object({
2177
- data: Joi.any().required(),
2178
- message: Joi.string().allow("").required(),
1868
+ data: PaymentApplicationModel.CreditDetail().required(),
2179
1869
  success: Joi.boolean().required(),
2180
1870
  });
2181
1871
  }
2182
1872
 
2183
- /** @returns {ValidateUPI} */
2184
- static ValidateUPI() {
1873
+ /** @returns {KYCAddress} */
1874
+ static KYCAddress() {
2185
1875
  return Joi.object({
2186
- customer_name: Joi.string().allow("").required(),
2187
- is_valid: Joi.boolean().required(),
2188
- status: Joi.string().allow("").required(),
2189
- upi_vpa: Joi.string().allow("").required(),
1876
+ city: Joi.string().allow("").required(),
1877
+ addressline2: Joi.string().allow("").allow(null),
1878
+ state: Joi.string().allow("").required(),
1879
+ ownership_type: Joi.string().allow("").allow(null),
1880
+ pincode: Joi.string().allow("").required(),
1881
+ land_mark: Joi.string().allow("").allow(null),
1882
+ addressline1: Joi.string().allow("").required(),
2190
1883
  });
2191
1884
  }
2192
1885
 
2193
- /** @returns {ValidateVPARequest} */
2194
- static ValidateVPARequest() {
1886
+ /** @returns {UserPersonalInfoInDetails} */
1887
+ static UserPersonalInfoInDetails() {
2195
1888
  return Joi.object({
2196
- upi_vpa: Joi.string().allow("").required(),
1889
+ first_name: Joi.string().allow("").required(),
1890
+ voter_id: Joi.string().allow("").allow(null),
1891
+ gender: Joi.string().allow("").allow(null),
1892
+ dob: Joi.string().allow("").allow(null).required(),
1893
+ passport: Joi.string().allow("").allow(null),
1894
+ fathers_name: Joi.string().allow("").allow(null),
1895
+ mothers_name: Joi.string().allow("").allow(null),
1896
+ middle_name: Joi.string().allow("").allow(null),
1897
+ last_name: Joi.string().allow("").allow(null),
1898
+ pan: Joi.string().allow("").allow(null),
1899
+ driving_license: Joi.string().allow("").allow(null),
1900
+ email_verified: Joi.boolean().required(),
1901
+ address_as_per_id: PaymentApplicationModel.KYCAddress().required(),
1902
+ mobile_verified: Joi.boolean().required(),
1903
+ phone: Joi.string().allow("").required(),
1904
+ email: Joi.string().allow("").allow(null),
2197
1905
  });
2198
1906
  }
2199
1907
 
2200
- /** @returns {ValidateVPAResponse} */
2201
- static ValidateVPAResponse() {
1908
+ /** @returns {MarketplaceInfo} */
1909
+ static MarketplaceInfo() {
2202
1910
  return Joi.object({
2203
- data: PaymentApplicationModel.ValidateUPI().required(),
2204
- success: Joi.boolean().required(),
1911
+ date_of_joining: Joi.string().allow("").allow(null),
1912
+ name: Joi.string().allow("").required(),
1913
+ membership_id: Joi.string().allow("").required(),
2205
1914
  });
2206
1915
  }
2207
1916
 
2208
- /** @returns {WalletDelinkRequestSchema} */
2209
- static WalletDelinkRequestSchema() {
1917
+ /** @returns {BusinessDetails} */
1918
+ static BusinessDetails() {
2210
1919
  return Joi.object({
2211
- aggregator: Joi.string().allow("").required(),
2212
- wallet_code: Joi.string().allow("").required(),
1920
+ business_ownership_type: Joi.string().allow("").allow(null),
1921
+ vintage: Joi.string().allow("").allow(null),
1922
+ gstin: Joi.string().allow("").allow(null),
1923
+ pan: Joi.string().allow("").allow(null),
1924
+ entity_type: Joi.string().allow("").allow(null),
1925
+ shop_and_establishment: Joi.any(),
1926
+ fssai: Joi.string().allow("").allow(null),
1927
+ fda: Joi.string().allow("").allow(null),
1928
+ business_type: Joi.string().allow("").allow(null),
1929
+ name: Joi.string().allow("").allow(null),
1930
+ address: PaymentApplicationModel.KYCAddress(),
2213
1931
  });
2214
1932
  }
2215
1933
 
2216
- /** @returns {WalletLinkRequestSchema} */
2217
- static WalletLinkRequestSchema() {
1934
+ /** @returns {DeviceDetails} */
1935
+ static DeviceDetails() {
2218
1936
  return Joi.object({
2219
- aggregator: Joi.string().allow("").required(),
2220
- mobile: Joi.string().allow("").required(),
2221
- wallet_code: Joi.string().allow("").required(),
1937
+ identification_number: Joi.string().allow("").allow(null),
1938
+ identifier_type: Joi.string().allow("").allow(null),
1939
+ device_model: Joi.string().allow("").allow(null),
1940
+ device_make: Joi.string().allow("").allow(null),
1941
+ device_type: Joi.string().allow("").allow(null),
1942
+ os: Joi.string().allow("").allow(null),
1943
+ os_version: Joi.string().allow("").allow(null),
2222
1944
  });
2223
1945
  }
2224
1946
 
2225
- /** @returns {WalletOtpRequest} */
2226
- static WalletOtpRequest() {
1947
+ /** @returns {CustomerOnboardingRequest} */
1948
+ static CustomerOnboardingRequest() {
2227
1949
  return Joi.object({
2228
- country_code: Joi.string().allow("").required(),
2229
- mobile: Joi.string().allow("").required(),
1950
+ personal_info: PaymentApplicationModel.UserPersonalInfoInDetails().required(),
1951
+ mcc: Joi.string().allow("").allow(null),
1952
+ aggregator: Joi.string().allow("").required(),
1953
+ marketplace_info: PaymentApplicationModel.MarketplaceInfo(),
1954
+ source: Joi.string().allow("").required(),
1955
+ business_info: PaymentApplicationModel.BusinessDetails(),
1956
+ device: PaymentApplicationModel.DeviceDetails(),
2230
1957
  });
2231
1958
  }
2232
1959
 
2233
- /** @returns {WalletOtpResponse} */
2234
- static WalletOtpResponse() {
1960
+ /** @returns {OnboardSummary} */
1961
+ static OnboardSummary() {
2235
1962
  return Joi.object({
2236
- is_verified_flag: Joi.string().allow("").required(),
2237
- request_id: Joi.string().allow("").required(),
2238
- success: Joi.boolean(),
1963
+ status: Joi.boolean().required(),
1964
+ redirect_url: Joi.string().allow("").required(),
1965
+ session: Joi.any().required(),
2239
1966
  });
2240
1967
  }
2241
1968
 
2242
- /** @returns {WalletResponseSchema} */
2243
- static WalletResponseSchema() {
1969
+ /** @returns {CustomerOnboardingResponse} */
1970
+ static CustomerOnboardingResponse() {
2244
1971
  return Joi.object({
2245
- data: Joi.any().required(),
1972
+ data: PaymentApplicationModel.OnboardSummary().required(),
2246
1973
  success: Joi.boolean().required(),
2247
1974
  });
2248
1975
  }
2249
1976
 
2250
- /** @returns {WalletVerifyRequestSchema} */
2251
- static WalletVerifyRequestSchema() {
1977
+ /** @returns {OutstandingOrderDetailsResponse} */
1978
+ static OutstandingOrderDetailsResponse() {
2252
1979
  return Joi.object({
2253
- aggregator: Joi.string().allow("").required(),
2254
- link_token: Joi.string().allow("").required(),
2255
- otp: Joi.number().required(),
1980
+ status_code: Joi.number().required(),
1981
+ data: Joi.array().items(Joi.any()),
1982
+ success: Joi.boolean().required(),
1983
+ message: Joi.string().allow("").allow(null),
2256
1984
  });
2257
1985
  }
2258
1986
 
2259
- /** @returns {WrongOtpError} */
2260
- static WrongOtpError() {
1987
+ /** @returns {PaidOrderDetailsResponse} */
1988
+ static PaidOrderDetailsResponse() {
2261
1989
  return Joi.object({
2262
- description: Joi.string().allow("").required(),
2263
- is_verified_flag: Joi.boolean().required(),
2264
- success: Joi.string().allow("").required(),
1990
+ status_code: Joi.number().required(),
1991
+ data: Joi.array().items(Joi.any()),
1992
+ success: Joi.boolean().required(),
1993
+ message: Joi.string().allow("").allow(null),
2265
1994
  });
2266
1995
  }
2267
1996
  }