Package com.xero.models.accounting
Class BankTransfer
- java.lang.Object
-
- com.xero.models.accounting.BankTransfer
-
public class BankTransfer extends Object
BankTransfer
-
-
Constructor Summary
Constructors Constructor Description BankTransfer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BankTransferaddValidationErrorsItem(ValidationError validationErrorsItem)Displays array of validation error messages from the APIBankTransferamount(Double amount)amount of the transactionBankTransferdate(String date)The date of the Transfer YYYY-MM-DDbooleanequals(Object o)BankTransferfromBankAccount(Account fromBankAccount)fromBankAccountDoublegetAmount()amount of the transactionUUIDgetBankTransferID()The identifier of the Bank TransferStringgetCreatedDateUTC()UTC timestamp of creation date of bank transferorg.threeten.bp.OffsetDateTimegetCreatedDateUTCAsDate()UTC timestamp of creation date of bank transferDoublegetCurrencyRate()The currency rateStringgetDate()The date of the Transfer YYYY-MM-DDorg.threeten.bp.LocalDategetDateAsDate()The date of the Transfer YYYY-MM-DDAccountgetFromBankAccount()Get fromBankAccountUUIDgetFromBankTransactionID()The Bank Transaction ID for the source accountBooleangetHasAttachments()Boolean to indicate if a Bank Transfer has an attachmentAccountgetToBankAccount()Get toBankAccountUUIDgetToBankTransactionID()The Bank Transaction ID for the destination accountList<ValidationError>getValidationErrors()Displays array of validation error messages from the APIinthashCode()voidsetAmount(Double amount)amount of the transactionvoidsetDate(String date)The date of the Transfer YYYY-MM-DDvoidsetDate(org.threeten.bp.LocalDate date)The date of the Transfer YYYY-MM-DDvoidsetFromBankAccount(Account fromBankAccount)fromBankAccountvoidsetToBankAccount(Account toBankAccount)toBankAccountvoidsetValidationErrors(List<ValidationError> validationErrors)Displays array of validation error messages from the APIBankTransfertoBankAccount(Account toBankAccount)toBankAccountStringtoString()BankTransfervalidationErrors(List<ValidationError> validationErrors)Displays array of validation error messages from the API
-
-
-
Method Detail
-
fromBankAccount
public BankTransfer fromBankAccount(Account fromBankAccount)
fromBankAccount- Parameters:
fromBankAccount- Account- Returns:
- BankTransfer
-
getFromBankAccount
public Account getFromBankAccount()
Get fromBankAccount- Returns:
- fromBankAccount
-
setFromBankAccount
public void setFromBankAccount(Account fromBankAccount)
fromBankAccount- Parameters:
fromBankAccount- Account
-
toBankAccount
public BankTransfer toBankAccount(Account toBankAccount)
toBankAccount- Parameters:
toBankAccount- Account- Returns:
- BankTransfer
-
getToBankAccount
public Account getToBankAccount()
Get toBankAccount- Returns:
- toBankAccount
-
setToBankAccount
public void setToBankAccount(Account toBankAccount)
toBankAccount- Parameters:
toBankAccount- Account
-
amount
public BankTransfer amount(Double amount)
amount of the transaction- Parameters:
amount- Double- Returns:
- BankTransfer
-
getAmount
public Double getAmount()
amount of the transaction- Returns:
- amount
-
setAmount
public void setAmount(Double amount)
amount of the transaction- Parameters:
amount- Double
-
date
public BankTransfer date(String date)
The date of the Transfer YYYY-MM-DD- Parameters:
date- String- Returns:
- BankTransfer
-
getDate
public String getDate()
The date of the Transfer YYYY-MM-DD- Returns:
- date
-
getDateAsDate
public org.threeten.bp.LocalDate getDateAsDate()
The date of the Transfer YYYY-MM-DD- Returns:
- LocalDate
-
setDate
public void setDate(String date)
The date of the Transfer YYYY-MM-DD- Parameters:
date- String
-
setDate
public void setDate(org.threeten.bp.LocalDate date)
The date of the Transfer YYYY-MM-DD- Parameters:
date- LocalDateTime
-
getBankTransferID
public UUID getBankTransferID()
The identifier of the Bank Transfer- Returns:
- bankTransferID
-
getCurrencyRate
public Double getCurrencyRate()
The currency rate- Returns:
- currencyRate
-
getFromBankTransactionID
public UUID getFromBankTransactionID()
The Bank Transaction ID for the source account- Returns:
- fromBankTransactionID
-
getToBankTransactionID
public UUID getToBankTransactionID()
The Bank Transaction ID for the destination account- Returns:
- toBankTransactionID
-
getHasAttachments
public Boolean getHasAttachments()
Boolean to indicate if a Bank Transfer has an attachment- Returns:
- hasAttachments
-
getCreatedDateUTC
public String getCreatedDateUTC()
UTC timestamp of creation date of bank transfer- Returns:
- createdDateUTC
-
getCreatedDateUTCAsDate
public org.threeten.bp.OffsetDateTime getCreatedDateUTCAsDate()
UTC timestamp of creation date of bank transfer- Returns:
- OffsetDateTime
-
validationErrors
public BankTransfer validationErrors(List<ValidationError> validationErrors)
Displays array of validation error messages from the API- Parameters:
validationErrors- List<ValidationError>- Returns:
- BankTransfer
-
addValidationErrorsItem
public BankTransfer addValidationErrorsItem(ValidationError validationErrorsItem)
Displays array of validation error messages from the API- Parameters:
validationErrorsItem- ValidationError- Returns:
- BankTransfer
-
getValidationErrors
public List<ValidationError> getValidationErrors()
Displays array of validation error messages from the API- Returns:
- validationErrors
-
setValidationErrors
public void setValidationErrors(List<ValidationError> validationErrors)
Displays array of validation error messages from the API- Parameters:
validationErrors- List<ValidationError>
-
-