com.logicommerce.sdk.models.CartTotals Maven / Gradle / Ivy
Show all versions of sdk Show documentation
package com.logicommerce.sdk.models;
/**
* CartTotals interface. To get cart totals different amounts values with/without taxes.
* Gets Totals from cart items, payment systems and shipping type selected, discounts and vouchers applied.
*
* @see com.logicommerce.sdk.models.Cart Cart
* @see com.logicommerce.sdk.models.CartItem CartItem
* @author Logicommerce
* @since 1.0.16
*/
public interface CartTotals {
/**
* Get subtotal amount from the cart, this is a sum of total without taxes of cart items in cart.
*
* @since 1.0.16
* @return a double
*/
double getSubtotal();
/**
* Get subtotal amount from the cart, this is a sum of total without taxes of cart items in cart.
*
* @since 1.0.16
* @return a double
*/
double getSubtotalItems();
/**
* Get subtotal amount of the payment system selected. This is total without taxes.
*
* @since 1.0.16
* @return a double
*/
double getSubtotalPaymentSystem();
/**
* Get subtotal amount of the shipping type selected. This is total without taxes.
*
* @since 1.0.16
* @return a double
*/
double getSubtotalShippings();
/**
* Get Total amount of the cart
*
* @since 1.0.16
* @return a double
*/
double getTotal();
/**
* Get Total amount of applied discounts
*
* @since 1.0.16
* @return a double
*/
double getTotalDiscounts();
/**
* Get total amount from the cart, this is a sum of total of cart items in cart.
*
* @since 1.0.16
* @return a double
*/
double getTotalItems();
/**
* Get total amount of the payment system selected.
*
* @since 1.0.16
* @return a double
*/
double getTotalPaymentSystem();
/**
* Get total amount of the shipping type selected.
*
* @since 1.0.16
* @return a double
*/
double getTotalShippings();
/**
* Get total taxes amount.
*
* @since 1.0.16
* @return a double
*/
double getTotalTaxes();
/**
* Get total amount of applied vouchers.
*
* @since 1.0.16
* @return a double
*/
double getTotalVouchers();
}