Class CartDiscount.Builder
java.lang.Object
com.commercetools.graphql.api.types.CartDiscount.Builder
- Enclosing class:
- CartDiscount
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()cartPredicate(String cartPredicate) createdAt(OffsetDateTime createdAt) custom(CustomFieldsType custom) description(String description) descriptionAllLocales(List<LocalizedString> descriptionAllLocales) lastModifiedAt(OffsetDateTime lastModifiedAt) lastModifiedBy(Initiator lastModifiedBy) nameAllLocales(List<LocalizedString> nameAllLocales) referenceRefs(List<Reference> referenceRefs) requiresDiscountCode(Boolean requiresDiscountCode) stackingMode(StackingMode stackingMode) BETA: This feature can be subject to change and should be used carefully in production.storesRef(List<KeyReference> storesRef) BETA: This feature can be subject to change and should be used carefully in production.target(CartDiscountTarget target) validFrom(OffsetDateTime validFrom) validUntil(OffsetDateTime validUntil) value(CartDiscountValue value)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
-
cartPredicate
-
validFrom
-
validUntil
-
stackingMode
-
isActive
-
requiresDiscountCode
-
sortOrder
-
key
-
name
-
description
-
nameAllLocales
-
descriptionAllLocales
-
referenceRefs
-
custom
-
storesRef
BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta -
stores
BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta -
value
-
target
-
id
-
version
-
createdAt
-
lastModifiedAt
-
createdBy
-
lastModifiedBy
-