@gofynd/fdk-client-javascript 1.4.16-beta.3 → 1.4.16-beta.4

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