Home > @vsf-enterprise/sap-commerce-webservices-sdk > CartsApiFp

CartsApiFp variable

CartsApi - functional programming interface

Signature:

CartsApiFp: (configuration?: Configuration) => {
    createCart(baseSiteId: string, userId: string, fields?: 'BASIC' | 'DEFAULT' | 'FULL', oldCartId?: string, toMergeCartGuid?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Cart>>;
    createCartDeliveryAddress(baseSiteId: string, cartId: string, userId: string, address: Address, fields?: 'BASIC' | 'DEFAULT' | 'FULL', options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Address>>;
    createCartEntry(baseSiteId: string, cartId: string, userId: string, entry: OrderEntry, fields?: 'BASIC' | 'DEFAULT' | 'FULL', options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CartModification>>;
    createCartPaymentDetails(baseSiteId: string, cartId: string, userId: string, paymentDetails: PaymentDetails, fields?: 'BASIC' | 'DEFAULT' | 'FULL', options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentDetails>>;
    doApplyCartPromotion(baseSiteId: string, cartId: string, promotionId: string, userId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
    doApplyCartVoucher(baseSiteId: string, cartId: string, userId: string, voucherId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
    getCart(baseSiteId: string, cartId: string, userId: string, fields?: 'BASIC' | 'DEFAULT' | 'FULL', options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Cart>>;
    getCartDeliveryMode(baseSiteId: string, cartId: string, userId: string, fields?: 'BASIC' | 'DEFAULT' | 'FULL', options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeliveryMode>>;
    getCartDeliveryModes(baseSiteId: string, cartId: string, userId: string, fields?: 'BASIC' | 'DEFAULT' | 'FULL', options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeliveryModeList>>;
    getCartEntries(baseSiteId: string, cartId: string, userId: string, fields?: 'BASIC' | 'DEFAULT' | 'FULL', options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderEntryList>>;
    getCartEntry(baseSiteId: string, cartId: string, entryNumber: number, userId: string, fields?: 'BASIC' | 'DEFAULT' | 'FULL', options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderEntry>>;
    getCartPromotion(baseSiteId: string, cartId: string, promotionId: string, userId: string, fields?: 'BASIC' | 'DEFAULT' | 'FULL', options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionResultList>>;
    getCartPromotions(baseSiteId: string, cartId: string, userId: string, fields?: 'BASIC' | 'DEFAULT' | 'FULL', options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionResultList>>;
    getCartVouchers(baseSiteId: string, cartId: string, userId: string, fields?: 'BASIC' | 'DEFAULT' | 'FULL', options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VoucherList>>;
    getCarts(baseSiteId: string, userId: string, currentPage?: number, fields?: 'BASIC' | 'DEFAULT' | 'FULL', pageSize?: number, savedCartsOnly?: boolean, sort?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CartList>>;
    removeCart(baseSiteId: string, cartId: string, userId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
    removeCartDeliveryAddress(baseSiteId: string, cartId: string, userId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
    removeCartDeliveryMode(baseSiteId: string, cartId: string, userId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
    removeCartEntry(baseSiteId: string, cartId: string, entryNumber: number, userId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
    removeCartPromotion(baseSiteId: string, cartId: string, promotionId: string, userId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
    removeCartVoucher(baseSiteId: string, cartId: string, userId: string, voucherId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
    replaceCartDeliveryAddress(addressId: string, baseSiteId: string, cartId: string, userId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
    replaceCartDeliveryMode(baseSiteId: string, cartId: string, deliveryModeId: string, userId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
    replaceCartEntry(baseSiteId: string, cartId: string, entryNumber: number, userId: string, entry: OrderEntry, fields?: 'BASIC' | 'DEFAULT' | 'FULL', options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CartModification>>;
    replaceCartGuestUser(baseSiteId: string, cartId: string, email: string, userId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
    replaceCartPaymentDetails(baseSiteId: string, cartId: string, paymentDetailsId: string, userId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
    updateCartEntry(baseSiteId: string, cartId: string, entryNumber: number, userId: string, entry: OrderEntry, fields?: 'BASIC' | 'DEFAULT' | 'FULL', options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CartModification>>;
}