@gofynd/fdk-client-javascript 1.4.6 → 1.4.8-beta.2

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 (140) hide show
  1. package/README.md +1 -1
  2. package/package.json +2 -2
  3. package/sdk/application/ApplicationClient.d.ts +2 -0
  4. package/sdk/application/ApplicationClient.js +2 -0
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +16 -3
  6. package/sdk/application/Cart/CartApplicationClient.js +118 -13
  7. package/sdk/application/Cart/CartApplicationModel.d.ts +121 -45
  8. package/sdk/application/Cart/CartApplicationModel.js +98 -26
  9. package/sdk/application/Cart/CartApplicationValidator.d.ts +45 -1
  10. package/sdk/application/Cart/CartApplicationValidator.js +26 -0
  11. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +10 -2
  12. package/sdk/application/Catalog/CatalogApplicationModel.js +10 -2
  13. package/sdk/application/Content/ContentApplicationClient.d.ts +1 -1
  14. package/sdk/application/Content/ContentApplicationClient.js +5 -3
  15. package/sdk/application/Content/ContentApplicationModel.d.ts +7 -18
  16. package/sdk/application/Content/ContentApplicationModel.js +6 -20
  17. package/sdk/application/Content/ContentApplicationValidator.d.ts +10 -0
  18. package/sdk/application/Content/ContentApplicationValidator.js +4 -0
  19. package/sdk/application/Lead/LeadApplicationClient.d.ts +0 -27
  20. package/sdk/application/Lead/LeadApplicationClient.js +0 -167
  21. package/sdk/application/Lead/LeadApplicationModel.d.ts +1 -146
  22. package/sdk/application/Lead/LeadApplicationModel.js +0 -126
  23. package/sdk/application/Lead/LeadApplicationValidator.d.ts +1 -25
  24. package/sdk/application/Lead/LeadApplicationValidator.js +0 -24
  25. package/sdk/application/Logistic/LogisticApplicationClient.js +1 -1
  26. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +2 -0
  27. package/sdk/application/Logistic/LogisticApplicationModel.js +2 -0
  28. package/sdk/application/Order/OrderApplicationModel.d.ts +72 -9
  29. package/sdk/application/Order/OrderApplicationModel.js +45 -7
  30. package/sdk/application/Payment/PaymentApplicationModel.d.ts +27 -20
  31. package/sdk/application/Payment/PaymentApplicationModel.js +23 -20
  32. package/sdk/application/Theme/ThemeApplicationModel.d.ts +2 -0
  33. package/sdk/application/Theme/ThemeApplicationModel.js +2 -0
  34. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +22 -0
  35. package/sdk/application/Webhook/WebhookApplicationClient.js +115 -0
  36. package/sdk/application/Webhook/WebhookApplicationModel.d.ts +37 -0
  37. package/sdk/application/Webhook/WebhookApplicationModel.js +46 -0
  38. package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +16 -0
  39. package/sdk/application/Webhook/WebhookApplicationValidator.js +19 -0
  40. package/sdk/application/index.d.ts +1 -0
  41. package/sdk/application/index.js +2 -0
  42. package/sdk/partner/Lead/LeadPartnerClient.d.ts +0 -23
  43. package/sdk/partner/Lead/LeadPartnerClient.js +0 -157
  44. package/sdk/partner/Lead/LeadPartnerModel.d.ts +12 -581
  45. package/sdk/partner/Lead/LeadPartnerModel.js +14 -403
  46. package/sdk/partner/Lead/LeadPartnerValidator.d.ts +0 -2
  47. package/sdk/partner/Lead/LeadPartnerValidator.js +0 -12
  48. package/sdk/partner/Logistics/LogisticsPartnerClient.js +1 -1
  49. package/sdk/partner/Logistics/LogisticsPartnerModel.js +4 -4
  50. package/sdk/partner/Theme/ThemePartnerClient.d.ts +22 -0
  51. package/sdk/partner/Theme/ThemePartnerClient.js +162 -0
  52. package/sdk/partner/Theme/ThemePartnerModel.d.ts +119 -1
  53. package/sdk/partner/Theme/ThemePartnerModel.js +142 -0
  54. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +2 -0
  55. package/sdk/partner/Theme/ThemePartnerValidator.js +14 -0
  56. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +2 -2
  57. package/sdk/partner/Webhook/WebhookPartnerClient.js +2 -2
  58. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +23 -19
  59. package/sdk/partner/Webhook/WebhookPartnerModel.js +19 -22
  60. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +43 -0
  61. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +257 -0
  62. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +39 -0
  63. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +45 -0
  64. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +60 -0
  65. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +57 -0
  66. package/sdk/platform/Billing/BillingPlatformClient.d.ts +304 -43
  67. package/sdk/platform/Billing/BillingPlatformClient.js +2218 -118
  68. package/sdk/platform/Billing/BillingPlatformModel.d.ts +1330 -282
  69. package/sdk/platform/Billing/BillingPlatformModel.js +1808 -590
  70. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +324 -16
  71. package/sdk/platform/Billing/BillingPlatformValidator.js +340 -12
  72. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +36 -3
  73. package/sdk/platform/Cart/CartPlatformApplicationClient.js +276 -3
  74. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +93 -1
  75. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +60 -0
  76. package/sdk/platform/Cart/CartPlatformModel.d.ts +216 -40
  77. package/sdk/platform/Cart/CartPlatformModel.js +166 -24
  78. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +11 -7
  79. package/sdk/platform/Catalog/CatalogPlatformClient.js +37 -14
  80. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +122 -17
  81. package/sdk/platform/Catalog/CatalogPlatformModel.js +141 -15
  82. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +40 -7
  83. package/sdk/platform/Catalog/CatalogPlatformValidator.js +19 -5
  84. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +1 -1
  85. package/sdk/platform/Content/ContentPlatformApplicationClient.js +18 -1
  86. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +25 -0
  87. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +10 -0
  88. package/sdk/platform/Content/ContentPlatformModel.d.ts +8 -4
  89. package/sdk/platform/Content/ContentPlatformModel.js +8 -4
  90. package/sdk/platform/Finance/FinancePlatformClient.d.ts +49 -28
  91. package/sdk/platform/Finance/FinancePlatformClient.js +181 -28
  92. package/sdk/platform/Finance/FinancePlatformModel.d.ts +350 -127
  93. package/sdk/platform/Finance/FinancePlatformModel.js +378 -108
  94. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +56 -43
  95. package/sdk/platform/Finance/FinancePlatformValidator.js +61 -42
  96. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +0 -47
  97. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +0 -321
  98. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +1 -46
  99. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +0 -48
  100. package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -25
  101. package/sdk/platform/Lead/LeadPlatformClient.js +2 -167
  102. package/sdk/platform/Lead/LeadPlatformModel.d.ts +82 -204
  103. package/sdk/platform/Lead/LeadPlatformModel.js +98 -178
  104. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +1 -25
  105. package/sdk/platform/Lead/LeadPlatformValidator.js +0 -24
  106. package/sdk/platform/Order/OrderPlatformClient.d.ts +11 -1
  107. package/sdk/platform/Order/OrderPlatformClient.js +82 -5
  108. package/sdk/platform/Order/OrderPlatformModel.d.ts +270 -29
  109. package/sdk/platform/Order/OrderPlatformModel.js +139 -28
  110. package/sdk/platform/Order/OrderPlatformValidator.d.ts +58 -17
  111. package/sdk/platform/Order/OrderPlatformValidator.js +28 -16
  112. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +14 -2
  113. package/sdk/platform/Payment/PaymentPlatformModel.js +7 -2
  114. package/sdk/platform/PlatformApplicationClient.d.ts +2 -0
  115. package/sdk/platform/PlatformApplicationClient.js +4 -0
  116. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +4 -4
  117. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +12 -0
  118. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +82 -0
  119. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +18 -1
  120. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +14 -0
  121. package/sdk/platform/Theme/ThemePlatformModel.d.ts +67 -1
  122. package/sdk/platform/Theme/ThemePlatformModel.js +78 -0
  123. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +24 -40
  124. package/sdk/platform/Webhook/WebhookPlatformClient.js +78 -221
  125. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +168 -167
  126. package/sdk/platform/Webhook/WebhookPlatformModel.js +180 -178
  127. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +23 -31
  128. package/sdk/platform/Webhook/WebhookPlatformValidator.js +28 -42
  129. package/sdk/platform/index.d.ts +1 -0
  130. package/sdk/platform/index.js +2 -0
  131. package/sdk/public/Billing/BillingPublicClient.d.ts +24 -2
  132. package/sdk/public/Billing/BillingPublicClient.js +156 -3
  133. package/sdk/public/Billing/BillingPublicModel.d.ts +368 -26
  134. package/sdk/public/Billing/BillingPublicModel.js +317 -18
  135. package/sdk/public/Billing/BillingPublicValidator.d.ts +19 -3
  136. package/sdk/public/Billing/BillingPublicValidator.js +22 -3
  137. package/sdk/public/Webhook/WebhookPublicClient.d.ts +2 -2
  138. package/sdk/public/Webhook/WebhookPublicClient.js +2 -2
  139. package/sdk/public/Webhook/WebhookPublicModel.d.ts +24 -22
  140. package/sdk/public/Webhook/WebhookPublicModel.js +24 -22
@@ -20,19 +20,9 @@ const Joi = require("joi");
20
20
  * @property {string} [payable_by] - Promo 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
- * @property {FreeGiftItem} [free_gift_item_details] - Free gift items details
25
+ * @property {FreeGiftItems} [free_gift_item_details] - Free gift items details
36
26
  * @property {string} [parent_item_identifier] - Parent item identifier for free article
37
27
  * @property {number} [quantity] - Free article quantity
38
28
  * @property {string} [article_id] - Free article id
@@ -433,6 +423,7 @@ const Joi = require("joi");
433
423
  * @property {string} [coupon_text]
434
424
  * @property {boolean} [buy_now]
435
425
  * @property {Object} [pan_config]
426
+ * @property {Object} [custom_cart_meta]
436
427
  */
437
428
 
438
429
  /**
@@ -537,6 +528,8 @@ const Joi = require("joi");
537
528
  * @property {string} [start_date]
538
529
  * @property {string} [end_date]
539
530
  * @property {string} [coupon_applicable_message]
531
+ * @property {string} [offer_text]
532
+ * @property {boolean} [is_bank_offer]
540
533
  */
541
534
 
542
535
  /**
@@ -729,6 +722,7 @@ const Joi = require("joi");
729
722
  * @property {string} [comment]
730
723
  * @property {boolean} [buy_now]
731
724
  * @property {string} [uid]
725
+ * @property {Object} [custom_cart_meta]
732
726
  */
733
727
 
734
728
  /**
@@ -812,6 +806,7 @@ const Joi = require("joi");
812
806
  * @property {string} [coupon_text]
813
807
  * @property {boolean} [buy_now]
814
808
  * @property {number} [cod_charges]
809
+ * @property {Object} [custom_cart_meta]
815
810
  */
816
811
 
817
812
  /**
@@ -846,6 +841,7 @@ const Joi = require("joi");
846
841
  * @property {string} [checkout_mode]
847
842
  * @property {string} [comment]
848
843
  * @property {string} [gstin]
844
+ * @property {Object} [custom_cart_meta]
849
845
  */
850
846
 
851
847
  /**
@@ -902,6 +898,7 @@ const Joi = require("joi");
902
898
  * @property {CartCurrency} [currency]
903
899
  * @property {string} [coupon_text]
904
900
  * @property {boolean} [buy_now]
901
+ * @property {Object} [custom_cart_meta]
905
902
  */
906
903
 
907
904
  /**
@@ -910,11 +907,24 @@ const Joi = require("joi");
910
907
  * @property {SharedCart} [cart]
911
908
  */
912
909
 
910
+ /**
911
+ * @typedef PriceMinMax
912
+ * @property {number} [min]
913
+ * @property {number} [max]
914
+ */
915
+
916
+ /**
917
+ * @typedef ItemPriceDetails
918
+ * @property {PriceMinMax} [marked]
919
+ * @property {PriceMinMax} [effective]
920
+ * @property {string} [currency]
921
+ */
922
+
913
923
  /**
914
924
  * @typedef FreeGiftItems
915
925
  * @property {string} [item_slug] - Item slug
916
926
  * @property {string} [item_name] - Item name
917
- * @property {Object} [item_price_details] - Item price details
927
+ * @property {ItemPriceDetails} [item_price_details]
918
928
  * @property {string} [item_brand_name] - Item brand name
919
929
  * @property {number} [item_id] - Item id
920
930
  * @property {string[]} [item_images_url] - Item images URL
@@ -925,6 +935,8 @@ const Joi = require("joi");
925
935
  * @property {string} [id] - Promotion id
926
936
  * @property {Object} [buy_rules] - Buy rules of promotions
927
937
  * @property {string} [offer_text] - Offer title
938
+ * @property {string} [promotion_type] - Promotion type
939
+ * @property {string} [promotion_name] - Name of the promotion
928
940
  * @property {string} [promotion_group] - Group of promotion belongs to
929
941
  * @property {string} [valid_till] - Datetime ISOString for promotion end date
930
942
  * @property {Object[]} [discount_rules] - Discount rules of promotions
@@ -937,6 +949,26 @@ const Joi = require("joi");
937
949
  * @property {PromotionOffer[]} [available_promotions]
938
950
  */
939
951
 
952
+ /**
953
+ * @typedef PromotionPaymentOffer
954
+ * @property {string} [application_id] - Application id
955
+ * @property {Object[]} [buy_rules] - Buy rules of promotions
956
+ * @property {string} [calculate_on] - Price on which promotion calculated
957
+ * @property {string} [description] - Offer details including T&C
958
+ * @property {Object[]} [discount_rules] - Discount rules of promotions
959
+ * @property {string} [id] - Promotion id
960
+ * @property {string} [offer_text] - Offer title
961
+ * @property {string} [promotion_group] - Group of promotion belongs to
962
+ * @property {string} [promotion_type] - Promotion type
963
+ * @property {string} [promotion_name] - Name of the promotion
964
+ */
965
+
966
+ /**
967
+ * @typedef PromotionPaymentOffersResponse
968
+ * @property {boolean} [success]
969
+ * @property {PromotionPaymentOffer[]} [promotions]
970
+ */
971
+
940
972
  /**
941
973
  * @typedef OperationErrorResponse
942
974
  * @property {string} [message]
@@ -1064,22 +1096,10 @@ class CartApplicationModel {
1064
1096
  });
1065
1097
  }
1066
1098
 
1067
- /** @returns {FreeGiftItem} */
1068
- static FreeGiftItem() {
1069
- return Joi.object({
1070
- item_slug: Joi.string().allow(""),
1071
- item_name: Joi.string().allow(""),
1072
- item_price_details: Joi.any(),
1073
- item_brand_name: Joi.string().allow(""),
1074
- item_id: Joi.number(),
1075
- item_images_url: Joi.array().items(Joi.string().allow("")),
1076
- });
1077
- }
1078
-
1079
1099
  /** @returns {AppliedFreeArticles} */
1080
1100
  static AppliedFreeArticles() {
1081
1101
  return Joi.object({
1082
- free_gift_item_details: CartApplicationModel.FreeGiftItem(),
1102
+ free_gift_item_details: CartApplicationModel.FreeGiftItems(),
1083
1103
  parent_item_identifier: Joi.string().allow(""),
1084
1104
  quantity: Joi.number(),
1085
1105
  article_id: Joi.string().allow(""),
@@ -1564,6 +1584,7 @@ class CartApplicationModel {
1564
1584
  coupon_text: Joi.string().allow(""),
1565
1585
  buy_now: Joi.boolean(),
1566
1586
  pan_config: Joi.any(),
1587
+ custom_cart_meta: Joi.any(),
1567
1588
  });
1568
1589
  }
1569
1590
 
@@ -1686,6 +1707,8 @@ class CartApplicationModel {
1686
1707
  start_date: Joi.string().allow("").allow(null),
1687
1708
  end_date: Joi.string().allow("").allow(null),
1688
1709
  coupon_applicable_message: Joi.string().allow(""),
1710
+ offer_text: Joi.string().allow(""),
1711
+ is_bank_offer: Joi.boolean(),
1689
1712
  });
1690
1713
  }
1691
1714
 
@@ -1915,6 +1938,7 @@ class CartApplicationModel {
1915
1938
  comment: Joi.string().allow(""),
1916
1939
  buy_now: Joi.boolean(),
1917
1940
  uid: Joi.string().allow(""),
1941
+ custom_cart_meta: Joi.any(),
1918
1942
  });
1919
1943
  }
1920
1944
 
@@ -2010,6 +2034,7 @@ class CartApplicationModel {
2010
2034
  coupon_text: Joi.string().allow(""),
2011
2035
  buy_now: Joi.boolean(),
2012
2036
  cod_charges: Joi.number(),
2037
+ custom_cart_meta: Joi.any(),
2013
2038
  });
2014
2039
  }
2015
2040
 
@@ -2051,6 +2076,7 @@ class CartApplicationModel {
2051
2076
  checkout_mode: Joi.string().allow(""),
2052
2077
  comment: Joi.string().allow(""),
2053
2078
  gstin: Joi.string().allow(""),
2079
+ custom_cart_meta: Joi.any(),
2054
2080
  });
2055
2081
  }
2056
2082
 
@@ -2118,6 +2144,7 @@ class CartApplicationModel {
2118
2144
  currency: CartApplicationModel.CartCurrency(),
2119
2145
  coupon_text: Joi.string().allow(""),
2120
2146
  buy_now: Joi.boolean(),
2147
+ custom_cart_meta: Joi.any(),
2121
2148
  });
2122
2149
  }
2123
2150
 
@@ -2129,12 +2156,29 @@ class CartApplicationModel {
2129
2156
  });
2130
2157
  }
2131
2158
 
2159
+ /** @returns {PriceMinMax} */
2160
+ static PriceMinMax() {
2161
+ return Joi.object({
2162
+ min: Joi.number(),
2163
+ max: Joi.number(),
2164
+ });
2165
+ }
2166
+
2167
+ /** @returns {ItemPriceDetails} */
2168
+ static ItemPriceDetails() {
2169
+ return Joi.object({
2170
+ marked: CartApplicationModel.PriceMinMax(),
2171
+ effective: CartApplicationModel.PriceMinMax(),
2172
+ currency: Joi.string().allow(""),
2173
+ });
2174
+ }
2175
+
2132
2176
  /** @returns {FreeGiftItems} */
2133
2177
  static FreeGiftItems() {
2134
2178
  return Joi.object({
2135
2179
  item_slug: Joi.string().allow(""),
2136
2180
  item_name: Joi.string().allow(""),
2137
- item_price_details: Joi.any(),
2181
+ item_price_details: CartApplicationModel.ItemPriceDetails(),
2138
2182
  item_brand_name: Joi.string().allow(""),
2139
2183
  item_id: Joi.number(),
2140
2184
  item_images_url: Joi.array().items(Joi.string().allow("")),
@@ -2147,6 +2191,8 @@ class CartApplicationModel {
2147
2191
  id: Joi.string().allow(""),
2148
2192
  buy_rules: Joi.any(),
2149
2193
  offer_text: Joi.string().allow(""),
2194
+ promotion_type: Joi.string().allow(""),
2195
+ promotion_name: Joi.string().allow(""),
2150
2196
  promotion_group: Joi.string().allow(""),
2151
2197
  valid_till: Joi.string().allow(""),
2152
2198
  discount_rules: Joi.array().items(Joi.any()),
@@ -2164,6 +2210,32 @@ class CartApplicationModel {
2164
2210
  });
2165
2211
  }
2166
2212
 
2213
+ /** @returns {PromotionPaymentOffer} */
2214
+ static PromotionPaymentOffer() {
2215
+ return Joi.object({
2216
+ application_id: Joi.string().allow(""),
2217
+ buy_rules: Joi.array().items(Joi.any()),
2218
+ calculate_on: Joi.string().allow(""),
2219
+ description: Joi.string().allow(""),
2220
+ discount_rules: Joi.array().items(Joi.any()),
2221
+ id: Joi.string().allow(""),
2222
+ offer_text: Joi.string().allow(""),
2223
+ promotion_group: Joi.string().allow(""),
2224
+ promotion_type: Joi.string().allow(""),
2225
+ promotion_name: Joi.string().allow(""),
2226
+ });
2227
+ }
2228
+
2229
+ /** @returns {PromotionPaymentOffersResponse} */
2230
+ static PromotionPaymentOffersResponse() {
2231
+ return Joi.object({
2232
+ success: Joi.boolean(),
2233
+ promotions: Joi.array().items(
2234
+ CartApplicationModel.PromotionPaymentOffer()
2235
+ ),
2236
+ });
2237
+ }
2238
+
2167
2239
  /** @returns {OperationErrorResponse} */
2168
2240
  static OperationErrorResponse() {
2169
2241
  return Joi.object({
@@ -13,6 +13,9 @@ export = CartApplicationValidator;
13
13
  * @property {boolean} [buyNow] - This is a boolen value. Select `true` to
14
14
  * set/initialize buy now cart
15
15
  * @property {string} [id] - The unique identifier of the cart
16
+ * @property {string} [orderType] - The order type of shipment HomeDelivery - If
17
+ * the customer wants the order home-delivered PickAtStore - If the customer
18
+ * wants the handover of an order at the store itself.
16
19
  * @property {CartApplicationModel.AddCartRequest} body
17
20
  */
18
21
  /**
@@ -92,6 +95,9 @@ export = CartApplicationValidator;
92
95
  * @property {string} [areaCode] - Customer servicable area_code
93
96
  * @property {boolean} [buyNow] - This is a boolen value. Select `true` to
94
97
  * set/initialize buy now cart
98
+ * @property {string} [orderType] - The order type of shipment HomeDelivery - If
99
+ * the customer wants the order home-delivered PickAtStore - If the customer
100
+ * wants the handover of an order at the store itself.
95
101
  */
96
102
  /**
97
103
  * @typedef GetCartLastModifiedParam
@@ -138,6 +144,11 @@ export = CartApplicationValidator;
138
144
  * @property {number} [storeId] - Store id
139
145
  * @property {string} [cartType] - The type of cart
140
146
  */
147
+ /**
148
+ * @typedef GetPromotionPaymentOffersParam
149
+ * @property {string} [id] - Cart id
150
+ * @property {number} [uid] - Cart uid
151
+ */
141
152
  /**
142
153
  * @typedef GetShipmentsParam
143
154
  * @property {boolean} [p] - This is a boolean value. Select `true` for getting
@@ -190,6 +201,9 @@ export = CartApplicationValidator;
190
201
  * @property {boolean} [buyNow] - This is a boolen value. Select `true` to
191
202
  * set/initialize buy now cart
192
203
  * @property {string} [cartType] - The type of cart
204
+ * @property {string} [orderType] - The order type of shipment HomeDelivery - If
205
+ * the customer wants the order home-delivered PickAtStore - If the customer
206
+ * wants the handover of an order at the store itself.
193
207
  * @property {CartApplicationModel.UpdateCartRequest} body
194
208
  */
195
209
  /**
@@ -256,6 +270,8 @@ declare class CartApplicationValidator {
256
270
  static getLadderOffers(): GetLadderOffersParam;
257
271
  /** @returns {GetPromotionOffersParam} */
258
272
  static getPromotionOffers(): GetPromotionOffersParam;
273
+ /** @returns {GetPromotionPaymentOffersParam} */
274
+ static getPromotionPaymentOffers(): GetPromotionPaymentOffersParam;
259
275
  /** @returns {GetShipmentsParam} */
260
276
  static getShipments(): GetShipmentsParam;
261
277
  /** @returns {RemoveAddressParam} */
@@ -278,7 +294,7 @@ declare class CartApplicationValidator {
278
294
  static validateCouponForPayment(): ValidateCouponForPaymentParam;
279
295
  }
280
296
  declare namespace CartApplicationValidator {
281
- export { AddAddressParam, AddItemsParam, ApplyCouponParam, ApplyRewardPointsParam, CheckoutCartParam, CheckoutCartV2Param, DeleteCartParam, GetAddressByIdParam, GetAddressesParam, GetBulkDiscountOffersParam, GetCartParam, GetCartLastModifiedParam, GetCartShareLinkParam, GetCartSharedItemsParam, GetCouponsParam, GetItemCountParam, GetLadderOffersParam, GetPromotionOffersParam, GetShipmentsParam, RemoveAddressParam, RemoveCouponParam, SelectAddressParam, SelectPaymentModeParam, UpdateAddressParam, UpdateCartParam, UpdateCartMetaParam, UpdateCartWithSharedItemsParam, ValidateCouponForPaymentParam };
297
+ export { AddAddressParam, AddItemsParam, ApplyCouponParam, ApplyRewardPointsParam, CheckoutCartParam, CheckoutCartV2Param, DeleteCartParam, GetAddressByIdParam, GetAddressesParam, GetBulkDiscountOffersParam, GetCartParam, GetCartLastModifiedParam, GetCartShareLinkParam, GetCartSharedItemsParam, GetCouponsParam, GetItemCountParam, GetLadderOffersParam, GetPromotionOffersParam, GetPromotionPaymentOffersParam, GetShipmentsParam, RemoveAddressParam, RemoveCouponParam, SelectAddressParam, SelectPaymentModeParam, UpdateAddressParam, UpdateCartParam, UpdateCartMetaParam, UpdateCartWithSharedItemsParam, ValidateCouponForPaymentParam };
282
298
  }
283
299
  type AddAddressParam = {
284
300
  body: CartApplicationModel.Address;
@@ -307,6 +323,12 @@ type AddItemsParam = {
307
323
  * - The unique identifier of the cart
308
324
  */
309
325
  id?: string;
326
+ /**
327
+ * - The order type of shipment HomeDelivery - If
328
+ * the customer wants the order home-delivered PickAtStore - If the customer
329
+ * wants the handover of an order at the store itself.
330
+ */
331
+ orderType?: string;
310
332
  body: CartApplicationModel.AddCartRequest;
311
333
  };
312
334
  type ApplyCouponParam = {
@@ -437,6 +459,12 @@ type GetCartParam = {
437
459
  * set/initialize buy now cart
438
460
  */
439
461
  buyNow?: boolean;
462
+ /**
463
+ * - The order type of shipment HomeDelivery - If
464
+ * the customer wants the order home-delivered PickAtStore - If the customer
465
+ * wants the handover of an order at the store itself.
466
+ */
467
+ orderType?: string;
440
468
  };
441
469
  type GetCartLastModifiedParam = {
442
470
  id?: string;
@@ -509,6 +537,16 @@ type GetPromotionOffersParam = {
509
537
  */
510
538
  cartType?: string;
511
539
  };
540
+ type GetPromotionPaymentOffersParam = {
541
+ /**
542
+ * - Cart id
543
+ */
544
+ id?: string;
545
+ /**
546
+ * - Cart uid
547
+ */
548
+ uid?: number;
549
+ };
512
550
  type GetShipmentsParam = {
513
551
  /**
514
552
  * - This is a boolean value. Select `true` for getting
@@ -599,6 +637,12 @@ type UpdateCartParam = {
599
637
  * - The type of cart
600
638
  */
601
639
  cartType?: string;
640
+ /**
641
+ * - The order type of shipment HomeDelivery - If
642
+ * the customer wants the order home-delivered PickAtStore - If the customer
643
+ * wants the handover of an order at the store itself.
644
+ */
645
+ orderType?: string;
602
646
  body: CartApplicationModel.UpdateCartRequest;
603
647
  };
604
648
  type UpdateCartMetaParam = {
@@ -17,6 +17,9 @@ const CartApplicationModel = require("./CartApplicationModel");
17
17
  * @property {boolean} [buyNow] - This is a boolen value. Select `true` to
18
18
  * set/initialize buy now cart
19
19
  * @property {string} [id] - The unique identifier of the cart
20
+ * @property {string} [orderType] - The order type of shipment HomeDelivery - If
21
+ * the customer wants the order home-delivered PickAtStore - If the customer
22
+ * wants the handover of an order at the store itself.
20
23
  * @property {CartApplicationModel.AddCartRequest} body
21
24
  */
22
25
 
@@ -105,6 +108,9 @@ const CartApplicationModel = require("./CartApplicationModel");
105
108
  * @property {string} [areaCode] - Customer servicable area_code
106
109
  * @property {boolean} [buyNow] - This is a boolen value. Select `true` to
107
110
  * set/initialize buy now cart
111
+ * @property {string} [orderType] - The order type of shipment HomeDelivery - If
112
+ * the customer wants the order home-delivered PickAtStore - If the customer
113
+ * wants the handover of an order at the store itself.
108
114
  */
109
115
 
110
116
  /**
@@ -159,6 +165,12 @@ const CartApplicationModel = require("./CartApplicationModel");
159
165
  * @property {string} [cartType] - The type of cart
160
166
  */
161
167
 
168
+ /**
169
+ * @typedef GetPromotionPaymentOffersParam
170
+ * @property {string} [id] - Cart id
171
+ * @property {number} [uid] - Cart uid
172
+ */
173
+
162
174
  /**
163
175
  * @typedef GetShipmentsParam
164
176
  * @property {boolean} [p] - This is a boolean value. Select `true` for getting
@@ -217,6 +229,9 @@ const CartApplicationModel = require("./CartApplicationModel");
217
229
  * @property {boolean} [buyNow] - This is a boolen value. Select `true` to
218
230
  * set/initialize buy now cart
219
231
  * @property {string} [cartType] - The type of cart
232
+ * @property {string} [orderType] - The order type of shipment HomeDelivery - If
233
+ * the customer wants the order home-delivered PickAtStore - If the customer
234
+ * wants the handover of an order at the store itself.
220
235
  * @property {CartApplicationModel.UpdateCartRequest} body
221
236
  */
222
237
 
@@ -266,6 +281,7 @@ class CartApplicationValidator {
266
281
  areaCode: Joi.string().allow(""),
267
282
  buyNow: Joi.boolean(),
268
283
  id: Joi.string().allow(""),
284
+ orderType: Joi.string().allow(""),
269
285
  body: CartApplicationModel.AddCartRequest().required(),
270
286
  }).required();
271
287
  }
@@ -364,6 +380,7 @@ class CartApplicationValidator {
364
380
  assignCardId: Joi.number(),
365
381
  areaCode: Joi.string().allow(""),
366
382
  buyNow: Joi.boolean(),
383
+ orderType: Joi.string().allow(""),
367
384
  });
368
385
  }
369
386
 
@@ -427,6 +444,14 @@ class CartApplicationValidator {
427
444
  });
428
445
  }
429
446
 
447
+ /** @returns {GetPromotionPaymentOffersParam} */
448
+ static getPromotionPaymentOffers() {
449
+ return Joi.object({
450
+ id: Joi.string().allow(""),
451
+ uid: Joi.number(),
452
+ });
453
+ }
454
+
430
455
  /** @returns {GetShipmentsParam} */
431
456
  static getShipments() {
432
457
  return Joi.object({
@@ -491,6 +516,7 @@ class CartApplicationValidator {
491
516
  areaCode: Joi.string().allow(""),
492
517
  buyNow: Joi.boolean(),
493
518
  cartType: Joi.string().allow(""),
519
+ orderType: Joi.string().allow(""),
494
520
  body: CartApplicationModel.UpdateCartRequest().required(),
495
521
  }).required();
496
522
  }
@@ -162,7 +162,7 @@ export = CatalogApplicationModel;
162
162
  */
163
163
  /**
164
164
  * @typedef DiscountMeta
165
- * @property {boolean} timer - Determines whether the discount countdown is
165
+ * @property {boolean} [timer] - Determines whether the discount countdown is
166
166
  * visible or not.
167
167
  * @property {number} [start_timer_in_minutes] - The time in minutes before the
168
168
  * discount ends when the countdown timer should start.
@@ -220,6 +220,7 @@ export = CatalogApplicationModel;
220
220
  * @typedef ProductSizes
221
221
  * @property {ProductSize[]} [sizes]
222
222
  * @property {ProductSizesPrice} [price]
223
+ * @property {ProductSizesPrice} [price_per_piece]
223
224
  * @property {SizeChart} [size_chart]
224
225
  * @property {boolean} [sellable]
225
226
  * @property {boolean} [multi_size]
@@ -266,14 +267,17 @@ export = CatalogApplicationModel;
266
267
  * @property {string} [name]
267
268
  * @property {string} [value]
268
269
  * @property {string} [slug]
270
+ * @property {Object} [_custom_json]
269
271
  * @property {ProductListingAction} [action]
270
272
  */
271
273
  /**
272
274
  * @typedef ProductVariantResponse
273
275
  * @property {string} [display_type]
274
276
  * @property {string} [header]
277
+ * @property {string} [group_id]
275
278
  * @property {ProductVariantItemResponse[]} [items]
276
279
  * @property {string} [key]
280
+ * @property {string} [logo]
277
281
  */
278
282
  /**
279
283
  * @typedef ProductVariantsResponse
@@ -1230,7 +1234,7 @@ type DiscountMeta = {
1230
1234
  * - Determines whether the discount countdown is
1231
1235
  * visible or not.
1232
1236
  */
1233
- timer: boolean;
1237
+ timer?: boolean;
1234
1238
  /**
1235
1239
  * - The time in minutes before the
1236
1240
  * discount ends when the countdown timer should start.
@@ -1303,6 +1307,7 @@ declare function ProductSizes(): ProductSizes;
1303
1307
  type ProductSizes = {
1304
1308
  sizes?: ProductSize[];
1305
1309
  price?: ProductSizesPrice;
1310
+ price_per_piece?: ProductSizesPrice;
1306
1311
  size_chart?: SizeChart;
1307
1312
  sellable?: boolean;
1308
1313
  multi_size?: boolean;
@@ -1355,6 +1360,7 @@ type ProductVariantItemResponse = {
1355
1360
  name?: string;
1356
1361
  value?: string;
1357
1362
  slug?: string;
1363
+ _custom_json?: any;
1358
1364
  action?: ProductListingAction;
1359
1365
  };
1360
1366
  /** @returns {ProductVariantResponse} */
@@ -1362,8 +1368,10 @@ declare function ProductVariantResponse(): ProductVariantResponse;
1362
1368
  type ProductVariantResponse = {
1363
1369
  display_type?: string;
1364
1370
  header?: string;
1371
+ group_id?: string;
1365
1372
  items?: ProductVariantItemResponse[];
1366
1373
  key?: string;
1374
+ logo?: string;
1367
1375
  };
1368
1376
  /** @returns {ProductVariantsResponse} */
1369
1377
  declare function ProductVariantsResponse(): ProductVariantsResponse;
@@ -184,7 +184,7 @@ const Joi = require("joi");
184
184
 
185
185
  /**
186
186
  * @typedef DiscountMeta
187
- * @property {boolean} timer - Determines whether the discount countdown is
187
+ * @property {boolean} [timer] - Determines whether the discount countdown is
188
188
  * visible or not.
189
189
  * @property {number} [start_timer_in_minutes] - The time in minutes before the
190
190
  * discount ends when the countdown timer should start.
@@ -249,6 +249,7 @@ const Joi = require("joi");
249
249
  * @typedef ProductSizes
250
250
  * @property {ProductSize[]} [sizes]
251
251
  * @property {ProductSizesPrice} [price]
252
+ * @property {ProductSizesPrice} [price_per_piece]
252
253
  * @property {SizeChart} [size_chart]
253
254
  * @property {boolean} [sellable]
254
255
  * @property {boolean} [multi_size]
@@ -301,6 +302,7 @@ const Joi = require("joi");
301
302
  * @property {string} [name]
302
303
  * @property {string} [value]
303
304
  * @property {string} [slug]
305
+ * @property {Object} [_custom_json]
304
306
  * @property {ProductListingAction} [action]
305
307
  */
306
308
 
@@ -308,8 +310,10 @@ const Joi = require("joi");
308
310
  * @typedef ProductVariantResponse
309
311
  * @property {string} [display_type]
310
312
  * @property {string} [header]
313
+ * @property {string} [group_id]
311
314
  * @property {ProductVariantItemResponse[]} [items]
312
315
  * @property {string} [key]
316
+ * @property {string} [logo]
313
317
  */
314
318
 
315
319
  /**
@@ -1323,7 +1327,7 @@ class CatalogApplicationModel {
1323
1327
  /** @returns {DiscountMeta} */
1324
1328
  static DiscountMeta() {
1325
1329
  return Joi.object({
1326
- timer: Joi.boolean().required(),
1330
+ timer: Joi.boolean(),
1327
1331
  start_timer_in_minutes: Joi.number(),
1328
1332
  start: Joi.string().allow(""),
1329
1333
  end: Joi.string().allow(""),
@@ -1400,6 +1404,7 @@ class CatalogApplicationModel {
1400
1404
  return Joi.object({
1401
1405
  sizes: Joi.array().items(CatalogApplicationModel.ProductSize()),
1402
1406
  price: CatalogApplicationModel.ProductSizesPrice(),
1407
+ price_per_piece: CatalogApplicationModel.ProductSizesPrice(),
1403
1408
  size_chart: CatalogApplicationModel.SizeChart(),
1404
1409
  sellable: Joi.boolean(),
1405
1410
  multi_size: Joi.boolean(),
@@ -1470,6 +1475,7 @@ class CatalogApplicationModel {
1470
1475
  name: Joi.string().allow(""),
1471
1476
  value: Joi.string().allow(""),
1472
1477
  slug: Joi.string().allow(""),
1478
+ _custom_json: Joi.object().pattern(/\S/, Joi.any()),
1473
1479
  action: CatalogApplicationModel.ProductListingAction(),
1474
1480
  });
1475
1481
  }
@@ -1479,10 +1485,12 @@ class CatalogApplicationModel {
1479
1485
  return Joi.object({
1480
1486
  display_type: Joi.string().allow(""),
1481
1487
  header: Joi.string().allow(""),
1488
+ group_id: Joi.string().allow(""),
1482
1489
  items: Joi.array().items(
1483
1490
  CatalogApplicationModel.ProductVariantItemResponse()
1484
1491
  ),
1485
1492
  key: Joi.string().allow(""),
1493
+ logo: Joi.string().allow(""),
1486
1494
  });
1487
1495
  }
1488
1496
 
@@ -59,7 +59,7 @@ declare class Content {
59
59
  * @summary: List blogs
60
60
  * @description: List all the blogs against an application - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getBlogs/).
61
61
  */
62
- getBlogs({ pageNo, pageSize, requestHeaders }?: ContentApplicationValidator.GetBlogsParam, { responseHeaders }?: object): Promise<ContentApplicationModel.BlogGetResponse>;
62
+ getBlogs({ pageNo, pageSize, tags, search, requestHeaders }?: ContentApplicationValidator.GetBlogsParam, { responseHeaders }?: object): Promise<ContentApplicationModel.BlogGetResponse>;
63
63
  /**
64
64
  * @param {ContentApplicationValidator.GetCustomFieldsParam} arg - Arg object.
65
65
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -224,11 +224,11 @@ class Content {
224
224
  * @description: List all the blogs against an application - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getBlogs/).
225
225
  */
226
226
  async getBlogs(
227
- { pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
227
+ { pageNo, pageSize, tags, search, requestHeaders } = { requestHeaders: {} },
228
228
  { responseHeaders } = { responseHeaders: false }
229
229
  ) {
230
230
  const { error } = ContentApplicationValidator.getBlogs().validate(
231
- { pageNo, pageSize },
231
+ { pageNo, pageSize, tags, search },
232
232
  { abortEarly: false, allowUnknown: true }
233
233
  );
234
234
  if (error) {
@@ -237,7 +237,7 @@ class Content {
237
237
 
238
238
  // Showing warrnings if extra unknown parameters are found
239
239
  const { error: warrning } = ContentApplicationValidator.getBlogs().validate(
240
- { pageNo, pageSize },
240
+ { pageNo, pageSize, tags, search },
241
241
  { abortEarly: false, allowUnknown: false }
242
242
  );
243
243
  if (warrning) {
@@ -250,6 +250,8 @@ class Content {
250
250
  const query_params = {};
251
251
  query_params["page_no"] = pageNo;
252
252
  query_params["page_size"] = pageSize;
253
+ query_params["tags"] = tags;
254
+ query_params["search"] = search;
253
255
 
254
256
  const xHeaders = {};
255
257