public class Transaction extends Object
| Constructor and Description |
|---|
Transaction() |
| Modifier and Type | Method and Description |
|---|---|
Transaction |
amount(Double amount) |
Transaction |
balance(Double balance) |
Transaction |
bankAccount(TransactionBank bankAccount) |
Transaction |
bill(Bill bill) |
Transaction |
completedAt(Date completedAt) |
Transaction |
credit(Boolean credit) |
Transaction |
currency(String currency) |
boolean |
equals(Object o) |
Double |
getAmount()
The transaction amount absolute value.
|
Double |
getBalance()
The balance after the transaction.
|
TransactionBank |
getBankAccount()
The bank account associated with this transaction.
|
Bill |
getBill()
The bill or invoice document settled by this transaction.
|
Date |
getCompletedAt()
The date when the transaction was completed (status COMPLETED).
|
String |
getCurrency()
The payment currency alphabetic code based on the ISO 4217.
|
String |
getKey()
The unique payment identification related to the associated bill.
|
String |
getReference()
A user provided payment reference.
|
String |
getStatus()
The transaction status.
|
String |
getType()
The payment type that has been used to make this payment.
|
int |
hashCode() |
Boolean |
isCredit()
The boolean indicating whether the payment has positive or negative amount; true - credit, false - debit.
|
Transaction |
key(String key) |
Transaction |
reference(String reference) |
void |
setAmount(Double amount) |
void |
setBalance(Double balance) |
void |
setBankAccount(TransactionBank bankAccount) |
void |
setBill(Bill bill) |
void |
setCompletedAt(Date completedAt) |
void |
setCredit(Boolean credit) |
void |
setCurrency(String currency) |
void |
setKey(String key) |
void |
setReference(String reference) |
void |
setStatus(String status) |
void |
setType(String type) |
Transaction |
status(String status) |
String |
toString() |
Transaction |
type(String type) |
public Transaction amount(Double amount)
public Double getAmount()
public void setAmount(Double amount)
public Transaction balance(Double balance)
public Double getBalance()
public void setBalance(Double balance)
public Transaction bankAccount(TransactionBank bankAccount)
public TransactionBank getBankAccount()
public void setBankAccount(TransactionBank bankAccount)
public Transaction bill(Bill bill)
public Bill getBill()
public void setBill(Bill bill)
public Transaction completedAt(Date completedAt)
public Date getCompletedAt()
public void setCompletedAt(Date completedAt)
public Transaction credit(Boolean credit)
public Boolean isCredit()
public void setCredit(Boolean credit)
public Transaction currency(String currency)
public String getCurrency()
public void setCurrency(String currency)
public Transaction reference(String reference)
public String getReference()
public void setReference(String reference)
public Transaction key(String key)
public String getKey()
public void setKey(String key)
public Transaction status(String status)
public String getStatus()
public void setStatus(String status)
public Transaction type(String type)
public String getType()
public void setType(String type)
Copyright © 2020. All rights reserved.