package co.dapi.types;
import java.util.Optional;
public class Transaction {
private final float amount;
private final String date;
private final TransactionType type;
private final String description;
private final String details;
private final Currency currency;
private final Float beforeAmount;
private final Float afterAmount;
private final String reference;
public Transaction(float amount, String date, TransactionType type, String description, String details, Currency currency, Float beforeAmount, Float afterAmount, String reference) {
this.amount = amount;
this.date = date;
this.type = type;
this.description = description;
this.details = details;
this.currency = currency;
this.beforeAmount = beforeAmount;
this.afterAmount = afterAmount;
this.reference = reference;
}
public float getAmount() {
return amount;
}
public String getDate() {
return date;
}
public TransactionType getType() {
return type;
}
public String getDescription() {
return description;
}
public String getDetails() {
return details;
}
public Currency getCurrency() {
return currency;
}
public Optional