Class DiscountCodeInfoBuilder

java.lang.Object
com.commercetools.history.models.common.DiscountCodeInfoBuilder
All Implemented Interfaces:
Builder<DiscountCodeInfo>

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

     DiscountCodeInfo discountCodeInfo = DiscountCodeInfo.builder()
             .discountCode(discountCodeBuilder -> discountCodeBuilder)
             .state(DiscountCodeState.NOT_ACTIVE)
             .build()
 
  • Constructor Details

    • DiscountCodeInfoBuilder

      public DiscountCodeInfoBuilder()
  • Method Details