Class CartDiscountValueAbsoluteDraftImpl

java.lang.Object
com.commercetools.api.models.cart_discount.CartDiscountValueAbsoluteDraftImpl
All Implemented Interfaces:
CartDiscountValueAbsoluteDraft, CartDiscountValueDraft, io.vrap.rmf.base.client.Draft<CartDiscountValueAbsoluteDraft>, io.vrap.rmf.base.client.ModelBase

public class CartDiscountValueAbsoluteDraftImpl extends Object implements CartDiscountValueAbsoluteDraft, io.vrap.rmf.base.client.ModelBase
CartDiscountValueAbsoluteDraft
  • Constructor Details

  • Method Details

    • getType

      public String getType()
      Specified by:
      getType in interface CartDiscountValueDraft
      Returns:
      type
    • getMoney

      public List<Money> getMoney()

      Money values in different currencies. An absolute Cart Discount will only match a price if this array contains a value with the same currency. If it contains 10€ and 15$, the matching € price will be decreased by 10€ and the matching $ price will be decreased by 15$.

      Specified by:
      getMoney in interface CartDiscountValueAbsoluteDraft
      Returns:
      money
    • setMoney

      public void setMoney(Money... money)
      Description copied from interface: CartDiscountValueAbsoluteDraft

      Money values in different currencies. An absolute Cart Discount will only match a price if this array contains a value with the same currency. If it contains 10€ and 15$, the matching € price will be decreased by 10€ and the matching $ price will be decreased by 15$.

      Specified by:
      setMoney in interface CartDiscountValueAbsoluteDraft
      Parameters:
      money - values to be set
    • setMoney

      public void setMoney(List<Money> money)
      Description copied from interface: CartDiscountValueAbsoluteDraft

      Money values in different currencies. An absolute Cart Discount will only match a price if this array contains a value with the same currency. If it contains 10€ and 15$, the matching € price will be decreased by 10€ and the matching $ price will be decreased by 15$.

      Specified by:
      setMoney in interface CartDiscountValueAbsoluteDraft
      Parameters:
      money - values to be set
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object