Class PaymentTransitionStateActionImpl
java.lang.Object
com.commercetools.api.models.payment.PaymentTransitionStateActionImpl
- All Implemented Interfaces:
PaymentTransitionStateAction
,PaymentUpdateAction
,ResourceUpdateAction<PaymentUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class PaymentTransitionStateActionImpl
extends Object
implements PaymentTransitionStateAction, io.vrap.rmf.base.client.ModelBase
If the Payment has no current State, initial
must be true
for the new State. If the existing State has transitions set, the new State must be a valid transition. If the existing State has no transitions set, no validations are performed when transitioning to the new State.
Transitioning the State of a Payment produces the PaymentStatusStateTransition Message.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Field Summary
Fields inherited from interface com.commercetools.api.models.payment.PaymentTransitionStateAction
TRANSITION_STATE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getForce()
Set totrue
to skip validations when transitioning to the new State.getState()
ResourceIdentifier to a State.int
hashCode()
void
Set totrue
to skip validations when transitioning to the new State.void
setState
(StateResourceIdentifier state) ResourceIdentifier to a State.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.payment.PaymentTransitionStateAction
withPaymentTransitionStateAction
Methods inherited from interface com.commercetools.api.models.payment.PaymentUpdateAction
withPaymentUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Constructor Details
-
PaymentTransitionStateActionImpl
public PaymentTransitionStateActionImpl()create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfacePaymentUpdateAction
- Specified by:
getAction
in interfaceResourceUpdateAction<PaymentUpdateAction>
- Returns:
- action
-
getState
ResourceIdentifier to a State.
- Specified by:
getState
in interfacePaymentTransitionStateAction
- Returns:
- state
-
getForce
Set to
true
to skip validations when transitioning to the new State.- Specified by:
getForce
in interfacePaymentTransitionStateAction
- Returns:
- force
-
setState
Description copied from interface:PaymentTransitionStateAction
ResourceIdentifier to a State.
- Specified by:
setState
in interfacePaymentTransitionStateAction
- Parameters:
state
- value to be set
-
setForce
Description copied from interface:PaymentTransitionStateAction
Set to
true
to skip validations when transitioning to the new State.- Specified by:
setForce
in interfacePaymentTransitionStateAction
- Parameters:
force
- value to be set
-
equals
-
hashCode
-