Class ItemShippingTargetImpl

java.lang.Object
com.commercetools.history.models.common.ItemShippingTargetImpl
All Implemented Interfaces:
ItemShippingTarget, io.vrap.rmf.base.client.ModelBase

public class ItemShippingTargetImpl extends Object implements ItemShippingTarget, io.vrap.rmf.base.client.ModelBase
ItemShippingTarget
  • 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
     
    The key of the address in the cart's itemShippingAddresses
    The quantity of items that should go to the address with the specified addressKey.
    int
     
    void
    setAddressKey(String addressKey)
    The key of the address in the cart's itemShippingAddresses
    void
    setQuantity(Integer quantity)
    The quantity of items that should go to the address with the specified addressKey.
     

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.commercetools.history.models.common.ItemShippingTarget

    withItemShippingTarget

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

    reflectionString, reflectionString
  • Constructor Details

    • ItemShippingTargetImpl

      public ItemShippingTargetImpl()
      create empty instance
  • Method Details

    • getAddressKey

      public String getAddressKey()

      The key of the address in the cart's itemShippingAddresses

      Specified by:
      getAddressKey in interface ItemShippingTarget
      Returns:
      addressKey
    • getQuantity

      public Integer getQuantity()

      The quantity of items that should go to the address with the specified addressKey. Only positive values are allowed. Using 0 as quantity is also possible in a draft object, but the element will not be present in the resulting ItemShippingDetails.

      Specified by:
      getQuantity in interface ItemShippingTarget
      Returns:
      quantity
    • setAddressKey

      public void setAddressKey(String addressKey)
      Description copied from interface: ItemShippingTarget

      The key of the address in the cart's itemShippingAddresses

      Specified by:
      setAddressKey in interface ItemShippingTarget
      Parameters:
      addressKey - value to be set
    • setQuantity

      public void setQuantity(Integer quantity)
      Description copied from interface: ItemShippingTarget

      The quantity of items that should go to the address with the specified addressKey. Only positive values are allowed. Using 0 as quantity is also possible in a draft object, but the element will not be present in the resulting ItemShippingDetails.

      Specified by:
      setQuantity in interface ItemShippingTarget
      Parameters:
      quantity - value to be set
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object