Interface PaymentUpdate
- All Superinterfaces:
ResourceUpdate<PaymentUpdate,
PaymentUpdateAction, PaymentUpdateBuilder>
public interface PaymentUpdate
extends ResourceUpdate<PaymentUpdate,PaymentUpdateAction,PaymentUpdateBuilder>
PaymentUpdate
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
PaymentUpdate paymentUpdate = PaymentUpdate.builder()
.version(0.3)
.plusActions(actionsBuilder -> actionsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic PaymentUpdateBuilder
builder()
builder factory method for PaymentUpdatestatic PaymentUpdateBuilder
builder
(PaymentUpdate template) create builder for PaymentUpdate instancestatic PaymentUpdate
deepCopy
(PaymentUpdate template) factory method to create a deep copy of PaymentUpdate@NotNull @Valid List<PaymentUpdateAction>
Update actions to be performed on the Payment.@NotNull Long
Expected version of the Payment on which the changes should be applied.static PaymentUpdate
of()
factory methodstatic PaymentUpdate
of
(PaymentUpdate template) factory method to create a shallow copy PaymentUpdatevoid
setActions
(PaymentUpdateAction... actions) Update actions to be performed on the Payment.void
setActions
(List<PaymentUpdateAction> 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<PaymentUpdate>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withPaymentUpdate
(Function<PaymentUpdate, 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<PaymentUpdate,
PaymentUpdateAction, PaymentUpdateBuilder> - Returns:
- version
-
getActions
Update actions to be performed on the Payment.
- Specified by:
getActions
in interfaceResourceUpdate<PaymentUpdate,
PaymentUpdateAction, PaymentUpdateBuilder> - 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<PaymentUpdate,
PaymentUpdateAction, PaymentUpdateBuilder> - 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<PaymentUpdate,
PaymentUpdateAction, PaymentUpdateBuilder> - Parameters:
actions
- values to be set
-
of
factory method- Returns:
- instance of PaymentUpdate
-
of
factory method to create a shallow copy PaymentUpdate- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of PaymentUpdate- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for PaymentUpdate- Returns:
- builder
-
builder
create builder for PaymentUpdate instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withPaymentUpdate
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
-