public class RefundResponse extends SofortLibResponse
| Constructor and Description |
|---|
RefundResponse(java.lang.String title,
RefundBankAccount sender,
java.util.List<Refund> refunds)
Instantiates a new refund response.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<FailureMessage> |
getErrors()
Gets the refund errors.
|
java.lang.String |
getPain()
Gets the plain pain value (already decoded from BASE64 format!).
|
java.util.List<Refund> |
getRefunds()
Gets the refunds.
|
RefundBankAccount |
getSender()
Gets the sender.
|
java.lang.String |
getTitle()
Gets the title.
|
boolean |
hasErrors()
Checks for refund errors.
|
void |
setErrors(java.util.List<FailureMessage> errors)
Sets the refund errors.
|
void |
setPain(java.lang.String pain)
Sets the plain pain value.
|
getResponseErrors, getResponseWarnings, hasResponseErrors, hasResponseWarnings, setResponseErrors, setResponseWarningspublic RefundResponse(java.lang.String title,
RefundBankAccount sender,
java.util.List<Refund> refunds)
title - the titlesender - the senderrefunds - the refundspublic java.lang.String getTitle()
public RefundBankAccount getSender()
public java.util.List<Refund> getRefunds()
public java.lang.String getPain()
public void setPain(java.lang.String pain)
pain - the new painpublic java.util.List<FailureMessage> getErrors()
public void setErrors(java.util.List<FailureMessage> errors)
errors - the new refund errorspublic boolean hasErrors()