Interface PaymentStatus
public interface PaymentStatus
PaymentStatus
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
PaymentStatus paymentStatus = PaymentStatus.builder()
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic PaymentStatusBuilder
builder()
builder factory method for PaymentStatusstatic PaymentStatusBuilder
builder
(PaymentStatus template) create builder for PaymentStatus instancecopyDeep()
static PaymentStatus
deepCopy
(PaymentStatus template) factory method to create a deep copy of PaymentStatusExternal reference that identifies the current status of the Payment.Text describing the current status of the Payment.@Valid StateReference
getState()
static PaymentStatus
of()
factory methodstatic PaymentStatus
of
(PaymentStatus template) factory method to create a shallow copy PaymentStatusvoid
setInterfaceCode
(String interfaceCode) External reference that identifies the current status of the Payment.void
setInterfaceText
(String interfaceText) Text describing the current status of the Payment.void
setState
(StateReference state) static com.fasterxml.jackson.core.type.TypeReference<PaymentStatus>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withPaymentStatus
(Function<PaymentStatus, T> helper) accessor map function
-
Method Details
-
getInterfaceCode
String getInterfaceCode()External reference that identifies the current status of the Payment.
- Returns:
- interfaceCode
-
getInterfaceText
String getInterfaceText()Text describing the current status of the Payment.
- Returns:
- interfaceText
-
getState
- Returns:
- state
-
setInterfaceCode
External reference that identifies the current status of the Payment.
- Parameters:
interfaceCode
- value to be set
-
setInterfaceText
Text describing the current status of the Payment.
- Parameters:
interfaceText
- value to be set
-
setState
- Parameters:
state
- value to be set
-
of
factory method- Returns:
- instance of PaymentStatus
-
of
factory method to create a shallow copy PaymentStatus- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
PaymentStatus copyDeep() -
deepCopy
factory method to create a deep copy of PaymentStatus- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for PaymentStatus- Returns:
- builder
-
builder
create builder for PaymentStatus instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withPaymentStatus
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
-