@gofynd/fdk-client-javascript 1.3.11-beta.6 → 1.3.11-beta.8

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 (229) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Cart/CartApplicationClient.d.ts +1 -1
  4. package/sdk/application/Cart/CartApplicationClient.js +5 -3
  5. package/sdk/application/Cart/CartApplicationModel.d.ts +107 -1
  6. package/sdk/application/Cart/CartApplicationModel.js +74 -0
  7. package/sdk/application/Cart/CartApplicationValidator.d.ts +4 -0
  8. package/sdk/application/Cart/CartApplicationValidator.js +4 -0
  9. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +3 -6
  10. package/sdk/application/Catalog/CatalogApplicationClient.js +7 -20
  11. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2 -2
  12. package/sdk/application/Catalog/CatalogApplicationModel.js +2 -2
  13. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -14
  14. package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -6
  15. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +183 -49
  16. package/sdk/application/Configuration/ConfigurationApplicationModel.js +173 -31
  17. package/sdk/application/Content/ContentApplicationClient.d.ts +36 -0
  18. package/sdk/application/Content/ContentApplicationClient.js +246 -0
  19. package/sdk/application/Content/ContentApplicationModel.d.ts +208 -1
  20. package/sdk/application/Content/ContentApplicationModel.js +252 -0
  21. package/sdk/application/Content/ContentApplicationValidator.d.ts +40 -1
  22. package/sdk/application/Content/ContentApplicationValidator.js +41 -0
  23. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +67 -0
  24. package/sdk/application/Logistic/LogisticApplicationClient.js +547 -0
  25. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +456 -1
  26. package/sdk/application/Logistic/LogisticApplicationModel.js +488 -0
  27. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +211 -1
  28. package/sdk/application/Logistic/LogisticApplicationValidator.js +131 -0
  29. package/sdk/application/Order/OrderApplicationClient.d.ts +3 -3
  30. package/sdk/application/Order/OrderApplicationClient.js +32 -8
  31. package/sdk/application/Order/OrderApplicationModel.d.ts +6 -0
  32. package/sdk/application/Order/OrderApplicationModel.js +6 -0
  33. package/sdk/application/Order/OrderApplicationValidator.d.ts +20 -0
  34. package/sdk/application/Order/OrderApplicationValidator.js +8 -0
  35. package/sdk/application/Payment/PaymentApplicationClient.d.ts +46 -2
  36. package/sdk/application/Payment/PaymentApplicationClient.js +341 -10
  37. package/sdk/application/Payment/PaymentApplicationModel.d.ts +493 -186
  38. package/sdk/application/Payment/PaymentApplicationModel.js +341 -70
  39. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +59 -14
  40. package/sdk/application/Payment/PaymentApplicationValidator.js +64 -10
  41. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +34 -1
  42. package/sdk/application/PosCart/PosCartApplicationModel.js +24 -0
  43. package/sdk/application/Theme/ThemeApplicationClient.d.ts +1 -1
  44. package/sdk/application/Theme/ThemeApplicationClient.js +7 -3
  45. package/sdk/application/Theme/ThemeApplicationModel.d.ts +222 -36
  46. package/sdk/application/Theme/ThemeApplicationModel.js +322 -26
  47. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +10 -0
  48. package/sdk/application/Theme/ThemeApplicationValidator.js +4 -0
  49. package/sdk/application/User/UserApplicationClient.d.ts +33 -0
  50. package/sdk/application/User/UserApplicationClient.js +239 -0
  51. package/sdk/application/User/UserApplicationModel.d.ts +28 -13
  52. package/sdk/application/User/UserApplicationModel.js +36 -12
  53. package/sdk/application/User/UserApplicationValidator.d.ts +34 -1
  54. package/sdk/application/User/UserApplicationValidator.js +36 -0
  55. package/sdk/partner/Lead/LeadPartnerClient.d.ts +125 -0
  56. package/sdk/partner/Lead/LeadPartnerClient.js +785 -0
  57. package/sdk/partner/Lead/LeadPartnerModel.d.ts +1127 -0
  58. package/sdk/partner/Lead/LeadPartnerModel.js +896 -0
  59. package/sdk/partner/Lead/LeadPartnerValidator.d.ts +12 -0
  60. package/sdk/partner/Lead/LeadPartnerValidator.js +67 -0
  61. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +155 -0
  62. package/sdk/partner/Logistics/LogisticsPartnerClient.js +1195 -0
  63. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +372 -0
  64. package/sdk/partner/Logistics/LogisticsPartnerModel.js +442 -0
  65. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +16 -0
  66. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +123 -0
  67. package/sdk/partner/PartnerClient.d.ts +6 -0
  68. package/sdk/partner/PartnerClient.js +9 -0
  69. package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -0
  70. package/sdk/partner/Theme/ThemePartnerClient.js +80 -0
  71. package/sdk/partner/Theme/ThemePartnerModel.d.ts +100 -43
  72. package/sdk/partner/Theme/ThemePartnerModel.js +74 -30
  73. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +1 -0
  74. package/sdk/partner/Theme/ThemePartnerValidator.js +9 -0
  75. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +99 -0
  76. package/sdk/partner/Webhook/WebhookPartnerClient.js +753 -0
  77. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +566 -0
  78. package/sdk/partner/Webhook/WebhookPartnerModel.js +583 -0
  79. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +12 -0
  80. package/sdk/partner/Webhook/WebhookPartnerValidator.js +74 -0
  81. package/sdk/partner/index.d.ts +3 -0
  82. package/sdk/partner/index.js +6 -0
  83. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +2 -2
  84. package/sdk/platform/Billing/BillingPlatformClient.d.ts +11 -1
  85. package/sdk/platform/Billing/BillingPlatformClient.js +110 -3
  86. package/sdk/platform/Billing/BillingPlatformModel.d.ts +67 -1
  87. package/sdk/platform/Billing/BillingPlatformModel.js +78 -0
  88. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +43 -4
  89. package/sdk/platform/Billing/BillingPlatformValidator.js +29 -2
  90. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +1 -1
  91. package/sdk/platform/Cart/CartPlatformApplicationClient.js +7 -1
  92. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +4 -0
  93. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +4 -0
  94. package/sdk/platform/Cart/CartPlatformModel.d.ts +100 -5
  95. package/sdk/platform/Cart/CartPlatformModel.js +71 -4
  96. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +15 -11
  97. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +52 -21
  98. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +27 -0
  99. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +11 -0
  100. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +26 -4
  101. package/sdk/platform/Catalog/CatalogPlatformClient.js +173 -7
  102. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +304 -1
  103. package/sdk/platform/Catalog/CatalogPlatformModel.js +335 -0
  104. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +31 -3
  105. package/sdk/platform/Catalog/CatalogPlatformValidator.js +27 -2
  106. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +138 -36
  107. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +739 -57
  108. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +128 -3
  109. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +111 -1
  110. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +150 -1
  111. package/sdk/platform/Communication/CommunicationPlatformModel.js +172 -0
  112. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +8 -2
  113. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +32 -4
  114. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +38 -9
  115. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +42 -8
  116. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +14 -0
  117. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +6 -0
  118. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +8 -8
  119. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +4 -4
  120. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +371 -132
  121. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +288 -77
  122. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +2 -2
  123. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +2 -2
  124. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +391 -0
  125. package/sdk/platform/Content/ContentPlatformApplicationClient.js +3630 -1059
  126. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +342 -1
  127. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +401 -0
  128. package/sdk/platform/Content/ContentPlatformClient.d.ts +277 -0
  129. package/sdk/platform/Content/ContentPlatformClient.js +2000 -0
  130. package/sdk/platform/Content/ContentPlatformModel.d.ts +1094 -1
  131. package/sdk/platform/Content/ContentPlatformModel.js +1356 -46
  132. package/sdk/platform/Content/ContentPlatformValidator.d.ts +238 -0
  133. package/sdk/platform/Content/ContentPlatformValidator.js +310 -0
  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 +96 -13
  137. package/sdk/platform/Discount/DiscountPlatformModel.js +104 -12
  138. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +16 -6
  139. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +117 -8
  140. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +55 -4
  141. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +39 -2
  142. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +16 -5
  143. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +18 -4
  144. package/sdk/platform/Finance/FinancePlatformClient.d.ts +33 -0
  145. package/sdk/platform/Finance/FinancePlatformClient.js +240 -0
  146. package/sdk/platform/Finance/FinancePlatformModel.d.ts +151 -5
  147. package/sdk/platform/Finance/FinancePlatformModel.js +190 -4
  148. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +38 -1
  149. package/sdk/platform/Finance/FinancePlatformValidator.js +38 -0
  150. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +38 -28
  151. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +137 -56
  152. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +41 -29
  153. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +33 -21
  154. package/sdk/platform/Lead/LeadPlatformModel.d.ts +12 -3
  155. package/sdk/platform/Lead/LeadPlatformModel.js +16 -2
  156. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +23 -1
  157. package/sdk/platform/Order/OrderPlatformApplicationClient.js +178 -1
  158. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +39 -1
  159. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +32 -0
  160. package/sdk/platform/Order/OrderPlatformClient.d.ts +202 -31
  161. package/sdk/platform/Order/OrderPlatformClient.js +2010 -586
  162. package/sdk/platform/Order/OrderPlatformModel.d.ts +1030 -468
  163. package/sdk/platform/Order/OrderPlatformModel.js +1176 -523
  164. package/sdk/platform/Order/OrderPlatformValidator.d.ts +318 -35
  165. package/sdk/platform/Order/OrderPlatformValidator.js +292 -29
  166. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +119 -13
  167. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +749 -39
  168. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +143 -7
  169. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +133 -6
  170. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +1 -1
  171. package/sdk/platform/Payment/PaymentPlatformClient.js +1 -1
  172. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +996 -134
  173. package/sdk/platform/Payment/PaymentPlatformModel.js +721 -58
  174. package/sdk/platform/PlatformApplicationClient.d.ts +2 -2
  175. package/sdk/platform/PlatformApplicationClient.js +4 -4
  176. package/sdk/platform/PlatformClient.d.ts +4 -2
  177. package/sdk/platform/PlatformClient.js +8 -4
  178. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +142 -66
  179. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +645 -147
  180. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +131 -63
  181. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +126 -47
  182. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +217 -105
  183. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +1136 -347
  184. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +912 -313
  185. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1071 -355
  186. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +382 -133
  187. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +266 -102
  188. package/sdk/platform/Theme/ThemePlatformClient.d.ts +11 -1
  189. package/sdk/platform/Theme/ThemePlatformClient.js +87 -3
  190. package/sdk/platform/Theme/ThemePlatformModel.d.ts +333 -47
  191. package/sdk/platform/Theme/ThemePlatformModel.js +395 -35
  192. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +28 -4
  193. package/sdk/platform/Theme/ThemePlatformValidator.js +21 -2
  194. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +116 -1
  195. package/sdk/platform/User/UserPlatformApplicationClient.js +931 -85
  196. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +224 -7
  197. package/sdk/platform/User/UserPlatformApplicationValidator.js +173 -5
  198. package/sdk/platform/User/UserPlatformModel.d.ts +344 -7
  199. package/sdk/platform/User/UserPlatformModel.js +256 -5
  200. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +47 -39
  201. package/sdk/platform/Webhook/WebhookPlatformClient.js +63 -61
  202. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +264 -156
  203. package/sdk/platform/Webhook/WebhookPlatformModel.js +276 -153
  204. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +7 -10
  205. package/sdk/platform/Webhook/WebhookPlatformValidator.js +6 -6
  206. package/sdk/platform/index.d.ts +1 -1
  207. package/sdk/platform/index.js +2 -2
  208. package/sdk/public/Billing/BillingPublicClient.d.ts +23 -0
  209. package/sdk/public/Billing/BillingPublicClient.js +116 -0
  210. package/sdk/public/Billing/BillingPublicModel.d.ts +92 -0
  211. package/sdk/public/Billing/BillingPublicModel.js +96 -0
  212. package/sdk/public/Billing/BillingPublicValidator.d.ts +18 -0
  213. package/sdk/public/Billing/BillingPublicValidator.js +19 -0
  214. package/sdk/public/Content/ContentPublicClient.d.ts +22 -0
  215. package/sdk/public/Content/ContentPublicClient.js +114 -0
  216. package/sdk/public/Content/ContentPublicModel.d.ts +53 -0
  217. package/sdk/public/Content/ContentPublicModel.js +60 -0
  218. package/sdk/public/Content/ContentPublicValidator.d.ts +18 -0
  219. package/sdk/public/Content/ContentPublicValidator.js +19 -0
  220. package/sdk/public/PublicClient.d.ts +4 -0
  221. package/sdk/public/PublicClient.js +8 -0
  222. package/sdk/public/Webhook/WebhookPublicClient.d.ts +33 -0
  223. package/sdk/public/Webhook/WebhookPublicClient.js +242 -0
  224. package/sdk/public/Webhook/WebhookPublicModel.d.ts +147 -1
  225. package/sdk/public/Webhook/WebhookPublicModel.js +177 -1
  226. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +23 -1
  227. package/sdk/public/Webhook/WebhookPublicValidator.js +31 -0
  228. package/sdk/public/index.d.ts +2 -0
  229. package/sdk/public/index.js +4 -0
@@ -2,7 +2,7 @@ const Joi = require("joi");
2
2
 
3
3
  /**
4
4
  * @typedef ActiveCardPaymentGatewayResponse
5
- * @property {CardPaymentGateway} cards - Card's payment gateway with customer id.
5
+ * @property {CardPaymentGateway} cards
6
6
  * @property {string} message - Human readable message.
7
7
  * @property {boolean} success - Response is successful or not.
8
8
  */
@@ -17,7 +17,7 @@ const Joi = require("joi");
17
17
  * @typedef AddBeneficiaryDetailsRequest
18
18
  * @property {boolean} delights - True if beneficiary to be added by delights or
19
19
  * False if by User
20
- * @property {BeneficiaryModeDetails} details - Beneficiary bank details
20
+ * @property {BeneficiaryModeDetails} details
21
21
  * @property {string} order_id - Merchant Order Id
22
22
  * @property {string} [otp]
23
23
  * @property {string} [request_id]
@@ -38,6 +38,33 @@ const Joi = require("joi");
38
38
  * @property {boolean} [success] - Response is successful or not
39
39
  */
40
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
+
41
68
  /**
42
69
  * @typedef AggregatorConfigDetail
43
70
  * @property {string} [api] - Payment gateway api endpoint
@@ -122,7 +149,7 @@ const Joi = require("joi");
122
149
 
123
150
  /**
124
151
  * @typedef BusinessDetails
125
- * @property {KYCAddress} [address] - Address details
152
+ * @property {KYCAddress} [address]
126
153
  * @property {string} [business_ownership_type] - Business Ownershipp type(e.g Rented)
127
154
  * @property {string} [business_type] - Business Type
128
155
  * @property {string} [entity_type] - Busineess Entity Type
@@ -191,7 +218,7 @@ const Joi = require("joi");
191
218
 
192
219
  /**
193
220
  * @typedef CardDetailsResponse
194
- * @property {CardDetails} data - Saved Card Details
221
+ * @property {CardDetails} data
195
222
  * @property {boolean} success - Response is successful or not.
196
223
  */
197
224
 
@@ -224,7 +251,7 @@ const Joi = require("joi");
224
251
 
225
252
  /**
226
253
  * @typedef CheckCreditResponse
227
- * @property {CreditDetail} data - Credit summary of user.
254
+ * @property {CreditDetail} data
228
255
  * @property {boolean} success - Operation is successful or not.
229
256
  */
230
257
 
@@ -244,7 +271,7 @@ const Joi = require("joi");
244
271
 
245
272
  /**
246
273
  * @typedef CreateOrderUserPaymentMethods
247
- * @property {PaymentMethodsMeta} meta - Meta
274
+ * @property {PaymentMethodsMeta} meta
248
275
  * @property {string} mode - Payment mode
249
276
  * @property {string} name - Payment mode name
250
277
  */
@@ -255,7 +282,7 @@ const Joi = require("joi");
255
282
  * @property {string} failure_callback_url - Failure page url
256
283
  * @property {Object} [meta] - Meta
257
284
  * @property {string} payment_link_id - Unique id of payment link
258
- * @property {CreateOrderUserPaymentMethods} payment_methods - Payment method details
285
+ * @property {CreateOrderUserPaymentMethods} payment_methods
259
286
  * @property {string} success_callback_url - Success page url
260
287
  */
261
288
 
@@ -276,7 +303,6 @@ const Joi = require("joi");
276
303
  * @property {string} [assign_card_id]
277
304
  * @property {string} cart_id
278
305
  * @property {string} checkout_mode
279
- * @property {string} pincode
280
306
  */
281
307
 
282
308
  /**
@@ -285,7 +311,7 @@ const Joi = require("joi");
285
311
  * @property {string} [description] - Merchant order id
286
312
  * @property {string} email - Email to which the payment link is to be sent
287
313
  * @property {string} external_order_id - Merchant order id
288
- * @property {CreatePaymentLinkMeta} meta - Meta
314
+ * @property {CreatePaymentLinkMeta} meta
289
315
  * @property {string} mobile_number - Mobile number to which the payment link is
290
316
  * to be sent
291
317
  */
@@ -309,35 +335,43 @@ const Joi = require("joi");
309
335
 
310
336
  /**
311
337
  * @typedef CreditSummary
312
- * @property {BalanceDetails} [amount_available] - Credit summary of user.
313
- * @property {BalanceDetails} [balance] - Credit summary of user.
338
+ * @property {string} [activation_url] - Url for activation
339
+ * @property {BalanceDetails} [amount_available]
340
+ * @property {BalanceDetails} [balance]
314
341
  * @property {string} [buyer_status] - Status from Credit aggregator's end
315
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]
316
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.
317
350
  * @property {string} [status] - Customer Credit status
318
351
  * @property {string} [status_message] - Message to customer
352
+ * @property {BalanceDetails} [total_due_amount]
319
353
  */
320
354
 
321
355
  /**
322
356
  * @typedef CustomerCreditSummaryResponse
323
- * @property {CreditSummary} [data] - Credit summary of user.
357
+ * @property {CreditSummary} [data]
324
358
  * @property {boolean} success - Payment confirmation updated or not.
325
359
  */
326
360
 
327
361
  /**
328
362
  * @typedef CustomerOnboardingRequest
329
363
  * @property {string} aggregator - Aggregator Name
330
- * @property {BusinessDetails} [business_info] - Business summary.
331
- * @property {DeviceDetails} [device] - Device Details.
332
- * @property {MarketplaceInfo} [marketplace_info] - Market Place info.
364
+ * @property {BusinessDetails} [business_info]
365
+ * @property {DeviceDetails} [device]
366
+ * @property {MarketplaceInfo} [marketplace_info]
333
367
  * @property {string} [mcc] - Mcc
334
- * @property {UserPersonalInfoInDetails} personal_info - Credit summary of user.
368
+ * @property {UserPersonalInfoInDetails} [personal_info]
335
369
  * @property {string} source - CallbackURL
336
370
  */
337
371
 
338
372
  /**
339
373
  * @typedef CustomerOnboardingResponse
340
- * @property {OnboardSummary} data - Redirect URL.
374
+ * @property {OnboardSummary} data
341
375
  * @property {boolean} success - Status updated or not.
342
376
  */
343
377
 
@@ -372,7 +406,7 @@ const Joi = require("joi");
372
406
 
373
407
  /**
374
408
  * @typedef EpaylaterBannerResponse
375
- * @property {EpaylaterBannerData} data - Epaylater KYC banner details.
409
+ * @property {EpaylaterBannerData} data
376
410
  * @property {boolean} success - Successful or not.
377
411
  */
378
412
 
@@ -403,7 +437,7 @@ const Joi = require("joi");
403
437
 
404
438
  /**
405
439
  * @typedef ErrorResponse
406
- * @property {Object} [error]
440
+ * @property {ErrorDescription} [error]
407
441
  * @property {string} message - Message
408
442
  * @property {number} status_code - HTTP status code
409
443
  * @property {boolean} success - Successful or failure
@@ -439,7 +473,7 @@ const Joi = require("joi");
439
473
  * @typedef IntentApp
440
474
  * @property {string} [code] - Code
441
475
  * @property {string} [display_name] - Display_name
442
- * @property {Object} [logos] - Logos
476
+ * @property {PaymentModeLogo} [logos]
443
477
  * @property {string} [package_name] - Package_name
444
478
  */
445
479
 
@@ -489,9 +523,13 @@ const Joi = require("joi");
489
523
 
490
524
  /**
491
525
  * @typedef OnboardSummary
492
- * @property {string} redirect_url - URL to which the user may redirect.
493
- * @property {Object} session - User Session
494
- * @property {boolean} status - Operation Status
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
495
533
  */
496
534
 
497
535
  /**
@@ -541,20 +579,20 @@ const Joi = require("joi");
541
579
 
542
580
  /**
543
581
  * @typedef PaymentFlow
544
- * @property {Object} [ajiodhan] - Ajiodhan
545
- * @property {Object} [bqr_razorpay] - BQR_Razorpay
546
- * @property {Object} [ccavenue] - Ccavenue
547
- * @property {Object} [epaylater] - Epaylater
548
- * @property {Object} [fynd] - Fynd
549
- * @property {Object} [jiopay] - Jiopay
550
- * @property {Object} [juspay] - Juspay
551
- * @property {Object} [mswipe] - Mswipe
552
- * @property {Object} [payubiz] - Payubiz
553
- * @property {Object} [razorpay] - Razorpay
554
- * @property {Object} [rupifi] - Rupifi
555
- * @property {Object} [simpl] - Simpl
556
- * @property {Object} [stripe] - Stripe
557
- * @property {Object} [upi_razorpay] - UPI_Razorpay
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]
558
596
  */
559
597
 
560
598
  /**
@@ -602,6 +640,13 @@ const Joi = require("joi");
602
640
  * @property {string} payment_identifier - Payment identifier
603
641
  */
604
642
 
643
+ /**
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
648
+ */
649
+
605
650
  /**
606
651
  * @typedef PaymentModeList
607
652
  * @property {string} aggregator_name - Aggregator_name
@@ -632,8 +677,9 @@ const Joi = require("joi");
632
677
  * Intent_app_error_dict_list
633
678
  * @property {string[]} [intent_app_error_list] - Intent_app_error_list
634
679
  * @property {boolean} [intent_flow] - Intent_flow
635
- * @property {Object} [logo_url] - Logo
680
+ * @property {PaymentModeLogo} [logo_url]
636
681
  * @property {string} [merchant_code] - Merchant code
682
+ * @property {Object} [meta] - Payment methods meta
637
683
  * @property {string} [name] - Name
638
684
  * @property {string} [nickname] - Nickname
639
685
  * @property {number} [remaining_limit] - Remaining limit
@@ -649,14 +695,57 @@ const Joi = require("joi");
649
695
 
650
696
  /**
651
697
  * @typedef PaymentModeRouteResponse
652
- * @property {PaymentOptionAndFlow} payment_options - Payment_options
698
+ * @property {AdvancePaymentObject[]} [advance_payment] - Advance Payment Array
699
+ * @property {Object} [payment_breakup] - Payment Breakup for advance payment
700
+ * @property {PaymentOptionAndFlow} payment_options
653
701
  * @property {boolean} success - Response is successful or not
654
702
  */
655
703
 
656
704
  /**
657
705
  * @typedef PaymentOptionAndFlow
658
- * @property {PaymentFlow} payment_flows - Payment_flows
659
- * @property {RootPaymentMode[]} payment_option - Payment options
706
+ * @property {PaymentFlow} payment_flows
707
+ * @property {RootPaymentMode} payment_option
708
+ */
709
+
710
+ /**
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
722
+ */
723
+
724
+ /**
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
731
+ */
732
+
733
+ /**
734
+ * @typedef PaymentOrderRequest
735
+ * @property {string} order_id - Order id
736
+ * @property {PaymentOrderMethods[]} [payment_methods]
737
+ * @property {string} [shipment_id] - Shipment_id
738
+ */
739
+
740
+ /**
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
747
+ * @property {number} status_code - HTTP status code
748
+ * @property {boolean} success - Successful or failure
660
749
  */
661
750
 
662
751
  /**
@@ -701,7 +790,7 @@ const Joi = require("joi");
701
790
 
702
791
  /**
703
792
  * @typedef RedirectToAggregatorResponse
704
- * @property {RedirectURL} data - Redirect URL.
793
+ * @property {RedirectURL} data
705
794
  * @property {boolean} success - Status updated or not.
706
795
  */
707
796
 
@@ -739,7 +828,7 @@ const Joi = require("joi");
739
828
 
740
829
  /**
741
830
  * @typedef ResendOrCancelPaymentResponse
742
- * @property {LinkStatus} data - Data about link action status.
831
+ * @property {LinkStatus} data
743
832
  * @property {boolean} success - Response is successful or not.
744
833
  */
745
834
 
@@ -773,7 +862,7 @@ const Joi = require("joi");
773
862
 
774
863
  /**
775
864
  * @typedef RupifiBannerResponse
776
- * @property {RupifiBannerData} data - Rupifi KYC banner details.
865
+ * @property {RupifiBannerData} data
777
866
  * @property {boolean} success - Successful or not.
778
867
  */
779
868
 
@@ -789,6 +878,13 @@ const Joi = require("joi");
789
878
  * @property {boolean} [success] - Response is successful or not
790
879
  */
791
880
 
881
+ /**
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
886
+ */
887
+
792
888
  /**
793
889
  * @typedef TransferItemsDetails
794
890
  * @property {string} [display_name] - Beneficiary Display Name
@@ -822,7 +918,7 @@ const Joi = require("joi");
822
918
 
823
919
  /**
824
920
  * @typedef UserPersonalInfoInDetails
825
- * @property {KYCAddress} address_as_per_id - Address details
921
+ * @property {KYCAddress} address_as_per_id
826
922
  * @property {string} dob - DOB
827
923
  * @property {string} [driving_license] - Driver License
828
924
  * @property {string} [email] - Email
@@ -874,10 +970,23 @@ const Joi = require("joi");
874
970
 
875
971
  /**
876
972
  * @typedef ValidateVPAResponse
877
- * @property {ValidateUPI} data - Data about UPI ID validate.
973
+ * @property {ValidateUPI} data
878
974
  * @property {boolean} success - Response is successful or not.
879
975
  */
880
976
 
977
+ /**
978
+ * @typedef WalletDelinkRequestSchema
979
+ * @property {string} aggregator - Aggregator Name
980
+ * @property {string} wallet_code - Wallet Code
981
+ */
982
+
983
+ /**
984
+ * @typedef WalletLinkRequestSchema
985
+ * @property {string} aggregator - Aggregator Name
986
+ * @property {string} mobile - Mobile Number for Wallet
987
+ * @property {string} wallet_code - Wallet Code
988
+ */
989
+
881
990
  /**
882
991
  * @typedef WalletOtpRequest
883
992
  * @property {string} country_code - Country Code of the Mobile Number
@@ -892,6 +1001,19 @@ const Joi = require("joi");
892
1001
  * @property {boolean} [success] - Response is successful or not
893
1002
  */
894
1003
 
1004
+ /**
1005
+ * @typedef WalletResponseSchema
1006
+ * @property {Object} data - Response received from aggregator
1007
+ * @property {boolean} success - Success/Failure of the API call
1008
+ */
1009
+
1010
+ /**
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
1015
+ */
1016
+
895
1017
  /**
896
1018
  * @typedef WrongOtpError
897
1019
  * @property {string} description - Wrong OTP Code
@@ -947,6 +1069,38 @@ class PaymentApplicationModel {
947
1069
  });
948
1070
  }
949
1071
 
1072
+ /** @returns {AdvanceObject} */
1073
+ static AdvanceObject() {
1074
+ 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),
1088
+ });
1089
+ }
1090
+
1091
+ /** @returns {AdvancePaymentObject} */
1092
+ static AdvancePaymentObject() {
1093
+ 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(),
1101
+ });
1102
+ }
1103
+
950
1104
  /** @returns {AggregatorConfigDetail} */
951
1105
  static AggregatorConfigDetail() {
952
1106
  return Joi.object({
@@ -1229,7 +1383,6 @@ class PaymentApplicationModel {
1229
1383
  assign_card_id: Joi.string().allow("").allow(null),
1230
1384
  cart_id: Joi.string().allow("").required(),
1231
1385
  checkout_mode: Joi.string().allow("").required(),
1232
- pincode: Joi.string().allow("").required(),
1233
1386
  });
1234
1387
  }
1235
1388
 
@@ -1269,13 +1422,21 @@ class PaymentApplicationModel {
1269
1422
  /** @returns {CreditSummary} */
1270
1423
  static CreditSummary() {
1271
1424
  return Joi.object({
1425
+ activation_url: Joi.string().allow("").allow(null),
1272
1426
  amount_available: PaymentApplicationModel.BalanceDetails(),
1273
1427
  balance: PaymentApplicationModel.BalanceDetails(),
1274
1428
  buyer_status: Joi.string().allow("").allow(null),
1275
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(),
1276
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),
1277
1437
  status: Joi.string().allow("").allow(null),
1278
1438
  status_message: Joi.string().allow("").allow(null),
1439
+ total_due_amount: PaymentApplicationModel.BalanceDetails(),
1279
1440
  });
1280
1441
  }
1281
1442
 
@@ -1295,7 +1456,7 @@ class PaymentApplicationModel {
1295
1456
  device: PaymentApplicationModel.DeviceDetails(),
1296
1457
  marketplace_info: PaymentApplicationModel.MarketplaceInfo(),
1297
1458
  mcc: Joi.string().allow("").allow(null),
1298
- personal_info: PaymentApplicationModel.UserPersonalInfoInDetails().required(),
1459
+ personal_info: PaymentApplicationModel.UserPersonalInfoInDetails(),
1299
1460
  source: Joi.string().allow("").required(),
1300
1461
  });
1301
1462
  }
@@ -1387,7 +1548,7 @@ class PaymentApplicationModel {
1387
1548
  /** @returns {ErrorResponse} */
1388
1549
  static ErrorResponse() {
1389
1550
  return Joi.object({
1390
- error: Joi.any().allow(null),
1551
+ error: PaymentApplicationModel.ErrorDescription(),
1391
1552
  message: Joi.string().allow("").required(),
1392
1553
  status_code: Joi.number().required(),
1393
1554
  success: Joi.boolean().required(),
@@ -1431,7 +1592,7 @@ class PaymentApplicationModel {
1431
1592
  return Joi.object({
1432
1593
  code: Joi.string().allow("").allow(null),
1433
1594
  display_name: Joi.string().allow("").allow(null),
1434
- logos: Joi.any().allow(null),
1595
+ logos: PaymentApplicationModel.PaymentModeLogo(),
1435
1596
  package_name: Joi.string().allow("").allow(null),
1436
1597
  });
1437
1598
  }
@@ -1495,9 +1656,13 @@ class PaymentApplicationModel {
1495
1656
  /** @returns {OnboardSummary} */
1496
1657
  static OnboardSummary() {
1497
1658
  return Joi.object({
1498
- redirect_url: Joi.string().allow("").required(),
1499
- session: Joi.any().required(),
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(),
1500
1664
  status: Joi.boolean().required(),
1665
+ status_remark: Joi.string().allow(""),
1501
1666
  });
1502
1667
  }
1503
1668
 
@@ -1559,20 +1724,20 @@ class PaymentApplicationModel {
1559
1724
  /** @returns {PaymentFlow} */
1560
1725
  static PaymentFlow() {
1561
1726
  return Joi.object({
1562
- ajiodhan: Joi.any().allow(null),
1563
- bqr_razorpay: Joi.any().allow(null),
1564
- ccavenue: Joi.any().allow(null),
1565
- epaylater: Joi.any().allow(null),
1566
- fynd: Joi.any().allow(null),
1567
- jiopay: Joi.any().allow(null),
1568
- juspay: Joi.any().allow(null),
1569
- mswipe: Joi.any().allow(null),
1570
- payubiz: Joi.any().allow(null),
1571
- razorpay: Joi.any().allow(null),
1572
- rupifi: Joi.any().allow(null),
1573
- simpl: Joi.any().allow(null),
1574
- stripe: Joi.any().allow(null),
1575
- upi_razorpay: Joi.any().allow(null),
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(),
1576
1741
  });
1577
1742
  }
1578
1743
 
@@ -1627,6 +1792,15 @@ class PaymentApplicationModel {
1627
1792
  });
1628
1793
  }
1629
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
+ });
1802
+ }
1803
+
1630
1804
  /** @returns {PaymentModeList} */
1631
1805
  static PaymentModeList() {
1632
1806
  return Joi.object({
@@ -1658,8 +1832,9 @@ class PaymentApplicationModel {
1658
1832
  ),
1659
1833
  intent_app_error_list: Joi.array().items(Joi.string().allow("")),
1660
1834
  intent_flow: Joi.boolean().allow(null),
1661
- logo_url: Joi.any().allow(null),
1835
+ logo_url: PaymentApplicationModel.PaymentModeLogo(),
1662
1836
  merchant_code: Joi.string().allow("").allow(null),
1837
+ meta: Joi.any().allow(null),
1663
1838
  name: Joi.string().allow("").allow(null),
1664
1839
  nickname: Joi.string().allow("").allow(null),
1665
1840
  remaining_limit: Joi.number().allow(null),
@@ -1679,6 +1854,10 @@ class PaymentApplicationModel {
1679
1854
  /** @returns {PaymentModeRouteResponse} */
1680
1855
  static PaymentModeRouteResponse() {
1681
1856
  return Joi.object({
1857
+ advance_payment: Joi.array().items(
1858
+ PaymentApplicationModel.AdvancePaymentObject()
1859
+ ),
1860
+ payment_breakup: Joi.any(),
1682
1861
  payment_options: PaymentApplicationModel.PaymentOptionAndFlow().required(),
1683
1862
  success: Joi.boolean().required(),
1684
1863
  });
@@ -1688,9 +1867,58 @@ class PaymentApplicationModel {
1688
1867
  static PaymentOptionAndFlow() {
1689
1868
  return Joi.object({
1690
1869
  payment_flows: PaymentApplicationModel.PaymentFlow().required(),
1691
- payment_option: Joi.array()
1692
- .items(PaymentApplicationModel.RootPaymentMode())
1693
- .required(),
1870
+ payment_option: PaymentApplicationModel.RootPaymentMode().required(),
1871
+ });
1872
+ }
1873
+
1874
+ /** @returns {PaymentOrderData} */
1875
+ static PaymentOrderData() {
1876
+ 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),
1887
+ });
1888
+ }
1889
+
1890
+ /** @returns {PaymentOrderMethods} */
1891
+ static PaymentOrderMethods() {
1892
+ 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(""),
1898
+ });
1899
+ }
1900
+
1901
+ /** @returns {PaymentOrderRequest} */
1902
+ static PaymentOrderRequest() {
1903
+ return Joi.object({
1904
+ order_id: Joi.string().allow("").required(),
1905
+ payment_methods: Joi.array().items(
1906
+ PaymentApplicationModel.PaymentOrderMethods()
1907
+ ),
1908
+ shipment_id: Joi.string().allow(""),
1909
+ });
1910
+ }
1911
+
1912
+ /** @returns {PaymentOrderResponse} */
1913
+ static PaymentOrderResponse() {
1914
+ 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(),
1921
+ success: Joi.boolean().required(),
1694
1922
  });
1695
1923
  }
1696
1924
 
@@ -1855,6 +2083,15 @@ class PaymentApplicationModel {
1855
2083
  });
1856
2084
  }
1857
2085
 
2086
+ /** @returns {SplitObject} */
2087
+ static SplitObject() {
2088
+ 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),
2092
+ });
2093
+ }
2094
+
1858
2095
  /** @returns {TransferItemsDetails} */
1859
2096
  static TransferItemsDetails() {
1860
2097
  return Joi.object({
@@ -1968,6 +2205,23 @@ class PaymentApplicationModel {
1968
2205
  });
1969
2206
  }
1970
2207
 
2208
+ /** @returns {WalletDelinkRequestSchema} */
2209
+ static WalletDelinkRequestSchema() {
2210
+ return Joi.object({
2211
+ aggregator: Joi.string().allow("").required(),
2212
+ wallet_code: Joi.string().allow("").required(),
2213
+ });
2214
+ }
2215
+
2216
+ /** @returns {WalletLinkRequestSchema} */
2217
+ static WalletLinkRequestSchema() {
2218
+ return Joi.object({
2219
+ aggregator: Joi.string().allow("").required(),
2220
+ mobile: Joi.string().allow("").required(),
2221
+ wallet_code: Joi.string().allow("").required(),
2222
+ });
2223
+ }
2224
+
1971
2225
  /** @returns {WalletOtpRequest} */
1972
2226
  static WalletOtpRequest() {
1973
2227
  return Joi.object({
@@ -1985,6 +2239,23 @@ class PaymentApplicationModel {
1985
2239
  });
1986
2240
  }
1987
2241
 
2242
+ /** @returns {WalletResponseSchema} */
2243
+ static WalletResponseSchema() {
2244
+ return Joi.object({
2245
+ data: Joi.any().required(),
2246
+ success: Joi.boolean().required(),
2247
+ });
2248
+ }
2249
+
2250
+ /** @returns {WalletVerifyRequestSchema} */
2251
+ static WalletVerifyRequestSchema() {
2252
+ return Joi.object({
2253
+ aggregator: Joi.string().allow("").required(),
2254
+ link_token: Joi.string().allow("").required(),
2255
+ otp: Joi.number().required(),
2256
+ });
2257
+ }
2258
+
1988
2259
  /** @returns {WrongOtpError} */
1989
2260
  static WrongOtpError() {
1990
2261
  return Joi.object({