Interface InventoryEntryDeletedMessage

All Superinterfaces:
BaseResource, DomainResource<Message>, Identifiable<Message>, Message, Versioned<Message>

public interface InventoryEntryDeletedMessage extends Message

Generated after a successful Delete InventoryEntry request.


Example to create an instance using the builder pattern

     InventoryEntryDeletedMessage inventoryEntryDeletedMessage = InventoryEntryDeletedMessage.builder()
             .id("{id}")
             .version(0.3)
             .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
             .lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
             .sequenceNumber(0.3)
             .resource(resourceBuilder -> resourceBuilder)
             .resourceVersion(0.3)
             .sku("{sku}")
             .build()
 
  • Field Details

    • INVENTORY_ENTRY_DELETED

      static final String INVENTORY_ENTRY_DELETED
      discriminator value for InventoryEntryDeletedMessage
      See Also:
  • Method Details

    • getSku

      @NotNull @NotNull String getSku()

      The sku of the InventoryEntry that was deleted.

      Returns:
      sku
    • getSupplyChannel

      @Valid @Valid ChannelReference getSupplyChannel()

      Reference to the Channel where the InventoryEntry was deleted.

      Returns:
      supplyChannel
    • setSku

      void setSku(String sku)

      The sku of the InventoryEntry that was deleted.

      Parameters:
      sku - value to be set
    • setSupplyChannel

      void setSupplyChannel(ChannelReference supplyChannel)

      Reference to the Channel where the InventoryEntry was deleted.

      Parameters:
      supplyChannel - value to be set
    • of

      factory method
      Returns:
      instance of InventoryEntryDeletedMessage
    • of

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

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

      builder factory method for InventoryEntryDeletedMessage
      Returns:
      builder
    • builder

      create builder for InventoryEntryDeletedMessage instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withInventoryEntryDeletedMessage

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