@gofynd/fdk-client-javascript 3.4.0 → 3.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +111 -43
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +65 -33
- package/sdk/platform/Cart/CartPlatformModel.d.ts +262 -12
- package/sdk/platform/Cart/CartPlatformModel.js +334 -10
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +4 -1
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +9 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +4 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +2 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +2 -0
- package/sdk/platform/Content/ContentPlatformModel.d.ts +14 -19
- package/sdk/platform/Content/ContentPlatformModel.js +6 -20
- package/sdk/platform/Order/OrderPlatformModel.d.ts +218 -17
- package/sdk/platform/Order/OrderPlatformModel.js +366 -14
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +15 -15
- package/sdk/platform/Order/OrderPlatformValidator.js +9 -9
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +7 -5
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +4 -3
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +97 -1
- package/sdk/platform/Payment/PaymentPlatformModel.js +273 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +50 -4
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +22 -2
|
@@ -321,6 +321,57 @@ export = CartPlatformModel;
|
|
|
321
321
|
* which promotion is not applicable
|
|
322
322
|
* @property {string[]} [item_sku] - List of all item sku on which promotion is applicable
|
|
323
323
|
*/
|
|
324
|
+
/**
|
|
325
|
+
* @typedef BuyRuleItemCriteria
|
|
326
|
+
* @property {CompareObject} [cart_quantity]
|
|
327
|
+
* @property {string[]} [available_zones] - List of all zones on which promotion
|
|
328
|
+
* is applicable
|
|
329
|
+
* @property {number[]} [item_exclude_company] - List of all company id on which
|
|
330
|
+
* promotion is not applicable
|
|
331
|
+
* @property {number[]} [item_id] - List of all item ids on which promotion is applicable
|
|
332
|
+
* @property {number[]} [item_l1_category] - List of all L1 category on which
|
|
333
|
+
* promotion is applicable
|
|
334
|
+
* @property {CompareObject} [cart_total]
|
|
335
|
+
* @property {CompareObject} [cart_unique_item_quantity]
|
|
336
|
+
* @property {CompareObject} [cart_unique_item_amount]
|
|
337
|
+
* @property {number[]} [item_exclude_id] - List of all item ids on which
|
|
338
|
+
* promotion is not applicable
|
|
339
|
+
* @property {boolean} [all_items] - Boolean flag set true to applicable the
|
|
340
|
+
* promotion for all products
|
|
341
|
+
* @property {number[]} [item_exclude_l1_category] - List of all item ids on
|
|
342
|
+
* which promotion is not applicable
|
|
343
|
+
* @property {string[]} [item_size] - List of all item sizes on which promotion
|
|
344
|
+
* is applicable
|
|
345
|
+
* @property {number[]} [item_store] - List of all item store ids on which
|
|
346
|
+
* promotion is applicable
|
|
347
|
+
* @property {string[]} [item_exclude_sku] - List of all item sku on which
|
|
348
|
+
* promotion is not applicable
|
|
349
|
+
* @property {number[]} [item_department] - List of all departments ids on which
|
|
350
|
+
* promotion is applicable
|
|
351
|
+
* @property {number[]} [item_exclude_store] - List of all item store ids on
|
|
352
|
+
* which promotion is not applicable
|
|
353
|
+
* @property {number[]} [item_brand] - List of all brand ids on which promotion
|
|
354
|
+
* is applicable
|
|
355
|
+
* @property {number[]} [item_exclude_department] - List of all department ids
|
|
356
|
+
* on which promotion is not applicable
|
|
357
|
+
* @property {number[]} [item_exclude_category] - List of all L3 category on
|
|
358
|
+
* which promotion is not applicable
|
|
359
|
+
* @property {number[]} [item_category] - List of all L3 category on which
|
|
360
|
+
* promotion is applicable
|
|
361
|
+
* @property {string[]} [buy_rules]
|
|
362
|
+
* @property {number[]} [item_exclude_brand] - List of all brand ids on which
|
|
363
|
+
* promotion is not applicable
|
|
364
|
+
* @property {number[]} [item_l2_category] - List of all L2 category on which
|
|
365
|
+
* promotion is applicable
|
|
366
|
+
* @property {number[]} [item_company] - List of all company ids on which
|
|
367
|
+
* promotion is applicable
|
|
368
|
+
* @property {string[]} [item_tags] - List of all product tags on which
|
|
369
|
+
* promotion is applicable
|
|
370
|
+
* @property {number[]} [item_exclude_l2_category] - List of all L2 category on
|
|
371
|
+
* which promotion is not applicable
|
|
372
|
+
* @property {string[]} [item_sku] - List of all item sku on which promotion is applicable
|
|
373
|
+
* @property {ItemSizeMapping} [meta]
|
|
374
|
+
*/
|
|
324
375
|
/**
|
|
325
376
|
* @typedef DiscountOffer
|
|
326
377
|
* @property {number} [max_discount_amount] - Maximum discount amount in promotion
|
|
@@ -495,7 +546,7 @@ export = CartPlatformModel;
|
|
|
495
546
|
* @property {PromotionAuthor} [author]
|
|
496
547
|
* @property {Visibility} [visiblility]
|
|
497
548
|
* @property {string} application_id - Current application id of sales channel
|
|
498
|
-
* @property {
|
|
549
|
+
* @property {BuyRuleItemCriteria} [buy_rules]
|
|
499
550
|
* @property {Object} [_custom_json] - Set extra properties in promotion
|
|
500
551
|
* @property {PromotionDateMeta} [date_meta]
|
|
501
552
|
* @property {string[]} [tags] - List of tags applicable for promotion
|
|
@@ -599,7 +650,7 @@ export = CartPlatformModel;
|
|
|
599
650
|
* @property {PromotionAuthor} [author]
|
|
600
651
|
* @property {Visibility} [visiblility]
|
|
601
652
|
* @property {string} application_id - Current application id of sales channel
|
|
602
|
-
* @property {
|
|
653
|
+
* @property {BuyRuleItemCriteria} [buy_rules]
|
|
603
654
|
* @property {Object} [_custom_json] - Set extra properties in promotion
|
|
604
655
|
* @property {PromotionDateMeta} [date_meta]
|
|
605
656
|
* @property {string[]} [tags] - List of tags applicable for promotion
|
|
@@ -1199,7 +1250,7 @@ export = CartPlatformModel;
|
|
|
1199
1250
|
* @property {string} [state] - State of the address
|
|
1200
1251
|
* @property {string} [city] - City of the address
|
|
1201
1252
|
* @property {number} [phone] - Phone number for address
|
|
1202
|
-
* @property {string} area_code - Area code of the address
|
|
1253
|
+
* @property {string} [area_code] - Area code of the address
|
|
1203
1254
|
* @property {string} [country_iso_code] - Country iso code for address
|
|
1204
1255
|
* @property {string} [country_phone_code] - Country phone code for address
|
|
1205
1256
|
* @property {Object} [meta] - Metadata of the address
|
|
@@ -1708,7 +1759,8 @@ export = CartPlatformModel;
|
|
|
1708
1759
|
*/
|
|
1709
1760
|
/**
|
|
1710
1761
|
* @typedef UpdateUserCartMapping
|
|
1711
|
-
* @property {string} user_id -
|
|
1762
|
+
* @property {string} [user_id] - Customer user ID to associate with the cart.
|
|
1763
|
+
* Send null to remove existing mapping of customer from cart.
|
|
1712
1764
|
*/
|
|
1713
1765
|
/**
|
|
1714
1766
|
* @typedef UserInfo
|
|
@@ -2401,14 +2453,93 @@ export = CartPlatformModel;
|
|
|
2401
2453
|
* | "kiosk"
|
|
2402
2454
|
* | "scan_go"
|
|
2403
2455
|
* | "smart_trolley"
|
|
2456
|
+
* | "gofynd"
|
|
2457
|
+
* | "uniket"
|
|
2404
2458
|
* | "marketplace"
|
|
2405
2459
|
* | "social_commerce"
|
|
2406
|
-
* | "ondc"
|
|
2460
|
+
* | "ondc"
|
|
2461
|
+
* | "nexus"
|
|
2462
|
+
* | "nykaa_fashion"
|
|
2463
|
+
* | "etsy"
|
|
2464
|
+
* | "vuivui"
|
|
2465
|
+
* | "zilingo"
|
|
2466
|
+
* | "firstcry"
|
|
2467
|
+
* | "bukalapak"
|
|
2468
|
+
* | "myntra_ppmp"
|
|
2469
|
+
* | "lazada"
|
|
2470
|
+
* | "tiktok"
|
|
2471
|
+
* | "sfcc"
|
|
2472
|
+
* | "debenhams"
|
|
2473
|
+
* | "prestomall"
|
|
2474
|
+
* | "meesho"
|
|
2475
|
+
* | "amazon_vdf"
|
|
2476
|
+
* | "bigcommerce"
|
|
2477
|
+
* | "sendo"
|
|
2478
|
+
* | "storehippo"
|
|
2479
|
+
* | "cdiscount"
|
|
2480
|
+
* | "nykaa"
|
|
2481
|
+
* | "trendyol"
|
|
2482
|
+
* | "weloveshopping"
|
|
2483
|
+
* | "jollee"
|
|
2484
|
+
* | "wish"
|
|
2485
|
+
* | "tiki"
|
|
2486
|
+
* | "central_online"
|
|
2487
|
+
* | "q10"
|
|
2488
|
+
* | "cred"
|
|
2489
|
+
* | "walmart"
|
|
2490
|
+
* | "snapdeal"
|
|
2491
|
+
* | "flipkart"
|
|
2492
|
+
* | "blibli"
|
|
2493
|
+
* | "ajio_jit"
|
|
2494
|
+
* | "pharmeasy"
|
|
2495
|
+
* | "ezmall"
|
|
2496
|
+
* | "adobe_commerce"
|
|
2497
|
+
* | "kartmax"
|
|
2498
|
+
* | "shopee"
|
|
2499
|
+
* | "zalora"
|
|
2500
|
+
* | "prestashop"
|
|
2501
|
+
* | "smytten"
|
|
2502
|
+
* | "amazon_sc"
|
|
2503
|
+
* | "urbanpiper"
|
|
2504
|
+
* | "flipkart_quick"
|
|
2505
|
+
* | "woocommerce"
|
|
2506
|
+
* | "zivame"
|
|
2507
|
+
* | "lelong"
|
|
2508
|
+
* | "facebook"
|
|
2509
|
+
* | "jiomart"
|
|
2510
|
+
* | "gmc"
|
|
2511
|
+
* | "robins"
|
|
2512
|
+
* | "akulaku"
|
|
2513
|
+
* | "noon"
|
|
2514
|
+
* | "tatacliq"
|
|
2515
|
+
* | "kartrocket"
|
|
2516
|
+
* | "inorbit"
|
|
2517
|
+
* | "ajio_business"
|
|
2518
|
+
* | "swiggy"
|
|
2519
|
+
* | "asos"
|
|
2520
|
+
* | "tokopedia"
|
|
2521
|
+
* | "limeroad"
|
|
2522
|
+
* | "myntra_omni"
|
|
2523
|
+
* | "spoyl"
|
|
2524
|
+
* | "amazon_mlf"
|
|
2525
|
+
* | "fulfilled_by_lazada"
|
|
2526
|
+
* | "ebay"
|
|
2527
|
+
* | "jd"
|
|
2528
|
+
* | "amazon_pharmacy"
|
|
2529
|
+
* | "ajio_vms"
|
|
2530
|
+
* | "daraz"
|
|
2531
|
+
* | "oker"
|
|
2532
|
+
* | "flipkart_b2b"
|
|
2533
|
+
* | "amazon_mlf_ss"
|
|
2534
|
+
* | "woovly"
|
|
2535
|
+
* | "tata1mg"
|
|
2536
|
+
* | "zomato"
|
|
2537
|
+
* | "shopify"} OrderingSource
|
|
2407
2538
|
*/
|
|
2408
2539
|
declare class CartPlatformModel {
|
|
2409
2540
|
}
|
|
2410
2541
|
declare namespace CartPlatformModel {
|
|
2411
|
-
export { CouponDateMeta, Ownership, CouponAuthor, State, PaymentAllowValue, PaymentModes, PriceRange, PostOrder, BulkBundleRestriction, UsesRemaining, UsesRestriction, Restrictions, Validation, CouponAction, CouponSchedule, Rule, DisplayMetaDict, DisplayMeta, Identifier, Validity, RuleDefinition, CouponAdd, Page, CouponsResult, SuccessMessage, OperationErrorResult, CouponUpdate, CouponPartialUpdate, CouponCreateResult, DisplayMeta1, Ownership1, CompareObject, ItemSizeMapping, ItemCriteria, DiscountOffer, DiscountRule, PaymentAllowValue1, PromotionPaymentModes, UserRegistered, PostOrder1, UsesRemaining1, UsesRestriction1, Restrictions1, PromotionSchedule, PromotionAction, PromotionAuthor, Visibility, PromotionDateMeta, PromotionListItem, PromotionsResult, PromotionAdd, PromotionAddResult, PromotionUpdate, PromotionUpdateResult, PromotionPartialUpdate, ActivePromosResult, Charges, DeliveryCharges, CartMetaConfigUpdate, CartMetaConfigAdd, Article, PriceAdjustmentRestrictions, Collection, PriceAdjustmentUpdate, PriceAdjustment, PriceAdjustmentResult, GetPriceAdjustmentResult, PriceAdjustmentAdd, DistributionRule, Distribution, DistributionLogic, CartItem, OpenapiCartDetailsCreation, CouponBreakup, DisplayBreakup, LoyaltyPoints, RawBreakup, CartBreakup, ProductImage, Tags, BaseInfo, ActionQuery, ProductActionParams, ProductActionPage, ProductAction, CategoryInfo, CartProduct, BasePrice, ArticlePriceInfo, StoreInfo, FulfillmentOptionSchema, StoreTimingSchema, StoreHoursSchema, PickupStoreDetailSchema, ProductArticle, Ownership2, DiscountRulesApp, AppliedFreeArticles, BuyRules, AppliedPromotion, PromiseFormatted, PromiseISOFormat, PromiseTimestamp, ShipmentPromise, CouponDetails, ProductPrice, ProductPriceInfo, ProductMaxQuantityInfo, CartProductIdentifer, ProductAvailabilitySize, ProductAvailability, PromoMeta, CartProductInfo, OpenapiCartDetailsResult, OpenApiErrorResult, ShippingAddress, OpenApiCartServiceabilityCreation, OpenApiCartServiceabilityResult, OpenApiFiles, CartItemMeta, MultiTenderPaymentMeta, MultiTenderPaymentMethod, OpenApiOrderItem, OpenApiPlatformCheckoutReq, OpenApiCheckoutResult, AbandonedCart, AbandonedCartResult, PaymentSelectionLock, CartCurrency, CartDetailCoupon, ChargesThreshold, DeliveryChargesConfig, CartCommonConfig, PlatformAlternatePickupPerson, CartDetailResult, AddProductCart, AddCartCreation, AddCartDetailResult, CartItemInfo, UpdateProductCart, FreeGiftItemCreation, UpdateCartCreation, UpdateCartDetailResult, OverrideCartItemPromo, OverrideCartItem, OverrideCheckoutReq, OverrideCheckoutResult, GetShareCartLinkCreation, GetShareCartLinkResult, SharedCartDetails, SharedCart, SharedCartResult, CartList, MultiCartResult, UpdateUserCartMapping, UserInfo, UserCartMappingResult, PlatformAddCartDetails, PlatformUpdateCartDetails, DeleteCartDetails, DeleteCartDetailResult, CartItemCountResult, DiscountRules, Coupon, PageCoupon, GetCouponResult, ApplyCouponDetails, GeoLocation, PlatformAddress, ValidationConfig, PlatformGetAddressesDetails, SaveAddressDetails, UpdateAddressDetails, DeleteAddressResult, PlatformSelectCartAddress, ShipmentArticle, PlatformShipmentDetails, PlatformCartShipmentsResult, UpdateCartShipmentItem, UpdateCartShipmentCreation, PlatformCartMetaCreation, CartMetaDetails, CartMetaMissingDetails, StaffCheckout, CustomerDetails, Files, CartCheckoutCustomMeta, OrderTag, PlatformCartCheckoutDetailCreation, CheckCart, CartCheckoutDetails, CartCheckoutResult, CartDeliveryModesDetails, PickupStoreDetail, StoreDetails, CartPaymentUpdate, CouponValidity, PaymentCouponValidate, PaymentMeta, PaymentMethod, PlatformCartCheckoutDetailV2Creation, UpdateCartPaymentRequestV2, PriceMinMax, ItemPriceDetails, ArticlePriceDetails, FreeGiftItems, PromotionOffer, PromotionOffersDetails, PromotionPaymentOffer, PromotionPaymentOffersDetails, ValidationError, OrderingSource };
|
|
2542
|
+
export { CouponDateMeta, Ownership, CouponAuthor, State, PaymentAllowValue, PaymentModes, PriceRange, PostOrder, BulkBundleRestriction, UsesRemaining, UsesRestriction, Restrictions, Validation, CouponAction, CouponSchedule, Rule, DisplayMetaDict, DisplayMeta, Identifier, Validity, RuleDefinition, CouponAdd, Page, CouponsResult, SuccessMessage, OperationErrorResult, CouponUpdate, CouponPartialUpdate, CouponCreateResult, DisplayMeta1, Ownership1, CompareObject, ItemSizeMapping, ItemCriteria, BuyRuleItemCriteria, DiscountOffer, DiscountRule, PaymentAllowValue1, PromotionPaymentModes, UserRegistered, PostOrder1, UsesRemaining1, UsesRestriction1, Restrictions1, PromotionSchedule, PromotionAction, PromotionAuthor, Visibility, PromotionDateMeta, PromotionListItem, PromotionsResult, PromotionAdd, PromotionAddResult, PromotionUpdate, PromotionUpdateResult, PromotionPartialUpdate, ActivePromosResult, Charges, DeliveryCharges, CartMetaConfigUpdate, CartMetaConfigAdd, Article, PriceAdjustmentRestrictions, Collection, PriceAdjustmentUpdate, PriceAdjustment, PriceAdjustmentResult, GetPriceAdjustmentResult, PriceAdjustmentAdd, DistributionRule, Distribution, DistributionLogic, CartItem, OpenapiCartDetailsCreation, CouponBreakup, DisplayBreakup, LoyaltyPoints, RawBreakup, CartBreakup, ProductImage, Tags, BaseInfo, ActionQuery, ProductActionParams, ProductActionPage, ProductAction, CategoryInfo, CartProduct, BasePrice, ArticlePriceInfo, StoreInfo, FulfillmentOptionSchema, StoreTimingSchema, StoreHoursSchema, PickupStoreDetailSchema, ProductArticle, Ownership2, DiscountRulesApp, AppliedFreeArticles, BuyRules, AppliedPromotion, PromiseFormatted, PromiseISOFormat, PromiseTimestamp, ShipmentPromise, CouponDetails, ProductPrice, ProductPriceInfo, ProductMaxQuantityInfo, CartProductIdentifer, ProductAvailabilitySize, ProductAvailability, PromoMeta, CartProductInfo, OpenapiCartDetailsResult, OpenApiErrorResult, ShippingAddress, OpenApiCartServiceabilityCreation, OpenApiCartServiceabilityResult, OpenApiFiles, CartItemMeta, MultiTenderPaymentMeta, MultiTenderPaymentMethod, OpenApiOrderItem, OpenApiPlatformCheckoutReq, OpenApiCheckoutResult, AbandonedCart, AbandonedCartResult, PaymentSelectionLock, CartCurrency, CartDetailCoupon, ChargesThreshold, DeliveryChargesConfig, CartCommonConfig, PlatformAlternatePickupPerson, CartDetailResult, AddProductCart, AddCartCreation, AddCartDetailResult, CartItemInfo, UpdateProductCart, FreeGiftItemCreation, UpdateCartCreation, UpdateCartDetailResult, OverrideCartItemPromo, OverrideCartItem, OverrideCheckoutReq, OverrideCheckoutResult, GetShareCartLinkCreation, GetShareCartLinkResult, SharedCartDetails, SharedCart, SharedCartResult, CartList, MultiCartResult, UpdateUserCartMapping, UserInfo, UserCartMappingResult, PlatformAddCartDetails, PlatformUpdateCartDetails, DeleteCartDetails, DeleteCartDetailResult, CartItemCountResult, DiscountRules, Coupon, PageCoupon, GetCouponResult, ApplyCouponDetails, GeoLocation, PlatformAddress, ValidationConfig, PlatformGetAddressesDetails, SaveAddressDetails, UpdateAddressDetails, DeleteAddressResult, PlatformSelectCartAddress, ShipmentArticle, PlatformShipmentDetails, PlatformCartShipmentsResult, UpdateCartShipmentItem, UpdateCartShipmentCreation, PlatformCartMetaCreation, CartMetaDetails, CartMetaMissingDetails, StaffCheckout, CustomerDetails, Files, CartCheckoutCustomMeta, OrderTag, PlatformCartCheckoutDetailCreation, CheckCart, CartCheckoutDetails, CartCheckoutResult, CartDeliveryModesDetails, PickupStoreDetail, StoreDetails, CartPaymentUpdate, CouponValidity, PaymentCouponValidate, PaymentMeta, PaymentMethod, PlatformCartCheckoutDetailV2Creation, UpdateCartPaymentRequestV2, PriceMinMax, ItemPriceDetails, ArticlePriceDetails, FreeGiftItems, PromotionOffer, PromotionOffersDetails, PromotionPaymentOffer, PromotionPaymentOffersDetails, ValidationError, OrderingSource };
|
|
2412
2543
|
}
|
|
2413
2544
|
/** @returns {CouponDateMeta} */
|
|
2414
2545
|
declare function CouponDateMeta(): CouponDateMeta;
|
|
@@ -3180,6 +3311,124 @@ type ItemCriteria = {
|
|
|
3180
3311
|
*/
|
|
3181
3312
|
item_sku?: string[];
|
|
3182
3313
|
};
|
|
3314
|
+
/** @returns {BuyRuleItemCriteria} */
|
|
3315
|
+
declare function BuyRuleItemCriteria(): BuyRuleItemCriteria;
|
|
3316
|
+
type BuyRuleItemCriteria = {
|
|
3317
|
+
cart_quantity?: CompareObject;
|
|
3318
|
+
/**
|
|
3319
|
+
* - List of all zones on which promotion
|
|
3320
|
+
* is applicable
|
|
3321
|
+
*/
|
|
3322
|
+
available_zones?: string[];
|
|
3323
|
+
/**
|
|
3324
|
+
* - List of all company id on which
|
|
3325
|
+
* promotion is not applicable
|
|
3326
|
+
*/
|
|
3327
|
+
item_exclude_company?: number[];
|
|
3328
|
+
/**
|
|
3329
|
+
* - List of all item ids on which promotion is applicable
|
|
3330
|
+
*/
|
|
3331
|
+
item_id?: number[];
|
|
3332
|
+
/**
|
|
3333
|
+
* - List of all L1 category on which
|
|
3334
|
+
* promotion is applicable
|
|
3335
|
+
*/
|
|
3336
|
+
item_l1_category?: number[];
|
|
3337
|
+
cart_total?: CompareObject;
|
|
3338
|
+
cart_unique_item_quantity?: CompareObject;
|
|
3339
|
+
cart_unique_item_amount?: CompareObject;
|
|
3340
|
+
/**
|
|
3341
|
+
* - List of all item ids on which
|
|
3342
|
+
* promotion is not applicable
|
|
3343
|
+
*/
|
|
3344
|
+
item_exclude_id?: number[];
|
|
3345
|
+
/**
|
|
3346
|
+
* - Boolean flag set true to applicable the
|
|
3347
|
+
* promotion for all products
|
|
3348
|
+
*/
|
|
3349
|
+
all_items?: boolean;
|
|
3350
|
+
/**
|
|
3351
|
+
* - List of all item ids on
|
|
3352
|
+
* which promotion is not applicable
|
|
3353
|
+
*/
|
|
3354
|
+
item_exclude_l1_category?: number[];
|
|
3355
|
+
/**
|
|
3356
|
+
* - List of all item sizes on which promotion
|
|
3357
|
+
* is applicable
|
|
3358
|
+
*/
|
|
3359
|
+
item_size?: string[];
|
|
3360
|
+
/**
|
|
3361
|
+
* - List of all item store ids on which
|
|
3362
|
+
* promotion is applicable
|
|
3363
|
+
*/
|
|
3364
|
+
item_store?: number[];
|
|
3365
|
+
/**
|
|
3366
|
+
* - List of all item sku on which
|
|
3367
|
+
* promotion is not applicable
|
|
3368
|
+
*/
|
|
3369
|
+
item_exclude_sku?: string[];
|
|
3370
|
+
/**
|
|
3371
|
+
* - List of all departments ids on which
|
|
3372
|
+
* promotion is applicable
|
|
3373
|
+
*/
|
|
3374
|
+
item_department?: number[];
|
|
3375
|
+
/**
|
|
3376
|
+
* - List of all item store ids on
|
|
3377
|
+
* which promotion is not applicable
|
|
3378
|
+
*/
|
|
3379
|
+
item_exclude_store?: number[];
|
|
3380
|
+
/**
|
|
3381
|
+
* - List of all brand ids on which promotion
|
|
3382
|
+
* is applicable
|
|
3383
|
+
*/
|
|
3384
|
+
item_brand?: number[];
|
|
3385
|
+
/**
|
|
3386
|
+
* - List of all department ids
|
|
3387
|
+
* on which promotion is not applicable
|
|
3388
|
+
*/
|
|
3389
|
+
item_exclude_department?: number[];
|
|
3390
|
+
/**
|
|
3391
|
+
* - List of all L3 category on
|
|
3392
|
+
* which promotion is not applicable
|
|
3393
|
+
*/
|
|
3394
|
+
item_exclude_category?: number[];
|
|
3395
|
+
/**
|
|
3396
|
+
* - List of all L3 category on which
|
|
3397
|
+
* promotion is applicable
|
|
3398
|
+
*/
|
|
3399
|
+
item_category?: number[];
|
|
3400
|
+
buy_rules?: string[];
|
|
3401
|
+
/**
|
|
3402
|
+
* - List of all brand ids on which
|
|
3403
|
+
* promotion is not applicable
|
|
3404
|
+
*/
|
|
3405
|
+
item_exclude_brand?: number[];
|
|
3406
|
+
/**
|
|
3407
|
+
* - List of all L2 category on which
|
|
3408
|
+
* promotion is applicable
|
|
3409
|
+
*/
|
|
3410
|
+
item_l2_category?: number[];
|
|
3411
|
+
/**
|
|
3412
|
+
* - List of all company ids on which
|
|
3413
|
+
* promotion is applicable
|
|
3414
|
+
*/
|
|
3415
|
+
item_company?: number[];
|
|
3416
|
+
/**
|
|
3417
|
+
* - List of all product tags on which
|
|
3418
|
+
* promotion is applicable
|
|
3419
|
+
*/
|
|
3420
|
+
item_tags?: string[];
|
|
3421
|
+
/**
|
|
3422
|
+
* - List of all L2 category on
|
|
3423
|
+
* which promotion is not applicable
|
|
3424
|
+
*/
|
|
3425
|
+
item_exclude_l2_category?: number[];
|
|
3426
|
+
/**
|
|
3427
|
+
* - List of all item sku on which promotion is applicable
|
|
3428
|
+
*/
|
|
3429
|
+
item_sku?: string[];
|
|
3430
|
+
meta?: ItemSizeMapping;
|
|
3431
|
+
};
|
|
3183
3432
|
/** @returns {DiscountOffer} */
|
|
3184
3433
|
declare function DiscountOffer(): DiscountOffer;
|
|
3185
3434
|
type DiscountOffer = {
|
|
@@ -3605,7 +3854,7 @@ type PromotionAdd = {
|
|
|
3605
3854
|
* - Current application id of sales channel
|
|
3606
3855
|
*/
|
|
3607
3856
|
application_id: string;
|
|
3608
|
-
buy_rules?:
|
|
3857
|
+
buy_rules?: BuyRuleItemCriteria;
|
|
3609
3858
|
/**
|
|
3610
3859
|
* - Set extra properties in promotion
|
|
3611
3860
|
*/
|
|
@@ -3859,7 +4108,7 @@ type PromotionUpdateResult = {
|
|
|
3859
4108
|
* - Current application id of sales channel
|
|
3860
4109
|
*/
|
|
3861
4110
|
application_id: string;
|
|
3862
|
-
buy_rules?:
|
|
4111
|
+
buy_rules?: BuyRuleItemCriteria;
|
|
3863
4112
|
/**
|
|
3864
4113
|
* - Set extra properties in promotion
|
|
3865
4114
|
*/
|
|
@@ -5337,7 +5586,7 @@ type ShippingAddress = {
|
|
|
5337
5586
|
/**
|
|
5338
5587
|
* - Area code of the address
|
|
5339
5588
|
*/
|
|
5340
|
-
area_code
|
|
5589
|
+
area_code?: string;
|
|
5341
5590
|
/**
|
|
5342
5591
|
* - Country iso code for address
|
|
5343
5592
|
*/
|
|
@@ -6702,9 +6951,10 @@ type MultiCartResult = {
|
|
|
6702
6951
|
declare function UpdateUserCartMapping(): UpdateUserCartMapping;
|
|
6703
6952
|
type UpdateUserCartMapping = {
|
|
6704
6953
|
/**
|
|
6705
|
-
* -
|
|
6954
|
+
* - Customer user ID to associate with the cart.
|
|
6955
|
+
* Send null to remove existing mapping of customer from cart.
|
|
6706
6956
|
*/
|
|
6707
|
-
user_id
|
|
6957
|
+
user_id?: string;
|
|
6708
6958
|
};
|
|
6709
6959
|
/** @returns {UserInfo} */
|
|
6710
6960
|
declare function UserInfo(): UserInfo;
|
|
@@ -8437,4 +8687,4 @@ type ValidationError = {
|
|
|
8437
8687
|
* @returns {OrderingSource}
|
|
8438
8688
|
*/
|
|
8439
8689
|
declare function OrderingSource(): OrderingSource;
|
|
8440
|
-
type OrderingSource = "storefront" | "store_os_pos" | "kiosk" | "scan_go" | "smart_trolley" | "marketplace" | "social_commerce" | "ondc";
|
|
8690
|
+
type OrderingSource = "storefront" | "store_os_pos" | "kiosk" | "scan_go" | "smart_trolley" | "gofynd" | "uniket" | "marketplace" | "social_commerce" | "ondc" | "nexus" | "nykaa_fashion" | "etsy" | "vuivui" | "zilingo" | "firstcry" | "bukalapak" | "myntra_ppmp" | "lazada" | "tiktok" | "sfcc" | "debenhams" | "prestomall" | "meesho" | "amazon_vdf" | "bigcommerce" | "sendo" | "storehippo" | "cdiscount" | "nykaa" | "trendyol" | "weloveshopping" | "jollee" | "wish" | "tiki" | "central_online" | "q10" | "cred" | "walmart" | "snapdeal" | "flipkart" | "blibli" | "ajio_jit" | "pharmeasy" | "ezmall" | "adobe_commerce" | "kartmax" | "shopee" | "zalora" | "prestashop" | "smytten" | "amazon_sc" | "urbanpiper" | "flipkart_quick" | "woocommerce" | "zivame" | "lelong" | "facebook" | "jiomart" | "gmc" | "robins" | "akulaku" | "noon" | "tatacliq" | "kartrocket" | "inorbit" | "ajio_business" | "swiggy" | "asos" | "tokopedia" | "limeroad" | "myntra_omni" | "spoyl" | "amazon_mlf" | "fulfilled_by_lazada" | "ebay" | "jd" | "amazon_pharmacy" | "ajio_vms" | "daraz" | "oker" | "flipkart_b2b" | "amazon_mlf_ss" | "woovly" | "tata1mg" | "zomato" | "shopify";
|