Class OrderLineItemDiscountSetMessageBuilder

java.lang.Object
com.commercetools.api.models.message.OrderLineItemDiscountSetMessageBuilder
All Implemented Interfaces:
Builder<OrderLineItemDiscountSetMessage>

public class OrderLineItemDiscountSetMessageBuilder extends Object implements Builder<OrderLineItemDiscountSetMessage>
OrderLineItemDiscountSetMessageBuilder
Example to create an instance using the builder pattern

     OrderLineItemDiscountSetMessage orderLineItemDiscountSetMessage = OrderLineItemDiscountSetMessage.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)
             .lineItemId("{lineItemId}")
             .plusDiscountedPricePerQuantity(discountedPricePerQuantityBuilder -> discountedPricePerQuantityBuilder)
             .totalPrice(totalPriceBuilder -> totalPriceBuilder)
             .plusTaxedPricePortions(taxedPricePortionsBuilder -> taxedPricePortionsBuilder)
             .build()