Interface ItemShippingTarget


public interface ItemShippingTarget

The item's shipping target.


Example to create an instance using the builder pattern

     ItemShippingTarget itemShippingTarget = ItemShippingTarget.builder()
             .addressKey("{addressKey}")
             .quantity(0.3)
             .build()
 
  • Method Details

    • getAddressKey

      @NotNull @NotNull String getAddressKey()

      Maps to ItemShippingTarget.addressKey.

      Returns:
      addressKey
    • getQuantity

      @NotNull @NotNull Long getQuantity()

      Maps to ItemShippingTarget.quantity.

      Returns:
      quantity
    • setAddressKey

      void setAddressKey(String addressKey)

      Maps to ItemShippingTarget.addressKey.

      Parameters:
      addressKey - value to be set
    • setQuantity

      void setQuantity(Long quantity)

      Maps to ItemShippingTarget.quantity.

      Parameters:
      quantity - value to be set
    • of

      static ItemShippingTarget of()
      factory method
      Returns:
      instance of ItemShippingTarget
    • of

      static ItemShippingTarget of(ItemShippingTarget template)
      factory method to create a shallow copy ItemShippingTarget
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      factory method to create a deep copy of ItemShippingTarget
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static ItemShippingTargetBuilder builder()
      builder factory method for ItemShippingTarget
      Returns:
      builder
    • builder

      static ItemShippingTargetBuilder builder(ItemShippingTarget template)
      create builder for ItemShippingTarget instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withItemShippingTarget

      default <T> T withItemShippingTarget(Function<ItemShippingTarget,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<ItemShippingTarget> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference