Interface StagedOrderSetCountryAction
- All Superinterfaces:
ResourceUpdateAction<StagedOrderUpdateAction>
,StagedOrderUpdateAction
Setting the country can lead to changes in the LineItem prices.
Example to create an instance using the builder pattern
StagedOrderSetCountryAction stagedOrderSetCountryAction = StagedOrderSetCountryAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for StagedOrderSetCountryAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StagedOrderSetCountryActionbuilder
(StagedOrderSetCountryAction template) create builder for StagedOrderSetCountryAction instancestatic StagedOrderSetCountryAction
deepCopy
(StagedOrderSetCountryAction template) factory method to create a deep copy of StagedOrderSetCountryActionValue to set.static StagedOrderSetCountryAction
of()
factory methodstatic StagedOrderSetCountryAction
of
(StagedOrderSetCountryAction template) factory method to create a shallow copy StagedOrderSetCountryActionvoid
setCountry
(String country) Value to set.static com.fasterxml.jackson.core.type.TypeReference<StagedOrderSetCountryAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
Methods inherited from interface com.commercetools.api.models.order.StagedOrderUpdateAction
getAction, withStagedOrderUpdateAction
-
Field Details
-
SET_COUNTRY
discriminator value for StagedOrderSetCountryAction- See Also:
-
-
Method Details
-
getCountry
String getCountry()Value to set. If empty, any existing value is removed.
If the Cart is bound to a
store
, the provided value must be included in the Store'scountries
. Otherwise a CountryNotConfiguredInStore error is returned.- Returns:
- country
-
setCountry
Value to set. If empty, any existing value is removed.
If the Cart is bound to a
store
, the provided value must be included in the Store'scountries
. Otherwise a CountryNotConfiguredInStore error is returned.- Parameters:
country
- value to be set
-
of
factory method- Returns:
- instance of StagedOrderSetCountryAction
-
of
factory method to create a shallow copy StagedOrderSetCountryAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static StagedOrderSetCountryAction deepCopy(@Nullable StagedOrderSetCountryAction template) factory method to create a deep copy of StagedOrderSetCountryAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StagedOrderSetCountryAction- Returns:
- builder
-
builder
create builder for StagedOrderSetCountryAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStagedOrderSetCountryAction
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-