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