Interface DeliveryChangeValue


public interface DeliveryChangeValue
DeliveryChangeValue
Example to create an instance using the builder pattern

     DeliveryChangeValue deliveryChangeValue = DeliveryChangeValue.builder()
             .plusItems(itemsBuilder -> itemsBuilder)
             .address(addressBuilder -> addressBuilder)
             .plusParcels(parcelsBuilder -> parcelsBuilder)
             .build()
 
  • Method Details

    • getItems

      @NotNull @Valid @NotNull @Valid List<DeliveryItem> getItems()

      Line Items or Custom Line Items shipped in the Delivery.

      Returns:
      items
    • getAddress

      @NotNull @Valid @NotNull @Valid Address getAddress()

      Address to which the parcels are delivered.

      Returns:
      address
    • getParcels

      @NotNull @Valid @NotNull @Valid List<Parcel> getParcels()

      Parcels included in the Delivery.

      Returns:
      parcels
    • setItems

      void setItems(DeliveryItem... items)

      Line Items or Custom Line Items shipped in the Delivery.

      Parameters:
      items - values to be set
    • setItems

      void setItems(List<DeliveryItem> items)

      Line Items or Custom Line Items shipped in the Delivery.

      Parameters:
      items - values to be set
    • setAddress

      void setAddress(Address address)

      Address to which the parcels are delivered.

      Parameters:
      address - value to be set
    • setParcels

      void setParcels(Parcel... parcels)

      Parcels included in the Delivery.

      Parameters:
      parcels - values to be set
    • setParcels

      void setParcels(List<Parcel> parcels)

      Parcels included in the Delivery.

      Parameters:
      parcels - values to be set
    • of

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

      factory method to create a shallow copy DeliveryChangeValue
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

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

      static DeliveryChangeValueBuilder builder()
      builder factory method for DeliveryChangeValue
      Returns:
      builder
    • builder

      create builder for DeliveryChangeValue instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withDeliveryChangeValue

      default <T> T withDeliveryChangeValue(Function<DeliveryChangeValue,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<DeliveryChangeValue> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference