@gofynd/fdk-client-javascript 1.3.11-beta.7 → 1.4.0-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 (231) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Cart/CartApplicationClient.d.ts +1 -1
  4. package/sdk/application/Cart/CartApplicationClient.js +5 -3
  5. package/sdk/application/Cart/CartApplicationModel.d.ts +107 -1
  6. package/sdk/application/Cart/CartApplicationModel.js +74 -0
  7. package/sdk/application/Cart/CartApplicationValidator.d.ts +4 -0
  8. package/sdk/application/Cart/CartApplicationValidator.js +4 -0
  9. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +3 -6
  10. package/sdk/application/Catalog/CatalogApplicationClient.js +7 -20
  11. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2 -2
  12. package/sdk/application/Catalog/CatalogApplicationModel.js +2 -2
  13. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -14
  14. package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -6
  15. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +183 -49
  16. package/sdk/application/Configuration/ConfigurationApplicationModel.js +173 -31
  17. package/sdk/application/Content/ContentApplicationClient.d.ts +36 -0
  18. package/sdk/application/Content/ContentApplicationClient.js +246 -0
  19. package/sdk/application/Content/ContentApplicationModel.d.ts +208 -1
  20. package/sdk/application/Content/ContentApplicationModel.js +252 -0
  21. package/sdk/application/Content/ContentApplicationValidator.d.ts +40 -1
  22. package/sdk/application/Content/ContentApplicationValidator.js +41 -0
  23. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +67 -0
  24. package/sdk/application/Logistic/LogisticApplicationClient.js +547 -0
  25. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +456 -1
  26. package/sdk/application/Logistic/LogisticApplicationModel.js +488 -0
  27. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +211 -1
  28. package/sdk/application/Logistic/LogisticApplicationValidator.js +131 -0
  29. package/sdk/application/Order/OrderApplicationClient.d.ts +3 -3
  30. package/sdk/application/Order/OrderApplicationClient.js +32 -8
  31. package/sdk/application/Order/OrderApplicationModel.d.ts +6 -0
  32. package/sdk/application/Order/OrderApplicationModel.js +6 -0
  33. package/sdk/application/Order/OrderApplicationValidator.d.ts +20 -0
  34. package/sdk/application/Order/OrderApplicationValidator.js +8 -0
  35. package/sdk/application/Payment/PaymentApplicationClient.d.ts +46 -2
  36. package/sdk/application/Payment/PaymentApplicationClient.js +341 -10
  37. package/sdk/application/Payment/PaymentApplicationModel.d.ts +493 -186
  38. package/sdk/application/Payment/PaymentApplicationModel.js +341 -70
  39. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +59 -14
  40. package/sdk/application/Payment/PaymentApplicationValidator.js +64 -10
  41. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +34 -1
  42. package/sdk/application/PosCart/PosCartApplicationModel.js +24 -0
  43. package/sdk/application/Theme/ThemeApplicationClient.d.ts +1 -1
  44. package/sdk/application/Theme/ThemeApplicationClient.js +7 -3
  45. package/sdk/application/Theme/ThemeApplicationModel.d.ts +222 -36
  46. package/sdk/application/Theme/ThemeApplicationModel.js +322 -26
  47. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +10 -0
  48. package/sdk/application/Theme/ThemeApplicationValidator.js +4 -0
  49. package/sdk/application/User/UserApplicationClient.d.ts +33 -0
  50. package/sdk/application/User/UserApplicationClient.js +239 -0
  51. package/sdk/application/User/UserApplicationModel.d.ts +28 -13
  52. package/sdk/application/User/UserApplicationModel.js +36 -12
  53. package/sdk/application/User/UserApplicationValidator.d.ts +34 -1
  54. package/sdk/application/User/UserApplicationValidator.js +36 -0
  55. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +3 -15
  56. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +2 -14
  57. package/sdk/partner/Lead/LeadPartnerClient.d.ts +125 -0
  58. package/sdk/partner/Lead/LeadPartnerClient.js +785 -0
  59. package/sdk/partner/Lead/LeadPartnerModel.d.ts +1127 -0
  60. package/sdk/partner/Lead/LeadPartnerModel.js +896 -0
  61. package/sdk/partner/Lead/LeadPartnerValidator.d.ts +12 -0
  62. package/sdk/partner/Lead/LeadPartnerValidator.js +67 -0
  63. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +155 -0
  64. package/sdk/partner/Logistics/LogisticsPartnerClient.js +1195 -0
  65. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +372 -0
  66. package/sdk/partner/Logistics/LogisticsPartnerModel.js +442 -0
  67. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +16 -0
  68. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +123 -0
  69. package/sdk/partner/PartnerClient.d.ts +6 -0
  70. package/sdk/partner/PartnerClient.js +9 -0
  71. package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -0
  72. package/sdk/partner/Theme/ThemePartnerClient.js +80 -0
  73. package/sdk/partner/Theme/ThemePartnerModel.d.ts +100 -43
  74. package/sdk/partner/Theme/ThemePartnerModel.js +74 -30
  75. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +1 -0
  76. package/sdk/partner/Theme/ThemePartnerValidator.js +9 -0
  77. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +99 -0
  78. package/sdk/partner/Webhook/WebhookPartnerClient.js +753 -0
  79. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +566 -0
  80. package/sdk/partner/Webhook/WebhookPartnerModel.js +583 -0
  81. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +12 -0
  82. package/sdk/partner/Webhook/WebhookPartnerValidator.js +74 -0
  83. package/sdk/partner/index.d.ts +3 -0
  84. package/sdk/partner/index.js +6 -0
  85. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +2 -2
  86. package/sdk/platform/Billing/BillingPlatformClient.d.ts +11 -1
  87. package/sdk/platform/Billing/BillingPlatformClient.js +110 -3
  88. package/sdk/platform/Billing/BillingPlatformModel.d.ts +67 -1
  89. package/sdk/platform/Billing/BillingPlatformModel.js +78 -0
  90. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +43 -4
  91. package/sdk/platform/Billing/BillingPlatformValidator.js +29 -2
  92. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +1 -1
  93. package/sdk/platform/Cart/CartPlatformApplicationClient.js +7 -1
  94. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +4 -0
  95. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +4 -0
  96. package/sdk/platform/Cart/CartPlatformModel.d.ts +100 -5
  97. package/sdk/platform/Cart/CartPlatformModel.js +71 -4
  98. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +15 -11
  99. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +52 -21
  100. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +27 -0
  101. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +11 -0
  102. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +26 -4
  103. package/sdk/platform/Catalog/CatalogPlatformClient.js +173 -7
  104. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +304 -1
  105. package/sdk/platform/Catalog/CatalogPlatformModel.js +335 -0
  106. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +31 -3
  107. package/sdk/platform/Catalog/CatalogPlatformValidator.js +27 -2
  108. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +138 -36
  109. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +739 -57
  110. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +128 -3
  111. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +111 -1
  112. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +150 -1
  113. package/sdk/platform/Communication/CommunicationPlatformModel.js +172 -0
  114. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +8 -2
  115. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +32 -4
  116. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +38 -9
  117. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +42 -8
  118. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +14 -0
  119. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +6 -0
  120. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +8 -8
  121. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +4 -4
  122. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +371 -132
  123. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +288 -77
  124. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +2 -2
  125. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +2 -2
  126. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +391 -0
  127. package/sdk/platform/Content/ContentPlatformApplicationClient.js +3641 -1059
  128. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +351 -1
  129. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +410 -0
  130. package/sdk/platform/Content/ContentPlatformClient.d.ts +277 -0
  131. package/sdk/platform/Content/ContentPlatformClient.js +2011 -0
  132. package/sdk/platform/Content/ContentPlatformModel.d.ts +1100 -1
  133. package/sdk/platform/Content/ContentPlatformModel.js +1362 -46
  134. package/sdk/platform/Content/ContentPlatformValidator.d.ts +247 -0
  135. package/sdk/platform/Content/ContentPlatformValidator.js +319 -0
  136. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +2 -2
  137. package/sdk/platform/Discount/DiscountPlatformClient.js +2 -2
  138. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +96 -13
  139. package/sdk/platform/Discount/DiscountPlatformModel.js +104 -12
  140. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +16 -6
  141. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +117 -8
  142. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +55 -4
  143. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +39 -2
  144. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +18 -19
  145. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +20 -18
  146. package/sdk/platform/Finance/FinancePlatformClient.d.ts +33 -0
  147. package/sdk/platform/Finance/FinancePlatformClient.js +240 -0
  148. package/sdk/platform/Finance/FinancePlatformModel.d.ts +151 -5
  149. package/sdk/platform/Finance/FinancePlatformModel.js +190 -4
  150. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +38 -1
  151. package/sdk/platform/Finance/FinancePlatformValidator.js +38 -0
  152. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +38 -28
  153. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +137 -56
  154. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +41 -29
  155. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +33 -21
  156. package/sdk/platform/Lead/LeadPlatformModel.d.ts +12 -3
  157. package/sdk/platform/Lead/LeadPlatformModel.js +16 -2
  158. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +23 -1
  159. package/sdk/platform/Order/OrderPlatformApplicationClient.js +178 -1
  160. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +39 -1
  161. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +32 -0
  162. package/sdk/platform/Order/OrderPlatformClient.d.ts +202 -31
  163. package/sdk/platform/Order/OrderPlatformClient.js +2010 -586
  164. package/sdk/platform/Order/OrderPlatformModel.d.ts +1032 -470
  165. package/sdk/platform/Order/OrderPlatformModel.js +1187 -534
  166. package/sdk/platform/Order/OrderPlatformValidator.d.ts +318 -35
  167. package/sdk/platform/Order/OrderPlatformValidator.js +292 -29
  168. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +119 -13
  169. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +749 -39
  170. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +143 -7
  171. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +133 -6
  172. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +1 -1
  173. package/sdk/platform/Payment/PaymentPlatformClient.js +1 -1
  174. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +996 -134
  175. package/sdk/platform/Payment/PaymentPlatformModel.js +721 -58
  176. package/sdk/platform/PlatformApplicationClient.d.ts +2 -2
  177. package/sdk/platform/PlatformApplicationClient.js +4 -4
  178. package/sdk/platform/PlatformClient.d.ts +4 -2
  179. package/sdk/platform/PlatformClient.js +8 -4
  180. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +142 -66
  181. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +645 -147
  182. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +131 -63
  183. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +126 -47
  184. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +217 -105
  185. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +1136 -347
  186. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +912 -313
  187. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1071 -355
  188. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +382 -133
  189. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +266 -102
  190. package/sdk/platform/Theme/ThemePlatformClient.d.ts +11 -1
  191. package/sdk/platform/Theme/ThemePlatformClient.js +87 -3
  192. package/sdk/platform/Theme/ThemePlatformModel.d.ts +333 -47
  193. package/sdk/platform/Theme/ThemePlatformModel.js +395 -35
  194. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +28 -4
  195. package/sdk/platform/Theme/ThemePlatformValidator.js +21 -2
  196. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +116 -1
  197. package/sdk/platform/User/UserPlatformApplicationClient.js +931 -85
  198. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +224 -7
  199. package/sdk/platform/User/UserPlatformApplicationValidator.js +173 -5
  200. package/sdk/platform/User/UserPlatformModel.d.ts +344 -7
  201. package/sdk/platform/User/UserPlatformModel.js +256 -5
  202. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +47 -39
  203. package/sdk/platform/Webhook/WebhookPlatformClient.js +63 -61
  204. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +264 -156
  205. package/sdk/platform/Webhook/WebhookPlatformModel.js +276 -153
  206. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +7 -10
  207. package/sdk/platform/Webhook/WebhookPlatformValidator.js +6 -6
  208. package/sdk/platform/index.d.ts +1 -1
  209. package/sdk/platform/index.js +2 -2
  210. package/sdk/public/Billing/BillingPublicClient.d.ts +23 -0
  211. package/sdk/public/Billing/BillingPublicClient.js +116 -0
  212. package/sdk/public/Billing/BillingPublicModel.d.ts +92 -0
  213. package/sdk/public/Billing/BillingPublicModel.js +96 -0
  214. package/sdk/public/Billing/BillingPublicValidator.d.ts +18 -0
  215. package/sdk/public/Billing/BillingPublicValidator.js +19 -0
  216. package/sdk/public/Content/ContentPublicClient.d.ts +22 -0
  217. package/sdk/public/Content/ContentPublicClient.js +114 -0
  218. package/sdk/public/Content/ContentPublicModel.d.ts +53 -0
  219. package/sdk/public/Content/ContentPublicModel.js +60 -0
  220. package/sdk/public/Content/ContentPublicValidator.d.ts +18 -0
  221. package/sdk/public/Content/ContentPublicValidator.js +19 -0
  222. package/sdk/public/PublicClient.d.ts +4 -0
  223. package/sdk/public/PublicClient.js +8 -0
  224. package/sdk/public/Webhook/WebhookPublicClient.d.ts +33 -0
  225. package/sdk/public/Webhook/WebhookPublicClient.js +242 -0
  226. package/sdk/public/Webhook/WebhookPublicModel.d.ts +147 -1
  227. package/sdk/public/Webhook/WebhookPublicModel.js +177 -1
  228. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +23 -1
  229. package/sdk/public/Webhook/WebhookPublicValidator.js +31 -0
  230. package/sdk/public/index.d.ts +2 -0
  231. package/sdk/public/index.js +4 -0
package/README.md CHANGED
@@ -214,7 +214,7 @@ console.log("Active Theme: ", response.information.name);
214
214
  The above code will log the curl command in the console
215
215
 
216
216
  ```bash
217
- curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version: 1.3.11-beta.7' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8'
217
+ curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version: 1.4.0-beta.1' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8'
218
218
  Active Theme: Emerge
219
219
  ```
220
220
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gofynd/fdk-client-javascript",
3
- "version": "1.3.11-beta.7",
3
+ "version": "1.4.0-beta.1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -185,7 +185,7 @@ declare class Cart {
185
185
  * @summary: Fetch Coupon
186
186
  * @description: Use this API to get a list of available coupons along with their details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCoupons/).
187
187
  */
188
- getCoupons({ id, buyNow, requestHeaders }?: CartApplicationValidator.GetCouponsParam, { responseHeaders }?: object): Promise<CartApplicationModel.GetCouponResponse>;
188
+ getCoupons({ id, buyNow, slug, storeId, requestHeaders }?: CartApplicationValidator.GetCouponsParam, { responseHeaders }?: object): Promise<CartApplicationModel.GetCouponResponse>;
189
189
  /**
190
190
  * @param {CartApplicationValidator.GetItemCountParam} arg - Arg object.
191
191
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -1214,11 +1214,11 @@ class Cart {
1214
1214
  * @description: Use this API to get a list of available coupons along with their details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCoupons/).
1215
1215
  */
1216
1216
  async getCoupons(
1217
- { id, buyNow, requestHeaders } = { requestHeaders: {} },
1217
+ { id, buyNow, slug, storeId, requestHeaders } = { requestHeaders: {} },
1218
1218
  { responseHeaders } = { responseHeaders: false }
1219
1219
  ) {
1220
1220
  const { error } = CartApplicationValidator.getCoupons().validate(
1221
- { id, buyNow },
1221
+ { id, buyNow, slug, storeId },
1222
1222
  { abortEarly: false, allowUnknown: true }
1223
1223
  );
1224
1224
  if (error) {
@@ -1227,7 +1227,7 @@ class Cart {
1227
1227
 
1228
1228
  // Showing warrnings if extra unknown parameters are found
1229
1229
  const { error: warrning } = CartApplicationValidator.getCoupons().validate(
1230
- { id, buyNow },
1230
+ { id, buyNow, slug, storeId },
1231
1231
  { abortEarly: false, allowUnknown: false }
1232
1232
  );
1233
1233
  if (warrning) {
@@ -1240,6 +1240,8 @@ class Cart {
1240
1240
  const query_params = {};
1241
1241
  query_params["id"] = id;
1242
1242
  query_params["buy_now"] = buyNow;
1243
+ query_params["slug"] = slug;
1244
+ query_params["store_id"] = storeId;
1243
1245
 
1244
1246
  const xHeaders = {};
1245
1247
 
@@ -32,6 +32,7 @@ export = CartApplicationModel;
32
32
  * @property {string[]} [product_group_tags]
33
33
  * @property {number} [quantity]
34
34
  * @property {number} [seller_id]
35
+ * @property {string} [seller_identifier] - Add items using seller identifier for store os
35
36
  * @property {number} [store_id]
36
37
  */
37
38
  /**
@@ -59,7 +60,9 @@ export = CartApplicationModel;
59
60
  * @property {Object} [meta]
60
61
  * @property {string} [name]
61
62
  * @property {string} [phone]
63
+ * @property {string} [sector]
62
64
  * @property {string} [state]
65
+ * @property {string} [state_code] - State code for international address
63
66
  * @property {string[]} [tags]
64
67
  * @property {string} [user_id]
65
68
  */
@@ -303,6 +306,7 @@ export = CartApplicationModel;
303
306
  * @property {ProductArticle} [article]
304
307
  * @property {ProductAvailability} [availability]
305
308
  * @property {Object} [bulk_offer]
309
+ * @property {Charges[]} [charges]
306
310
  * @property {CouponDetails} [coupon]
307
311
  * @property {string} [coupon_message]
308
312
  * @property {Object} [custom_order]
@@ -349,6 +353,22 @@ export = CartApplicationModel;
349
353
  * @property {string} [name]
350
354
  * @property {number} [uid] - Product Category Id
351
355
  */
356
+ /**
357
+ * @typedef Charges
358
+ * @property {boolean} [allow_refund] - This boolean value defines that refund
359
+ * is allowed or not for the charge
360
+ * @property {ChargesAmount} [amount]
361
+ * @property {string} [code] - This is the code of the charge applied
362
+ * @property {Object} [meta] - This object contains the meta data realted to
363
+ * charges price adjustment
364
+ * @property {string} [name] - This is the name of the charge applied
365
+ * @property {string} [type] - This is the type of the charge applied
366
+ */
367
+ /**
368
+ * @typedef ChargesAmount
369
+ * @property {string} [currency] - This is destination currency of value
370
+ * @property {number} [value] - This is the value of amount added
371
+ */
352
372
  /**
353
373
  * @typedef ChargesThreshold
354
374
  * @property {number} [charges]
@@ -388,16 +408,20 @@ export = CartApplicationModel;
388
408
  */
389
409
  /**
390
410
  * @typedef Coupon
411
+ * @property {number} [coupon_amount] - The amount based on cart value
412
+ * @property {string} [coupon_applicable_message]
391
413
  * @property {string} [coupon_code]
392
414
  * @property {string} [coupon_type]
393
415
  * @property {number} [coupon_value]
394
416
  * @property {string} [description]
417
+ * @property {string} [end_date]
395
418
  * @property {string} [expires_on]
396
419
  * @property {boolean} [is_applicable]
397
420
  * @property {boolean} [is_applied]
398
421
  * @property {number} [max_discount_value]
399
422
  * @property {string} [message]
400
423
  * @property {number} [minimum_cart_value]
424
+ * @property {string} [start_date]
401
425
  * @property {string} [sub_title]
402
426
  * @property {string} [title]
403
427
  */
@@ -664,6 +688,7 @@ export = CartApplicationModel;
664
688
  * @property {string} [seller_identifier]
665
689
  * @property {string} [size]
666
690
  * @property {StoreInfo} [store]
691
+ * @property {string[]} [tags] - A list of article tags
667
692
  * @property {string} [type]
668
693
  * @property {string} [uid]
669
694
  */
@@ -721,6 +746,11 @@ export = CartApplicationModel;
721
746
  * @property {string} [max]
722
747
  * @property {string} [min]
723
748
  */
749
+ /**
750
+ * @typedef PromiseISOFormat
751
+ * @property {string} [max] - Max promise in ISO format.
752
+ * @property {string} [min] - Min Promise in ISO format.
753
+ */
724
754
  /**
725
755
  * @typedef PromiseTimestamp
726
756
  * @property {number} [max]
@@ -759,6 +789,7 @@ export = CartApplicationModel;
759
789
  * @property {number} [mrp_total]
760
790
  * @property {number} [subtotal]
761
791
  * @property {number} [total]
792
+ * @property {number} [total_charge]
762
793
  * @property {number} [vog]
763
794
  * @property {number} [you_saved]
764
795
  */
@@ -816,6 +847,7 @@ export = CartApplicationModel;
816
847
  /**
817
848
  * @typedef ShipmentPromise
818
849
  * @property {PromiseFormatted} [formatted]
850
+ * @property {PromiseISOFormat} [iso]
819
851
  * @property {PromiseTimestamp} [timestamp]
820
852
  */
821
853
  /**
@@ -893,7 +925,7 @@ export = CartApplicationModel;
893
925
  declare class CartApplicationModel {
894
926
  }
895
927
  declare namespace CartApplicationModel {
896
- export { ActionQuery, AddCartDetailResponse, AddCartRequest, AddProductCart, Address, AppliedFreeArticles, AppliedPromotion, ApplyCouponRequest, ArticleGiftDetail, ArticlePriceInfo, BaseInfo, BasePrice, BulkPriceOffer, BulkPriceResponse, BuyRules, CartBreakup, CartCheckoutCustomMeta, CartCheckoutDetailRequest, CartCheckoutDetailV2Request, CartCheckoutResponse, CartCommonConfig, CartCurrency, CartDetailCoupon, CartDetailResponse, CartItemCountResponse, CartMetaMissingResponse, CartMetaRequest, CartMetaResponse, CartProduct, CartProductIdentifer, CartProductInfo, CartShipmentsResponse, CategoryInfo, ChargesThreshold, CheckCart, Coupon, CouponBreakup, CouponDetails, CouponValidity, CurrencyInfo, CustomerDetails, DeleteAddressResponse, DeleteCartDetailResponse, DeliveryChargesConfig, DiscountRulesApp, DisplayBreakup, FreeGiftItem, FreeGiftItems, GeoLocation, GetAddressesResponse, GetCouponResponse, GetShareCartLinkRequest, GetShareCartLinkResponse, GiftDetail, LadderOfferItem, LadderPrice, LadderPriceOffer, LadderPriceOffers, LoyaltyPoints, OfferItem, OfferPrice, OfferSeller, OperationErrorResponse, Ownership, PageCoupon, PaymentCouponValidate, PaymentMeta, PaymentMethod, PaymentSelectionLock, ProductAction, ProductArticle, ProductAvailability, ProductAvailabilitySize, ProductImage, ProductPrice, ProductPriceInfo, ProductPricePerUnit, ProductPricePerUnitInfo, PromiseFormatted, PromiseTimestamp, PromoMeta, PromotionOffer, PromotionOffersResponse, RawBreakup, RewardPointRequest, SaveAddressResponse, SelectCartAddressRequest, SharedCart, SharedCartDetails, SharedCartResponse, ShipmentPromise, ShipmentResponse, StaffCheckout, StoreInfo, Tags, UpdateAddressResponse, UpdateCartDetailResponse, UpdateCartPaymentRequest, UpdateCartRequest, UpdateProductCart };
928
+ export { ActionQuery, AddCartDetailResponse, AddCartRequest, AddProductCart, Address, AppliedFreeArticles, AppliedPromotion, ApplyCouponRequest, ArticleGiftDetail, ArticlePriceInfo, BaseInfo, BasePrice, BulkPriceOffer, BulkPriceResponse, BuyRules, CartBreakup, CartCheckoutCustomMeta, CartCheckoutDetailRequest, CartCheckoutDetailV2Request, CartCheckoutResponse, CartCommonConfig, CartCurrency, CartDetailCoupon, CartDetailResponse, CartItemCountResponse, CartMetaMissingResponse, CartMetaRequest, CartMetaResponse, CartProduct, CartProductIdentifer, CartProductInfo, CartShipmentsResponse, CategoryInfo, Charges, ChargesAmount, ChargesThreshold, CheckCart, Coupon, CouponBreakup, CouponDetails, CouponValidity, CurrencyInfo, CustomerDetails, DeleteAddressResponse, DeleteCartDetailResponse, DeliveryChargesConfig, DiscountRulesApp, DisplayBreakup, FreeGiftItem, FreeGiftItems, GeoLocation, GetAddressesResponse, GetCouponResponse, GetShareCartLinkRequest, GetShareCartLinkResponse, GiftDetail, LadderOfferItem, LadderPrice, LadderPriceOffer, LadderPriceOffers, LoyaltyPoints, OfferItem, OfferPrice, OfferSeller, OperationErrorResponse, Ownership, PageCoupon, PaymentCouponValidate, PaymentMeta, PaymentMethod, PaymentSelectionLock, ProductAction, ProductArticle, ProductAvailability, ProductAvailabilitySize, ProductImage, ProductPrice, ProductPriceInfo, ProductPricePerUnit, ProductPricePerUnitInfo, PromiseFormatted, PromiseISOFormat, PromiseTimestamp, PromoMeta, PromotionOffer, PromotionOffersResponse, RawBreakup, RewardPointRequest, SaveAddressResponse, SelectCartAddressRequest, SharedCart, SharedCartDetails, SharedCartResponse, ShipmentPromise, ShipmentResponse, StaffCheckout, StoreInfo, Tags, UpdateAddressResponse, UpdateCartDetailResponse, UpdateCartPaymentRequest, UpdateCartRequest, UpdateProductCart };
897
929
  }
898
930
  /** @returns {ActionQuery} */
899
931
  declare function ActionQuery(): ActionQuery;
@@ -941,6 +973,10 @@ type AddProductCart = {
941
973
  product_group_tags?: string[];
942
974
  quantity?: number;
943
975
  seller_id?: number;
976
+ /**
977
+ * - Add items using seller identifier for store os
978
+ */
979
+ seller_identifier?: string;
944
980
  store_id?: number;
945
981
  };
946
982
  /** @returns {Address} */
@@ -969,7 +1005,12 @@ type Address = {
969
1005
  meta?: any;
970
1006
  name?: string;
971
1007
  phone?: string;
1008
+ sector?: string;
972
1009
  state?: string;
1010
+ /**
1011
+ * - State code for international address
1012
+ */
1013
+ state_code?: string;
973
1014
  tags?: string[];
974
1015
  user_id?: string;
975
1016
  };
@@ -1320,6 +1361,7 @@ type CartProductInfo = {
1320
1361
  article?: ProductArticle;
1321
1362
  availability?: ProductAvailability;
1322
1363
  bulk_offer?: any;
1364
+ charges?: Charges[];
1323
1365
  coupon?: CouponDetails;
1324
1366
  coupon_message?: string;
1325
1367
  custom_order?: any;
@@ -1371,6 +1413,45 @@ type CategoryInfo = {
1371
1413
  */
1372
1414
  uid?: number;
1373
1415
  };
1416
+ /** @returns {Charges} */
1417
+ declare function Charges(): Charges;
1418
+ type Charges = {
1419
+ /**
1420
+ * - This boolean value defines that refund
1421
+ * is allowed or not for the charge
1422
+ */
1423
+ allow_refund?: boolean;
1424
+ amount?: ChargesAmount;
1425
+ /**
1426
+ * - This is the code of the charge applied
1427
+ */
1428
+ code?: string;
1429
+ /**
1430
+ * - This object contains the meta data realted to
1431
+ * charges price adjustment
1432
+ */
1433
+ meta?: any;
1434
+ /**
1435
+ * - This is the name of the charge applied
1436
+ */
1437
+ name?: string;
1438
+ /**
1439
+ * - This is the type of the charge applied
1440
+ */
1441
+ type?: string;
1442
+ };
1443
+ /** @returns {ChargesAmount} */
1444
+ declare function ChargesAmount(): ChargesAmount;
1445
+ type ChargesAmount = {
1446
+ /**
1447
+ * - This is destination currency of value
1448
+ */
1449
+ currency?: string;
1450
+ /**
1451
+ * - This is the value of amount added
1452
+ */
1453
+ value?: number;
1454
+ };
1374
1455
  /** @returns {ChargesThreshold} */
1375
1456
  declare function ChargesThreshold(): ChargesThreshold;
1376
1457
  type ChargesThreshold = {
@@ -1413,16 +1494,23 @@ type CheckCart = {
1413
1494
  /** @returns {Coupon} */
1414
1495
  declare function Coupon(): Coupon;
1415
1496
  type Coupon = {
1497
+ /**
1498
+ * - The amount based on cart value
1499
+ */
1500
+ coupon_amount?: number;
1501
+ coupon_applicable_message?: string;
1416
1502
  coupon_code?: string;
1417
1503
  coupon_type?: string;
1418
1504
  coupon_value?: number;
1419
1505
  description?: string;
1506
+ end_date?: string;
1420
1507
  expires_on?: string;
1421
1508
  is_applicable?: boolean;
1422
1509
  is_applied?: boolean;
1423
1510
  max_discount_value?: number;
1424
1511
  message?: string;
1425
1512
  minimum_cart_value?: number;
1513
+ start_date?: string;
1426
1514
  sub_title?: string;
1427
1515
  title?: string;
1428
1516
  };
@@ -1883,6 +1971,10 @@ type ProductArticle = {
1883
1971
  seller_identifier?: string;
1884
1972
  size?: string;
1885
1973
  store?: StoreInfo;
1974
+ /**
1975
+ * - A list of article tags
1976
+ */
1977
+ tags?: string[];
1886
1978
  type?: string;
1887
1979
  uid?: string;
1888
1980
  };
@@ -1948,6 +2040,18 @@ type PromiseFormatted = {
1948
2040
  max?: string;
1949
2041
  min?: string;
1950
2042
  };
2043
+ /** @returns {PromiseISOFormat} */
2044
+ declare function PromiseISOFormat(): PromiseISOFormat;
2045
+ type PromiseISOFormat = {
2046
+ /**
2047
+ * - Max promise in ISO format.
2048
+ */
2049
+ max?: string;
2050
+ /**
2051
+ * - Min Promise in ISO format.
2052
+ */
2053
+ min?: string;
2054
+ };
1951
2055
  /** @returns {PromiseTimestamp} */
1952
2056
  declare function PromiseTimestamp(): PromiseTimestamp;
1953
2057
  type PromiseTimestamp = {
@@ -2015,6 +2119,7 @@ type RawBreakup = {
2015
2119
  mrp_total?: number;
2016
2120
  subtotal?: number;
2017
2121
  total?: number;
2122
+ total_charge?: number;
2018
2123
  vog?: number;
2019
2124
  you_saved?: number;
2020
2125
  };
@@ -2091,6 +2196,7 @@ type SharedCartResponse = {
2091
2196
  declare function ShipmentPromise(): ShipmentPromise;
2092
2197
  type ShipmentPromise = {
2093
2198
  formatted?: PromiseFormatted;
2199
+ iso?: PromiseISOFormat;
2094
2200
  timestamp?: PromiseTimestamp;
2095
2201
  };
2096
2202
  /** @returns {ShipmentResponse} */
@@ -36,6 +36,7 @@ const Joi = require("joi");
36
36
  * @property {string[]} [product_group_tags]
37
37
  * @property {number} [quantity]
38
38
  * @property {number} [seller_id]
39
+ * @property {string} [seller_identifier] - Add items using seller identifier for store os
39
40
  * @property {number} [store_id]
40
41
  */
41
42
 
@@ -64,7 +65,9 @@ const Joi = require("joi");
64
65
  * @property {Object} [meta]
65
66
  * @property {string} [name]
66
67
  * @property {string} [phone]
68
+ * @property {string} [sector]
67
69
  * @property {string} [state]
70
+ * @property {string} [state_code] - State code for international address
68
71
  * @property {string[]} [tags]
69
72
  * @property {string} [user_id]
70
73
  */
@@ -334,6 +337,7 @@ const Joi = require("joi");
334
337
  * @property {ProductArticle} [article]
335
338
  * @property {ProductAvailability} [availability]
336
339
  * @property {Object} [bulk_offer]
340
+ * @property {Charges[]} [charges]
337
341
  * @property {CouponDetails} [coupon]
338
342
  * @property {string} [coupon_message]
339
343
  * @property {Object} [custom_order]
@@ -383,6 +387,24 @@ const Joi = require("joi");
383
387
  * @property {number} [uid] - Product Category Id
384
388
  */
385
389
 
390
+ /**
391
+ * @typedef Charges
392
+ * @property {boolean} [allow_refund] - This boolean value defines that refund
393
+ * is allowed or not for the charge
394
+ * @property {ChargesAmount} [amount]
395
+ * @property {string} [code] - This is the code of the charge applied
396
+ * @property {Object} [meta] - This object contains the meta data realted to
397
+ * charges price adjustment
398
+ * @property {string} [name] - This is the name of the charge applied
399
+ * @property {string} [type] - This is the type of the charge applied
400
+ */
401
+
402
+ /**
403
+ * @typedef ChargesAmount
404
+ * @property {string} [currency] - This is destination currency of value
405
+ * @property {number} [value] - This is the value of amount added
406
+ */
407
+
386
408
  /**
387
409
  * @typedef ChargesThreshold
388
410
  * @property {number} [charges]
@@ -424,16 +446,20 @@ const Joi = require("joi");
424
446
 
425
447
  /**
426
448
  * @typedef Coupon
449
+ * @property {number} [coupon_amount] - The amount based on cart value
450
+ * @property {string} [coupon_applicable_message]
427
451
  * @property {string} [coupon_code]
428
452
  * @property {string} [coupon_type]
429
453
  * @property {number} [coupon_value]
430
454
  * @property {string} [description]
455
+ * @property {string} [end_date]
431
456
  * @property {string} [expires_on]
432
457
  * @property {boolean} [is_applicable]
433
458
  * @property {boolean} [is_applied]
434
459
  * @property {number} [max_discount_value]
435
460
  * @property {string} [message]
436
461
  * @property {number} [minimum_cart_value]
462
+ * @property {string} [start_date]
437
463
  * @property {string} [sub_title]
438
464
  * @property {string} [title]
439
465
  */
@@ -735,6 +761,7 @@ const Joi = require("joi");
735
761
  * @property {string} [seller_identifier]
736
762
  * @property {string} [size]
737
763
  * @property {StoreInfo} [store]
764
+ * @property {string[]} [tags] - A list of article tags
738
765
  * @property {string} [type]
739
766
  * @property {string} [uid]
740
767
  */
@@ -801,6 +828,12 @@ const Joi = require("joi");
801
828
  * @property {string} [min]
802
829
  */
803
830
 
831
+ /**
832
+ * @typedef PromiseISOFormat
833
+ * @property {string} [max] - Max promise in ISO format.
834
+ * @property {string} [min] - Min Promise in ISO format.
835
+ */
836
+
804
837
  /**
805
838
  * @typedef PromiseTimestamp
806
839
  * @property {number} [max]
@@ -843,6 +876,7 @@ const Joi = require("joi");
843
876
  * @property {number} [mrp_total]
844
877
  * @property {number} [subtotal]
845
878
  * @property {number} [total]
879
+ * @property {number} [total_charge]
846
880
  * @property {number} [vog]
847
881
  * @property {number} [you_saved]
848
882
  */
@@ -907,6 +941,7 @@ const Joi = require("joi");
907
941
  /**
908
942
  * @typedef ShipmentPromise
909
943
  * @property {PromiseFormatted} [formatted]
944
+ * @property {PromiseISOFormat} [iso]
910
945
  * @property {PromiseTimestamp} [timestamp]
911
946
  */
912
947
 
@@ -1035,6 +1070,7 @@ class CartApplicationModel {
1035
1070
  product_group_tags: Joi.array().items(Joi.string().allow("").allow(null)),
1036
1071
  quantity: Joi.number(),
1037
1072
  seller_id: Joi.number(),
1073
+ seller_identifier: Joi.string().allow(""),
1038
1074
  store_id: Joi.number(),
1039
1075
  });
1040
1076
  }
@@ -1065,7 +1101,9 @@ class CartApplicationModel {
1065
1101
  meta: Joi.any(),
1066
1102
  name: Joi.string().allow(""),
1067
1103
  phone: Joi.string().allow(""),
1104
+ sector: Joi.string().allow(""),
1068
1105
  state: Joi.string().allow(""),
1106
+ state_code: Joi.string().allow(""),
1069
1107
  tags: Joi.array().items(Joi.string().allow("")),
1070
1108
  user_id: Joi.string().allow(""),
1071
1109
  });
@@ -1392,6 +1430,7 @@ class CartApplicationModel {
1392
1430
  article: CartApplicationModel.ProductArticle(),
1393
1431
  availability: CartApplicationModel.ProductAvailability(),
1394
1432
  bulk_offer: Joi.any(),
1433
+ charges: Joi.array().items(CartApplicationModel.Charges()),
1395
1434
  coupon: CartApplicationModel.CouponDetails(),
1396
1435
  coupon_message: Joi.string().allow(""),
1397
1436
  custom_order: Joi.any(),
@@ -1448,6 +1487,26 @@ class CartApplicationModel {
1448
1487
  });
1449
1488
  }
1450
1489
 
1490
+ /** @returns {Charges} */
1491
+ static Charges() {
1492
+ return Joi.object({
1493
+ allow_refund: Joi.boolean(),
1494
+ amount: CartApplicationModel.ChargesAmount(),
1495
+ code: Joi.string().allow(""),
1496
+ meta: Joi.any(),
1497
+ name: Joi.string().allow(""),
1498
+ type: Joi.string().allow(""),
1499
+ });
1500
+ }
1501
+
1502
+ /** @returns {ChargesAmount} */
1503
+ static ChargesAmount() {
1504
+ return Joi.object({
1505
+ currency: Joi.string().allow(""),
1506
+ value: Joi.number(),
1507
+ });
1508
+ }
1509
+
1451
1510
  /** @returns {ChargesThreshold} */
1452
1511
  static ChargesThreshold() {
1453
1512
  return Joi.object({
@@ -1494,16 +1553,20 @@ class CartApplicationModel {
1494
1553
  /** @returns {Coupon} */
1495
1554
  static Coupon() {
1496
1555
  return Joi.object({
1556
+ coupon_amount: Joi.number(),
1557
+ coupon_applicable_message: Joi.string().allow(""),
1497
1558
  coupon_code: Joi.string().allow(""),
1498
1559
  coupon_type: Joi.string().allow("").allow(null),
1499
1560
  coupon_value: Joi.number(),
1500
1561
  description: Joi.string().allow("").allow(null),
1562
+ end_date: Joi.string().allow("").allow(null),
1501
1563
  expires_on: Joi.string().allow(""),
1502
1564
  is_applicable: Joi.boolean(),
1503
1565
  is_applied: Joi.boolean(),
1504
1566
  max_discount_value: Joi.number(),
1505
1567
  message: Joi.string().allow(""),
1506
1568
  minimum_cart_value: Joi.number(),
1569
+ start_date: Joi.string().allow("").allow(null),
1507
1570
  sub_title: Joi.string().allow(""),
1508
1571
  title: Joi.string().allow(""),
1509
1572
  });
@@ -1869,6 +1932,7 @@ class CartApplicationModel {
1869
1932
  seller_identifier: Joi.string().allow(""),
1870
1933
  size: Joi.string().allow(""),
1871
1934
  store: CartApplicationModel.StoreInfo(),
1935
+ tags: Joi.array().items(Joi.string().allow("")),
1872
1936
  type: Joi.string().allow(""),
1873
1937
  uid: Joi.string().allow(""),
1874
1938
  });
@@ -1954,6 +2018,14 @@ class CartApplicationModel {
1954
2018
  });
1955
2019
  }
1956
2020
 
2021
+ /** @returns {PromiseISOFormat} */
2022
+ static PromiseISOFormat() {
2023
+ return Joi.object({
2024
+ max: Joi.string().allow(""),
2025
+ min: Joi.string().allow(""),
2026
+ });
2027
+ }
2028
+
1957
2029
  /** @returns {PromiseTimestamp} */
1958
2030
  static PromiseTimestamp() {
1959
2031
  return Joi.object({
@@ -2007,6 +2079,7 @@ class CartApplicationModel {
2007
2079
  mrp_total: Joi.number(),
2008
2080
  subtotal: Joi.number(),
2009
2081
  total: Joi.number(),
2082
+ total_charge: Joi.number(),
2010
2083
  vog: Joi.number(),
2011
2084
  you_saved: Joi.number(),
2012
2085
  });
@@ -2085,6 +2158,7 @@ class CartApplicationModel {
2085
2158
  static ShipmentPromise() {
2086
2159
  return Joi.object({
2087
2160
  formatted: CartApplicationModel.PromiseFormatted(),
2161
+ iso: CartApplicationModel.PromiseISOFormat(),
2088
2162
  timestamp: CartApplicationModel.PromiseTimestamp(),
2089
2163
  });
2090
2164
  }
@@ -97,6 +97,8 @@ export = CartApplicationValidator;
97
97
  * @typedef GetCouponsParam
98
98
  * @property {string} [id]
99
99
  * @property {boolean} [buyNow]
100
+ * @property {string} [slug]
101
+ * @property {string} [storeId]
100
102
  */
101
103
  /**
102
104
  * @typedef GetItemCountParam
@@ -366,6 +368,8 @@ type GetCartSharedItemsParam = {
366
368
  type GetCouponsParam = {
367
369
  id?: string;
368
370
  buyNow?: boolean;
371
+ slug?: string;
372
+ storeId?: string;
369
373
  };
370
374
  type GetItemCountParam = {
371
375
  /**
@@ -114,6 +114,8 @@ const CartApplicationModel = require("./CartApplicationModel");
114
114
  * @typedef GetCouponsParam
115
115
  * @property {string} [id]
116
116
  * @property {boolean} [buyNow]
117
+ * @property {string} [slug]
118
+ * @property {string} [storeId]
117
119
  */
118
120
 
119
121
  /**
@@ -369,6 +371,8 @@ class CartApplicationValidator {
369
371
  return Joi.object({
370
372
  id: Joi.string().allow(""),
371
373
  buyNow: Joi.boolean(),
374
+ slug: Joi.string().allow(""),
375
+ storeId: Joi.string().allow(""),
372
376
  });
373
377
  }
374
378
 
@@ -362,7 +362,7 @@ declare class Catalog {
362
362
  * @summary: Get the price of a product size at a PIN Code
363
363
  * @description: Prices may vary for different sizes of a product. Use this API to retrieve the price of a product size at all the selling locations near to a PIN Code. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getProductPriceBySlug/).
364
364
  */
365
- getProductPriceBySlug({ slug, size, storeId, pincode, moq, requestHeaders }?: CatalogApplicationValidator.GetProductPriceBySlugParam, { responseHeaders }?: object): Promise<CatalogApplicationModel.ProductSizePriceResponseV3>;
365
+ getProductPriceBySlug({ slug, size, storeId, moq, requestHeaders }?: CatalogApplicationValidator.GetProductPriceBySlugParam, { responseHeaders }?: object): Promise<CatalogApplicationModel.ProductSizePriceResponseV3>;
366
366
  /**
367
367
  * @param {CatalogApplicationValidator.GetProductSellersBySlugParam} arg - Arg object.
368
368
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -374,7 +374,7 @@ declare class Catalog {
374
374
  * @summary: Get the sellers of a product size at a PIN Code
375
375
  * @description: A product of a particular size may be sold by multiple sellers. Use this API to fetch the sellers having the stock of a particular size at a given PIN Code. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getProductSellersBySlug/).
376
376
  */
377
- getProductSellersBySlug({ slug, size, pincode, strategy, pageNo, pageSize, requestHeaders }?: CatalogApplicationValidator.GetProductSellersBySlugParam, { responseHeaders }?: object): Promise<CatalogApplicationModel.ProductSizeSellersResponseV3>;
377
+ getProductSellersBySlug({ slug, size, strategy, pageNo, pageSize, requestHeaders }?: CatalogApplicationValidator.GetProductSellersBySlugParam, { responseHeaders }?: object): Promise<CatalogApplicationModel.ProductSizeSellersResponseV3>;
378
378
  /**
379
379
  * @param {Object} arg - Arg object.
380
380
  * @param {string} arg.slug - A short, human-readable, URL-friendly
@@ -383,8 +383,6 @@ declare class Catalog {
383
383
  * @param {string} arg.size - A string indicating the size of the product,
384
384
  * e.g. S, M, XL. You can get slug value from the endpoint
385
385
  * /service/application/catalog/v1.0/products/sizes
386
- * @param {string} [arg.pincode] - The 6-digit PIN Code of the area near
387
- * which the selling locations should be searched, e.g. 400059
388
386
  * @param {string} [arg.strategy] - Sort stores on the basis of strategy.
389
387
  * eg, fast-delivery, low-price, optimal.
390
388
  * @param {number} [arg.pageSize] - The number of items to retrieve in each page.
@@ -392,10 +390,9 @@ declare class Catalog {
392
390
  * @summary: Get the sellers of a product size at a PIN Code
393
391
  * @description: A product of a particular size may be sold by multiple sellers. Use this API to fetch the sellers having the stock of a particular size at a given PIN Code.
394
392
  */
395
- getProductSellersBySlugPaginator({ slug, size, pincode, strategy, pageSize, }?: {
393
+ getProductSellersBySlugPaginator({ slug, size, strategy, pageSize }?: {
396
394
  slug: string;
397
395
  size: string;
398
- pincode?: string;
399
396
  strategy?: string;
400
397
  pageSize?: number;
401
398
  }): Paginator<CatalogApplicationModel.ProductSizeSellersResponseV3>;