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

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 (123) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Cart/CartApplicationClient.d.ts +16 -3
  4. package/sdk/application/Cart/CartApplicationClient.js +118 -13
  5. package/sdk/application/Cart/CartApplicationModel.d.ts +121 -45
  6. package/sdk/application/Cart/CartApplicationModel.js +98 -26
  7. package/sdk/application/Cart/CartApplicationValidator.d.ts +45 -1
  8. package/sdk/application/Cart/CartApplicationValidator.js +26 -0
  9. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +4 -2
  10. package/sdk/application/Catalog/CatalogApplicationModel.js +4 -2
  11. package/sdk/application/Content/ContentApplicationClient.d.ts +1 -1
  12. package/sdk/application/Content/ContentApplicationClient.js +5 -3
  13. package/sdk/application/Content/ContentApplicationModel.d.ts +7 -18
  14. package/sdk/application/Content/ContentApplicationModel.js +6 -20
  15. package/sdk/application/Content/ContentApplicationValidator.d.ts +10 -0
  16. package/sdk/application/Content/ContentApplicationValidator.js +4 -0
  17. package/sdk/application/Lead/LeadApplicationClient.d.ts +0 -27
  18. package/sdk/application/Lead/LeadApplicationClient.js +0 -167
  19. package/sdk/application/Lead/LeadApplicationModel.d.ts +1 -146
  20. package/sdk/application/Lead/LeadApplicationModel.js +0 -126
  21. package/sdk/application/Lead/LeadApplicationValidator.d.ts +1 -25
  22. package/sdk/application/Lead/LeadApplicationValidator.js +0 -24
  23. package/sdk/application/Logistic/LogisticApplicationClient.js +1 -1
  24. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +2 -0
  25. package/sdk/application/Logistic/LogisticApplicationModel.js +2 -0
  26. package/sdk/application/Order/OrderApplicationModel.d.ts +4 -0
  27. package/sdk/application/Order/OrderApplicationModel.js +4 -0
  28. package/sdk/application/Payment/PaymentApplicationModel.d.ts +9 -2
  29. package/sdk/application/Payment/PaymentApplicationModel.js +5 -2
  30. package/sdk/application/Theme/ThemeApplicationModel.d.ts +2 -0
  31. package/sdk/application/Theme/ThemeApplicationModel.js +2 -0
  32. package/sdk/partner/Lead/LeadPartnerClient.d.ts +0 -23
  33. package/sdk/partner/Lead/LeadPartnerClient.js +0 -157
  34. package/sdk/partner/Lead/LeadPartnerModel.d.ts +12 -581
  35. package/sdk/partner/Lead/LeadPartnerModel.js +14 -403
  36. package/sdk/partner/Lead/LeadPartnerValidator.d.ts +0 -2
  37. package/sdk/partner/Lead/LeadPartnerValidator.js +0 -12
  38. package/sdk/partner/Logistics/LogisticsPartnerClient.js +1 -1
  39. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +47 -1
  40. package/sdk/partner/Logistics/LogisticsPartnerModel.js +56 -4
  41. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +2 -2
  42. package/sdk/partner/Theme/ThemePartnerClient.d.ts +22 -0
  43. package/sdk/partner/Theme/ThemePartnerClient.js +162 -0
  44. package/sdk/partner/Theme/ThemePartnerModel.d.ts +119 -1
  45. package/sdk/partner/Theme/ThemePartnerModel.js +142 -0
  46. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +2 -0
  47. package/sdk/partner/Theme/ThemePartnerValidator.js +14 -0
  48. package/sdk/platform/Billing/BillingPlatformClient.d.ts +304 -43
  49. package/sdk/platform/Billing/BillingPlatformClient.js +2218 -118
  50. package/sdk/platform/Billing/BillingPlatformModel.d.ts +1330 -282
  51. package/sdk/platform/Billing/BillingPlatformModel.js +1808 -590
  52. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +324 -16
  53. package/sdk/platform/Billing/BillingPlatformValidator.js +340 -12
  54. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +28 -5
  55. package/sdk/platform/Cart/CartPlatformApplicationClient.js +198 -5
  56. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +81 -1
  57. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +48 -0
  58. package/sdk/platform/Cart/CartPlatformModel.d.ts +214 -40
  59. package/sdk/platform/Cart/CartPlatformModel.js +164 -24
  60. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +1 -1
  61. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +20 -0
  62. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +37 -0
  63. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +16 -0
  64. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +2 -2
  65. package/sdk/platform/Catalog/CatalogPlatformClient.js +18 -2
  66. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +4 -0
  67. package/sdk/platform/Catalog/CatalogPlatformModel.js +4 -0
  68. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +28 -0
  69. package/sdk/platform/Catalog/CatalogPlatformValidator.js +12 -0
  70. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +1 -1
  71. package/sdk/platform/Content/ContentPlatformApplicationClient.js +18 -1
  72. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +25 -0
  73. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +10 -0
  74. package/sdk/platform/Content/ContentPlatformModel.d.ts +8 -4
  75. package/sdk/platform/Content/ContentPlatformModel.js +8 -4
  76. package/sdk/platform/Finance/FinancePlatformClient.d.ts +49 -28
  77. package/sdk/platform/Finance/FinancePlatformClient.js +181 -28
  78. package/sdk/platform/Finance/FinancePlatformModel.d.ts +369 -129
  79. package/sdk/platform/Finance/FinancePlatformModel.js +404 -110
  80. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +56 -43
  81. package/sdk/platform/Finance/FinancePlatformValidator.js +61 -42
  82. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +0 -47
  83. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +0 -321
  84. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +1 -46
  85. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +0 -48
  86. package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -25
  87. package/sdk/platform/Lead/LeadPlatformClient.js +2 -167
  88. package/sdk/platform/Lead/LeadPlatformModel.d.ts +82 -204
  89. package/sdk/platform/Lead/LeadPlatformModel.js +98 -178
  90. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +1 -25
  91. package/sdk/platform/Lead/LeadPlatformValidator.js +0 -24
  92. package/sdk/platform/Order/OrderPlatformModel.d.ts +126 -15
  93. package/sdk/platform/Order/OrderPlatformModel.js +55 -14
  94. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +12 -0
  95. package/sdk/platform/Payment/PaymentPlatformModel.js +5 -0
  96. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +1 -1
  97. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +4 -4
  98. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +20 -1
  99. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +26 -4
  100. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +4 -4
  101. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +4 -4
  102. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +12 -0
  103. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +82 -0
  104. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +18 -1
  105. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +14 -0
  106. package/sdk/platform/Theme/ThemePlatformModel.d.ts +67 -1
  107. package/sdk/platform/Theme/ThemePlatformModel.js +78 -0
  108. package/sdk/platform/User/UserPlatformModel.d.ts +0 -2
  109. package/sdk/platform/User/UserPlatformModel.js +0 -2
  110. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +0 -40
  111. package/sdk/platform/Webhook/WebhookPlatformClient.js +0 -307
  112. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +94 -146
  113. package/sdk/platform/Webhook/WebhookPlatformModel.js +100 -151
  114. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +9 -35
  115. package/sdk/platform/Webhook/WebhookPlatformValidator.js +8 -46
  116. package/sdk/public/Billing/BillingPublicClient.d.ts +24 -2
  117. package/sdk/public/Billing/BillingPublicClient.js +156 -3
  118. package/sdk/public/Billing/BillingPublicModel.d.ts +368 -26
  119. package/sdk/public/Billing/BillingPublicModel.js +317 -18
  120. package/sdk/public/Billing/BillingPublicValidator.d.ts +19 -3
  121. package/sdk/public/Billing/BillingPublicValidator.js +22 -3
  122. package/sdk/public/Webhook/WebhookPublicModel.d.ts +22 -22
  123. package/sdk/public/Webhook/WebhookPublicModel.js +22 -22
@@ -561,6 +561,10 @@ export = CartPlatformModel;
561
561
  * @typedef PriceAdjustmentResponse
562
562
  * @property {PriceAdjustment} [data]
563
563
  */
564
+ /**
565
+ * @typedef GetPriceAdjustmentResponse
566
+ * @property {PriceAdjustment[]} [data]
567
+ */
564
568
  /**
565
569
  * @typedef PriceAdjustmentAdd
566
570
  * @property {number} value
@@ -746,21 +750,12 @@ export = CartPlatformModel;
746
750
  * @property {Object} [item_criteria] - Item criteria of promotion
747
751
  * @property {string[]} [matched_buy_rules] - Matched buy rules for promotion
748
752
  */
749
- /**
750
- * @typedef FreeGiftItem
751
- * @property {string} [item_name] - Item name
752
- * @property {Object} [item_price_details] - Item price details
753
- * @property {string} [item_brand_name] - Item brand name
754
- * @property {string[]} [item_images_url] - Item images URL
755
- * @property {number} [item_id] - Item id
756
- * @property {string} [item_slug] - Item slug
757
- */
758
753
  /**
759
754
  * @typedef AppliedFreeArticles
760
755
  * @property {string} [parent_item_identifier] - Parent item identifier for free article
761
756
  * @property {number} [quantity] - Free article quantity
762
757
  * @property {string} [article_id] - Free article id
763
- * @property {FreeGiftItem} [free_gift_item_details] - Free gift items details
758
+ * @property {FreeGiftItems} [free_gift_item_details] - Free gift items details
764
759
  */
765
760
  /**
766
761
  * @typedef BuyRules
@@ -1114,6 +1109,7 @@ export = CartPlatformModel;
1114
1109
  * @property {string} [gstin]
1115
1110
  * @property {AppliedPromotion[]} [applied_promo_details]
1116
1111
  * @property {string} [pan_no]
1112
+ * @property {Object} [custom_cart_meta]
1117
1113
  */
1118
1114
  /**
1119
1115
  * @typedef AddProductCart
@@ -1257,6 +1253,7 @@ export = CartPlatformModel;
1257
1253
  * @property {boolean} [buy_now]
1258
1254
  * @property {number} [cart_id]
1259
1255
  * @property {string} [gstin]
1256
+ * @property {Object} [custom_cart_meta]
1260
1257
  */
1261
1258
  /**
1262
1259
  * @typedef SharedCartResponse
@@ -1314,6 +1311,7 @@ export = CartPlatformModel;
1314
1311
  * @property {string} [last_modified]
1315
1312
  * @property {boolean} [buy_now]
1316
1313
  * @property {string} [gstin]
1314
+ * @property {Object} [custom_cart_meta]
1317
1315
  * @property {AppliedPromotion[]} [applied_promo_details]
1318
1316
  * @property {string} [pan_no]
1319
1317
  */
@@ -1489,6 +1487,7 @@ export = CartPlatformModel;
1489
1487
  * @property {AppliedPromotion[]} [applied_promo_details]
1490
1488
  * @property {boolean} [error]
1491
1489
  * @property {string} [pan_no]
1490
+ * @property {Object} [custom_cart_meta]
1492
1491
  */
1493
1492
  /**
1494
1493
  * @typedef UpdateCartShipmentItem
@@ -1609,6 +1608,7 @@ export = CartPlatformModel;
1609
1608
  * @property {string} [gstin]
1610
1609
  * @property {boolean} [cod_available]
1611
1610
  * @property {number} [delivery_charges]
1611
+ * @property {Object} [custom_cart_meta]
1612
1612
  */
1613
1613
  /**
1614
1614
  * @typedef CartCheckoutResponse
@@ -1734,10 +1734,65 @@ export = CartPlatformModel;
1734
1734
  * @property {string} [id]
1735
1735
  * @property {PaymentMethod[]} [payment_methods]
1736
1736
  */
1737
+ /**
1738
+ * @typedef PriceMinMax
1739
+ * @property {number} [min]
1740
+ * @property {number} [max]
1741
+ */
1742
+ /**
1743
+ * @typedef ItemPriceDetails
1744
+ * @property {PriceMinMax} [marked]
1745
+ * @property {PriceMinMax} [effective]
1746
+ * @property {string} [currency]
1747
+ */
1748
+ /**
1749
+ * @typedef FreeGiftItems
1750
+ * @property {string} [item_slug] - Item slug
1751
+ * @property {string} [item_name] - Item name
1752
+ * @property {ItemPriceDetails} [item_price_details]
1753
+ * @property {string} [item_brand_name] - Item brand name
1754
+ * @property {number} [item_id] - Item id
1755
+ * @property {string[]} [item_images_url] - Item images URL
1756
+ */
1757
+ /**
1758
+ * @typedef PromotionOffer
1759
+ * @property {string} [id] - Promotion id
1760
+ * @property {Object} [buy_rules] - Buy rules of promotions
1761
+ * @property {string} [offer_text] - Offer title
1762
+ * @property {string} [promotion_type] - Promotion type
1763
+ * @property {string} [promotion_name] - Name of the promotion
1764
+ * @property {string} [promotion_group] - Group of promotion belongs to
1765
+ * @property {string} [valid_till] - Datetime ISOString for promotion end date
1766
+ * @property {Object[]} [discount_rules] - Discount rules of promotions
1767
+ * @property {FreeGiftItems[]} [free_gift_items] - Details of free gift items
1768
+ * @property {string} [description] - Offer details including T&C
1769
+ */
1770
+ /**
1771
+ * @typedef PromotionOffersResponse
1772
+ * @property {PromotionOffer[]} [available_promotions]
1773
+ */
1774
+ /**
1775
+ * @typedef PromotionPaymentOffer
1776
+ * @property {string} [application_id] - Application id
1777
+ * @property {Object[]} [buy_rules] - Buy rules of promotions
1778
+ * @property {string} [calculate_on] - Price on which promotion calculated
1779
+ * @property {string} [description] - Offer details including T&C
1780
+ * @property {Object[]} [discount_rules] - Discount rules of promotions
1781
+ * @property {string} [id] - Promotion id
1782
+ * @property {string} [offer_text] - Offer title
1783
+ * @property {string} [promotion_group] - Group of promotion belongs to
1784
+ * @property {string} [promotion_type] - Promotion type
1785
+ * @property {string} [promotion_name] - Name of the promotion
1786
+ */
1787
+ /**
1788
+ * @typedef PromotionPaymentOffersResponse
1789
+ * @property {boolean} [success]
1790
+ * @property {PromotionPaymentOffer[]} [promotions]
1791
+ */
1737
1792
  declare class CartPlatformModel {
1738
1793
  }
1739
1794
  declare namespace CartPlatformModel {
1740
- export { CouponDateMeta, Ownership, CouponAuthor, State, PaymentAllowValue, PaymentModes, PriceRange, PostOrder, BulkBundleRestriction, UsesRemaining, UsesRestriction, Restrictions, Validation, CouponAction, CouponSchedule, Rule, DisplayMetaDict, DisplayMeta, Identifier, Validity, RuleDefinition, CouponAdd, Page, CouponsResponse, SuccessMessage, OperationErrorResponse, CouponUpdate, CouponPartialUpdate, DisplayMeta1, Ownership1, CompareObject, ItemCriteria, DiscountOffer, DiscountRule, PaymentAllowValue1, PromotionPaymentModes, UserRegistered, PostOrder1, UsesRemaining1, UsesRestriction1, Restrictions1, PromotionSchedule, PromotionAction, PromotionAuthor, Visibility, PromotionDateMeta, PromotionListItem, PromotionsResponse, PromotionAdd, PromotionUpdate, PromotionPartialUpdate, ActivePromosResponse, Charges, DeliveryCharges, CartMetaConfigUpdate, CartMetaConfigAdd, Article, PriceAdjustmentRestrictions, Collection, PriceAdjustmentUpdate, PriceAdjustment, PriceAdjustmentResponse, PriceAdjustmentAdd, CartItem, OpenapiCartDetailsRequest, CouponBreakup, DisplayBreakup, LoyaltyPoints, RawBreakup, CartBreakup, ProductImage, Tags, BaseInfo, ActionQuery, ProductAction, CategoryInfo, CartProduct, BasePrice, ArticlePriceInfo, StoreInfo, ProductArticle, Ownership2, DiscountRulesApp, FreeGiftItem, AppliedFreeArticles, BuyRules, AppliedPromotion, PromiseFormatted, PromiseISOFormat, PromiseTimestamp, ShipmentPromise, CouponDetails, ProductPrice, ProductPriceInfo, CartProductIdentifer, ProductAvailabilitySize, ProductAvailability, PromoMeta, CartProductInfo, OpenapiCartDetailsResponse, OpenApiErrorResponse, ShippingAddress, OpenApiCartServiceabilityRequest, OpenApiCartServiceabilityResponse, OpenApiFiles, CartItemMeta, MultiTenderPaymentMeta, MultiTenderPaymentMethod, OpenApiOrderItem, OpenApiPlatformCheckoutReq, OpenApiCheckoutResponse, AbandonedCart, AbandonedCartResponse, PaymentSelectionLock, CartCurrency, CartDetailCoupon, ChargesThreshold, DeliveryChargesConfig, CartCommonConfig, CartDetailResponse, AddProductCart, AddCartRequest, AddCartDetailResponse, UpdateProductCart, UpdateCartRequest, UpdateCartDetailResponse, OverrideCartItemPromo, OverrideCartItem, OverrideCheckoutReq, OverrideCheckoutResponse, GetShareCartLinkRequest, GetShareCartLinkResponse, SharedCartDetails, SharedCart, SharedCartResponse, CartList, MultiCartResponse, UpdateUserCartMapping, UserInfo, UserCartMappingResponse, PlatformAddCartRequest, PlatformUpdateCartRequest, DeleteCartRequest, DeleteCartDetailResponse, CartItemCountResponse, Coupon, PageCoupon, GetCouponResponse, ApplyCouponRequest, GeoLocation, PlatformAddress, PlatformGetAddressesResponse, SaveAddressResponse, UpdateAddressResponse, DeleteAddressResponse, PlatformSelectCartAddressRequest, ShipmentArticle, PlatformShipmentResponse, PlatformCartShipmentsResponse, UpdateCartShipmentItem, UpdateCartShipmentRequest, PlatformCartMetaRequest, CartMetaResponse, CartMetaMissingResponse, StaffCheckout, CustomerDetails, Files, CartCheckoutCustomMeta, PlatformCartCheckoutDetailRequest, CheckCart, CartCheckoutResponse, CartDeliveryModesResponse, PickupStoreDetail, StoreDetailsResponse, UpdateCartPaymentRequest, CouponValidity, PaymentCouponValidate, PaymentMeta, PaymentMethod, PlatformCartCheckoutDetailV2Request, UpdateCartPaymentRequestV2 };
1795
+ export { CouponDateMeta, Ownership, CouponAuthor, State, PaymentAllowValue, PaymentModes, PriceRange, PostOrder, BulkBundleRestriction, UsesRemaining, UsesRestriction, Restrictions, Validation, CouponAction, CouponSchedule, Rule, DisplayMetaDict, DisplayMeta, Identifier, Validity, RuleDefinition, CouponAdd, Page, CouponsResponse, SuccessMessage, OperationErrorResponse, CouponUpdate, CouponPartialUpdate, DisplayMeta1, Ownership1, CompareObject, ItemCriteria, DiscountOffer, DiscountRule, PaymentAllowValue1, PromotionPaymentModes, UserRegistered, PostOrder1, UsesRemaining1, UsesRestriction1, Restrictions1, PromotionSchedule, PromotionAction, PromotionAuthor, Visibility, PromotionDateMeta, PromotionListItem, PromotionsResponse, PromotionAdd, PromotionUpdate, PromotionPartialUpdate, ActivePromosResponse, Charges, DeliveryCharges, CartMetaConfigUpdate, CartMetaConfigAdd, Article, PriceAdjustmentRestrictions, Collection, PriceAdjustmentUpdate, PriceAdjustment, PriceAdjustmentResponse, GetPriceAdjustmentResponse, PriceAdjustmentAdd, CartItem, OpenapiCartDetailsRequest, CouponBreakup, DisplayBreakup, LoyaltyPoints, RawBreakup, CartBreakup, ProductImage, Tags, BaseInfo, ActionQuery, ProductAction, CategoryInfo, CartProduct, BasePrice, ArticlePriceInfo, StoreInfo, ProductArticle, Ownership2, DiscountRulesApp, AppliedFreeArticles, BuyRules, AppliedPromotion, PromiseFormatted, PromiseISOFormat, PromiseTimestamp, ShipmentPromise, CouponDetails, ProductPrice, ProductPriceInfo, CartProductIdentifer, ProductAvailabilitySize, ProductAvailability, PromoMeta, CartProductInfo, OpenapiCartDetailsResponse, OpenApiErrorResponse, ShippingAddress, OpenApiCartServiceabilityRequest, OpenApiCartServiceabilityResponse, OpenApiFiles, CartItemMeta, MultiTenderPaymentMeta, MultiTenderPaymentMethod, OpenApiOrderItem, OpenApiPlatformCheckoutReq, OpenApiCheckoutResponse, AbandonedCart, AbandonedCartResponse, PaymentSelectionLock, CartCurrency, CartDetailCoupon, ChargesThreshold, DeliveryChargesConfig, CartCommonConfig, CartDetailResponse, AddProductCart, AddCartRequest, AddCartDetailResponse, UpdateProductCart, UpdateCartRequest, UpdateCartDetailResponse, OverrideCartItemPromo, OverrideCartItem, OverrideCheckoutReq, OverrideCheckoutResponse, GetShareCartLinkRequest, GetShareCartLinkResponse, SharedCartDetails, SharedCart, SharedCartResponse, CartList, MultiCartResponse, UpdateUserCartMapping, UserInfo, UserCartMappingResponse, PlatformAddCartRequest, PlatformUpdateCartRequest, DeleteCartRequest, DeleteCartDetailResponse, CartItemCountResponse, Coupon, PageCoupon, GetCouponResponse, ApplyCouponRequest, GeoLocation, PlatformAddress, PlatformGetAddressesResponse, SaveAddressResponse, UpdateAddressResponse, DeleteAddressResponse, PlatformSelectCartAddressRequest, ShipmentArticle, PlatformShipmentResponse, PlatformCartShipmentsResponse, UpdateCartShipmentItem, UpdateCartShipmentRequest, PlatformCartMetaRequest, CartMetaResponse, CartMetaMissingResponse, StaffCheckout, CustomerDetails, Files, CartCheckoutCustomMeta, PlatformCartCheckoutDetailRequest, CheckCart, CartCheckoutResponse, CartDeliveryModesResponse, PickupStoreDetail, StoreDetailsResponse, UpdateCartPaymentRequest, CouponValidity, PaymentCouponValidate, PaymentMeta, PaymentMethod, PlatformCartCheckoutDetailV2Request, UpdateCartPaymentRequestV2, PriceMinMax, ItemPriceDetails, FreeGiftItems, PromotionOffer, PromotionOffersResponse, PromotionPaymentOffer, PromotionPaymentOffersResponse };
1741
1796
  }
1742
1797
  /** @returns {CouponDateMeta} */
1743
1798
  declare function CouponDateMeta(): CouponDateMeta;
@@ -2528,6 +2583,11 @@ declare function PriceAdjustmentResponse(): PriceAdjustmentResponse;
2528
2583
  type PriceAdjustmentResponse = {
2529
2584
  data?: PriceAdjustment;
2530
2585
  };
2586
+ /** @returns {GetPriceAdjustmentResponse} */
2587
+ declare function GetPriceAdjustmentResponse(): GetPriceAdjustmentResponse;
2588
+ type GetPriceAdjustmentResponse = {
2589
+ data?: PriceAdjustment[];
2590
+ };
2531
2591
  /** @returns {PriceAdjustmentAdd} */
2532
2592
  declare function PriceAdjustmentAdd(): PriceAdjustmentAdd;
2533
2593
  type PriceAdjustmentAdd = {
@@ -2794,34 +2854,6 @@ type DiscountRulesApp = {
2794
2854
  */
2795
2855
  matched_buy_rules?: string[];
2796
2856
  };
2797
- /** @returns {FreeGiftItem} */
2798
- declare function FreeGiftItem(): FreeGiftItem;
2799
- type FreeGiftItem = {
2800
- /**
2801
- * - Item name
2802
- */
2803
- item_name?: string;
2804
- /**
2805
- * - Item price details
2806
- */
2807
- item_price_details?: any;
2808
- /**
2809
- * - Item brand name
2810
- */
2811
- item_brand_name?: string;
2812
- /**
2813
- * - Item images URL
2814
- */
2815
- item_images_url?: string[];
2816
- /**
2817
- * - Item id
2818
- */
2819
- item_id?: number;
2820
- /**
2821
- * - Item slug
2822
- */
2823
- item_slug?: string;
2824
- };
2825
2857
  /** @returns {AppliedFreeArticles} */
2826
2858
  declare function AppliedFreeArticles(): AppliedFreeArticles;
2827
2859
  type AppliedFreeArticles = {
@@ -2840,7 +2872,7 @@ type AppliedFreeArticles = {
2840
2872
  /**
2841
2873
  * - Free gift items details
2842
2874
  */
2843
- free_gift_item_details?: FreeGiftItem;
2875
+ free_gift_item_details?: FreeGiftItems;
2844
2876
  };
2845
2877
  /** @returns {BuyRules} */
2846
2878
  declare function BuyRules(): BuyRules;
@@ -3310,6 +3342,7 @@ type CartDetailResponse = {
3310
3342
  gstin?: string;
3311
3343
  applied_promo_details?: AppliedPromotion[];
3312
3344
  pan_no?: string;
3345
+ custom_cart_meta?: any;
3313
3346
  };
3314
3347
  /** @returns {AddProductCart} */
3315
3348
  declare function AddProductCart(): AddProductCart;
@@ -3503,6 +3536,7 @@ type SharedCart = {
3503
3536
  buy_now?: boolean;
3504
3537
  cart_id?: number;
3505
3538
  gstin?: string;
3539
+ custom_cart_meta?: any;
3506
3540
  };
3507
3541
  /** @returns {SharedCartResponse} */
3508
3542
  declare function SharedCartResponse(): SharedCartResponse;
@@ -3566,6 +3600,7 @@ type UserCartMappingResponse = {
3566
3600
  last_modified?: string;
3567
3601
  buy_now?: boolean;
3568
3602
  gstin?: string;
3603
+ custom_cart_meta?: any;
3569
3604
  applied_promo_details?: AppliedPromotion[];
3570
3605
  pan_no?: string;
3571
3606
  };
@@ -3772,6 +3807,7 @@ type PlatformCartShipmentsResponse = {
3772
3807
  applied_promo_details?: AppliedPromotion[];
3773
3808
  error?: boolean;
3774
3809
  pan_no?: string;
3810
+ custom_cart_meta?: any;
3775
3811
  };
3776
3812
  /** @returns {UpdateCartShipmentItem} */
3777
3813
  declare function UpdateCartShipmentItem(): UpdateCartShipmentItem;
@@ -3924,6 +3960,7 @@ type CheckCart = {
3924
3960
  gstin?: string;
3925
3961
  cod_available?: boolean;
3926
3962
  delivery_charges?: number;
3963
+ custom_cart_meta?: any;
3927
3964
  };
3928
3965
  /** @returns {CartCheckoutResponse} */
3929
3966
  declare function CartCheckoutResponse(): CartCheckoutResponse;
@@ -4072,3 +4109,140 @@ type UpdateCartPaymentRequestV2 = {
4072
4109
  id?: string;
4073
4110
  payment_methods?: PaymentMethod[];
4074
4111
  };
4112
+ /** @returns {PriceMinMax} */
4113
+ declare function PriceMinMax(): PriceMinMax;
4114
+ type PriceMinMax = {
4115
+ min?: number;
4116
+ max?: number;
4117
+ };
4118
+ /** @returns {ItemPriceDetails} */
4119
+ declare function ItemPriceDetails(): ItemPriceDetails;
4120
+ type ItemPriceDetails = {
4121
+ marked?: PriceMinMax;
4122
+ effective?: PriceMinMax;
4123
+ currency?: string;
4124
+ };
4125
+ /** @returns {FreeGiftItems} */
4126
+ declare function FreeGiftItems(): FreeGiftItems;
4127
+ type FreeGiftItems = {
4128
+ /**
4129
+ * - Item slug
4130
+ */
4131
+ item_slug?: string;
4132
+ /**
4133
+ * - Item name
4134
+ */
4135
+ item_name?: string;
4136
+ item_price_details?: ItemPriceDetails;
4137
+ /**
4138
+ * - Item brand name
4139
+ */
4140
+ item_brand_name?: string;
4141
+ /**
4142
+ * - Item id
4143
+ */
4144
+ item_id?: number;
4145
+ /**
4146
+ * - Item images URL
4147
+ */
4148
+ item_images_url?: string[];
4149
+ };
4150
+ /** @returns {PromotionOffer} */
4151
+ declare function PromotionOffer(): PromotionOffer;
4152
+ type PromotionOffer = {
4153
+ /**
4154
+ * - Promotion id
4155
+ */
4156
+ id?: string;
4157
+ /**
4158
+ * - Buy rules of promotions
4159
+ */
4160
+ buy_rules?: any;
4161
+ /**
4162
+ * - Offer title
4163
+ */
4164
+ offer_text?: string;
4165
+ /**
4166
+ * - Promotion type
4167
+ */
4168
+ promotion_type?: string;
4169
+ /**
4170
+ * - Name of the promotion
4171
+ */
4172
+ promotion_name?: string;
4173
+ /**
4174
+ * - Group of promotion belongs to
4175
+ */
4176
+ promotion_group?: string;
4177
+ /**
4178
+ * - Datetime ISOString for promotion end date
4179
+ */
4180
+ valid_till?: string;
4181
+ /**
4182
+ * - Discount rules of promotions
4183
+ */
4184
+ discount_rules?: any[];
4185
+ /**
4186
+ * - Details of free gift items
4187
+ */
4188
+ free_gift_items?: FreeGiftItems[];
4189
+ /**
4190
+ * - Offer details including T&C
4191
+ */
4192
+ description?: string;
4193
+ };
4194
+ /** @returns {PromotionOffersResponse} */
4195
+ declare function PromotionOffersResponse(): PromotionOffersResponse;
4196
+ type PromotionOffersResponse = {
4197
+ available_promotions?: PromotionOffer[];
4198
+ };
4199
+ /** @returns {PromotionPaymentOffer} */
4200
+ declare function PromotionPaymentOffer(): PromotionPaymentOffer;
4201
+ type PromotionPaymentOffer = {
4202
+ /**
4203
+ * - Application id
4204
+ */
4205
+ application_id?: string;
4206
+ /**
4207
+ * - Buy rules of promotions
4208
+ */
4209
+ buy_rules?: any[];
4210
+ /**
4211
+ * - Price on which promotion calculated
4212
+ */
4213
+ calculate_on?: string;
4214
+ /**
4215
+ * - Offer details including T&C
4216
+ */
4217
+ description?: string;
4218
+ /**
4219
+ * - Discount rules of promotions
4220
+ */
4221
+ discount_rules?: any[];
4222
+ /**
4223
+ * - Promotion id
4224
+ */
4225
+ id?: string;
4226
+ /**
4227
+ * - Offer title
4228
+ */
4229
+ offer_text?: string;
4230
+ /**
4231
+ * - Group of promotion belongs to
4232
+ */
4233
+ promotion_group?: string;
4234
+ /**
4235
+ * - Promotion type
4236
+ */
4237
+ promotion_type?: string;
4238
+ /**
4239
+ * - Name of the promotion
4240
+ */
4241
+ promotion_name?: string;
4242
+ };
4243
+ /** @returns {PromotionPaymentOffersResponse} */
4244
+ declare function PromotionPaymentOffersResponse(): PromotionPaymentOffersResponse;
4245
+ type PromotionPaymentOffersResponse = {
4246
+ success?: boolean;
4247
+ promotions?: PromotionPaymentOffer[];
4248
+ };
@@ -624,6 +624,11 @@ const Joi = require("joi");
624
624
  * @property {PriceAdjustment} [data]
625
625
  */
626
626
 
627
+ /**
628
+ * @typedef GetPriceAdjustmentResponse
629
+ * @property {PriceAdjustment[]} [data]
630
+ */
631
+
627
632
  /**
628
633
  * @typedef PriceAdjustmentAdd
629
634
  * @property {number} value
@@ -830,22 +835,12 @@ const Joi = require("joi");
830
835
  * @property {string[]} [matched_buy_rules] - Matched buy rules for promotion
831
836
  */
832
837
 
833
- /**
834
- * @typedef FreeGiftItem
835
- * @property {string} [item_name] - Item name
836
- * @property {Object} [item_price_details] - Item price details
837
- * @property {string} [item_brand_name] - Item brand name
838
- * @property {string[]} [item_images_url] - Item images URL
839
- * @property {number} [item_id] - Item id
840
- * @property {string} [item_slug] - Item slug
841
- */
842
-
843
838
  /**
844
839
  * @typedef AppliedFreeArticles
845
840
  * @property {string} [parent_item_identifier] - Parent item identifier for free article
846
841
  * @property {number} [quantity] - Free article quantity
847
842
  * @property {string} [article_id] - Free article id
848
- * @property {FreeGiftItem} [free_gift_item_details] - Free gift items details
843
+ * @property {FreeGiftItems} [free_gift_item_details] - Free gift items details
849
844
  */
850
845
 
851
846
  /**
@@ -1234,6 +1229,7 @@ const Joi = require("joi");
1234
1229
  * @property {string} [gstin]
1235
1230
  * @property {AppliedPromotion[]} [applied_promo_details]
1236
1231
  * @property {string} [pan_no]
1232
+ * @property {Object} [custom_cart_meta]
1237
1233
  */
1238
1234
 
1239
1235
  /**
@@ -1391,6 +1387,7 @@ const Joi = require("joi");
1391
1387
  * @property {boolean} [buy_now]
1392
1388
  * @property {number} [cart_id]
1393
1389
  * @property {string} [gstin]
1390
+ * @property {Object} [custom_cart_meta]
1394
1391
  */
1395
1392
 
1396
1393
  /**
@@ -1454,6 +1451,7 @@ const Joi = require("joi");
1454
1451
  * @property {string} [last_modified]
1455
1452
  * @property {boolean} [buy_now]
1456
1453
  * @property {string} [gstin]
1454
+ * @property {Object} [custom_cart_meta]
1457
1455
  * @property {AppliedPromotion[]} [applied_promo_details]
1458
1456
  * @property {string} [pan_no]
1459
1457
  */
@@ -1648,6 +1646,7 @@ const Joi = require("joi");
1648
1646
  * @property {AppliedPromotion[]} [applied_promo_details]
1649
1647
  * @property {boolean} [error]
1650
1648
  * @property {string} [pan_no]
1649
+ * @property {Object} [custom_cart_meta]
1651
1650
  */
1652
1651
 
1653
1652
  /**
@@ -1779,6 +1778,7 @@ const Joi = require("joi");
1779
1778
  * @property {string} [gstin]
1780
1779
  * @property {boolean} [cod_available]
1781
1780
  * @property {number} [delivery_charges]
1781
+ * @property {Object} [custom_cart_meta]
1782
1782
  */
1783
1783
 
1784
1784
  /**
@@ -1916,6 +1916,68 @@ const Joi = require("joi");
1916
1916
  * @property {PaymentMethod[]} [payment_methods]
1917
1917
  */
1918
1918
 
1919
+ /**
1920
+ * @typedef PriceMinMax
1921
+ * @property {number} [min]
1922
+ * @property {number} [max]
1923
+ */
1924
+
1925
+ /**
1926
+ * @typedef ItemPriceDetails
1927
+ * @property {PriceMinMax} [marked]
1928
+ * @property {PriceMinMax} [effective]
1929
+ * @property {string} [currency]
1930
+ */
1931
+
1932
+ /**
1933
+ * @typedef FreeGiftItems
1934
+ * @property {string} [item_slug] - Item slug
1935
+ * @property {string} [item_name] - Item name
1936
+ * @property {ItemPriceDetails} [item_price_details]
1937
+ * @property {string} [item_brand_name] - Item brand name
1938
+ * @property {number} [item_id] - Item id
1939
+ * @property {string[]} [item_images_url] - Item images URL
1940
+ */
1941
+
1942
+ /**
1943
+ * @typedef PromotionOffer
1944
+ * @property {string} [id] - Promotion id
1945
+ * @property {Object} [buy_rules] - Buy rules of promotions
1946
+ * @property {string} [offer_text] - Offer title
1947
+ * @property {string} [promotion_type] - Promotion type
1948
+ * @property {string} [promotion_name] - Name of the promotion
1949
+ * @property {string} [promotion_group] - Group of promotion belongs to
1950
+ * @property {string} [valid_till] - Datetime ISOString for promotion end date
1951
+ * @property {Object[]} [discount_rules] - Discount rules of promotions
1952
+ * @property {FreeGiftItems[]} [free_gift_items] - Details of free gift items
1953
+ * @property {string} [description] - Offer details including T&C
1954
+ */
1955
+
1956
+ /**
1957
+ * @typedef PromotionOffersResponse
1958
+ * @property {PromotionOffer[]} [available_promotions]
1959
+ */
1960
+
1961
+ /**
1962
+ * @typedef PromotionPaymentOffer
1963
+ * @property {string} [application_id] - Application id
1964
+ * @property {Object[]} [buy_rules] - Buy rules of promotions
1965
+ * @property {string} [calculate_on] - Price on which promotion calculated
1966
+ * @property {string} [description] - Offer details including T&C
1967
+ * @property {Object[]} [discount_rules] - Discount rules of promotions
1968
+ * @property {string} [id] - Promotion id
1969
+ * @property {string} [offer_text] - Offer title
1970
+ * @property {string} [promotion_group] - Group of promotion belongs to
1971
+ * @property {string} [promotion_type] - Promotion type
1972
+ * @property {string} [promotion_name] - Name of the promotion
1973
+ */
1974
+
1975
+ /**
1976
+ * @typedef PromotionPaymentOffersResponse
1977
+ * @property {boolean} [success]
1978
+ * @property {PromotionPaymentOffer[]} [promotions]
1979
+ */
1980
+
1919
1981
  class CartPlatformModel {
1920
1982
  /** @returns {CouponDateMeta} */
1921
1983
  static CouponDateMeta() {
@@ -2657,6 +2719,13 @@ class CartPlatformModel {
2657
2719
  });
2658
2720
  }
2659
2721
 
2722
+ /** @returns {GetPriceAdjustmentResponse} */
2723
+ static GetPriceAdjustmentResponse() {
2724
+ return Joi.object({
2725
+ data: Joi.array().items(CartPlatformModel.PriceAdjustment()),
2726
+ });
2727
+ }
2728
+
2660
2729
  /** @returns {PriceAdjustmentAdd} */
2661
2730
  static PriceAdjustmentAdd() {
2662
2731
  return Joi.object({
@@ -2899,25 +2968,13 @@ class CartPlatformModel {
2899
2968
  });
2900
2969
  }
2901
2970
 
2902
- /** @returns {FreeGiftItem} */
2903
- static FreeGiftItem() {
2904
- return Joi.object({
2905
- item_name: Joi.string().allow(""),
2906
- item_price_details: Joi.any(),
2907
- item_brand_name: Joi.string().allow(""),
2908
- item_images_url: Joi.array().items(Joi.string().allow("")),
2909
- item_id: Joi.number(),
2910
- item_slug: Joi.string().allow(""),
2911
- });
2912
- }
2913
-
2914
2971
  /** @returns {AppliedFreeArticles} */
2915
2972
  static AppliedFreeArticles() {
2916
2973
  return Joi.object({
2917
2974
  parent_item_identifier: Joi.string().allow(""),
2918
2975
  quantity: Joi.number(),
2919
2976
  article_id: Joi.string().allow(""),
2920
- free_gift_item_details: CartPlatformModel.FreeGiftItem(),
2977
+ free_gift_item_details: CartPlatformModel.FreeGiftItems(),
2921
2978
  });
2922
2979
  }
2923
2980
 
@@ -3386,6 +3443,7 @@ class CartPlatformModel {
3386
3443
  CartPlatformModel.AppliedPromotion()
3387
3444
  ),
3388
3445
  pan_no: Joi.string().allow(""),
3446
+ custom_cart_meta: Joi.any(),
3389
3447
  });
3390
3448
  }
3391
3449
 
@@ -3571,6 +3629,7 @@ class CartPlatformModel {
3571
3629
  buy_now: Joi.boolean(),
3572
3630
  cart_id: Joi.number(),
3573
3631
  gstin: Joi.string().allow(""),
3632
+ custom_cart_meta: Joi.any(),
3574
3633
  });
3575
3634
  }
3576
3635
 
@@ -3646,6 +3705,7 @@ class CartPlatformModel {
3646
3705
  last_modified: Joi.string().allow(""),
3647
3706
  buy_now: Joi.boolean(),
3648
3707
  gstin: Joi.string().allow(""),
3708
+ custom_cart_meta: Joi.any(),
3649
3709
  applied_promo_details: Joi.array().items(
3650
3710
  CartPlatformModel.AppliedPromotion()
3651
3711
  ),
@@ -3883,6 +3943,7 @@ class CartPlatformModel {
3883
3943
  ),
3884
3944
  error: Joi.boolean(),
3885
3945
  pan_no: Joi.string().allow(""),
3946
+ custom_cart_meta: Joi.any(),
3886
3947
  });
3887
3948
  }
3888
3949
 
@@ -4039,6 +4100,7 @@ class CartPlatformModel {
4039
4100
  gstin: Joi.string().allow(""),
4040
4101
  cod_available: Joi.boolean(),
4041
4102
  delivery_charges: Joi.number(),
4103
+ custom_cart_meta: Joi.any(),
4042
4104
  });
4043
4105
  }
4044
4106
 
@@ -4200,5 +4262,83 @@ class CartPlatformModel {
4200
4262
  payment_methods: Joi.array().items(CartPlatformModel.PaymentMethod()),
4201
4263
  });
4202
4264
  }
4265
+
4266
+ /** @returns {PriceMinMax} */
4267
+ static PriceMinMax() {
4268
+ return Joi.object({
4269
+ min: Joi.number(),
4270
+ max: Joi.number(),
4271
+ });
4272
+ }
4273
+
4274
+ /** @returns {ItemPriceDetails} */
4275
+ static ItemPriceDetails() {
4276
+ return Joi.object({
4277
+ marked: CartPlatformModel.PriceMinMax(),
4278
+ effective: CartPlatformModel.PriceMinMax(),
4279
+ currency: Joi.string().allow(""),
4280
+ });
4281
+ }
4282
+
4283
+ /** @returns {FreeGiftItems} */
4284
+ static FreeGiftItems() {
4285
+ return Joi.object({
4286
+ item_slug: Joi.string().allow(""),
4287
+ item_name: Joi.string().allow(""),
4288
+ item_price_details: CartPlatformModel.ItemPriceDetails(),
4289
+ item_brand_name: Joi.string().allow(""),
4290
+ item_id: Joi.number(),
4291
+ item_images_url: Joi.array().items(Joi.string().allow("")),
4292
+ });
4293
+ }
4294
+
4295
+ /** @returns {PromotionOffer} */
4296
+ static PromotionOffer() {
4297
+ return Joi.object({
4298
+ id: Joi.string().allow(""),
4299
+ buy_rules: Joi.any(),
4300
+ offer_text: Joi.string().allow(""),
4301
+ promotion_type: Joi.string().allow(""),
4302
+ promotion_name: Joi.string().allow(""),
4303
+ promotion_group: Joi.string().allow(""),
4304
+ valid_till: Joi.string().allow(""),
4305
+ discount_rules: Joi.array().items(Joi.any()),
4306
+ free_gift_items: Joi.array().items(CartPlatformModel.FreeGiftItems()),
4307
+ description: Joi.string().allow(""),
4308
+ });
4309
+ }
4310
+
4311
+ /** @returns {PromotionOffersResponse} */
4312
+ static PromotionOffersResponse() {
4313
+ return Joi.object({
4314
+ available_promotions: Joi.array().items(
4315
+ CartPlatformModel.PromotionOffer()
4316
+ ),
4317
+ });
4318
+ }
4319
+
4320
+ /** @returns {PromotionPaymentOffer} */
4321
+ static PromotionPaymentOffer() {
4322
+ return Joi.object({
4323
+ application_id: Joi.string().allow(""),
4324
+ buy_rules: Joi.array().items(Joi.any()),
4325
+ calculate_on: Joi.string().allow(""),
4326
+ description: Joi.string().allow(""),
4327
+ discount_rules: Joi.array().items(Joi.any()),
4328
+ id: Joi.string().allow(""),
4329
+ offer_text: Joi.string().allow(""),
4330
+ promotion_group: Joi.string().allow(""),
4331
+ promotion_type: Joi.string().allow(""),
4332
+ promotion_name: Joi.string().allow(""),
4333
+ });
4334
+ }
4335
+
4336
+ /** @returns {PromotionPaymentOffersResponse} */
4337
+ static PromotionPaymentOffersResponse() {
4338
+ return Joi.object({
4339
+ success: Joi.boolean(),
4340
+ promotions: Joi.array().items(CartPlatformModel.PromotionPaymentOffer()),
4341
+ });
4342
+ }
4203
4343
  }
4204
4344
  module.exports = CartPlatformModel;
@@ -305,7 +305,7 @@ declare class Catalog {
305
305
  * @summary: List sales channel inventory
306
306
  * @description: Retrieve inventory data related to the sales channel. this can be used to get the Inventory status of products with the filters of timestamp, store_ids, brand_ids, item_id, Items, Pagination. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAppInventory/).
307
307
  */
308
- getAppInventory({ itemIds, storeIds, brandIds, sellerIdentifiers, timestamp, pageSize, pageId, requestHeaders, }?: CatalogPlatformApplicationValidator.GetAppInventoryParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.InventoryStockResponse>;
308
+ getAppInventory({ itemIds, storeIds, brandIds, sellerIdentifiers, timestamp, pageSize, pageId, qtyGt, qtyLt, qtyType, fromDate, toDate, requestHeaders, }?: CatalogPlatformApplicationValidator.GetAppInventoryParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.InventoryStockResponse>;
309
309
  /**
310
310
  * @param {CatalogPlatformApplicationValidator.GetAppLocationsParam} arg - Arg object
311
311
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`