Class ItemShippingDetailsImpl

java.lang.Object
com.commercetools.api.models.cart.ItemShippingDetailsImpl
All Implemented Interfaces:
ItemShippingDetails, io.vrap.rmf.base.client.ModelBase

public class ItemShippingDetailsImpl extends Object implements ItemShippingDetails, io.vrap.rmf.base.client.ModelBase
ItemShippingDetails
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase

    io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
  • Constructor Summary

    Constructors
    Constructor
    Description
    create empty instance
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    Holds information on the quantity of Line Items or Custom Line Items and the address it is shipped.
    true if the quantity of Line Items or Custom Line Items is equal to the sum of sub-quantities defined in targets. false if the quantity of Line Items or Custom Line Items is not equal to the sum of sub-quantities defined in targets.
    int
     
    void
    Holds information on the quantity of Line Items or Custom Line Items and the address it is shipped.
    void
    Holds information on the quantity of Line Items or Custom Line Items and the address it is shipped.
    void
    true if the quantity of Line Items or Custom Line Items is equal to the sum of sub-quantities defined in targets. false if the quantity of Line Items or Custom Line Items is not equal to the sum of sub-quantities defined in targets.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.commercetools.api.models.cart.ItemShippingDetails

    withItemShippingDetails

    Methods inherited from interface io.vrap.rmf.base.client.ModelBase

    reflectionString, reflectionString
  • Constructor Details

  • Method Details

    • getTargets

      Holds information on the quantity of Line Items or Custom Line Items and the address it is shipped.

      Specified by:
      getTargets in interface ItemShippingDetails
      Returns:
      targets
    • getValid

      public Boolean getValid()
      • true if the quantity of Line Items or Custom Line Items is equal to the sum of sub-quantities defined in targets.
      • false if the quantity of Line Items or Custom Line Items is not equal to the sum of sub-quantities defined in targets. Ordering a Cart when the value is false returns an InvalidItemShippingDetails error.
      Specified by:
      getValid in interface ItemShippingDetails
      Returns:
      valid
    • setTargets

      public void setTargets(ItemShippingTarget... targets)
      Description copied from interface: ItemShippingDetails

      Holds information on the quantity of Line Items or Custom Line Items and the address it is shipped.

      Specified by:
      setTargets in interface ItemShippingDetails
      Parameters:
      targets - values to be set
    • setTargets

      public void setTargets(List<ItemShippingTarget> targets)
      Description copied from interface: ItemShippingDetails

      Holds information on the quantity of Line Items or Custom Line Items and the address it is shipped.

      Specified by:
      setTargets in interface ItemShippingDetails
      Parameters:
      targets - values to be set
    • setValid

      public void setValid(Boolean valid)
      Description copied from interface: ItemShippingDetails
      • true if the quantity of Line Items or Custom Line Items is equal to the sum of sub-quantities defined in targets.
      • false if the quantity of Line Items or Custom Line Items is not equal to the sum of sub-quantities defined in targets. Ordering a Cart when the value is false returns an InvalidItemShippingDetails error.
      Specified by:
      setValid in interface ItemShippingDetails
      Parameters:
      valid - value to be set
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object