Interface DiscountCodeSetMaxApplicationsPerCustomerAction
- All Superinterfaces:
DiscountCodeUpdateAction,ResourceUpdateAction<DiscountCodeUpdateAction>
DiscountCodeSetMaxApplicationsPerCustomerAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
DiscountCodeSetMaxApplicationsPerCustomerAction discountCodeSetMaxApplicationsPerCustomerAction = DiscountCodeSetMaxApplicationsPerCustomerAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for DiscountCodeSetMaxApplicationsPerCustomerAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for DiscountCodeSetMaxApplicationsPerCustomerActioncreate builder for DiscountCodeSetMaxApplicationsPerCustomerAction instancecopyDeep()factory method to create a deep copy of DiscountCodeSetMaxApplicationsPerCustomerActionValue to set.of()factory methodfactory method to create a shallow copy DiscountCodeSetMaxApplicationsPerCustomerActionvoidsetMaxApplicationsPerCustomer(Long maxApplicationsPerCustomer) Value to set.static com.fasterxml.jackson.core.type.TypeReference<DiscountCodeSetMaxApplicationsPerCustomerAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithDiscountCodeSetMaxApplicationsPerCustomerAction(Function<DiscountCodeSetMaxApplicationsPerCustomerAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.discount_code.DiscountCodeUpdateAction
getAction, withDiscountCodeUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_MAX_APPLICATIONS_PER_CUSTOMER
discriminator value for DiscountCodeSetMaxApplicationsPerCustomerAction- See Also:
-
-
Method Details
-
getMaxApplicationsPerCustomer
Long getMaxApplicationsPerCustomer()Value to set.
If empty, any existing value will be removed and the DiscountCode can be applied any number of times. This field does not limit discount applications for Orders created from a Recurring Order.
- Returns:
- maxApplicationsPerCustomer
-
setMaxApplicationsPerCustomer
Value to set.
If empty, any existing value will be removed and the DiscountCode can be applied any number of times. This field does not limit discount applications for Orders created from a Recurring Order.
- Parameters:
maxApplicationsPerCustomer- value to be set
-
of
factory method- Returns:
- instance of DiscountCodeSetMaxApplicationsPerCustomerAction
-
of
static DiscountCodeSetMaxApplicationsPerCustomerAction of(DiscountCodeSetMaxApplicationsPerCustomerAction template) factory method to create a shallow copy DiscountCodeSetMaxApplicationsPerCustomerAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
- Specified by:
copyDeepin interfaceDiscountCodeUpdateAction
-
deepCopy
@Nullable static DiscountCodeSetMaxApplicationsPerCustomerAction deepCopy(@Nullable DiscountCodeSetMaxApplicationsPerCustomerAction template) factory method to create a deep copy of DiscountCodeSetMaxApplicationsPerCustomerAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for DiscountCodeSetMaxApplicationsPerCustomerAction- Returns:
- builder
-
builder
static DiscountCodeSetMaxApplicationsPerCustomerActionBuilder builder(DiscountCodeSetMaxApplicationsPerCustomerAction template) create builder for DiscountCodeSetMaxApplicationsPerCustomerAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withDiscountCodeSetMaxApplicationsPerCustomerAction
default <T> T withDiscountCodeSetMaxApplicationsPerCustomerAction(Function<DiscountCodeSetMaxApplicationsPerCustomerAction, T> helper) accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<DiscountCodeSetMaxApplicationsPerCustomerAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-