Interface PaymentMethodUpdate
public interface PaymentMethodUpdate
PaymentMethodUpdate
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
PaymentMethodUpdate paymentMethodUpdate = PaymentMethodUpdate.builder()
.version(0.3)
.plusActions(actionsBuilder -> actionsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic PaymentMethodUpdateBuilder
builder()
builder factory method for PaymentMethodUpdatestatic PaymentMethodUpdateBuilder
builder
(PaymentMethodUpdate template) create builder for PaymentMethodUpdate instancecopyDeep()
static PaymentMethodUpdate
deepCopy
(PaymentMethodUpdate template) factory method to create a deep copy of PaymentMethodUpdate@NotNull @Valid List<PaymentMethodUpdateAction>
Update actions to be performed on the PaymentMethod.@NotNull Long
Expected version of the PaymentMethod on which the changes should be applied.static PaymentMethodUpdate
of()
factory methodstatic PaymentMethodUpdate
of
(PaymentMethodUpdate template) factory method to create a shallow copy PaymentMethodUpdatevoid
setActions
(PaymentMethodUpdateAction... actions) Update actions to be performed on the PaymentMethod.void
setActions
(List<PaymentMethodUpdateAction> actions) Update actions to be performed on the PaymentMethod.void
setVersion
(Long version) Expected version of the PaymentMethod on which the changes should be applied.static com.fasterxml.jackson.core.type.TypeReference<PaymentMethodUpdate>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withPaymentMethodUpdate
(Function<PaymentMethodUpdate, T> helper) accessor map function
-
Method Details
-
getVersion
Expected version of the PaymentMethod on which the changes should be applied. If the expected version does not match the actual version, a ConcurrentModification error will be returned.
- Returns:
- version
-
getActions
Update actions to be performed on the PaymentMethod.
- Returns:
- actions
-
setVersion
Expected version of the PaymentMethod on which the changes should be applied. If the expected version does not match the actual version, a ConcurrentModification error will be returned.
- Parameters:
version
- value to be set
-
setActions
Update actions to be performed on the PaymentMethod.
- Parameters:
actions
- values to be set
-
setActions
Update actions to be performed on the PaymentMethod.
- Parameters:
actions
- values to be set
-
of
factory method- Returns:
- instance of PaymentMethodUpdate
-
of
factory method to create a shallow copy PaymentMethodUpdate- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
PaymentMethodUpdate copyDeep() -
deepCopy
factory method to create a deep copy of PaymentMethodUpdate- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for PaymentMethodUpdate- Returns:
- builder
-
builder
create builder for PaymentMethodUpdate instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withPaymentMethodUpdate
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
-