Interface ParcelAddedToDeliveryMessagePayload

All Superinterfaces:
MessagePayload, MessagePayloadMixin, OrderMessagePayload

public interface ParcelAddedToDeliveryMessagePayload extends OrderMessagePayload

Generated after a successful Add Parcel to Delivery update action.


Example to create an instance using the builder pattern

     ParcelAddedToDeliveryMessagePayload parcelAddedToDeliveryMessagePayload = ParcelAddedToDeliveryMessagePayload.builder()
             .delivery(deliveryBuilder -> deliveryBuilder)
             .parcel(parcelBuilder -> parcelBuilder)
             .build()
 
  • Field Details

    • PARCEL_ADDED_TO_DELIVERY

      static final String PARCEL_ADDED_TO_DELIVERY
      discriminator value for ParcelAddedToDeliveryMessagePayload
      See Also:
  • Method Details

    • getDelivery

      @NotNull @Valid @NotNull @Valid Delivery getDelivery()

      Unique identifier of the Delivery.

      Returns:
      delivery
    • getParcel

      @NotNull @Valid @NotNull @Valid Parcel getParcel()

      Parcel that was added to the Delivery.

      Returns:
      parcel
    • getShippingKey

      String getShippingKey()

      User-defined unique identifier of the Shipping Method in a Cart with Multiple ShippingMode.

      Returns:
      shippingKey
    • setDelivery

      void setDelivery(Delivery delivery)

      Unique identifier of the Delivery.

      Parameters:
      delivery - value to be set
    • setParcel

      void setParcel(Parcel parcel)

      Parcel that was added to the Delivery.

      Parameters:
      parcel - value to be set
    • setShippingKey

      void setShippingKey(String shippingKey)

      User-defined unique identifier of the Shipping Method in a Cart with Multiple ShippingMode.

      Parameters:
      shippingKey - value to be set
    • of

      factory method
      Returns:
      instance of ParcelAddedToDeliveryMessagePayload
    • of

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

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

      builder factory method for ParcelAddedToDeliveryMessagePayload
      Returns:
      builder
    • builder

      create builder for ParcelAddedToDeliveryMessagePayload instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withParcelAddedToDeliveryMessagePayload

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