import ShopApi from 'commercecloud-ocapi-client'; import { ClientConfig, Checkout } from 'commerce-sdk'; import { CartsApi } from './interfaces'; import { Cart, Product, LineItem, ContactInfo, SfccIntegrationContext } from '../../types'; export declare class OcapiCartsApi implements CartsApi { protected config: ShopApi.ApiConfig; protected api: ShopApi.BasketsApi; constructor(config: ShopApi.ApiConfig); createCart(context: SfccIntegrationContext): Promise; addItemToCart(context: SfccIntegrationContext, cartId: string, product: Product, quantitiy?: number): Promise; removeItemFromCart(context: SfccIntegrationContext, cartId: string, itemId: string): Promise; updateCartItemQuantity(context: SfccIntegrationContext, cartId: string, item: LineItem, quantity: number): Promise; addCouponToCart(context: SfccIntegrationContext, cartId: string, couponCode: string): Promise; removeCouponFromCart(context: SfccIntegrationContext, cartId: string, couponItemId: string): Promise; resetCart(context: SfccIntegrationContext, cartId: string): Promise; getShippingMethods(cartId: string, shipmentId: string): Promise; getPaymentMethods(cartId: string): Promise; updateCartContactInfo(context: SfccIntegrationContext, cartId: string, contactInfo: ContactInfo): Promise; setShippingAddress(context: SfccIntegrationContext, cartId: string, shipmentId: string, address: Checkout.ShopperOrders.OrderAddress): Promise; setBillingAddress(context: SfccIntegrationContext, cartId: string, address: Checkout.ShopperOrders.OrderAddress): Promise; selectShippingMethod(context: SfccIntegrationContext, cartId: string, shipmentId: string, shippingMethodId: string): Promise; addPayment(context: SfccIntegrationContext, cartId: string, paymentMethodId: string, amount: number): Promise; } export declare class CapiCartsApi implements CartsApi { protected config: ClientConfig; protected api: Checkout.ShopperBaskets; constructor(config: ClientConfig); protected getCart(context: SfccIntegrationContext, cartId: string): Promise; createCart(context: SfccIntegrationContext): Promise; addItemToCart(context: SfccIntegrationContext, cartId: string, product: Product, quantitiy?: number): Promise; removeItemFromCart(context: SfccIntegrationContext, cartId: string, itemId: string): Promise; updateCartItemQuantity(context: SfccIntegrationContext, cartId: string, item: LineItem, quantity: number): Promise; addCouponToCart(context: SfccIntegrationContext, cartId: string, couponCode: string): Promise; removeCouponFromCart(context: SfccIntegrationContext, cartId: string, couponItemId: string): Promise; resetCart(context: SfccIntegrationContext, cartId: string): Promise; getShippingMethods(cartId: string, shipmentId: string): Promise; getPaymentMethods(cartId: string): Promise; updateCartContactInfo(context: SfccIntegrationContext, cartId: string, contactInfo: ContactInfo): Promise; setShippingAddress(context: SfccIntegrationContext, cartId: string, shipmentId: string, address: Checkout.ShopperOrders.OrderAddress): Promise; setBillingAddress(context: SfccIntegrationContext, cartId: string, address: Checkout.ShopperOrders.OrderAddress): Promise; selectShippingMethod(context: SfccIntegrationContext, cartId: string, shipmentId: string, shippingMethodId: string): Promise; addPayment(context: SfccIntegrationContext, cartId: string, paymentMethodId: string, amount: number): Promise; }