@gofynd/fdk-client-javascript 1.4.8-beta.3 → 1.4.9

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 (189) hide show
  1. package/README.md +26 -1
  2. package/package.json +2 -2
  3. package/sdk/application/ApplicationClient.d.ts +8 -0
  4. package/sdk/application/ApplicationClient.js +14 -0
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +20 -20
  6. package/sdk/application/Cart/CartApplicationClient.js +20 -20
  7. package/sdk/application/Cart/CartApplicationModel.d.ts +2446 -664
  8. package/sdk/application/Cart/CartApplicationModel.js +783 -552
  9. package/sdk/application/Cart/CartApplicationValidator.d.ts +268 -194
  10. package/sdk/application/Cart/CartApplicationValidator.js +100 -114
  11. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +53 -53
  12. package/sdk/application/Catalog/CatalogApplicationClient.js +53 -53
  13. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2012 -503
  14. package/sdk/application/Catalog/CatalogApplicationModel.js +603 -453
  15. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +64 -64
  16. package/sdk/application/Catalog/CatalogApplicationValidator.js +32 -32
  17. package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
  18. package/sdk/application/Common/CommonApplicationClient.js +2 -2
  19. package/sdk/application/Common/CommonApplicationModel.d.ts +170 -90
  20. package/sdk/application/Common/CommonApplicationModel.js +59 -58
  21. package/sdk/application/Common/CommonApplicationValidator.d.ts +8 -5
  22. package/sdk/application/Common/CommonApplicationValidator.js +3 -3
  23. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +2 -2
  24. package/sdk/application/Communication/CommunicationApplicationClient.js +2 -2
  25. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +170 -35
  26. package/sdk/application/Communication/CommunicationApplicationModel.js +54 -33
  27. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +15 -15
  28. package/sdk/application/Configuration/ConfigurationApplicationClient.js +15 -15
  29. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +624 -443
  30. package/sdk/application/Configuration/ConfigurationApplicationModel.js +259 -248
  31. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +32 -24
  32. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +14 -13
  33. package/sdk/application/Content/ContentApplicationClient.d.ts +16 -16
  34. package/sdk/application/Content/ContentApplicationClient.js +16 -16
  35. package/sdk/application/Content/ContentApplicationModel.d.ts +1205 -282
  36. package/sdk/application/Content/ContentApplicationModel.js +341 -277
  37. package/sdk/application/Content/ContentApplicationValidator.d.ts +28 -17
  38. package/sdk/application/Content/ContentApplicationValidator.js +11 -10
  39. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +3 -3
  40. package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
  41. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +146 -37
  42. package/sdk/application/FileStorage/FileStorageApplicationModel.js +38 -36
  43. package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -3
  44. package/sdk/application/Lead/LeadApplicationClient.js +3 -3
  45. package/sdk/application/Lead/LeadApplicationModel.d.ts +195 -134
  46. package/sdk/application/Lead/LeadApplicationModel.js +110 -67
  47. package/sdk/application/Lead/LeadApplicationValidator.d.ts +8 -8
  48. package/sdk/application/Lead/LeadApplicationValidator.js +4 -4
  49. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +10 -10
  50. package/sdk/application/Logistic/LogisticApplicationClient.js +10 -10
  51. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +1039 -221
  52. package/sdk/application/Logistic/LogisticApplicationModel.js +342 -199
  53. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +76 -82
  54. package/sdk/application/Logistic/LogisticApplicationValidator.js +38 -41
  55. package/sdk/application/Order/OrderApplicationClient.d.ts +10 -10
  56. package/sdk/application/Order/OrderApplicationClient.js +10 -10
  57. package/sdk/application/Order/OrderApplicationModel.d.ts +1400 -325
  58. package/sdk/application/Order/OrderApplicationModel.js +391 -317
  59. package/sdk/application/Order/OrderApplicationValidator.d.ts +32 -30
  60. package/sdk/application/Order/OrderApplicationValidator.js +15 -14
  61. package/sdk/application/Payment/PaymentApplicationClient.d.ts +43 -43
  62. package/sdk/application/Payment/PaymentApplicationClient.js +43 -43
  63. package/sdk/application/Payment/PaymentApplicationModel.d.ts +1111 -1022
  64. package/sdk/application/Payment/PaymentApplicationModel.js +537 -521
  65. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +82 -49
  66. package/sdk/application/Payment/PaymentApplicationValidator.js +30 -30
  67. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +28 -7
  68. package/sdk/application/Rewards/RewardsApplicationModel.js +7 -7
  69. package/sdk/application/Share/ShareApplicationModel.d.ts +178 -38
  70. package/sdk/application/Share/ShareApplicationModel.js +53 -37
  71. package/sdk/application/Share/ShareApplicationValidator.d.ts +4 -2
  72. package/sdk/application/Share/ShareApplicationValidator.js +2 -1
  73. package/sdk/application/Theme/ThemeApplicationClient.d.ts +4 -4
  74. package/sdk/application/Theme/ThemeApplicationClient.js +14 -8
  75. package/sdk/application/Theme/ThemeApplicationModel.d.ts +528 -287
  76. package/sdk/application/Theme/ThemeApplicationModel.js +208 -172
  77. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +17 -12
  78. package/sdk/application/Theme/ThemeApplicationValidator.js +8 -6
  79. package/sdk/application/User/UserApplicationClient.d.ts +36 -36
  80. package/sdk/application/User/UserApplicationClient.js +36 -36
  81. package/sdk/application/User/UserApplicationModel.d.ts +1062 -255
  82. package/sdk/application/User/UserApplicationModel.js +298 -244
  83. package/sdk/application/User/UserApplicationValidator.d.ts +80 -80
  84. package/sdk/application/User/UserApplicationValidator.js +40 -40
  85. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +1 -1
  86. package/sdk/application/Webhook/WebhookApplicationClient.js +1 -1
  87. package/sdk/application/Webhook/WebhookApplicationModel.d.ts +20 -5
  88. package/sdk/application/Webhook/WebhookApplicationModel.js +5 -5
  89. package/sdk/common/Clickstream.js +95 -15
  90. package/sdk/common/Constant.d.ts +9 -0
  91. package/sdk/common/Constant.js +11 -0
  92. package/sdk/common/Utility.js +19 -0
  93. package/sdk/common/utils.js +8 -1
  94. package/sdk/partner/Lead/LeadPartnerModel.d.ts +28 -7
  95. package/sdk/partner/Lead/LeadPartnerModel.js +7 -7
  96. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +28 -7
  97. package/sdk/partner/Logistics/LogisticsPartnerModel.js +7 -7
  98. package/sdk/partner/PartnerClient.d.ts +8 -0
  99. package/sdk/partner/PartnerClient.js +14 -0
  100. package/sdk/partner/Theme/ThemePartnerClient.d.ts +20 -0
  101. package/sdk/partner/Theme/ThemePartnerClient.js +158 -0
  102. package/sdk/partner/Theme/ThemePartnerModel.d.ts +45 -6
  103. package/sdk/partner/Theme/ThemePartnerModel.js +33 -4
  104. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +2 -0
  105. package/sdk/partner/Theme/ThemePartnerValidator.js +14 -0
  106. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +28 -7
  107. package/sdk/partner/Webhook/WebhookPartnerModel.js +7 -7
  108. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +28 -7
  109. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +7 -7
  110. package/sdk/platform/Billing/BillingPlatformClient.d.ts +6 -397
  111. package/sdk/platform/Billing/BillingPlatformClient.js +77 -3215
  112. package/sdk/platform/Billing/BillingPlatformModel.d.ts +621 -2021
  113. package/sdk/platform/Billing/BillingPlatformModel.js +353 -2405
  114. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +12 -451
  115. package/sdk/platform/Billing/BillingPlatformValidator.js +8 -483
  116. package/sdk/platform/Cart/CartPlatformModel.d.ts +28 -7
  117. package/sdk/platform/Cart/CartPlatformModel.js +8 -8
  118. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +12 -2
  119. package/sdk/platform/Catalog/CatalogPlatformClient.js +41 -1
  120. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +46 -12
  121. package/sdk/platform/Catalog/CatalogPlatformModel.js +14 -11
  122. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +40 -0
  123. package/sdk/platform/Catalog/CatalogPlatformValidator.js +17 -0
  124. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +28 -7
  125. package/sdk/platform/Communication/CommunicationPlatformModel.js +7 -7
  126. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +28 -7
  127. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +7 -7
  128. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +0 -97
  129. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +77 -782
  130. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +24 -701
  131. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +7 -539
  132. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +1 -183
  133. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +0 -134
  134. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -10
  135. package/sdk/platform/Content/ContentPlatformApplicationClient.js +0 -79
  136. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -15
  137. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +0 -13
  138. package/sdk/platform/Content/ContentPlatformModel.d.ts +58 -17
  139. package/sdk/platform/Content/ContentPlatformModel.js +28 -15
  140. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +28 -7
  141. package/sdk/platform/Discount/DiscountPlatformModel.js +7 -7
  142. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +127 -25
  143. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +37 -25
  144. package/sdk/platform/Finance/FinancePlatformClient.d.ts +28 -28
  145. package/sdk/platform/Finance/FinancePlatformClient.js +28 -28
  146. package/sdk/platform/Finance/FinancePlatformModel.d.ts +1583 -347
  147. package/sdk/platform/Finance/FinancePlatformModel.js +463 -351
  148. package/sdk/platform/Lead/LeadPlatformModel.d.ts +28 -7
  149. package/sdk/platform/Lead/LeadPlatformModel.js +7 -7
  150. package/sdk/platform/Order/OrderPlatformClient.d.ts +22 -0
  151. package/sdk/platform/Order/OrderPlatformClient.js +165 -0
  152. package/sdk/platform/Order/OrderPlatformModel.d.ts +613 -39
  153. package/sdk/platform/Order/OrderPlatformModel.js +359 -41
  154. package/sdk/platform/Order/OrderPlatformValidator.d.ts +32 -1
  155. package/sdk/platform/Order/OrderPlatformValidator.js +28 -0
  156. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +30 -9
  157. package/sdk/platform/Payment/PaymentPlatformModel.js +9 -9
  158. package/sdk/platform/PlatformClient.d.ts +8 -0
  159. package/sdk/platform/PlatformClient.js +14 -0
  160. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +28 -7
  161. package/sdk/platform/Rewards/RewardsPlatformModel.js +7 -7
  162. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +12 -9
  163. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +12 -9
  164. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +120 -22
  165. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +76 -21
  166. package/sdk/platform/Share/SharePlatformModel.d.ts +28 -7
  167. package/sdk/platform/Share/SharePlatformModel.js +7 -7
  168. package/sdk/platform/Theme/ThemePlatformModel.d.ts +18 -5
  169. package/sdk/platform/Theme/ThemePlatformModel.js +7 -4
  170. package/sdk/platform/User/UserPlatformModel.d.ts +18 -18
  171. package/sdk/platform/User/UserPlatformModel.js +9 -9
  172. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +28 -7
  173. package/sdk/platform/Webhook/WebhookPlatformModel.js +7 -7
  174. package/sdk/public/PublicClient.d.ts +0 -4
  175. package/sdk/public/PublicClient.js +0 -8
  176. package/sdk/public/index.d.ts +0 -2
  177. package/sdk/public/index.js +0 -4
  178. package/sdk/public/Billing/BillingPublicClient.d.ts +0 -45
  179. package/sdk/public/Billing/BillingPublicClient.js +0 -269
  180. package/sdk/public/Billing/BillingPublicModel.d.ts +0 -434
  181. package/sdk/public/Billing/BillingPublicModel.js +0 -395
  182. package/sdk/public/Billing/BillingPublicValidator.d.ts +0 -34
  183. package/sdk/public/Billing/BillingPublicValidator.js +0 -38
  184. package/sdk/public/Inventory/InventoryPublicClient.d.ts +0 -87
  185. package/sdk/public/Inventory/InventoryPublicClient.js +0 -529
  186. package/sdk/public/Inventory/InventoryPublicModel.d.ts +0 -393
  187. package/sdk/public/Inventory/InventoryPublicModel.js +0 -448
  188. package/sdk/public/Inventory/InventoryPublicValidator.d.ts +0 -91
  189. package/sdk/public/Inventory/InventoryPublicValidator.js +0 -85
@@ -9,14 +9,11 @@ const CartApplicationModel = require("./CartApplicationModel");
9
9
 
10
10
  /**
11
11
  * @typedef AddItemsParam
12
- * @property {boolean} [i] - This is a boolean value. Select `true` to retrieve
13
- * all the items added in the cart.
14
- * @property {boolean} [b] - This is a boolean value. Select `true` to retrieve
15
- * the price breakup of cart items.
16
- * @property {string} [areaCode] - Customer servicable area_code
17
- * @property {boolean} [buyNow] - This is a boolen value. Select `true` to
18
- * set/initialize buy now cart
19
- * @property {string} [id] - The unique identifier of the cart
12
+ * @property {boolean} [i] - Select `true` to retrieve all the items added in the cart.
13
+ * @property {boolean} [b] - Select `true` to retrieve the price breakup of cart items.
14
+ * @property {string} [areaCode] - Customer servicable area_code.
15
+ * @property {boolean} [buyNow] - Select `true` to set/initialize buy now cart.
16
+ * @property {string} [id] - The unique identifier of the cart.
20
17
  * @property {string} [orderType] - The order type of shipment HomeDelivery - If
21
18
  * the customer wants the order home-delivered PickAtStore - If the customer
22
19
  * wants the handover of an order at the store itself.
@@ -25,37 +22,35 @@ const CartApplicationModel = require("./CartApplicationModel");
25
22
 
26
23
  /**
27
24
  * @typedef ApplyCouponParam
28
- * @property {boolean} [i]
29
- * @property {boolean} [b]
30
- * @property {boolean} [p]
31
- * @property {string} [id]
32
- * @property {boolean} [buyNow]
33
- * @property {string} [cartType]
25
+ * @property {boolean} [i] - Select `true` to retrieve all the items added in the cart.
26
+ * @property {boolean} [b] - Select `true` to retrieve the price breakup of cart items.
27
+ * @property {boolean} [p] - Select `true` for getting a payment option in response.
28
+ * @property {string} [id] - The unique identifier of the cart.
29
+ * @property {boolean} [buyNow] - This is boolean to get buy_now cart.
30
+ * @property {string} [cartType] - The type of cart.
34
31
  * @property {CartApplicationModel.ApplyCouponRequest} body
35
32
  */
36
33
 
37
34
  /**
38
35
  * @typedef ApplyRewardPointsParam
39
- * @property {string} [id] - The unique identifier of the cart
40
- * @property {boolean} [i] - This is a boolean value. Select `true` to retrieve
41
- * all the items added in the cart.
42
- * @property {boolean} [b] - This is a boolean value. Select `true` to retrieve
43
- * the price breakup of cart items.
44
- * @property {boolean} [buyNow] - This is boolean to get buy_now cart
36
+ * @property {string} [id] - The unique identifier of the cart.
37
+ * @property {boolean} [i] - Select `true` to retrieve all the items added in the cart.
38
+ * @property {boolean} [b] - Select `true` to retrieve the price breakup of cart items.
39
+ * @property {boolean} [buyNow] - This is boolean to get buy_now cart.
45
40
  * @property {CartApplicationModel.RewardPointRequest} body
46
41
  */
47
42
 
48
43
  /**
49
44
  * @typedef CheckoutCartParam
50
- * @property {boolean} [buyNow] - This indicates the type of cart to checkout
51
- * @property {string} [cartType] - The type of cart
45
+ * @property {boolean} [buyNow] - This indicates the type of cart to checkout.
46
+ * @property {string} [cartType] - The type of cart.
52
47
  * @property {CartApplicationModel.CartCheckoutDetailRequest} body
53
48
  */
54
49
 
55
50
  /**
56
51
  * @typedef CheckoutCartV2Param
57
- * @property {boolean} [buyNow] - This indicates the type of cart to checkout
58
- * @property {string} [cartType] - The type of cart
52
+ * @property {boolean} [buyNow] - This indicates the type of cart to checkout.
53
+ * @property {string} [cartType] - The type of cart.
59
54
  * @property {CartApplicationModel.CartCheckoutDetailV2Request} body
60
55
  */
61
56
 
@@ -66,48 +61,45 @@ const CartApplicationModel = require("./CartApplicationModel");
66
61
 
67
62
  /**
68
63
  * @typedef GetAddressByIdParam
69
- * @property {string} id
70
- * @property {string} [cartId]
71
- * @property {boolean} [buyNow]
72
- * @property {string} [mobileNo]
73
- * @property {string} [checkoutMode]
74
- * @property {string} [tags]
75
- * @property {boolean} [isDefault]
64
+ * @property {string} id - ID allotted to the selected address.
65
+ * @property {string} [cartId] - The unique identifier of the cart.
66
+ * @property {boolean} [buyNow] - This is boolean to get buy_now cart.
67
+ * @property {string} [mobileNo] - Mobile number of the customer.
68
+ * @property {string} [checkoutMode] - Option to checkout for self or for others.
69
+ * @property {string} [tags] - Tag given to an address, e.g. work, home, office, shop.
70
+ * @property {boolean} [isDefault] - This is a boolean value. Select `true` to
71
+ * fetch the default address.
76
72
  */
77
73
 
78
74
  /**
79
75
  * @typedef GetAddressesParam
80
- * @property {string} [cartId]
81
- * @property {boolean} [buyNow]
82
- * @property {string} [mobileNo]
83
- * @property {string} [checkoutMode]
84
- * @property {string} [tags]
85
- * @property {boolean} [isDefault]
76
+ * @property {string} [cartId] - The unique identifier of the user cart.
77
+ * @property {boolean} [buyNow] - Whether to get buy_now cart.
78
+ * @property {string} [mobileNo] - Mobile number of the customer.
79
+ * @property {string} [checkoutMode] - Option to checkout for self or for others.
80
+ * @property {string} [tags] - Tag given to an address, e.g. work, home, office, shop.
81
+ * @property {boolean} [isDefault] - Select `true` to fetch the default address.
86
82
  */
87
83
 
88
84
  /**
89
85
  * @typedef GetBulkDiscountOffersParam
90
- * @property {number} [itemId] - The Item ID of the product
91
- * @property {string} [articleId] - Article Mongo ID
92
- * @property {number} [uid] - UID of the product
86
+ * @property {number} [itemId] - The Item ID of the product.
87
+ * @property {string} [articleId] - Article Mongo ID.
88
+ * @property {number} [uid] - UID of the product.
93
89
  * @property {string} [slug] - A short, human-readable, URL-friendly identifier
94
- * of a product. You can get slug value from the endpoint
95
- * /service/application/catalog/v1.0/products/
90
+ * of a product.
96
91
  */
97
92
 
98
93
  /**
99
94
  * @typedef GetCartParam
100
- * @property {string} [id] - The unique identifier of the cart
101
- * @property {boolean} [i] - This is a boolean value. Select `true` to retrieve
102
- * all the items added in the cart.
103
- * @property {boolean} [b] - This is a boolean value. Select `true` to retrieve
104
- * the price breakup of cart items.
105
- * @property {boolean} [c] - This is a boolean value. Select `true` to retrieve
106
- * the cod charges in breakup of cart items.
107
- * @property {number} [assignCardId] - Token of user's debit or credit card
108
- * @property {string} [areaCode] - Customer servicable area_code
109
- * @property {boolean} [buyNow] - This is a boolen value. Select `true` to
110
- * set/initialize buy now cart
95
+ * @property {string} [id] - The unique identifier of the cart.
96
+ * @property {boolean} [i] - Select `true` to retrieve all the items added in the cart.
97
+ * @property {boolean} [b] - Select `true` to retrieve the price breakup of cart items.
98
+ * @property {boolean} [c] - Select `true` to retrieve the cod charges in
99
+ * breakup of cart items.
100
+ * @property {number} [assignCardId] - Token of user's debit or credit card.
101
+ * @property {string} [areaCode] - Customer servicable area_code.
102
+ * @property {boolean} [buyNow] - Select `true` to set/initialize buy now cart.
111
103
  * @property {string} [orderType] - The order type of shipment HomeDelivery - If
112
104
  * the customer wants the order home-delivered PickAtStore - If the customer
113
105
  * wants the handover of an order at the store itself.
@@ -115,7 +107,7 @@ const CartApplicationModel = require("./CartApplicationModel");
115
107
 
116
108
  /**
117
109
  * @typedef GetCartLastModifiedParam
118
- * @property {string} [id]
110
+ * @property {string} [id] - The unique identifier of the cart.
119
111
  */
120
112
 
121
113
  /**
@@ -125,110 +117,104 @@ const CartApplicationModel = require("./CartApplicationModel");
125
117
 
126
118
  /**
127
119
  * @typedef GetCartSharedItemsParam
128
- * @property {string} token - Token of the shared short link
120
+ * @property {string} token - Token of the shared short link.
129
121
  */
130
122
 
131
123
  /**
132
124
  * @typedef GetCouponsParam
133
- * @property {string} [id]
134
- * @property {boolean} [buyNow]
135
- * @property {string} [slug]
136
- * @property {string} [storeId]
125
+ * @property {string} [id] - The unique identifier of the cart.
126
+ * @property {boolean} [buyNow] - Whether to get buy_now cart.
127
+ * @property {string} [slug] - Product slug to fetch the available coupons.
128
+ * @property {string} [storeId] - Unique identifier of a store.
137
129
  */
138
130
 
139
131
  /**
140
132
  * @typedef GetItemCountParam
141
133
  * @property {string} [id] - The unique identifier of the cart.
142
- * @property {boolean} [buyNow]
134
+ * @property {boolean} [buyNow] - Boolean value to get buy_now cart.
143
135
  */
144
136
 
145
137
  /**
146
138
  * @typedef GetLadderOffersParam
147
139
  * @property {string} slug - A short, human-readable, URL-friendly identifier of
148
- * a product. You can get slug value from the endpoint
149
- * /service/application/catalog/v1.0/products/
140
+ * a product.
150
141
  * @property {string} [storeId] - Store uid of assigned store on PDP page. If
151
- * not passed default first created ladder will be returned
142
+ * not passed default first created ladder will be returned.
152
143
  * @property {string} [promotionId] - Get ladder information of given promotion
153
- * id explicitely
154
- * @property {number} [pageSize] - Number of offers to be fetched to show
144
+ * id explicitely.
145
+ * @property {number} [pageSize] - Number of offers to be fetched to show.
155
146
  */
156
147
 
157
148
  /**
158
149
  * @typedef GetPromotionOffersParam
159
150
  * @property {string} [slug] - A short, human-readable, URL-friendly identifier
160
- * of a product. You can get slug value from the endpoint
161
- * /service/application/catalog/v1.0/products/
162
- * @property {number} [pageSize] - Number of offers to be fetched to show
163
- * @property {string} [promotionGroup] - Type of promotion groups
164
- * @property {number} [storeId] - Store id
165
- * @property {string} [cartType] - The type of cart
151
+ * of a product.
152
+ * @property {number} [pageSize] - Number of offers to be fetched to show.
153
+ * @property {string} [promotionGroup] - Type of promotion groups.
154
+ * @property {number} [storeId] - Unique identifier of a store.
155
+ * @property {string} [cartType] - The type of cart.
166
156
  */
167
157
 
168
158
  /**
169
159
  * @typedef GetPromotionPaymentOffersParam
170
- * @property {string} [id] - Cart id
171
- * @property {number} [uid] - Cart uid
160
+ * @property {string} [id] - Cart id of the user cart .
161
+ * @property {number} [uid] - Cart uid of the user cart .
172
162
  */
173
163
 
174
164
  /**
175
165
  * @typedef GetShipmentsParam
176
- * @property {boolean} [p] - This is a boolean value. Select `true` for getting
177
- * a payment option in response.
178
- * @property {string} [id] - The unique identifier of the cart
179
- * @property {boolean} [buyNow]
180
- * @property {string} [addressId] - ID allotted to the selected address
181
- * @property {string} [areaCode] - The PIN Code of the destination address, e.g. 400059
166
+ * @property {boolean} [p] - Select `true` for getting a payment option in response.
167
+ * @property {string} [id] - The unique identifier of the cart.
168
+ * @property {boolean} [buyNow] - This is boolean to get buy_now cart.
169
+ * @property {string} [addressId] - ID allotted to the selected address.
170
+ * @property {string} [areaCode] - The PIN Code of the destination address, e.g. 400059.
182
171
  * @property {string} [orderType] - The order type of shipment HomeDelivery - If
183
172
  * the customer wants the order home-delivered PickAtStore - If the customer
184
173
  * wants the handover of an order at the store itself. Digital - If the
185
- * customer wants to buy digital voucher ( for jiogames )
174
+ * customer wants to buy digital voucher ( for jiogames ).
186
175
  */
187
176
 
188
177
  /**
189
178
  * @typedef RemoveAddressParam
190
- * @property {string} id - ID allotted to the selected address
179
+ * @property {string} id - ID allotted to the selected address.
191
180
  */
192
181
 
193
182
  /**
194
183
  * @typedef RemoveCouponParam
195
- * @property {string} [id] - The unique identifier of the cart
196
- * @property {boolean} [buyNow] - This is boolean to get buy_now cart
184
+ * @property {string} [id] - The unique identifier of the cart.
185
+ * @property {boolean} [buyNow] - Wheter to get buy_now cart.
197
186
  */
198
187
 
199
188
  /**
200
189
  * @typedef SelectAddressParam
201
- * @property {string} [cartId]
202
- * @property {boolean} [buyNow]
203
- * @property {boolean} [i]
204
- * @property {boolean} [b]
190
+ * @property {string} [cartId] - The unique identifier of the cart.
191
+ * @property {boolean} [buyNow] - Whether to get buy_now cart.
192
+ * @property {boolean} [i] - Select `true` to retrieve all the items added in the cart.
193
+ * @property {boolean} [b] - Select `true` to retrieve the price breakup of cart items.
205
194
  * @property {CartApplicationModel.SelectCartAddressRequest} body
206
195
  */
207
196
 
208
197
  /**
209
198
  * @typedef SelectPaymentModeParam
210
- * @property {string} [id]
211
- * @property {boolean} [buyNow]
199
+ * @property {string} [id] - The unique identifier of the cart.
200
+ * @property {boolean} [buyNow] - Whether to get buy_now cart.
212
201
  * @property {CartApplicationModel.UpdateCartPaymentRequest} body
213
202
  */
214
203
 
215
204
  /**
216
205
  * @typedef UpdateAddressParam
217
- * @property {string} id - ID allotted to the selected address
206
+ * @property {string} id - ID allotted to the selected address.
218
207
  * @property {CartApplicationModel.Address} body
219
208
  */
220
209
 
221
210
  /**
222
211
  * @typedef UpdateCartParam
223
- * @property {string} [id] - The unique identifier of the cart
224
- * @property {boolean} [i] - This is a boolean value. Select `true` to retrieve
225
- * all the items added in the cart.
226
- * @property {boolean} [b] - This is a boolean value. Select `true` to retrieve
227
- * the price breakup of cart items.
228
- * @property {string} [areaCode] - Customer servicable area_code
229
- * @property {boolean} [buyNow] - This is a boolen value. Select `true` to
230
- * set/initialize buy now cart
231
- * @property {string} [cartType] - The type of cart
212
+ * @property {string} [id] - The unique identifier of the cart.
213
+ * @property {boolean} [i] - Select `true` to retrieve all the items added in the cart.
214
+ * @property {boolean} [b] - Select `true` to retrieve the price breakup of cart items.
215
+ * @property {string} [areaCode] - Customer servicable area_code.
216
+ * @property {boolean} [buyNow] - Select `true` to set/initialize buy now cart.
217
+ * @property {string} [cartType] - The type of cart.
232
218
  * @property {string} [orderType] - The order type of shipment HomeDelivery - If
233
219
  * the customer wants the order home-delivered PickAtStore - If the customer
234
220
  * wants the handover of an order at the store itself.
@@ -237,32 +223,32 @@ const CartApplicationModel = require("./CartApplicationModel");
237
223
 
238
224
  /**
239
225
  * @typedef UpdateCartMetaParam
240
- * @property {string} [id]
241
- * @property {boolean} [buyNow]
226
+ * @property {string} [id] - The unique identifier of the cart.
227
+ * @property {boolean} [buyNow] - Whether to get buy_now cart.
242
228
  * @property {CartApplicationModel.CartMetaRequest} body
243
229
  */
244
230
 
245
231
  /**
246
232
  * @typedef UpdateCartWithSharedItemsParam
247
- * @property {string} token - Token of the shared short link
233
+ * @property {string} token - Token of the shared short link.
248
234
  * @property {string} action - Operation to perform on the existing cart merge or replace.
249
235
  */
250
236
 
251
237
  /**
252
238
  * @typedef ValidateCouponForPaymentParam
253
- * @property {string} [id] - The unique identifier of the cart
254
- * @property {boolean} [buyNow] - This is boolean to get buy_now cart
255
- * @property {string} [addressId] - ID allotted to an address
256
- * @property {string} [paymentMode] - Payment mode selected by the customer
257
- * @property {string} [paymentIdentifier] - Identifier of payment like ICIC, PAYTM
258
- * @property {string} [aggregatorName] - Payment gateway identifier
239
+ * @property {string} [id] - The unique identifier of the cart.
240
+ * @property {boolean} [buyNow] - Whether to get buy_now cart.
241
+ * @property {string} [addressId] - ID allotted to an address.
242
+ * @property {string} [paymentMode] - Payment mode selected by the customer.
243
+ * @property {string} [paymentIdentifier] - Identifier of payment like ICIC, PAYTM.
244
+ * @property {string} [aggregatorName] - Payment gateway identifier.
259
245
  * @property {string} [merchantCode] - Identifier used by payment gateway for a
260
- * given payment mode, e.g. NB_ICIC, PAYTM
261
- * @property {string} [iin] - Debit/Credit card prefix (first 6 digit)
262
- * @property {string} [network] - Credit/Debit card issuer, e.g. VISA, MASTERCARD, RUPAY
263
- * @property {string} [type] - Card type, e.g. Credit, Debit
264
- * @property {string} [cardId] - Saved card token reference id
265
- * @property {string} [cartType] - Type of the cart
246
+ * given payment mode, e.g. NB_ICIC, PAYTM.
247
+ * @property {string} [iin] - Debit/Credit card prefix (first 6 digit).
248
+ * @property {string} [network] - Credit/Debit card issuer, e.g. VISA, MASTERCARD, RUPAY.
249
+ * @property {string} [type] - Card type, e.g. Credit, Debit.
250
+ * @property {string} [cardId] - Saved card token reference id.
251
+ * @property {string} [cartType] - Type of the cart.
266
252
  */
267
253
 
268
254
  class CartApplicationValidator {