public class Payment extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Payment.PaymentTypeEnum
See Payment Types.
|
static class |
Payment.StatusEnum
The status of the payment.
|
| Constructor and Description |
|---|
Payment() |
| Modifier and Type | Method and Description |
|---|---|
Payment |
account(Account account) |
Payment |
amount(Float amount) |
Payment |
bankAccountNumber(String bankAccountNumber) |
Payment |
code(String code) |
Payment |
creditNote(CreditNote creditNote) |
Payment |
creditNoteNumber(String creditNoteNumber) |
Payment |
currencyRate(Float currencyRate) |
Payment |
date(org.threeten.bp.LocalDate date) |
Payment |
details(String details) |
boolean |
equals(Object o) |
Account |
getAccount()
Get account
|
Float |
getAmount()
The amount of the payment.
|
String |
getBankAccountNumber()
The suppliers bank account number the payment is being made to
|
String |
getCode()
Code of account you are using to make the payment e.g.
|
CreditNote |
getCreditNote()
Get creditNote
|
String |
getCreditNoteNumber()
Number of invoice or credit note you are applying payment to e.g.
|
Float |
getCurrencyRate()
Exchange rate when payment is received.
|
org.threeten.bp.LocalDate |
getDate()
Date the payment is being made (YYYY-MM-DD) e.g.
|
String |
getDetails()
The information to appear on the supplier's bank account
|
Invoice |
getInvoice()
Get invoice
|
String |
getInvoiceNumber()
Number of invoice or credit note you are applying payment to e.g.INV-4003
|
String |
getIsReconciled()
An optional parameter for the payment.
|
Overpayment |
getOverpayment()
Get overpayment
|
String |
getParticulars()
The suppliers bank account number the payment is being made to
|
UUID |
getPaymentID()
The Xero identifier for an Payment e.g.
|
Payment.PaymentTypeEnum |
getPaymentType()
See Payment Types.
|
Prepayment |
getPrepayment()
Get prepayment
|
String |
getReference()
An optional description for the payment e.g.
|
Payment.StatusEnum |
getStatus()
The status of the payment.
|
org.threeten.bp.OffsetDateTime |
getUpdatedDateUTC()
UTC timestamp of last update to the payment
|
int |
hashCode() |
Payment |
invoice(Invoice invoice) |
Payment |
invoiceNumber(String invoiceNumber) |
Payment |
isReconciled(String isReconciled) |
Payment |
overpayment(Overpayment overpayment) |
Payment |
particulars(String particulars) |
Payment |
paymentID(UUID paymentID) |
Payment |
prepayment(Prepayment prepayment) |
Payment |
reference(String reference) |
void |
setAccount(Account account) |
void |
setAmount(Float amount) |
void |
setBankAccountNumber(String bankAccountNumber) |
void |
setCode(String code) |
void |
setCreditNote(CreditNote creditNote) |
void |
setCreditNoteNumber(String creditNoteNumber) |
void |
setCurrencyRate(Float currencyRate) |
void |
setDate(org.threeten.bp.LocalDate date) |
void |
setDetails(String details) |
void |
setInvoice(Invoice invoice) |
void |
setInvoiceNumber(String invoiceNumber) |
void |
setIsReconciled(String isReconciled) |
void |
setOverpayment(Overpayment overpayment) |
void |
setParticulars(String particulars) |
void |
setPaymentID(UUID paymentID) |
void |
setPrepayment(Prepayment prepayment) |
void |
setReference(String reference) |
void |
setStatus(Payment.StatusEnum status) |
Payment |
status(Payment.StatusEnum status) |
String |
toString() |
public Invoice getInvoice()
public void setInvoice(Invoice invoice)
public Payment creditNote(CreditNote creditNote)
public CreditNote getCreditNote()
public void setCreditNote(CreditNote creditNote)
public Payment prepayment(Prepayment prepayment)
public Prepayment getPrepayment()
public void setPrepayment(Prepayment prepayment)
public Payment overpayment(Overpayment overpayment)
public Overpayment getOverpayment()
public void setOverpayment(Overpayment overpayment)
public String getInvoiceNumber()
public void setInvoiceNumber(String invoiceNumber)
public String getCreditNoteNumber()
public void setCreditNoteNumber(String creditNoteNumber)
public Account getAccount()
public void setAccount(Account account)
public String getCode()
public void setCode(String code)
public Payment date(org.threeten.bp.LocalDate date)
public org.threeten.bp.LocalDate getDate()
public void setDate(org.threeten.bp.LocalDate date)
public Float getCurrencyRate()
public void setCurrencyRate(Float currencyRate)
public Float getAmount()
public void setAmount(Float amount)
public String getReference()
public void setReference(String reference)
public String getIsReconciled()
public void setIsReconciled(String isReconciled)
public Payment status(Payment.StatusEnum status)
public Payment.StatusEnum getStatus()
public void setStatus(Payment.StatusEnum status)
public Payment.PaymentTypeEnum getPaymentType()
public org.threeten.bp.OffsetDateTime getUpdatedDateUTC()
public UUID getPaymentID()
public void setPaymentID(UUID paymentID)
public String getBankAccountNumber()
public void setBankAccountNumber(String bankAccountNumber)
public String getParticulars()
public void setParticulars(String particulars)
public String getDetails()
public void setDetails(String details)
Copyright © 2018. All rights reserved.