Interface DiscountCodeKeySetMessagePayload

All Superinterfaces:
MessagePayload, MessagePayloadMixin

public interface DiscountCodeKeySetMessagePayload extends MessagePayload

Generated after a successful Set Key update action.


Example to create an instance using the builder pattern

     DiscountCodeKeySetMessagePayload discountCodeKeySetMessagePayload = DiscountCodeKeySetMessagePayload.builder()
             .build()
 
  • Field Details

    • DISCOUNT_CODE_KEY_SET

      static final String DISCOUNT_CODE_KEY_SET
      discriminator value for DiscountCodeKeySetMessagePayload
      See Also:
  • Method Details

    • getKey

      String getKey()

      key value of the Discount Code after the Set Key update action.

      Returns:
      key
    • getOldKey

      String getOldKey()

      key value of the Discount Code before the Set Key update action.

      Returns:
      oldKey
    • setKey

      void setKey(String key)

      key value of the Discount Code after the Set Key update action.

      Parameters:
      key - value to be set
    • setOldKey

      void setOldKey(String oldKey)

      key value of the Discount Code before the Set Key update action.

      Parameters:
      oldKey - value to be set
    • of

      factory method
      Returns:
      instance of DiscountCodeKeySetMessagePayload
    • of

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

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

      builder factory method for DiscountCodeKeySetMessagePayload
      Returns:
      builder
    • builder

      create builder for DiscountCodeKeySetMessagePayload instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withDiscountCodeKeySetMessagePayload

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