Interface DeliveryAddedMessagePayload

All Superinterfaces:
MessagePayload, OrderMessagePayload
All Known Implementing Classes:
DeliveryAddedMessagePayloadImpl

Generated after a successful Add Delivery update action.


Example to create an instance using the builder pattern

     DeliveryAddedMessagePayload deliveryAddedMessagePayload = DeliveryAddedMessagePayload.builder()
             .delivery(deliveryBuilder -> deliveryBuilder)
             .build()
 
  • Field Details

  • Method Details

    • getDelivery

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

      Delivery that was added to the Order. The Delivery in the Message body does not contain Parcels if those were part of the initial Add Delivery update action. In that case, the update action produces an additional ParcelAddedToDelivery Message containing information about the Parcels.

      Returns:
      delivery
    • getShippingKey

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

      Returns:
      shippingKey
    • setDelivery

      void setDelivery(Delivery delivery)

      Delivery that was added to the Order. The Delivery in the Message body does not contain Parcels if those were part of the initial Add Delivery update action. In that case, the update action produces an additional ParcelAddedToDelivery Message containing information about the Parcels.

      Parameters:
      delivery - value to be set
    • setShippingKey

      void setShippingKey(String shippingKey)

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

      Parameters:
      shippingKey - value to be set
    • of

      factory method
      Returns:
      instance of DeliveryAddedMessagePayload
    • of

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

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

      builder factory method for DeliveryAddedMessagePayload
      Returns:
      builder
    • builder

      create builder for DeliveryAddedMessagePayload instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withDeliveryAddedMessagePayload

      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<DeliveryAddedMessagePayload> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference