Class CartDiscountValueRelativeDraftBuilder
java.lang.Object
com.commercetools.api.models.cart_discount.CartDiscountValueRelativeDraftBuilder
- All Implemented Interfaces:
Builder<CartDiscountValueRelativeDraft>
public class CartDiscountValueRelativeDraftBuilder
extends Object
implements Builder<CartDiscountValueRelativeDraft>
CartDiscountValueRelativeDraftBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartDiscountValueRelativeDraft cartDiscountValueRelativeDraft = CartDiscountValueRelativeDraft.builder()
.permyriad(0.3)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CartDiscountValueRelativeDraft with checking for non-null required valuesbuilds CartDiscountValueRelativeDraft without checking for non-null required valuesFraction (per ten thousand) the price is reduced by.of()
factory method for an instance of CartDiscountValueRelativeDraftBuilderof
(CartDiscountValueRelativeDraft template) create builder for CartDiscountValueRelativeDraft instanceFraction (per ten thousand) the price is reduced by.
-
Constructor Details
-
CartDiscountValueRelativeDraftBuilder
public CartDiscountValueRelativeDraftBuilder()
-
-
Method Details
-
permyriad
Fraction (per ten thousand) the price is reduced by. For example,
1000
will result in a 10% price reduction.- Parameters:
permyriad
- value to be set- Returns:
- Builder
-
getPermyriad
Fraction (per ten thousand) the price is reduced by. For example,
1000
will result in a 10% price reduction.- Returns:
- permyriad
-
build
builds CartDiscountValueRelativeDraft with checking for non-null required values- Specified by:
build
in interfaceBuilder<CartDiscountValueRelativeDraft>
- Returns:
- CartDiscountValueRelativeDraft
-
buildUnchecked
builds CartDiscountValueRelativeDraft without checking for non-null required values- Returns:
- CartDiscountValueRelativeDraft
-
of
factory method for an instance of CartDiscountValueRelativeDraftBuilder- Returns:
- builder
-
of
create builder for CartDiscountValueRelativeDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-