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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (237) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/ApplicationClient.d.ts +2 -0
  4. package/sdk/application/ApplicationClient.js +2 -0
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +68 -48
  6. package/sdk/application/Cart/CartApplicationClient.js +130 -27
  7. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +59 -58
  8. package/sdk/application/Catalog/CatalogApplicationClient.js +30 -29
  9. package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
  10. package/sdk/application/Common/CommonApplicationClient.js +1 -1
  11. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +20 -20
  12. package/sdk/application/Configuration/ConfigurationApplicationClient.js +10 -10
  13. package/sdk/application/Content/ContentApplicationClient.d.ts +19 -30
  14. package/sdk/application/Content/ContentApplicationClient.js +40 -60
  15. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +8 -8
  16. package/sdk/application/FileStorage/FileStorageApplicationClient.js +7 -7
  17. package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
  18. package/sdk/application/Finance/FinanceApplicationClient.js +126 -0
  19. package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -2
  20. package/sdk/application/Lead/LeadApplicationClient.js +1 -1
  21. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +35 -15
  22. package/sdk/application/Logistic/LogisticApplicationClient.js +118 -8
  23. package/sdk/application/Order/OrderApplicationClient.d.ts +22 -12
  24. package/sdk/application/Order/OrderApplicationClient.js +62 -8
  25. package/sdk/application/Payment/PaymentApplicationClient.d.ts +87 -87
  26. package/sdk/application/Payment/PaymentApplicationClient.js +65 -46
  27. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
  28. package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
  29. package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
  30. package/sdk/application/Theme/ThemeApplicationClient.js +4 -2
  31. package/sdk/application/User/UserApplicationClient.d.ts +10 -10
  32. package/sdk/application/User/UserApplicationClient.js +6 -6
  33. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
  34. package/sdk/application/Webhook/WebhookApplicationClient.js +3 -3
  35. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +86 -12
  36. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +582 -24
  37. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +116 -19
  38. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +121 -14
  39. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +8 -1
  40. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +51 -4
  41. package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
  42. package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
  43. package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
  44. package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
  45. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +126 -20
  46. package/sdk/partner/Logistics/LogisticsPartnerClient.js +970 -20
  47. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1200 -167
  48. package/sdk/partner/Logistics/LogisticsPartnerModel.js +571 -160
  49. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +10 -0
  50. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +121 -7
  51. package/sdk/partner/Theme/ThemePartnerClient.d.ts +8 -10
  52. package/sdk/partner/Theme/ThemePartnerClient.js +14 -16
  53. package/sdk/partner/Theme/ThemePartnerModel.d.ts +96 -37
  54. package/sdk/partner/Theme/ThemePartnerModel.js +90 -36
  55. package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
  56. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +28 -18
  57. package/sdk/partner/Webhook/WebhookPartnerClient.js +103 -18
  58. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +612 -179
  59. package/sdk/partner/Webhook/WebhookPartnerModel.js +253 -150
  60. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +1 -0
  61. package/sdk/partner/Webhook/WebhookPartnerValidator.js +11 -3
  62. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +5 -4
  63. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +14 -8
  64. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +59 -9
  65. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +40 -4
  66. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
  67. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
  68. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +11 -130
  69. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +12 -152
  70. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
  71. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
  72. package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
  73. package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
  74. package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
  75. package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
  76. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
  77. package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
  78. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +134 -103
  79. package/sdk/platform/Cart/CartPlatformApplicationClient.js +419 -115
  80. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +121 -65
  81. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +109 -44
  82. package/sdk/platform/Cart/CartPlatformModel.d.ts +5039 -1300
  83. package/sdk/platform/Cart/CartPlatformModel.js +1976 -1217
  84. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +209 -183
  85. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +452 -395
  86. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +185 -142
  87. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +96 -78
  88. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +154 -117
  89. package/sdk/platform/Catalog/CatalogPlatformClient.js +292 -172
  90. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6941 -2203
  91. package/sdk/platform/Catalog/CatalogPlatformModel.js +3224 -1687
  92. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +72 -31
  93. package/sdk/platform/Catalog/CatalogPlatformValidator.js +50 -24
  94. package/sdk/platform/Common/CommonPlatformClient.d.ts +3 -2
  95. package/sdk/platform/Common/CommonPlatformClient.js +3 -2
  96. package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
  97. package/sdk/platform/Common/CommonPlatformModel.js +6 -6
  98. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +16 -17
  99. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +16 -17
  100. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
  101. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
  102. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +43 -33
  103. package/sdk/platform/Communication/CommunicationPlatformModel.js +38 -34
  104. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +46 -42
  105. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +47 -43
  106. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
  107. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +210 -212
  108. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
  109. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
  110. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +46 -33
  111. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +67 -54
  112. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
  113. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
  114. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +45 -24
  115. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +134 -30
  116. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +283 -124
  117. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +219 -94
  118. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
  119. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
  120. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +124 -141
  121. package/sdk/platform/Content/ContentPlatformApplicationClient.js +449 -422
  122. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +179 -141
  123. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +168 -130
  124. package/sdk/platform/Content/ContentPlatformClient.d.ts +142 -106
  125. package/sdk/platform/Content/ContentPlatformClient.js +523 -336
  126. package/sdk/platform/Content/ContentPlatformModel.d.ts +1241 -395
  127. package/sdk/platform/Content/ContentPlatformModel.js +521 -390
  128. package/sdk/platform/Content/ContentPlatformValidator.d.ts +168 -117
  129. package/sdk/platform/Content/ContentPlatformValidator.js +162 -108
  130. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +14 -12
  131. package/sdk/platform/Discount/DiscountPlatformClient.js +14 -12
  132. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
  133. package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
  134. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
  135. package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
  136. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +94 -36
  137. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +462 -60
  138. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +62 -15
  139. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +75 -13
  140. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
  141. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
  142. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +370 -101
  143. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +313 -84
  144. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  145. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  146. package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
  147. package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
  148. package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
  149. package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
  150. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +17 -6
  151. package/sdk/platform/Order/OrderPlatformApplicationClient.js +85 -7
  152. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +95 -24
  153. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +39 -19
  154. package/sdk/platform/Order/OrderPlatformClient.d.ts +153 -96
  155. package/sdk/platform/Order/OrderPlatformClient.js +416 -198
  156. package/sdk/platform/Order/OrderPlatformModel.d.ts +7602 -1269
  157. package/sdk/platform/Order/OrderPlatformModel.js +3926 -1269
  158. package/sdk/platform/Order/OrderPlatformValidator.d.ts +270 -109
  159. package/sdk/platform/Order/OrderPlatformValidator.js +135 -77
  160. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
  161. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
  162. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
  163. package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
  164. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +93 -105
  165. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +129 -141
  166. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +48 -48
  167. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +48 -48
  168. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
  169. package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
  170. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +333 -319
  171. package/sdk/platform/Payment/PaymentPlatformModel.js +288 -278
  172. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
  173. package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
  174. package/sdk/platform/PlatformClient.d.ts +0 -2
  175. package/sdk/platform/PlatformClient.js +0 -4
  176. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  177. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
  178. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
  179. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
  180. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
  181. package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
  182. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +48 -38
  183. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +134 -43
  184. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +46 -17
  185. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +34 -14
  186. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +38 -44
  187. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +56 -62
  188. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1842 -609
  189. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +886 -554
  190. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +42 -46
  191. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +26 -28
  192. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
  193. package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
  194. package/sdk/platform/Share/SharePlatformModel.d.ts +36 -5
  195. package/sdk/platform/Share/SharePlatformModel.js +27 -4
  196. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
  197. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +8 -4
  198. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +5 -0
  199. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +2 -0
  200. package/sdk/platform/Theme/ThemePlatformModel.d.ts +37 -11
  201. package/sdk/platform/Theme/ThemePlatformModel.js +33 -15
  202. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
  203. package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
  204. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
  205. package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
  206. package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
  207. package/sdk/platform/User/UserPlatformModel.js +23 -23
  208. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
  209. package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
  210. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +720 -427
  211. package/sdk/platform/Webhook/WebhookPlatformModel.js +410 -386
  212. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
  213. package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
  214. package/sdk/platform/index.d.ts +0 -1
  215. package/sdk/platform/index.js +0 -2
  216. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +3 -2
  217. package/sdk/public/Configuration/ConfigurationPublicClient.js +6 -5
  218. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
  219. package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
  220. package/sdk/public/Content/ContentPublicClient.d.ts +112 -2
  221. package/sdk/public/Content/ContentPublicClient.js +895 -8
  222. package/sdk/public/Content/ContentPublicModel.d.ts +549 -3
  223. package/sdk/public/Content/ContentPublicModel.js +649 -3
  224. package/sdk/public/Content/ContentPublicValidator.d.ts +69 -3
  225. package/sdk/public/Content/ContentPublicValidator.js +88 -2
  226. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  227. package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
  228. package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
  229. package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
  230. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  231. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  232. package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
  233. package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
  234. package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2890
  235. package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
  236. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
  237. package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
@@ -1,7 +1,7 @@
1
1
  const Joi = require("joi");
2
2
 
3
3
  /**
4
- * @typedef PaymentGatewayConfigResponse
4
+ * @typedef PaymentGatewayConfigDetails
5
5
  * @property {Object[]} [aggregators] - List of all config specific to the
6
6
  * aggregator with their Details.
7
7
  * @property {string} app_id - Application Id to which Payment config Mapped
@@ -29,7 +29,7 @@ const Joi = require("joi");
29
29
  */
30
30
 
31
31
  /**
32
- * @typedef PaymentGatewayConfigRequest
32
+ * @typedef PaymentGatewayConfigCreation
33
33
  * @property {string} app_id - Application Id to which Payment config Mapped
34
34
  * @property {boolean} [is_active] - Enable or Disable Flag
35
35
  * @property {PaymentGatewayConfig} [aggregator_name]
@@ -48,7 +48,7 @@ const Joi = require("joi");
48
48
  */
49
49
 
50
50
  /**
51
- * @typedef HttpErrorCodeAndResponse
51
+ * @typedef HttpErrorDetails
52
52
  * @property {ErrorCodeAndDescription} error
53
53
  * @property {boolean} success - Response is successful or not
54
54
  */
@@ -62,11 +62,11 @@ const Joi = require("joi");
62
62
  /**
63
63
  * @typedef ProductCODData
64
64
  * @property {Object} [items] - Item id with its cod availability.
65
- * @property {CODChargesLimitsResponse} [cod_charges]
65
+ * @property {CODChargesLimitsDetails} [cod_charges]
66
66
  */
67
67
 
68
68
  /**
69
- * @typedef CODChargesLimitsResponse
69
+ * @typedef CODChargesLimitsDetails
70
70
  * @property {number} [max_cart_value] - Max allowed cart value for cod order.
71
71
  * @property {number} [min_cart_value] - Min allowed cart value for cod order.
72
72
  * @property {number} [cod_charge] - Cod charges to be applied on order.
@@ -221,7 +221,7 @@ const Joi = require("joi");
221
221
  */
222
222
 
223
223
  /**
224
- * @typedef PaymentModeRouteResponse
224
+ * @typedef PaymentModeRouteDetails
225
225
  * @property {PaymentOptionAndFlow} payment_options
226
226
  * @property {boolean} success - Response is successful or not
227
227
  * @property {Object} [payment_breakup] - Payment Breakup for advance payment
@@ -229,7 +229,7 @@ const Joi = require("joi");
229
229
  */
230
230
 
231
231
  /**
232
- * @typedef PaymentOptionsResponse
232
+ * @typedef PaymentOptionsDetails
233
233
  * @property {PaymentOptions} payment_options
234
234
  * @property {boolean} success - Response is successful or not
235
235
  * @property {Object} [payment_breakup] - Payment Breakup for advance payment
@@ -276,7 +276,7 @@ const Joi = require("joi");
276
276
  */
277
277
 
278
278
  /**
279
- * @typedef PayoutsResponse
279
+ * @typedef PayoutsDetails
280
280
  * @property {boolean} success - Response is successful or not
281
281
  * @property {Payout[]} items - Contains list of PayoutSchema
282
282
  */
@@ -296,7 +296,7 @@ const Joi = require("joi");
296
296
  */
297
297
 
298
298
  /**
299
- * @typedef PayoutRequest
299
+ * @typedef PayoutCreation
300
300
  * @property {string} aggregator - Aggregator Name
301
301
  * @property {Object} users - Payout users object
302
302
  * @property {string} unique_external_id - Unique Id of Payout
@@ -306,7 +306,7 @@ const Joi = require("joi");
306
306
  */
307
307
 
308
308
  /**
309
- * @typedef PayoutResponse
309
+ * @typedef PayoutDetails
310
310
  * @property {string} payment_status - Status of payment
311
311
  * @property {Object} users - Users details object
312
312
  * @property {string} aggregator - Aggregator Name
@@ -320,55 +320,55 @@ const Joi = require("joi");
320
320
  */
321
321
 
322
322
  /**
323
- * @typedef UpdatePayoutResponse
323
+ * @typedef UpdatePayoutDetails
324
324
  * @property {boolean} is_default - Enable or Disable Default Payout
325
325
  * @property {boolean} is_active - Enable or DIsable Flag Payout
326
326
  * @property {boolean} success - Response is successful or not
327
327
  */
328
328
 
329
329
  /**
330
- * @typedef UpdatePayoutRequest
330
+ * @typedef UpdatePayoutCreation
331
331
  * @property {boolean} is_default - Enable or Disable Default Payout
332
332
  * @property {boolean} is_active - Enable or Disable Flag Payout
333
333
  * @property {string} unique_external_id - Unique Id of Payout
334
334
  */
335
335
 
336
336
  /**
337
- * @typedef DeletePayoutResponse
337
+ * @typedef DeletePayoutDetails
338
338
  * @property {boolean} success - Response is successful or not
339
339
  */
340
340
 
341
341
  /**
342
- * @typedef SubscriptionPaymentMethodResponse
342
+ * @typedef SubscriptionPaymentMethodDetails
343
343
  * @property {Object[]} data - Subscription Payment Method Object
344
344
  * @property {boolean} success - Response is successful or not
345
345
  */
346
346
 
347
347
  /**
348
- * @typedef DeleteSubscriptionPaymentMethodResponse
348
+ * @typedef DeleteSubscriptionPaymentMethodDetails
349
349
  * @property {boolean} success - Success or failure.
350
350
  */
351
351
 
352
352
  /**
353
- * @typedef SubscriptionConfigResponse
353
+ * @typedef SubscriptionConfigDetails
354
354
  * @property {string} aggregator - Aggregator Name
355
355
  * @property {Object} config - Aggregator Config
356
356
  * @property {boolean} success - Response is successful or not
357
357
  */
358
358
 
359
359
  /**
360
- * @typedef SaveSubscriptionSetupIntentRequest
360
+ * @typedef SaveSubscriptionSetupIntentCreation
361
361
  * @property {string} unique_external_id - Unique id i.e company:id
362
362
  */
363
363
 
364
364
  /**
365
- * @typedef SaveSubscriptionSetupIntentResponse
365
+ * @typedef SaveSubscriptionSetupIntentDetails
366
366
  * @property {Object} data - Subscription Payment Method Object
367
367
  * @property {boolean} success - Response is successful or not
368
368
  */
369
369
 
370
370
  /**
371
- * @typedef RefundAccountResponse
371
+ * @typedef RefundAccountDetails
372
372
  * @property {boolean} [is_verified_flag] - Account is verified or not
373
373
  * @property {string} [message] - Response message
374
374
  * @property {Object} data - Refund account data.
@@ -392,13 +392,13 @@ const Joi = require("joi");
392
392
  */
393
393
 
394
394
  /**
395
- * @typedef AddBeneficiaryDetailsOTPRequest
395
+ * @typedef AddBeneficiaryDetailsOTPCreation
396
396
  * @property {string} order_id - Order_id for which account will be added
397
397
  * @property {BankDetailsForOTP} details
398
398
  */
399
399
 
400
400
  /**
401
- * @typedef IfscCodeResponse
401
+ * @typedef IfscCodeDetails
402
402
  * @property {string} branch_name - Branch Name Of Account
403
403
  * @property {boolean} [success] - Response is successful or not
404
404
  * @property {string} bank_name - Bank Name Of Account
@@ -428,7 +428,7 @@ const Joi = require("joi");
428
428
  */
429
429
 
430
430
  /**
431
- * @typedef OrderBeneficiaryResponse
431
+ * @typedef OrderBeneficiaryFetchResults
432
432
  * @property {OrderBeneficiaryDetails[]} [beneficiaries] - All Beneficiaries Of An Order
433
433
  * @property {boolean} [show_beneficiary_details] - Show beneficiary details or not.
434
434
  */
@@ -457,13 +457,13 @@ const Joi = require("joi");
457
457
  */
458
458
 
459
459
  /**
460
- * @typedef PaymentConfirmationRequest
460
+ * @typedef PaymentConfirmationCreation
461
461
  * @property {string} order_id - Unique order id
462
462
  * @property {MultiTenderPaymentMethod[]} payment_methods
463
463
  */
464
464
 
465
465
  /**
466
- * @typedef PaymentConfirmationResponse
466
+ * @typedef PaymentConfirmationDetails
467
467
  * @property {string} order_id - Unique order id
468
468
  * @property {string} message - Message
469
469
  * @property {boolean} success - Payment confirmation updated or not.
@@ -495,21 +495,21 @@ const Joi = require("joi");
495
495
  */
496
496
 
497
497
  /**
498
- * @typedef GetUserBULimitResponse
498
+ * @typedef GetUserBULimitResponseSchema
499
499
  * @property {string} business_unit - COD limit business unit
500
500
  * @property {string} display_name - Display name for cod limit
501
501
  * @property {CODPaymentLimitConfig} config
502
502
  */
503
503
 
504
504
  /**
505
- * @typedef GetUserCODLimitResponse
506
- * @property {GetUserBULimitResponse[]} items
505
+ * @typedef GetUserCODLimitDetails
506
+ * @property {GetUserBULimitResponseSchema[]} items
507
507
  * @property {boolean} success - Response is successful or not
508
508
  * @property {string} [message] - Message for cod limit
509
509
  */
510
510
 
511
511
  /**
512
- * @typedef SetCODForUserRequest
512
+ * @typedef SetCODForUserCreation
513
513
  * @property {string} [business_unit] - Business unit
514
514
  * @property {string} mobileno - Mobile No. of User
515
515
  * @property {boolean} is_active - Either true or false
@@ -517,7 +517,7 @@ const Joi = require("joi");
517
517
  */
518
518
 
519
519
  /**
520
- * @typedef SetCODOptionResponse
520
+ * @typedef SetCODOptionDetails
521
521
  * @property {string} message - Message
522
522
  * @property {boolean} success - Response is successful or not
523
523
  */
@@ -530,7 +530,7 @@ const Joi = require("joi");
530
530
  */
531
531
 
532
532
  /**
533
- * @typedef EdcAggregatorAndModelListResponse
533
+ * @typedef EdcAggregatorAndModelListDetails
534
534
  * @property {EdcModelData[]} data - List of aggregators and their edc models
535
535
  * @property {boolean} success - Response is successful or not
536
536
  */
@@ -542,13 +542,13 @@ const Joi = require("joi");
542
542
  */
543
543
 
544
544
  /**
545
- * @typedef EdcDeviceStatsResponse
545
+ * @typedef EdcDeviceStatsDetails
546
546
  * @property {StatisticsData} statistics
547
547
  * @property {boolean} success - Response is successful or not
548
548
  */
549
549
 
550
550
  /**
551
- * @typedef EdcAddRequest
551
+ * @typedef EdcAddCreation
552
552
  * @property {string} edc_model - Model of the edc machine
553
553
  * @property {number} store_id - Store at which devices is to used
554
554
  * @property {number} aggregator_id - Aggregator which will accept payment
@@ -575,19 +575,19 @@ const Joi = require("joi");
575
575
  */
576
576
 
577
577
  /**
578
- * @typedef EdcDeviceAddResponse
578
+ * @typedef EdcDeviceAddDetails
579
579
  * @property {EdcDevice} data
580
580
  * @property {boolean} success - Response is successful or not
581
581
  */
582
582
 
583
583
  /**
584
- * @typedef EdcDeviceDetailsResponse
584
+ * @typedef EdcDeviceDetails
585
585
  * @property {EdcDevice} data
586
586
  * @property {boolean} success - Response is successful or not
587
587
  */
588
588
 
589
589
  /**
590
- * @typedef EdcUpdateRequest
590
+ * @typedef EdcUpdate
591
591
  * @property {string} [edc_model] - Model of the edc machine
592
592
  * @property {number} [store_id] - Store at which devices is to used
593
593
  * @property {number} [aggregator_id] - Aggregator which will accept payment
@@ -598,7 +598,7 @@ const Joi = require("joi");
598
598
  */
599
599
 
600
600
  /**
601
- * @typedef EdcDeviceUpdateResponse
601
+ * @typedef EdcDeviceUpdateDetails
602
602
  * @property {boolean} success - Response is successful or not
603
603
  */
604
604
 
@@ -614,7 +614,7 @@ const Joi = require("joi");
614
614
  */
615
615
 
616
616
  /**
617
- * @typedef EdcDeviceListResponse
617
+ * @typedef EdcDeviceListDetails
618
618
  * @property {EdcDevice[]} items - List of all edc mapped to the application
619
619
  * options with their Details.
620
620
  * @property {Page} page
@@ -622,7 +622,7 @@ const Joi = require("joi");
622
622
  */
623
623
 
624
624
  /**
625
- * @typedef PaymentInitializationRequest
625
+ * @typedef PaymentInitializationCreation
626
626
  * @property {string} [razorpay_payment_id] - Payment gateway payment id
627
627
  * @property {string} [device_id] - EDC machine Unique Identifier
628
628
  * @property {string} email - Customer valid email
@@ -639,7 +639,7 @@ const Joi = require("joi");
639
639
  */
640
640
 
641
641
  /**
642
- * @typedef PaymentInitializationResponse
642
+ * @typedef PaymentInitializationDetails
643
643
  * @property {string} [razorpay_payment_id] - Payment id.
644
644
  * @property {string} [device_id] - EDC machine Unique Identifier
645
645
  * @property {string} [upi_poll_url] - UPI poll url.
@@ -660,7 +660,7 @@ const Joi = require("joi");
660
660
  */
661
661
 
662
662
  /**
663
- * @typedef PaymentStatusUpdateRequest
663
+ * @typedef PaymentStatusUpdateCreation
664
664
  * @property {string} [device_id] - EDC machine Unique Identifier
665
665
  * @property {string} email - Customer valid email
666
666
  * @property {string} customer_id - Payment gateway customer id.
@@ -677,7 +677,7 @@ const Joi = require("joi");
677
677
  */
678
678
 
679
679
  /**
680
- * @typedef PaymentStatusUpdateResponse
680
+ * @typedef PaymentStatusUpdateDetails
681
681
  * @property {string} [redirect_url] - Redirect url
682
682
  * @property {boolean} retry - Response is successful or not.
683
683
  * @property {boolean} [success] - Response is successful or not
@@ -686,7 +686,7 @@ const Joi = require("joi");
686
686
  */
687
687
 
688
688
  /**
689
- * @typedef ResendOrCancelPaymentRequest
689
+ * @typedef ResendOrCancelPaymentCreation
690
690
  * @property {string} order_id - Unique order id
691
691
  * @property {string} [device_id] - EDC machine Unique Identifier
692
692
  * @property {string} request_type - Either resend or cancel
@@ -701,18 +701,18 @@ const Joi = require("joi");
701
701
  */
702
702
 
703
703
  /**
704
- * @typedef ResendOrCancelPaymentResponse
704
+ * @typedef ResendOrCancelPaymentDetails
705
705
  * @property {LinkStatus} data
706
706
  * @property {boolean} success - Response is successful or not.
707
707
  */
708
708
 
709
709
  /**
710
- * @typedef PaymentStatusBulkHandlerRequest
710
+ * @typedef PaymentStatusBulkHandlerCreation
711
711
  * @property {string[]} merchant_order_id - List of order ids
712
712
  */
713
713
 
714
714
  /**
715
- * @typedef PaymentObjectListSerializer
715
+ * @typedef PaymentObjectList
716
716
  * @property {Object} user_object
717
717
  * @property {string} modified_on
718
718
  * @property {string} collected_by
@@ -736,11 +736,11 @@ const Joi = require("joi");
736
736
  /**
737
737
  * @typedef PaymentStatusObject
738
738
  * @property {string} merchant_order_id
739
- * @property {PaymentObjectListSerializer[]} [payment_object_list]
739
+ * @property {PaymentObjectList[]} [payment_object_list]
740
740
  */
741
741
 
742
742
  /**
743
- * @typedef PaymentStatusBulkHandlerResponse
743
+ * @typedef PaymentStatusBulkHandlerDetails
744
744
  * @property {number} [count]
745
745
  * @property {PaymentStatusObject[]} [data]
746
746
  * @property {string} success
@@ -749,7 +749,7 @@ const Joi = require("joi");
749
749
  */
750
750
 
751
751
  /**
752
- * @typedef GetOauthUrlResponse
752
+ * @typedef GetOauthUrlDetails
753
753
  * @property {string} url - The url to call for authenticating
754
754
  * @property {boolean} success - Response is successful or not
755
755
  */
@@ -784,13 +784,13 @@ const Joi = require("joi");
784
784
  */
785
785
 
786
786
  /**
787
- * @typedef RepaymentResponse
787
+ * @typedef RepaymentDetails
788
788
  * @property {Object} data
789
789
  * @property {boolean} success - Success/Failure of the transaction
790
790
  */
791
791
 
792
792
  /**
793
- * @typedef MerchantOnBoardingRequest
793
+ * @typedef MerchantOnBoardingCreation
794
794
  * @property {string} credit_line_id - Merchant ID at Ajiodhan's end
795
795
  * @property {string} aggregator - Payment aggregator name
796
796
  * @property {string} app_id - Application id
@@ -799,13 +799,13 @@ const Joi = require("joi");
799
799
  */
800
800
 
801
801
  /**
802
- * @typedef MerchantOnBoardingResponse
802
+ * @typedef MerchantOnBoardingDetails
803
803
  * @property {Object} data
804
804
  * @property {boolean} success - Success/Failure of the transaction
805
805
  */
806
806
 
807
807
  /**
808
- * @typedef ValidateCustomerRequest
808
+ * @typedef ValidateCustomerCreation
809
809
  * @property {string} phone_number - User mobile number without country code.
810
810
  * @property {string} aggregator - Payment gateway name in camel case i.e Simpl, Rupifi
811
811
  * @property {string} [payload] - Hashed payload string.
@@ -817,14 +817,14 @@ const Joi = require("joi");
817
817
  */
818
818
 
819
819
  /**
820
- * @typedef ValidateCustomerResponse
820
+ * @typedef ValidateCustomerDetails
821
821
  * @property {string} message - Error or success message.
822
822
  * @property {Object} [data] - Payment gateway response data
823
823
  * @property {boolean} success - Response is successful or not
824
824
  */
825
825
 
826
826
  /**
827
- * @typedef GetPaymentLinkResponse
827
+ * @typedef GetPaymentLinkDetails
828
828
  * @property {string} message - Message
829
829
  * @property {number} status_code - HTTP status code
830
830
  * @property {number} [amount] - Total value of order
@@ -850,7 +850,7 @@ const Joi = require("joi");
850
850
  */
851
851
 
852
852
  /**
853
- * @typedef ErrorResponse
853
+ * @typedef ErrorDetails
854
854
  * @property {number} status_code - HTTP status code
855
855
  * @property {ErrorDescription} [error]
856
856
  * @property {string} message - Message
@@ -867,7 +867,7 @@ const Joi = require("joi");
867
867
  */
868
868
 
869
869
  /**
870
- * @typedef CreatePaymentLinkRequest
870
+ * @typedef CreatePaymentLinkCreation
871
871
  * @property {string} email - Email to which the payment link is to be sent
872
872
  * @property {number} amount - Total value of order
873
873
  * @property {string} mobile_number - Mobile number to which the payment link is
@@ -876,10 +876,14 @@ const Joi = require("joi");
876
876
  * @property {string} [description] - Merchant order id
877
877
  * @property {CreatePaymentLinkMeta} meta
878
878
  * @property {string} external_order_id - Merchant order id
879
+ * @property {string} [success_redirection_url] - URL to which the user will be
880
+ * redirected after a successful payment.
881
+ * @property {string} [failure_redirection_url] - URL to which the user will be
882
+ * redirected if the payment fails.
879
883
  */
880
884
 
881
885
  /**
882
- * @typedef CreatePaymentLinkResponse
886
+ * @typedef CreatePaymentLinkDetails
883
887
  * @property {string} message - Message
884
888
  * @property {number} status_code - HTTP status code
885
889
  * @property {string} [payment_link_url] - Url of payment link
@@ -889,7 +893,7 @@ const Joi = require("joi");
889
893
  */
890
894
 
891
895
  /**
892
- * @typedef PollingPaymentLinkResponse
896
+ * @typedef PollingPaymentLinkDetails
893
897
  * @property {string} [message] - Message
894
898
  * @property {number} [http_status] - HTTP status code
895
899
  * @property {number} [status_code] - HTTP status code
@@ -903,12 +907,12 @@ const Joi = require("joi");
903
907
  */
904
908
 
905
909
  /**
906
- * @typedef CancelOrResendPaymentLinkRequest
910
+ * @typedef CancelOrResendPaymentLinkCreation
907
911
  * @property {string} payment_link_id - Unique id of payment link
908
912
  */
909
913
 
910
914
  /**
911
- * @typedef ResendPaymentLinkResponse
915
+ * @typedef ResendPaymentLinkDetails
912
916
  * @property {number} status_code - HTTP status code
913
917
  * @property {string} message - Message
914
918
  * @property {number} [polling_timeout] - Polling request timeout
@@ -916,7 +920,7 @@ const Joi = require("joi");
916
920
  */
917
921
 
918
922
  /**
919
- * @typedef CancelPaymentLinkResponse
923
+ * @typedef CancelPaymentLinkDetails
920
924
  * @property {number} status_code - HTTP status code
921
925
  * @property {string} message - Message
922
926
  * @property {boolean} success - Successful or failure
@@ -943,20 +947,20 @@ const Joi = require("joi");
943
947
  */
944
948
 
945
949
  /**
946
- * @typedef GetPaymentCodeResponse
950
+ * @typedef GetPaymentCodeDetails
947
951
  * @property {GetPaymentCode} data
948
952
  * @property {boolean} success - Response is successful or not.
949
953
  */
950
954
 
951
955
  /**
952
- * @typedef PlatformPaymentModeResponse
956
+ * @typedef PlatformPaymentModeDetails
953
957
  * @property {string} [message] - Message
954
958
  * @property {Object[]} [items] - List of all aggregator and payment mode details.
955
959
  * @property {boolean} success - Response is successful or not.
956
960
  */
957
961
 
958
962
  /**
959
- * @typedef MerchnatPaymentModeRequest
963
+ * @typedef MerchnatPaymentModeCreation
960
964
  * @property {Object} [offline] - Details to be updated for online payment configuration.
961
965
  * @property {Object} [online] - Details to be updated for offline payment configuration.
962
966
  */
@@ -1037,7 +1041,7 @@ const Joi = require("joi");
1037
1041
  */
1038
1042
 
1039
1043
  /**
1040
- * @typedef PaymentSessionRequestSerializer
1044
+ * @typedef PaymentSessionCreation
1041
1045
  * @property {Object} [meta] - Extra meta data specific to extensions
1042
1046
  * @property {string} gid - Global identifier of the entity (e.g. order, cart
1043
1047
  * etc.) against which payment_session was initiated. This is generated by
@@ -1053,7 +1057,7 @@ const Joi = require("joi");
1053
1057
  */
1054
1058
 
1055
1059
  /**
1056
- * @typedef PaymentSessionResponseSerializer
1060
+ * @typedef PaymentSessionPutDetails
1057
1061
  * @property {string} gid - Global identifier of the entity (e.g. order, cart
1058
1062
  * etc.) against which payment_session was initiated. This is generated by
1059
1063
  * Fynd payments platform and is unique.
@@ -1084,7 +1088,7 @@ const Joi = require("joi");
1084
1088
  */
1085
1089
 
1086
1090
  /**
1087
- * @typedef RefundSessionRequestSerializer
1091
+ * @typedef RefundSessionCreation
1088
1092
  * @property {Object} [meta] - Meta
1089
1093
  * @property {string} gid - Global identifier of the entity (e.g. order, cart
1090
1094
  * etc.) against which payment_session was initiated. This is generated by
@@ -1100,7 +1104,7 @@ const Joi = require("joi");
1100
1104
  */
1101
1105
 
1102
1106
  /**
1103
- * @typedef RefundSessionResponseSerializer
1107
+ * @typedef RefundSessionDetails
1104
1108
  * @property {string} gid - Global identifier of the entity (e.g. order, cart
1105
1109
  * etc.) against which payment_session was initiated. This is generated by
1106
1110
  * Fynd payments platform and is unique.
@@ -1111,7 +1115,7 @@ const Joi = require("joi");
1111
1115
  */
1112
1116
 
1113
1117
  /**
1114
- * @typedef PaymentDetailsSerializer
1118
+ * @typedef PaymentDetails
1115
1119
  * @property {Object[]} payment_methods - List of payment methods
1116
1120
  * @property {string} gid - Global identifier of the entity (e.g. order, cart
1117
1121
  * etc.) against which payment_session was initiated. This is generated by
@@ -1147,7 +1151,7 @@ const Joi = require("joi");
1147
1151
  */
1148
1152
 
1149
1153
  /**
1150
- * @typedef CartDetailsSerializer
1154
+ * @typedef CartDetails
1151
1155
  * @property {Object} items - Items that are added in cart
1152
1156
  * @property {Object[]} articles - List of articles that are added in cart
1153
1157
  * @property {number} cart_value - Total cart value i.e. amount to be paid
@@ -1157,7 +1161,7 @@ const Joi = require("joi");
1157
1161
  */
1158
1162
 
1159
1163
  /**
1160
- * @typedef RefundDetailsSerializer
1164
+ * @typedef RefundDetails
1161
1165
  * @property {number} amount - Refunded amount
1162
1166
  * @property {string} currency - The currency of the payment.
1163
1167
  * @property {string} request_id - Refund request id, unique id generated by Fynd platform
@@ -1167,7 +1171,7 @@ const Joi = require("joi");
1167
1171
  */
1168
1172
 
1169
1173
  /**
1170
- * @typedef PaymentSessionSerializer
1174
+ * @typedef PaymentSessionFetchDetails
1171
1175
  * @property {Object} payment_details - Object of payment details
1172
1176
  * @property {string} [currency] - The currency of the payment.
1173
1177
  * @property {string} status - The status of the payment session.
@@ -1175,8 +1179,8 @@ const Joi = require("joi");
1175
1179
  * @property {string} gid - Global identifier of the entity (e.g. order, cart
1176
1180
  * etc.) against which payment_session was initiated. This is generated by
1177
1181
  * Fynd payments platform and is unique.
1178
- * @property {CartDetailsSerializer} [cart_details]
1179
- * @property {RefundDetailsSerializer[]} refund_details - Object of refund details
1182
+ * @property {CartDetails} [cart_details]
1183
+ * @property {RefundDetails[]} refund_details - Object of refund details
1180
1184
  */
1181
1185
 
1182
1186
  /**
@@ -1187,7 +1191,7 @@ const Joi = require("joi");
1187
1191
  */
1188
1192
 
1189
1193
  /**
1190
- * @typedef RefundPriorityResponseSerializer
1194
+ * @typedef RefundPriorityDetails
1191
1195
  * @property {string} configuration - Configuration for merchant or customer
1192
1196
  * @property {boolean} success - Success
1193
1197
  * @property {boolean} apportion - Apportion refund to multiple sources
@@ -1196,13 +1200,13 @@ const Joi = require("joi");
1196
1200
  */
1197
1201
 
1198
1202
  /**
1199
- * @typedef RefundPriorityRequestSerializer
1203
+ * @typedef RefundPriorityCreation
1200
1204
  * @property {boolean} apportion - Apportion refund to multiple sources
1201
1205
  * @property {RefundSourcesPriority[]} refund_sources_priority - Refund sources priority
1202
1206
  */
1203
1207
 
1204
1208
  /**
1205
- * @typedef MerchantPaymentModeRequest
1209
+ * @typedef MerchantPaymentModeCreation
1206
1210
  * @property {string} business_unit - Business unit
1207
1211
  * @property {Object[]} items - List of item details with respect to payment_mode
1208
1212
  * @property {Object} device - List of devices and its activation status
@@ -1221,7 +1225,7 @@ const Joi = require("joi");
1221
1225
  */
1222
1226
 
1223
1227
  /**
1224
- * @typedef PlatformPaymentModeCopyConfigRequest
1228
+ * @typedef PlatformPaymentModeCopyConfigCreation
1225
1229
  * @property {FromConfig} from_config
1226
1230
  * @property {ToConfig} to_config
1227
1231
  */
@@ -1243,7 +1247,7 @@ const Joi = require("joi");
1243
1247
  */
1244
1248
 
1245
1249
  /**
1246
- * @typedef PaymentOrderRequest
1250
+ * @typedef PaymentOrderCreation
1247
1251
  * @property {string} order_id - Order id
1248
1252
  * @property {PaymentOrderMethods[]} [payment_methods]
1249
1253
  * @property {string} [shipment_id] - Shipment_id
@@ -1264,7 +1268,7 @@ const Joi = require("joi");
1264
1268
  */
1265
1269
 
1266
1270
  /**
1267
- * @typedef PaymentOrderResponse
1271
+ * @typedef PaymentOrderDetails
1268
1272
  * @property {string} message - Message
1269
1273
  * @property {boolean} success - Successful or failure
1270
1274
  * @property {string} [payment_confirm_url] - Payment confirm url for aggregator
@@ -1282,7 +1286,7 @@ const Joi = require("joi");
1282
1286
  */
1283
1287
 
1284
1288
  /**
1285
- * @typedef AggregatorVersionResponse
1289
+ * @typedef AggregatorVersionDetails
1286
1290
  * @property {string} message - Message
1287
1291
  * @property {boolean} success - Successful or failure
1288
1292
  * @property {AggregatorVersionItemSchema} [items]
@@ -1296,7 +1300,7 @@ const Joi = require("joi");
1296
1300
  */
1297
1301
 
1298
1302
  /**
1299
- * @typedef AggregatorControlRequest
1303
+ * @typedef PatchAggregatorControl
1300
1304
  * @property {string} [business_unit] - Business unit
1301
1305
  * @property {Object[]} [items] - List of item details with respect to payment_mode
1302
1306
  * @property {string} [device] - Device name
@@ -1358,8 +1362,8 @@ const Joi = require("joi");
1358
1362
  */
1359
1363
 
1360
1364
  class PaymentPlatformModel {
1361
- /** @returns {PaymentGatewayConfigResponse} */
1362
- static PaymentGatewayConfigResponse() {
1365
+ /** @returns {PaymentGatewayConfigDetails} */
1366
+ static PaymentGatewayConfigDetails() {
1363
1367
  return Joi.object({
1364
1368
  aggregators: Joi.array().items(Joi.any()),
1365
1369
  app_id: Joi.string().allow("").required(),
@@ -1390,8 +1394,8 @@ class PaymentPlatformModel {
1390
1394
  });
1391
1395
  }
1392
1396
 
1393
- /** @returns {PaymentGatewayConfigRequest} */
1394
- static PaymentGatewayConfigRequest() {
1397
+ /** @returns {PaymentGatewayConfigCreation} */
1398
+ static PaymentGatewayConfigCreation() {
1395
1399
  return Joi.object({
1396
1400
  app_id: Joi.string().allow("").required(),
1397
1401
  is_active: Joi.boolean().allow(null),
@@ -1415,8 +1419,8 @@ class PaymentPlatformModel {
1415
1419
  });
1416
1420
  }
1417
1421
 
1418
- /** @returns {HttpErrorCodeAndResponse} */
1419
- static HttpErrorCodeAndResponse() {
1422
+ /** @returns {HttpErrorDetails} */
1423
+ static HttpErrorDetails() {
1420
1424
  return Joi.object({
1421
1425
  error: PaymentPlatformModel.ErrorCodeAndDescription().required(),
1422
1426
  success: Joi.boolean().required(),
@@ -1434,13 +1438,13 @@ class PaymentPlatformModel {
1434
1438
  /** @returns {ProductCODData} */
1435
1439
  static ProductCODData() {
1436
1440
  return Joi.object({
1437
- items: Joi.any().allow(null),
1438
- cod_charges: PaymentPlatformModel.CODChargesLimitsResponse(),
1441
+ items: Joi.object().pattern(/\S/, Joi.any()).allow(null, ""),
1442
+ cod_charges: PaymentPlatformModel.CODChargesLimitsDetails(),
1439
1443
  });
1440
1444
  }
1441
1445
 
1442
- /** @returns {CODChargesLimitsResponse} */
1443
- static CODChargesLimitsResponse() {
1446
+ /** @returns {CODChargesLimitsDetails} */
1447
+ static CODChargesLimitsDetails() {
1444
1448
  return Joi.object({
1445
1449
  max_cart_value: Joi.number().allow(null),
1446
1450
  min_cart_value: Joi.number().allow(null),
@@ -1540,8 +1544,8 @@ class PaymentPlatformModel {
1540
1544
  /** @returns {AggregatorRoute} */
1541
1545
  static AggregatorRoute() {
1542
1546
  return Joi.object({
1543
- data: Joi.any().allow(null),
1544
- payment_flow_data: Joi.any().allow(null),
1547
+ data: Joi.object().pattern(/\S/, Joi.any()).allow(null, ""),
1548
+ payment_flow_data: Joi.object().pattern(/\S/, Joi.any()).allow(null, ""),
1545
1549
  payment_flow: Joi.string().allow("").allow(null),
1546
1550
  api_link: Joi.string().allow("").allow(null),
1547
1551
  }).allow(null);
@@ -1629,24 +1633,24 @@ class PaymentPlatformModel {
1629
1633
  });
1630
1634
  }
1631
1635
 
1632
- /** @returns {PaymentModeRouteResponse} */
1633
- static PaymentModeRouteResponse() {
1636
+ /** @returns {PaymentModeRouteDetails} */
1637
+ static PaymentModeRouteDetails() {
1634
1638
  return Joi.object({
1635
1639
  payment_options: PaymentPlatformModel.PaymentOptionAndFlow().required(),
1636
1640
  success: Joi.boolean().required(),
1637
- payment_breakup: Joi.any(),
1641
+ payment_breakup: Joi.object().pattern(/\S/, Joi.any()),
1638
1642
  advance_payment: Joi.array()
1639
1643
  .items(PaymentPlatformModel.AdvancePaymentObject())
1640
1644
  .allow(null, ""),
1641
1645
  });
1642
1646
  }
1643
1647
 
1644
- /** @returns {PaymentOptionsResponse} */
1645
- static PaymentOptionsResponse() {
1648
+ /** @returns {PaymentOptionsDetails} */
1649
+ static PaymentOptionsDetails() {
1646
1650
  return Joi.object({
1647
1651
  payment_options: PaymentPlatformModel.PaymentOptions().required(),
1648
1652
  success: Joi.boolean().required(),
1649
- payment_breakup: Joi.any(),
1653
+ payment_breakup: Joi.object().pattern(/\S/, Joi.any()),
1650
1654
  });
1651
1655
  }
1652
1656
 
@@ -1700,8 +1704,8 @@ class PaymentPlatformModel {
1700
1704
  });
1701
1705
  }
1702
1706
 
1703
- /** @returns {PayoutsResponse} */
1704
- static PayoutsResponse() {
1707
+ /** @returns {PayoutsDetails} */
1708
+ static PayoutsDetails() {
1705
1709
  return Joi.object({
1706
1710
  success: Joi.boolean().required(),
1707
1711
  items: Joi.array().items(PaymentPlatformModel.Payout()).required(),
@@ -1724,11 +1728,11 @@ class PaymentPlatformModel {
1724
1728
  });
1725
1729
  }
1726
1730
 
1727
- /** @returns {PayoutRequest} */
1728
- static PayoutRequest() {
1731
+ /** @returns {PayoutCreation} */
1732
+ static PayoutCreation() {
1729
1733
  return Joi.object({
1730
1734
  aggregator: Joi.string().allow("").required(),
1731
- users: Joi.any().required(),
1735
+ users: Joi.object().pattern(/\S/, Joi.any()).required(),
1732
1736
  unique_external_id: Joi.string().allow("").required(),
1733
1737
  is_active: Joi.boolean().required(),
1734
1738
  bank_details: PaymentPlatformModel.PayoutBankDetails().required(),
@@ -1736,24 +1740,24 @@ class PaymentPlatformModel {
1736
1740
  });
1737
1741
  }
1738
1742
 
1739
- /** @returns {PayoutResponse} */
1740
- static PayoutResponse() {
1743
+ /** @returns {PayoutDetails} */
1744
+ static PayoutDetails() {
1741
1745
  return Joi.object({
1742
1746
  payment_status: Joi.string().allow("").required(),
1743
- users: Joi.any().required(),
1747
+ users: Joi.object().pattern(/\S/, Joi.any()).required(),
1744
1748
  aggregator: Joi.string().allow("").required(),
1745
1749
  unique_transfer_no: Joi.string().allow("").required(),
1746
1750
  is_active: Joi.boolean().required(),
1747
- bank_details: Joi.any().required(),
1751
+ bank_details: Joi.object().pattern(/\S/, Joi.any()).required(),
1748
1752
  success: Joi.boolean().required(),
1749
1753
  transfer_type: Joi.string().allow("").required(),
1750
1754
  created: Joi.boolean().required(),
1751
- payouts: Joi.any().required(),
1755
+ payouts: Joi.object().pattern(/\S/, Joi.any()).required(),
1752
1756
  });
1753
1757
  }
1754
1758
 
1755
- /** @returns {UpdatePayoutResponse} */
1756
- static UpdatePayoutResponse() {
1759
+ /** @returns {UpdatePayoutDetails} */
1760
+ static UpdatePayoutDetails() {
1757
1761
  return Joi.object({
1758
1762
  is_default: Joi.boolean().required(),
1759
1763
  is_active: Joi.boolean().required(),
@@ -1761,8 +1765,8 @@ class PaymentPlatformModel {
1761
1765
  });
1762
1766
  }
1763
1767
 
1764
- /** @returns {UpdatePayoutRequest} */
1765
- static UpdatePayoutRequest() {
1768
+ /** @returns {UpdatePayoutCreation} */
1769
+ static UpdatePayoutCreation() {
1766
1770
  return Joi.object({
1767
1771
  is_default: Joi.boolean().required(),
1768
1772
  is_active: Joi.boolean().required(),
@@ -1770,58 +1774,58 @@ class PaymentPlatformModel {
1770
1774
  });
1771
1775
  }
1772
1776
 
1773
- /** @returns {DeletePayoutResponse} */
1774
- static DeletePayoutResponse() {
1777
+ /** @returns {DeletePayoutDetails} */
1778
+ static DeletePayoutDetails() {
1775
1779
  return Joi.object({
1776
1780
  success: Joi.boolean().required(),
1777
1781
  });
1778
1782
  }
1779
1783
 
1780
- /** @returns {SubscriptionPaymentMethodResponse} */
1781
- static SubscriptionPaymentMethodResponse() {
1784
+ /** @returns {SubscriptionPaymentMethodDetails} */
1785
+ static SubscriptionPaymentMethodDetails() {
1782
1786
  return Joi.object({
1783
1787
  data: Joi.array().items(Joi.any()).required(),
1784
1788
  success: Joi.boolean().required(),
1785
1789
  });
1786
1790
  }
1787
1791
 
1788
- /** @returns {DeleteSubscriptionPaymentMethodResponse} */
1789
- static DeleteSubscriptionPaymentMethodResponse() {
1792
+ /** @returns {DeleteSubscriptionPaymentMethodDetails} */
1793
+ static DeleteSubscriptionPaymentMethodDetails() {
1790
1794
  return Joi.object({
1791
1795
  success: Joi.boolean().required(),
1792
1796
  });
1793
1797
  }
1794
1798
 
1795
- /** @returns {SubscriptionConfigResponse} */
1796
- static SubscriptionConfigResponse() {
1799
+ /** @returns {SubscriptionConfigDetails} */
1800
+ static SubscriptionConfigDetails() {
1797
1801
  return Joi.object({
1798
1802
  aggregator: Joi.string().allow("").required(),
1799
- config: Joi.any().required(),
1803
+ config: Joi.object().pattern(/\S/, Joi.any()).required(),
1800
1804
  success: Joi.boolean().required(),
1801
1805
  });
1802
1806
  }
1803
1807
 
1804
- /** @returns {SaveSubscriptionSetupIntentRequest} */
1805
- static SaveSubscriptionSetupIntentRequest() {
1808
+ /** @returns {SaveSubscriptionSetupIntentCreation} */
1809
+ static SaveSubscriptionSetupIntentCreation() {
1806
1810
  return Joi.object({
1807
1811
  unique_external_id: Joi.string().allow("").required(),
1808
1812
  });
1809
1813
  }
1810
1814
 
1811
- /** @returns {SaveSubscriptionSetupIntentResponse} */
1812
- static SaveSubscriptionSetupIntentResponse() {
1815
+ /** @returns {SaveSubscriptionSetupIntentDetails} */
1816
+ static SaveSubscriptionSetupIntentDetails() {
1813
1817
  return Joi.object({
1814
- data: Joi.any().required(),
1818
+ data: Joi.object().pattern(/\S/, Joi.any()).required(),
1815
1819
  success: Joi.boolean().required(),
1816
1820
  });
1817
1821
  }
1818
1822
 
1819
- /** @returns {RefundAccountResponse} */
1820
- static RefundAccountResponse() {
1823
+ /** @returns {RefundAccountDetails} */
1824
+ static RefundAccountDetails() {
1821
1825
  return Joi.object({
1822
1826
  is_verified_flag: Joi.boolean(),
1823
1827
  message: Joi.string().allow(""),
1824
- data: Joi.any().required(),
1828
+ data: Joi.object().pattern(/\S/, Joi.any()).required(),
1825
1829
  success: Joi.boolean().required(),
1826
1830
  });
1827
1831
  }
@@ -1846,16 +1850,16 @@ class PaymentPlatformModel {
1846
1850
  });
1847
1851
  }
1848
1852
 
1849
- /** @returns {AddBeneficiaryDetailsOTPRequest} */
1850
- static AddBeneficiaryDetailsOTPRequest() {
1853
+ /** @returns {AddBeneficiaryDetailsOTPCreation} */
1854
+ static AddBeneficiaryDetailsOTPCreation() {
1851
1855
  return Joi.object({
1852
1856
  order_id: Joi.string().allow("").required(),
1853
1857
  details: PaymentPlatformModel.BankDetailsForOTP().required(),
1854
1858
  });
1855
1859
  }
1856
1860
 
1857
- /** @returns {IfscCodeResponse} */
1858
- static IfscCodeResponse() {
1861
+ /** @returns {IfscCodeDetails} */
1862
+ static IfscCodeDetails() {
1859
1863
  return Joi.object({
1860
1864
  branch_name: Joi.string().allow("").required(),
1861
1865
  success: Joi.boolean(),
@@ -1888,8 +1892,8 @@ class PaymentPlatformModel {
1888
1892
  });
1889
1893
  }
1890
1894
 
1891
- /** @returns {OrderBeneficiaryResponse} */
1892
- static OrderBeneficiaryResponse() {
1895
+ /** @returns {OrderBeneficiaryFetchResults} */
1896
+ static OrderBeneficiaryFetchResults() {
1893
1897
  return Joi.object({
1894
1898
  beneficiaries: Joi.array()
1895
1899
  .items(PaymentPlatformModel.OrderBeneficiaryDetails())
@@ -1901,7 +1905,7 @@ class PaymentPlatformModel {
1901
1905
  /** @returns {MultiTenderPaymentMeta} */
1902
1906
  static MultiTenderPaymentMeta() {
1903
1907
  return Joi.object({
1904
- extra_meta: Joi.any().allow(null),
1908
+ extra_meta: Joi.object().pattern(/\S/, Joi.any()).allow(null, ""),
1905
1909
  order_id: Joi.string().allow(""),
1906
1910
  payment_id: Joi.string().allow(""),
1907
1911
  current_status: Joi.string().allow(""),
@@ -1920,8 +1924,8 @@ class PaymentPlatformModel {
1920
1924
  });
1921
1925
  }
1922
1926
 
1923
- /** @returns {PaymentConfirmationRequest} */
1924
- static PaymentConfirmationRequest() {
1927
+ /** @returns {PaymentConfirmationCreation} */
1928
+ static PaymentConfirmationCreation() {
1925
1929
  return Joi.object({
1926
1930
  order_id: Joi.string().allow("").required(),
1927
1931
  payment_methods: Joi.array()
@@ -1930,8 +1934,8 @@ class PaymentPlatformModel {
1930
1934
  });
1931
1935
  }
1932
1936
 
1933
- /** @returns {PaymentConfirmationResponse} */
1934
- static PaymentConfirmationResponse() {
1937
+ /** @returns {PaymentConfirmationDetails} */
1938
+ static PaymentConfirmationDetails() {
1935
1939
  return Joi.object({
1936
1940
  order_id: Joi.string().allow("").required(),
1937
1941
  message: Joi.string().allow("").required(),
@@ -1970,8 +1974,8 @@ class PaymentPlatformModel {
1970
1974
  });
1971
1975
  }
1972
1976
 
1973
- /** @returns {GetUserBULimitResponse} */
1974
- static GetUserBULimitResponse() {
1977
+ /** @returns {GetUserBULimitResponseSchema} */
1978
+ static GetUserBULimitResponseSchema() {
1975
1979
  return Joi.object({
1976
1980
  business_unit: Joi.string().allow("").required(),
1977
1981
  display_name: Joi.string().allow("").required(),
@@ -1979,19 +1983,19 @@ class PaymentPlatformModel {
1979
1983
  });
1980
1984
  }
1981
1985
 
1982
- /** @returns {GetUserCODLimitResponse} */
1983
- static GetUserCODLimitResponse() {
1986
+ /** @returns {GetUserCODLimitDetails} */
1987
+ static GetUserCODLimitDetails() {
1984
1988
  return Joi.object({
1985
1989
  items: Joi.array()
1986
- .items(PaymentPlatformModel.GetUserBULimitResponse())
1990
+ .items(PaymentPlatformModel.GetUserBULimitResponseSchema())
1987
1991
  .required(),
1988
1992
  success: Joi.boolean().required(),
1989
1993
  message: Joi.string().allow(""),
1990
1994
  });
1991
1995
  }
1992
1996
 
1993
- /** @returns {SetCODForUserRequest} */
1994
- static SetCODForUserRequest() {
1997
+ /** @returns {SetCODForUserCreation} */
1998
+ static SetCODForUserCreation() {
1995
1999
  return Joi.object({
1996
2000
  business_unit: Joi.string().allow(""),
1997
2001
  mobileno: Joi.string().allow("").required(),
@@ -2000,8 +2004,8 @@ class PaymentPlatformModel {
2000
2004
  });
2001
2005
  }
2002
2006
 
2003
- /** @returns {SetCODOptionResponse} */
2004
- static SetCODOptionResponse() {
2007
+ /** @returns {SetCODOptionDetails} */
2008
+ static SetCODOptionDetails() {
2005
2009
  return Joi.object({
2006
2010
  message: Joi.string().allow("").required(),
2007
2011
  success: Joi.boolean().required(),
@@ -2017,8 +2021,8 @@ class PaymentPlatformModel {
2017
2021
  });
2018
2022
  }
2019
2023
 
2020
- /** @returns {EdcAggregatorAndModelListResponse} */
2021
- static EdcAggregatorAndModelListResponse() {
2024
+ /** @returns {EdcAggregatorAndModelListDetails} */
2025
+ static EdcAggregatorAndModelListDetails() {
2022
2026
  return Joi.object({
2023
2027
  data: Joi.array().items(PaymentPlatformModel.EdcModelData()).required(),
2024
2028
  success: Joi.boolean().required(),
@@ -2033,16 +2037,16 @@ class PaymentPlatformModel {
2033
2037
  });
2034
2038
  }
2035
2039
 
2036
- /** @returns {EdcDeviceStatsResponse} */
2037
- static EdcDeviceStatsResponse() {
2040
+ /** @returns {EdcDeviceStatsDetails} */
2041
+ static EdcDeviceStatsDetails() {
2038
2042
  return Joi.object({
2039
2043
  statistics: PaymentPlatformModel.StatisticsData().required(),
2040
2044
  success: Joi.boolean().required(),
2041
2045
  });
2042
2046
  }
2043
2047
 
2044
- /** @returns {EdcAddRequest} */
2045
- static EdcAddRequest() {
2048
+ /** @returns {EdcAddCreation} */
2049
+ static EdcAddCreation() {
2046
2050
  return Joi.object({
2047
2051
  edc_model: Joi.string().allow("").required(),
2048
2052
  store_id: Joi.number().required(),
@@ -2070,24 +2074,24 @@ class PaymentPlatformModel {
2070
2074
  });
2071
2075
  }
2072
2076
 
2073
- /** @returns {EdcDeviceAddResponse} */
2074
- static EdcDeviceAddResponse() {
2077
+ /** @returns {EdcDeviceAddDetails} */
2078
+ static EdcDeviceAddDetails() {
2075
2079
  return Joi.object({
2076
2080
  data: PaymentPlatformModel.EdcDevice().required(),
2077
2081
  success: Joi.boolean().required(),
2078
2082
  });
2079
2083
  }
2080
2084
 
2081
- /** @returns {EdcDeviceDetailsResponse} */
2082
- static EdcDeviceDetailsResponse() {
2085
+ /** @returns {EdcDeviceDetails} */
2086
+ static EdcDeviceDetails() {
2083
2087
  return Joi.object({
2084
2088
  data: PaymentPlatformModel.EdcDevice().required(),
2085
2089
  success: Joi.boolean().required(),
2086
2090
  });
2087
2091
  }
2088
2092
 
2089
- /** @returns {EdcUpdateRequest} */
2090
- static EdcUpdateRequest() {
2093
+ /** @returns {EdcUpdate} */
2094
+ static EdcUpdate() {
2091
2095
  return Joi.object({
2092
2096
  edc_model: Joi.string().allow(""),
2093
2097
  store_id: Joi.number(),
@@ -2099,8 +2103,8 @@ class PaymentPlatformModel {
2099
2103
  });
2100
2104
  }
2101
2105
 
2102
- /** @returns {EdcDeviceUpdateResponse} */
2103
- static EdcDeviceUpdateResponse() {
2106
+ /** @returns {EdcDeviceUpdateDetails} */
2107
+ static EdcDeviceUpdateDetails() {
2104
2108
  return Joi.object({
2105
2109
  success: Joi.boolean().required(),
2106
2110
  });
@@ -2119,8 +2123,8 @@ class PaymentPlatformModel {
2119
2123
  });
2120
2124
  }
2121
2125
 
2122
- /** @returns {EdcDeviceListResponse} */
2123
- static EdcDeviceListResponse() {
2126
+ /** @returns {EdcDeviceListDetails} */
2127
+ static EdcDeviceListDetails() {
2124
2128
  return Joi.object({
2125
2129
  items: Joi.array().items(PaymentPlatformModel.EdcDevice()).required(),
2126
2130
  page: PaymentPlatformModel.Page().required(),
@@ -2128,8 +2132,8 @@ class PaymentPlatformModel {
2128
2132
  });
2129
2133
  }
2130
2134
 
2131
- /** @returns {PaymentInitializationRequest} */
2132
- static PaymentInitializationRequest() {
2135
+ /** @returns {PaymentInitializationCreation} */
2136
+ static PaymentInitializationCreation() {
2133
2137
  return Joi.object({
2134
2138
  razorpay_payment_id: Joi.string().allow("").allow(null),
2135
2139
  device_id: Joi.string().allow("").allow(null),
@@ -2139,7 +2143,7 @@ class PaymentPlatformModel {
2139
2143
  aggregator: Joi.string().allow("").required(),
2140
2144
  order_id: Joi.string().allow("").required(),
2141
2145
  currency: Joi.string().allow("").required(),
2142
- amount: Joi.number().allow(null).required(),
2146
+ amount: Joi.number().required(),
2143
2147
  contact: Joi.string().allow("").required(),
2144
2148
  timeout: Joi.number().allow(null),
2145
2149
  merchant_order_id: Joi.string().allow("").required(),
@@ -2147,8 +2151,8 @@ class PaymentPlatformModel {
2147
2151
  });
2148
2152
  }
2149
2153
 
2150
- /** @returns {PaymentInitializationResponse} */
2151
- static PaymentInitializationResponse() {
2154
+ /** @returns {PaymentInitializationDetails} */
2155
+ static PaymentInitializationDetails() {
2152
2156
  return Joi.object({
2153
2157
  razorpay_payment_id: Joi.string().allow("").allow(null),
2154
2158
  device_id: Joi.string().allow("").allow(null),
@@ -2170,8 +2174,8 @@ class PaymentPlatformModel {
2170
2174
  });
2171
2175
  }
2172
2176
 
2173
- /** @returns {PaymentStatusUpdateRequest} */
2174
- static PaymentStatusUpdateRequest() {
2177
+ /** @returns {PaymentStatusUpdateCreation} */
2178
+ static PaymentStatusUpdateCreation() {
2175
2179
  return Joi.object({
2176
2180
  device_id: Joi.string().allow("").allow(null),
2177
2181
  email: Joi.string().allow("").required(),
@@ -2180,7 +2184,7 @@ class PaymentPlatformModel {
2180
2184
  aggregator: Joi.string().allow("").required(),
2181
2185
  order_id: Joi.string().allow("").required(),
2182
2186
  currency: Joi.string().allow("").required(),
2183
- amount: Joi.number().allow(null).required(),
2187
+ amount: Joi.number().required(),
2184
2188
  contact: Joi.string().allow("").required(),
2185
2189
  merchant_order_id: Joi.string().allow("").required(),
2186
2190
  status: Joi.string().allow("").required(),
@@ -2189,8 +2193,8 @@ class PaymentPlatformModel {
2189
2193
  });
2190
2194
  }
2191
2195
 
2192
- /** @returns {PaymentStatusUpdateResponse} */
2193
- static PaymentStatusUpdateResponse() {
2196
+ /** @returns {PaymentStatusUpdateDetails} */
2197
+ static PaymentStatusUpdateDetails() {
2194
2198
  return Joi.object({
2195
2199
  redirect_url: Joi.string().allow("").allow(null),
2196
2200
  retry: Joi.boolean().required(),
@@ -2200,8 +2204,8 @@ class PaymentPlatformModel {
2200
2204
  });
2201
2205
  }
2202
2206
 
2203
- /** @returns {ResendOrCancelPaymentRequest} */
2204
- static ResendOrCancelPaymentRequest() {
2207
+ /** @returns {ResendOrCancelPaymentCreation} */
2208
+ static ResendOrCancelPaymentCreation() {
2205
2209
  return Joi.object({
2206
2210
  order_id: Joi.string().allow("").required(),
2207
2211
  device_id: Joi.string().allow("").allow(null),
@@ -2218,34 +2222,36 @@ class PaymentPlatformModel {
2218
2222
  });
2219
2223
  }
2220
2224
 
2221
- /** @returns {ResendOrCancelPaymentResponse} */
2222
- static ResendOrCancelPaymentResponse() {
2225
+ /** @returns {ResendOrCancelPaymentDetails} */
2226
+ static ResendOrCancelPaymentDetails() {
2223
2227
  return Joi.object({
2224
2228
  data: PaymentPlatformModel.LinkStatus().required(),
2225
2229
  success: Joi.boolean().required(),
2226
2230
  });
2227
2231
  }
2228
2232
 
2229
- /** @returns {PaymentStatusBulkHandlerRequest} */
2230
- static PaymentStatusBulkHandlerRequest() {
2233
+ /** @returns {PaymentStatusBulkHandlerCreation} */
2234
+ static PaymentStatusBulkHandlerCreation() {
2231
2235
  return Joi.object({
2232
2236
  merchant_order_id: Joi.array().items(Joi.string().allow("")).required(),
2233
2237
  });
2234
2238
  }
2235
2239
 
2236
- /** @returns {PaymentObjectListSerializer} */
2237
- static PaymentObjectListSerializer() {
2240
+ /** @returns {PaymentObjectList} */
2241
+ static PaymentObjectList() {
2238
2242
  return Joi.object({
2239
- user_object: Joi.any().required(),
2243
+ user_object: Joi.object().pattern(/\S/, Joi.any()).required(),
2240
2244
  modified_on: Joi.string().allow("").required(),
2241
2245
  collected_by: Joi.string().allow("").required(),
2242
2246
  created_on: Joi.string().allow("").required(),
2243
- refund_object: Joi.any().allow(null),
2247
+ refund_object: Joi.object().pattern(/\S/, Joi.any()).allow(null, ""),
2244
2248
  id: Joi.string().allow("").required(),
2245
2249
  payment_id: Joi.string().allow("").allow(null),
2246
2250
  currency: Joi.string().allow("").required(),
2247
2251
  current_status: Joi.string().allow("").required(),
2248
- aggregator_payment_object: Joi.any().allow(null),
2252
+ aggregator_payment_object: Joi.object()
2253
+ .pattern(/\S/, Joi.any())
2254
+ .allow(null, ""),
2249
2255
  payment_mode: Joi.string().allow("").required(),
2250
2256
  refunded_by: Joi.string().allow("").required(),
2251
2257
  amount_in_paisa: Joi.string().allow("").required(),
@@ -2262,13 +2268,13 @@ class PaymentPlatformModel {
2262
2268
  return Joi.object({
2263
2269
  merchant_order_id: Joi.string().allow("").required(),
2264
2270
  payment_object_list: Joi.array().items(
2265
- PaymentPlatformModel.PaymentObjectListSerializer()
2271
+ PaymentPlatformModel.PaymentObjectList()
2266
2272
  ),
2267
2273
  });
2268
2274
  }
2269
2275
 
2270
- /** @returns {PaymentStatusBulkHandlerResponse} */
2271
- static PaymentStatusBulkHandlerResponse() {
2276
+ /** @returns {PaymentStatusBulkHandlerDetails} */
2277
+ static PaymentStatusBulkHandlerDetails() {
2272
2278
  return Joi.object({
2273
2279
  count: Joi.number(),
2274
2280
  data: Joi.array().items(PaymentPlatformModel.PaymentStatusObject()),
@@ -2278,8 +2284,8 @@ class PaymentPlatformModel {
2278
2284
  });
2279
2285
  }
2280
2286
 
2281
- /** @returns {GetOauthUrlResponse} */
2282
- static GetOauthUrlResponse() {
2287
+ /** @returns {GetOauthUrlDetails} */
2288
+ static GetOauthUrlDetails() {
2283
2289
  return Joi.object({
2284
2290
  url: Joi.string().allow("").required(),
2285
2291
  success: Joi.boolean().required(),
@@ -2314,7 +2320,7 @@ class PaymentPlatformModel {
2314
2320
  static RepaymentDetailsSerialiserPayAll() {
2315
2321
  return Joi.object({
2316
2322
  total_amount: Joi.number().required(),
2317
- extension_order_id: Joi.string().allow("").allow(null).required(),
2323
+ extension_order_id: Joi.string().allow("").required(),
2318
2324
  aggregator_transaction_id: Joi.string().allow("").required(),
2319
2325
  aggregator_order_id: Joi.string().allow("").required(),
2320
2326
  shipment_details: Joi.array().items(
@@ -2323,16 +2329,16 @@ class PaymentPlatformModel {
2323
2329
  });
2324
2330
  }
2325
2331
 
2326
- /** @returns {RepaymentResponse} */
2327
- static RepaymentResponse() {
2332
+ /** @returns {RepaymentDetails} */
2333
+ static RepaymentDetails() {
2328
2334
  return Joi.object({
2329
- data: Joi.any().required(),
2335
+ data: Joi.object().pattern(/\S/, Joi.any()).required(),
2330
2336
  success: Joi.boolean().required(),
2331
2337
  });
2332
2338
  }
2333
2339
 
2334
- /** @returns {MerchantOnBoardingRequest} */
2335
- static MerchantOnBoardingRequest() {
2340
+ /** @returns {MerchantOnBoardingCreation} */
2341
+ static MerchantOnBoardingCreation() {
2336
2342
  return Joi.object({
2337
2343
  credit_line_id: Joi.string().allow("").required(),
2338
2344
  aggregator: Joi.string().allow("").required(),
@@ -2342,39 +2348,39 @@ class PaymentPlatformModel {
2342
2348
  });
2343
2349
  }
2344
2350
 
2345
- /** @returns {MerchantOnBoardingResponse} */
2346
- static MerchantOnBoardingResponse() {
2351
+ /** @returns {MerchantOnBoardingDetails} */
2352
+ static MerchantOnBoardingDetails() {
2347
2353
  return Joi.object({
2348
- data: Joi.any().required(),
2354
+ data: Joi.object().pattern(/\S/, Joi.any()).required(),
2349
2355
  success: Joi.boolean().required(),
2350
2356
  });
2351
2357
  }
2352
2358
 
2353
- /** @returns {ValidateCustomerRequest} */
2354
- static ValidateCustomerRequest() {
2359
+ /** @returns {ValidateCustomerCreation} */
2360
+ static ValidateCustomerCreation() {
2355
2361
  return Joi.object({
2356
2362
  phone_number: Joi.string().allow("").required(),
2357
2363
  aggregator: Joi.string().allow("").required(),
2358
2364
  payload: Joi.string().allow("").allow(null),
2359
- delivery_address: Joi.any(),
2365
+ delivery_address: Joi.object().pattern(/\S/, Joi.any()),
2360
2366
  transaction_amount_in_paise: Joi.number().required(),
2361
2367
  order_items: Joi.array().items(Joi.any()),
2362
- merchant_params: Joi.any(),
2363
- billing_address: Joi.any(),
2368
+ merchant_params: Joi.object().pattern(/\S/, Joi.any()),
2369
+ billing_address: Joi.object().pattern(/\S/, Joi.any()),
2364
2370
  });
2365
2371
  }
2366
2372
 
2367
- /** @returns {ValidateCustomerResponse} */
2368
- static ValidateCustomerResponse() {
2373
+ /** @returns {ValidateCustomerDetails} */
2374
+ static ValidateCustomerDetails() {
2369
2375
  return Joi.object({
2370
2376
  message: Joi.string().allow("").required(),
2371
- data: Joi.any(),
2377
+ data: Joi.object().pattern(/\S/, Joi.any()),
2372
2378
  success: Joi.boolean().required(),
2373
2379
  });
2374
2380
  }
2375
2381
 
2376
- /** @returns {GetPaymentLinkResponse} */
2377
- static GetPaymentLinkResponse() {
2382
+ /** @returns {GetPaymentLinkDetails} */
2383
+ static GetPaymentLinkDetails() {
2378
2384
  return Joi.object({
2379
2385
  message: Joi.string().allow("").required(),
2380
2386
  status_code: Joi.number().required(),
@@ -2402,8 +2408,8 @@ class PaymentPlatformModel {
2402
2408
  });
2403
2409
  }
2404
2410
 
2405
- /** @returns {ErrorResponse} */
2406
- static ErrorResponse() {
2411
+ /** @returns {ErrorDetails} */
2412
+ static ErrorDetails() {
2407
2413
  return Joi.object({
2408
2414
  status_code: Joi.number().required(),
2409
2415
  error: PaymentPlatformModel.ErrorDescription(),
@@ -2422,8 +2428,8 @@ class PaymentPlatformModel {
2422
2428
  });
2423
2429
  }
2424
2430
 
2425
- /** @returns {CreatePaymentLinkRequest} */
2426
- static CreatePaymentLinkRequest() {
2431
+ /** @returns {CreatePaymentLinkCreation} */
2432
+ static CreatePaymentLinkCreation() {
2427
2433
  return Joi.object({
2428
2434
  email: Joi.string().allow("").required(),
2429
2435
  amount: Joi.number().required(),
@@ -2432,11 +2438,13 @@ class PaymentPlatformModel {
2432
2438
  description: Joi.string().allow("").allow(null),
2433
2439
  meta: PaymentPlatformModel.CreatePaymentLinkMeta().required(),
2434
2440
  external_order_id: Joi.string().allow("").required(),
2441
+ success_redirection_url: Joi.string().allow(""),
2442
+ failure_redirection_url: Joi.string().allow(""),
2435
2443
  });
2436
2444
  }
2437
2445
 
2438
- /** @returns {CreatePaymentLinkResponse} */
2439
- static CreatePaymentLinkResponse() {
2446
+ /** @returns {CreatePaymentLinkDetails} */
2447
+ static CreatePaymentLinkDetails() {
2440
2448
  return Joi.object({
2441
2449
  message: Joi.string().allow("").required(),
2442
2450
  status_code: Joi.number().required(),
@@ -2447,8 +2455,8 @@ class PaymentPlatformModel {
2447
2455
  });
2448
2456
  }
2449
2457
 
2450
- /** @returns {PollingPaymentLinkResponse} */
2451
- static PollingPaymentLinkResponse() {
2458
+ /** @returns {PollingPaymentLinkDetails} */
2459
+ static PollingPaymentLinkDetails() {
2452
2460
  return Joi.object({
2453
2461
  message: Joi.string().allow("").allow(null),
2454
2462
  http_status: Joi.number().allow(null),
@@ -2463,15 +2471,15 @@ class PaymentPlatformModel {
2463
2471
  });
2464
2472
  }
2465
2473
 
2466
- /** @returns {CancelOrResendPaymentLinkRequest} */
2467
- static CancelOrResendPaymentLinkRequest() {
2474
+ /** @returns {CancelOrResendPaymentLinkCreation} */
2475
+ static CancelOrResendPaymentLinkCreation() {
2468
2476
  return Joi.object({
2469
2477
  payment_link_id: Joi.string().allow("").required(),
2470
2478
  });
2471
2479
  }
2472
2480
 
2473
- /** @returns {ResendPaymentLinkResponse} */
2474
- static ResendPaymentLinkResponse() {
2481
+ /** @returns {ResendPaymentLinkDetails} */
2482
+ static ResendPaymentLinkDetails() {
2475
2483
  return Joi.object({
2476
2484
  status_code: Joi.number().required(),
2477
2485
  message: Joi.string().allow("").required(),
@@ -2480,8 +2488,8 @@ class PaymentPlatformModel {
2480
2488
  });
2481
2489
  }
2482
2490
 
2483
- /** @returns {CancelPaymentLinkResponse} */
2484
- static CancelPaymentLinkResponse() {
2491
+ /** @returns {CancelPaymentLinkDetails} */
2492
+ static CancelPaymentLinkDetails() {
2485
2493
  return Joi.object({
2486
2494
  status_code: Joi.number().required(),
2487
2495
  message: Joi.string().allow("").required(),
@@ -2515,16 +2523,16 @@ class PaymentPlatformModel {
2515
2523
  });
2516
2524
  }
2517
2525
 
2518
- /** @returns {GetPaymentCodeResponse} */
2519
- static GetPaymentCodeResponse() {
2526
+ /** @returns {GetPaymentCodeDetails} */
2527
+ static GetPaymentCodeDetails() {
2520
2528
  return Joi.object({
2521
2529
  data: PaymentPlatformModel.GetPaymentCode().required(),
2522
2530
  success: Joi.boolean().required(),
2523
2531
  });
2524
2532
  }
2525
2533
 
2526
- /** @returns {PlatformPaymentModeResponse} */
2527
- static PlatformPaymentModeResponse() {
2534
+ /** @returns {PlatformPaymentModeDetails} */
2535
+ static PlatformPaymentModeDetails() {
2528
2536
  return Joi.object({
2529
2537
  message: Joi.string().allow("").allow(null),
2530
2538
  items: Joi.array().items(Joi.any()).allow(null, ""),
@@ -2532,11 +2540,11 @@ class PaymentPlatformModel {
2532
2540
  });
2533
2541
  }
2534
2542
 
2535
- /** @returns {MerchnatPaymentModeRequest} */
2536
- static MerchnatPaymentModeRequest() {
2543
+ /** @returns {MerchnatPaymentModeCreation} */
2544
+ static MerchnatPaymentModeCreation() {
2537
2545
  return Joi.object({
2538
- offline: Joi.any().allow(null),
2539
- online: Joi.any().allow(null),
2546
+ offline: Joi.object().pattern(/\S/, Joi.any()).allow(null, ""),
2547
+ online: Joi.object().pattern(/\S/, Joi.any()).allow(null, ""),
2540
2548
  });
2541
2549
  }
2542
2550
 
@@ -2547,7 +2555,9 @@ class PaymentPlatformModel {
2547
2555
  amount: Joi.number().required(),
2548
2556
  status: Joi.string().allow("").required(),
2549
2557
  currency: Joi.string().allow("").required(),
2550
- aggregator_order_details: Joi.any().required(),
2558
+ aggregator_order_details: Joi.object()
2559
+ .pattern(/\S/, Joi.any())
2560
+ .required(),
2551
2561
  aggregator: Joi.string().allow("").required(),
2552
2562
  });
2553
2563
  }
@@ -2555,14 +2565,14 @@ class PaymentPlatformModel {
2555
2565
  /** @returns {AddressDetail} */
2556
2566
  static AddressDetail() {
2557
2567
  return Joi.object({
2558
- google_map_point: Joi.any(),
2568
+ google_map_point: Joi.object().pattern(/\S/, Joi.any()),
2559
2569
  landmark: Joi.string().allow(""),
2560
2570
  phone: Joi.string().allow("").required(),
2561
2571
  country_iso_code: Joi.string().allow("").required(),
2562
2572
  area_code: Joi.string().allow("").required(),
2563
2573
  country: Joi.string().allow("").required(),
2564
2574
  expire_at: Joi.string().allow(""),
2565
- geo_location: Joi.any(),
2575
+ geo_location: Joi.object().pattern(/\S/, Joi.any()),
2566
2576
  state: Joi.string().allow("").required(),
2567
2577
  area: Joi.string().allow("").required(),
2568
2578
  g_address_id: Joi.string().allow("").required(),
@@ -2600,15 +2610,15 @@ class PaymentPlatformModel {
2600
2610
  kind: Joi.string().allow(""),
2601
2611
  billing_address: PaymentPlatformModel.AddressDetail(),
2602
2612
  captured: Joi.boolean(),
2603
- meta: Joi.any(),
2613
+ meta: Joi.object().pattern(/\S/, Joi.any()),
2604
2614
  status: Joi.string().allow("").required(),
2605
2615
  });
2606
2616
  }
2607
2617
 
2608
- /** @returns {PaymentSessionRequestSerializer} */
2609
- static PaymentSessionRequestSerializer() {
2618
+ /** @returns {PaymentSessionCreation} */
2619
+ static PaymentSessionCreation() {
2610
2620
  return Joi.object({
2611
- meta: Joi.any(),
2621
+ meta: Joi.object().pattern(/\S/, Joi.any()),
2612
2622
  gid: Joi.string().allow("").required(),
2613
2623
  order_details: PaymentPlatformModel.OrderDetail().required(),
2614
2624
  status: Joi.string().allow("").required(),
@@ -2622,8 +2632,8 @@ class PaymentPlatformModel {
2622
2632
  });
2623
2633
  }
2624
2634
 
2625
- /** @returns {PaymentSessionResponseSerializer} */
2626
- static PaymentSessionResponseSerializer() {
2635
+ /** @returns {PaymentSessionPutDetails} */
2636
+ static PaymentSessionPutDetails() {
2627
2637
  return Joi.object({
2628
2638
  gid: Joi.string().allow("").required(),
2629
2639
  platform_transaction_details: Joi.array().items(Joi.any()).required(),
@@ -2652,10 +2662,10 @@ class PaymentPlatformModel {
2652
2662
  });
2653
2663
  }
2654
2664
 
2655
- /** @returns {RefundSessionRequestSerializer} */
2656
- static RefundSessionRequestSerializer() {
2665
+ /** @returns {RefundSessionCreation} */
2666
+ static RefundSessionCreation() {
2657
2667
  return Joi.object({
2658
- meta: Joi.any(),
2668
+ meta: Joi.object().pattern(/\S/, Joi.any()),
2659
2669
  gid: Joi.string().allow("").required(),
2660
2670
  status: Joi.string().allow("").required(),
2661
2671
  currency: Joi.string().allow("").required(),
@@ -2670,8 +2680,8 @@ class PaymentPlatformModel {
2670
2680
  });
2671
2681
  }
2672
2682
 
2673
- /** @returns {RefundSessionResponseSerializer} */
2674
- static RefundSessionResponseSerializer() {
2683
+ /** @returns {RefundSessionDetails} */
2684
+ static RefundSessionDetails() {
2675
2685
  return Joi.object({
2676
2686
  gid: Joi.string().allow("").required(),
2677
2687
  status: Joi.string().allow("").required(),
@@ -2681,8 +2691,8 @@ class PaymentPlatformModel {
2681
2691
  });
2682
2692
  }
2683
2693
 
2684
- /** @returns {PaymentDetailsSerializer} */
2685
- static PaymentDetailsSerializer() {
2694
+ /** @returns {PaymentDetails} */
2695
+ static PaymentDetails() {
2686
2696
  return Joi.object({
2687
2697
  payment_methods: Joi.array().items(Joi.any()).required(),
2688
2698
  gid: Joi.string().allow("").required(),
@@ -2690,7 +2700,7 @@ class PaymentPlatformModel {
2690
2700
  currency: Joi.string().allow("").required(),
2691
2701
  mode: Joi.string().allow("").required(),
2692
2702
  merchant_locale: Joi.string().allow(""),
2693
- meta: Joi.any().allow(null),
2703
+ meta: Joi.object().pattern(/\S/, Joi.any()).allow(null, ""),
2694
2704
  kind: Joi.string().allow(""),
2695
2705
  success_url: Joi.string().allow(""),
2696
2706
  status: Joi.string().allow("").required(),
@@ -2707,10 +2717,10 @@ class PaymentPlatformModel {
2707
2717
  });
2708
2718
  }
2709
2719
 
2710
- /** @returns {CartDetailsSerializer} */
2711
- static CartDetailsSerializer() {
2720
+ /** @returns {CartDetails} */
2721
+ static CartDetails() {
2712
2722
  return Joi.object({
2713
- items: Joi.any().required(),
2723
+ items: Joi.object().pattern(/\S/, Joi.any()).required(),
2714
2724
  articles: Joi.array().items(Joi.any()).required(),
2715
2725
  cart_value: Joi.number().required(),
2716
2726
  total_quantity: Joi.number(),
@@ -2718,8 +2728,8 @@ class PaymentPlatformModel {
2718
2728
  });
2719
2729
  }
2720
2730
 
2721
- /** @returns {RefundDetailsSerializer} */
2722
- static RefundDetailsSerializer() {
2731
+ /** @returns {RefundDetails} */
2732
+ static RefundDetails() {
2723
2733
  return Joi.object({
2724
2734
  amount: Joi.number().required(),
2725
2735
  currency: Joi.string().allow("").required(),
@@ -2730,17 +2740,17 @@ class PaymentPlatformModel {
2730
2740
  });
2731
2741
  }
2732
2742
 
2733
- /** @returns {PaymentSessionSerializer} */
2734
- static PaymentSessionSerializer() {
2743
+ /** @returns {PaymentSessionFetchDetails} */
2744
+ static PaymentSessionFetchDetails() {
2735
2745
  return Joi.object({
2736
2746
  payment_details: Joi.any().required(),
2737
2747
  currency: Joi.string().allow("").allow(null),
2738
2748
  status: Joi.string().allow("").required(),
2739
2749
  total_amount: Joi.number().required(),
2740
- gid: Joi.string().allow("").allow(null).required(),
2741
- cart_details: PaymentPlatformModel.CartDetailsSerializer(),
2750
+ gid: Joi.string().allow("").required(),
2751
+ cart_details: PaymentPlatformModel.CartDetails(),
2742
2752
  refund_details: Joi.array()
2743
- .items(PaymentPlatformModel.RefundDetailsSerializer())
2753
+ .items(PaymentPlatformModel.RefundDetails())
2744
2754
  .required(),
2745
2755
  });
2746
2756
  }
@@ -2754,8 +2764,8 @@ class PaymentPlatformModel {
2754
2764
  });
2755
2765
  }
2756
2766
 
2757
- /** @returns {RefundPriorityResponseSerializer} */
2758
- static RefundPriorityResponseSerializer() {
2767
+ /** @returns {RefundPriorityDetails} */
2768
+ static RefundPriorityDetails() {
2759
2769
  return Joi.object({
2760
2770
  configuration: Joi.string().allow("").required(),
2761
2771
  success: Joi.boolean().required(),
@@ -2767,8 +2777,8 @@ class PaymentPlatformModel {
2767
2777
  });
2768
2778
  }
2769
2779
 
2770
- /** @returns {RefundPriorityRequestSerializer} */
2771
- static RefundPriorityRequestSerializer() {
2780
+ /** @returns {RefundPriorityCreation} */
2781
+ static RefundPriorityCreation() {
2772
2782
  return Joi.object({
2773
2783
  apportion: Joi.boolean().required(),
2774
2784
  refund_sources_priority: Joi.array()
@@ -2777,12 +2787,12 @@ class PaymentPlatformModel {
2777
2787
  });
2778
2788
  }
2779
2789
 
2780
- /** @returns {MerchantPaymentModeRequest} */
2781
- static MerchantPaymentModeRequest() {
2790
+ /** @returns {MerchantPaymentModeCreation} */
2791
+ static MerchantPaymentModeCreation() {
2782
2792
  return Joi.object({
2783
2793
  business_unit: Joi.string().allow("").required(),
2784
2794
  items: Joi.array().items(Joi.any()).required(),
2785
- device: Joi.any().required(),
2795
+ device: Joi.object().pattern(/\S/, Joi.any()).required(),
2786
2796
  });
2787
2797
  }
2788
2798
 
@@ -2802,8 +2812,8 @@ class PaymentPlatformModel {
2802
2812
  });
2803
2813
  }
2804
2814
 
2805
- /** @returns {PlatformPaymentModeCopyConfigRequest} */
2806
- static PlatformPaymentModeCopyConfigRequest() {
2815
+ /** @returns {PlatformPaymentModeCopyConfigCreation} */
2816
+ static PlatformPaymentModeCopyConfigCreation() {
2807
2817
  return Joi.object({
2808
2818
  from_config: PaymentPlatformModel.FromConfig().required(),
2809
2819
  to_config: PaymentPlatformModel.ToConfig().required(),
@@ -2830,8 +2840,8 @@ class PaymentPlatformModel {
2830
2840
  });
2831
2841
  }
2832
2842
 
2833
- /** @returns {PaymentOrderRequest} */
2834
- static PaymentOrderRequest() {
2843
+ /** @returns {PaymentOrderCreation} */
2844
+ static PaymentOrderCreation() {
2835
2845
  return Joi.object({
2836
2846
  order_id: Joi.string().allow("").required(),
2837
2847
  payment_methods: Joi.array().items(
@@ -2857,8 +2867,8 @@ class PaymentPlatformModel {
2857
2867
  });
2858
2868
  }
2859
2869
 
2860
- /** @returns {PaymentOrderResponse} */
2861
- static PaymentOrderResponse() {
2870
+ /** @returns {PaymentOrderDetails} */
2871
+ static PaymentOrderDetails() {
2862
2872
  return Joi.object({
2863
2873
  message: Joi.string().allow("").required(),
2864
2874
  success: Joi.boolean().required(),
@@ -2879,8 +2889,8 @@ class PaymentPlatformModel {
2879
2889
  });
2880
2890
  }
2881
2891
 
2882
- /** @returns {AggregatorVersionResponse} */
2883
- static AggregatorVersionResponse() {
2892
+ /** @returns {AggregatorVersionDetails} */
2893
+ static AggregatorVersionDetails() {
2884
2894
  return Joi.object({
2885
2895
  message: Joi.string().allow("").required(),
2886
2896
  success: Joi.boolean().required(),
@@ -2897,8 +2907,8 @@ class PaymentPlatformModel {
2897
2907
  });
2898
2908
  }
2899
2909
 
2900
- /** @returns {AggregatorControlRequest} */
2901
- static AggregatorControlRequest() {
2910
+ /** @returns {PatchAggregatorControl} */
2911
+ static PatchAggregatorControl() {
2902
2912
  return Joi.object({
2903
2913
  business_unit: Joi.string().allow(""),
2904
2914
  items: Joi.array().items(Joi.any()),