Package com.commercetools.api.models.me
Interface MyCartSetShippingAddressAction
- All Superinterfaces:
MyCartUpdateAction,ResourceUpdateAction<MyCartUpdateAction>
Setting the shipping address also sets the TaxRate of Line Items and calculates the TaxedPrice.
If a matching price cannot be found for the given shipping address during Line Item price selection, a MissingTaxRateForCountry error is returned.
If you want to allow shipping to states inside a country that are not explicitly covered by a TaxRate, set the countryTaxRateFallbackEnabled field to true in the CartsConfiguration by using the Change CountryTaxRateFallbackEnabled update action.
Example to create an instance using the builder pattern
MyCartSetShippingAddressAction myCartSetShippingAddressAction = MyCartSetShippingAddressAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for MyCartSetShippingAddressAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for MyCartSetShippingAddressActionbuilder(MyCartSetShippingAddressAction template) create builder for MyCartSetShippingAddressAction instancecopyDeep()deepCopy(MyCartSetShippingAddressAction template) factory method to create a deep copy of MyCartSetShippingAddressAction@Valid BaseAddressValue to set.of()factory methodof(MyCartSetShippingAddressAction template) factory method to create a shallow copy MyCartSetShippingAddressActionvoidsetAddress(BaseAddress address) Value to set.static com.fasterxml.jackson.core.type.TypeReference<MyCartSetShippingAddressAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.me.MyCartUpdateAction
getAction, withMyCartUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_SHIPPING_ADDRESS
discriminator value for MyCartSetShippingAddressAction- See Also:
-
-
Method Details
-
getAddress
Value to set. If not set, the shipping address is unset, and the
taxedPriceandtaxRateare unset in all Line Items.- Returns:
- address
-
setAddress
Value to set. If not set, the shipping address is unset, and the
taxedPriceandtaxRateare unset in all Line Items.- Parameters:
address- value to be set
-
of
factory method- Returns:
- instance of MyCartSetShippingAddressAction
-
of
factory method to create a shallow copy MyCartSetShippingAddressAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
MyCartSetShippingAddressAction copyDeep()- Specified by:
copyDeepin interfaceMyCartUpdateAction
-
deepCopy
@Nullable static MyCartSetShippingAddressAction deepCopy(@Nullable MyCartSetShippingAddressAction template) factory method to create a deep copy of MyCartSetShippingAddressAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyCartSetShippingAddressAction- Returns:
- builder
-
builder
create builder for MyCartSetShippingAddressAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withMyCartSetShippingAddressAction
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<MyCartSetShippingAddressAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-