public class Refund
extends java.lang.Object
| Constructor and Description |
|---|
Refund(java.lang.String transId,
double amount,
java.lang.String partialRefundId,
java.lang.String status)
Instantiates a new refund.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getAmount()
Gets the amount.
|
java.lang.String |
getComment()
Gets the comment.
|
java.util.List<FailureMessage> |
getErrors()
Gets the errors.
|
java.lang.String |
getPartialRefundId()
Gets the partial refund id.
|
java.lang.String |
getReason1()
Gets the reason1.
|
java.lang.String |
getReason2()
Gets the reason2.
|
RefundBankAccount |
getRecipient()
Gets the recipient.
|
java.lang.String |
getStatus()
Gets the status.
|
java.util.Date |
getTime()
Gets the refund creation time.
|
java.lang.String |
getTransId()
Gets the trans id.
|
boolean |
hasErrors()
Checks for errors.
|
void |
setComment(java.lang.String comment)
Sets the comment.
|
void |
setErrors(java.util.List<FailureMessage> errors)
Sets the errors.
|
void |
setReason1(java.lang.String reason1)
Sets the reason1.
|
void |
setReason2(java.lang.String reason2)
Sets the reason2.
|
void |
setRecipient(RefundBankAccount recipient)
Sets the recipient.
|
void |
setTime(java.util.Date time)
Sets the refund creation time.
|
public Refund(java.lang.String transId,
double amount,
java.lang.String partialRefundId,
java.lang.String status)
transId - the trans idamount - the amountpartialRefundId - the partial refund idstatus - the statuspublic RefundBankAccount getRecipient()
public void setRecipient(RefundBankAccount recipient)
recipient - the recipient to setpublic java.lang.String getTransId()
public double getAmount()
public java.lang.String getComment()
public void setComment(java.lang.String comment)
comment - the new commentpublic java.lang.String getStatus()
public java.lang.String getReason1()
public void setReason1(java.lang.String reason1)
reason1 - the new reason1public java.lang.String getReason2()
public void setReason2(java.lang.String reason2)
reason2 - the new reason2public java.util.Date getTime()
public void setTime(java.util.Date time)
time - the refund creation time to setpublic java.lang.String getPartialRefundId()
public java.util.List<FailureMessage> getErrors()
public void setErrors(java.util.List<FailureMessage> errors)
errors - the new errorspublic boolean hasErrors()