Package com.commercetools.api.models.me
Interface MyPaymentUpdate
- All Superinterfaces:
ResourceUpdate<MyPaymentUpdate,
MyPaymentUpdateAction, MyPaymentUpdateBuilder>
public interface MyPaymentUpdate
extends ResourceUpdate<MyPaymentUpdate,MyPaymentUpdateAction,MyPaymentUpdateBuilder>
MyPaymentUpdate
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MyPaymentUpdate myPaymentUpdate = MyPaymentUpdate.builder()
.version(0.3)
.plusActions(actionsBuilder -> actionsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic MyPaymentUpdateBuilder
builder()
builder factory method for MyPaymentUpdatestatic MyPaymentUpdateBuilder
builder
(MyPaymentUpdate template) create builder for MyPaymentUpdate instancestatic MyPaymentUpdate
deepCopy
(MyPaymentUpdate template) factory method to create a deep copy of MyPaymentUpdate@NotNull @Valid List<MyPaymentUpdateAction>
Update actions to be performed on the Payment.@NotNull Long
Expected version of the Payment on which the changes should be applied.static MyPaymentUpdate
of()
factory methodstatic MyPaymentUpdate
of
(MyPaymentUpdate template) factory method to create a shallow copy MyPaymentUpdatevoid
setActions
(MyPaymentUpdateAction... actions) Update actions to be performed on the Payment.void
setActions
(List<MyPaymentUpdateAction> actions) Update actions to be performed on the Payment.void
setVersion
(Long version) Expected version of the Payment on which the changes should be applied.static com.fasterxml.jackson.core.type.TypeReference<MyPaymentUpdate>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withMyPaymentUpdate
(Function<MyPaymentUpdate, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdate
get
-
Method Details
-
getVersion
Expected version of the Payment on which the changes should be applied. If the expected version does not match the actual version, a ConcurrentModification error will be returned.
- Specified by:
getVersion
in interfaceResourceUpdate<MyPaymentUpdate,
MyPaymentUpdateAction, MyPaymentUpdateBuilder> - Returns:
- version
-
getActions
Update actions to be performed on the Payment.
- Specified by:
getActions
in interfaceResourceUpdate<MyPaymentUpdate,
MyPaymentUpdateAction, MyPaymentUpdateBuilder> - Returns:
- actions
-
setVersion
Expected version of the Payment on which the changes should be applied. If the expected version does not match the actual version, a ConcurrentModification error will be returned.
- Specified by:
setVersion
in interfaceResourceUpdate<MyPaymentUpdate,
MyPaymentUpdateAction, MyPaymentUpdateBuilder> - Parameters:
version
- value to be set
-
setActions
Update actions to be performed on the Payment.
- Parameters:
actions
- values to be set
-
setActions
Update actions to be performed on the Payment.
- Specified by:
setActions
in interfaceResourceUpdate<MyPaymentUpdate,
MyPaymentUpdateAction, MyPaymentUpdateBuilder> - Parameters:
actions
- values to be set
-
of
factory method- Returns:
- instance of MyPaymentUpdate
-
of
factory method to create a shallow copy MyPaymentUpdate- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of MyPaymentUpdate- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyPaymentUpdate- Returns:
- builder
-
builder
create builder for MyPaymentUpdate instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withMyPaymentUpdate
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
-