@gofynd/fdk-client-javascript 1.4.15-beta.10 → 1.4.15-beta.12

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.
@@ -538,6 +538,24 @@ export = CartPlatformModel;
538
538
  * @property {Object} [meta]
539
539
  * @property {string} cart_id - The ID of the cart
540
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
+ */
541
559
  /**
542
560
  * @typedef PriceAdjustment
543
561
  * @property {number} value
@@ -592,6 +610,24 @@ export = CartPlatformModel;
592
610
  * @property {boolean} [auto_remove] - This field if set true will remove mop
593
611
  * type price adjustment.
594
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]
630
+ */
595
631
  /**
596
632
  * @typedef CartItem
597
633
  * @property {number} [quantity]
@@ -1348,6 +1384,7 @@ export = CartPlatformModel;
1348
1384
  /**
1349
1385
  * @typedef CartItemCountResponse
1350
1386
  * @property {number} [user_cart_items_count] - Item count present in cart
1387
+ * @property {number} [user_cart_article_count] - Article count present in cart.
1351
1388
  */
1352
1389
  /**
1353
1390
  * @typedef Coupon
@@ -1546,6 +1583,45 @@ export = CartPlatformModel;
1546
1583
  * @property {string} key
1547
1584
  * @property {string[]} values
1548
1585
  */
1586
+ /**
1587
+ * @typedef CartCheckoutCustomMeta
1588
+ * @property {string} key
1589
+ * @property {string} value
1590
+ */
1591
+ /**
1592
+ * @typedef PlatformCartCheckoutDetailRequest
1593
+ * @property {CartCheckoutCustomMeta[]} [custom_meta]
1594
+ * @property {string} [address_id]
1595
+ * @property {string} [payment_identifier]
1596
+ * @property {Object} [payment_params]
1597
+ * @property {boolean} [payment_auto_confirm]
1598
+ * @property {string} id
1599
+ * @property {boolean} [pos]
1600
+ * @property {string} [billing_address_id]
1601
+ * @property {string} [merchant_code]
1602
+ * @property {string} [aggregator]
1603
+ * @property {number} [pick_at_store_uid]
1604
+ * @property {string} [device_id]
1605
+ * @property {Object} [delivery_address]
1606
+ * @property {string} payment_mode
1607
+ * @property {string} [checkout_mode]
1608
+ * @property {CustomerDetails} [customer_details] - Customer details
1609
+ * @property {Object} [meta]
1610
+ * @property {StaffCheckout} [staff]
1611
+ * @property {string} [employee_code]
1612
+ * @property {Object} [billing_address]
1613
+ * @property {string} [callback_url]
1614
+ * @property {string} [user_id]
1615
+ * @property {Object} [extra_meta]
1616
+ * @property {string} order_type
1617
+ * @property {Files[]} [files] - List of file url
1618
+ * @property {number} [ordering_store]
1619
+ * @property {Object} [payment_extra_identifiers]
1620
+ * @property {string} [iin]
1621
+ * @property {string} [network]
1622
+ * @property {string} [type]
1623
+ * @property {string} [card_id]
1624
+ */
1549
1625
  /**
1550
1626
  * @typedef CheckCart
1551
1627
  * @property {string} [coupon_text]
@@ -1758,10 +1834,27 @@ export = CartPlatformModel;
1758
1834
  * @property {boolean} [success]
1759
1835
  * @property {PromotionPaymentOffer[]} [promotions]
1760
1836
  */
1837
+ /**
1838
+ * @typedef BulkPriceAdjustmentUpdateRequest
1839
+ * @property {string} [cart_id]
1840
+ * @property {boolean} [is_authenticated]
1841
+ * @property {BulkPriceAdjustmentUpdate[]} [items]
1842
+ */
1843
+ /**
1844
+ * @typedef BulkPriceAdjustmentResponse
1845
+ * @property {boolean} [success]
1846
+ * @property {PriceAdjustmentResponse[]} [data]
1847
+ */
1848
+ /**
1849
+ * @typedef BulkPriceAdjustmentAddRequest
1850
+ * @property {string} [cart_id]
1851
+ * @property {boolean} [is_authenticated]
1852
+ * @property {BulkPriceAdjustmentAdd[]} [items]
1853
+ */
1761
1854
  declare class CartPlatformModel {
1762
1855
  }
1763
1856
  declare namespace CartPlatformModel {
1764
- 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 };
1857
+ 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, CartCheckoutCustomMeta, PlatformCartCheckoutDetailRequest, CheckCart, CartCheckoutResponse, CartDeliveryModesResponse, PickupStoreDetail, StoreDetailsResponse, UpdateCartPaymentRequest, CouponValidity, PaymentCouponValidate, PaymentMeta, PaymentMethod, PlatformCartCheckoutDetailV2Request, UpdateCartPaymentRequestV2, PriceMinMax, ItemPriceDetails, FreeGiftItems, PromotionOffer, PromotionOffersResponse, PromotionPaymentOffer, PromotionPaymentOffersResponse, BulkPriceAdjustmentUpdateRequest, BulkPriceAdjustmentResponse, BulkPriceAdjustmentAddRequest };
1765
1858
  }
1766
1859
  /** @returns {CouponDateMeta} */
1767
1860
  declare function CouponDateMeta(): CouponDateMeta;
@@ -2524,6 +2617,49 @@ type PriceAdjustmentUpdate = {
2524
2617
  */
2525
2618
  cart_id: string;
2526
2619
  };
2620
+ /** @returns {BulkPriceAdjustmentUpdate} */
2621
+ declare function BulkPriceAdjustmentUpdate(): BulkPriceAdjustmentUpdate;
2622
+ type BulkPriceAdjustmentUpdate = {
2623
+ /**
2624
+ * - The entity that modified the field
2625
+ */
2626
+ modified_by?: string;
2627
+ value: number;
2628
+ /**
2629
+ * - The message associated with the price adjustment
2630
+ */
2631
+ message: string;
2632
+ /**
2633
+ * - The date and time when the expiry should be applied
2634
+ */
2635
+ apply_expiry?: string;
2636
+ /**
2637
+ * - Restrictions applied
2638
+ * to this particular item or product, including whether or not cancellation
2639
+ * and return are allowed.
2640
+ */
2641
+ restrictions?: PriceAdjustmentRestrictions;
2642
+ /**
2643
+ * - Flag indicating whether the
2644
+ * distribution should is done at the article level
2645
+ */
2646
+ article_level_distribution: boolean;
2647
+ collection: Collection;
2648
+ /**
2649
+ * - Type of price adjusment
2650
+ */
2651
+ type: string;
2652
+ /**
2653
+ * - Flag indicating whether refunds are
2654
+ * allowed (default: False)
2655
+ */
2656
+ allowed_refund?: boolean;
2657
+ /**
2658
+ * - The list of article object in the price adjustment
2659
+ */
2660
+ article_ids: Article[];
2661
+ meta?: any;
2662
+ };
2527
2663
  /** @returns {PriceAdjustment} */
2528
2664
  declare function PriceAdjustment(): PriceAdjustment;
2529
2665
  type PriceAdjustment = {
@@ -2645,6 +2781,49 @@ type PriceAdjustmentAdd = {
2645
2781
  */
2646
2782
  auto_remove?: boolean;
2647
2783
  };
2784
+ /** @returns {BulkPriceAdjustmentAdd} */
2785
+ declare function BulkPriceAdjustmentAdd(): BulkPriceAdjustmentAdd;
2786
+ type BulkPriceAdjustmentAdd = {
2787
+ value: number;
2788
+ /**
2789
+ * - The message associated with the price adjustment
2790
+ */
2791
+ message: string;
2792
+ /**
2793
+ * - The date and time when the expiry should be applied
2794
+ */
2795
+ apply_expiry?: string;
2796
+ /**
2797
+ * - This field accepts
2798
+ * the restrictions applied to this particular item or service, including
2799
+ * whether or not cancellation and return are allowed, etc
2800
+ */
2801
+ restrictions?: PriceAdjustmentRestrictions;
2802
+ /**
2803
+ * - The entity that created the field
2804
+ */
2805
+ created_by?: string;
2806
+ /**
2807
+ * - Flag indicating whether the
2808
+ * distribution should is done at the article level
2809
+ */
2810
+ article_level_distribution: boolean;
2811
+ collection: Collection;
2812
+ /**
2813
+ * - Type of price adjusment
2814
+ */
2815
+ type: string;
2816
+ /**
2817
+ * - Flag indicating whether refunds are
2818
+ * allowed (default: False)
2819
+ */
2820
+ allowed_refund?: boolean;
2821
+ /**
2822
+ * - The list of article object in the price adjustment
2823
+ */
2824
+ article_ids: Article[];
2825
+ meta?: any;
2826
+ };
2648
2827
  /** @returns {CartItem} */
2649
2828
  declare function CartItem(): CartItem;
2650
2829
  type CartItem = {
@@ -3650,6 +3829,10 @@ type CartItemCountResponse = {
3650
3829
  * - Item count present in cart
3651
3830
  */
3652
3831
  user_cart_items_count?: number;
3832
+ /**
3833
+ * - Article count present in cart.
3834
+ */
3835
+ user_cart_article_count?: number;
3653
3836
  };
3654
3837
  /** @returns {Coupon} */
3655
3838
  declare function Coupon(): Coupon;
@@ -3891,6 +4074,53 @@ type Files = {
3891
4074
  key: string;
3892
4075
  values: string[];
3893
4076
  };
4077
+ /** @returns {CartCheckoutCustomMeta} */
4078
+ declare function CartCheckoutCustomMeta(): CartCheckoutCustomMeta;
4079
+ type CartCheckoutCustomMeta = {
4080
+ key: string;
4081
+ value: string;
4082
+ };
4083
+ /** @returns {PlatformCartCheckoutDetailRequest} */
4084
+ declare function PlatformCartCheckoutDetailRequest(): PlatformCartCheckoutDetailRequest;
4085
+ type PlatformCartCheckoutDetailRequest = {
4086
+ custom_meta?: CartCheckoutCustomMeta[];
4087
+ address_id?: string;
4088
+ payment_identifier?: string;
4089
+ payment_params?: any;
4090
+ payment_auto_confirm?: boolean;
4091
+ id: string;
4092
+ pos?: boolean;
4093
+ billing_address_id?: string;
4094
+ merchant_code?: string;
4095
+ aggregator?: string;
4096
+ pick_at_store_uid?: number;
4097
+ device_id?: string;
4098
+ delivery_address?: any;
4099
+ payment_mode: string;
4100
+ checkout_mode?: string;
4101
+ /**
4102
+ * - Customer details
4103
+ */
4104
+ customer_details?: CustomerDetails;
4105
+ meta?: any;
4106
+ staff?: StaffCheckout;
4107
+ employee_code?: string;
4108
+ billing_address?: any;
4109
+ callback_url?: string;
4110
+ user_id?: string;
4111
+ extra_meta?: any;
4112
+ order_type: string;
4113
+ /**
4114
+ * - List of file url
4115
+ */
4116
+ files?: Files[];
4117
+ ordering_store?: number;
4118
+ payment_extra_identifiers?: any;
4119
+ iin?: string;
4120
+ network?: string;
4121
+ type?: string;
4122
+ card_id?: string;
4123
+ };
3894
4124
  /** @returns {CheckCart} */
3895
4125
  declare function CheckCart(): CheckCart;
3896
4126
  type CheckCart = {
@@ -4209,3 +4439,23 @@ type PromotionPaymentOffersResponse = {
4209
4439
  success?: boolean;
4210
4440
  promotions?: PromotionPaymentOffer[];
4211
4441
  };
4442
+ /** @returns {BulkPriceAdjustmentUpdateRequest} */
4443
+ declare function BulkPriceAdjustmentUpdateRequest(): BulkPriceAdjustmentUpdateRequest;
4444
+ type BulkPriceAdjustmentUpdateRequest = {
4445
+ cart_id?: string;
4446
+ is_authenticated?: boolean;
4447
+ items?: BulkPriceAdjustmentUpdate[];
4448
+ };
4449
+ /** @returns {BulkPriceAdjustmentResponse} */
4450
+ declare function BulkPriceAdjustmentResponse(): BulkPriceAdjustmentResponse;
4451
+ type BulkPriceAdjustmentResponse = {
4452
+ success?: boolean;
4453
+ data?: PriceAdjustmentResponse[];
4454
+ };
4455
+ /** @returns {BulkPriceAdjustmentAddRequest} */
4456
+ declare function BulkPriceAdjustmentAddRequest(): BulkPriceAdjustmentAddRequest;
4457
+ type BulkPriceAdjustmentAddRequest = {
4458
+ cart_id?: string;
4459
+ is_authenticated?: boolean;
4460
+ items?: BulkPriceAdjustmentAdd[];
4461
+ };
@@ -599,6 +599,25 @@ const Joi = require("joi");
599
599
  * @property {string} cart_id - The ID of the cart
600
600
  */
601
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
+
602
621
  /**
603
622
  * @typedef PriceAdjustment
604
623
  * @property {number} value
@@ -657,6 +676,25 @@ const Joi = require("joi");
657
676
  * type price adjustment.
658
677
  */
659
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]
696
+ */
697
+
660
698
  /**
661
699
  * @typedef CartItem
662
700
  * @property {number} [quantity]
@@ -1493,6 +1531,7 @@ const Joi = require("joi");
1493
1531
  /**
1494
1532
  * @typedef CartItemCountResponse
1495
1533
  * @property {number} [user_cart_items_count] - Item count present in cart
1534
+ * @property {number} [user_cart_article_count] - Article count present in cart.
1496
1535
  */
1497
1536
 
1498
1537
  /**
@@ -1714,6 +1753,47 @@ const Joi = require("joi");
1714
1753
  * @property {string[]} values
1715
1754
  */
1716
1755
 
1756
+ /**
1757
+ * @typedef CartCheckoutCustomMeta
1758
+ * @property {string} key
1759
+ * @property {string} value
1760
+ */
1761
+
1762
+ /**
1763
+ * @typedef PlatformCartCheckoutDetailRequest
1764
+ * @property {CartCheckoutCustomMeta[]} [custom_meta]
1765
+ * @property {string} [address_id]
1766
+ * @property {string} [payment_identifier]
1767
+ * @property {Object} [payment_params]
1768
+ * @property {boolean} [payment_auto_confirm]
1769
+ * @property {string} id
1770
+ * @property {boolean} [pos]
1771
+ * @property {string} [billing_address_id]
1772
+ * @property {string} [merchant_code]
1773
+ * @property {string} [aggregator]
1774
+ * @property {number} [pick_at_store_uid]
1775
+ * @property {string} [device_id]
1776
+ * @property {Object} [delivery_address]
1777
+ * @property {string} payment_mode
1778
+ * @property {string} [checkout_mode]
1779
+ * @property {CustomerDetails} [customer_details] - Customer details
1780
+ * @property {Object} [meta]
1781
+ * @property {StaffCheckout} [staff]
1782
+ * @property {string} [employee_code]
1783
+ * @property {Object} [billing_address]
1784
+ * @property {string} [callback_url]
1785
+ * @property {string} [user_id]
1786
+ * @property {Object} [extra_meta]
1787
+ * @property {string} order_type
1788
+ * @property {Files[]} [files] - List of file url
1789
+ * @property {number} [ordering_store]
1790
+ * @property {Object} [payment_extra_identifiers]
1791
+ * @property {string} [iin]
1792
+ * @property {string} [network]
1793
+ * @property {string} [type]
1794
+ * @property {string} [card_id]
1795
+ */
1796
+
1717
1797
  /**
1718
1798
  * @typedef CheckCart
1719
1799
  * @property {string} [coupon_text]
@@ -1945,6 +2025,26 @@ const Joi = require("joi");
1945
2025
  * @property {PromotionPaymentOffer[]} [promotions]
1946
2026
  */
1947
2027
 
2028
+ /**
2029
+ * @typedef BulkPriceAdjustmentUpdateRequest
2030
+ * @property {string} [cart_id]
2031
+ * @property {boolean} [is_authenticated]
2032
+ * @property {BulkPriceAdjustmentUpdate[]} [items]
2033
+ */
2034
+
2035
+ /**
2036
+ * @typedef BulkPriceAdjustmentResponse
2037
+ * @property {boolean} [success]
2038
+ * @property {PriceAdjustmentResponse[]} [data]
2039
+ */
2040
+
2041
+ /**
2042
+ * @typedef BulkPriceAdjustmentAddRequest
2043
+ * @property {string} [cart_id]
2044
+ * @property {boolean} [is_authenticated]
2045
+ * @property {BulkPriceAdjustmentAdd[]} [items]
2046
+ */
2047
+
1948
2048
  class CartPlatformModel {
1949
2049
  /** @returns {CouponDateMeta} */
1950
2050
  static CouponDateMeta() {
@@ -2661,6 +2761,23 @@ class CartPlatformModel {
2661
2761
  });
2662
2762
  }
2663
2763
 
2764
+ /** @returns {BulkPriceAdjustmentUpdate} */
2765
+ static BulkPriceAdjustmentUpdate() {
2766
+ return Joi.object({
2767
+ modified_by: Joi.string().allow(""),
2768
+ value: Joi.number().required(),
2769
+ message: Joi.string().allow("").required(),
2770
+ apply_expiry: Joi.string().allow(""),
2771
+ restrictions: CartPlatformModel.PriceAdjustmentRestrictions(),
2772
+ article_level_distribution: Joi.boolean().required(),
2773
+ collection: CartPlatformModel.Collection().required(),
2774
+ type: Joi.string().allow("").required(),
2775
+ allowed_refund: Joi.boolean(),
2776
+ article_ids: Joi.array().items(CartPlatformModel.Article()).required(),
2777
+ meta: Joi.any(),
2778
+ });
2779
+ }
2780
+
2664
2781
  /** @returns {PriceAdjustment} */
2665
2782
  static PriceAdjustment() {
2666
2783
  return Joi.object({
@@ -2715,6 +2832,23 @@ class CartPlatformModel {
2715
2832
  });
2716
2833
  }
2717
2834
 
2835
+ /** @returns {BulkPriceAdjustmentAdd} */
2836
+ static BulkPriceAdjustmentAdd() {
2837
+ return Joi.object({
2838
+ value: Joi.number().required(),
2839
+ message: Joi.string().allow("").required(),
2840
+ apply_expiry: Joi.string().allow(""),
2841
+ restrictions: CartPlatformModel.PriceAdjustmentRestrictions(),
2842
+ created_by: Joi.string().allow(""),
2843
+ article_level_distribution: Joi.boolean().required(),
2844
+ collection: CartPlatformModel.Collection().required(),
2845
+ type: Joi.string().allow("").required(),
2846
+ allowed_refund: Joi.boolean(),
2847
+ article_ids: Joi.array().items(CartPlatformModel.Article()).required(),
2848
+ meta: Joi.any(),
2849
+ });
2850
+ }
2851
+
2718
2852
  /** @returns {CartItem} */
2719
2853
  static CartItem() {
2720
2854
  return Joi.object({
@@ -3721,6 +3855,7 @@ class CartPlatformModel {
3721
3855
  static CartItemCountResponse() {
3722
3856
  return Joi.object({
3723
3857
  user_cart_items_count: Joi.number(),
3858
+ user_cart_article_count: Joi.number(),
3724
3859
  });
3725
3860
  }
3726
3861
 
@@ -3992,6 +4127,53 @@ class CartPlatformModel {
3992
4127
  });
3993
4128
  }
3994
4129
 
4130
+ /** @returns {CartCheckoutCustomMeta} */
4131
+ static CartCheckoutCustomMeta() {
4132
+ return Joi.object({
4133
+ key: Joi.string().allow("").required(),
4134
+ value: Joi.string().allow("").required(),
4135
+ });
4136
+ }
4137
+
4138
+ /** @returns {PlatformCartCheckoutDetailRequest} */
4139
+ static PlatformCartCheckoutDetailRequest() {
4140
+ return Joi.object({
4141
+ custom_meta: Joi.array().items(
4142
+ CartPlatformModel.CartCheckoutCustomMeta()
4143
+ ),
4144
+ address_id: Joi.string().allow(""),
4145
+ payment_identifier: Joi.string().allow("").allow(null),
4146
+ payment_params: Joi.object().pattern(/\S/, Joi.any()).allow(null, ""),
4147
+ payment_auto_confirm: Joi.boolean(),
4148
+ id: Joi.string().allow("").required(),
4149
+ pos: Joi.boolean(),
4150
+ billing_address_id: Joi.string().allow(""),
4151
+ merchant_code: Joi.string().allow(""),
4152
+ aggregator: Joi.string().allow(""),
4153
+ pick_at_store_uid: Joi.number().allow(null),
4154
+ device_id: Joi.string().allow("").allow(null),
4155
+ delivery_address: Joi.object().pattern(/\S/, Joi.any()),
4156
+ payment_mode: Joi.string().allow("").required(),
4157
+ checkout_mode: Joi.string().allow(""),
4158
+ customer_details: CartPlatformModel.CustomerDetails(),
4159
+ meta: Joi.object().pattern(/\S/, Joi.any()),
4160
+ staff: CartPlatformModel.StaffCheckout(),
4161
+ employee_code: Joi.string().allow("").allow(null),
4162
+ billing_address: Joi.object().pattern(/\S/, Joi.any()),
4163
+ callback_url: Joi.string().allow("").allow(null),
4164
+ user_id: Joi.string().allow("").allow(null),
4165
+ extra_meta: Joi.object().pattern(/\S/, Joi.any()),
4166
+ order_type: Joi.string().allow("").required(),
4167
+ files: Joi.array().items(CartPlatformModel.Files()),
4168
+ ordering_store: Joi.number().allow(null),
4169
+ payment_extra_identifiers: Joi.object().pattern(/\S/, Joi.any()),
4170
+ iin: Joi.string().allow(""),
4171
+ network: Joi.string().allow(""),
4172
+ type: Joi.string().allow(""),
4173
+ card_id: Joi.string().allow(""),
4174
+ });
4175
+ }
4176
+
3995
4177
  /** @returns {CheckCart} */
3996
4178
  static CheckCart() {
3997
4179
  return Joi.object({
@@ -4264,5 +4446,31 @@ class CartPlatformModel {
4264
4446
  promotions: Joi.array().items(CartPlatformModel.PromotionPaymentOffer()),
4265
4447
  });
4266
4448
  }
4449
+
4450
+ /** @returns {BulkPriceAdjustmentUpdateRequest} */
4451
+ static BulkPriceAdjustmentUpdateRequest() {
4452
+ return Joi.object({
4453
+ cart_id: Joi.string().allow(""),
4454
+ is_authenticated: Joi.boolean(),
4455
+ items: Joi.array().items(CartPlatformModel.BulkPriceAdjustmentUpdate()),
4456
+ });
4457
+ }
4458
+
4459
+ /** @returns {BulkPriceAdjustmentResponse} */
4460
+ static BulkPriceAdjustmentResponse() {
4461
+ return Joi.object({
4462
+ success: Joi.boolean(),
4463
+ data: Joi.array().items(CartPlatformModel.PriceAdjustmentResponse()),
4464
+ });
4465
+ }
4466
+
4467
+ /** @returns {BulkPriceAdjustmentAddRequest} */
4468
+ static BulkPriceAdjustmentAddRequest() {
4469
+ return Joi.object({
4470
+ cart_id: Joi.string().allow(""),
4471
+ is_authenticated: Joi.boolean(),
4472
+ items: Joi.array().items(CartPlatformModel.BulkPriceAdjustmentAdd()),
4473
+ });
4474
+ }
4267
4475
  }
4268
4476
  module.exports = CartPlatformModel;
@@ -152,16 +152,14 @@ declare class FileStorage {
152
152
  * @param {string} namespace
153
153
  * @param {number} size
154
154
  * @param {number} tags
155
- * @param {string} enc_key
156
155
  */
157
- upload({ data, file_name, content_type, namespace, size, tags, enc_key, }?: {
156
+ upload({ data, file_name, content_type, namespace, size, tags, }?: {
158
157
  data: any;
159
158
  file_name: any;
160
159
  content_type: any;
161
160
  namespace: any;
162
161
  size: any;
163
162
  tags: any;
164
- enc_key: any;
165
163
  }): Promise<any>;
166
164
  }
167
165
  import FileStoragePlatformApplicationValidator = require("./FileStoragePlatformApplicationValidator");
@@ -1045,7 +1045,6 @@ class FileStorage {
1045
1045
  * @param {string} namespace
1046
1046
  * @param {number} size
1047
1047
  * @param {number} tags
1048
- * @param {string} enc_key
1049
1048
  */
1050
1049
  FileStorage.prototype.upload = function ({
1051
1050
  data,
@@ -1054,7 +1053,6 @@ FileStorage.prototype.upload = function ({
1054
1053
  namespace,
1055
1054
  size,
1056
1055
  tags,
1057
- enc_key,
1058
1056
  } = {}) {
1059
1057
  return new Promise(async (resolve, reject) => {
1060
1058
  try {
@@ -1065,7 +1063,6 @@ FileStorage.prototype.upload = function ({
1065
1063
  content_type,
1066
1064
  size: size,
1067
1065
  tags: tags,
1068
- enc_key: enc_key,
1069
1066
  },
1070
1067
  });
1071
1068
  if (dataObj.upload && dataObj.upload.url) {
@@ -69,16 +69,14 @@ declare class FileStorage {
69
69
  * @param {string} namespace
70
70
  * @param {number} size
71
71
  * @param {number} tags
72
- * @param {string} enc_key
73
72
  */
74
- upload({ data, file_name, content_type, namespace, size, tags, enc_key, }?: {
73
+ upload({ data, file_name, content_type, namespace, size, tags, }?: {
75
74
  data: any;
76
75
  file_name: any;
77
76
  content_type: any;
78
77
  namespace: any;
79
78
  size: any;
80
79
  tags: any;
81
- enc_key: any;
82
80
  }): Promise<any>;
83
81
  }
84
82
  import FileStoragePlatformValidator = require("./FileStoragePlatformValidator");
@@ -510,7 +510,6 @@ class FileStorage {
510
510
  * @param {string} namespace
511
511
  * @param {number} size
512
512
  * @param {number} tags
513
- * @param {string} enc_key
514
513
  */
515
514
  FileStorage.prototype.upload = function ({
516
515
  data,
@@ -519,7 +518,6 @@ FileStorage.prototype.upload = function ({
519
518
  namespace,
520
519
  size,
521
520
  tags,
522
- enc_key,
523
521
  } = {}) {
524
522
  return new Promise(async (resolve, reject) => {
525
523
  try {
@@ -530,7 +528,6 @@ FileStorage.prototype.upload = function ({
530
528
  content_type,
531
529
  size: size,
532
530
  tags: tags,
533
- enc_key: enc_key,
534
531
  },
535
532
  });
536
533
  if (dataObj.upload && dataObj.upload.url) {