@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.
- package/README.md +1 -1
- package/package.json +2 -2
- package/sdk/application/ApplicationClient.d.ts +2 -0
- package/sdk/application/ApplicationClient.js +2 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +16 -3
- package/sdk/application/Cart/CartApplicationClient.js +118 -13
- package/sdk/application/Cart/CartApplicationModel.d.ts +121 -45
- package/sdk/application/Cart/CartApplicationModel.js +98 -26
- package/sdk/application/Cart/CartApplicationValidator.d.ts +45 -1
- package/sdk/application/Cart/CartApplicationValidator.js +26 -0
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +10 -2
- package/sdk/application/Catalog/CatalogApplicationModel.js +10 -2
- package/sdk/application/Content/ContentApplicationClient.d.ts +1 -1
- package/sdk/application/Content/ContentApplicationClient.js +5 -3
- package/sdk/application/Content/ContentApplicationModel.d.ts +7 -18
- package/sdk/application/Content/ContentApplicationModel.js +6 -20
- package/sdk/application/Content/ContentApplicationValidator.d.ts +10 -0
- package/sdk/application/Content/ContentApplicationValidator.js +4 -0
- package/sdk/application/Lead/LeadApplicationClient.d.ts +0 -27
- package/sdk/application/Lead/LeadApplicationClient.js +0 -167
- package/sdk/application/Lead/LeadApplicationModel.d.ts +1 -146
- package/sdk/application/Lead/LeadApplicationModel.js +0 -126
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +1 -25
- package/sdk/application/Lead/LeadApplicationValidator.js +0 -24
- package/sdk/application/Logistic/LogisticApplicationClient.js +1 -1
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +2 -0
- package/sdk/application/Logistic/LogisticApplicationModel.js +2 -0
- package/sdk/application/Order/OrderApplicationModel.d.ts +72 -9
- package/sdk/application/Order/OrderApplicationModel.js +45 -7
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +27 -20
- package/sdk/application/Payment/PaymentApplicationModel.js +23 -20
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +2 -0
- package/sdk/application/Theme/ThemeApplicationModel.js +2 -0
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +22 -0
- package/sdk/application/Webhook/WebhookApplicationClient.js +115 -0
- package/sdk/application/Webhook/WebhookApplicationModel.d.ts +37 -0
- package/sdk/application/Webhook/WebhookApplicationModel.js +46 -0
- package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +16 -0
- package/sdk/application/Webhook/WebhookApplicationValidator.js +19 -0
- package/sdk/application/index.d.ts +1 -0
- package/sdk/application/index.js +2 -0
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +0 -23
- package/sdk/partner/Lead/LeadPartnerClient.js +0 -157
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +12 -581
- package/sdk/partner/Lead/LeadPartnerModel.js +14 -403
- package/sdk/partner/Lead/LeadPartnerValidator.d.ts +0 -2
- package/sdk/partner/Lead/LeadPartnerValidator.js +0 -12
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +1 -1
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +4 -4
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +22 -0
- package/sdk/partner/Theme/ThemePartnerClient.js +162 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +119 -1
- package/sdk/partner/Theme/ThemePartnerModel.js +142 -0
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +2 -0
- package/sdk/partner/Theme/ThemePartnerValidator.js +14 -0
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +2 -2
- package/sdk/partner/Webhook/WebhookPartnerClient.js +2 -2
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +23 -19
- package/sdk/partner/Webhook/WebhookPartnerModel.js +19 -22
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +43 -0
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +257 -0
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +39 -0
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +45 -0
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +60 -0
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +57 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +304 -43
- package/sdk/platform/Billing/BillingPlatformClient.js +2218 -118
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +1330 -282
- package/sdk/platform/Billing/BillingPlatformModel.js +1808 -590
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +324 -16
- package/sdk/platform/Billing/BillingPlatformValidator.js +340 -12
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +36 -3
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +276 -3
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +93 -1
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +60 -0
- package/sdk/platform/Cart/CartPlatformModel.d.ts +216 -40
- package/sdk/platform/Cart/CartPlatformModel.js +166 -24
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +11 -7
- package/sdk/platform/Catalog/CatalogPlatformClient.js +37 -14
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +122 -17
- package/sdk/platform/Catalog/CatalogPlatformModel.js +141 -15
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +40 -7
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +19 -5
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +18 -1
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +25 -0
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +10 -0
- package/sdk/platform/Content/ContentPlatformModel.d.ts +8 -4
- package/sdk/platform/Content/ContentPlatformModel.js +8 -4
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +49 -28
- package/sdk/platform/Finance/FinancePlatformClient.js +181 -28
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +350 -127
- package/sdk/platform/Finance/FinancePlatformModel.js +378 -108
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +56 -43
- package/sdk/platform/Finance/FinancePlatformValidator.js +61 -42
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +0 -47
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +0 -321
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +1 -46
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +0 -48
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -25
- package/sdk/platform/Lead/LeadPlatformClient.js +2 -167
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +82 -204
- package/sdk/platform/Lead/LeadPlatformModel.js +98 -178
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +1 -25
- package/sdk/platform/Lead/LeadPlatformValidator.js +0 -24
- package/sdk/platform/Order/OrderPlatformClient.d.ts +11 -1
- package/sdk/platform/Order/OrderPlatformClient.js +82 -5
- package/sdk/platform/Order/OrderPlatformModel.d.ts +270 -29
- package/sdk/platform/Order/OrderPlatformModel.js +139 -28
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +58 -17
- package/sdk/platform/Order/OrderPlatformValidator.js +28 -16
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +14 -2
- package/sdk/platform/Payment/PaymentPlatformModel.js +7 -2
- package/sdk/platform/PlatformApplicationClient.d.ts +2 -0
- package/sdk/platform/PlatformApplicationClient.js +4 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +4 -4
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +12 -0
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +82 -0
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +18 -1
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +14 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +67 -1
- package/sdk/platform/Theme/ThemePlatformModel.js +78 -0
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +24 -40
- package/sdk/platform/Webhook/WebhookPlatformClient.js +78 -221
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +168 -167
- package/sdk/platform/Webhook/WebhookPlatformModel.js +180 -178
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +23 -31
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +28 -42
- package/sdk/platform/index.d.ts +1 -0
- package/sdk/platform/index.js +2 -0
- package/sdk/public/Billing/BillingPublicClient.d.ts +24 -2
- package/sdk/public/Billing/BillingPublicClient.js +156 -3
- package/sdk/public/Billing/BillingPublicModel.d.ts +368 -26
- package/sdk/public/Billing/BillingPublicModel.js +317 -18
- package/sdk/public/Billing/BillingPublicValidator.d.ts +19 -3
- package/sdk/public/Billing/BillingPublicValidator.js +22 -3
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +2 -2
- package/sdk/public/Webhook/WebhookPublicClient.js +2 -2
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +24 -22
- package/sdk/public/Webhook/WebhookPublicModel.js +24 -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 {
|
|
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
|
|
@@ -1204,6 +1200,7 @@ export = CartPlatformModel;
|
|
|
1204
1200
|
* @property {string} currency_code
|
|
1205
1201
|
* @property {string} aggregator
|
|
1206
1202
|
* @property {string} order_type
|
|
1203
|
+
* @property {string} [callback_url]
|
|
1207
1204
|
* @property {OverrideCartItem[]} cart_items
|
|
1208
1205
|
* @property {number} [ordering_store]
|
|
1209
1206
|
* @property {Object} [shipping_address]
|
|
@@ -1256,6 +1253,7 @@ export = CartPlatformModel;
|
|
|
1256
1253
|
* @property {boolean} [buy_now]
|
|
1257
1254
|
* @property {number} [cart_id]
|
|
1258
1255
|
* @property {string} [gstin]
|
|
1256
|
+
* @property {Object} [custom_cart_meta]
|
|
1259
1257
|
*/
|
|
1260
1258
|
/**
|
|
1261
1259
|
* @typedef SharedCartResponse
|
|
@@ -1313,6 +1311,7 @@ export = CartPlatformModel;
|
|
|
1313
1311
|
* @property {string} [last_modified]
|
|
1314
1312
|
* @property {boolean} [buy_now]
|
|
1315
1313
|
* @property {string} [gstin]
|
|
1314
|
+
* @property {Object} [custom_cart_meta]
|
|
1316
1315
|
* @property {AppliedPromotion[]} [applied_promo_details]
|
|
1317
1316
|
* @property {string} [pan_no]
|
|
1318
1317
|
*/
|
|
@@ -1488,6 +1487,7 @@ export = CartPlatformModel;
|
|
|
1488
1487
|
* @property {AppliedPromotion[]} [applied_promo_details]
|
|
1489
1488
|
* @property {boolean} [error]
|
|
1490
1489
|
* @property {string} [pan_no]
|
|
1490
|
+
* @property {Object} [custom_cart_meta]
|
|
1491
1491
|
*/
|
|
1492
1492
|
/**
|
|
1493
1493
|
* @typedef UpdateCartShipmentItem
|
|
@@ -1608,6 +1608,7 @@ export = CartPlatformModel;
|
|
|
1608
1608
|
* @property {string} [gstin]
|
|
1609
1609
|
* @property {boolean} [cod_available]
|
|
1610
1610
|
* @property {number} [delivery_charges]
|
|
1611
|
+
* @property {Object} [custom_cart_meta]
|
|
1611
1612
|
*/
|
|
1612
1613
|
/**
|
|
1613
1614
|
* @typedef CartCheckoutResponse
|
|
@@ -1733,10 +1734,65 @@ export = CartPlatformModel;
|
|
|
1733
1734
|
* @property {string} [id]
|
|
1734
1735
|
* @property {PaymentMethod[]} [payment_methods]
|
|
1735
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
|
+
*/
|
|
1736
1792
|
declare class CartPlatformModel {
|
|
1737
1793
|
}
|
|
1738
1794
|
declare namespace CartPlatformModel {
|
|
1739
|
-
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,
|
|
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 };
|
|
1740
1796
|
}
|
|
1741
1797
|
/** @returns {CouponDateMeta} */
|
|
1742
1798
|
declare function CouponDateMeta(): CouponDateMeta;
|
|
@@ -2527,6 +2583,11 @@ declare function PriceAdjustmentResponse(): PriceAdjustmentResponse;
|
|
|
2527
2583
|
type PriceAdjustmentResponse = {
|
|
2528
2584
|
data?: PriceAdjustment;
|
|
2529
2585
|
};
|
|
2586
|
+
/** @returns {GetPriceAdjustmentResponse} */
|
|
2587
|
+
declare function GetPriceAdjustmentResponse(): GetPriceAdjustmentResponse;
|
|
2588
|
+
type GetPriceAdjustmentResponse = {
|
|
2589
|
+
data?: PriceAdjustment[];
|
|
2590
|
+
};
|
|
2530
2591
|
/** @returns {PriceAdjustmentAdd} */
|
|
2531
2592
|
declare function PriceAdjustmentAdd(): PriceAdjustmentAdd;
|
|
2532
2593
|
type PriceAdjustmentAdd = {
|
|
@@ -2793,34 +2854,6 @@ type DiscountRulesApp = {
|
|
|
2793
2854
|
*/
|
|
2794
2855
|
matched_buy_rules?: string[];
|
|
2795
2856
|
};
|
|
2796
|
-
/** @returns {FreeGiftItem} */
|
|
2797
|
-
declare function FreeGiftItem(): FreeGiftItem;
|
|
2798
|
-
type FreeGiftItem = {
|
|
2799
|
-
/**
|
|
2800
|
-
* - Item name
|
|
2801
|
-
*/
|
|
2802
|
-
item_name?: string;
|
|
2803
|
-
/**
|
|
2804
|
-
* - Item price details
|
|
2805
|
-
*/
|
|
2806
|
-
item_price_details?: any;
|
|
2807
|
-
/**
|
|
2808
|
-
* - Item brand name
|
|
2809
|
-
*/
|
|
2810
|
-
item_brand_name?: string;
|
|
2811
|
-
/**
|
|
2812
|
-
* - Item images URL
|
|
2813
|
-
*/
|
|
2814
|
-
item_images_url?: string[];
|
|
2815
|
-
/**
|
|
2816
|
-
* - Item id
|
|
2817
|
-
*/
|
|
2818
|
-
item_id?: number;
|
|
2819
|
-
/**
|
|
2820
|
-
* - Item slug
|
|
2821
|
-
*/
|
|
2822
|
-
item_slug?: string;
|
|
2823
|
-
};
|
|
2824
2857
|
/** @returns {AppliedFreeArticles} */
|
|
2825
2858
|
declare function AppliedFreeArticles(): AppliedFreeArticles;
|
|
2826
2859
|
type AppliedFreeArticles = {
|
|
@@ -2839,7 +2872,7 @@ type AppliedFreeArticles = {
|
|
|
2839
2872
|
/**
|
|
2840
2873
|
* - Free gift items details
|
|
2841
2874
|
*/
|
|
2842
|
-
free_gift_item_details?:
|
|
2875
|
+
free_gift_item_details?: FreeGiftItems;
|
|
2843
2876
|
};
|
|
2844
2877
|
/** @returns {BuyRules} */
|
|
2845
2878
|
declare function BuyRules(): BuyRules;
|
|
@@ -3309,6 +3342,7 @@ type CartDetailResponse = {
|
|
|
3309
3342
|
gstin?: string;
|
|
3310
3343
|
applied_promo_details?: AppliedPromotion[];
|
|
3311
3344
|
pan_no?: string;
|
|
3345
|
+
custom_cart_meta?: any;
|
|
3312
3346
|
};
|
|
3313
3347
|
/** @returns {AddProductCart} */
|
|
3314
3348
|
declare function AddProductCart(): AddProductCart;
|
|
@@ -3420,6 +3454,7 @@ type OverrideCheckoutReq = {
|
|
|
3420
3454
|
currency_code: string;
|
|
3421
3455
|
aggregator: string;
|
|
3422
3456
|
order_type: string;
|
|
3457
|
+
callback_url?: string;
|
|
3423
3458
|
cart_items: OverrideCartItem[];
|
|
3424
3459
|
ordering_store?: number;
|
|
3425
3460
|
shipping_address?: any;
|
|
@@ -3501,6 +3536,7 @@ type SharedCart = {
|
|
|
3501
3536
|
buy_now?: boolean;
|
|
3502
3537
|
cart_id?: number;
|
|
3503
3538
|
gstin?: string;
|
|
3539
|
+
custom_cart_meta?: any;
|
|
3504
3540
|
};
|
|
3505
3541
|
/** @returns {SharedCartResponse} */
|
|
3506
3542
|
declare function SharedCartResponse(): SharedCartResponse;
|
|
@@ -3564,6 +3600,7 @@ type UserCartMappingResponse = {
|
|
|
3564
3600
|
last_modified?: string;
|
|
3565
3601
|
buy_now?: boolean;
|
|
3566
3602
|
gstin?: string;
|
|
3603
|
+
custom_cart_meta?: any;
|
|
3567
3604
|
applied_promo_details?: AppliedPromotion[];
|
|
3568
3605
|
pan_no?: string;
|
|
3569
3606
|
};
|
|
@@ -3770,6 +3807,7 @@ type PlatformCartShipmentsResponse = {
|
|
|
3770
3807
|
applied_promo_details?: AppliedPromotion[];
|
|
3771
3808
|
error?: boolean;
|
|
3772
3809
|
pan_no?: string;
|
|
3810
|
+
custom_cart_meta?: any;
|
|
3773
3811
|
};
|
|
3774
3812
|
/** @returns {UpdateCartShipmentItem} */
|
|
3775
3813
|
declare function UpdateCartShipmentItem(): UpdateCartShipmentItem;
|
|
@@ -3922,6 +3960,7 @@ type CheckCart = {
|
|
|
3922
3960
|
gstin?: string;
|
|
3923
3961
|
cod_available?: boolean;
|
|
3924
3962
|
delivery_charges?: number;
|
|
3963
|
+
custom_cart_meta?: any;
|
|
3925
3964
|
};
|
|
3926
3965
|
/** @returns {CartCheckoutResponse} */
|
|
3927
3966
|
declare function CartCheckoutResponse(): CartCheckoutResponse;
|
|
@@ -4070,3 +4109,140 @@ type UpdateCartPaymentRequestV2 = {
|
|
|
4070
4109
|
id?: string;
|
|
4071
4110
|
payment_methods?: PaymentMethod[];
|
|
4072
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
|
+
};
|