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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (294) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/ApplicationClient.d.ts +0 -2
  4. package/sdk/application/ApplicationClient.js +0 -2
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +53 -60
  6. package/sdk/application/Cart/CartApplicationClient.js +53 -130
  7. package/sdk/application/Cart/CartApplicationModel.d.ts +143 -489
  8. package/sdk/application/Cart/CartApplicationModel.js +159 -380
  9. package/sdk/application/Cart/CartApplicationValidator.d.ts +19 -38
  10. package/sdk/application/Cart/CartApplicationValidator.js +18 -34
  11. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +68 -88
  12. package/sdk/application/Catalog/CatalogApplicationClient.js +94 -114
  13. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +142 -194
  14. package/sdk/application/Catalog/CatalogApplicationModel.js +133 -171
  15. package/sdk/application/Common/CommonApplicationClient.d.ts +2 -3
  16. package/sdk/application/Common/CommonApplicationClient.js +5 -6
  17. package/sdk/application/Common/CommonApplicationModel.d.ts +9 -9
  18. package/sdk/application/Common/CommonApplicationModel.js +6 -6
  19. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +27 -34
  20. package/sdk/application/Configuration/ConfigurationApplicationClient.js +27 -34
  21. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +57 -45
  22. package/sdk/application/Configuration/ConfigurationApplicationModel.js +47 -35
  23. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +2 -2
  24. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +2 -2
  25. package/sdk/application/Content/ContentApplicationClient.d.ts +33 -23
  26. package/sdk/application/Content/ContentApplicationClient.js +75 -54
  27. package/sdk/application/Content/ContentApplicationModel.d.ts +37 -93
  28. package/sdk/application/Content/ContentApplicationModel.js +32 -83
  29. package/sdk/application/Content/ContentApplicationValidator.d.ts +17 -23
  30. package/sdk/application/Content/ContentApplicationValidator.js +10 -15
  31. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +8 -9
  32. package/sdk/application/FileStorage/FileStorageApplicationClient.js +13 -14
  33. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +25 -23
  34. package/sdk/application/FileStorage/FileStorageApplicationModel.js +18 -16
  35. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +6 -6
  36. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +6 -6
  37. package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -2
  38. package/sdk/application/Lead/LeadApplicationClient.js +3 -2
  39. package/sdk/application/Lead/LeadApplicationModel.d.ts +11 -11
  40. package/sdk/application/Lead/LeadApplicationModel.js +19 -19
  41. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +16 -39
  42. package/sdk/application/Logistic/LogisticApplicationClient.js +21 -189
  43. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +173 -532
  44. package/sdk/application/Logistic/LogisticApplicationModel.js +139 -409
  45. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +9 -54
  46. package/sdk/application/Logistic/LogisticApplicationValidator.js +8 -42
  47. package/sdk/application/Order/OrderApplicationClient.d.ts +10 -24
  48. package/sdk/application/Order/OrderApplicationClient.js +13 -96
  49. package/sdk/application/Order/OrderApplicationModel.d.ts +120 -436
  50. package/sdk/application/Order/OrderApplicationModel.js +81 -279
  51. package/sdk/application/Order/OrderApplicationValidator.d.ts +3 -17
  52. package/sdk/application/Order/OrderApplicationValidator.js +2 -15
  53. package/sdk/application/Payment/PaymentApplicationClient.d.ts +99 -96
  54. package/sdk/application/Payment/PaymentApplicationClient.js +114 -111
  55. package/sdk/application/Payment/PaymentApplicationModel.d.ts +289 -293
  56. package/sdk/application/Payment/PaymentApplicationModel.js +241 -243
  57. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +46 -46
  58. package/sdk/application/Payment/PaymentApplicationValidator.js +46 -46
  59. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +16 -13
  60. package/sdk/application/Rewards/RewardsApplicationClient.js +22 -19
  61. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +37 -37
  62. package/sdk/application/Rewards/RewardsApplicationModel.js +29 -29
  63. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +6 -6
  64. package/sdk/application/Rewards/RewardsApplicationValidator.js +6 -6
  65. package/sdk/application/Share/ShareApplicationModel.js +1 -1
  66. package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
  67. package/sdk/application/Theme/ThemeApplicationClient.js +6 -8
  68. package/sdk/application/Theme/ThemeApplicationModel.d.ts +17 -48
  69. package/sdk/application/Theme/ThemeApplicationModel.js +22 -42
  70. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +3 -16
  71. package/sdk/application/Theme/ThemeApplicationValidator.js +2 -9
  72. package/sdk/application/User/UserApplicationClient.d.ts +10 -10
  73. package/sdk/application/User/UserApplicationClient.js +10 -10
  74. package/sdk/application/User/UserApplicationModel.d.ts +17 -17
  75. package/sdk/application/User/UserApplicationModel.js +16 -16
  76. package/sdk/application/User/UserApplicationValidator.d.ts +2 -2
  77. package/sdk/application/User/UserApplicationValidator.js +2 -2
  78. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
  79. package/sdk/application/Webhook/WebhookApplicationClient.js +4 -4
  80. package/sdk/application/Webhook/WebhookApplicationModel.d.ts +9 -11
  81. package/sdk/application/Webhook/WebhookApplicationModel.js +6 -8
  82. package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +2 -2
  83. package/sdk/application/Webhook/WebhookApplicationValidator.js +2 -2
  84. package/sdk/application/index.d.ts +0 -1
  85. package/sdk/application/index.js +0 -2
  86. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -86
  87. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +24 -582
  88. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +19 -116
  89. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +14 -121
  90. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -8
  91. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -51
  92. package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
  93. package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
  94. package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
  95. package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
  96. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +20 -126
  97. package/sdk/partner/Logistics/LogisticsPartnerClient.js +20 -970
  98. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +85 -767
  99. package/sdk/partner/Logistics/LogisticsPartnerModel.js +76 -429
  100. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -10
  101. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +6 -120
  102. package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -8
  103. package/sdk/partner/Theme/ThemePartnerClient.js +16 -14
  104. package/sdk/partner/Theme/ThemePartnerModel.d.ts +37 -96
  105. package/sdk/partner/Theme/ThemePartnerModel.js +36 -90
  106. package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
  107. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -28
  108. package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -103
  109. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +179 -612
  110. package/sdk/partner/Webhook/WebhookPartnerModel.js +150 -253
  111. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -1
  112. package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -11
  113. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +4 -5
  114. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +8 -14
  115. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +9 -59
  116. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +4 -40
  117. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
  118. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
  119. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +130 -11
  120. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +152 -12
  121. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
  122. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
  123. package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
  124. package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
  125. package/sdk/platform/Billing/BillingPlatformModel.d.ts +388 -443
  126. package/sdk/platform/Billing/BillingPlatformModel.js +263 -280
  127. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +18 -16
  128. package/sdk/platform/Billing/BillingPlatformValidator.js +9 -8
  129. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +103 -134
  130. package/sdk/platform/Cart/CartPlatformApplicationClient.js +112 -407
  131. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +65 -111
  132. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +44 -106
  133. package/sdk/platform/Cart/CartPlatformModel.d.ts +1304 -4979
  134. package/sdk/platform/Cart/CartPlatformModel.js +1217 -1922
  135. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +183 -208
  136. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +358 -383
  137. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +126 -122
  138. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +68 -66
  139. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +118 -141
  140. package/sdk/platform/Catalog/CatalogPlatformClient.js +170 -193
  141. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1751 -1501
  142. package/sdk/platform/Catalog/CatalogPlatformModel.js +1224 -1393
  143. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +18 -18
  144. package/sdk/platform/Catalog/CatalogPlatformValidator.js +18 -18
  145. package/sdk/platform/Common/CommonPlatformClient.d.ts +2 -3
  146. package/sdk/platform/Common/CommonPlatformClient.js +2 -3
  147. package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
  148. package/sdk/platform/Common/CommonPlatformModel.js +6 -6
  149. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +17 -16
  150. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +17 -16
  151. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
  152. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
  153. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +33 -43
  154. package/sdk/platform/Communication/CommunicationPlatformModel.js +34 -38
  155. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +42 -46
  156. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +43 -47
  157. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
  158. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +212 -210
  159. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
  160. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
  161. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +33 -46
  162. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +54 -67
  163. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
  164. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
  165. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +24 -45
  166. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +30 -134
  167. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +124 -283
  168. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +94 -219
  169. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -37
  170. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +8 -27
  171. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +141 -124
  172. package/sdk/platform/Content/ContentPlatformApplicationClient.js +422 -449
  173. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +141 -179
  174. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +130 -168
  175. package/sdk/platform/Content/ContentPlatformClient.d.ts +106 -142
  176. package/sdk/platform/Content/ContentPlatformClient.js +336 -523
  177. package/sdk/platform/Content/ContentPlatformModel.d.ts +395 -1241
  178. package/sdk/platform/Content/ContentPlatformModel.js +390 -521
  179. package/sdk/platform/Content/ContentPlatformValidator.d.ts +117 -168
  180. package/sdk/platform/Content/ContentPlatformValidator.js +108 -162
  181. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +12 -14
  182. package/sdk/platform/Discount/DiscountPlatformClient.js +12 -14
  183. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
  184. package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
  185. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
  186. package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
  187. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +36 -94
  188. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +60 -462
  189. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +15 -62
  190. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +13 -75
  191. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
  192. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
  193. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +101 -370
  194. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +84 -313
  195. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  196. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  197. package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
  198. package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
  199. package/sdk/platform/Finance/FinancePlatformModel.d.ts +2890 -0
  200. package/sdk/platform/Finance/FinancePlatformModel.js +2148 -0
  201. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
  202. package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
  203. package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
  204. package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
  205. package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
  206. package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
  207. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +4 -15
  208. package/sdk/platform/Order/OrderPlatformApplicationClient.js +5 -83
  209. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +4 -25
  210. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +3 -16
  211. package/sdk/platform/Order/OrderPlatformClient.d.ts +97 -178
  212. package/sdk/platform/Order/OrderPlatformClient.js +245 -597
  213. package/sdk/platform/Order/OrderPlatformModel.d.ts +3071 -5449
  214. package/sdk/platform/Order/OrderPlatformModel.js +1656 -3501
  215. package/sdk/platform/Order/OrderPlatformValidator.d.ts +190 -237
  216. package/sdk/platform/Order/OrderPlatformValidator.js +105 -153
  217. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
  218. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
  219. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
  220. package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
  221. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +106 -94
  222. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +146 -131
  223. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +93 -64
  224. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +70 -62
  225. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
  226. package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
  227. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +507 -386
  228. package/sdk/platform/Payment/PaymentPlatformModel.js +376 -323
  229. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +10 -10
  230. package/sdk/platform/Payment/PaymentPlatformValidator.js +10 -10
  231. package/sdk/platform/PlatformClient.d.ts +2 -0
  232. package/sdk/platform/PlatformClient.js +4 -0
  233. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  234. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
  235. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
  236. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
  237. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
  238. package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
  239. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +35 -45
  240. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +38 -117
  241. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +13 -22
  242. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +12 -24
  243. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +46 -40
  244. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +64 -58
  245. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +341 -602
  246. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +284 -483
  247. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +8 -8
  248. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +8 -8
  249. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
  250. package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
  251. package/sdk/platform/Share/SharePlatformModel.d.ts +5 -36
  252. package/sdk/platform/Share/SharePlatformModel.js +4 -27
  253. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
  254. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +4 -8
  255. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +0 -5
  256. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +0 -2
  257. package/sdk/platform/Theme/ThemePlatformModel.d.ts +11 -37
  258. package/sdk/platform/Theme/ThemePlatformModel.js +15 -33
  259. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
  260. package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
  261. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
  262. package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
  263. package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
  264. package/sdk/platform/User/UserPlatformModel.js +23 -23
  265. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
  266. package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
  267. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +427 -720
  268. package/sdk/platform/Webhook/WebhookPlatformModel.js +386 -410
  269. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
  270. package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
  271. package/sdk/platform/index.d.ts +1 -0
  272. package/sdk/platform/index.js +2 -0
  273. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -3
  274. package/sdk/public/Configuration/ConfigurationPublicClient.js +5 -6
  275. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
  276. package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
  277. package/sdk/public/Content/ContentPublicClient.d.ts +2 -112
  278. package/sdk/public/Content/ContentPublicClient.js +5 -791
  279. package/sdk/public/Content/ContentPublicModel.d.ts +3 -549
  280. package/sdk/public/Content/ContentPublicModel.js +3 -649
  281. package/sdk/public/Content/ContentPublicValidator.d.ts +3 -69
  282. package/sdk/public/Content/ContentPublicValidator.js +2 -88
  283. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  284. package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
  285. package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
  286. package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
  287. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  288. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  289. package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -36
  290. package/sdk/application/Finance/FinanceApplicationClient.js +0 -202
  291. package/sdk/application/Finance/FinanceApplicationModel.d.ts +0 -289
  292. package/sdk/application/Finance/FinanceApplicationModel.js +0 -208
  293. package/sdk/application/Finance/FinanceApplicationValidator.d.ts +0 -25
  294. package/sdk/application/Finance/FinanceApplicationValidator.js +0 -31
@@ -20,16 +20,6 @@ const Joi = require("joi");
20
20
  * @property {string} [payable_by] - Promotion amount bearable party.
21
21
  */
22
22
 
23
- /**
24
- * @typedef FreeGiftItem
25
- * @property {string} [item_slug] - Item slug.
26
- * @property {string} [item_name] - Item name.
27
- * @property {Object} [item_price_details] - Item price details.
28
- * @property {string} [item_brand_name] - Item brand name.
29
- * @property {number} [item_id] - Item id.
30
- * @property {string[]} [item_images_url] - Item images URL.
31
- */
32
-
33
23
  /**
34
24
  * @typedef AppliedFreeArticles
35
25
  * @property {FreeGiftItems} [free_gift_item_details] - Free gift items details.
@@ -245,24 +235,11 @@ const Joi = require("joi");
245
235
  * @property {string[]} [product_slug] - Contains list of product slug.
246
236
  */
247
237
 
248
- /**
249
- * @typedef ProductActionParams
250
- * @property {string[]} [slug] - Unique product url name generated via product
251
- * name and other meta data.
252
- */
253
-
254
- /**
255
- * @typedef ProductActionPage
256
- * @property {string} [type] - Entity of page to be redirected on click
257
- * @property {ProductActionParams} [params]
258
- */
259
-
260
238
  /**
261
239
  * @typedef ProductAction
262
240
  * @property {ActionQuery} [query]
263
- * @property {string} [url] - Url of the product to render the product
241
+ * @property {string} [url] - Url of the product to render the product .
264
242
  * @property {string} [type] - Type of action.
265
- * @property {ProductActionPage} [page]
266
243
  */
267
244
 
268
245
  /**
@@ -477,7 +454,7 @@ const Joi = require("joi");
477
454
  */
478
455
 
479
456
  /**
480
- * @typedef CartDetailResult
457
+ * @typedef CartDetailResponse
481
458
  * @property {number} [cart_id] - Unique identifier of the user cart.
482
459
  * @property {string} [uid] - Unique identifier of the user cart.
483
460
  * @property {AppliedPromotion[]} [applied_promo_details] - List of applied
@@ -549,7 +526,7 @@ const Joi = require("joi");
549
526
  */
550
527
 
551
528
  /**
552
- * @typedef AddCartCreation
529
+ * @typedef AddCartRequest
553
530
  * @property {AddProductCart[]} [items] - List of items detail which need to be
554
531
  * added to cart like item id, item size, and item quantity.
555
532
  * @property {boolean} [new_cart] - Field to create to new cart whille user adds
@@ -557,11 +534,11 @@ const Joi = require("joi");
557
534
  */
558
535
 
559
536
  /**
560
- * @typedef AddCartDetailResult
537
+ * @typedef AddCartDetailResponse
561
538
  * @property {string} [message] - Message of add to cart API response.
562
539
  * @property {boolean} [partial] - When adding multiple items check if all
563
540
  * added. True if only few are added.
564
- * @property {CartDetailResult} [cart]
541
+ * @property {CartDetailResponse} [cart]
565
542
  * @property {boolean} [success] - True if all items are added successfully.
566
543
  * False if partially added or not added.
567
544
  */
@@ -583,39 +560,30 @@ const Joi = require("joi");
583
560
  */
584
561
 
585
562
  /**
586
- * @typedef FreeGiftItemCreation
587
- * @property {string} promotion_id - Unique identifier of the free gift promotion.
588
- * @property {string} item_id - Unique identifier of the selected free gift item.
589
- * @property {string} item_size - Size of the selected free gift item.
590
- */
591
-
592
- /**
593
- * @typedef UpdateCartCreation
563
+ * @typedef UpdateCartRequest
594
564
  * @property {UpdateProductCart[]} [items] - List items data that needs to be
595
565
  * updated in cart.
596
- * @property {FreeGiftItemCreation[]} [free_gift_items] - List of free gift
597
- * items with updated sizes.
598
566
  * @property {string} operation - Field to determine if item to be removed from
599
567
  * cart or it needs to be updated.
600
568
  */
601
569
 
602
570
  /**
603
- * @typedef UpdateCartDetailResult
571
+ * @typedef UpdateCartDetailResponse
604
572
  * @property {string} [message] - Message of update cart API response.
605
- * @property {CartDetailResult} [cart]
573
+ * @property {CartDetailResponse} [cart]
606
574
  * @property {boolean} [success] - True if all items are added successfully.
607
575
  * False if partially added or not added.
608
576
  */
609
577
 
610
578
  /**
611
- * @typedef DeleteCartDetailResult
579
+ * @typedef DeleteCartDetailResponse
612
580
  * @property {string} [message] - Message for delete cart response.
613
581
  * @property {boolean} [success] - True if cart is archived successfully. False
614
582
  * if not archived.
615
583
  */
616
584
 
617
585
  /**
618
- * @typedef CartItemCountResult
586
+ * @typedef CartItemCountResponse
619
587
  * @property {number} [user_cart_items_count] - Item count present in cart.
620
588
  */
621
589
 
@@ -662,14 +630,14 @@ const Joi = require("joi");
662
630
  */
663
631
 
664
632
  /**
665
- * @typedef GetCouponResult
633
+ * @typedef GetCouponResponse
666
634
  * @property {PageCoupon} [page]
667
635
  * @property {Coupon[]} [available_coupon_list] - List of available coupon which
668
636
  * can be applied on cart.
669
637
  */
670
638
 
671
639
  /**
672
- * @typedef ApplyCoupon
640
+ * @typedef ApplyCouponRequest
673
641
  * @property {string} coupon_code - Coupon code to be applied.
674
642
  */
675
643
 
@@ -714,13 +682,13 @@ const Joi = require("joi");
714
682
  */
715
683
 
716
684
  /**
717
- * @typedef BulkPriceResult
685
+ * @typedef BulkPriceResponse
718
686
  * @property {BulkPriceOffer[]} [data] - Actual data to be in response consist
719
687
  * of offers from multiple seller.
720
688
  */
721
689
 
722
690
  /**
723
- * @typedef RewardPointCreation
691
+ * @typedef RewardPointRequest
724
692
  * @property {boolean} points - Points to be applied for cart.
725
693
  */
726
694
 
@@ -766,29 +734,22 @@ const Joi = require("joi");
766
734
  */
767
735
 
768
736
  /**
769
- * @typedef ValidationConfig
770
- * @property {number} address_max_limit - The maximum number of addresses a user can have.
771
- * @property {number} user_address_count - The total number of addresses saved by a user.
772
- */
773
-
774
- /**
775
- * @typedef GetAddressesResult
737
+ * @typedef GetAddressesResponse
776
738
  * @property {boolean} [pii_masking] - Personally Identifiable Information
777
739
  * masking flag to denote if the user data in address is masked or not.
778
740
  * @property {Address[]} [address] - Address description for address data.
779
- * @property {ValidationConfig} [validation_config]
780
741
  */
781
742
 
782
743
  /**
783
- * @typedef SaveAddressResult
744
+ * @typedef SaveAddressResponse
784
745
  * @property {string} [id] - Id of the address.
785
- * @property {boolean} [success] - Success flag of save address Result.
746
+ * @property {boolean} [success] - Success flag of save address Response.
786
747
  * @property {boolean} [is_default_address] - Default address flag if no address
787
748
  * selected then this should be the default address selected.
788
749
  */
789
750
 
790
751
  /**
791
- * @typedef UpdateAddressResult
752
+ * @typedef UpdateAddressResponse
792
753
  * @property {boolean} [is_updated] - Updated flag for update address operation
793
754
  * if the address updated or not.
794
755
  * @property {string} [id] - ID of an address.
@@ -798,14 +759,14 @@ const Joi = require("joi");
798
759
  */
799
760
 
800
761
  /**
801
- * @typedef DeleteAddressResult
762
+ * @typedef DeleteAddressResponse
802
763
  * @property {string} [id] - Id of the address.
803
764
  * @property {boolean} [is_deleted] - Deleted flag in delete address response
804
765
  * states whether the address was deleted or not.
805
766
  */
806
767
 
807
768
  /**
808
- * @typedef SelectCartAddressCreation
769
+ * @typedef SelectCartAddressRequest
809
770
  * @property {string} [id] - Address is selected by user on which shipment to be
810
771
  * delivered.
811
772
  * @property {string} [billing_address_id] - Billing address id selected by user
@@ -815,7 +776,7 @@ const Joi = require("joi");
815
776
  */
816
777
 
817
778
  /**
818
- * @typedef UpdateCartPaymentCreation
779
+ * @typedef UpdateCartPaymentRequest
819
780
  * @property {string} [id] - Cart id of the user cart for which the update cart
820
781
  * payment operation performed.
821
782
  * @property {string} [payment_identifier] - Payment identifier of the payment
@@ -839,7 +800,6 @@ const Joi = require("joi");
839
800
  * is valid or not.
840
801
  * @property {string} [display_message_en] - Display message for coupon validity.
841
802
  * @property {string} [code] - Coupon code of the coupon applied.
842
- * @property {string} [error_en] - Error message for the selected payment mode.
843
803
  */
844
804
 
845
805
  /**
@@ -851,7 +811,7 @@ const Joi = require("joi");
851
811
  */
852
812
 
853
813
  /**
854
- * @typedef ShipmentResult
814
+ * @typedef ShipmentResponse
855
815
  * @property {number} [shipments] - Count of shipments that will be shipped.
856
816
  * @property {ShipmentPromise} [promise]
857
817
  * @property {string} [order_type] - Order type of the shipment like pickAtStore
@@ -870,11 +830,11 @@ const Joi = require("joi");
870
830
  */
871
831
 
872
832
  /**
873
- * @typedef CartShipmentsResult
833
+ * @typedef CartShipmentsResponse
874
834
  * @property {string} [delivery_charge_info] - Delivery charge in information
875
835
  * message on shipment.
876
836
  * @property {string} [checkout_mode] - Checkout mode of cart.
877
- * @property {string} [message] - Result message of get shipments API.
837
+ * @property {string} [message] - Response message of get shipments API.
878
838
  * @property {string} [gstin] - GSTIN number added in cart.
879
839
  * @property {boolean} [restrict_checkout] - Restrict checkout flag to restrict
880
840
  * the checkout process.
@@ -885,7 +845,7 @@ const Joi = require("joi");
885
845
  * @property {CartBreakup} [breakup_values]
886
846
  * @property {CartCurrency} [currency]
887
847
  * @property {string} [id] - Cart id of the user cart.
888
- * @property {ShipmentResult[]} [shipments] - List of Shipments which includes
848
+ * @property {ShipmentResponse[]} [shipments] - List of Shipments which includes
889
849
  * shipment data like shipment items, shipment promise, Shipment type,
890
850
  * shipment order type, shipment dp options etc.
891
851
  * @property {PaymentSelectionLock} [payment_selection_lock]
@@ -900,12 +860,6 @@ const Joi = require("joi");
900
860
  * checkout API payload.
901
861
  */
902
862
 
903
- /**
904
- * @typedef CartCheckoutCustomMeta
905
- * @property {string} key - Key name of custom meta.
906
- * @property {string} value - Value to be added in key.
907
- */
908
-
909
863
  /**
910
864
  * @typedef CustomerDetails
911
865
  * @property {string} [email] - Email address of the customer to be added in
@@ -929,52 +883,6 @@ const Joi = require("joi");
929
883
  * @property {string} _id - Id of staff who does checkout on behalf of customer.
930
884
  */
931
885
 
932
- /**
933
- * @typedef CartCheckoutDetailCreation
934
- * @property {CartCheckoutCustomMeta[]} [custom_meta] - Custom meta data to be
935
- * added in order.
936
- * @property {CustomerDetails} [customer_details] - Customer details to be added in order.
937
- * @property {string} [merchant_code] - Merchant code of the payment mode
938
- * selected to do the payment.
939
- * @property {string} [id] - Cart id of the user cart.
940
- * @property {boolean} [payment_auto_confirm] - Payment auto confirm flag if
941
- * payment need not to be collected from user.
942
- * @property {string} payment_mode - Payment mode from which the payment to be
943
- * done for the order.
944
- * @property {string} [aggregator] - Aggregator name of the payment gateway.
945
- * @property {string} [address_id] - Address id of the user on which the order
946
- * to be delivered.
947
- * @property {string} [callback_url] - Callback url to be redirected after
948
- * payment received/failed.
949
- * @property {Object} [delivery_address] - Delivery address data which includes
950
- * customer address, customer phone, customer email, customer pincode,
951
- * customer landmark and customer name.
952
- * @property {StaffCheckout} [staff]
953
- * @property {string} [order_type] - Order type of the order being placed like
954
- * pickAtStore or HomeDelivery.
955
- * @property {number} [ordering_store] - Ordering store id of the store from
956
- * which the order is getting placed.
957
- * @property {Object} [extra_meta] - Extra meta to be added while checkout in order.
958
- * @property {string} [payment_identifier] - Payment identifier of the payment
959
- * mode selected to do the payment.
960
- * @property {Object} [billing_address] - Billing address json which includes
961
- * customer address, customer phone, customer email, customer pincode,
962
- * customer landmark and customer name.
963
- * @property {Object} [payment_params] - Payment params which includes payment
964
- * identifier and merchant code.
965
- * @property {string} [billing_address_id] - Billing address id of the customer
966
- * on which the invoice to be generated after the order is placed.
967
- * @property {Object} [meta] - Meta data to be added in order.
968
- * @property {Object} [payment_extra_identifiers] - Payment extra identifier for
969
- * the payment mode to do the payment.
970
- * @property {string} [iin] - Issuer Identification Number' number of card if
971
- * payment mode is card.
972
- * @property {string} [network] - Network of card if payment mode is card to do
973
- * the payment.
974
- * @property {string} [type] - Type of cart if payment mode is card to do the payment.
975
- * @property {string} [card_id] - Saved card id if payment mode is card to do the payment.
976
- */
977
-
978
886
  /**
979
887
  * @typedef CheckCart
980
888
  * @property {string} [checkout_mode] - Checkout mode of user cart.
@@ -1011,11 +919,11 @@ const Joi = require("joi");
1011
919
  * @property {string} [coupon_text] - Coupon text of the applied coupon on order placed.
1012
920
  * @property {boolean} [buy_now] - Buy now flag of user cart.
1013
921
  * @property {number} [cod_charges] - Cash On Delivery charges of the user cart.
1014
- * @property {Object} [custom_cart_meta] - Custom cart meta details added in cart.
922
+ * @property {Object} [custom_cart_meta] - Meta data for customCart of user.
1015
923
  */
1016
924
 
1017
925
  /**
1018
- * @typedef CartCheckoutResult
926
+ * @typedef CartCheckoutResponse
1019
927
  * @property {string} [payment_confirm_url] - Payment confirm url used to
1020
928
  * redirect after payment is confirmed.
1021
929
  * @property {string} [app_intercept_url] - App intercept url which is used to
@@ -1044,7 +952,7 @@ const Joi = require("joi");
1044
952
  */
1045
953
 
1046
954
  /**
1047
- * @typedef CartMetaCreation
955
+ * @typedef CartMetaRequest
1048
956
  * @property {Object} [delivery_slots] - Delivery slots details includes article
1049
957
  * level time slot when the shipment can be delivered.
1050
958
  * @property {ArticleGiftDetail} [gift_details]
@@ -1059,25 +967,25 @@ const Joi = require("joi");
1059
967
  */
1060
968
 
1061
969
  /**
1062
- * @typedef CartMetaResult
970
+ * @typedef CartMetaResponse
1063
971
  * @property {string} [message] - Detailed message.
1064
972
  * @property {boolean} [is_valid] - Whether added meta was vaild.
1065
973
  */
1066
974
 
1067
975
  /**
1068
- * @typedef CartMetaMissingResult
976
+ * @typedef CartMetaMissingResponse
1069
977
  * @property {string[]} [errors] - Detailed errors for invalid cart meta request.
1070
978
  */
1071
979
 
1072
980
  /**
1073
- * @typedef GetShareCartLinkCreation
981
+ * @typedef GetShareCartLinkRequest
1074
982
  * @property {string} [id] - Cart id of user cart for generating cart sharing token.
1075
983
  * @property {Object} [meta] - Staff, Ordering store or any other data. This
1076
984
  * data will be used to generate link as well as sent as shared details.
1077
985
  */
1078
986
 
1079
987
  /**
1080
- * @typedef GetShareCartLinkResult
988
+ * @typedef GetShareCartLinkResponse
1081
989
  * @property {string} [token] - Short url unique id of the cart which is opted
1082
990
  * to share with other user.
1083
991
  * @property {string} [share_url] - Short shareable final url which can populate
@@ -1124,7 +1032,7 @@ const Joi = require("joi");
1124
1032
  */
1125
1033
 
1126
1034
  /**
1127
- * @typedef SharedCartResult
1035
+ * @typedef SharedCartResponse
1128
1036
  * @property {string} [error] - Error details if any error occurs which includes
1129
1037
  * type of error, error code and error message.
1130
1038
  * @property {SharedCart} [cart]
@@ -1143,26 +1051,15 @@ const Joi = require("joi");
1143
1051
  * @property {string} [currency] - Currency of the article added in cart.
1144
1052
  */
1145
1053
 
1146
- /**
1147
- * @typedef ArticlePriceDetails
1148
- * @property {number} [marked] - The Marked Price refers to the initial price of
1149
- * the free gift article before product discount.
1150
- * @property {number} [effective] - The Effective Price refers to the final
1151
- * amount of the free gift article after applying the product discount.
1152
- */
1153
-
1154
1054
  /**
1155
1055
  * @typedef FreeGiftItems
1156
1056
  * @property {string} [item_slug] - Slug for an item.
1157
1057
  * @property {string} [item_name] - Name of the free gift item received via free
1158
1058
  * gift promotion.
1159
1059
  * @property {ItemPriceDetails} [item_price_details]
1160
- * @property {ArticlePriceDetails} [article_price]
1161
1060
  * @property {string} [item_brand_name] - Item brand name of the free gift item
1162
1061
  * promotion applied on cart.
1163
1062
  * @property {number} [item_id] - Item id of the free gift item.
1164
- * @property {string[]} [available_sizes] - Available sizes for the free gift item.
1165
- * @property {string} [size] - Selected size for the free gift item.
1166
1063
  * @property {string[]} [item_images_url] - Images URLs for free gift items.
1167
1064
  */
1168
1065
 
@@ -1190,7 +1087,7 @@ const Joi = require("joi");
1190
1087
  */
1191
1088
 
1192
1089
  /**
1193
- * @typedef PromotionOffersResult
1090
+ * @typedef PromotionOffersResponse
1194
1091
  * @property {PromotionOffer[]} [available_promotions] - Available promotion
1195
1092
  * details which are available on product which includes promotion data like
1196
1093
  * promotion id, promotion name, buy rules, discount rules validity dates etc.
@@ -1218,14 +1115,14 @@ const Joi = require("joi");
1218
1115
  */
1219
1116
 
1220
1117
  /**
1221
- * @typedef PromotionPaymentOffersResult
1118
+ * @typedef PromotionPaymentOffersResponse
1222
1119
  * @property {boolean} [success] - Success flag of get payment offers API response.
1223
1120
  * @property {PromotionPaymentOffer[]} [promotions] - List of promotions data
1224
1121
  * which are applicable on cart/product.
1225
1122
  */
1226
1123
 
1227
1124
  /**
1228
- * @typedef OperationErrorResult
1125
+ * @typedef OperationErrorResponse
1229
1126
  * @property {string} [message] - Message of get payment offer API response.
1230
1127
  * @property {boolean} [success] - Success flag of get payment offer API response.
1231
1128
  */
@@ -1307,10 +1204,9 @@ const Joi = require("joi");
1307
1204
  */
1308
1205
 
1309
1206
  /**
1310
- * @typedef CartCheckoutDetailV2Creation
1311
- * @property {CartCheckoutCustomMeta[]} [custom_meta] - Custom meta data to be
1312
- * added in order.
1313
- * @property {CustomerDetails} [customer_details]
1207
+ * @typedef CartCheckoutDetailV2Request
1208
+ * @property {Object} [custom_meta] - Custom meta data to be added in order.
1209
+ * @property {Object} [customer_details] - Customer details to be added in order.
1314
1210
  * @property {string} [merchant_code] - Merchant code of the payment mode
1315
1211
  * selected to do the payment.
1316
1212
  * @property {string} [cart_id] - Cart id of the user cart.
@@ -1352,18 +1248,12 @@ const Joi = require("joi");
1352
1248
  * @property {string} [card_id] - Saved card id if payment mode is card to do the payment.
1353
1249
  */
1354
1250
 
1355
- /**
1356
- * @typedef ValidationError
1357
- * @property {string} message - A brief description of the error encountered.
1358
- * @property {string} field - The field in the request that caused the error.
1359
- */
1360
-
1361
1251
  class CartApplicationModel {
1362
1252
  /** @returns {BuyRules} */
1363
1253
  static BuyRules() {
1364
1254
  return Joi.object({
1365
- item_criteria: Joi.object().pattern(/\S/, Joi.any()),
1366
- cart_conditions: Joi.object().pattern(/\S/, Joi.any()),
1255
+ item_criteria: Joi.any(),
1256
+ cart_conditions: Joi.any(),
1367
1257
  });
1368
1258
  }
1369
1259
 
@@ -1371,9 +1261,9 @@ class CartApplicationModel {
1371
1261
  static DiscountRulesApp() {
1372
1262
  return Joi.object({
1373
1263
  matched_buy_rules: Joi.array().items(Joi.string().allow("")),
1374
- raw_offer: Joi.object().pattern(/\S/, Joi.any()),
1375
- offer: Joi.object().pattern(/\S/, Joi.any()),
1376
- item_criteria: Joi.object().pattern(/\S/, Joi.any()),
1264
+ raw_offer: Joi.any(),
1265
+ offer: Joi.any(),
1266
+ item_criteria: Joi.any(),
1377
1267
  });
1378
1268
  }
1379
1269
 
@@ -1385,18 +1275,6 @@ class CartApplicationModel {
1385
1275
  });
1386
1276
  }
1387
1277
 
1388
- /** @returns {FreeGiftItem} */
1389
- static FreeGiftItem() {
1390
- return Joi.object({
1391
- item_slug: Joi.string().allow(""),
1392
- item_name: Joi.string().allow(""),
1393
- item_price_details: Joi.object().pattern(/\S/, Joi.any()),
1394
- item_brand_name: Joi.string().allow(""),
1395
- item_id: Joi.number(),
1396
- item_images_url: Joi.array().items(Joi.string().allow("")),
1397
- });
1398
- }
1399
-
1400
1278
  /** @returns {AppliedFreeArticles} */
1401
1279
  static AppliedFreeArticles() {
1402
1280
  return Joi.object({
@@ -1426,7 +1304,7 @@ class CartApplicationModel {
1426
1304
  CartApplicationModel.AppliedFreeArticles()
1427
1305
  ),
1428
1306
  promotion_type: Joi.string().allow(""),
1429
- meta: Joi.object().pattern(/\S/, Joi.any()),
1307
+ meta: Joi.any(),
1430
1308
  code: Joi.string().allow("").allow(null),
1431
1309
  });
1432
1310
  }
@@ -1513,20 +1391,20 @@ class CartApplicationModel {
1513
1391
  return Joi.object({
1514
1392
  price: CartApplicationModel.ArticlePriceInfo(),
1515
1393
  product_group_tags: Joi.array().items(Joi.string().allow("")),
1516
- extra_meta: Joi.object().pattern(/\S/, Joi.any()),
1394
+ extra_meta: Joi.any(),
1517
1395
  quantity: Joi.number(),
1518
- _custom_json: Joi.object().pattern(/\S/, Joi.any()),
1519
- meta: Joi.object().pattern(/\S/, Joi.any()),
1396
+ _custom_json: Joi.any(),
1397
+ meta: Joi.any(),
1520
1398
  size: Joi.string().allow(""),
1521
1399
  mto_quantity: Joi.number(),
1522
1400
  seller: CartApplicationModel.BaseInfo(),
1523
1401
  seller_identifier: Joi.string().allow(""),
1524
- parent_item_identifiers: Joi.object().pattern(/\S/, Joi.any()),
1525
- identifier: Joi.object().pattern(/\S/, Joi.any()),
1402
+ parent_item_identifiers: Joi.any(),
1403
+ identifier: Joi.any(),
1526
1404
  store: CartApplicationModel.StoreInfo(),
1527
- cart_item_meta: Joi.object().pattern(/\S/, Joi.any()),
1405
+ cart_item_meta: Joi.any(),
1528
1406
  uid: Joi.string().allow(""),
1529
- gift_card: Joi.object().pattern(/\S/, Joi.any()),
1407
+ gift_card: Joi.any(),
1530
1408
  is_gift_visible: Joi.boolean(),
1531
1409
  type: Joi.string().allow(""),
1532
1410
  tags: Joi.array().items(Joi.string().allow("")),
@@ -1558,7 +1436,7 @@ class CartApplicationModel {
1558
1436
  /** @returns {Charges} */
1559
1437
  static Charges() {
1560
1438
  return Joi.object({
1561
- meta: Joi.object().pattern(/\S/, Joi.any()),
1439
+ meta: Joi.any(),
1562
1440
  amount: CartApplicationModel.ChargesAmount(),
1563
1441
  name: Joi.string().allow(""),
1564
1442
  allow_refund: Joi.boolean(),
@@ -1637,35 +1515,19 @@ class CartApplicationModel {
1637
1515
  });
1638
1516
  }
1639
1517
 
1640
- /** @returns {ProductActionParams} */
1641
- static ProductActionParams() {
1642
- return Joi.object({
1643
- slug: Joi.array().items(Joi.string().allow("")),
1644
- });
1645
- }
1646
-
1647
- /** @returns {ProductActionPage} */
1648
- static ProductActionPage() {
1649
- return Joi.object({
1650
- type: Joi.string().allow(""),
1651
- params: CartApplicationModel.ProductActionParams(),
1652
- });
1653
- }
1654
-
1655
1518
  /** @returns {ProductAction} */
1656
1519
  static ProductAction() {
1657
1520
  return Joi.object({
1658
1521
  query: CartApplicationModel.ActionQuery(),
1659
1522
  url: Joi.string().allow(""),
1660
1523
  type: Joi.string().allow(""),
1661
- page: CartApplicationModel.ProductActionPage(),
1662
1524
  });
1663
1525
  }
1664
1526
 
1665
1527
  /** @returns {Tags} */
1666
1528
  static Tags() {
1667
1529
  return Joi.object({
1668
- tags: Joi.object().pattern(/\S/, Joi.any()),
1530
+ tags: Joi.any(),
1669
1531
  });
1670
1532
  }
1671
1533
 
@@ -1689,7 +1551,7 @@ class CartApplicationModel {
1689
1551
  /** @returns {CartProduct} */
1690
1552
  static CartProduct() {
1691
1553
  return Joi.object({
1692
- _custom_json: Joi.object().pattern(/\S/, Joi.any()),
1554
+ _custom_json: Joi.any(),
1693
1555
  brand: CartApplicationModel.BaseInfo(),
1694
1556
  action: CartApplicationModel.ProductAction(),
1695
1557
  teaser_tag: CartApplicationModel.Tags(),
@@ -1701,7 +1563,7 @@ class CartApplicationModel {
1701
1563
  categories: Joi.array().items(CartApplicationModel.CategoryInfo()),
1702
1564
  tags: Joi.array().items(Joi.string().allow("")),
1703
1565
  type: Joi.string().allow(""),
1704
- attributes: Joi.object().pattern(/\S/, Joi.any()),
1566
+ attributes: Joi.any(),
1705
1567
  });
1706
1568
  }
1707
1569
 
@@ -1718,7 +1580,7 @@ class CartApplicationModel {
1718
1580
  static CartProductInfo() {
1719
1581
  return Joi.object({
1720
1582
  article: CartApplicationModel.ProductArticle(),
1721
- moq: Joi.object().pattern(/\S/, Joi.any()),
1583
+ moq: Joi.any(),
1722
1584
  identifiers: CartApplicationModel.CartProductIdentifer().required(),
1723
1585
  promo_meta: CartApplicationModel.PromoMeta(),
1724
1586
  price: CartApplicationModel.ProductPriceInfo(),
@@ -1729,10 +1591,10 @@ class CartApplicationModel {
1729
1591
  delivery_promise: CartApplicationModel.ShipmentPromise(),
1730
1592
  product: CartApplicationModel.CartProduct(),
1731
1593
  product_ean_id: Joi.string().allow(""),
1732
- bulk_offer: Joi.object().pattern(/\S/, Joi.any()),
1733
- parent_item_identifiers: Joi.object().pattern(/\S/, Joi.any()),
1594
+ bulk_offer: Joi.any(),
1595
+ parent_item_identifiers: Joi.any(),
1734
1596
  coupon: CartApplicationModel.CouponDetails(),
1735
- custom_order: Joi.object().pattern(/\S/, Joi.any()),
1597
+ custom_order: Joi.any(),
1736
1598
  coupon_message: Joi.string().allow(""),
1737
1599
  key: Joi.string().allow(""),
1738
1600
  message: Joi.string().allow(""),
@@ -1870,8 +1732,8 @@ class CartApplicationModel {
1870
1732
  });
1871
1733
  }
1872
1734
 
1873
- /** @returns {CartDetailResult} */
1874
- static CartDetailResult() {
1735
+ /** @returns {CartDetailResponse} */
1736
+ static CartDetailResponse() {
1875
1737
  return Joi.object({
1876
1738
  cart_id: Joi.number(),
1877
1739
  uid: Joi.string().allow(""),
@@ -1890,7 +1752,7 @@ class CartApplicationModel {
1890
1752
  common_config: CartApplicationModel.CartCommonConfig(),
1891
1753
  coupon: CartApplicationModel.CartDetailCoupon(),
1892
1754
  message: Joi.string().allow(""),
1893
- notification: Joi.object().pattern(/\S/, Joi.any()),
1755
+ notification: Joi.any(),
1894
1756
  staff_user_id: Joi.string().allow(""),
1895
1757
  success: Joi.boolean(),
1896
1758
  gstin: Joi.string().allow(""),
@@ -1900,19 +1762,19 @@ class CartApplicationModel {
1900
1762
  currency: CartApplicationModel.CartCurrency(),
1901
1763
  coupon_text: Joi.string().allow(""),
1902
1764
  buy_now: Joi.boolean(),
1903
- pan_config: Joi.object().pattern(/\S/, Joi.any()),
1904
- custom_cart_meta: Joi.object().pattern(/\S/, Joi.any()),
1765
+ pan_config: Joi.any(),
1766
+ custom_cart_meta: Joi.any(),
1905
1767
  });
1906
1768
  }
1907
1769
 
1908
1770
  /** @returns {AddProductCart} */
1909
1771
  static AddProductCart() {
1910
1772
  return Joi.object({
1911
- article_assignment: Joi.object().pattern(/\S/, Joi.any()),
1773
+ article_assignment: Joi.any(),
1912
1774
  product_group_tags: Joi.array().items(Joi.string().allow("").allow(null)),
1913
- extra_meta: Joi.object().pattern(/\S/, Joi.any()),
1775
+ extra_meta: Joi.any(),
1914
1776
  quantity: Joi.number(),
1915
- _custom_json: Joi.object().pattern(/\S/, Joi.any()),
1777
+ _custom_json: Joi.any(),
1916
1778
  item_size: Joi.string().allow(""),
1917
1779
  store_id: Joi.number(),
1918
1780
  display: Joi.string().allow(""),
@@ -1923,25 +1785,25 @@ class CartApplicationModel {
1923
1785
  seller_id: Joi.number(),
1924
1786
  pos: Joi.boolean(),
1925
1787
  item_id: Joi.number(),
1926
- meta: Joi.object().pattern(/\S/, Joi.any()),
1788
+ meta: Joi.any(),
1927
1789
  seller_identifier: Joi.string().allow(""),
1928
1790
  });
1929
1791
  }
1930
1792
 
1931
- /** @returns {AddCartCreation} */
1932
- static AddCartCreation() {
1793
+ /** @returns {AddCartRequest} */
1794
+ static AddCartRequest() {
1933
1795
  return Joi.object({
1934
1796
  items: Joi.array().items(CartApplicationModel.AddProductCart()),
1935
1797
  new_cart: Joi.boolean(),
1936
1798
  });
1937
1799
  }
1938
1800
 
1939
- /** @returns {AddCartDetailResult} */
1940
- static AddCartDetailResult() {
1801
+ /** @returns {AddCartDetailResponse} */
1802
+ static AddCartDetailResponse() {
1941
1803
  return Joi.object({
1942
1804
  message: Joi.string().allow(""),
1943
1805
  partial: Joi.boolean(),
1944
- cart: CartApplicationModel.CartDetailResult(),
1806
+ cart: CartApplicationModel.CartDetailResponse(),
1945
1807
  success: Joi.boolean(),
1946
1808
  });
1947
1809
  }
@@ -1949,58 +1811,46 @@ class CartApplicationModel {
1949
1811
  /** @returns {UpdateProductCart} */
1950
1812
  static UpdateProductCart() {
1951
1813
  return Joi.object({
1952
- extra_meta: Joi.object().pattern(/\S/, Joi.any()),
1953
- _custom_json: Joi.object().pattern(/\S/, Joi.any()),
1814
+ extra_meta: Joi.any(),
1815
+ _custom_json: Joi.any(),
1954
1816
  quantity: Joi.number(),
1955
1817
  item_size: Joi.string().allow(""),
1956
1818
  item_index: Joi.number(),
1957
1819
  identifiers: CartApplicationModel.CartProductIdentifer().required(),
1958
1820
  article_id: Joi.string().allow(""),
1959
- parent_item_identifiers: Joi.object().pattern(/\S/, Joi.any()),
1821
+ parent_item_identifiers: Joi.any(),
1960
1822
  item_id: Joi.number(),
1961
- meta: Joi.object().pattern(/\S/, Joi.any()),
1823
+ meta: Joi.any(),
1962
1824
  });
1963
1825
  }
1964
1826
 
1965
- /** @returns {FreeGiftItemCreation} */
1966
- static FreeGiftItemCreation() {
1967
- return Joi.object({
1968
- promotion_id: Joi.string().allow("").required(),
1969
- item_id: Joi.string().allow("").required(),
1970
- item_size: Joi.string().allow("").required(),
1971
- });
1972
- }
1973
-
1974
- /** @returns {UpdateCartCreation} */
1975
- static UpdateCartCreation() {
1827
+ /** @returns {UpdateCartRequest} */
1828
+ static UpdateCartRequest() {
1976
1829
  return Joi.object({
1977
1830
  items: Joi.array().items(CartApplicationModel.UpdateProductCart()),
1978
- free_gift_items: Joi.array().items(
1979
- CartApplicationModel.FreeGiftItemCreation()
1980
- ),
1981
1831
  operation: Joi.string().allow("").required(),
1982
1832
  });
1983
1833
  }
1984
1834
 
1985
- /** @returns {UpdateCartDetailResult} */
1986
- static UpdateCartDetailResult() {
1835
+ /** @returns {UpdateCartDetailResponse} */
1836
+ static UpdateCartDetailResponse() {
1987
1837
  return Joi.object({
1988
1838
  message: Joi.string().allow(""),
1989
- cart: CartApplicationModel.CartDetailResult(),
1839
+ cart: CartApplicationModel.CartDetailResponse(),
1990
1840
  success: Joi.boolean(),
1991
1841
  });
1992
1842
  }
1993
1843
 
1994
- /** @returns {DeleteCartDetailResult} */
1995
- static DeleteCartDetailResult() {
1844
+ /** @returns {DeleteCartDetailResponse} */
1845
+ static DeleteCartDetailResponse() {
1996
1846
  return Joi.object({
1997
1847
  message: Joi.string().allow(""),
1998
1848
  success: Joi.boolean(),
1999
1849
  });
2000
1850
  }
2001
1851
 
2002
- /** @returns {CartItemCountResult} */
2003
- static CartItemCountResult() {
1852
+ /** @returns {CartItemCountResponse} */
1853
+ static CartItemCountResponse() {
2004
1854
  return Joi.object({
2005
1855
  user_cart_items_count: Joi.number(),
2006
1856
  });
@@ -2041,16 +1891,16 @@ class CartApplicationModel {
2041
1891
  });
2042
1892
  }
2043
1893
 
2044
- /** @returns {GetCouponResult} */
2045
- static GetCouponResult() {
1894
+ /** @returns {GetCouponResponse} */
1895
+ static GetCouponResponse() {
2046
1896
  return Joi.object({
2047
1897
  page: CartApplicationModel.PageCoupon(),
2048
1898
  available_coupon_list: Joi.array().items(CartApplicationModel.Coupon()),
2049
1899
  });
2050
1900
  }
2051
1901
 
2052
- /** @returns {ApplyCoupon} */
2053
- static ApplyCoupon() {
1902
+ /** @returns {ApplyCouponRequest} */
1903
+ static ApplyCouponRequest() {
2054
1904
  return Joi.object({
2055
1905
  coupon_code: Joi.string().allow("").required(),
2056
1906
  });
@@ -2096,15 +1946,15 @@ class CartApplicationModel {
2096
1946
  });
2097
1947
  }
2098
1948
 
2099
- /** @returns {BulkPriceResult} */
2100
- static BulkPriceResult() {
1949
+ /** @returns {BulkPriceResponse} */
1950
+ static BulkPriceResponse() {
2101
1951
  return Joi.object({
2102
1952
  data: Joi.array().items(CartApplicationModel.BulkPriceOffer()),
2103
1953
  });
2104
1954
  }
2105
1955
 
2106
- /** @returns {RewardPointCreation} */
2107
- static RewardPointCreation() {
1956
+ /** @returns {RewardPointRequest} */
1957
+ static RewardPointRequest() {
2108
1958
  return Joi.object({
2109
1959
  points: Joi.boolean().required(),
2110
1960
  });
@@ -2130,7 +1980,7 @@ class CartApplicationModel {
2130
1980
  area_code_slug: Joi.string().allow(""),
2131
1981
  geo_location: CartApplicationModel.GeoLocation(),
2132
1982
  id: Joi.string().allow(""),
2133
- _custom_json: Joi.object().pattern(/\S/, Joi.any()),
1983
+ _custom_json: Joi.any(),
2134
1984
  city: Joi.string().allow(""),
2135
1985
  sector: Joi.string().allow(""),
2136
1986
  state_code: Joi.string().allow(""),
@@ -2138,7 +1988,7 @@ class CartApplicationModel {
2138
1988
  landmark: Joi.string().allow(""),
2139
1989
  user_id: Joi.string().allow(""),
2140
1990
  name: Joi.string().allow(""),
2141
- google_map_point: Joi.object().pattern(/\S/, Joi.any()),
1991
+ google_map_point: Joi.any(),
2142
1992
  is_active: Joi.boolean(),
2143
1993
  tags: Joi.array().items(Joi.string().allow("")),
2144
1994
  country_code: Joi.string().allow(""),
@@ -2148,29 +1998,20 @@ class CartApplicationModel {
2148
1998
  area_code: Joi.string().allow(""),
2149
1999
  email: Joi.string().allow(""),
2150
2000
  state: Joi.string().allow(""),
2151
- meta: Joi.object().pattern(/\S/, Joi.any()),
2001
+ meta: Joi.any(),
2152
2002
  });
2153
2003
  }
2154
2004
 
2155
- /** @returns {ValidationConfig} */
2156
- static ValidationConfig() {
2157
- return Joi.object({
2158
- address_max_limit: Joi.number().required(),
2159
- user_address_count: Joi.number().required(),
2160
- });
2161
- }
2162
-
2163
- /** @returns {GetAddressesResult} */
2164
- static GetAddressesResult() {
2005
+ /** @returns {GetAddressesResponse} */
2006
+ static GetAddressesResponse() {
2165
2007
  return Joi.object({
2166
2008
  pii_masking: Joi.boolean(),
2167
2009
  address: Joi.array().items(CartApplicationModel.Address()),
2168
- validation_config: CartApplicationModel.ValidationConfig(),
2169
2010
  });
2170
2011
  }
2171
2012
 
2172
- /** @returns {SaveAddressResult} */
2173
- static SaveAddressResult() {
2013
+ /** @returns {SaveAddressResponse} */
2014
+ static SaveAddressResponse() {
2174
2015
  return Joi.object({
2175
2016
  id: Joi.string().allow(""),
2176
2017
  success: Joi.boolean(),
@@ -2178,8 +2019,8 @@ class CartApplicationModel {
2178
2019
  });
2179
2020
  }
2180
2021
 
2181
- /** @returns {UpdateAddressResult} */
2182
- static UpdateAddressResult() {
2022
+ /** @returns {UpdateAddressResponse} */
2023
+ static UpdateAddressResponse() {
2183
2024
  return Joi.object({
2184
2025
  is_updated: Joi.boolean(),
2185
2026
  id: Joi.string().allow(""),
@@ -2188,16 +2029,16 @@ class CartApplicationModel {
2188
2029
  });
2189
2030
  }
2190
2031
 
2191
- /** @returns {DeleteAddressResult} */
2192
- static DeleteAddressResult() {
2032
+ /** @returns {DeleteAddressResponse} */
2033
+ static DeleteAddressResponse() {
2193
2034
  return Joi.object({
2194
2035
  id: Joi.string().allow(""),
2195
2036
  is_deleted: Joi.boolean(),
2196
2037
  });
2197
2038
  }
2198
2039
 
2199
- /** @returns {SelectCartAddressCreation} */
2200
- static SelectCartAddressCreation() {
2040
+ /** @returns {SelectCartAddressRequest} */
2041
+ static SelectCartAddressRequest() {
2201
2042
  return Joi.object({
2202
2043
  id: Joi.string().allow(""),
2203
2044
  billing_address_id: Joi.string().allow(""),
@@ -2205,8 +2046,8 @@ class CartApplicationModel {
2205
2046
  });
2206
2047
  }
2207
2048
 
2208
- /** @returns {UpdateCartPaymentCreation} */
2209
- static UpdateCartPaymentCreation() {
2049
+ /** @returns {UpdateCartPaymentRequest} */
2050
+ static UpdateCartPaymentRequest() {
2210
2051
  return Joi.object({
2211
2052
  id: Joi.string().allow(""),
2212
2053
  payment_identifier: Joi.string().allow("").allow(null),
@@ -2226,7 +2067,6 @@ class CartApplicationModel {
2226
2067
  valid: Joi.boolean(),
2227
2068
  display_message_en: Joi.string().allow("").allow(null),
2228
2069
  code: Joi.string().allow("").allow(null),
2229
- error_en: Joi.string().allow("").allow(null),
2230
2070
  });
2231
2071
  }
2232
2072
 
@@ -2239,15 +2079,15 @@ class CartApplicationModel {
2239
2079
  });
2240
2080
  }
2241
2081
 
2242
- /** @returns {ShipmentResult} */
2243
- static ShipmentResult() {
2082
+ /** @returns {ShipmentResponse} */
2083
+ static ShipmentResponse() {
2244
2084
  return Joi.object({
2245
2085
  shipments: Joi.number(),
2246
2086
  promise: CartApplicationModel.ShipmentPromise(),
2247
2087
  order_type: Joi.string().allow(""),
2248
2088
  box_type: Joi.string().allow("").allow(null),
2249
2089
  shipment_type: Joi.string().allow(""),
2250
- dp_options: Joi.object().pattern(/\S/, Joi.any()).allow(null, ""),
2090
+ dp_options: Joi.any().allow(null),
2251
2091
  dp_id: Joi.string().allow("").allow(null),
2252
2092
  items: Joi.array().items(CartApplicationModel.CartProductInfo()),
2253
2093
  fulfillment_type: Joi.string().allow(""),
@@ -2255,8 +2095,8 @@ class CartApplicationModel {
2255
2095
  });
2256
2096
  }
2257
2097
 
2258
- /** @returns {CartShipmentsResult} */
2259
- static CartShipmentsResult() {
2098
+ /** @returns {CartShipmentsResponse} */
2099
+ static CartShipmentsResponse() {
2260
2100
  return Joi.object({
2261
2101
  delivery_charge_info: Joi.string().allow(""),
2262
2102
  checkout_mode: Joi.string().allow(""),
@@ -2269,7 +2109,7 @@ class CartApplicationModel {
2269
2109
  breakup_values: CartApplicationModel.CartBreakup(),
2270
2110
  currency: CartApplicationModel.CartCurrency(),
2271
2111
  id: Joi.string().allow(""),
2272
- shipments: Joi.array().items(CartApplicationModel.ShipmentResult()),
2112
+ shipments: Joi.array().items(CartApplicationModel.ShipmentResponse()),
2273
2113
  payment_selection_lock: CartApplicationModel.PaymentSelectionLock(),
2274
2114
  coupon_text: Joi.string().allow(""),
2275
2115
  delivery_promise: CartApplicationModel.ShipmentPromise(),
@@ -2277,15 +2117,7 @@ class CartApplicationModel {
2277
2117
  comment: Joi.string().allow(""),
2278
2118
  buy_now: Joi.boolean(),
2279
2119
  uid: Joi.string().allow(""),
2280
- custom_cart_meta: Joi.object().pattern(/\S/, Joi.any()),
2281
- });
2282
- }
2283
-
2284
- /** @returns {CartCheckoutCustomMeta} */
2285
- static CartCheckoutCustomMeta() {
2286
- return Joi.object({
2287
- key: Joi.string().allow("").required(),
2288
- value: Joi.string().allow("").required(),
2120
+ custom_cart_meta: Joi.any(),
2289
2121
  });
2290
2122
  }
2291
2123
 
@@ -2309,38 +2141,6 @@ class CartApplicationModel {
2309
2141
  });
2310
2142
  }
2311
2143
 
2312
- /** @returns {CartCheckoutDetailCreation} */
2313
- static CartCheckoutDetailCreation() {
2314
- return Joi.object({
2315
- custom_meta: Joi.array().items(
2316
- CartApplicationModel.CartCheckoutCustomMeta()
2317
- ),
2318
- customer_details: CartApplicationModel.CustomerDetails(),
2319
- merchant_code: Joi.string().allow(""),
2320
- id: Joi.string().allow(""),
2321
- payment_auto_confirm: Joi.boolean(),
2322
- payment_mode: Joi.string().allow("").required(),
2323
- aggregator: Joi.string().allow(""),
2324
- address_id: Joi.string().allow(""),
2325
- callback_url: Joi.string().allow(""),
2326
- delivery_address: Joi.object().pattern(/\S/, Joi.any()),
2327
- staff: CartApplicationModel.StaffCheckout(),
2328
- order_type: Joi.string().allow(""),
2329
- ordering_store: Joi.number(),
2330
- extra_meta: Joi.object().pattern(/\S/, Joi.any()),
2331
- payment_identifier: Joi.string().allow(""),
2332
- billing_address: Joi.object().pattern(/\S/, Joi.any()),
2333
- payment_params: Joi.object().pattern(/\S/, Joi.any()),
2334
- billing_address_id: Joi.string().allow(""),
2335
- meta: Joi.object().pattern(/\S/, Joi.any()),
2336
- payment_extra_identifiers: Joi.object().pattern(/\S/, Joi.any()),
2337
- iin: Joi.string().allow(""),
2338
- network: Joi.string().allow(""),
2339
- type: Joi.string().allow(""),
2340
- card_id: Joi.string().allow(""),
2341
- });
2342
- }
2343
-
2344
2144
  /** @returns {CheckCart} */
2345
2145
  static CheckCart() {
2346
2146
  return Joi.object({
@@ -2373,19 +2173,19 @@ class CartApplicationModel {
2373
2173
  coupon_text: Joi.string().allow(""),
2374
2174
  buy_now: Joi.boolean(),
2375
2175
  cod_charges: Joi.number(),
2376
- custom_cart_meta: Joi.object().pattern(/\S/, Joi.any()),
2176
+ custom_cart_meta: Joi.any(),
2377
2177
  });
2378
2178
  }
2379
2179
 
2380
- /** @returns {CartCheckoutResult} */
2381
- static CartCheckoutResult() {
2180
+ /** @returns {CartCheckoutResponse} */
2181
+ static CartCheckoutResponse() {
2382
2182
  return Joi.object({
2383
2183
  payment_confirm_url: Joi.string().allow(""),
2384
2184
  app_intercept_url: Joi.string().allow(""),
2385
2185
  success: Joi.boolean(),
2386
2186
  callback_url: Joi.string().allow(""),
2387
2187
  message: Joi.string().allow(""),
2388
- data: Joi.object().pattern(/\S/, Joi.any()),
2188
+ data: Joi.any(),
2389
2189
  order_id: Joi.string().allow(""),
2390
2190
  cart: CartApplicationModel.CheckCart(),
2391
2191
  });
@@ -2406,44 +2206,44 @@ class CartApplicationModel {
2406
2206
  });
2407
2207
  }
2408
2208
 
2409
- /** @returns {CartMetaCreation} */
2410
- static CartMetaCreation() {
2209
+ /** @returns {CartMetaRequest} */
2210
+ static CartMetaRequest() {
2411
2211
  return Joi.object({
2412
- delivery_slots: Joi.object().pattern(/\S/, Joi.any()),
2212
+ delivery_slots: Joi.any(),
2413
2213
  gift_details: CartApplicationModel.ArticleGiftDetail(),
2414
- pick_up_customer_details: Joi.object().pattern(/\S/, Joi.any()),
2214
+ pick_up_customer_details: Joi.any(),
2415
2215
  checkout_mode: Joi.string().allow(""),
2416
2216
  comment: Joi.string().allow(""),
2417
2217
  gstin: Joi.string().allow(""),
2418
- custom_cart_meta: Joi.object().pattern(/\S/, Joi.any()),
2218
+ custom_cart_meta: Joi.any(),
2419
2219
  });
2420
2220
  }
2421
2221
 
2422
- /** @returns {CartMetaResult} */
2423
- static CartMetaResult() {
2222
+ /** @returns {CartMetaResponse} */
2223
+ static CartMetaResponse() {
2424
2224
  return Joi.object({
2425
2225
  message: Joi.string().allow(""),
2426
2226
  is_valid: Joi.boolean(),
2427
2227
  });
2428
2228
  }
2429
2229
 
2430
- /** @returns {CartMetaMissingResult} */
2431
- static CartMetaMissingResult() {
2230
+ /** @returns {CartMetaMissingResponse} */
2231
+ static CartMetaMissingResponse() {
2432
2232
  return Joi.object({
2433
2233
  errors: Joi.array().items(Joi.string().allow("")),
2434
2234
  });
2435
2235
  }
2436
2236
 
2437
- /** @returns {GetShareCartLinkCreation} */
2438
- static GetShareCartLinkCreation() {
2237
+ /** @returns {GetShareCartLinkRequest} */
2238
+ static GetShareCartLinkRequest() {
2439
2239
  return Joi.object({
2440
2240
  id: Joi.string().allow(""),
2441
- meta: Joi.object().pattern(/\S/, Joi.any()),
2241
+ meta: Joi.any(),
2442
2242
  });
2443
2243
  }
2444
2244
 
2445
- /** @returns {GetShareCartLinkResult} */
2446
- static GetShareCartLinkResult() {
2245
+ /** @returns {GetShareCartLinkResponse} */
2246
+ static GetShareCartLinkResponse() {
2447
2247
  return Joi.object({
2448
2248
  token: Joi.string().allow(""),
2449
2249
  share_url: Joi.string().allow(""),
@@ -2454,10 +2254,10 @@ class CartApplicationModel {
2454
2254
  static SharedCartDetails() {
2455
2255
  return Joi.object({
2456
2256
  token: Joi.string().allow(""),
2457
- user: Joi.object().pattern(/\S/, Joi.any()),
2257
+ user: Joi.any(),
2458
2258
  created_on: Joi.string().allow(""),
2459
- source: Joi.object().pattern(/\S/, Joi.any()),
2460
- meta: Joi.object().pattern(/\S/, Joi.any()),
2259
+ source: Joi.any(),
2260
+ meta: Joi.any(),
2461
2261
  });
2462
2262
  }
2463
2263
 
@@ -2483,12 +2283,12 @@ class CartApplicationModel {
2483
2283
  currency: CartApplicationModel.CartCurrency(),
2484
2284
  coupon_text: Joi.string().allow(""),
2485
2285
  buy_now: Joi.boolean(),
2486
- custom_cart_meta: Joi.object().pattern(/\S/, Joi.any()),
2286
+ custom_cart_meta: Joi.any(),
2487
2287
  });
2488
2288
  }
2489
2289
 
2490
- /** @returns {SharedCartResult} */
2491
- static SharedCartResult() {
2290
+ /** @returns {SharedCartResponse} */
2291
+ static SharedCartResponse() {
2492
2292
  return Joi.object({
2493
2293
  error: Joi.string().allow(""),
2494
2294
  cart: CartApplicationModel.SharedCart(),
@@ -2512,25 +2312,14 @@ class CartApplicationModel {
2512
2312
  });
2513
2313
  }
2514
2314
 
2515
- /** @returns {ArticlePriceDetails} */
2516
- static ArticlePriceDetails() {
2517
- return Joi.object({
2518
- marked: Joi.number(),
2519
- effective: Joi.number(),
2520
- });
2521
- }
2522
-
2523
2315
  /** @returns {FreeGiftItems} */
2524
2316
  static FreeGiftItems() {
2525
2317
  return Joi.object({
2526
2318
  item_slug: Joi.string().allow(""),
2527
2319
  item_name: Joi.string().allow(""),
2528
2320
  item_price_details: CartApplicationModel.ItemPriceDetails(),
2529
- article_price: CartApplicationModel.ArticlePriceDetails(),
2530
2321
  item_brand_name: Joi.string().allow(""),
2531
2322
  item_id: Joi.number(),
2532
- available_sizes: Joi.array().items(Joi.string().allow("")),
2533
- size: Joi.string().allow(""),
2534
2323
  item_images_url: Joi.array().items(Joi.string().allow("")),
2535
2324
  });
2536
2325
  }
@@ -2539,7 +2328,7 @@ class CartApplicationModel {
2539
2328
  static PromotionOffer() {
2540
2329
  return Joi.object({
2541
2330
  id: Joi.string().allow(""),
2542
- buy_rules: Joi.object().pattern(/\S/, Joi.any()),
2331
+ buy_rules: Joi.any(),
2543
2332
  offer_text: Joi.string().allow(""),
2544
2333
  promotion_type: Joi.string().allow(""),
2545
2334
  promotion_name: Joi.string().allow(""),
@@ -2551,8 +2340,8 @@ class CartApplicationModel {
2551
2340
  });
2552
2341
  }
2553
2342
 
2554
- /** @returns {PromotionOffersResult} */
2555
- static PromotionOffersResult() {
2343
+ /** @returns {PromotionOffersResponse} */
2344
+ static PromotionOffersResponse() {
2556
2345
  return Joi.object({
2557
2346
  available_promotions: Joi.array().items(
2558
2347
  CartApplicationModel.PromotionOffer()
@@ -2576,8 +2365,8 @@ class CartApplicationModel {
2576
2365
  });
2577
2366
  }
2578
2367
 
2579
- /** @returns {PromotionPaymentOffersResult} */
2580
- static PromotionPaymentOffersResult() {
2368
+ /** @returns {PromotionPaymentOffersResponse} */
2369
+ static PromotionPaymentOffersResponse() {
2581
2370
  return Joi.object({
2582
2371
  success: Joi.boolean(),
2583
2372
  promotions: Joi.array().items(
@@ -2586,8 +2375,8 @@ class CartApplicationModel {
2586
2375
  });
2587
2376
  }
2588
2377
 
2589
- /** @returns {OperationErrorResult} */
2590
- static OperationErrorResult() {
2378
+ /** @returns {OperationErrorResponse} */
2379
+ static OperationErrorResponse() {
2591
2380
  return Joi.object({
2592
2381
  message: Joi.string().allow(""),
2593
2382
  success: Joi.boolean(),
@@ -2620,7 +2409,7 @@ class CartApplicationModel {
2620
2409
  static LadderPriceOffer() {
2621
2410
  return Joi.object({
2622
2411
  id: Joi.string().allow(""),
2623
- buy_rules: Joi.object().pattern(/\S/, Joi.any()),
2412
+ buy_rules: Joi.any(),
2624
2413
  calculate_on: Joi.string().allow(""),
2625
2414
  offer_text: Joi.string().allow(""),
2626
2415
  promotion_group: Joi.string().allow(""),
@@ -2668,17 +2457,15 @@ class CartApplicationModel {
2668
2457
  payment: Joi.string().allow(""),
2669
2458
  amount: Joi.number().allow(null),
2670
2459
  name: Joi.string().allow(""),
2671
- payment_extra_identifiers: Joi.object().pattern(/\S/, Joi.any()),
2460
+ payment_extra_identifiers: Joi.any(),
2672
2461
  });
2673
2462
  }
2674
2463
 
2675
- /** @returns {CartCheckoutDetailV2Creation} */
2676
- static CartCheckoutDetailV2Creation() {
2464
+ /** @returns {CartCheckoutDetailV2Request} */
2465
+ static CartCheckoutDetailV2Request() {
2677
2466
  return Joi.object({
2678
- custom_meta: Joi.array().items(
2679
- CartApplicationModel.CartCheckoutCustomMeta()
2680
- ),
2681
- customer_details: CartApplicationModel.CustomerDetails(),
2467
+ custom_meta: Joi.any(),
2468
+ customer_details: Joi.any().allow(null),
2682
2469
  merchant_code: Joi.string().allow(""),
2683
2470
  cart_id: Joi.string().allow(""),
2684
2471
  id: Joi.string().allow("").allow(null),
@@ -2690,29 +2477,21 @@ class CartApplicationModel {
2690
2477
  aggregator: Joi.string().allow(""),
2691
2478
  address_id: Joi.string().allow(""),
2692
2479
  callback_url: Joi.string().allow("").allow(null),
2693
- delivery_address: Joi.object().pattern(/\S/, Joi.any()),
2480
+ delivery_address: Joi.any(),
2694
2481
  staff: CartApplicationModel.StaffCheckout(),
2695
2482
  order_type: Joi.string().allow(""),
2696
2483
  ordering_store: Joi.number().allow(null),
2697
- extra_meta: Joi.object().pattern(/\S/, Joi.any()),
2484
+ extra_meta: Joi.any(),
2698
2485
  payment_identifier: Joi.string().allow("").allow(null),
2699
- billing_address: Joi.object().pattern(/\S/, Joi.any()),
2700
- payment_params: Joi.object().pattern(/\S/, Joi.any()).allow(null, ""),
2486
+ billing_address: Joi.any(),
2487
+ payment_params: Joi.any().allow(null),
2701
2488
  billing_address_id: Joi.string().allow(""),
2702
- meta: Joi.object().pattern(/\S/, Joi.any()),
2489
+ meta: Joi.any(),
2703
2490
  iin: Joi.string().allow(""),
2704
2491
  network: Joi.string().allow(""),
2705
2492
  type: Joi.string().allow(""),
2706
2493
  card_id: Joi.string().allow(""),
2707
2494
  });
2708
2495
  }
2709
-
2710
- /** @returns {ValidationError} */
2711
- static ValidationError() {
2712
- return Joi.object({
2713
- message: Joi.string().allow("").required(),
2714
- field: Joi.string().allow("").required(),
2715
- });
2716
- }
2717
2496
  }
2718
2497
  module.exports = CartApplicationModel;