| Constructor and Description |
|---|
Transfer(String senderID,
float amount,
String receiverID)
Create an object that holds the info for a transfer from a bank that requires the receiver to be already
registered as a beneficiary to perform a transaction.
|
Transfer(String senderID,
float amount,
String receiverID,
String remark)
Create an object that holds the info for a transfer from a bank that requires the receiver to be already
registered as a beneficiary to perform a transaction.
|
Transfer(String senderID,
float amount,
String name,
String iban,
String accountNumber)
Create an object that holds the info for a transfer from a bank that handles the creation of beneficiaries
on its own, internally, and doesn't require the receiver to be already registered as a beneficiary to perform
a transaction.
|
Transfer(String senderID,
float amount,
String name,
String iban,
String accountNumber,
String remark,
String nickname)
Create an object that holds the info for a transfer from a bank that handles the creation of beneficiaries
on its own, internally, and doesn't require the receiver to be already registered as a beneficiary to perform
a transaction.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<String> |
getAccountNumber() |
float |
getAmount() |
Optional<String> |
getIban() |
Optional<String> |
getName() |
Optional<String> |
getNickname() |
Optional<String> |
getReceiverID() |
Optional<String> |
getRemark() |
String |
getSenderID() |
public Transfer(String senderID, float amount, String receiverID)
senderID - the id of the account which the money should be sent from.
retrieved from one of the accounts array returned from the getAccounts method.amount - the amount of money which should be sent.receiverID - the id of the beneficiary which the money should be sent to.
retrieved from one of the beneficiaries array returned from the getBeneficiaries method.public Transfer(String senderID, float amount, String receiverID, String remark)
senderID - the id of the account which the money should be sent from.
retrieved from one of the accounts array returned from the getAccounts method.amount - the amount of money which should be sent.receiverID - the id of the beneficiary which the money should be sent to.
retrieved from one of the beneficiaries array returned from the getBeneficiaries method.remark - the remark string that will be sent with this transfer.public Transfer(String senderID, float amount, String name, String iban, String accountNumber)
senderID - the id of the account which the money should be sent from.
retrieved from one of the accounts array returned from the getAccounts method.amount - the amount of money which should be sent.name - the name of receiver.iban - the IBAN of the receiver's account.accountNumber - the Account Number of the receiver's account.public Transfer(String senderID, float amount, String name, String iban, String accountNumber, String remark, String nickname)
senderID - the id of the account which the money should be sent from.
retrieved from one of the accounts array returned from the getAccounts method.amount - the amount of money which should be sent.name - the name of receiver.iban - the IBAN of the receiver's account.accountNumber - the Account Number of the receiver's account.remark - the remark string that will be sent with this transfer.nickname - the nickname of the receiver.public String getSenderID()
public float getAmount()
Copyright © 2021 Dapi. All rights reserved.