Interface CustomerSetAddressCustomTypeAction
- All Superinterfaces:
CustomerUpdateAction
,ResourceUpdateAction<CustomerUpdateAction>
Adding or updating a Custom Type on an Address of a Customer generates the CustomerAddressCustomTypeSet Message, and removing one generates the CustomerAddressCustomTypeRemoved Message.
Example to create an instance using the builder pattern
CustomerSetAddressCustomTypeAction customerSetAddressCustomTypeAction = CustomerSetAddressCustomTypeAction.builder()
.addressId("{addressId}")
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CustomerSetAddressCustomTypeAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CustomerSetAddressCustomTypeActionbuilder
(CustomerSetAddressCustomTypeAction template) create builder for CustomerSetAddressCustomTypeAction instancedeepCopy
(CustomerSetAddressCustomTypeAction template) factory method to create a deep copy of CustomerSetAddressCustomTypeAction@NotNull String
User-defined unique identifier of the Address to be updated.@Valid FieldContainer
Sets the Custom Fields fields for theaddress
.@Valid TypeResourceIdentifier
getType()
Defines the Type that extends theaddress
with Custom Fields.of()
factory methodof
(CustomerSetAddressCustomTypeAction template) factory method to create a shallow copy CustomerSetAddressCustomTypeActionvoid
setAddressId
(String addressId) User-defined unique identifier of the Address to be updated.void
setFields
(FieldContainer fields) Sets the Custom Fields fields for theaddress
.void
Defines the Type that extends theaddress
with Custom Fields.static com.fasterxml.jackson.core.type.TypeReference<CustomerSetAddressCustomTypeAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.customer.CustomerUpdateAction
getAction, withCustomerUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_ADDRESS_CUSTOM_TYPE
discriminator value for CustomerSetAddressCustomTypeAction- See Also:
-
-
Method Details
-
getAddressId
User-defined unique identifier of the Address to be updated.
- Returns:
- addressId
-
getType
Defines the Type that extends the
address
with Custom Fields. If absent, any existing Type and Custom Fields are removed from theaddress
.- Returns:
- type
-
getFields
Sets the Custom Fields fields for the
address
.- Returns:
- fields
-
setAddressId
User-defined unique identifier of the Address to be updated.
- Parameters:
addressId
- value to be set
-
setType
Defines the Type that extends the
address
with Custom Fields. If absent, any existing Type and Custom Fields are removed from theaddress
.- Parameters:
type
- value to be set
-
setFields
Sets the Custom Fields fields for the
address
.- Parameters:
fields
- value to be set
-
of
factory method- Returns:
- instance of CustomerSetAddressCustomTypeAction
-
of
factory method to create a shallow copy CustomerSetAddressCustomTypeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static CustomerSetAddressCustomTypeAction deepCopy(@Nullable CustomerSetAddressCustomTypeAction template) factory method to create a deep copy of CustomerSetAddressCustomTypeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomerSetAddressCustomTypeAction- Returns:
- builder
-
builder
static CustomerSetAddressCustomTypeActionBuilder builder(CustomerSetAddressCustomTypeAction template) create builder for CustomerSetAddressCustomTypeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCustomerSetAddressCustomTypeAction
default <T> T withCustomerSetAddressCustomTypeAction(Function<CustomerSetAddressCustomTypeAction, 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<CustomerSetAddressCustomTypeAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-