Class DiscountCodeDraftBuilder

java.lang.Object
com.commercetools.api.models.discount_code.DiscountCodeDraftBuilder
All Implemented Interfaces:
Builder<DiscountCodeDraft>

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

     DiscountCodeDraft discountCodeDraft = DiscountCodeDraft.builder()
             .code("{code}")
             .plusCartDiscounts(cartDiscountsBuilder -> cartDiscountsBuilder)
             .build()