Interface OrderDiscountCodeStateSetMessage

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

public interface OrderDiscountCodeStateSetMessage extends OrderMessage

Generated after the DiscountCodeState changes due to a recalculation.


Example to create an instance using the builder pattern

     OrderDiscountCodeStateSetMessage orderDiscountCodeStateSetMessage = OrderDiscountCodeStateSetMessage.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)
             .discountCode(discountCodeBuilder -> discountCodeBuilder)
             .state(DiscountCodeState.NOT_ACTIVE)
             .build()
 
  • Field Details

    • ORDER_DISCOUNT_CODE_STATE_SET

      static final String ORDER_DISCOUNT_CODE_STATE_SET
      discriminator value for OrderDiscountCodeStateSetMessage
      See Also:
  • Method Details