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 PaymentUpdateBuilderbuilder()builder factory method for PaymentUpdatestatic PaymentUpdateBuilderbuilder(PaymentUpdate template) create builder for PaymentUpdate instancecopyDeep()static PaymentUpdatedeepCopy(PaymentUpdate template) factory method to create a deep copy of PaymentUpdate@NotNull @Valid List<PaymentUpdateAction>Update actions to be performed on the Payment.@NotNull LongExpected version of the Payment on which the changes should be applied.static PaymentUpdateof()factory methodstatic PaymentUpdateof(PaymentUpdate template) factory method to create a shallow copy PaymentUpdatevoidsetActions(PaymentUpdateAction... actions) Update actions to be performed on the Payment.voidsetActions(List<PaymentUpdateAction> actions) Update actions to be performed on the Payment.voidsetVersion(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> TwithPaymentUpdate(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:
getVersionin interfaceResourceUpdate<PaymentUpdate,PaymentUpdateAction, PaymentUpdateBuilder> - Returns:
- version
-
getActions
Update actions to be performed on the Payment.
- Specified by:
getActionsin 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:
setVersionin 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:
setActionsin 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
-
copyDeep
PaymentUpdate copyDeep() -
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
-