encore-api-services
Advanced tools
Comparing version 3.4.0 to 3.5.0
@@ -5,3 +5,3 @@ import moment from 'moment'; | ||
import { Delivery } from './delivery'; | ||
import { BasketData, BasketStatus, DeliveryData, UpsellProductData } from '../typings'; | ||
import { BasketData, BasketStatus, DeliveryData, UpsellProductData, BasketItemData } from '../typings'; | ||
export declare class Basket { | ||
@@ -62,2 +62,18 @@ private readonly itemsCollection; | ||
}; | ||
replaceBasketData(basketItems: BasketItemData[]): { | ||
reservations: any; | ||
reference: string; | ||
checksum?: string; | ||
channelId: string; | ||
delivery?: DeliveryData; | ||
createdAt: string; | ||
expiredAt: string; | ||
status: BasketStatus; | ||
mixed?: boolean; | ||
coupon: import("../typings").CouponData; | ||
appliedPromotion: import("../typings").Promotion; | ||
shopperReference: string; | ||
shopperCurrency?: string; | ||
missedPromotions?: import("../typings").Promotion[]; | ||
}; | ||
private prepareBasketReservation; | ||
@@ -64,0 +80,0 @@ private getLinkedFlexiItems; |
@@ -14,2 +14,3 @@ import { Basket, BasketItemsCollection, Delivery } from '../models'; | ||
setUpsellProducts: (basket: Basket, upsellProducts: UpsellProductData) => Promise<Basket>; | ||
replaceItems: (basket: Basket, basketItems: BasketItemData[]) => Promise<Basket>; | ||
}; |
{ | ||
"name": "encore-api-services", | ||
"version": "3.4.0", | ||
"version": "3.5.0", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
Sorry, the diff of this file is too big to display
138428
63
929