Package com.xero.models.accounting
Class BatchPayment
java.lang.Object
com.xero.models.accounting.BatchPayment
public class BatchPayment extends Object
BatchPayment
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBatchPayment.StatusEnumAUTHORISED or DELETED (read-only).static classBatchPayment.TypeEnumPAYBATCH for bill payments or RECBATCH for sales invoice payments (read-only) -
Constructor Summary
Constructors Constructor Description BatchPayment() -
Method Summary
Modifier and Type Method Description BatchPaymentaccount(Account account)BatchPaymentaddPaymentsItem(Payment paymentsItem)BatchPaymentamount(Double amount)BatchPaymentcode(String code)BatchPaymentdate(String date)BatchPaymentdateString(String dateString)BatchPaymentdetails(String details)booleanequals(Object o)AccountgetAccount()Get accountDoublegetAmount()The amount of the payment.UUIDgetBatchPaymentID()The Xero generated unique identifier for the bank transaction (read-only)StringgetCode()(NZ Only) Optional references for the batch payment transaction.StringgetDate()Date the payment is being made (YYYY-MM-DD) e.g.org.threeten.bp.LocalDategetDateAsDate()StringgetDateString()Date the payment is being made (YYYY-MM-DD) e.g.StringgetDetails()(Non-NZ Only) These details are sent to the org’s bank as a reference for the batch payment transaction.StringgetIsReconciled()Booelan that tells you if the batch payment has been reconciled (read-only)StringgetNarrative()(UK Only) Only shows on the statement line in Xero.StringgetParticulars()(NZ Only) Optional references for the batch payment transaction.List<Payment>getPayments()An array of paymentsStringgetReference()(NZ Only) Optional references for the batch payment transaction.BatchPayment.StatusEnumgetStatus()AUTHORISED or DELETED (read-only).StringgetTotalAmount()The total of the payments that make up the batch (read-only)BatchPayment.TypeEnumgetType()PAYBATCH for bill payments or RECBATCH for sales invoice payments (read-only)StringgetUpdatedDateUTC()UTC timestamp of last update to the paymentorg.threeten.bp.OffsetDateTimegetUpdatedDateUTCAsDate()inthashCode()BatchPaymentnarrative(String narrative)BatchPaymentparticulars(String particulars)BatchPaymentpayments(List<Payment> payments)BatchPaymentreference(String reference)voidsetAccount(Account account)voidsetAmount(Double amount)voidsetCode(String code)voidsetDate(String date)voidsetDate(org.threeten.bp.LocalDate date)voidsetDateString(String dateString)voidsetDetails(String details)voidsetNarrative(String narrative)voidsetParticulars(String particulars)voidsetPayments(List<Payment> payments)voidsetReference(String reference)StringtoString()
-
Constructor Details
-
BatchPayment
public BatchPayment()
-
-
Method Details
-
account
-
getAccount
Get account- Returns:
- account
-
setAccount
-
reference
-
getReference
(NZ Only) Optional references for the batch payment transaction. It will also show with the batch payment transaction in the bank reconciliation Find & Match screen. Depending on your individual bank, the detail may also show on the bank statement you import into Xero.- Returns:
- reference
-
setReference
-
particulars
-
getParticulars
(NZ Only) Optional references for the batch payment transaction. It will also show with the batch payment transaction in the bank reconciliation Find & Match screen. Depending on your individual bank, the detail may also show on the bank statement you import into Xero.- Returns:
- particulars
-
setParticulars
-
code
-
getCode
(NZ Only) Optional references for the batch payment transaction. It will also show with the batch payment transaction in the bank reconciliation Find & Match screen. Depending on your individual bank, the detail may also show on the bank statement you import into Xero.- Returns:
- code
-
setCode
-
details
-
getDetails
(Non-NZ Only) These details are sent to the org’s bank as a reference for the batch payment transaction. They will also show with the batch payment transaction in the bank reconciliation Find & Match screen. Depending on your individual bank, the detail may also show on the bank statement imported into Xero. Maximum field length = 18- Returns:
- details
-
setDetails
-
narrative
-
getNarrative
(UK Only) Only shows on the statement line in Xero. Max length =18- Returns:
- narrative
-
setNarrative
-
getBatchPaymentID
The Xero generated unique identifier for the bank transaction (read-only)- Returns:
- batchPaymentID
-
dateString
-
getDateString
Date the payment is being made (YYYY-MM-DD) e.g. 2009-09-06- Returns:
- dateString
-
setDateString
-
date
-
getDate
Date the payment is being made (YYYY-MM-DD) e.g. 2009-09-06- Returns:
- date
-
getDateAsDate
public org.threeten.bp.LocalDate getDateAsDate() -
setDate
-
setDate
public void setDate(org.threeten.bp.LocalDate date) -
amount
-
getAmount
The amount of the payment. Must be less than or equal to the outstanding amount owing on the invoice e.g. 200.00- Returns:
- amount
-
setAmount
-
payments
-
addPaymentsItem
-
getPayments
An array of payments- Returns:
- payments
-
setPayments
-
getType
PAYBATCH for bill payments or RECBATCH for sales invoice payments (read-only)- Returns:
- type
-
getStatus
AUTHORISED or DELETED (read-only). New batch payments will have a status of AUTHORISED. It is not possible to delete batch payments via the API.- Returns:
- status
-
getTotalAmount
The total of the payments that make up the batch (read-only)- Returns:
- totalAmount
-
getUpdatedDateUTC
UTC timestamp of last update to the payment- Returns:
- updatedDateUTC
-
getUpdatedDateUTCAsDate
public org.threeten.bp.OffsetDateTime getUpdatedDateUTCAsDate() -
getIsReconciled
Booelan that tells you if the batch payment has been reconciled (read-only)- Returns:
- isReconciled
-
equals
-
hashCode
public int hashCode() -
toString
-