Package com.xero.models.accounting
Class Payment
java.lang.Object
com.xero.models.accounting.Payment
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumSee Payment Types.static enumThe status of the payment. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccountaddValidationErrorsItem(ValidationError validationErrorsItem) Displays array of validation error messages from the APIaddWarningsItem(ValidationError warningsItem) Displays array of warning messages from the APIThe amount of the payment.bankAccountNumber(String bankAccountNumber) The suppliers bank account number the payment is being made tobankAmount(Double bankAmount) The amount of the payment in the currency of the bank account.batchPayment(BatchPayment batchPayment) batchPaymentbatchPaymentID(UUID batchPaymentID) Present if the payment was created as part of a batch.Code of account you are using to make the payment e.g.creditNote(CreditNote creditNote) creditNotecreditNoteNumber(String creditNoteNumber) Number of invoice or credit note you are applying payment to e.g.currencyRate(Double currencyRate) Exchange rate when payment is received.Date the payment is being made (YYYY-MM-DD) e.g.The information to appear on the supplier's bank accountbooleanGet accountThe amount of the payment.The suppliers bank account number the payment is being made toThe amount of the payment in the currency of the bank account.Get batchPaymentPresent if the payment was created as part of a batch.getCode()Code of account you are using to make the payment e.g.Get creditNoteNumber of invoice or credit note you are applying payment to e.g.Exchange rate when payment is received.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.The information to appear on the supplier's bank accountA boolean to indicate if a contact has an validation errorsA boolean to indicate if a contact has an validation errorsGet invoiceNumber of invoice or credit note you are applying payment to e.g.INV-4003An optional parameter for the payment.Get overpaymentThe suppliers bank account number the payment is being made toThe Xero identifier for an Payment e.g.See Payment Types.Get prepaymentAn optional description for the payment e.g.The status of the payment.A string to indicate if a invoice statusUTC timestamp of last update to the paymentorg.threeten.bp.OffsetDateTimeUTC timestamp of last update to the paymentDisplays array of validation error messages from the APIDisplays array of warning messages from the APIhasAccount(Boolean hasAccount) A boolean to indicate if a contact has an validation errorsinthashCode()hasValidationErrors(Boolean hasValidationErrors) A boolean to indicate if a contact has an validation errorsinvoiceinvoiceNumber(String invoiceNumber) Number of invoice or credit note you are applying payment to e.g.INV-4003isReconciled(Boolean isReconciled) An optional parameter for the payment.overpayment(Overpayment overpayment) overpaymentparticulars(String particulars) The suppliers bank account number the payment is being made toThe Xero identifier for an Payment e.g.prepayment(Prepayment prepayment) prepaymentAn optional description for the payment e.g.voidsetAccount(Account account) accountvoidThe amount of the payment.voidsetBankAccountNumber(String bankAccountNumber) The suppliers bank account number the payment is being made tovoidsetBankAmount(Double bankAmount) The amount of the payment in the currency of the bank account.voidsetBatchPayment(BatchPayment batchPayment) batchPaymentvoidsetBatchPaymentID(UUID batchPaymentID) Present if the payment was created as part of a batch.voidCode of account you are using to make the payment e.g.voidsetCreditNote(CreditNote creditNote) creditNotevoidsetCreditNoteNumber(String creditNoteNumber) Number of invoice or credit note you are applying payment to e.g.voidsetCurrencyRate(Double currencyRate) Exchange rate when payment is received.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.voidsetDetails(String details) The information to appear on the supplier's bank accountvoidsetHasAccount(Boolean hasAccount) A boolean to indicate if a contact has an validation errorsvoidsetHasValidationErrors(Boolean hasValidationErrors) A boolean to indicate if a contact has an validation errorsvoidsetInvoice(Invoice invoice) invoicevoidsetInvoiceNumber(String invoiceNumber) Number of invoice or credit note you are applying payment to e.g.INV-4003voidsetIsReconciled(Boolean isReconciled) An optional parameter for the payment.voidsetOverpayment(Overpayment overpayment) overpaymentvoidsetParticulars(String particulars) The suppliers bank account number the payment is being made tovoidsetPaymentID(UUID paymentID) The Xero identifier for an Payment e.g.voidsetPrepayment(Prepayment prepayment) prepaymentvoidsetReference(String reference) An optional description for the payment e.g.voidsetStatus(Payment.StatusEnum status) The status of the payment.voidsetStatusAttributeString(String statusAttributeString) A string to indicate if a invoice statusvoidsetValidationErrors(List<ValidationError> validationErrors) Displays array of validation error messages from the APIvoidsetWarnings(List<ValidationError> warnings) Displays array of warning messages from the APIstatus(Payment.StatusEnum status) The status of the payment.statusAttributeString(String statusAttributeString) A string to indicate if a invoice statustoString()validationErrors(List<ValidationError> validationErrors) Displays array of validation error messages from the APIwarnings(List<ValidationError> warnings) Displays array of warning messages from the API
-
Constructor Details
-
Payment
public Payment()
-
-
Method Details
-
invoice
-
getInvoice
-
setInvoice
-
creditNote
creditNote- Parameters:
creditNote- CreditNote- Returns:
- Payment
-
getCreditNote
-
setCreditNote
-
prepayment
prepayment- Parameters:
prepayment- Prepayment- Returns:
- Payment
-
getPrepayment
-
setPrepayment
-
overpayment
overpayment- Parameters:
overpayment- Overpayment- Returns:
- Payment
-
getOverpayment
-
setOverpayment
overpayment- Parameters:
overpayment- Overpayment
-
invoiceNumber
-
getInvoiceNumber
Number of invoice or credit note you are applying payment to e.g.INV-4003- Returns:
- invoiceNumber
-
setInvoiceNumber
Number of invoice or credit note you are applying payment to e.g.INV-4003- Parameters:
invoiceNumber- String
-
creditNoteNumber
-
getCreditNoteNumber
Number of invoice or credit note you are applying payment to e.g. INV-4003- Returns:
- creditNoteNumber
-
setCreditNoteNumber
Number of invoice or credit note you are applying payment to e.g. INV-4003- Parameters:
creditNoteNumber- String
-
batchPayment
batchPayment- Parameters:
batchPayment- BatchPayment- Returns:
- Payment
-
getBatchPayment
-
setBatchPayment
batchPayment- Parameters:
batchPayment- BatchPayment
-
account
-
getAccount
-
setAccount
-
code
-
getCode
Code of account you are using to make the payment e.g. 001 (note- not all accounts have a code value)- Returns:
- code
-
setCode
Code of account you are using to make the payment e.g. 001 (note- not all accounts have a code value)- Parameters:
code- String
-
date
-
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
-
currencyRate
-
getCurrencyRate
Exchange rate when payment is received. Only used for non base currency invoices and credit notes e.g. 0.7500- Returns:
- currencyRate
-
setCurrencyRate
Exchange rate when payment is received. Only used for non base currency invoices and credit notes e.g. 0.7500- Parameters:
currencyRate- Double
-
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
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
-
bankAmount
-
getBankAmount
The amount of the payment in the currency of the bank account.- Returns:
- bankAmount
-
setBankAmount
The amount of the payment in the currency of the bank account.- Parameters:
bankAmount- Double
-
reference
-
getReference
An optional description for the payment e.g. Direct Debit- Returns:
- reference
-
setReference
An optional description for the payment e.g. Direct Debit- Parameters:
reference- String
-
isReconciled
-
getIsReconciled
An optional parameter for the payment. A boolean indicating whether you would like the payment to be created as reconciled when using PUT, or whether a payment has been reconciled when using GET- Returns:
- isReconciled
-
setIsReconciled
An optional parameter for the payment. A boolean indicating whether you would like the payment to be created as reconciled when using PUT, or whether a payment has been reconciled when using GET- Parameters:
isReconciled- Boolean
-
status
The status of the payment.- Parameters:
status- StatusEnum- Returns:
- Payment
-
getStatus
-
setStatus
The status of the payment.- Parameters:
status- StatusEnum
-
getPaymentType
-
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
-
paymentID
-
getPaymentID
The Xero identifier for an Payment e.g. 297c2dc5-cc47-4afd-8ec8-74990b8761e9- Returns:
- paymentID
-
setPaymentID
The Xero identifier for an Payment e.g. 297c2dc5-cc47-4afd-8ec8-74990b8761e9- Parameters:
paymentID- UUID
-
batchPaymentID
-
getBatchPaymentID
Present if the payment was created as part of a batch.- Returns:
- batchPaymentID
-
setBatchPaymentID
Present if the payment was created as part of a batch.- Parameters:
batchPaymentID- UUID
-
bankAccountNumber
-
getBankAccountNumber
The suppliers bank account number the payment is being made to- Returns:
- bankAccountNumber
-
setBankAccountNumber
The suppliers bank account number the payment is being made to- Parameters:
bankAccountNumber- String
-
particulars
-
getParticulars
The suppliers bank account number the payment is being made to- Returns:
- particulars
-
setParticulars
The suppliers bank account number the payment is being made to- Parameters:
particulars- String
-
details
-
getDetails
The information to appear on the supplier's bank account- Returns:
- details
-
setDetails
The information to appear on the supplier's bank account- Parameters:
details- String
-
hasAccount
-
getHasAccount
A boolean to indicate if a contact has an validation errors- Returns:
- hasAccount
-
setHasAccount
A boolean to indicate if a contact has an validation errors- Parameters:
hasAccount- Boolean
-
hasValidationErrors
-
getHasValidationErrors
A boolean to indicate if a contact has an validation errors- Returns:
- hasValidationErrors
-
setHasValidationErrors
A boolean to indicate if a contact has an validation errors- Parameters:
hasValidationErrors- Boolean
-
statusAttributeString
-
getStatusAttributeString
A string to indicate if a invoice status- Returns:
- statusAttributeString
-
setStatusAttributeString
A string to indicate if a invoice status- Parameters:
statusAttributeString- String
-
validationErrors
Displays array of validation error messages from the API- Parameters:
validationErrors- List<ValidationError>- Returns:
- Payment
-
addValidationErrorsItem
Displays array of validation error messages from the API- Parameters:
validationErrorsItem- ValidationError- Returns:
- Payment
-
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>
-
warnings
Displays array of warning messages from the API- Parameters:
warnings- List<ValidationError>- Returns:
- Payment
-
addWarningsItem
Displays array of warning messages from the API- Parameters:
warningsItem- ValidationError- Returns:
- Payment
-
getWarnings
Displays array of warning messages from the API- Returns:
- warnings
-
setWarnings
Displays array of warning messages from the API- Parameters:
warnings- List<ValidationError>
-
equals
-
hashCode
-
toString
-