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.
|
List<TransactionCategory> |
getCategories()
The categories list
|
Date |
getCompletedAt()
The date when the transaction was completed (status COMPLETED).
|
CounterpartyBankAccount |
getCounterparty()
Counterparty bank account
|
String |
getCurrency()
The payment currency alphabetic code based on the ISO 4217.
|
String |
getKey()
The unique payment identification related to the associated bill.
|
Merchant |
getMerchant()
The merchant
|
String |
getReference()
A user provided payment reference.
|
String |
getStatus()
The transaction status.
|
Long |
getTransactionId()
The transaction id
|
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 |
merchant(Merchant merchant) |
Transaction |
reference(String reference) |
void |
setAmount(Double amount) |
void |
setBalance(Double balance) |
void |
setBankAccount(TransactionBank bankAccount) |
void |
setBill(Bill bill) |
void |
setCategories(List<TransactionCategory> categories) |
void |
setCompletedAt(Date completedAt) |
void |
setCounterparty(CounterpartyBankAccount counterparty) |
void |
setCredit(Boolean credit) |
void |
setCurrency(String currency) |
void |
setKey(String key) |
void |
setMerchant(Merchant merchant) |
void |
setReference(String reference) |
void |
setStatus(String status) |
void |
setTransactionId(Long transactionId) |
void |
setType(String type) |
Transaction |
status(String status) |
String |
toString() |
Transaction |
transactionId(Long transactionId) |
Transaction |
type(String type) |
public Transaction transactionId(Long transactionId)
public Long getTransactionId()
public void setTransactionId(Long transactionId)
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)
public Transaction merchant(Merchant merchant)
public Merchant getMerchant()
public void setMerchant(Merchant merchant)
public List<TransactionCategory> getCategories()
public void setCategories(List<TransactionCategory> categories)
public CounterpartyBankAccount getCounterparty()
public void setCounterparty(CounterpartyBankAccount counterparty)
Copyright © 2023. All rights reserved.