@gofynd/fdk-client-javascript 1.4.15-beta.1 → 1.4.15-beta.11
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 +2 -2
- package/application.d.ts +1 -2
- package/application.js +2 -3
- package/index.d.ts +1 -2
- package/index.js +7 -1
- package/package.json +3 -4
- package/sdk/application/ApplicationClient.js +0 -18
- package/sdk/application/Cart/CartApplicationClient.d.ts +55 -90
- package/sdk/application/Cart/CartApplicationClient.js +60 -1185
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +90 -142
- package/sdk/application/Catalog/CatalogApplicationClient.js +187 -1293
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -8
- package/sdk/application/Common/CommonApplicationClient.js +5 -89
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +6 -19
- package/sdk/application/Communication/CommunicationApplicationClient.js +6 -145
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +32 -73
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +31 -718
- package/sdk/application/Content/ContentApplicationClient.d.ts +46 -78
- package/sdk/application/Content/ContentApplicationClient.js +77 -914
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -11
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +19 -125
- package/sdk/application/Lead/LeadApplicationClient.d.ts +10 -18
- package/sdk/application/Lead/LeadApplicationClient.js +32 -202
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +22 -39
- package/sdk/application/Logistic/LogisticApplicationClient.js +50 -478
- package/sdk/application/Order/OrderApplicationClient.d.ts +22 -42
- package/sdk/application/Order/OrderApplicationClient.js +86 -472
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +92 -212
- package/sdk/application/Payment/PaymentApplicationClient.js +57 -2102
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +14 -28
- package/sdk/application/Rewards/RewardsApplicationClient.js +16 -305
- package/sdk/application/Share/ShareApplicationClient.d.ts +14 -24
- package/sdk/application/Share/ShareApplicationClient.js +34 -294
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -14
- package/sdk/application/Theme/ThemeApplicationClient.js +28 -162
- package/sdk/application/User/UserApplicationClient.d.ts +85 -136
- package/sdk/application/User/UserApplicationClient.js +45 -1815
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +2 -5
- package/sdk/application/Webhook/WebhookApplicationClient.js +4 -47
- package/sdk/application/index.d.ts +0 -18
- package/sdk/application/index.js +0 -33
- package/sdk/common/Utility.d.ts +1 -1
- package/sdk/common/Utility.js +10 -7
- package/sdk/common/Validator.d.ts +1 -0
- package/sdk/common/Validator.js +20 -0
- package/sdk/common/utils.d.ts +0 -1
- package/sdk/common/utils.js +0 -14
- package/sdk/partner/OAuthClient.js +1 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +3 -40
- package/sdk/partner/Theme/ThemePartnerModel.js +2 -24
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +39 -1
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +247 -1
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +33 -1
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +37 -0
- package/sdk/platform/Cart/CartPlatformModel.d.ts +193 -1
- package/sdk/platform/Cart/CartPlatformModel.js +132 -0
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +0 -7
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1 -4
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +14 -0
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +6 -0
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +0 -10
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +0 -92
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -28
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +0 -18
- package/sdk/platform/Order/OrderPlatformClient.d.ts +10 -0
- package/sdk/platform/Order/OrderPlatformClient.js +99 -0
- package/sdk/platform/Order/OrderPlatformModel.d.ts +7 -0
- package/sdk/platform/Order/OrderPlatformModel.js +3 -0
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +33 -1
- package/sdk/platform/Order/OrderPlatformValidator.js +20 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +1 -1
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +4 -4
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +56 -19
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +42 -18
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +3 -3
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +2 -2
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +3 -40
- package/sdk/platform/Theme/ThemePlatformModel.js +2 -24
- package/sdk/public/Configuration/ConfigurationPublicClient.js +5 -2
- package/sdk/public/Content/ContentPublicClient.d.ts +1 -1
- package/sdk/public/Content/ContentPublicClient.js +14 -2
- package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
- package/sdk/public/Partner/PartnerPublicClient.js +14 -2
- package/sdk/public/Webhook/WebhookPublicClient.js +5 -2
- package/sdk/application/Cart/CartApplicationModel.d.ts +0 -3994
- package/sdk/application/Cart/CartApplicationModel.js +0 -2497
- package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -769
- package/sdk/application/Cart/CartApplicationValidator.js +0 -530
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +0 -3857
- package/sdk/application/Catalog/CatalogApplicationModel.js +0 -2629
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -791
- package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -551
- package/sdk/application/Common/CommonApplicationModel.d.ts +0 -449
- package/sdk/application/Common/CommonApplicationModel.js +0 -308
- package/sdk/application/Common/CommonApplicationValidator.d.ts +0 -46
- package/sdk/application/Common/CommonApplicationValidator.js +0 -38
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +0 -293
- package/sdk/application/Communication/CommunicationApplicationModel.js +0 -201
- package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +0 -29
- package/sdk/application/Communication/CommunicationApplicationValidator.js +0 -38
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +0 -2556
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -1887
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +0 -179
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +0 -176
- package/sdk/application/Content/ContentApplicationModel.d.ts +0 -2133
- package/sdk/application/Content/ContentApplicationModel.js +0 -1589
- package/sdk/application/Content/ContentApplicationValidator.d.ts +0 -284
- package/sdk/application/Content/ContentApplicationValidator.js +0 -264
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +0 -272
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -190
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +0 -56
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +0 -53
- package/sdk/application/Lead/LeadApplicationModel.d.ts +0 -590
- package/sdk/application/Lead/LeadApplicationModel.js +0 -480
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +0 -68
- package/sdk/application/Lead/LeadApplicationValidator.js +0 -71
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +0 -1675
- package/sdk/application/Logistic/LogisticApplicationModel.js +0 -1121
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +0 -254
- package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -190
- package/sdk/application/Order/OrderApplicationModel.d.ts +0 -2296
- package/sdk/application/Order/OrderApplicationModel.js +0 -1471
- package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -265
- package/sdk/application/Order/OrderApplicationValidator.js +0 -197
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +0 -4058
- package/sdk/application/Payment/PaymentApplicationModel.js +0 -2630
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +0 -576
- package/sdk/application/Payment/PaymentApplicationValidator.js +0 -594
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +0 -365
- package/sdk/application/Rewards/RewardsApplicationModel.js +0 -396
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +0 -73
- package/sdk/application/Rewards/RewardsApplicationValidator.js +0 -84
- package/sdk/application/Share/ShareApplicationModel.d.ts +0 -339
- package/sdk/application/Share/ShareApplicationModel.js +0 -234
- package/sdk/application/Share/ShareApplicationValidator.d.ts +0 -90
- package/sdk/application/Share/ShareApplicationValidator.js +0 -91
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +0 -1713
- package/sdk/application/Theme/ThemeApplicationModel.js +0 -1426
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -66
- package/sdk/application/Theme/ThemeApplicationValidator.js +0 -58
- package/sdk/application/User/UserApplicationModel.d.ts +0 -1943
- package/sdk/application/User/UserApplicationModel.js +0 -1382
- package/sdk/application/User/UserApplicationValidator.d.ts +0 -560
- package/sdk/application/User/UserApplicationValidator.js +0 -573
- package/sdk/application/Webhook/WebhookApplicationModel.d.ts +0 -52
- package/sdk/application/Webhook/WebhookApplicationModel.js +0 -46
- package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +0 -16
- package/sdk/application/Webhook/WebhookApplicationValidator.js +0 -19
- package/sdk/common/Clickstream.d.ts +0 -1
- package/sdk/common/Clickstream.js +0 -464
|
@@ -533,9 +533,29 @@ export = CartPlatformModel;
|
|
|
533
533
|
* @property {boolean} is_authenticated - Flag indicating whether the user is
|
|
534
534
|
* authenticated
|
|
535
535
|
* @property {Article[]} article_ids - The list of article object in the price adjustment
|
|
536
|
+
* @property {boolean} [auto_remove] - This field if set true will remove mop
|
|
537
|
+
* type price adjustment.
|
|
536
538
|
* @property {Object} [meta]
|
|
537
539
|
* @property {string} cart_id - The ID of the cart
|
|
538
540
|
*/
|
|
541
|
+
/**
|
|
542
|
+
* @typedef BulkPriceAdjustmentUpdate
|
|
543
|
+
* @property {string} [modified_by] - The entity that modified the field
|
|
544
|
+
* @property {number} value
|
|
545
|
+
* @property {string} message - The message associated with the price adjustment
|
|
546
|
+
* @property {string} [apply_expiry] - The date and time when the expiry should be applied
|
|
547
|
+
* @property {PriceAdjustmentRestrictions} [restrictions] - Restrictions applied
|
|
548
|
+
* to this particular item or product, including whether or not cancellation
|
|
549
|
+
* and return are allowed.
|
|
550
|
+
* @property {boolean} article_level_distribution - Flag indicating whether the
|
|
551
|
+
* distribution should is done at the article level
|
|
552
|
+
* @property {Collection} collection
|
|
553
|
+
* @property {string} type - Type of price adjusment
|
|
554
|
+
* @property {boolean} [allowed_refund] - Flag indicating whether refunds are
|
|
555
|
+
* allowed (default: False)
|
|
556
|
+
* @property {Article[]} article_ids - The list of article object in the price adjustment
|
|
557
|
+
* @property {Object} [meta]
|
|
558
|
+
*/
|
|
539
559
|
/**
|
|
540
560
|
* @typedef PriceAdjustment
|
|
541
561
|
* @property {number} value
|
|
@@ -554,6 +574,8 @@ export = CartPlatformModel;
|
|
|
554
574
|
* @property {boolean} is_authenticated - Flag indicating whether the user is
|
|
555
575
|
* authenticated
|
|
556
576
|
* @property {Article[]} article_ids - The list of article object in the price adjustment
|
|
577
|
+
* @property {boolean} [auto_remove] - This field if set true will remove mop
|
|
578
|
+
* type price adjustment.
|
|
557
579
|
* @property {Object} [meta]
|
|
558
580
|
* @property {string} cart_id - The ID of the cart
|
|
559
581
|
*/
|
|
@@ -585,6 +607,26 @@ export = CartPlatformModel;
|
|
|
585
607
|
* @property {Article[]} article_ids - The list of article object in the price adjustment
|
|
586
608
|
* @property {Object} [meta]
|
|
587
609
|
* @property {string} cart_id - The ID of the cart
|
|
610
|
+
* @property {boolean} [auto_remove] - This field if set true will remove mop
|
|
611
|
+
* type price adjustment.
|
|
612
|
+
*/
|
|
613
|
+
/**
|
|
614
|
+
* @typedef BulkPriceAdjustmentAdd
|
|
615
|
+
* @property {number} value
|
|
616
|
+
* @property {string} message - The message associated with the price adjustment
|
|
617
|
+
* @property {string} [apply_expiry] - The date and time when the expiry should be applied
|
|
618
|
+
* @property {PriceAdjustmentRestrictions} [restrictions] - This field accepts
|
|
619
|
+
* the restrictions applied to this particular item or service, including
|
|
620
|
+
* whether or not cancellation and return are allowed, etc
|
|
621
|
+
* @property {string} [created_by] - The entity that created the field
|
|
622
|
+
* @property {boolean} article_level_distribution - Flag indicating whether the
|
|
623
|
+
* distribution should is done at the article level
|
|
624
|
+
* @property {Collection} collection
|
|
625
|
+
* @property {string} type - Type of price adjusment
|
|
626
|
+
* @property {boolean} [allowed_refund] - Flag indicating whether refunds are
|
|
627
|
+
* allowed (default: False)
|
|
628
|
+
* @property {Article[]} article_ids - The list of article object in the price adjustment
|
|
629
|
+
* @property {Object} [meta]
|
|
588
630
|
*/
|
|
589
631
|
/**
|
|
590
632
|
* @typedef CartItem
|
|
@@ -775,6 +817,8 @@ export = CartPlatformModel;
|
|
|
775
817
|
* @property {BuyRules[]} [buy_rules] - Buy rules for promotions
|
|
776
818
|
* @property {string} [offer_text] - Offer text of current promotion
|
|
777
819
|
* @property {number} [amount] - Per unit discount amount applied with current promotion
|
|
820
|
+
* @property {string} [float_amount] - Per unit discount amount with decimal
|
|
821
|
+
* values applied with current promotion.
|
|
778
822
|
* @property {string} [promotion_type] - Promotion type of current promotion
|
|
779
823
|
* @property {boolean} [mrp_promotion] - If applied promotion is applied on
|
|
780
824
|
* product MRP or ESP
|
|
@@ -1340,6 +1384,7 @@ export = CartPlatformModel;
|
|
|
1340
1384
|
/**
|
|
1341
1385
|
* @typedef CartItemCountResponse
|
|
1342
1386
|
* @property {number} [user_cart_items_count] - Item count present in cart
|
|
1387
|
+
* @property {number} [user_cart_article_count] - Article count present in cart.
|
|
1343
1388
|
*/
|
|
1344
1389
|
/**
|
|
1345
1390
|
* @typedef Coupon
|
|
@@ -1750,10 +1795,27 @@ export = CartPlatformModel;
|
|
|
1750
1795
|
* @property {boolean} [success]
|
|
1751
1796
|
* @property {PromotionPaymentOffer[]} [promotions]
|
|
1752
1797
|
*/
|
|
1798
|
+
/**
|
|
1799
|
+
* @typedef BulkPriceAdjustmentUpdateRequest
|
|
1800
|
+
* @property {string} [cart_id]
|
|
1801
|
+
* @property {boolean} [is_authenticated]
|
|
1802
|
+
* @property {BulkPriceAdjustmentUpdate[]} [items]
|
|
1803
|
+
*/
|
|
1804
|
+
/**
|
|
1805
|
+
* @typedef BulkPriceAdjustmentResponse
|
|
1806
|
+
* @property {boolean} [success]
|
|
1807
|
+
* @property {PriceAdjustmentResponse[]} [data]
|
|
1808
|
+
*/
|
|
1809
|
+
/**
|
|
1810
|
+
* @typedef BulkPriceAdjustmentAddRequest
|
|
1811
|
+
* @property {string} [cart_id]
|
|
1812
|
+
* @property {boolean} [is_authenticated]
|
|
1813
|
+
* @property {BulkPriceAdjustmentAdd[]} [items]
|
|
1814
|
+
*/
|
|
1753
1815
|
declare class CartPlatformModel {
|
|
1754
1816
|
}
|
|
1755
1817
|
declare namespace CartPlatformModel {
|
|
1756
|
-
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, CheckCart, CartCheckoutResponse, CartDeliveryModesResponse, PickupStoreDetail, StoreDetailsResponse, UpdateCartPaymentRequest, CouponValidity, PaymentCouponValidate, PaymentMeta, PaymentMethod, PlatformCartCheckoutDetailV2Request, UpdateCartPaymentRequestV2, PriceMinMax, ItemPriceDetails, FreeGiftItems, PromotionOffer, PromotionOffersResponse, PromotionPaymentOffer, PromotionPaymentOffersResponse };
|
|
1818
|
+
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, BulkPriceAdjustmentUpdate, PriceAdjustment, PriceAdjustmentResponse, GetPriceAdjustmentResponse, PriceAdjustmentAdd, BulkPriceAdjustmentAdd, 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, CheckCart, CartCheckoutResponse, CartDeliveryModesResponse, PickupStoreDetail, StoreDetailsResponse, UpdateCartPaymentRequest, CouponValidity, PaymentCouponValidate, PaymentMeta, PaymentMethod, PlatformCartCheckoutDetailV2Request, UpdateCartPaymentRequestV2, PriceMinMax, ItemPriceDetails, FreeGiftItems, PromotionOffer, PromotionOffersResponse, PromotionPaymentOffer, PromotionPaymentOffersResponse, BulkPriceAdjustmentUpdateRequest, BulkPriceAdjustmentResponse, BulkPriceAdjustmentAddRequest };
|
|
1757
1819
|
}
|
|
1758
1820
|
/** @returns {CouponDateMeta} */
|
|
1759
1821
|
declare function CouponDateMeta(): CouponDateMeta;
|
|
@@ -2505,12 +2567,60 @@ type PriceAdjustmentUpdate = {
|
|
|
2505
2567
|
* - The list of article object in the price adjustment
|
|
2506
2568
|
*/
|
|
2507
2569
|
article_ids: Article[];
|
|
2570
|
+
/**
|
|
2571
|
+
* - This field if set true will remove mop
|
|
2572
|
+
* type price adjustment.
|
|
2573
|
+
*/
|
|
2574
|
+
auto_remove?: boolean;
|
|
2508
2575
|
meta?: any;
|
|
2509
2576
|
/**
|
|
2510
2577
|
* - The ID of the cart
|
|
2511
2578
|
*/
|
|
2512
2579
|
cart_id: string;
|
|
2513
2580
|
};
|
|
2581
|
+
/** @returns {BulkPriceAdjustmentUpdate} */
|
|
2582
|
+
declare function BulkPriceAdjustmentUpdate(): BulkPriceAdjustmentUpdate;
|
|
2583
|
+
type BulkPriceAdjustmentUpdate = {
|
|
2584
|
+
/**
|
|
2585
|
+
* - The entity that modified the field
|
|
2586
|
+
*/
|
|
2587
|
+
modified_by?: string;
|
|
2588
|
+
value: number;
|
|
2589
|
+
/**
|
|
2590
|
+
* - The message associated with the price adjustment
|
|
2591
|
+
*/
|
|
2592
|
+
message: string;
|
|
2593
|
+
/**
|
|
2594
|
+
* - The date and time when the expiry should be applied
|
|
2595
|
+
*/
|
|
2596
|
+
apply_expiry?: string;
|
|
2597
|
+
/**
|
|
2598
|
+
* - Restrictions applied
|
|
2599
|
+
* to this particular item or product, including whether or not cancellation
|
|
2600
|
+
* and return are allowed.
|
|
2601
|
+
*/
|
|
2602
|
+
restrictions?: PriceAdjustmentRestrictions;
|
|
2603
|
+
/**
|
|
2604
|
+
* - Flag indicating whether the
|
|
2605
|
+
* distribution should is done at the article level
|
|
2606
|
+
*/
|
|
2607
|
+
article_level_distribution: boolean;
|
|
2608
|
+
collection: Collection;
|
|
2609
|
+
/**
|
|
2610
|
+
* - Type of price adjusment
|
|
2611
|
+
*/
|
|
2612
|
+
type: string;
|
|
2613
|
+
/**
|
|
2614
|
+
* - Flag indicating whether refunds are
|
|
2615
|
+
* allowed (default: False)
|
|
2616
|
+
*/
|
|
2617
|
+
allowed_refund?: boolean;
|
|
2618
|
+
/**
|
|
2619
|
+
* - The list of article object in the price adjustment
|
|
2620
|
+
*/
|
|
2621
|
+
article_ids: Article[];
|
|
2622
|
+
meta?: any;
|
|
2623
|
+
};
|
|
2514
2624
|
/** @returns {PriceAdjustment} */
|
|
2515
2625
|
declare function PriceAdjustment(): PriceAdjustment;
|
|
2516
2626
|
type PriceAdjustment = {
|
|
@@ -2554,6 +2664,11 @@ type PriceAdjustment = {
|
|
|
2554
2664
|
* - The list of article object in the price adjustment
|
|
2555
2665
|
*/
|
|
2556
2666
|
article_ids: Article[];
|
|
2667
|
+
/**
|
|
2668
|
+
* - This field if set true will remove mop
|
|
2669
|
+
* type price adjustment.
|
|
2670
|
+
*/
|
|
2671
|
+
auto_remove?: boolean;
|
|
2557
2672
|
meta?: any;
|
|
2558
2673
|
/**
|
|
2559
2674
|
* - The ID of the cart
|
|
@@ -2621,6 +2736,54 @@ type PriceAdjustmentAdd = {
|
|
|
2621
2736
|
* - The ID of the cart
|
|
2622
2737
|
*/
|
|
2623
2738
|
cart_id: string;
|
|
2739
|
+
/**
|
|
2740
|
+
* - This field if set true will remove mop
|
|
2741
|
+
* type price adjustment.
|
|
2742
|
+
*/
|
|
2743
|
+
auto_remove?: boolean;
|
|
2744
|
+
};
|
|
2745
|
+
/** @returns {BulkPriceAdjustmentAdd} */
|
|
2746
|
+
declare function BulkPriceAdjustmentAdd(): BulkPriceAdjustmentAdd;
|
|
2747
|
+
type BulkPriceAdjustmentAdd = {
|
|
2748
|
+
value: number;
|
|
2749
|
+
/**
|
|
2750
|
+
* - The message associated with the price adjustment
|
|
2751
|
+
*/
|
|
2752
|
+
message: string;
|
|
2753
|
+
/**
|
|
2754
|
+
* - The date and time when the expiry should be applied
|
|
2755
|
+
*/
|
|
2756
|
+
apply_expiry?: string;
|
|
2757
|
+
/**
|
|
2758
|
+
* - This field accepts
|
|
2759
|
+
* the restrictions applied to this particular item or service, including
|
|
2760
|
+
* whether or not cancellation and return are allowed, etc
|
|
2761
|
+
*/
|
|
2762
|
+
restrictions?: PriceAdjustmentRestrictions;
|
|
2763
|
+
/**
|
|
2764
|
+
* - The entity that created the field
|
|
2765
|
+
*/
|
|
2766
|
+
created_by?: string;
|
|
2767
|
+
/**
|
|
2768
|
+
* - Flag indicating whether the
|
|
2769
|
+
* distribution should is done at the article level
|
|
2770
|
+
*/
|
|
2771
|
+
article_level_distribution: boolean;
|
|
2772
|
+
collection: Collection;
|
|
2773
|
+
/**
|
|
2774
|
+
* - Type of price adjusment
|
|
2775
|
+
*/
|
|
2776
|
+
type: string;
|
|
2777
|
+
/**
|
|
2778
|
+
* - Flag indicating whether refunds are
|
|
2779
|
+
* allowed (default: False)
|
|
2780
|
+
*/
|
|
2781
|
+
allowed_refund?: boolean;
|
|
2782
|
+
/**
|
|
2783
|
+
* - The list of article object in the price adjustment
|
|
2784
|
+
*/
|
|
2785
|
+
article_ids: Article[];
|
|
2786
|
+
meta?: any;
|
|
2624
2787
|
};
|
|
2625
2788
|
/** @returns {CartItem} */
|
|
2626
2789
|
declare function CartItem(): CartItem;
|
|
@@ -2906,6 +3069,11 @@ type AppliedPromotion = {
|
|
|
2906
3069
|
* - Per unit discount amount applied with current promotion
|
|
2907
3070
|
*/
|
|
2908
3071
|
amount?: number;
|
|
3072
|
+
/**
|
|
3073
|
+
* - Per unit discount amount with decimal
|
|
3074
|
+
* values applied with current promotion.
|
|
3075
|
+
*/
|
|
3076
|
+
float_amount?: string;
|
|
2909
3077
|
/**
|
|
2910
3078
|
* - Promotion type of current promotion
|
|
2911
3079
|
*/
|
|
@@ -3622,6 +3790,10 @@ type CartItemCountResponse = {
|
|
|
3622
3790
|
* - Item count present in cart
|
|
3623
3791
|
*/
|
|
3624
3792
|
user_cart_items_count?: number;
|
|
3793
|
+
/**
|
|
3794
|
+
* - Article count present in cart.
|
|
3795
|
+
*/
|
|
3796
|
+
user_cart_article_count?: number;
|
|
3625
3797
|
};
|
|
3626
3798
|
/** @returns {Coupon} */
|
|
3627
3799
|
declare function Coupon(): Coupon;
|
|
@@ -4181,3 +4353,23 @@ type PromotionPaymentOffersResponse = {
|
|
|
4181
4353
|
success?: boolean;
|
|
4182
4354
|
promotions?: PromotionPaymentOffer[];
|
|
4183
4355
|
};
|
|
4356
|
+
/** @returns {BulkPriceAdjustmentUpdateRequest} */
|
|
4357
|
+
declare function BulkPriceAdjustmentUpdateRequest(): BulkPriceAdjustmentUpdateRequest;
|
|
4358
|
+
type BulkPriceAdjustmentUpdateRequest = {
|
|
4359
|
+
cart_id?: string;
|
|
4360
|
+
is_authenticated?: boolean;
|
|
4361
|
+
items?: BulkPriceAdjustmentUpdate[];
|
|
4362
|
+
};
|
|
4363
|
+
/** @returns {BulkPriceAdjustmentResponse} */
|
|
4364
|
+
declare function BulkPriceAdjustmentResponse(): BulkPriceAdjustmentResponse;
|
|
4365
|
+
type BulkPriceAdjustmentResponse = {
|
|
4366
|
+
success?: boolean;
|
|
4367
|
+
data?: PriceAdjustmentResponse[];
|
|
4368
|
+
};
|
|
4369
|
+
/** @returns {BulkPriceAdjustmentAddRequest} */
|
|
4370
|
+
declare function BulkPriceAdjustmentAddRequest(): BulkPriceAdjustmentAddRequest;
|
|
4371
|
+
type BulkPriceAdjustmentAddRequest = {
|
|
4372
|
+
cart_id?: string;
|
|
4373
|
+
is_authenticated?: boolean;
|
|
4374
|
+
items?: BulkPriceAdjustmentAdd[];
|
|
4375
|
+
};
|
|
@@ -593,10 +593,31 @@ const Joi = require("joi");
|
|
|
593
593
|
* @property {boolean} is_authenticated - Flag indicating whether the user is
|
|
594
594
|
* authenticated
|
|
595
595
|
* @property {Article[]} article_ids - The list of article object in the price adjustment
|
|
596
|
+
* @property {boolean} [auto_remove] - This field if set true will remove mop
|
|
597
|
+
* type price adjustment.
|
|
596
598
|
* @property {Object} [meta]
|
|
597
599
|
* @property {string} cart_id - The ID of the cart
|
|
598
600
|
*/
|
|
599
601
|
|
|
602
|
+
/**
|
|
603
|
+
* @typedef BulkPriceAdjustmentUpdate
|
|
604
|
+
* @property {string} [modified_by] - The entity that modified the field
|
|
605
|
+
* @property {number} value
|
|
606
|
+
* @property {string} message - The message associated with the price adjustment
|
|
607
|
+
* @property {string} [apply_expiry] - The date and time when the expiry should be applied
|
|
608
|
+
* @property {PriceAdjustmentRestrictions} [restrictions] - Restrictions applied
|
|
609
|
+
* to this particular item or product, including whether or not cancellation
|
|
610
|
+
* and return are allowed.
|
|
611
|
+
* @property {boolean} article_level_distribution - Flag indicating whether the
|
|
612
|
+
* distribution should is done at the article level
|
|
613
|
+
* @property {Collection} collection
|
|
614
|
+
* @property {string} type - Type of price adjusment
|
|
615
|
+
* @property {boolean} [allowed_refund] - Flag indicating whether refunds are
|
|
616
|
+
* allowed (default: False)
|
|
617
|
+
* @property {Article[]} article_ids - The list of article object in the price adjustment
|
|
618
|
+
* @property {Object} [meta]
|
|
619
|
+
*/
|
|
620
|
+
|
|
600
621
|
/**
|
|
601
622
|
* @typedef PriceAdjustment
|
|
602
623
|
* @property {number} value
|
|
@@ -615,6 +636,8 @@ const Joi = require("joi");
|
|
|
615
636
|
* @property {boolean} is_authenticated - Flag indicating whether the user is
|
|
616
637
|
* authenticated
|
|
617
638
|
* @property {Article[]} article_ids - The list of article object in the price adjustment
|
|
639
|
+
* @property {boolean} [auto_remove] - This field if set true will remove mop
|
|
640
|
+
* type price adjustment.
|
|
618
641
|
* @property {Object} [meta]
|
|
619
642
|
* @property {string} cart_id - The ID of the cart
|
|
620
643
|
*/
|
|
@@ -649,6 +672,27 @@ const Joi = require("joi");
|
|
|
649
672
|
* @property {Article[]} article_ids - The list of article object in the price adjustment
|
|
650
673
|
* @property {Object} [meta]
|
|
651
674
|
* @property {string} cart_id - The ID of the cart
|
|
675
|
+
* @property {boolean} [auto_remove] - This field if set true will remove mop
|
|
676
|
+
* type price adjustment.
|
|
677
|
+
*/
|
|
678
|
+
|
|
679
|
+
/**
|
|
680
|
+
* @typedef BulkPriceAdjustmentAdd
|
|
681
|
+
* @property {number} value
|
|
682
|
+
* @property {string} message - The message associated with the price adjustment
|
|
683
|
+
* @property {string} [apply_expiry] - The date and time when the expiry should be applied
|
|
684
|
+
* @property {PriceAdjustmentRestrictions} [restrictions] - This field accepts
|
|
685
|
+
* the restrictions applied to this particular item or service, including
|
|
686
|
+
* whether or not cancellation and return are allowed, etc
|
|
687
|
+
* @property {string} [created_by] - The entity that created the field
|
|
688
|
+
* @property {boolean} article_level_distribution - Flag indicating whether the
|
|
689
|
+
* distribution should is done at the article level
|
|
690
|
+
* @property {Collection} collection
|
|
691
|
+
* @property {string} type - Type of price adjusment
|
|
692
|
+
* @property {boolean} [allowed_refund] - Flag indicating whether refunds are
|
|
693
|
+
* allowed (default: False)
|
|
694
|
+
* @property {Article[]} article_ids - The list of article object in the price adjustment
|
|
695
|
+
* @property {Object} [meta]
|
|
652
696
|
*/
|
|
653
697
|
|
|
654
698
|
/**
|
|
@@ -862,6 +906,8 @@ const Joi = require("joi");
|
|
|
862
906
|
* @property {BuyRules[]} [buy_rules] - Buy rules for promotions
|
|
863
907
|
* @property {string} [offer_text] - Offer text of current promotion
|
|
864
908
|
* @property {number} [amount] - Per unit discount amount applied with current promotion
|
|
909
|
+
* @property {string} [float_amount] - Per unit discount amount with decimal
|
|
910
|
+
* values applied with current promotion.
|
|
865
911
|
* @property {string} [promotion_type] - Promotion type of current promotion
|
|
866
912
|
* @property {boolean} [mrp_promotion] - If applied promotion is applied on
|
|
867
913
|
* product MRP or ESP
|
|
@@ -1485,6 +1531,7 @@ const Joi = require("joi");
|
|
|
1485
1531
|
/**
|
|
1486
1532
|
* @typedef CartItemCountResponse
|
|
1487
1533
|
* @property {number} [user_cart_items_count] - Item count present in cart
|
|
1534
|
+
* @property {number} [user_cart_article_count] - Article count present in cart.
|
|
1488
1535
|
*/
|
|
1489
1536
|
|
|
1490
1537
|
/**
|
|
@@ -1937,6 +1984,26 @@ const Joi = require("joi");
|
|
|
1937
1984
|
* @property {PromotionPaymentOffer[]} [promotions]
|
|
1938
1985
|
*/
|
|
1939
1986
|
|
|
1987
|
+
/**
|
|
1988
|
+
* @typedef BulkPriceAdjustmentUpdateRequest
|
|
1989
|
+
* @property {string} [cart_id]
|
|
1990
|
+
* @property {boolean} [is_authenticated]
|
|
1991
|
+
* @property {BulkPriceAdjustmentUpdate[]} [items]
|
|
1992
|
+
*/
|
|
1993
|
+
|
|
1994
|
+
/**
|
|
1995
|
+
* @typedef BulkPriceAdjustmentResponse
|
|
1996
|
+
* @property {boolean} [success]
|
|
1997
|
+
* @property {PriceAdjustmentResponse[]} [data]
|
|
1998
|
+
*/
|
|
1999
|
+
|
|
2000
|
+
/**
|
|
2001
|
+
* @typedef BulkPriceAdjustmentAddRequest
|
|
2002
|
+
* @property {string} [cart_id]
|
|
2003
|
+
* @property {boolean} [is_authenticated]
|
|
2004
|
+
* @property {BulkPriceAdjustmentAdd[]} [items]
|
|
2005
|
+
*/
|
|
2006
|
+
|
|
1940
2007
|
class CartPlatformModel {
|
|
1941
2008
|
/** @returns {CouponDateMeta} */
|
|
1942
2009
|
static CouponDateMeta() {
|
|
@@ -2647,11 +2714,29 @@ class CartPlatformModel {
|
|
|
2647
2714
|
allowed_refund: Joi.boolean(),
|
|
2648
2715
|
is_authenticated: Joi.boolean().required(),
|
|
2649
2716
|
article_ids: Joi.array().items(CartPlatformModel.Article()).required(),
|
|
2717
|
+
auto_remove: Joi.boolean(),
|
|
2650
2718
|
meta: Joi.any(),
|
|
2651
2719
|
cart_id: Joi.string().allow("").required(),
|
|
2652
2720
|
});
|
|
2653
2721
|
}
|
|
2654
2722
|
|
|
2723
|
+
/** @returns {BulkPriceAdjustmentUpdate} */
|
|
2724
|
+
static BulkPriceAdjustmentUpdate() {
|
|
2725
|
+
return Joi.object({
|
|
2726
|
+
modified_by: Joi.string().allow(""),
|
|
2727
|
+
value: Joi.number().required(),
|
|
2728
|
+
message: Joi.string().allow("").required(),
|
|
2729
|
+
apply_expiry: Joi.string().allow(""),
|
|
2730
|
+
restrictions: CartPlatformModel.PriceAdjustmentRestrictions(),
|
|
2731
|
+
article_level_distribution: Joi.boolean().required(),
|
|
2732
|
+
collection: CartPlatformModel.Collection().required(),
|
|
2733
|
+
type: Joi.string().allow("").required(),
|
|
2734
|
+
allowed_refund: Joi.boolean(),
|
|
2735
|
+
article_ids: Joi.array().items(CartPlatformModel.Article()).required(),
|
|
2736
|
+
meta: Joi.any(),
|
|
2737
|
+
});
|
|
2738
|
+
}
|
|
2739
|
+
|
|
2655
2740
|
/** @returns {PriceAdjustment} */
|
|
2656
2741
|
static PriceAdjustment() {
|
|
2657
2742
|
return Joi.object({
|
|
@@ -2666,6 +2751,7 @@ class CartPlatformModel {
|
|
|
2666
2751
|
allowed_refund: Joi.boolean(),
|
|
2667
2752
|
is_authenticated: Joi.boolean().required(),
|
|
2668
2753
|
article_ids: Joi.array().items(CartPlatformModel.Article()).required(),
|
|
2754
|
+
auto_remove: Joi.boolean(),
|
|
2669
2755
|
meta: Joi.any(),
|
|
2670
2756
|
cart_id: Joi.string().allow("").required(),
|
|
2671
2757
|
});
|
|
@@ -2701,6 +2787,24 @@ class CartPlatformModel {
|
|
|
2701
2787
|
article_ids: Joi.array().items(CartPlatformModel.Article()).required(),
|
|
2702
2788
|
meta: Joi.any(),
|
|
2703
2789
|
cart_id: Joi.string().allow("").required(),
|
|
2790
|
+
auto_remove: Joi.boolean(),
|
|
2791
|
+
});
|
|
2792
|
+
}
|
|
2793
|
+
|
|
2794
|
+
/** @returns {BulkPriceAdjustmentAdd} */
|
|
2795
|
+
static BulkPriceAdjustmentAdd() {
|
|
2796
|
+
return Joi.object({
|
|
2797
|
+
value: Joi.number().required(),
|
|
2798
|
+
message: Joi.string().allow("").required(),
|
|
2799
|
+
apply_expiry: Joi.string().allow(""),
|
|
2800
|
+
restrictions: CartPlatformModel.PriceAdjustmentRestrictions(),
|
|
2801
|
+
created_by: Joi.string().allow(""),
|
|
2802
|
+
article_level_distribution: Joi.boolean().required(),
|
|
2803
|
+
collection: CartPlatformModel.Collection().required(),
|
|
2804
|
+
type: Joi.string().allow("").required(),
|
|
2805
|
+
allowed_refund: Joi.boolean(),
|
|
2806
|
+
article_ids: Joi.array().items(CartPlatformModel.Article()).required(),
|
|
2807
|
+
meta: Joi.any(),
|
|
2704
2808
|
});
|
|
2705
2809
|
}
|
|
2706
2810
|
|
|
@@ -2959,6 +3063,7 @@ class CartPlatformModel {
|
|
|
2959
3063
|
buy_rules: Joi.array().items(CartPlatformModel.BuyRules()),
|
|
2960
3064
|
offer_text: Joi.string().allow(""),
|
|
2961
3065
|
amount: Joi.number(),
|
|
3066
|
+
float_amount: Joi.string().allow(""),
|
|
2962
3067
|
promotion_type: Joi.string().allow(""),
|
|
2963
3068
|
mrp_promotion: Joi.boolean(),
|
|
2964
3069
|
promotion_group: Joi.string().allow(""),
|
|
@@ -3709,6 +3814,7 @@ class CartPlatformModel {
|
|
|
3709
3814
|
static CartItemCountResponse() {
|
|
3710
3815
|
return Joi.object({
|
|
3711
3816
|
user_cart_items_count: Joi.number(),
|
|
3817
|
+
user_cart_article_count: Joi.number(),
|
|
3712
3818
|
});
|
|
3713
3819
|
}
|
|
3714
3820
|
|
|
@@ -4252,5 +4358,31 @@ class CartPlatformModel {
|
|
|
4252
4358
|
promotions: Joi.array().items(CartPlatformModel.PromotionPaymentOffer()),
|
|
4253
4359
|
});
|
|
4254
4360
|
}
|
|
4361
|
+
|
|
4362
|
+
/** @returns {BulkPriceAdjustmentUpdateRequest} */
|
|
4363
|
+
static BulkPriceAdjustmentUpdateRequest() {
|
|
4364
|
+
return Joi.object({
|
|
4365
|
+
cart_id: Joi.string().allow(""),
|
|
4366
|
+
is_authenticated: Joi.boolean(),
|
|
4367
|
+
items: Joi.array().items(CartPlatformModel.BulkPriceAdjustmentUpdate()),
|
|
4368
|
+
});
|
|
4369
|
+
}
|
|
4370
|
+
|
|
4371
|
+
/** @returns {BulkPriceAdjustmentResponse} */
|
|
4372
|
+
static BulkPriceAdjustmentResponse() {
|
|
4373
|
+
return Joi.object({
|
|
4374
|
+
success: Joi.boolean(),
|
|
4375
|
+
data: Joi.array().items(CartPlatformModel.PriceAdjustmentResponse()),
|
|
4376
|
+
});
|
|
4377
|
+
}
|
|
4378
|
+
|
|
4379
|
+
/** @returns {BulkPriceAdjustmentAddRequest} */
|
|
4380
|
+
static BulkPriceAdjustmentAddRequest() {
|
|
4381
|
+
return Joi.object({
|
|
4382
|
+
cart_id: Joi.string().allow(""),
|
|
4383
|
+
is_authenticated: Joi.boolean(),
|
|
4384
|
+
items: Joi.array().items(CartPlatformModel.BulkPriceAdjustmentAdd()),
|
|
4385
|
+
});
|
|
4386
|
+
}
|
|
4255
4387
|
}
|
|
4256
4388
|
module.exports = CartPlatformModel;
|
|
@@ -371,8 +371,6 @@ export = CatalogPlatformModel;
|
|
|
371
371
|
* @property {boolean} [is_active] - Indicates if the brand is active.
|
|
372
372
|
* @property {number[]} [departments] - List of department IDs associated with the brand.
|
|
373
373
|
* @property {string} [modified_on] - Timestamp when the brand was last modified.
|
|
374
|
-
* @property {boolean} [active] - Boolean indicating whether the brand is
|
|
375
|
-
* currently active or not.
|
|
376
374
|
*/
|
|
377
375
|
/**
|
|
378
376
|
* @typedef ApplicationBrandListingSchema
|
|
@@ -4021,11 +4019,6 @@ type ApplicationBrandListingItemSchema = {
|
|
|
4021
4019
|
* - Timestamp when the brand was last modified.
|
|
4022
4020
|
*/
|
|
4023
4021
|
modified_on?: string;
|
|
4024
|
-
/**
|
|
4025
|
-
* - Boolean indicating whether the brand is
|
|
4026
|
-
* currently active or not.
|
|
4027
|
-
*/
|
|
4028
|
-
active?: boolean;
|
|
4029
4022
|
};
|
|
4030
4023
|
/** @returns {ApplicationBrandListingSchema} */
|
|
4031
4024
|
declare function ApplicationBrandListingSchema(): ApplicationBrandListingSchema;
|
|
@@ -417,8 +417,6 @@ const Joi = require("joi");
|
|
|
417
417
|
* @property {boolean} [is_active] - Indicates if the brand is active.
|
|
418
418
|
* @property {number[]} [departments] - List of department IDs associated with the brand.
|
|
419
419
|
* @property {string} [modified_on] - Timestamp when the brand was last modified.
|
|
420
|
-
* @property {boolean} [active] - Boolean indicating whether the brand is
|
|
421
|
-
* currently active or not.
|
|
422
420
|
*/
|
|
423
421
|
|
|
424
422
|
/**
|
|
@@ -4301,7 +4299,6 @@ class CatalogPlatformModel {
|
|
|
4301
4299
|
is_active: Joi.boolean(),
|
|
4302
4300
|
departments: Joi.array().items(Joi.number()),
|
|
4303
4301
|
modified_on: Joi.string().allow(""),
|
|
4304
|
-
active: Joi.boolean(),
|
|
4305
4302
|
});
|
|
4306
4303
|
}
|
|
4307
4304
|
|
|
@@ -7256,7 +7253,7 @@ class CatalogPlatformModel {
|
|
|
7256
7253
|
all_company_ids: Joi.array().items(Joi.number()),
|
|
7257
7254
|
all_identifiers: Joi.array().items(Joi.string().allow("")),
|
|
7258
7255
|
all_sizes: Joi.array().items(Joi.any()),
|
|
7259
|
-
attributes: Joi.any(),
|
|
7256
|
+
attributes: Joi.object().pattern(/\S/, Joi.any()),
|
|
7260
7257
|
brand: CatalogPlatformModel.Brand(),
|
|
7261
7258
|
brand_uid: Joi.number(),
|
|
7262
7259
|
category: Joi.any(),
|
|
@@ -51,6 +51,10 @@ export = ConfigurationPlatformModel;
|
|
|
51
51
|
* @property {Object[]} [company_store] - List of selling locations whose
|
|
52
52
|
* inventory is available to the sales channel for displaying on the website
|
|
53
53
|
* @property {number} [company_id]
|
|
54
|
+
* @property {boolean} [enable_zone_overlapping] - Power product listing with
|
|
55
|
+
* overlapping zones
|
|
56
|
+
* @property {boolean} [sort_popular_first] - Give preference to popularity over
|
|
57
|
+
* score in product listing sort
|
|
54
58
|
*/
|
|
55
59
|
/**
|
|
56
60
|
* @typedef InventoryBrand
|
|
@@ -1434,6 +1438,16 @@ type AppInventoryConfig = {
|
|
|
1434
1438
|
*/
|
|
1435
1439
|
company_store?: any[];
|
|
1436
1440
|
company_id?: number;
|
|
1441
|
+
/**
|
|
1442
|
+
* - Power product listing with
|
|
1443
|
+
* overlapping zones
|
|
1444
|
+
*/
|
|
1445
|
+
enable_zone_overlapping?: boolean;
|
|
1446
|
+
/**
|
|
1447
|
+
* - Give preference to popularity over
|
|
1448
|
+
* score in product listing sort
|
|
1449
|
+
*/
|
|
1450
|
+
sort_popular_first?: boolean;
|
|
1437
1451
|
};
|
|
1438
1452
|
/** @returns {InventoryBrand} */
|
|
1439
1453
|
declare function InventoryBrand(): InventoryBrand;
|
|
@@ -54,6 +54,10 @@ const Joi = require("joi");
|
|
|
54
54
|
* @property {Object[]} [company_store] - List of selling locations whose
|
|
55
55
|
* inventory is available to the sales channel for displaying on the website
|
|
56
56
|
* @property {number} [company_id]
|
|
57
|
+
* @property {boolean} [enable_zone_overlapping] - Power product listing with
|
|
58
|
+
* overlapping zones
|
|
59
|
+
* @property {boolean} [sort_popular_first] - Give preference to popularity over
|
|
60
|
+
* score in product listing sort
|
|
57
61
|
*/
|
|
58
62
|
|
|
59
63
|
/**
|
|
@@ -1557,6 +1561,8 @@ class ConfigurationPlatformModel {
|
|
|
1557
1561
|
image: Joi.array().items(Joi.string().allow("")),
|
|
1558
1562
|
company_store: Joi.array().items(Joi.any()),
|
|
1559
1563
|
company_id: Joi.number(),
|
|
1564
|
+
enable_zone_overlapping: Joi.boolean(),
|
|
1565
|
+
sort_popular_first: Joi.boolean(),
|
|
1560
1566
|
});
|
|
1561
1567
|
}
|
|
1562
1568
|
|
|
@@ -3,16 +3,6 @@ declare class Order {
|
|
|
3
3
|
constructor(config: any, applicationId: any);
|
|
4
4
|
config: any;
|
|
5
5
|
applicationId: any;
|
|
6
|
-
/**
|
|
7
|
-
* @param {OrderPlatformApplicationValidator.FailedOrderLogsParam} arg - Arg object
|
|
8
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
9
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
10
|
-
* @returns {Promise<OrderPlatformModel.FailedOrderLogs>} - Success response
|
|
11
|
-
* @name failedOrderLogs
|
|
12
|
-
* @summary: List failed order logs
|
|
13
|
-
* @description: Get failed order logs listing for filters based on order Id, user contact number, user email Id and sales channel Id. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/failedOrderLogs/).
|
|
14
|
-
*/
|
|
15
|
-
failedOrderLogs({ pageNo, pageSize, searchType, searchValue, requestHeaders }?: OrderPlatformApplicationValidator.FailedOrderLogsParam, { responseHeaders }?: object): Promise<OrderPlatformModel.FailedOrderLogs>;
|
|
16
6
|
/**
|
|
17
7
|
* @param {OrderPlatformApplicationValidator.GetApplicationShipmentsParam} arg
|
|
18
8
|
* - Arg object
|