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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (265) hide show
  1. package/README.md +1 -1
  2. package/package.json +3 -2
  3. package/sdk/application/ApplicationClient.js +20 -0
  4. package/sdk/application/Cart/CartApplicationClient.d.ts +1 -1
  5. package/sdk/application/Cart/CartApplicationClient.js +3 -5
  6. package/sdk/application/Cart/CartApplicationModel.d.ts +1634 -1742
  7. package/sdk/application/Cart/CartApplicationModel.js +1388 -1464
  8. package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -4
  9. package/sdk/application/Cart/CartApplicationValidator.js +0 -4
  10. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +6 -3
  11. package/sdk/application/Catalog/CatalogApplicationClient.js +20 -7
  12. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +1917 -1917
  13. package/sdk/application/Catalog/CatalogApplicationModel.js +1613 -1613
  14. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +14 -0
  15. package/sdk/application/Catalog/CatalogApplicationValidator.js +6 -0
  16. package/sdk/application/Common/CommonApplicationModel.d.ts +235 -235
  17. package/sdk/application/Common/CommonApplicationModel.js +172 -172
  18. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +72 -72
  19. package/sdk/application/Communication/CommunicationApplicationModel.js +64 -64
  20. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1492 -1626
  21. package/sdk/application/Configuration/ConfigurationApplicationModel.js +1038 -1180
  22. package/sdk/application/Content/ContentApplicationClient.d.ts +0 -36
  23. package/sdk/application/Content/ContentApplicationClient.js +0 -246
  24. package/sdk/application/Content/ContentApplicationModel.d.ts +546 -753
  25. package/sdk/application/Content/ContentApplicationModel.js +565 -817
  26. package/sdk/application/Content/ContentApplicationValidator.d.ts +1 -40
  27. package/sdk/application/Content/ContentApplicationValidator.js +0 -41
  28. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +79 -79
  29. package/sdk/application/FileStorage/FileStorageApplicationModel.js +84 -84
  30. package/sdk/application/Lead/LeadApplicationModel.d.ts +417 -417
  31. package/sdk/application/Lead/LeadApplicationModel.js +301 -301
  32. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +0 -67
  33. package/sdk/application/Logistic/LogisticApplicationClient.js +0 -547
  34. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +257 -712
  35. package/sdk/application/Logistic/LogisticApplicationModel.js +267 -755
  36. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +1 -211
  37. package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -131
  38. package/sdk/application/Order/OrderApplicationClient.d.ts +3 -3
  39. package/sdk/application/Order/OrderApplicationClient.js +8 -32
  40. package/sdk/application/Order/OrderApplicationModel.d.ts +845 -853
  41. package/sdk/application/Order/OrderApplicationModel.js +816 -824
  42. package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -20
  43. package/sdk/application/Order/OrderApplicationValidator.js +0 -8
  44. package/sdk/application/Payment/PaymentApplicationClient.d.ts +2 -46
  45. package/sdk/application/Payment/PaymentApplicationClient.js +10 -341
  46. package/sdk/application/Payment/PaymentApplicationModel.d.ts +1892 -2199
  47. package/sdk/application/Payment/PaymentApplicationModel.js +1235 -1506
  48. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +14 -59
  49. package/sdk/application/Payment/PaymentApplicationValidator.js +10 -64
  50. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1396 -1429
  51. package/sdk/application/PosCart/PosCartApplicationModel.js +1233 -1257
  52. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +214 -214
  53. package/sdk/application/Rewards/RewardsApplicationModel.js +211 -211
  54. package/sdk/application/Share/ShareApplicationModel.d.ts +114 -114
  55. package/sdk/application/Share/ShareApplicationModel.js +121 -121
  56. package/sdk/application/Theme/ThemeApplicationClient.d.ts +1 -1
  57. package/sdk/application/Theme/ThemeApplicationClient.js +3 -7
  58. package/sdk/application/Theme/ThemeApplicationModel.d.ts +783 -969
  59. package/sdk/application/Theme/ThemeApplicationModel.js +571 -867
  60. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -10
  61. package/sdk/application/Theme/ThemeApplicationValidator.js +0 -4
  62. package/sdk/application/User/UserApplicationClient.d.ts +0 -33
  63. package/sdk/application/User/UserApplicationClient.js +0 -239
  64. package/sdk/application/User/UserApplicationModel.d.ts +753 -768
  65. package/sdk/application/User/UserApplicationModel.js +731 -755
  66. package/sdk/application/User/UserApplicationValidator.d.ts +1 -34
  67. package/sdk/application/User/UserApplicationValidator.js +0 -36
  68. package/sdk/common/Clickstream.d.ts +1 -0
  69. package/sdk/common/Clickstream.js +254 -0
  70. package/sdk/common/Utility.js +1 -4
  71. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +72 -60
  72. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +70 -58
  73. package/sdk/partner/PartnerClient.d.ts +0 -6
  74. package/sdk/partner/PartnerClient.js +0 -9
  75. package/sdk/partner/Theme/ThemePartnerClient.d.ts +0 -10
  76. package/sdk/partner/Theme/ThemePartnerClient.js +0 -80
  77. package/sdk/partner/Theme/ThemePartnerModel.d.ts +1178 -1153
  78. package/sdk/partner/Theme/ThemePartnerModel.js +830 -974
  79. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +0 -1
  80. package/sdk/partner/Theme/ThemePartnerValidator.js +0 -9
  81. package/sdk/partner/index.d.ts +0 -3
  82. package/sdk/partner/index.js +0 -6
  83. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +2 -2
  84. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +123 -123
  85. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +109 -109
  86. package/sdk/platform/Billing/BillingPlatformClient.d.ts +1 -11
  87. package/sdk/platform/Billing/BillingPlatformClient.js +3 -110
  88. package/sdk/platform/Billing/BillingPlatformModel.d.ts +734 -800
  89. package/sdk/platform/Billing/BillingPlatformModel.js +732 -810
  90. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +4 -43
  91. package/sdk/platform/Billing/BillingPlatformValidator.js +2 -29
  92. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +11 -1
  93. package/sdk/platform/Cart/CartPlatformApplicationClient.js +81 -7
  94. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +13 -5
  95. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +12 -4
  96. package/sdk/platform/Cart/CartPlatformModel.d.ts +3223 -3328
  97. package/sdk/platform/Cart/CartPlatformModel.js +2875 -2946
  98. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +11 -15
  99. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +21 -52
  100. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +0 -27
  101. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +0 -11
  102. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +15 -27
  103. package/sdk/platform/Catalog/CatalogPlatformClient.js +93 -189
  104. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +617 -920
  105. package/sdk/platform/Catalog/CatalogPlatformModel.js +584 -919
  106. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +27 -41
  107. package/sdk/platform/Catalog/CatalogPlatformValidator.js +19 -31
  108. package/sdk/platform/Common/CommonPlatformModel.d.ts +255 -255
  109. package/sdk/platform/Common/CommonPlatformModel.js +187 -187
  110. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +37 -139
  111. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +52 -737
  112. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +3 -133
  113. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +1 -113
  114. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1079 -1228
  115. package/sdk/platform/Communication/CommunicationPlatformModel.js +1090 -1262
  116. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +2 -8
  117. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +4 -32
  118. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +629 -658
  119. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +641 -675
  120. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +0 -14
  121. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +0 -6
  122. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +8 -8
  123. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +4 -4
  124. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +2992 -3231
  125. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2092 -2303
  126. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +2 -2
  127. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +2 -2
  128. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -391
  129. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1074 -3656
  130. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -351
  131. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +0 -410
  132. package/sdk/platform/Content/ContentPlatformModel.d.ts +972 -2071
  133. package/sdk/platform/Content/ContentPlatformModel.js +1039 -2355
  134. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +2 -2
  135. package/sdk/platform/Discount/DiscountPlatformClient.js +2 -2
  136. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +174 -259
  137. package/sdk/platform/Discount/DiscountPlatformModel.js +163 -257
  138. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +6 -16
  139. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +8 -117
  140. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +4 -55
  141. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +2 -39
  142. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +821 -892
  143. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +833 -901
  144. package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -33
  145. package/sdk/platform/Finance/FinancePlatformClient.js +0 -240
  146. package/sdk/platform/Finance/FinancePlatformModel.d.ts +910 -1056
  147. package/sdk/platform/Finance/FinancePlatformModel.js +884 -1070
  148. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +1 -38
  149. package/sdk/platform/Finance/FinancePlatformValidator.js +0 -38
  150. package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +942 -942
  151. package/sdk/platform/Inventory/InventoryPlatformModel.js +1003 -1003
  152. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +28 -38
  153. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +56 -137
  154. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +29 -41
  155. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +21 -33
  156. package/sdk/platform/Lead/LeadPlatformModel.d.ts +601 -610
  157. package/sdk/platform/Lead/LeadPlatformModel.js +457 -471
  158. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +1 -11
  159. package/sdk/platform/Order/OrderPlatformApplicationClient.js +1 -93
  160. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -28
  161. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +0 -18
  162. package/sdk/platform/Order/OrderPlatformClient.d.ts +22 -143
  163. package/sdk/platform/Order/OrderPlatformClient.js +160 -1190
  164. package/sdk/platform/Order/OrderPlatformModel.d.ts +4451 -5275
  165. package/sdk/platform/Order/OrderPlatformModel.js +4039 -4994
  166. package/sdk/platform/Order/OrderPlatformValidator.d.ts +21 -257
  167. package/sdk/platform/Order/OrderPlatformValidator.js +15 -216
  168. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +22 -22
  169. package/sdk/platform/Partner/PartnerPlatformModel.js +22 -22
  170. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +13 -119
  171. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +40 -750
  172. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +7 -143
  173. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +6 -133
  174. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +1 -1
  175. package/sdk/platform/Payment/PaymentPlatformClient.js +1 -1
  176. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2067 -2929
  177. package/sdk/platform/Payment/PaymentPlatformModel.js +1427 -2090
  178. package/sdk/platform/PlatformApplicationClient.d.ts +2 -2
  179. package/sdk/platform/PlatformApplicationClient.js +4 -4
  180. package/sdk/platform/PlatformClient.d.ts +2 -4
  181. package/sdk/platform/PlatformClient.js +4 -8
  182. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +204 -204
  183. package/sdk/platform/Rewards/RewardsPlatformModel.js +199 -199
  184. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +66 -142
  185. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +147 -645
  186. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +63 -131
  187. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +47 -126
  188. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +105 -217
  189. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +349 -1138
  190. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +990 -1589
  191. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +986 -1702
  192. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +133 -382
  193. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +102 -266
  194. package/sdk/platform/Share/SharePlatformModel.d.ts +147 -147
  195. package/sdk/platform/Share/SharePlatformModel.js +139 -139
  196. package/sdk/platform/Theme/ThemePlatformClient.d.ts +1 -11
  197. package/sdk/platform/Theme/ThemePlatformClient.js +3 -87
  198. package/sdk/platform/Theme/ThemePlatformModel.d.ts +765 -1133
  199. package/sdk/platform/Theme/ThemePlatformModel.js +561 -1009
  200. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +4 -28
  201. package/sdk/platform/Theme/ThemePlatformValidator.js +2 -21
  202. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +1 -116
  203. package/sdk/platform/User/UserPlatformApplicationClient.js +86 -932
  204. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +7 -224
  205. package/sdk/platform/User/UserPlatformApplicationValidator.js +5 -173
  206. package/sdk/platform/User/UserPlatformModel.d.ts +428 -765
  207. package/sdk/platform/User/UserPlatformModel.js +428 -679
  208. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +37 -45
  209. package/sdk/platform/Webhook/WebhookPlatformClient.js +57 -61
  210. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +403 -448
  211. package/sdk/platform/Webhook/WebhookPlatformModel.js +309 -369
  212. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -7
  213. package/sdk/platform/Webhook/WebhookPlatformValidator.js +6 -6
  214. package/sdk/platform/index.d.ts +1 -1
  215. package/sdk/platform/index.js +2 -2
  216. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +237 -237
  217. package/sdk/public/Configuration/ConfigurationPublicModel.js +174 -174
  218. package/sdk/public/Inventory/InventoryPublicModel.d.ts +237 -237
  219. package/sdk/public/Inventory/InventoryPublicModel.js +257 -257
  220. package/sdk/public/Partner/PartnerPublicModel.d.ts +104 -104
  221. package/sdk/public/Partner/PartnerPublicModel.js +113 -113
  222. package/sdk/public/PublicClient.d.ts +0 -4
  223. package/sdk/public/PublicClient.js +0 -8
  224. package/sdk/public/Webhook/WebhookPublicClient.d.ts +0 -33
  225. package/sdk/public/Webhook/WebhookPublicClient.js +0 -242
  226. package/sdk/public/Webhook/WebhookPublicModel.d.ts +15 -161
  227. package/sdk/public/Webhook/WebhookPublicModel.js +13 -189
  228. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +1 -23
  229. package/sdk/public/Webhook/WebhookPublicValidator.js +0 -31
  230. package/sdk/public/index.d.ts +0 -2
  231. package/sdk/public/index.js +0 -4
  232. package/sdk/partner/Lead/LeadPartnerClient.d.ts +0 -125
  233. package/sdk/partner/Lead/LeadPartnerClient.js +0 -785
  234. package/sdk/partner/Lead/LeadPartnerModel.d.ts +0 -1127
  235. package/sdk/partner/Lead/LeadPartnerModel.js +0 -896
  236. package/sdk/partner/Lead/LeadPartnerValidator.d.ts +0 -12
  237. package/sdk/partner/Lead/LeadPartnerValidator.js +0 -67
  238. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +0 -155
  239. package/sdk/partner/Logistics/LogisticsPartnerClient.js +0 -1195
  240. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +0 -372
  241. package/sdk/partner/Logistics/LogisticsPartnerModel.js +0 -442
  242. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -16
  243. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +0 -123
  244. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +0 -99
  245. package/sdk/partner/Webhook/WebhookPartnerClient.js +0 -753
  246. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +0 -566
  247. package/sdk/partner/Webhook/WebhookPartnerModel.js +0 -583
  248. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -12
  249. package/sdk/partner/Webhook/WebhookPartnerValidator.js +0 -74
  250. package/sdk/platform/Content/ContentPlatformClient.d.ts +0 -277
  251. package/sdk/platform/Content/ContentPlatformClient.js +0 -2011
  252. package/sdk/platform/Content/ContentPlatformValidator.d.ts +0 -247
  253. package/sdk/platform/Content/ContentPlatformValidator.js +0 -319
  254. package/sdk/public/Billing/BillingPublicClient.d.ts +0 -23
  255. package/sdk/public/Billing/BillingPublicClient.js +0 -116
  256. package/sdk/public/Billing/BillingPublicModel.d.ts +0 -92
  257. package/sdk/public/Billing/BillingPublicModel.js +0 -96
  258. package/sdk/public/Billing/BillingPublicValidator.d.ts +0 -18
  259. package/sdk/public/Billing/BillingPublicValidator.js +0 -19
  260. package/sdk/public/Content/ContentPublicClient.d.ts +0 -22
  261. package/sdk/public/Content/ContentPublicClient.js +0 -114
  262. package/sdk/public/Content/ContentPublicModel.d.ts +0 -53
  263. package/sdk/public/Content/ContentPublicModel.js +0 -60
  264. package/sdk/public/Content/ContentPublicValidator.d.ts +0 -18
  265. package/sdk/public/Content/ContentPublicValidator.js +0 -19
@@ -1,183 +1,169 @@
1
1
  const Joi = require("joi");
2
2
 
3
3
  /**
4
- * @typedef ChannelDisplayName
5
- * @property {string} [platform_pos]
4
+ * @typedef GenerateReportMeta
5
+ * @property {string} [brand]
6
+ * @property {string} [company]
7
+ * @property {string} [channel]
6
8
  */
7
9
 
8
10
  /**
9
- * @typedef ChannelDisplayNameResponse
10
- * @property {ChannelDisplayName} [data]
11
- * @property {boolean} [success]
11
+ * @typedef GenerateReportFilters
12
+ * @property {string[]} [brand]
13
+ * @property {string[]} [company]
14
+ * @property {string[]} [channel]
12
15
  */
13
16
 
14
17
  /**
15
- * @typedef CnDetails
16
- * @property {string} [channel_of_issuance]
17
- * @property {string} [date_issued]
18
- * @property {string} [expiry_date]
19
- * @property {string} [invoice_number]
20
- * @property {string} [order_id]
21
- * @property {string} [ordering_channel]
22
- * @property {string} [shipment_id]
23
- * @property {string} [staff_id]
24
- * @property {string} [store_id]
18
+ * @typedef GenerateReportPlatform
19
+ * @property {string} [start_date]
20
+ * @property {string} [end_date]
21
+ * @property {GenerateReportMeta} [meta]
22
+ * @property {string} [report_id]
23
+ * @property {GenerateReportFilters} [filters]
25
24
  */
26
25
 
27
26
  /**
28
- * @typedef CnDownloadReport
29
- * @property {string} [affiliate_id]
27
+ * @typedef GenerateReportRequest
28
+ * @property {GenerateReportPlatform} [data]
29
+ */
30
+
31
+ /**
32
+ * @typedef Page
33
+ * @property {number} [item_total]
34
+ * @property {string} [next_id]
35
+ * @property {boolean} [has_previous]
36
+ * @property {boolean} [has_next]
37
+ * @property {number} [current]
38
+ * @property {string} type
39
+ * @property {number} [size]
40
+ */
41
+
42
+ /**
43
+ * @typedef GenerateReportJson
44
+ * @property {string[][]} [items]
45
+ * @property {Page} [page]
30
46
  * @property {string} [end_date]
31
- * @property {number} [page]
32
- * @property {number} [pagesize]
33
- * @property {string} [search]
34
- * @property {string} [search_type]
47
+ * @property {string[]} [headers]
35
48
  * @property {string} [start_date]
36
- * @property {string[]} [status]
49
+ * @property {number} [item_count]
37
50
  */
38
51
 
39
52
  /**
40
- * @typedef CnGenerateReport
41
- * @property {string} [affiliate_id]
42
- * @property {string} [end_date]
43
- * @property {CnGenerateReportFilters} [filters]
44
- * @property {GenerateReportFilters} [meta]
53
+ * @typedef Error
54
+ * @property {string} [reason]
55
+ * @property {boolean} [success]
56
+ */
57
+
58
+ /**
59
+ * @typedef DownloadReport
45
60
  * @property {number} [page]
46
61
  * @property {number} [pagesize]
47
- * @property {string} [report_id]
48
- * @property {string} [search]
49
- * @property {string} [search_type]
50
62
  * @property {string} [start_date]
63
+ * @property {string} [end_date]
51
64
  */
52
65
 
53
66
  /**
54
- * @typedef CnGenerateReportFilters
55
- * @property {string[]} [channel_of_issuance]
56
- * @property {string[]} [ordering_channel]
57
- * @property {string[]} [staff_id]
58
- * @property {number[]} [store_id]
59
- * @property {string[]} [types_of_transaction]
60
- * @property {string[]} [utilisation]
67
+ * @typedef DownloadReportItems
68
+ * @property {string} [start_date]
69
+ * @property {string} [end_date]
70
+ * @property {GenerateReportMeta} [meta]
71
+ * @property {string} [report_id]
72
+ * @property {GenerateReportFilters} [filters]
73
+ * @property {string} [type_of_request]
61
74
  */
62
75
 
63
76
  /**
64
- * @typedef CnGenerateReportItems
65
- * @property {string} [credit_note_number]
66
- * @property {string} [date_issued]
67
- * @property {string} [expiry_date]
68
- * @property {string} [invoice_number]
69
- * @property {string} [order_id]
70
- * @property {string} [shipment_id]
71
- * @property {string} [status]
72
- * @property {number} [total_amount]
77
+ * @typedef DownloadReportList
78
+ * @property {DownloadReportItems[]} [items]
79
+ * @property {Page} [page]
80
+ * @property {number} [item_count]
73
81
  */
74
82
 
75
83
  /**
76
- * @typedef CnReferenceNumber
77
- * @property {string} [cn_reference_number]
84
+ * @typedef GetEngineData
85
+ * @property {string} [table_name]
86
+ * @property {string[]} [project]
87
+ * @property {Object} [filters]
78
88
  */
79
89
 
80
90
  /**
81
- * @typedef CreateSellerCreditNoteConfig
82
- * @property {string} [affiliate_id]
83
- * @property {string} [currency_type]
84
- * @property {boolean} [is_cn_as_refund_method]
85
- * @property {CreditNoteConfigNotificationEvents} [notification_events]
86
- * @property {string[]} [ordering_channel]
87
- * @property {string} [sales_channel_name]
88
- * @property {number} [seller_id]
89
- * @property {string[]} [slug_values]
90
- * @property {string[]} [source_channel]
91
- * @property {number} [validity]
91
+ * @typedef GetEngineRequest
92
+ * @property {GetEngineData} [data]
92
93
  */
93
94
 
94
95
  /**
95
- * @typedef CreateSellerCreditNoteConfigRequest
96
- * @property {CreateSellerCreditNoteConfig} [data]
96
+ * @typedef GetEngineResponse
97
+ * @property {boolean} [success]
98
+ * @property {Object[]} [items]
99
+ * @property {Page} [page]
100
+ * @property {number} [item_count]
97
101
  */
98
102
 
99
103
  /**
100
- * @typedef CreateSellerCreditNoteConfigResponse
101
- * @property {string} [message]
102
- * @property {boolean} [success]
104
+ * @typedef GetReason
105
+ * @property {string} [reason_type]
103
106
  */
104
107
 
105
108
  /**
106
- * @typedef CreditlineDataPlatformPayload
107
- * @property {string} [end_end]
108
- * @property {number} [page]
109
- * @property {number} [pagesize]
110
- * @property {string} [seller_id]
111
- * @property {string} [start_end]
109
+ * @typedef GetReasonRequest
110
+ * @property {GetReason} [data]
112
111
  */
113
112
 
114
113
  /**
115
- * @typedef CreditlineDataPlatformRequest
116
- * @property {CreditlineDataPlatformPayload} [data]
114
+ * @typedef ReasonItem
115
+ * @property {string} [id]
116
+ * @property {string} [name]
117
+ * @property {string} [display_name]
117
118
  */
118
119
 
119
120
  /**
120
- * @typedef CreditlineDataPlatformResponse
121
- * @property {number} [code]
122
- * @property {string[]} [headers]
121
+ * @typedef GetReasonResponse
122
+ * @property {boolean} [success]
123
+ * @property {ReasonItem[]} [item_list]
123
124
  * @property {number} [item_count]
124
- * @property {Object[]} [items]
125
- * @property {string} [message]
126
125
  * @property {Page} [page]
127
- * @property {boolean} [show_mr]
128
126
  */
129
127
 
130
128
  /**
131
- * @typedef CreditNoteConfigNotificationEvents
132
- * @property {number} [expiration_reminder_to_customer]
129
+ * @typedef GetReportListData
130
+ * @property {string} [role_name]
131
+ * @property {boolean} [listing_enabled]
133
132
  */
134
133
 
135
134
  /**
136
- * @typedef CreditNoteDetails
137
- * @property {number} [available_cn_balance]
138
- * @property {number} [cn_amount]
139
- * @property {CnDetails} [cn_details]
140
- * @property {string} [cn_reference_number]
141
- * @property {string} [cn_status]
142
- * @property {string} [customer_mobile_number]
143
- * @property {RedemptionDetails[]} [redemption_details]
144
- * @property {number} [remaining_cn_amount]
135
+ * @typedef GetReportListRequest
136
+ * @property {GetReportListData} [data]
145
137
  */
146
138
 
147
139
  /**
148
- * @typedef CreditNoteDetailsRequest
149
- * @property {CnReferenceNumber} [data]
140
+ * @typedef GetAffiliate
141
+ * @property {number} [company_id]
150
142
  */
151
143
 
152
144
  /**
153
- * @typedef CreditNoteDetailsResponse
154
- * @property {CreditNoteDetails} [data]
145
+ * @typedef GetReportListResponse
155
146
  * @property {boolean} [success]
147
+ * @property {ReportItem[]} [items]
148
+ * @property {Page} [page]
149
+ * @property {number} [total_count]
156
150
  */
157
151
 
158
152
  /**
159
- * @typedef Currency
160
- * @property {string} [code]
153
+ * @typedef ReportItem
154
+ * @property {string} [id]
161
155
  * @property {string} [name]
162
- * @property {string} [symbol]
163
- */
164
-
165
- /**
166
- * @typedef DeleteConfig
167
- * @property {string} [affiliate_id]
168
- * @property {number} [seller_id]
169
- * @property {string[]} [slug_values]
170
- */
171
-
172
- /**
173
- * @typedef DeleteConfigRequest
174
- * @property {DeleteConfig} [data]
156
+ * @property {string} [description]
157
+ * @property {string[]} [allowed_filters]
158
+ * @property {Object} [config_meta]
159
+ * @property {string} [report_type]
160
+ * @property {string} [display_date]
175
161
  */
176
162
 
177
163
  /**
178
- * @typedef DeleteConfigResponse
179
- * @property {string} [message]
164
+ * @typedef GetAffiliateResponse
180
165
  * @property {boolean} [success]
166
+ * @property {Object[]} [docs]
181
167
  */
182
168
 
183
169
  /**
@@ -190,12 +176,6 @@ const Joi = require("joi");
190
176
  * @property {DownloadCreditDebitNote} [data]
191
177
  */
192
178
 
193
- /**
194
- * @typedef DownloadCreditDebitNoteResponse
195
- * @property {DownloadCreditDebitNoteResponseData[]} [data]
196
- * @property {boolean} [success]
197
- */
198
-
199
179
  /**
200
180
  * @typedef DownloadCreditDebitNoteResponseData
201
181
  * @property {string} [id]
@@ -203,1539 +183,1373 @@ const Joi = require("joi");
203
183
  */
204
184
 
205
185
  /**
206
- * @typedef DownloadReport
207
- * @property {string} [end_date]
208
- * @property {number} [page]
209
- * @property {number} [pagesize]
210
- * @property {string} [start_date]
186
+ * @typedef DownloadCreditDebitNoteResponse
187
+ * @property {boolean} [success]
188
+ * @property {DownloadCreditDebitNoteResponseData[]} [data]
211
189
  */
212
190
 
213
191
  /**
214
- * @typedef DownloadReportCustomerCnRequest
215
- * @property {CnDownloadReport} [data]
192
+ * @typedef PaymentProcessPayload
193
+ * @property {string} [platform]
194
+ * @property {string} [amount]
195
+ * @property {string} [transaction_type]
196
+ * @property {string} [source_reference]
197
+ * @property {string} [total_amount]
198
+ * @property {Object} [meta]
199
+ * @property {string} [currency]
200
+ * @property {string} [seller_id]
201
+ * @property {string} [mode_of_payment]
202
+ * @property {string} [invoice_number]
216
203
  */
217
204
 
218
205
  /**
219
- * @typedef DownloadReportCustomerCnResponse
220
- * @property {DownloadReportResponseData[]} [data]
206
+ * @typedef PaymentProcessRequest
207
+ * @property {PaymentProcessPayload} [data]
221
208
  */
222
209
 
223
210
  /**
224
- * @typedef DownloadReportItems
225
- * @property {string} [end_date]
226
- * @property {GenerateReportFilters} [filters]
227
- * @property {GenerateReportMeta} [meta]
228
- * @property {string} [report_id]
229
- * @property {string} [start_date]
230
- * @property {string} [type_of_request]
211
+ * @typedef PaymentProcessResponse
212
+ * @property {number} [code]
213
+ * @property {string} [message]
214
+ * @property {Object} [meta]
215
+ * @property {string} [transaction_id]
216
+ * @property {string} [redirect_url]
231
217
  */
232
218
 
233
219
  /**
234
- * @typedef DownloadReportList
235
- * @property {number} [item_count]
236
- * @property {DownloadReportItems[]} [items]
237
- * @property {Page} [page]
220
+ * @typedef CreditlineDataPlatformPayload
221
+ * @property {number} [page]
222
+ * @property {string} [seller_id]
223
+ * @property {string} [end_end]
224
+ * @property {string} [start_end]
225
+ * @property {number} [pagesize]
238
226
  */
239
227
 
240
228
  /**
241
- * @typedef DownloadReportResponseData
242
- * @property {string} [created_at]
243
- * @property {string} [display_name]
244
- * @property {string} [download_link]
245
- * @property {string} [end_date]
246
- * @property {Object} [filters]
247
- * @property {string} [full_name]
248
- * @property {Object} [meta]
249
- * @property {string} [msg]
250
- * @property {string} [report_config_id]
251
- * @property {string} [report_name]
252
- * @property {Object} [request_dict]
253
- * @property {string} [requested_by]
254
- * @property {string} [start_date]
255
- * @property {string} [status]
229
+ * @typedef CreditlineDataPlatformRequest
230
+ * @property {CreditlineDataPlatformPayload} [data]
256
231
  */
257
232
 
258
233
  /**
259
- * @typedef Error
260
- * @property {string} [reason]
261
- * @property {boolean} [success]
234
+ * @typedef CreditlineDataPlatformResponse
235
+ * @property {Object[]} [items]
236
+ * @property {number} [code]
237
+ * @property {boolean} [show_mr]
238
+ * @property {Object} [page]
239
+ * @property {string} [message]
240
+ * @property {string[]} [headers]
241
+ * @property {number} [item_count]
262
242
  */
263
243
 
264
244
  /**
265
- * @typedef GenerateReportCustomerCnRequest
266
- * @property {CnGenerateReport} [data]
245
+ * @typedef IsCreditlinePayload
246
+ * @property {string} [seller_id]
267
247
  */
268
248
 
269
249
  /**
270
- * @typedef GenerateReportCustomerCnResponse
271
- * @property {GenerateReportCustomerCnResponseData} [data]
250
+ * @typedef IsCreditlinePlatformRequest
251
+ * @property {IsCreditlinePayload} [data]
272
252
  */
273
253
 
274
254
  /**
275
- * @typedef GenerateReportCustomerCnResponseData
276
- * @property {string[]} [allowed_filters]
277
- * @property {string} [end_date]
278
- * @property {string[]} [headers]
279
- * @property {number} [item_count]
280
- * @property {CnGenerateReportItems[]} [items]
281
- * @property {Page} [page]
282
- * @property {string[]} [primary_headers]
283
- * @property {Object} [row_header_display_order]
284
- * @property {string} [start_date]
255
+ * @typedef IsCreditlinePlatformResponse
256
+ * @property {boolean} [is_creditline_opted]
257
+ * @property {number} [code]
285
258
  */
286
259
 
287
260
  /**
288
- * @typedef GenerateReportFilters
289
- * @property {string[]} [brand]
290
- * @property {string[]} [channel]
291
- * @property {string[]} [company]
261
+ * @typedef InvoiceTypePayloadData
262
+ * @property {boolean} [is_active]
292
263
  */
293
264
 
294
265
  /**
295
- * @typedef GenerateReportJson
296
- * @property {string} [end_date]
297
- * @property {string[]} [headers]
298
- * @property {number} [item_count]
299
- * @property {string[][]} [items]
300
- * @property {Page} [page]
301
- * @property {string} [start_date]
266
+ * @typedef InvoiceTypeRequest
267
+ * @property {InvoiceTypePayloadData} [data]
302
268
  */
303
269
 
304
270
  /**
305
- * @typedef GenerateReportMeta
306
- * @property {string} [brand]
307
- * @property {string} [channel]
308
- * @property {string} [company]
271
+ * @typedef InvoiceTypeResponseItems
272
+ * @property {string} [text]
273
+ * @property {string} [value]
309
274
  */
310
275
 
311
276
  /**
312
- * @typedef GenerateReportPlatform
313
- * @property {string} [end_date]
314
- * @property {GenerateReportFilters} [filters]
315
- * @property {GenerateReportMeta} [meta]
316
- * @property {string} [report_id]
317
- * @property {string} [start_date]
277
+ * @typedef InvoiceTypeResponse
278
+ * @property {boolean} [success]
279
+ * @property {InvoiceTypeResponseItems[]} [invoice_type_list]
280
+ * @property {InvoiceTypeResponseItems[]} [payment_status_list]
318
281
  */
319
282
 
320
283
  /**
321
- * @typedef GenerateReportRequest
322
- * @property {GenerateReportPlatform} [data]
284
+ * @typedef InoviceListingPayloadDataFilters
285
+ * @property {string[]} [payment_status]
286
+ * @property {string[]} [invoice_type]
287
+ * @property {string[]} [company_id]
323
288
  */
324
289
 
325
290
  /**
326
- * @typedef GetAffiliate
327
- * @property {number} [company_id]
291
+ * @typedef InvoiceListingPayloadData
292
+ * @property {number} [page_size]
293
+ * @property {number} [page]
294
+ * @property {string} [start_date]
295
+ * @property {string} [end_date]
296
+ * @property {string} [search]
297
+ * @property {InoviceListingPayloadDataFilters} [filters]
328
298
  */
329
299
 
330
300
  /**
331
- * @typedef GetAffiliateResponse
332
- * @property {Object[]} [docs]
333
- * @property {boolean} [success]
301
+ * @typedef InvoiceListingRequest
302
+ * @property {InvoiceListingPayloadData} [data]
334
303
  */
335
304
 
336
305
  /**
337
- * @typedef GetCnConfigRequest
338
- * @property {DeleteConfig} [data]
306
+ * @typedef UnpaidInvoiceDataItems
307
+ * @property {number} [total_unpaid_invoice_count]
308
+ * @property {string} [currency]
309
+ * @property {number} [total_unpaid_amount]
339
310
  */
340
311
 
341
312
  /**
342
- * @typedef GetCnConfigResponse
343
- * @property {GetCnConfigResponseData} [data]
344
- * @property {boolean} [success]
313
+ * @typedef InvoiceListingResponseItems
314
+ * @property {string} [amount]
315
+ * @property {string} [company]
316
+ * @property {string} [status]
317
+ * @property {string} [due_date]
318
+ * @property {string} [invoice_date]
319
+ * @property {string} [invoice_type]
320
+ * @property {string} [period]
321
+ * @property {string} [invoice_number]
322
+ * @property {boolean} [is_downloadable]
323
+ * @property {string} [invoice_id]
345
324
  */
346
325
 
347
326
  /**
348
- * @typedef GetCnConfigResponseData
349
- * @property {string} [affiliate_id]
350
- * @property {string} [currency_type]
351
- * @property {boolean} [is_cn_as_refund_method]
352
- * @property {GetCnConfigResponseMeta} [meta]
353
- * @property {CreditNoteConfigNotificationEvents} [notification_events]
354
- * @property {string[]} [redemption_ordering_channel]
355
- * @property {number} [seller_id]
356
- * @property {number} [validity]
327
+ * @typedef InvoiceListingResponse
328
+ * @property {UnpaidInvoiceDataItems} [unpaid_invoice_data]
329
+ * @property {InvoiceListingResponseItems[]} [items]
330
+ * @property {Page} [page]
331
+ * @property {number} [item_count]
357
332
  */
358
333
 
359
334
  /**
360
- * @typedef GetCnConfigResponseMeta
361
- * @property {string} [reason]
362
- * @property {string[]} [source_channel]
335
+ * @typedef InvoicePdfPayloadData
336
+ * @property {string[]} [invoice_number]
363
337
  */
364
338
 
365
339
  /**
366
- * @typedef GetCustomerCreditBalance
367
- * @property {string} [affiliate_id]
368
- * @property {string} [customer_mobile_number]
369
- * @property {number} [seller_id]
340
+ * @typedef InvoicePdfRequest
341
+ * @property {InvoicePdfPayloadData} [data]
370
342
  */
371
343
 
372
344
  /**
373
- * @typedef GetCustomerCreditBalanceRequest
374
- * @property {GetCustomerCreditBalance} [data]
345
+ * @typedef InvoicePdfResponse
346
+ * @property {boolean} [success]
347
+ * @property {string[]} [data]
348
+ * @property {string[]} [error]
375
349
  */
376
350
 
377
351
  /**
378
- * @typedef GetCustomerCreditBalanceResponse
379
- * @property {GetCustomerCreditBalanceResponseData} [data]
380
- * @property {boolean} [success]
352
+ * @typedef IsCnRefundMethodData
353
+ * @property {string} [affiliate_id]
354
+ * @property {boolean} [toggle_edit_required]
355
+ * @property {number} [seller_id]
381
356
  */
382
357
 
383
358
  /**
384
- * @typedef GetCustomerCreditBalanceResponseData
385
- * @property {string} [customer_mobile_number]
386
- * @property {number} [total_credited_balance]
359
+ * @typedef IsCnRefundMethodRequest
360
+ * @property {IsCnRefundMethodData} [data]
387
361
  */
388
362
 
389
363
  /**
390
- * @typedef GetEngineData
391
- * @property {Object} [filters]
392
- * @property {string[]} [project]
393
- * @property {string} [table_name]
364
+ * @typedef IsCnRefundMethodResponseData
365
+ * @property {boolean} [is_first_time_user]
394
366
  */
395
367
 
396
368
  /**
397
- * @typedef GetEngineRequest
398
- * @property {GetEngineData} [data]
369
+ * @typedef IsCnRefundMethodResponse
370
+ * @property {boolean} [success]
371
+ * @property {IsCnRefundMethodResponseData} [data]
399
372
  */
400
373
 
401
374
  /**
402
- * @typedef GetEngineResponse
403
- * @property {number} [item_count]
404
- * @property {Object[]} [items]
405
- * @property {Page} [page]
406
- * @property {boolean} [success]
375
+ * @typedef CreditNoteConfigNotificationEvents
376
+ * @property {number} [expiration_reminder_to_customer]
407
377
  */
408
378
 
409
379
  /**
410
- * @typedef GetPdfUrlViewRequest
411
- * @property {CnReferenceNumber} [data]
380
+ * @typedef CreateSellerCreditNoteConfig
381
+ * @property {boolean} [is_cn_as_refund_method]
382
+ * @property {string} [affiliate_id]
383
+ * @property {string[]} [source_channel]
384
+ * @property {number} [seller_id]
385
+ * @property {CreditNoteConfigNotificationEvents} [notification_events]
386
+ * @property {string} [sales_channel_name]
387
+ * @property {string[]} [ordering_channel]
388
+ * @property {number} [validity]
389
+ * @property {string} [currency_type]
390
+ * @property {string[]} [slug_values]
412
391
  */
413
392
 
414
393
  /**
415
- * @typedef GetPdfUrlViewResponse
416
- * @property {GetPdfUrlViewResponseData} [data]
417
- * @property {boolean} [success]
394
+ * @typedef CreateSellerCreditNoteConfigRequest
395
+ * @property {CreateSellerCreditNoteConfig} [data]
418
396
  */
419
397
 
420
398
  /**
421
- * @typedef GetPdfUrlViewResponseData
422
- * @property {string} [cn_reference_number]
423
- * @property {string} [s3_pdf_link]
399
+ * @typedef CreateSellerCreditNoteConfigResponse
400
+ * @property {boolean} [success]
401
+ * @property {string} [message]
424
402
  */
425
403
 
426
404
  /**
427
- * @typedef GetReason
428
- * @property {string} [reason_type]
405
+ * @typedef DeleteConfig
406
+ * @property {string} [affiliate_id]
407
+ * @property {string[]} [slug_values]
408
+ * @property {number} [seller_id]
429
409
  */
430
410
 
431
411
  /**
432
- * @typedef GetReasonRequest
433
- * @property {GetReason} [data]
412
+ * @typedef DeleteConfigRequest
413
+ * @property {DeleteConfig} [data]
434
414
  */
435
415
 
436
416
  /**
437
- * @typedef GetReasonResponse
438
- * @property {number} [item_count]
439
- * @property {ReasonItem[]} [item_list]
440
- * @property {Page} [page]
417
+ * @typedef DeleteConfigResponse
441
418
  * @property {boolean} [success]
419
+ * @property {string} [message]
442
420
  */
443
421
 
444
422
  /**
445
- * @typedef GetReportingFilters
446
- * @property {Object[]} [options]
447
- * @property {string} [text]
448
- * @property {string} [type]
449
- * @property {string} [value]
423
+ * @typedef ChannelDisplayName
424
+ * @property {string} [platform_pos]
450
425
  */
451
426
 
452
427
  /**
453
- * @typedef GetReportingFiltersResponse
454
- * @property {GetReportingNestedFilters[]} [filters]
455
- * @property {GetReportingFilters} [search]
456
- * @property {GetReportingFilters} [status]
428
+ * @typedef ChannelDisplayNameResponse
429
+ * @property {boolean} [success]
430
+ * @property {ChannelDisplayName} [data]
457
431
  */
458
432
 
459
433
  /**
460
- * @typedef GetReportingNestedFilters
461
- * @property {Object[]} [options]
462
- * @property {string} [placeholder_text]
463
- * @property {boolean} [required]
464
- * @property {string} [text]
465
- * @property {string} [type]
466
- * @property {string} [value]
434
+ * @typedef CnReferenceNumber
435
+ * @property {string} [cn_reference_number]
467
436
  */
468
437
 
469
438
  /**
470
- * @typedef GetReportListData
471
- * @property {boolean} [listing_enabled]
472
- * @property {string} [role_name]
439
+ * @typedef GetPdfUrlViewRequest
440
+ * @property {CnReferenceNumber} [data]
473
441
  */
474
442
 
475
443
  /**
476
- * @typedef GetReportListRequest
477
- * @property {GetReportListData} [data]
444
+ * @typedef GetPdfUrlViewResponseData
445
+ * @property {string} [s3_pdf_link]
446
+ * @property {string} [cn_reference_number]
478
447
  */
479
448
 
480
449
  /**
481
- * @typedef GetReportListResponse
482
- * @property {ReportItem[]} [items]
483
- * @property {Page} [page]
450
+ * @typedef GetPdfUrlViewResponse
484
451
  * @property {boolean} [success]
485
- * @property {number} [total_count]
452
+ * @property {GetPdfUrlViewResponseData} [data]
486
453
  */
487
454
 
488
455
  /**
489
- * @typedef InoviceListingPayloadDataFilters
490
- * @property {string[]} [company_id]
491
- * @property {string[]} [invoice_type]
492
- * @property {string[]} [payment_status]
456
+ * @typedef CreditNoteDetailsRequest
457
+ * @property {CnReferenceNumber} [data]
493
458
  */
494
459
 
495
460
  /**
496
- * @typedef InvoiceActivityLogError
497
- * @property {string} [reason]
461
+ * @typedef CnDetails
462
+ * @property {string} [staff_id]
463
+ * @property {string} [expiry_date]
464
+ * @property {string} [channel_of_issuance]
465
+ * @property {string} [order_id]
466
+ * @property {string} [date_issued]
467
+ * @property {string} [ordering_channel]
468
+ * @property {string} [shipment_id]
469
+ * @property {string} [store_id]
470
+ * @property {string} [invoice_number]
498
471
  */
499
472
 
500
473
  /**
501
- * @typedef InvoiceActivityLogsResponse
502
- * @property {InvoiceActivityLogsResponseData[]} [data]
474
+ * @typedef RedemptionDetails
475
+ * @property {string} [staff_id]
476
+ * @property {string} [created_at]
477
+ * @property {string} [order_id]
478
+ * @property {string} [store_id]
479
+ * @property {string} [shipment_id]
480
+ * @property {string} [ordering_channel]
481
+ * @property {number} [amount_debited]
482
+ * @property {string} [invoice_number]
503
483
  */
504
484
 
505
485
  /**
506
- * @typedef InvoiceActivityLogsResponseData
507
- * @property {boolean} [is_resolved]
508
- * @property {number} [max_retry_attempts]
509
- * @property {string} [performed_by]
510
- * @property {string} [reason]
511
- * @property {number} [retry_attempts]
512
- * @property {string} [status]
486
+ * @typedef CreditNoteDetails
487
+ * @property {string} [cn_status]
488
+ * @property {string} [customer_mobile_number]
489
+ * @property {string} [cn_reference_number]
490
+ * @property {Object} [cn_details]
491
+ * @property {RedemptionDetails[]} [redemption_details]
492
+ * @property {number} [remaining_cn_amount]
493
+ * @property {number} [available_cn_balance]
494
+ * @property {number} [cn_amount]
513
495
  */
514
496
 
515
497
  /**
516
- * @typedef InvoiceListingPayloadData
517
- * @property {string} [end_date]
518
- * @property {InoviceListingPayloadDataFilters} [filters]
519
- * @property {number} [page]
520
- * @property {number} [page_size]
521
- * @property {string} [search]
522
- * @property {string} [start_date]
498
+ * @typedef CreditNoteDetailsResponse
499
+ * @property {boolean} [success]
500
+ * @property {CreditNoteDetails} [data]
523
501
  */
524
502
 
525
503
  /**
526
- * @typedef InvoiceListingRequest
527
- * @property {InvoiceListingPayloadData} [data]
504
+ * @typedef GetCustomerCreditBalance
505
+ * @property {string} [affiliate_id]
506
+ * @property {number} [seller_id]
507
+ * @property {string} [customer_mobile_number]
528
508
  */
529
509
 
530
510
  /**
531
- * @typedef InvoiceListingResponse
532
- * @property {number} [item_count]
533
- * @property {InvoiceListingResponseItems[]} [items]
534
- * @property {Page} [page]
535
- * @property {UnpaidInvoiceDataItems} [unpaid_invoice_data]
511
+ * @typedef GetCustomerCreditBalanceRequest
512
+ * @property {GetCustomerCreditBalance} [data]
536
513
  */
537
514
 
538
515
  /**
539
- * @typedef InvoiceListingResponseItems
540
- * @property {string} [amount]
541
- * @property {string} [company]
542
- * @property {Currency} [currency]
543
- * @property {string} [due_date]
544
- * @property {string} [invoice_date]
545
- * @property {string} [invoice_id]
546
- * @property {string} [invoice_number]
547
- * @property {string} [invoice_type]
548
- * @property {boolean} [is_downloadable]
549
- * @property {string} [period]
550
- * @property {string} [status]
516
+ * @typedef GetCustomerCreditBalanceResponseData
517
+ * @property {string} [customer_mobile_number]
518
+ * @property {number} [total_credited_balance]
551
519
  */
552
520
 
553
521
  /**
554
- * @typedef InvoicePaymentDetailsResponse
555
- * @property {InvoicePaymentDetailsResponseData} [data]
556
- * @property {boolean} [payment_details_visible]
522
+ * @typedef GetCustomerCreditBalanceResponse
557
523
  * @property {boolean} [success]
524
+ * @property {GetCustomerCreditBalanceResponseData} [data]
558
525
  */
559
526
 
560
527
  /**
561
- * @typedef InvoicePaymentDetailsResponseData
562
- * @property {Object[]} [failed_attempts_details]
563
- * @property {PaidInvoicePaymentDetail[]} [paid_invoice_payment_details]
564
- */
565
-
566
- /**
567
- * @typedef InvoicePdfPayloadData
568
- * @property {string[]} [invoice_number]
569
- */
570
-
571
- /**
572
- * @typedef InvoicePdfRequest
573
- * @property {InvoicePdfPayloadData} [data]
574
- */
575
-
576
- /**
577
- * @typedef InvoicePdfResponse
578
- * @property {string[]} [data]
579
- * @property {string[]} [error]
580
- * @property {boolean} [success]
528
+ * @typedef GetCnConfigRequest
529
+ * @property {DeleteConfig} [data]
581
530
  */
582
531
 
583
532
  /**
584
- * @typedef InvoiceTypePayloadData
585
- * @property {boolean} [is_active]
533
+ * @typedef GetCnConfigResponseMeta
534
+ * @property {string} [reason]
535
+ * @property {string[]} [source_channel]
586
536
  */
587
537
 
588
538
  /**
589
- * @typedef InvoiceTypeRequest
590
- * @property {InvoiceTypePayloadData} [data]
539
+ * @typedef GetCnConfigResponseData
540
+ * @property {boolean} [is_cn_as_refund_method]
541
+ * @property {string} [affiliate_id]
542
+ * @property {GetCnConfigResponseMeta} [meta]
543
+ * @property {number} [seller_id]
544
+ * @property {CreditNoteConfigNotificationEvents} [notification_events]
545
+ * @property {number} [validity]
546
+ * @property {string[]} [redemption_ordering_channel]
547
+ * @property {string} [currency_type]
591
548
  */
592
549
 
593
550
  /**
594
- * @typedef InvoiceTypeResponse
595
- * @property {InvoiceTypeResponseItems[]} [invoice_type_list]
596
- * @property {InvoiceTypeResponseItems[]} [payment_status_list]
551
+ * @typedef GetCnConfigResponse
597
552
  * @property {boolean} [success]
553
+ * @property {GetCnConfigResponseData} [data]
598
554
  */
599
555
 
600
556
  /**
601
- * @typedef InvoiceTypeResponseItems
602
- * @property {string} [text]
603
- * @property {string} [value]
557
+ * @typedef CnGenerateReportFilters
558
+ * @property {string[]} [staff_id]
559
+ * @property {string[]} [channel_of_issuance]
560
+ * @property {string[]} [utilisation]
561
+ * @property {string[]} [ordering_channel]
562
+ * @property {number[]} [store_id]
563
+ * @property {string[]} [types_of_transaction]
604
564
  */
605
565
 
606
566
  /**
607
- * @typedef IsCnRefundMethodData
567
+ * @typedef CnGenerateReport
568
+ * @property {number} [page]
569
+ * @property {string} [end_date]
570
+ * @property {number} [pagesize]
571
+ * @property {CnGenerateReportFilters} [filters]
608
572
  * @property {string} [affiliate_id]
609
- * @property {number} [seller_id]
610
- * @property {boolean} [toggle_edit_required]
573
+ * @property {GenerateReportFilters} [meta]
574
+ * @property {string} [search]
575
+ * @property {string} [report_id]
576
+ * @property {string} [search_type]
577
+ * @property {string} [start_date]
611
578
  */
612
579
 
613
580
  /**
614
- * @typedef IsCnRefundMethodRequest
615
- * @property {IsCnRefundMethodData} [data]
581
+ * @typedef GenerateReportCustomerCnRequest
582
+ * @property {CnGenerateReport} [data]
616
583
  */
617
584
 
618
585
  /**
619
- * @typedef IsCnRefundMethodResponse
620
- * @property {IsCnRefundMethodResponseData} [data]
621
- * @property {boolean} [success]
586
+ * @typedef CnGenerateReportItems
587
+ * @property {string} [expiry_date]
588
+ * @property {string} [status]
589
+ * @property {number} [total_amount]
590
+ * @property {string} [order_id]
591
+ * @property {string} [date_issued]
592
+ * @property {string} [shipment_id]
593
+ * @property {string} [invoice_number]
594
+ * @property {string} [credit_note_number]
622
595
  */
623
596
 
624
597
  /**
625
- * @typedef IsCnRefundMethodResponseData
626
- * @property {boolean} [is_first_time_user]
598
+ * @typedef GenerateReportCustomerCnResponseData
599
+ * @property {CnGenerateReportItems[]} [items]
600
+ * @property {Object} [row_header_display_order]
601
+ * @property {string} [end_date]
602
+ * @property {Page} [page]
603
+ * @property {string[]} [headers]
604
+ * @property {string[]} [primary_headers]
605
+ * @property {string[]} [allowed_filters]
606
+ * @property {string} [start_date]
607
+ * @property {number} [item_count]
627
608
  */
628
609
 
629
610
  /**
630
- * @typedef IsCreditlinePayload
631
- * @property {string} [seller_id]
611
+ * @typedef GenerateReportCustomerCnResponse
612
+ * @property {GenerateReportCustomerCnResponseData} [data]
632
613
  */
633
614
 
634
615
  /**
635
- * @typedef IsCreditlinePlatformRequest
636
- * @property {IsCreditlinePayload} [data]
616
+ * @typedef CnDownloadReport
617
+ * @property {number} [page]
618
+ * @property {string} [start_date]
619
+ * @property {string} [end_date]
620
+ * @property {string} [affiliate_id]
621
+ * @property {string} [search]
622
+ * @property {string[]} [status]
623
+ * @property {string} [search_type]
624
+ * @property {number} [pagesize]
637
625
  */
638
626
 
639
627
  /**
640
- * @typedef IsCreditlinePlatformResponse
641
- * @property {number} [code]
642
- * @property {boolean} [is_creditline_opted]
628
+ * @typedef DownloadReportCustomerCnRequest
629
+ * @property {CnDownloadReport} [data]
643
630
  */
644
631
 
645
632
  /**
646
- * @typedef Page
647
- * @property {number} [current]
648
- * @property {boolean} [has_next]
649
- * @property {boolean} [has_previous]
650
- * @property {number} [item_total]
651
- * @property {string} [next_id]
652
- * @property {number} [size]
653
- * @property {string} type
633
+ * @typedef DownloadReportResponseData
634
+ * @property {string} [report_config_id]
635
+ * @property {string} [full_name]
636
+ * @property {string} [requested_by]
637
+ * @property {string} [start_date]
638
+ * @property {string} [end_date]
639
+ * @property {Object} [request_dict]
640
+ * @property {string} [download_link]
641
+ * @property {string} [created_at]
642
+ * @property {Object} [meta]
643
+ * @property {string} [msg]
644
+ * @property {string} [report_name]
645
+ * @property {string} [status]
646
+ * @property {string} [display_name]
647
+ * @property {Object} [filters]
654
648
  */
655
649
 
656
650
  /**
657
- * @typedef PaidInvoicePaymentDetail
658
- * @property {number} [amount]
659
- * @property {string} [date_of_payment]
660
- * @property {PaymentDetail[]} [payment_details]
651
+ * @typedef DownloadReportCustomerCnResponse
652
+ * @property {DownloadReportResponseData[]} [data]
661
653
  */
662
654
 
663
655
  /**
664
- * @typedef PaymentDetail
665
- * @property {string} [display_name]
656
+ * @typedef GetReportingFilters
657
+ * @property {string} [text]
658
+ * @property {string} [type]
659
+ * @property {Object[]} [options]
666
660
  * @property {string} [value]
667
661
  */
668
662
 
669
663
  /**
670
- * @typedef PaymentProcessPayload
671
- * @property {string} [amount]
672
- * @property {string} [currency]
673
- * @property {string} [invoice_number]
674
- * @property {Object} [meta]
675
- * @property {string} [mode_of_payment]
676
- * @property {string} [platform]
677
- * @property {string} [seller_id]
678
- * @property {string} [source_reference]
679
- * @property {string} [total_amount]
680
- * @property {string} [transaction_type]
681
- */
682
-
683
- /**
684
- * @typedef PaymentProcessRequest
685
- * @property {PaymentProcessPayload} [data]
664
+ * @typedef GetReportingNestedFilters
665
+ * @property {string} [text]
666
+ * @property {Object[]} [options]
667
+ * @property {boolean} [required]
668
+ * @property {string} [placeholder_text]
669
+ * @property {string} [type]
670
+ * @property {string} [value]
686
671
  */
687
672
 
688
673
  /**
689
- * @typedef PaymentProcessResponse
690
- * @property {number} [code]
691
- * @property {string} [message]
692
- * @property {Object} [meta]
693
- * @property {string} [redirect_url]
694
- * @property {string} [transaction_id]
695
- */
696
-
697
- /**
698
- * @typedef ReasonItem
699
- * @property {string} [display_name]
700
- * @property {string} [id]
701
- * @property {string} [name]
702
- */
703
-
704
- /**
705
- * @typedef RedemptionDetails
706
- * @property {number} [amount_debited]
707
- * @property {string} [created_at]
708
- * @property {string} [invoice_number]
709
- * @property {string} [order_id]
710
- * @property {string} [ordering_channel]
711
- * @property {string} [shipment_id]
712
- * @property {string} [staff_id]
713
- * @property {string} [store_id]
714
- */
715
-
716
- /**
717
- * @typedef ReportItem
718
- * @property {string[]} [allowed_filters]
719
- * @property {Object} [config_meta]
720
- * @property {string} [description]
721
- * @property {string} [display_date]
722
- * @property {string} [id]
723
- * @property {string} [name]
724
- * @property {string} [report_type]
725
- */
726
-
727
- /**
728
- * @typedef UnlockCreditNoteRequest
729
- * @property {UnlockCreditNoteRequestData} [data]
730
- */
731
-
732
- /**
733
- * @typedef UnlockCreditNoteRequestData
734
- * @property {string} [description]
735
- * @property {string[]} [locked_credit_notes]
736
- * @property {string} [seller_id]
737
- * @property {string} [unlock_reason]
738
- */
739
-
740
- /**
741
- * @typedef UnlockCreditNoteResponse
742
- * @property {UnlockCreditNoteResponseData} [data]
743
- * @property {boolean} [success]
744
- */
745
-
746
- /**
747
- * @typedef UnlockCreditNoteResponseData
748
- * @property {boolean} [is_cn_unlocked]
749
- * @property {string} [status]
750
- */
751
-
752
- /**
753
- * @typedef UnpaidInvoiceDataItems
754
- * @property {string} [currency]
755
- * @property {number} [total_unpaid_amount]
756
- * @property {number} [total_unpaid_invoice_count]
674
+ * @typedef GetReportingFiltersResponse
675
+ * @property {GetReportingFilters} [search]
676
+ * @property {GetReportingNestedFilters[]} [filters]
677
+ * @property {GetReportingFilters} [status]
757
678
  */
758
679
 
759
680
  class FinancePlatformModel {
760
- /** @returns {ChannelDisplayName} */
761
- static ChannelDisplayName() {
762
- return Joi.object({
763
- platform_pos: Joi.string().allow(""),
764
- });
765
- }
766
-
767
- /** @returns {ChannelDisplayNameResponse} */
768
- static ChannelDisplayNameResponse() {
681
+ /** @returns {GenerateReportMeta} */
682
+ static GenerateReportMeta() {
769
683
  return Joi.object({
770
- data: FinancePlatformModel.ChannelDisplayName(),
771
- success: Joi.boolean(),
684
+ brand: Joi.string().allow(""),
685
+ company: Joi.string().allow(""),
686
+ channel: Joi.string().allow(""),
772
687
  });
773
688
  }
774
689
 
775
- /** @returns {CnDetails} */
776
- static CnDetails() {
690
+ /** @returns {GenerateReportFilters} */
691
+ static GenerateReportFilters() {
777
692
  return Joi.object({
778
- channel_of_issuance: Joi.string().allow(""),
779
- date_issued: Joi.string().allow(""),
780
- expiry_date: Joi.string().allow(""),
781
- invoice_number: Joi.string().allow(""),
782
- order_id: Joi.string().allow(""),
783
- ordering_channel: Joi.string().allow(""),
784
- shipment_id: Joi.string().allow(""),
785
- staff_id: Joi.string().allow(""),
786
- store_id: Joi.string().allow(""),
693
+ brand: Joi.array().items(Joi.string().allow("")),
694
+ company: Joi.array().items(Joi.string().allow("")),
695
+ channel: Joi.array().items(Joi.string().allow("")),
787
696
  });
788
697
  }
789
698
 
790
- /** @returns {CnDownloadReport} */
791
- static CnDownloadReport() {
699
+ /** @returns {GenerateReportPlatform} */
700
+ static GenerateReportPlatform() {
792
701
  return Joi.object({
793
- affiliate_id: Joi.string().allow(""),
794
- end_date: Joi.string().allow(""),
795
- page: Joi.number(),
796
- pagesize: Joi.number(),
797
- search: Joi.string().allow(""),
798
- search_type: Joi.string().allow(""),
799
702
  start_date: Joi.string().allow(""),
800
- status: Joi.array().items(Joi.string().allow("")),
801
- });
802
- }
803
-
804
- /** @returns {CnGenerateReport} */
805
- static CnGenerateReport() {
806
- return Joi.object({
807
- affiliate_id: Joi.string().allow(""),
808
703
  end_date: Joi.string().allow(""),
809
- filters: FinancePlatformModel.CnGenerateReportFilters(),
810
- meta: FinancePlatformModel.GenerateReportFilters(),
811
- page: Joi.number(),
812
- pagesize: Joi.number(),
704
+ meta: FinancePlatformModel.GenerateReportMeta(),
813
705
  report_id: Joi.string().allow(""),
814
- search: Joi.string().allow(""),
815
- search_type: Joi.string().allow(""),
816
- start_date: Joi.string().allow(""),
817
- });
818
- }
819
-
820
- /** @returns {CnGenerateReportFilters} */
821
- static CnGenerateReportFilters() {
822
- return Joi.object({
823
- channel_of_issuance: Joi.array().items(Joi.string().allow("")),
824
- ordering_channel: Joi.array().items(Joi.string().allow("")),
825
- staff_id: Joi.array().items(Joi.string().allow("")),
826
- store_id: Joi.array().items(Joi.number()),
827
- types_of_transaction: Joi.array().items(Joi.string().allow("")),
828
- utilisation: Joi.array().items(Joi.string().allow("")),
829
- });
830
- }
831
-
832
- /** @returns {CnGenerateReportItems} */
833
- static CnGenerateReportItems() {
834
- return Joi.object({
835
- credit_note_number: Joi.string().allow(""),
836
- date_issued: Joi.string().allow(""),
837
- expiry_date: Joi.string().allow(""),
838
- invoice_number: Joi.string().allow(""),
839
- order_id: Joi.string().allow(""),
840
- shipment_id: Joi.string().allow(""),
841
- status: Joi.string().allow(""),
842
- total_amount: Joi.number(),
706
+ filters: FinancePlatformModel.GenerateReportFilters(),
843
707
  });
844
708
  }
845
709
 
846
- /** @returns {CnReferenceNumber} */
847
- static CnReferenceNumber() {
710
+ /** @returns {GenerateReportRequest} */
711
+ static GenerateReportRequest() {
848
712
  return Joi.object({
849
- cn_reference_number: Joi.string().allow(""),
713
+ data: FinancePlatformModel.GenerateReportPlatform(),
850
714
  });
851
715
  }
852
716
 
853
- /** @returns {CreateSellerCreditNoteConfig} */
854
- static CreateSellerCreditNoteConfig() {
717
+ /** @returns {Page} */
718
+ static Page() {
855
719
  return Joi.object({
856
- affiliate_id: Joi.string().allow(""),
857
- currency_type: Joi.string().allow(""),
858
- is_cn_as_refund_method: Joi.boolean(),
859
- notification_events: FinancePlatformModel.CreditNoteConfigNotificationEvents(),
860
- ordering_channel: Joi.array().items(Joi.string().allow("")),
861
- sales_channel_name: Joi.string().allow(""),
862
- seller_id: Joi.number(),
863
- slug_values: Joi.array().items(Joi.string().allow("")),
864
- source_channel: Joi.array().items(Joi.string().allow("")),
865
- validity: Joi.number(),
720
+ item_total: Joi.number(),
721
+ next_id: Joi.string().allow(""),
722
+ has_previous: Joi.boolean(),
723
+ has_next: Joi.boolean(),
724
+ current: Joi.number(),
725
+ type: Joi.string().allow("").required(),
726
+ size: Joi.number(),
866
727
  });
867
728
  }
868
729
 
869
- /** @returns {CreateSellerCreditNoteConfigRequest} */
870
- static CreateSellerCreditNoteConfigRequest() {
730
+ /** @returns {GenerateReportJson} */
731
+ static GenerateReportJson() {
871
732
  return Joi.object({
872
- data: FinancePlatformModel.CreateSellerCreditNoteConfig(),
733
+ items: Joi.array().items(Joi.array().items(Joi.string().allow(""))),
734
+ page: FinancePlatformModel.Page(),
735
+ end_date: Joi.string().allow(""),
736
+ headers: Joi.array().items(Joi.string().allow("")),
737
+ start_date: Joi.string().allow(""),
738
+ item_count: Joi.number(),
873
739
  });
874
740
  }
875
741
 
876
- /** @returns {CreateSellerCreditNoteConfigResponse} */
877
- static CreateSellerCreditNoteConfigResponse() {
742
+ /** @returns {Error} */
743
+ static Error() {
878
744
  return Joi.object({
879
- message: Joi.string().allow(""),
745
+ reason: Joi.string().allow(""),
880
746
  success: Joi.boolean(),
881
747
  });
882
748
  }
883
749
 
884
- /** @returns {CreditlineDataPlatformPayload} */
885
- static CreditlineDataPlatformPayload() {
750
+ /** @returns {DownloadReport} */
751
+ static DownloadReport() {
886
752
  return Joi.object({
887
- end_end: Joi.string().allow(""),
888
753
  page: Joi.number(),
889
754
  pagesize: Joi.number(),
890
- seller_id: Joi.string().allow(""),
891
- start_end: Joi.string().allow(""),
755
+ start_date: Joi.string().allow(""),
756
+ end_date: Joi.string().allow(""),
892
757
  });
893
758
  }
894
759
 
895
- /** @returns {CreditlineDataPlatformRequest} */
896
- static CreditlineDataPlatformRequest() {
760
+ /** @returns {DownloadReportItems} */
761
+ static DownloadReportItems() {
897
762
  return Joi.object({
898
- data: FinancePlatformModel.CreditlineDataPlatformPayload(),
763
+ start_date: Joi.string().allow(""),
764
+ end_date: Joi.string().allow(""),
765
+ meta: FinancePlatformModel.GenerateReportMeta(),
766
+ report_id: Joi.string().allow(""),
767
+ filters: FinancePlatformModel.GenerateReportFilters(),
768
+ type_of_request: Joi.string().allow(""),
899
769
  });
900
770
  }
901
771
 
902
- /** @returns {CreditlineDataPlatformResponse} */
903
- static CreditlineDataPlatformResponse() {
772
+ /** @returns {DownloadReportList} */
773
+ static DownloadReportList() {
904
774
  return Joi.object({
905
- code: Joi.number(),
906
- headers: Joi.array().items(Joi.string().allow("")),
907
- item_count: Joi.number(),
908
- items: Joi.array().items(Joi.any()),
909
- message: Joi.string().allow(""),
775
+ items: Joi.array().items(FinancePlatformModel.DownloadReportItems()),
910
776
  page: FinancePlatformModel.Page(),
911
- show_mr: Joi.boolean(),
912
- });
913
- }
914
-
915
- /** @returns {CreditNoteConfigNotificationEvents} */
916
- static CreditNoteConfigNotificationEvents() {
917
- return Joi.object({
918
- expiration_reminder_to_customer: Joi.number(),
919
- });
920
- }
921
-
922
- /** @returns {CreditNoteDetails} */
923
- static CreditNoteDetails() {
924
- return Joi.object({
925
- available_cn_balance: Joi.number(),
926
- cn_amount: Joi.number(),
927
- cn_details: FinancePlatformModel.CnDetails(),
928
- cn_reference_number: Joi.string().allow(""),
929
- cn_status: Joi.string().allow(""),
930
- customer_mobile_number: Joi.string().allow(""),
931
- redemption_details: Joi.array().items(
932
- FinancePlatformModel.RedemptionDetails()
933
- ),
934
- remaining_cn_amount: Joi.number(),
935
- });
936
- }
937
-
938
- /** @returns {CreditNoteDetailsRequest} */
939
- static CreditNoteDetailsRequest() {
940
- return Joi.object({
941
- data: FinancePlatformModel.CnReferenceNumber(),
942
- });
943
- }
944
-
945
- /** @returns {CreditNoteDetailsResponse} */
946
- static CreditNoteDetailsResponse() {
947
- return Joi.object({
948
- data: FinancePlatformModel.CreditNoteDetails(),
949
- success: Joi.boolean(),
950
- });
951
- }
952
-
953
- /** @returns {Currency} */
954
- static Currency() {
955
- return Joi.object({
956
- code: Joi.string().allow(""),
957
- name: Joi.string().allow(""),
958
- symbol: Joi.string().allow(""),
959
- });
960
- }
961
-
962
- /** @returns {DeleteConfig} */
963
- static DeleteConfig() {
964
- return Joi.object({
965
- affiliate_id: Joi.string().allow(""),
966
- seller_id: Joi.number(),
967
- slug_values: Joi.array().items(Joi.string().allow("")),
968
- });
969
- }
970
-
971
- /** @returns {DeleteConfigRequest} */
972
- static DeleteConfigRequest() {
973
- return Joi.object({
974
- data: FinancePlatformModel.DeleteConfig(),
975
- });
976
- }
977
-
978
- /** @returns {DeleteConfigResponse} */
979
- static DeleteConfigResponse() {
980
- return Joi.object({
981
- message: Joi.string().allow(""),
982
- success: Joi.boolean(),
777
+ item_count: Joi.number(),
983
778
  });
984
779
  }
985
780
 
986
- /** @returns {DownloadCreditDebitNote} */
987
- static DownloadCreditDebitNote() {
781
+ /** @returns {GetEngineData} */
782
+ static GetEngineData() {
988
783
  return Joi.object({
989
- note_id: Joi.array().items(Joi.string().allow("")),
784
+ table_name: Joi.string().allow(""),
785
+ project: Joi.array().items(Joi.string().allow("")),
786
+ filters: Joi.any(),
990
787
  });
991
788
  }
992
789
 
993
- /** @returns {DownloadCreditDebitNoteRequest} */
994
- static DownloadCreditDebitNoteRequest() {
790
+ /** @returns {GetEngineRequest} */
791
+ static GetEngineRequest() {
995
792
  return Joi.object({
996
- data: FinancePlatformModel.DownloadCreditDebitNote(),
793
+ data: FinancePlatformModel.GetEngineData(),
997
794
  });
998
795
  }
999
796
 
1000
- /** @returns {DownloadCreditDebitNoteResponse} */
1001
- static DownloadCreditDebitNoteResponse() {
797
+ /** @returns {GetEngineResponse} */
798
+ static GetEngineResponse() {
1002
799
  return Joi.object({
1003
- data: Joi.array().items(
1004
- FinancePlatformModel.DownloadCreditDebitNoteResponseData()
1005
- ),
1006
800
  success: Joi.boolean(),
801
+ items: Joi.array().items(Joi.any()),
802
+ page: FinancePlatformModel.Page(),
803
+ item_count: Joi.number(),
1007
804
  });
1008
805
  }
1009
806
 
1010
- /** @returns {DownloadCreditDebitNoteResponseData} */
1011
- static DownloadCreditDebitNoteResponseData() {
1012
- return Joi.object({
1013
- id: Joi.string().allow(""),
1014
- pdf_s3_url: Joi.string().allow(""),
1015
- });
1016
- }
1017
-
1018
- /** @returns {DownloadReport} */
1019
- static DownloadReport() {
1020
- return Joi.object({
1021
- end_date: Joi.string().allow(""),
1022
- page: Joi.number(),
1023
- pagesize: Joi.number(),
1024
- start_date: Joi.string().allow(""),
1025
- });
1026
- }
1027
-
1028
- /** @returns {DownloadReportCustomerCnRequest} */
1029
- static DownloadReportCustomerCnRequest() {
807
+ /** @returns {GetReason} */
808
+ static GetReason() {
1030
809
  return Joi.object({
1031
- data: FinancePlatformModel.CnDownloadReport(),
810
+ reason_type: Joi.string().allow(""),
1032
811
  });
1033
812
  }
1034
813
 
1035
- /** @returns {DownloadReportCustomerCnResponse} */
1036
- static DownloadReportCustomerCnResponse() {
814
+ /** @returns {GetReasonRequest} */
815
+ static GetReasonRequest() {
1037
816
  return Joi.object({
1038
- data: Joi.array().items(
1039
- FinancePlatformModel.DownloadReportResponseData()
1040
- ),
817
+ data: FinancePlatformModel.GetReason(),
1041
818
  });
1042
819
  }
1043
820
 
1044
- /** @returns {DownloadReportItems} */
1045
- static DownloadReportItems() {
821
+ /** @returns {ReasonItem} */
822
+ static ReasonItem() {
1046
823
  return Joi.object({
1047
- end_date: Joi.string().allow(""),
1048
- filters: FinancePlatformModel.GenerateReportFilters(),
1049
- meta: FinancePlatformModel.GenerateReportMeta(),
1050
- report_id: Joi.string().allow(""),
1051
- start_date: Joi.string().allow(""),
1052
- type_of_request: Joi.string().allow(""),
824
+ id: Joi.string().allow(""),
825
+ name: Joi.string().allow(""),
826
+ display_name: Joi.string().allow(""),
1053
827
  });
1054
828
  }
1055
829
 
1056
- /** @returns {DownloadReportList} */
1057
- static DownloadReportList() {
830
+ /** @returns {GetReasonResponse} */
831
+ static GetReasonResponse() {
1058
832
  return Joi.object({
833
+ success: Joi.boolean(),
834
+ item_list: Joi.array().items(FinancePlatformModel.ReasonItem()),
1059
835
  item_count: Joi.number(),
1060
- items: Joi.array().items(FinancePlatformModel.DownloadReportItems()),
1061
836
  page: FinancePlatformModel.Page(),
1062
837
  });
1063
838
  }
1064
839
 
1065
- /** @returns {DownloadReportResponseData} */
1066
- static DownloadReportResponseData() {
840
+ /** @returns {GetReportListData} */
841
+ static GetReportListData() {
1067
842
  return Joi.object({
1068
- created_at: Joi.string().allow(""),
1069
- display_name: Joi.string().allow(""),
1070
- download_link: Joi.string().allow(""),
1071
- end_date: Joi.string().allow(""),
1072
- filters: Joi.any(),
1073
- full_name: Joi.string().allow(""),
1074
- meta: Joi.any(),
1075
- msg: Joi.string().allow(""),
1076
- report_config_id: Joi.string().allow(""),
1077
- report_name: Joi.string().allow(""),
1078
- request_dict: Joi.any(),
1079
- requested_by: Joi.string().allow(""),
1080
- start_date: Joi.string().allow(""),
1081
- status: Joi.string().allow(""),
843
+ role_name: Joi.string().allow(""),
844
+ listing_enabled: Joi.boolean(),
1082
845
  });
1083
846
  }
1084
847
 
1085
- /** @returns {Error} */
1086
- static Error() {
848
+ /** @returns {GetReportListRequest} */
849
+ static GetReportListRequest() {
1087
850
  return Joi.object({
1088
- reason: Joi.string().allow(""),
1089
- success: Joi.boolean(),
851
+ data: FinancePlatformModel.GetReportListData(),
1090
852
  });
1091
853
  }
1092
854
 
1093
- /** @returns {GenerateReportCustomerCnRequest} */
1094
- static GenerateReportCustomerCnRequest() {
855
+ /** @returns {GetAffiliate} */
856
+ static GetAffiliate() {
1095
857
  return Joi.object({
1096
- data: FinancePlatformModel.CnGenerateReport(),
858
+ company_id: Joi.number(),
1097
859
  });
1098
860
  }
1099
861
 
1100
- /** @returns {GenerateReportCustomerCnResponse} */
1101
- static GenerateReportCustomerCnResponse() {
862
+ /** @returns {GetReportListResponse} */
863
+ static GetReportListResponse() {
1102
864
  return Joi.object({
1103
- data: FinancePlatformModel.GenerateReportCustomerCnResponseData(),
865
+ success: Joi.boolean(),
866
+ items: Joi.array().items(FinancePlatformModel.ReportItem()),
867
+ page: FinancePlatformModel.Page(),
868
+ total_count: Joi.number(),
1104
869
  });
1105
870
  }
1106
871
 
1107
- /** @returns {GenerateReportCustomerCnResponseData} */
1108
- static GenerateReportCustomerCnResponseData() {
872
+ /** @returns {ReportItem} */
873
+ static ReportItem() {
1109
874
  return Joi.object({
875
+ id: Joi.string().allow(""),
876
+ name: Joi.string().allow(""),
877
+ description: Joi.string().allow(""),
1110
878
  allowed_filters: Joi.array().items(Joi.string().allow("")),
1111
- end_date: Joi.string().allow(""),
1112
- headers: Joi.array().items(Joi.string().allow("")),
1113
- item_count: Joi.number(),
1114
- items: Joi.array().items(FinancePlatformModel.CnGenerateReportItems()),
1115
- page: FinancePlatformModel.Page(),
1116
- primary_headers: Joi.array().items(Joi.string().allow("")),
1117
- row_header_display_order: Joi.any(),
1118
- start_date: Joi.string().allow(""),
879
+ config_meta: Joi.any(),
880
+ report_type: Joi.string().allow(""),
881
+ display_date: Joi.string().allow("").allow(null),
1119
882
  });
1120
883
  }
1121
884
 
1122
- /** @returns {GenerateReportFilters} */
1123
- static GenerateReportFilters() {
885
+ /** @returns {GetAffiliateResponse} */
886
+ static GetAffiliateResponse() {
1124
887
  return Joi.object({
1125
- brand: Joi.array().items(Joi.string().allow("")),
1126
- channel: Joi.array().items(Joi.string().allow("")),
1127
- company: Joi.array().items(Joi.string().allow("")),
888
+ success: Joi.boolean(),
889
+ docs: Joi.array().items(Joi.any()),
1128
890
  });
1129
891
  }
1130
892
 
1131
- /** @returns {GenerateReportJson} */
1132
- static GenerateReportJson() {
893
+ /** @returns {DownloadCreditDebitNote} */
894
+ static DownloadCreditDebitNote() {
1133
895
  return Joi.object({
1134
- end_date: Joi.string().allow(""),
1135
- headers: Joi.array().items(Joi.string().allow("")),
1136
- item_count: Joi.number(),
1137
- items: Joi.array().items(Joi.array().items(Joi.string().allow(""))),
1138
- page: FinancePlatformModel.Page(),
1139
- start_date: Joi.string().allow(""),
896
+ note_id: Joi.array().items(Joi.string().allow("")),
1140
897
  });
1141
898
  }
1142
899
 
1143
- /** @returns {GenerateReportMeta} */
1144
- static GenerateReportMeta() {
900
+ /** @returns {DownloadCreditDebitNoteRequest} */
901
+ static DownloadCreditDebitNoteRequest() {
1145
902
  return Joi.object({
1146
- brand: Joi.string().allow(""),
1147
- channel: Joi.string().allow(""),
1148
- company: Joi.string().allow(""),
903
+ data: FinancePlatformModel.DownloadCreditDebitNote(),
1149
904
  });
1150
905
  }
1151
906
 
1152
- /** @returns {GenerateReportPlatform} */
1153
- static GenerateReportPlatform() {
907
+ /** @returns {DownloadCreditDebitNoteResponseData} */
908
+ static DownloadCreditDebitNoteResponseData() {
1154
909
  return Joi.object({
1155
- end_date: Joi.string().allow(""),
1156
- filters: FinancePlatformModel.GenerateReportFilters(),
1157
- meta: FinancePlatformModel.GenerateReportMeta(),
1158
- report_id: Joi.string().allow(""),
1159
- start_date: Joi.string().allow(""),
910
+ id: Joi.string().allow(""),
911
+ pdf_s3_url: Joi.string().allow(""),
1160
912
  });
1161
913
  }
1162
914
 
1163
- /** @returns {GenerateReportRequest} */
1164
- static GenerateReportRequest() {
915
+ /** @returns {DownloadCreditDebitNoteResponse} */
916
+ static DownloadCreditDebitNoteResponse() {
1165
917
  return Joi.object({
1166
- data: FinancePlatformModel.GenerateReportPlatform(),
918
+ success: Joi.boolean(),
919
+ data: Joi.array().items(
920
+ FinancePlatformModel.DownloadCreditDebitNoteResponseData()
921
+ ),
1167
922
  });
1168
923
  }
1169
924
 
1170
- /** @returns {GetAffiliate} */
1171
- static GetAffiliate() {
925
+ /** @returns {PaymentProcessPayload} */
926
+ static PaymentProcessPayload() {
1172
927
  return Joi.object({
1173
- company_id: Joi.number(),
928
+ platform: Joi.string().allow(""),
929
+ amount: Joi.string().allow(""),
930
+ transaction_type: Joi.string().allow(""),
931
+ source_reference: Joi.string().allow(""),
932
+ total_amount: Joi.string().allow(""),
933
+ meta: Joi.any(),
934
+ currency: Joi.string().allow(""),
935
+ seller_id: Joi.string().allow(""),
936
+ mode_of_payment: Joi.string().allow(""),
937
+ invoice_number: Joi.string().allow(""),
1174
938
  });
1175
939
  }
1176
940
 
1177
- /** @returns {GetAffiliateResponse} */
1178
- static GetAffiliateResponse() {
941
+ /** @returns {PaymentProcessRequest} */
942
+ static PaymentProcessRequest() {
1179
943
  return Joi.object({
1180
- docs: Joi.array().items(Joi.any()),
1181
- success: Joi.boolean(),
944
+ data: FinancePlatformModel.PaymentProcessPayload(),
1182
945
  });
1183
946
  }
1184
947
 
1185
- /** @returns {GetCnConfigRequest} */
1186
- static GetCnConfigRequest() {
948
+ /** @returns {PaymentProcessResponse} */
949
+ static PaymentProcessResponse() {
1187
950
  return Joi.object({
1188
- data: FinancePlatformModel.DeleteConfig(),
951
+ code: Joi.number(),
952
+ message: Joi.string().allow(""),
953
+ meta: Joi.any(),
954
+ transaction_id: Joi.string().allow(""),
955
+ redirect_url: Joi.string().allow(""),
1189
956
  });
1190
957
  }
1191
958
 
1192
- /** @returns {GetCnConfigResponse} */
1193
- static GetCnConfigResponse() {
959
+ /** @returns {CreditlineDataPlatformPayload} */
960
+ static CreditlineDataPlatformPayload() {
1194
961
  return Joi.object({
1195
- data: FinancePlatformModel.GetCnConfigResponseData(),
1196
- success: Joi.boolean(),
962
+ page: Joi.number(),
963
+ seller_id: Joi.string().allow(""),
964
+ end_end: Joi.string().allow(""),
965
+ start_end: Joi.string().allow(""),
966
+ pagesize: Joi.number(),
1197
967
  });
1198
968
  }
1199
969
 
1200
- /** @returns {GetCnConfigResponseData} */
1201
- static GetCnConfigResponseData() {
970
+ /** @returns {CreditlineDataPlatformRequest} */
971
+ static CreditlineDataPlatformRequest() {
1202
972
  return Joi.object({
1203
- affiliate_id: Joi.string().allow(""),
1204
- currency_type: Joi.string().allow(""),
1205
- is_cn_as_refund_method: Joi.boolean(),
1206
- meta: FinancePlatformModel.GetCnConfigResponseMeta(),
1207
- notification_events: FinancePlatformModel.CreditNoteConfigNotificationEvents(),
1208
- redemption_ordering_channel: Joi.array().items(Joi.string().allow("")),
1209
- seller_id: Joi.number(),
1210
- validity: Joi.number(),
973
+ data: FinancePlatformModel.CreditlineDataPlatformPayload(),
1211
974
  });
1212
975
  }
1213
976
 
1214
- /** @returns {GetCnConfigResponseMeta} */
1215
- static GetCnConfigResponseMeta() {
977
+ /** @returns {CreditlineDataPlatformResponse} */
978
+ static CreditlineDataPlatformResponse() {
1216
979
  return Joi.object({
1217
- reason: Joi.string().allow(""),
1218
- source_channel: Joi.array().items(Joi.string().allow("")),
980
+ items: Joi.array().items(Joi.any()),
981
+ code: Joi.number(),
982
+ show_mr: Joi.boolean(),
983
+ page: Joi.any(),
984
+ message: Joi.string().allow(""),
985
+ headers: Joi.array().items(Joi.string().allow("")),
986
+ item_count: Joi.number(),
1219
987
  });
1220
988
  }
1221
989
 
1222
- /** @returns {GetCustomerCreditBalance} */
1223
- static GetCustomerCreditBalance() {
990
+ /** @returns {IsCreditlinePayload} */
991
+ static IsCreditlinePayload() {
1224
992
  return Joi.object({
1225
- affiliate_id: Joi.string().allow(""),
1226
- customer_mobile_number: Joi.string().allow(""),
1227
- seller_id: Joi.number(),
993
+ seller_id: Joi.string().allow(""),
1228
994
  });
1229
995
  }
1230
996
 
1231
- /** @returns {GetCustomerCreditBalanceRequest} */
1232
- static GetCustomerCreditBalanceRequest() {
997
+ /** @returns {IsCreditlinePlatformRequest} */
998
+ static IsCreditlinePlatformRequest() {
1233
999
  return Joi.object({
1234
- data: FinancePlatformModel.GetCustomerCreditBalance(),
1000
+ data: FinancePlatformModel.IsCreditlinePayload(),
1235
1001
  });
1236
1002
  }
1237
1003
 
1238
- /** @returns {GetCustomerCreditBalanceResponse} */
1239
- static GetCustomerCreditBalanceResponse() {
1004
+ /** @returns {IsCreditlinePlatformResponse} */
1005
+ static IsCreditlinePlatformResponse() {
1240
1006
  return Joi.object({
1241
- data: FinancePlatformModel.GetCustomerCreditBalanceResponseData(),
1242
- success: Joi.boolean(),
1007
+ is_creditline_opted: Joi.boolean(),
1008
+ code: Joi.number(),
1243
1009
  });
1244
1010
  }
1245
1011
 
1246
- /** @returns {GetCustomerCreditBalanceResponseData} */
1247
- static GetCustomerCreditBalanceResponseData() {
1012
+ /** @returns {InvoiceTypePayloadData} */
1013
+ static InvoiceTypePayloadData() {
1248
1014
  return Joi.object({
1249
- customer_mobile_number: Joi.string().allow(""),
1250
- total_credited_balance: Joi.number(),
1015
+ is_active: Joi.boolean(),
1251
1016
  });
1252
1017
  }
1253
1018
 
1254
- /** @returns {GetEngineData} */
1255
- static GetEngineData() {
1019
+ /** @returns {InvoiceTypeRequest} */
1020
+ static InvoiceTypeRequest() {
1256
1021
  return Joi.object({
1257
- filters: Joi.any(),
1258
- project: Joi.array().items(Joi.string().allow("")),
1259
- table_name: Joi.string().allow(""),
1022
+ data: FinancePlatformModel.InvoiceTypePayloadData(),
1260
1023
  });
1261
1024
  }
1262
1025
 
1263
- /** @returns {GetEngineRequest} */
1264
- static GetEngineRequest() {
1026
+ /** @returns {InvoiceTypeResponseItems} */
1027
+ static InvoiceTypeResponseItems() {
1265
1028
  return Joi.object({
1266
- data: FinancePlatformModel.GetEngineData(),
1029
+ text: Joi.string().allow(""),
1030
+ value: Joi.string().allow(""),
1267
1031
  });
1268
1032
  }
1269
1033
 
1270
- /** @returns {GetEngineResponse} */
1271
- static GetEngineResponse() {
1034
+ /** @returns {InvoiceTypeResponse} */
1035
+ static InvoiceTypeResponse() {
1272
1036
  return Joi.object({
1273
- item_count: Joi.number(),
1274
- items: Joi.array().items(Joi.any()),
1275
- page: FinancePlatformModel.Page(),
1276
1037
  success: Joi.boolean(),
1038
+ invoice_type_list: Joi.array().items(
1039
+ FinancePlatformModel.InvoiceTypeResponseItems()
1040
+ ),
1041
+ payment_status_list: Joi.array().items(
1042
+ FinancePlatformModel.InvoiceTypeResponseItems()
1043
+ ),
1044
+ });
1045
+ }
1046
+
1047
+ /** @returns {InoviceListingPayloadDataFilters} */
1048
+ static InoviceListingPayloadDataFilters() {
1049
+ return Joi.object({
1050
+ payment_status: Joi.array().items(Joi.string().allow("")),
1051
+ invoice_type: Joi.array().items(Joi.string().allow("")),
1052
+ company_id: Joi.array().items(Joi.string().allow("")),
1277
1053
  });
1278
1054
  }
1279
1055
 
1280
- /** @returns {GetPdfUrlViewRequest} */
1281
- static GetPdfUrlViewRequest() {
1056
+ /** @returns {InvoiceListingPayloadData} */
1057
+ static InvoiceListingPayloadData() {
1282
1058
  return Joi.object({
1283
- data: FinancePlatformModel.CnReferenceNumber(),
1059
+ page_size: Joi.number(),
1060
+ page: Joi.number(),
1061
+ start_date: Joi.string().allow(""),
1062
+ end_date: Joi.string().allow(""),
1063
+ search: Joi.string().allow(""),
1064
+ filters: FinancePlatformModel.InoviceListingPayloadDataFilters(),
1284
1065
  });
1285
1066
  }
1286
1067
 
1287
- /** @returns {GetPdfUrlViewResponse} */
1288
- static GetPdfUrlViewResponse() {
1068
+ /** @returns {InvoiceListingRequest} */
1069
+ static InvoiceListingRequest() {
1289
1070
  return Joi.object({
1290
- data: FinancePlatformModel.GetPdfUrlViewResponseData(),
1291
- success: Joi.boolean(),
1071
+ data: FinancePlatformModel.InvoiceListingPayloadData(),
1292
1072
  });
1293
1073
  }
1294
1074
 
1295
- /** @returns {GetPdfUrlViewResponseData} */
1296
- static GetPdfUrlViewResponseData() {
1075
+ /** @returns {UnpaidInvoiceDataItems} */
1076
+ static UnpaidInvoiceDataItems() {
1297
1077
  return Joi.object({
1298
- cn_reference_number: Joi.string().allow(""),
1299
- s3_pdf_link: Joi.string().allow(""),
1078
+ total_unpaid_invoice_count: Joi.number(),
1079
+ currency: Joi.string().allow(""),
1080
+ total_unpaid_amount: Joi.number(),
1300
1081
  });
1301
1082
  }
1302
1083
 
1303
- /** @returns {GetReason} */
1304
- static GetReason() {
1084
+ /** @returns {InvoiceListingResponseItems} */
1085
+ static InvoiceListingResponseItems() {
1305
1086
  return Joi.object({
1306
- reason_type: Joi.string().allow(""),
1087
+ amount: Joi.string().allow(""),
1088
+ company: Joi.string().allow(""),
1089
+ status: Joi.string().allow(""),
1090
+ due_date: Joi.string().allow(""),
1091
+ invoice_date: Joi.string().allow(""),
1092
+ invoice_type: Joi.string().allow(""),
1093
+ period: Joi.string().allow(""),
1094
+ invoice_number: Joi.string().allow(""),
1095
+ is_downloadable: Joi.boolean(),
1096
+ invoice_id: Joi.string().allow(""),
1307
1097
  });
1308
1098
  }
1309
1099
 
1310
- /** @returns {GetReasonRequest} */
1311
- static GetReasonRequest() {
1100
+ /** @returns {InvoiceListingResponse} */
1101
+ static InvoiceListingResponse() {
1312
1102
  return Joi.object({
1313
- data: FinancePlatformModel.GetReason(),
1103
+ unpaid_invoice_data: FinancePlatformModel.UnpaidInvoiceDataItems(),
1104
+ items: Joi.array().items(
1105
+ FinancePlatformModel.InvoiceListingResponseItems()
1106
+ ),
1107
+ page: FinancePlatformModel.Page(),
1108
+ item_count: Joi.number(),
1314
1109
  });
1315
1110
  }
1316
1111
 
1317
- /** @returns {GetReasonResponse} */
1318
- static GetReasonResponse() {
1112
+ /** @returns {InvoicePdfPayloadData} */
1113
+ static InvoicePdfPayloadData() {
1319
1114
  return Joi.object({
1320
- item_count: Joi.number(),
1321
- item_list: Joi.array().items(FinancePlatformModel.ReasonItem()),
1322
- page: FinancePlatformModel.Page(),
1323
- success: Joi.boolean(),
1115
+ invoice_number: Joi.array().items(Joi.string().allow("")),
1324
1116
  });
1325
1117
  }
1326
1118
 
1327
- /** @returns {GetReportingFilters} */
1328
- static GetReportingFilters() {
1119
+ /** @returns {InvoicePdfRequest} */
1120
+ static InvoicePdfRequest() {
1329
1121
  return Joi.object({
1330
- options: Joi.array().items(Joi.any()),
1331
- text: Joi.string().allow(""),
1332
- type: Joi.string().allow(""),
1333
- value: Joi.string().allow(""),
1122
+ data: FinancePlatformModel.InvoicePdfPayloadData(),
1334
1123
  });
1335
1124
  }
1336
1125
 
1337
- /** @returns {GetReportingFiltersResponse} */
1338
- static GetReportingFiltersResponse() {
1126
+ /** @returns {InvoicePdfResponse} */
1127
+ static InvoicePdfResponse() {
1339
1128
  return Joi.object({
1340
- filters: Joi.array().items(
1341
- FinancePlatformModel.GetReportingNestedFilters()
1342
- ),
1343
- search: FinancePlatformModel.GetReportingFilters(),
1344
- status: FinancePlatformModel.GetReportingFilters(),
1129
+ success: Joi.boolean(),
1130
+ data: Joi.array().items(Joi.string().allow("")),
1131
+ error: Joi.array().items(Joi.string().allow("")),
1345
1132
  });
1346
1133
  }
1347
1134
 
1348
- /** @returns {GetReportingNestedFilters} */
1349
- static GetReportingNestedFilters() {
1135
+ /** @returns {IsCnRefundMethodData} */
1136
+ static IsCnRefundMethodData() {
1350
1137
  return Joi.object({
1351
- options: Joi.array().items(Joi.any()),
1352
- placeholder_text: Joi.string().allow(""),
1353
- required: Joi.boolean(),
1354
- text: Joi.string().allow(""),
1355
- type: Joi.string().allow(""),
1356
- value: Joi.string().allow(""),
1138
+ affiliate_id: Joi.string().allow(""),
1139
+ toggle_edit_required: Joi.boolean(),
1140
+ seller_id: Joi.number(),
1357
1141
  });
1358
1142
  }
1359
1143
 
1360
- /** @returns {GetReportListData} */
1361
- static GetReportListData() {
1144
+ /** @returns {IsCnRefundMethodRequest} */
1145
+ static IsCnRefundMethodRequest() {
1362
1146
  return Joi.object({
1363
- listing_enabled: Joi.boolean(),
1364
- role_name: Joi.string().allow(""),
1147
+ data: FinancePlatformModel.IsCnRefundMethodData(),
1365
1148
  });
1366
1149
  }
1367
1150
 
1368
- /** @returns {GetReportListRequest} */
1369
- static GetReportListRequest() {
1151
+ /** @returns {IsCnRefundMethodResponseData} */
1152
+ static IsCnRefundMethodResponseData() {
1370
1153
  return Joi.object({
1371
- data: FinancePlatformModel.GetReportListData(),
1154
+ is_first_time_user: Joi.boolean(),
1372
1155
  });
1373
1156
  }
1374
1157
 
1375
- /** @returns {GetReportListResponse} */
1376
- static GetReportListResponse() {
1158
+ /** @returns {IsCnRefundMethodResponse} */
1159
+ static IsCnRefundMethodResponse() {
1377
1160
  return Joi.object({
1378
- items: Joi.array().items(FinancePlatformModel.ReportItem()),
1379
- page: FinancePlatformModel.Page(),
1380
1161
  success: Joi.boolean(),
1381
- total_count: Joi.number(),
1162
+ data: FinancePlatformModel.IsCnRefundMethodResponseData(),
1382
1163
  });
1383
1164
  }
1384
1165
 
1385
- /** @returns {InoviceListingPayloadDataFilters} */
1386
- static InoviceListingPayloadDataFilters() {
1166
+ /** @returns {CreditNoteConfigNotificationEvents} */
1167
+ static CreditNoteConfigNotificationEvents() {
1387
1168
  return Joi.object({
1388
- company_id: Joi.array().items(Joi.string().allow("")),
1389
- invoice_type: Joi.array().items(Joi.string().allow("")),
1390
- payment_status: Joi.array().items(Joi.string().allow("")),
1169
+ expiration_reminder_to_customer: Joi.number(),
1391
1170
  });
1392
1171
  }
1393
1172
 
1394
- /** @returns {InvoiceActivityLogError} */
1395
- static InvoiceActivityLogError() {
1173
+ /** @returns {CreateSellerCreditNoteConfig} */
1174
+ static CreateSellerCreditNoteConfig() {
1396
1175
  return Joi.object({
1397
- reason: Joi.string().allow(""),
1176
+ is_cn_as_refund_method: Joi.boolean(),
1177
+ affiliate_id: Joi.string().allow(""),
1178
+ source_channel: Joi.array().items(Joi.string().allow("")),
1179
+ seller_id: Joi.number(),
1180
+ notification_events: FinancePlatformModel.CreditNoteConfigNotificationEvents(),
1181
+ sales_channel_name: Joi.string().allow(""),
1182
+ ordering_channel: Joi.array().items(Joi.string().allow("")),
1183
+ validity: Joi.number(),
1184
+ currency_type: Joi.string().allow(""),
1185
+ slug_values: Joi.array().items(Joi.string().allow("")),
1398
1186
  });
1399
1187
  }
1400
1188
 
1401
- /** @returns {InvoiceActivityLogsResponse} */
1402
- static InvoiceActivityLogsResponse() {
1189
+ /** @returns {CreateSellerCreditNoteConfigRequest} */
1190
+ static CreateSellerCreditNoteConfigRequest() {
1403
1191
  return Joi.object({
1404
- data: Joi.array().items(
1405
- FinancePlatformModel.InvoiceActivityLogsResponseData()
1406
- ),
1192
+ data: FinancePlatformModel.CreateSellerCreditNoteConfig(),
1407
1193
  });
1408
1194
  }
1409
1195
 
1410
- /** @returns {InvoiceActivityLogsResponseData} */
1411
- static InvoiceActivityLogsResponseData() {
1196
+ /** @returns {CreateSellerCreditNoteConfigResponse} */
1197
+ static CreateSellerCreditNoteConfigResponse() {
1412
1198
  return Joi.object({
1413
- is_resolved: Joi.boolean(),
1414
- max_retry_attempts: Joi.number(),
1415
- performed_by: Joi.string().allow(""),
1416
- reason: Joi.string().allow(""),
1417
- retry_attempts: Joi.number(),
1418
- status: Joi.string().allow(""),
1199
+ success: Joi.boolean(),
1200
+ message: Joi.string().allow(""),
1419
1201
  });
1420
1202
  }
1421
1203
 
1422
- /** @returns {InvoiceListingPayloadData} */
1423
- static InvoiceListingPayloadData() {
1204
+ /** @returns {DeleteConfig} */
1205
+ static DeleteConfig() {
1424
1206
  return Joi.object({
1425
- end_date: Joi.string().allow(""),
1426
- filters: FinancePlatformModel.InoviceListingPayloadDataFilters(),
1427
- page: Joi.number(),
1428
- page_size: Joi.number(),
1429
- search: Joi.string().allow(""),
1430
- start_date: Joi.string().allow(""),
1207
+ affiliate_id: Joi.string().allow(""),
1208
+ slug_values: Joi.array().items(Joi.string().allow("")),
1209
+ seller_id: Joi.number(),
1431
1210
  });
1432
1211
  }
1433
1212
 
1434
- /** @returns {InvoiceListingRequest} */
1435
- static InvoiceListingRequest() {
1213
+ /** @returns {DeleteConfigRequest} */
1214
+ static DeleteConfigRequest() {
1436
1215
  return Joi.object({
1437
- data: FinancePlatformModel.InvoiceListingPayloadData(),
1216
+ data: FinancePlatformModel.DeleteConfig(),
1438
1217
  });
1439
1218
  }
1440
1219
 
1441
- /** @returns {InvoiceListingResponse} */
1442
- static InvoiceListingResponse() {
1220
+ /** @returns {DeleteConfigResponse} */
1221
+ static DeleteConfigResponse() {
1443
1222
  return Joi.object({
1444
- item_count: Joi.number(),
1445
- items: Joi.array().items(
1446
- FinancePlatformModel.InvoiceListingResponseItems()
1447
- ),
1448
- page: FinancePlatformModel.Page(),
1449
- unpaid_invoice_data: FinancePlatformModel.UnpaidInvoiceDataItems(),
1223
+ success: Joi.boolean(),
1224
+ message: Joi.string().allow(""),
1450
1225
  });
1451
1226
  }
1452
1227
 
1453
- /** @returns {InvoiceListingResponseItems} */
1454
- static InvoiceListingResponseItems() {
1228
+ /** @returns {ChannelDisplayName} */
1229
+ static ChannelDisplayName() {
1455
1230
  return Joi.object({
1456
- amount: Joi.string().allow(""),
1457
- company: Joi.string().allow(""),
1458
- currency: FinancePlatformModel.Currency(),
1459
- due_date: Joi.string().allow(""),
1460
- invoice_date: Joi.string().allow(""),
1461
- invoice_id: Joi.string().allow(""),
1462
- invoice_number: Joi.string().allow(""),
1463
- invoice_type: Joi.string().allow(""),
1464
- is_downloadable: Joi.boolean(),
1465
- period: Joi.string().allow(""),
1466
- status: Joi.string().allow(""),
1231
+ platform_pos: Joi.string().allow(""),
1467
1232
  });
1468
1233
  }
1469
1234
 
1470
- /** @returns {InvoicePaymentDetailsResponse} */
1471
- static InvoicePaymentDetailsResponse() {
1235
+ /** @returns {ChannelDisplayNameResponse} */
1236
+ static ChannelDisplayNameResponse() {
1472
1237
  return Joi.object({
1473
- data: FinancePlatformModel.InvoicePaymentDetailsResponseData(),
1474
- payment_details_visible: Joi.boolean(),
1475
1238
  success: Joi.boolean(),
1239
+ data: FinancePlatformModel.ChannelDisplayName(),
1476
1240
  });
1477
1241
  }
1478
1242
 
1479
- /** @returns {InvoicePaymentDetailsResponseData} */
1480
- static InvoicePaymentDetailsResponseData() {
1243
+ /** @returns {CnReferenceNumber} */
1244
+ static CnReferenceNumber() {
1481
1245
  return Joi.object({
1482
- failed_attempts_details: Joi.array().items(Joi.any()),
1483
- paid_invoice_payment_details: Joi.array().items(
1484
- FinancePlatformModel.PaidInvoicePaymentDetail()
1485
- ),
1246
+ cn_reference_number: Joi.string().allow(""),
1486
1247
  });
1487
1248
  }
1488
1249
 
1489
- /** @returns {InvoicePdfPayloadData} */
1490
- static InvoicePdfPayloadData() {
1250
+ /** @returns {GetPdfUrlViewRequest} */
1251
+ static GetPdfUrlViewRequest() {
1491
1252
  return Joi.object({
1492
- invoice_number: Joi.array().items(Joi.string().allow("")),
1253
+ data: FinancePlatformModel.CnReferenceNumber(),
1493
1254
  });
1494
1255
  }
1495
1256
 
1496
- /** @returns {InvoicePdfRequest} */
1497
- static InvoicePdfRequest() {
1257
+ /** @returns {GetPdfUrlViewResponseData} */
1258
+ static GetPdfUrlViewResponseData() {
1498
1259
  return Joi.object({
1499
- data: FinancePlatformModel.InvoicePdfPayloadData(),
1260
+ s3_pdf_link: Joi.string().allow(""),
1261
+ cn_reference_number: Joi.string().allow(""),
1500
1262
  });
1501
1263
  }
1502
1264
 
1503
- /** @returns {InvoicePdfResponse} */
1504
- static InvoicePdfResponse() {
1265
+ /** @returns {GetPdfUrlViewResponse} */
1266
+ static GetPdfUrlViewResponse() {
1505
1267
  return Joi.object({
1506
- data: Joi.array().items(Joi.string().allow("")),
1507
- error: Joi.array().items(Joi.string().allow("")),
1508
1268
  success: Joi.boolean(),
1269
+ data: FinancePlatformModel.GetPdfUrlViewResponseData(),
1509
1270
  });
1510
1271
  }
1511
1272
 
1512
- /** @returns {InvoiceTypePayloadData} */
1513
- static InvoiceTypePayloadData() {
1273
+ /** @returns {CreditNoteDetailsRequest} */
1274
+ static CreditNoteDetailsRequest() {
1514
1275
  return Joi.object({
1515
- is_active: Joi.boolean(),
1276
+ data: FinancePlatformModel.CnReferenceNumber(),
1516
1277
  });
1517
1278
  }
1518
1279
 
1519
- /** @returns {InvoiceTypeRequest} */
1520
- static InvoiceTypeRequest() {
1280
+ /** @returns {CnDetails} */
1281
+ static CnDetails() {
1521
1282
  return Joi.object({
1522
- data: FinancePlatformModel.InvoiceTypePayloadData(),
1283
+ staff_id: Joi.string().allow(""),
1284
+ expiry_date: Joi.string().allow(""),
1285
+ channel_of_issuance: Joi.string().allow(""),
1286
+ order_id: Joi.string().allow(""),
1287
+ date_issued: Joi.string().allow(""),
1288
+ ordering_channel: Joi.string().allow(""),
1289
+ shipment_id: Joi.string().allow(""),
1290
+ store_id: Joi.string().allow(""),
1291
+ invoice_number: Joi.string().allow(""),
1292
+ });
1293
+ }
1294
+
1295
+ /** @returns {RedemptionDetails} */
1296
+ static RedemptionDetails() {
1297
+ return Joi.object({
1298
+ staff_id: Joi.string().allow(""),
1299
+ created_at: Joi.string().allow(""),
1300
+ order_id: Joi.string().allow(""),
1301
+ store_id: Joi.string().allow(""),
1302
+ shipment_id: Joi.string().allow(""),
1303
+ ordering_channel: Joi.string().allow(""),
1304
+ amount_debited: Joi.number(),
1305
+ invoice_number: Joi.string().allow(""),
1523
1306
  });
1524
1307
  }
1525
1308
 
1526
- /** @returns {InvoiceTypeResponse} */
1527
- static InvoiceTypeResponse() {
1309
+ /** @returns {CreditNoteDetails} */
1310
+ static CreditNoteDetails() {
1528
1311
  return Joi.object({
1529
- invoice_type_list: Joi.array().items(
1530
- FinancePlatformModel.InvoiceTypeResponseItems()
1531
- ),
1532
- payment_status_list: Joi.array().items(
1533
- FinancePlatformModel.InvoiceTypeResponseItems()
1312
+ cn_status: Joi.string().allow(""),
1313
+ customer_mobile_number: Joi.string().allow(""),
1314
+ cn_reference_number: Joi.string().allow(""),
1315
+ cn_details: Joi.any(),
1316
+ redemption_details: Joi.array().items(
1317
+ FinancePlatformModel.RedemptionDetails()
1534
1318
  ),
1535
- success: Joi.boolean(),
1319
+ remaining_cn_amount: Joi.number(),
1320
+ available_cn_balance: Joi.number(),
1321
+ cn_amount: Joi.number(),
1536
1322
  });
1537
1323
  }
1538
1324
 
1539
- /** @returns {InvoiceTypeResponseItems} */
1540
- static InvoiceTypeResponseItems() {
1325
+ /** @returns {CreditNoteDetailsResponse} */
1326
+ static CreditNoteDetailsResponse() {
1541
1327
  return Joi.object({
1542
- text: Joi.string().allow(""),
1543
- value: Joi.string().allow(""),
1328
+ success: Joi.boolean(),
1329
+ data: FinancePlatformModel.CreditNoteDetails(),
1544
1330
  });
1545
1331
  }
1546
1332
 
1547
- /** @returns {IsCnRefundMethodData} */
1548
- static IsCnRefundMethodData() {
1333
+ /** @returns {GetCustomerCreditBalance} */
1334
+ static GetCustomerCreditBalance() {
1549
1335
  return Joi.object({
1550
1336
  affiliate_id: Joi.string().allow(""),
1551
1337
  seller_id: Joi.number(),
1552
- toggle_edit_required: Joi.boolean(),
1338
+ customer_mobile_number: Joi.string().allow(""),
1553
1339
  });
1554
1340
  }
1555
1341
 
1556
- /** @returns {IsCnRefundMethodRequest} */
1557
- static IsCnRefundMethodRequest() {
1342
+ /** @returns {GetCustomerCreditBalanceRequest} */
1343
+ static GetCustomerCreditBalanceRequest() {
1558
1344
  return Joi.object({
1559
- data: FinancePlatformModel.IsCnRefundMethodData(),
1345
+ data: FinancePlatformModel.GetCustomerCreditBalance(),
1560
1346
  });
1561
1347
  }
1562
1348
 
1563
- /** @returns {IsCnRefundMethodResponse} */
1564
- static IsCnRefundMethodResponse() {
1349
+ /** @returns {GetCustomerCreditBalanceResponseData} */
1350
+ static GetCustomerCreditBalanceResponseData() {
1565
1351
  return Joi.object({
1566
- data: FinancePlatformModel.IsCnRefundMethodResponseData(),
1567
- success: Joi.boolean(),
1352
+ customer_mobile_number: Joi.string().allow(""),
1353
+ total_credited_balance: Joi.number(),
1568
1354
  });
1569
1355
  }
1570
1356
 
1571
- /** @returns {IsCnRefundMethodResponseData} */
1572
- static IsCnRefundMethodResponseData() {
1357
+ /** @returns {GetCustomerCreditBalanceResponse} */
1358
+ static GetCustomerCreditBalanceResponse() {
1573
1359
  return Joi.object({
1574
- is_first_time_user: Joi.boolean(),
1360
+ success: Joi.boolean(),
1361
+ data: FinancePlatformModel.GetCustomerCreditBalanceResponseData(),
1575
1362
  });
1576
1363
  }
1577
1364
 
1578
- /** @returns {IsCreditlinePayload} */
1579
- static IsCreditlinePayload() {
1365
+ /** @returns {GetCnConfigRequest} */
1366
+ static GetCnConfigRequest() {
1580
1367
  return Joi.object({
1581
- seller_id: Joi.string().allow(""),
1368
+ data: FinancePlatformModel.DeleteConfig(),
1582
1369
  });
1583
1370
  }
1584
1371
 
1585
- /** @returns {IsCreditlinePlatformRequest} */
1586
- static IsCreditlinePlatformRequest() {
1372
+ /** @returns {GetCnConfigResponseMeta} */
1373
+ static GetCnConfigResponseMeta() {
1587
1374
  return Joi.object({
1588
- data: FinancePlatformModel.IsCreditlinePayload(),
1375
+ reason: Joi.string().allow(""),
1376
+ source_channel: Joi.array().items(Joi.string().allow("")),
1589
1377
  });
1590
1378
  }
1591
1379
 
1592
- /** @returns {IsCreditlinePlatformResponse} */
1593
- static IsCreditlinePlatformResponse() {
1380
+ /** @returns {GetCnConfigResponseData} */
1381
+ static GetCnConfigResponseData() {
1594
1382
  return Joi.object({
1595
- code: Joi.number(),
1596
- is_creditline_opted: Joi.boolean(),
1383
+ is_cn_as_refund_method: Joi.boolean(),
1384
+ affiliate_id: Joi.string().allow(""),
1385
+ meta: FinancePlatformModel.GetCnConfigResponseMeta(),
1386
+ seller_id: Joi.number(),
1387
+ notification_events: FinancePlatformModel.CreditNoteConfigNotificationEvents(),
1388
+ validity: Joi.number(),
1389
+ redemption_ordering_channel: Joi.array().items(Joi.string().allow("")),
1390
+ currency_type: Joi.string().allow(""),
1597
1391
  });
1598
1392
  }
1599
1393
 
1600
- /** @returns {Page} */
1601
- static Page() {
1394
+ /** @returns {GetCnConfigResponse} */
1395
+ static GetCnConfigResponse() {
1602
1396
  return Joi.object({
1603
- current: Joi.number(),
1604
- has_next: Joi.boolean(),
1605
- has_previous: Joi.boolean(),
1606
- item_total: Joi.number(),
1607
- next_id: Joi.string().allow(""),
1608
- size: Joi.number(),
1609
- type: Joi.string().allow("").required(),
1397
+ success: Joi.boolean(),
1398
+ data: FinancePlatformModel.GetCnConfigResponseData(),
1610
1399
  });
1611
1400
  }
1612
1401
 
1613
- /** @returns {PaidInvoicePaymentDetail} */
1614
- static PaidInvoicePaymentDetail() {
1402
+ /** @returns {CnGenerateReportFilters} */
1403
+ static CnGenerateReportFilters() {
1615
1404
  return Joi.object({
1616
- amount: Joi.number(),
1617
- date_of_payment: Joi.string().allow(""),
1618
- payment_details: Joi.array().items(FinancePlatformModel.PaymentDetail()),
1405
+ staff_id: Joi.array().items(Joi.string().allow("")),
1406
+ channel_of_issuance: Joi.array().items(Joi.string().allow("")),
1407
+ utilisation: Joi.array().items(Joi.string().allow("")),
1408
+ ordering_channel: Joi.array().items(Joi.string().allow("")),
1409
+ store_id: Joi.array().items(Joi.number()),
1410
+ types_of_transaction: Joi.array().items(Joi.string().allow("")),
1619
1411
  });
1620
1412
  }
1621
1413
 
1622
- /** @returns {PaymentDetail} */
1623
- static PaymentDetail() {
1414
+ /** @returns {CnGenerateReport} */
1415
+ static CnGenerateReport() {
1624
1416
  return Joi.object({
1625
- display_name: Joi.string().allow(""),
1626
- value: Joi.string().allow(""),
1417
+ page: Joi.number(),
1418
+ end_date: Joi.string().allow(""),
1419
+ pagesize: Joi.number(),
1420
+ filters: FinancePlatformModel.CnGenerateReportFilters(),
1421
+ affiliate_id: Joi.string().allow(""),
1422
+ meta: FinancePlatformModel.GenerateReportFilters(),
1423
+ search: Joi.string().allow(""),
1424
+ report_id: Joi.string().allow(""),
1425
+ search_type: Joi.string().allow(""),
1426
+ start_date: Joi.string().allow(""),
1627
1427
  });
1628
1428
  }
1629
1429
 
1630
- /** @returns {PaymentProcessPayload} */
1631
- static PaymentProcessPayload() {
1430
+ /** @returns {GenerateReportCustomerCnRequest} */
1431
+ static GenerateReportCustomerCnRequest() {
1632
1432
  return Joi.object({
1633
- amount: Joi.string().allow(""),
1634
- currency: Joi.string().allow(""),
1635
- invoice_number: Joi.string().allow(""),
1636
- meta: Joi.any(),
1637
- mode_of_payment: Joi.string().allow(""),
1638
- platform: Joi.string().allow(""),
1639
- seller_id: Joi.string().allow(""),
1640
- source_reference: Joi.string().allow(""),
1641
- total_amount: Joi.string().allow(""),
1642
- transaction_type: Joi.string().allow(""),
1433
+ data: FinancePlatformModel.CnGenerateReport(),
1643
1434
  });
1644
1435
  }
1645
1436
 
1646
- /** @returns {PaymentProcessRequest} */
1647
- static PaymentProcessRequest() {
1437
+ /** @returns {CnGenerateReportItems} */
1438
+ static CnGenerateReportItems() {
1648
1439
  return Joi.object({
1649
- data: FinancePlatformModel.PaymentProcessPayload(),
1440
+ expiry_date: Joi.string().allow(""),
1441
+ status: Joi.string().allow(""),
1442
+ total_amount: Joi.number(),
1443
+ order_id: Joi.string().allow(""),
1444
+ date_issued: Joi.string().allow(""),
1445
+ shipment_id: Joi.string().allow(""),
1446
+ invoice_number: Joi.string().allow(""),
1447
+ credit_note_number: Joi.string().allow(""),
1650
1448
  });
1651
1449
  }
1652
1450
 
1653
- /** @returns {PaymentProcessResponse} */
1654
- static PaymentProcessResponse() {
1451
+ /** @returns {GenerateReportCustomerCnResponseData} */
1452
+ static GenerateReportCustomerCnResponseData() {
1655
1453
  return Joi.object({
1656
- code: Joi.number(),
1657
- message: Joi.string().allow(""),
1658
- meta: Joi.any(),
1659
- redirect_url: Joi.string().allow(""),
1660
- transaction_id: Joi.string().allow(""),
1454
+ items: Joi.array().items(FinancePlatformModel.CnGenerateReportItems()),
1455
+ row_header_display_order: Joi.any(),
1456
+ end_date: Joi.string().allow(""),
1457
+ page: FinancePlatformModel.Page(),
1458
+ headers: Joi.array().items(Joi.string().allow("")),
1459
+ primary_headers: Joi.array().items(Joi.string().allow("")),
1460
+ allowed_filters: Joi.array().items(Joi.string().allow("")),
1461
+ start_date: Joi.string().allow(""),
1462
+ item_count: Joi.number(),
1661
1463
  });
1662
1464
  }
1663
1465
 
1664
- /** @returns {ReasonItem} */
1665
- static ReasonItem() {
1466
+ /** @returns {GenerateReportCustomerCnResponse} */
1467
+ static GenerateReportCustomerCnResponse() {
1666
1468
  return Joi.object({
1667
- display_name: Joi.string().allow(""),
1668
- id: Joi.string().allow(""),
1669
- name: Joi.string().allow(""),
1469
+ data: FinancePlatformModel.GenerateReportCustomerCnResponseData(),
1670
1470
  });
1671
1471
  }
1672
1472
 
1673
- /** @returns {RedemptionDetails} */
1674
- static RedemptionDetails() {
1473
+ /** @returns {CnDownloadReport} */
1474
+ static CnDownloadReport() {
1675
1475
  return Joi.object({
1676
- amount_debited: Joi.number(),
1677
- created_at: Joi.string().allow(""),
1678
- invoice_number: Joi.string().allow(""),
1679
- order_id: Joi.string().allow(""),
1680
- ordering_channel: Joi.string().allow(""),
1681
- shipment_id: Joi.string().allow(""),
1682
- staff_id: Joi.string().allow(""),
1683
- store_id: Joi.string().allow(""),
1476
+ page: Joi.number(),
1477
+ start_date: Joi.string().allow(""),
1478
+ end_date: Joi.string().allow(""),
1479
+ affiliate_id: Joi.string().allow(""),
1480
+ search: Joi.string().allow(""),
1481
+ status: Joi.array().items(Joi.string().allow("")),
1482
+ search_type: Joi.string().allow(""),
1483
+ pagesize: Joi.number(),
1684
1484
  });
1685
1485
  }
1686
1486
 
1687
- /** @returns {ReportItem} */
1688
- static ReportItem() {
1487
+ /** @returns {DownloadReportCustomerCnRequest} */
1488
+ static DownloadReportCustomerCnRequest() {
1689
1489
  return Joi.object({
1690
- allowed_filters: Joi.array().items(Joi.string().allow("")),
1691
- config_meta: Joi.any(),
1692
- description: Joi.string().allow(""),
1693
- display_date: Joi.string().allow("").allow(null),
1694
- id: Joi.string().allow(""),
1695
- name: Joi.string().allow(""),
1696
- report_type: Joi.string().allow(""),
1490
+ data: FinancePlatformModel.CnDownloadReport(),
1697
1491
  });
1698
1492
  }
1699
1493
 
1700
- /** @returns {UnlockCreditNoteRequest} */
1701
- static UnlockCreditNoteRequest() {
1494
+ /** @returns {DownloadReportResponseData} */
1495
+ static DownloadReportResponseData() {
1702
1496
  return Joi.object({
1703
- data: FinancePlatformModel.UnlockCreditNoteRequestData(),
1497
+ report_config_id: Joi.string().allow(""),
1498
+ full_name: Joi.string().allow(""),
1499
+ requested_by: Joi.string().allow(""),
1500
+ start_date: Joi.string().allow(""),
1501
+ end_date: Joi.string().allow(""),
1502
+ request_dict: Joi.any(),
1503
+ download_link: Joi.string().allow(""),
1504
+ created_at: Joi.string().allow(""),
1505
+ meta: Joi.any(),
1506
+ msg: Joi.string().allow(""),
1507
+ report_name: Joi.string().allow(""),
1508
+ status: Joi.string().allow(""),
1509
+ display_name: Joi.string().allow(""),
1510
+ filters: Joi.any(),
1704
1511
  });
1705
1512
  }
1706
1513
 
1707
- /** @returns {UnlockCreditNoteRequestData} */
1708
- static UnlockCreditNoteRequestData() {
1514
+ /** @returns {DownloadReportCustomerCnResponse} */
1515
+ static DownloadReportCustomerCnResponse() {
1709
1516
  return Joi.object({
1710
- description: Joi.string().allow(""),
1711
- locked_credit_notes: Joi.array().items(Joi.string().allow("")),
1712
- seller_id: Joi.string().allow(""),
1713
- unlock_reason: Joi.string().allow(""),
1517
+ data: Joi.array().items(
1518
+ FinancePlatformModel.DownloadReportResponseData()
1519
+ ),
1714
1520
  });
1715
1521
  }
1716
1522
 
1717
- /** @returns {UnlockCreditNoteResponse} */
1718
- static UnlockCreditNoteResponse() {
1523
+ /** @returns {GetReportingFilters} */
1524
+ static GetReportingFilters() {
1719
1525
  return Joi.object({
1720
- data: FinancePlatformModel.UnlockCreditNoteResponseData(),
1721
- success: Joi.boolean(),
1526
+ text: Joi.string().allow(""),
1527
+ type: Joi.string().allow(""),
1528
+ options: Joi.array().items(Joi.any()),
1529
+ value: Joi.string().allow(""),
1722
1530
  });
1723
1531
  }
1724
1532
 
1725
- /** @returns {UnlockCreditNoteResponseData} */
1726
- static UnlockCreditNoteResponseData() {
1533
+ /** @returns {GetReportingNestedFilters} */
1534
+ static GetReportingNestedFilters() {
1727
1535
  return Joi.object({
1728
- is_cn_unlocked: Joi.boolean(),
1729
- status: Joi.string().allow(""),
1536
+ text: Joi.string().allow(""),
1537
+ options: Joi.array().items(Joi.any()),
1538
+ required: Joi.boolean(),
1539
+ placeholder_text: Joi.string().allow(""),
1540
+ type: Joi.string().allow(""),
1541
+ value: Joi.string().allow(""),
1730
1542
  });
1731
1543
  }
1732
1544
 
1733
- /** @returns {UnpaidInvoiceDataItems} */
1734
- static UnpaidInvoiceDataItems() {
1545
+ /** @returns {GetReportingFiltersResponse} */
1546
+ static GetReportingFiltersResponse() {
1735
1547
  return Joi.object({
1736
- currency: Joi.string().allow(""),
1737
- total_unpaid_amount: Joi.number(),
1738
- total_unpaid_invoice_count: Joi.number(),
1548
+ search: FinancePlatformModel.GetReportingFilters(),
1549
+ filters: Joi.array().items(
1550
+ FinancePlatformModel.GetReportingNestedFilters()
1551
+ ),
1552
+ status: FinancePlatformModel.GetReportingFilters(),
1739
1553
  });
1740
1554
  }
1741
1555
  }