Package com.xero.models.accounting
Class BatchPayment
java.lang.Object
com.xero.models.accounting.BatchPayment
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumAUTHORISED or DELETED (read-only).static enumPAYBATCH for bill payments or RECBATCH for sales invoice payments (read-only) -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccountaddPaymentsItem(Payment paymentsItem) An array of paymentsaddValidationErrorsItem(ValidationError validationErrorsItem) Displays array of validation error messages from the APIThe amount of the payment.(NZ Only) Optional references for the batch payment transaction.Date the payment is being made (YYYY-MM-DD) e.g.dateString(String dateString) Date the payment is being made (YYYY-MM-DD) e.g.(Non-NZ Only) These details are sent to the org’s bank as a reference for the batch payment transaction.booleanGet accountThe amount of the payment.The Xero generated unique identifier for the bank transaction (read-only)getCode()(NZ Only) Optional references for the batch payment transaction.getDate()Date the payment is being made (YYYY-MM-DD) e.g.org.threeten.bp.LocalDateDate the payment is being made (YYYY-MM-DD) e.g.Date the payment is being made (YYYY-MM-DD) e.g.(Non-NZ Only) These details are sent to the org’s bank as a reference for the batch payment transaction.Booelan that tells you if the batch payment has been reconciled (read-only)(UK Only) Only shows on the statement line in Xero.(NZ Only) Optional references for the batch payment transaction.An array of payments(NZ Only) Optional references for the batch payment transaction.AUTHORISED or DELETED (read-only).The total of the payments that make up the batch (read-only)getType()PAYBATCH for bill payments or RECBATCH for sales invoice payments (read-only)UTC timestamp of last update to the paymentorg.threeten.bp.OffsetDateTimeUTC timestamp of last update to the paymentDisplays array of validation error messages from the APIinthashCode()(UK Only) Only shows on the statement line in Xero.particulars(String particulars) (NZ Only) Optional references for the batch payment transaction.An array of payments(NZ Only) Optional references for the batch payment transaction.voidsetAccount(Account account) accountvoidThe amount of the payment.void(NZ Only) Optional references for the batch payment transaction.voidDate the payment is being made (YYYY-MM-DD) e.g.voidsetDate(org.threeten.bp.LocalDate date) Date the payment is being made (YYYY-MM-DD) e.g.voidsetDateString(String dateString) Date the payment is being made (YYYY-MM-DD) e.g.voidsetDetails(String details) (Non-NZ Only) These details are sent to the org’s bank as a reference for the batch payment transaction.voidsetNarrative(String narrative) (UK Only) Only shows on the statement line in Xero.voidsetParticulars(String particulars) (NZ Only) Optional references for the batch payment transaction.voidsetPayments(List<Payment> payments) An array of paymentsvoidsetReference(String reference) (NZ Only) Optional references for the batch payment transaction.voidsetValidationErrors(List<ValidationError> validationErrors) Displays array of validation error messages from the APItoString()validationErrors(List<ValidationError> validationErrors) Displays array of validation error messages from the API
-
Constructor Details
-
BatchPayment
public BatchPayment()
-
-
Method Details
-
account
account- Parameters:
account- Account- Returns:
- BatchPayment
-
getAccount
-
setAccount
-
reference
(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.- Parameters:
reference- String- Returns:
- BatchPayment
-
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
(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.- Parameters:
reference- String
-
particulars
(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.- Parameters:
particulars- String- Returns:
- BatchPayment
-
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
(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.- Parameters:
particulars- String
-
code
(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.- Parameters:
code- String- Returns:
- BatchPayment
-
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
(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.- Parameters:
code- String
-
details
(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- Parameters:
details- String- Returns:
- BatchPayment
-
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
(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- Parameters:
details- String
-
narrative
(UK Only) Only shows on the statement line in Xero. Max length =18- Parameters:
narrative- String- Returns:
- BatchPayment
-
getNarrative
(UK Only) Only shows on the statement line in Xero. Max length =18- Returns:
- narrative
-
setNarrative
(UK Only) Only shows on the statement line in Xero. Max length =18- Parameters:
narrative- String
-
getBatchPaymentID
The Xero generated unique identifier for the bank transaction (read-only)- Returns:
- batchPaymentID
-
dateString
Date the payment is being made (YYYY-MM-DD) e.g. 2009-09-06- Parameters:
dateString- String- Returns:
- BatchPayment
-
getDateString
Date the payment is being made (YYYY-MM-DD) e.g. 2009-09-06- Returns:
- dateString
-
setDateString
Date the payment is being made (YYYY-MM-DD) e.g. 2009-09-06- Parameters:
dateString- String
-
date
Date the payment is being made (YYYY-MM-DD) e.g. 2009-09-06- Parameters:
date- String- Returns:
- BatchPayment
-
getDate
-
getDateAsDate
public org.threeten.bp.LocalDate getDateAsDate()Date the payment is being made (YYYY-MM-DD) e.g. 2009-09-06- Returns:
- LocalDate
-
setDate
Date the payment is being made (YYYY-MM-DD) e.g. 2009-09-06- Parameters:
date- String
-
setDate
public void setDate(org.threeten.bp.LocalDate date) Date the payment is being made (YYYY-MM-DD) e.g. 2009-09-06- Parameters:
date- LocalDateTime
-
amount
The amount of the payment. Must be less than or equal to the outstanding amount owing on the invoice e.g. 200.00- Parameters:
amount- Double- Returns:
- BatchPayment
-
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
The amount of the payment. Must be less than or equal to the outstanding amount owing on the invoice e.g. 200.00- Parameters:
amount- Double
-
payments
An array of payments- Parameters:
payments- List<Payment>- Returns:
- BatchPayment
-
addPaymentsItem
An array of payments- Parameters:
paymentsItem- Payment- Returns:
- BatchPayment
-
getPayments
-
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()UTC timestamp of last update to the payment- Returns:
- OffsetDateTime
-
getIsReconciled
Booelan that tells you if the batch payment has been reconciled (read-only)- Returns:
- isReconciled
-
validationErrors
Displays array of validation error messages from the API- Parameters:
validationErrors- List<ValidationError>- Returns:
- BatchPayment
-
addValidationErrorsItem
Displays array of validation error messages from the API- Parameters:
validationErrorsItem- ValidationError- Returns:
- BatchPayment
-
getValidationErrors
Displays array of validation error messages from the API- Returns:
- validationErrors
-
setValidationErrors
Displays array of validation error messages from the API- Parameters:
validationErrors- List<ValidationError>
-
equals
-
hashCode
-
toString
-