public static class InvoiceSummary.Builder extends Object
Constructor and Description |
---|
Builder() |
public InvoiceSummary.Builder invoiceId(String invoiceId)
Invoice identifier
invoiceId
- the value to setpublic InvoiceSummary.Builder invoiceNumber(String invoiceNumber)
Invoice external reference
invoiceNumber
- the value to setpublic InvoiceSummary.Builder internalInvoiceId(String internalInvoiceId)
PC invoice identifier
internalInvoiceId
- the value to setpublic InvoiceSummary.Builder isCreditCardPayable(Boolean isCreditCardPayable)
Is credit card payment eligible
isCreditCardPayable
- the value to setpublic InvoiceSummary.Builder invoiceStatus(InvoiceSummary.InvoiceStatus invoiceStatus)
Invoice status
invoiceStatus
- the value to setpublic InvoiceSummary.Builder invoiceType(InvoiceSummary.InvoiceType invoiceType)
Type of invoice
invoiceType
- the value to setpublic InvoiceSummary.Builder isPaid(Boolean isPaid)
Is the invoice has been already payed
isPaid
- the value to setpublic InvoiceSummary.Builder isPayable(Boolean isPayable)
Whether invoice can be payed
isPayable
- the value to setpublic InvoiceSummary.Builder invoiceAmount(BigDecimal invoiceAmount)
Invoice amount
invoiceAmount
- the value to setpublic InvoiceSummary.Builder invoiceAmountDue(BigDecimal invoiceAmountDue)
Invoice amount due
invoiceAmountDue
- the value to setpublic InvoiceSummary.Builder invoiceAmountCredited(BigDecimal invoiceAmountCredited)
Invoice amount credit
invoiceAmountCredited
- the value to setpublic InvoiceSummary.Builder invoiceAmountAdjusted(BigDecimal invoiceAmountAdjusted)
Invoice amount adjust
invoiceAmountAdjusted
- the value to setpublic InvoiceSummary.Builder invoiceAmountApplied(BigDecimal invoiceAmountApplied)
Invoice amount applied
invoiceAmountApplied
- the value to setpublic InvoiceSummary.Builder timeInvoiceDue(Date timeInvoiceDue)
Due date of invoice amount
timeInvoiceDue
- the value to setpublic InvoiceSummary.Builder isPaymentFailed(Boolean isPaymentFailed)
Is the last payment failed
isPaymentFailed
- the value to setpublic InvoiceSummary.Builder invoiceAmountInDispute(BigDecimal invoiceAmountInDispute)
Invoice amount in dispute
invoiceAmountInDispute
- the value to setpublic InvoiceSummary.Builder invoiceRefNumber(String invoiceRefNumber)
Invoice reference number
invoiceRefNumber
- the value to setpublic InvoiceSummary.Builder invoicePoNumber(String invoicePoNumber)
Invoice PO number
invoicePoNumber
- the value to setpublic InvoiceSummary.Builder timeInvoice(Date timeInvoice)
Date of invoice
timeInvoice
- the value to setpublic InvoiceSummary.Builder currency(Currency currency)
public InvoiceSummary.Builder isPdfEmailAvailable(Boolean isPdfEmailAvailable)
Is emailing pdf allowed
isPdfEmailAvailable
- the value to setpublic InvoiceSummary.Builder isDisplayViewPdf(Boolean isDisplayViewPdf)
Is view access allowed
isDisplayViewPdf
- the value to setpublic InvoiceSummary.Builder isDisplayDownloadPdf(Boolean isDisplayDownloadPdf)
Is pdf download access allowed
isDisplayDownloadPdf
- the value to setpublic InvoiceSummary.Builder lastPaymentDetail(PaymentDetail lastPaymentDetail)
public InvoiceSummary.Builder partyName(String partyName)
Name of the bill to customer
partyName
- the value to setpublic InvoiceSummary.Builder subscriptionIds(List<String> subscriptionIds)
List of subscription identifiers
subscriptionIds
- the value to setpublic InvoiceSummary build()
public InvoiceSummary.Builder copy(InvoiceSummary model)
Copyright © 2016–2024. All rights reserved.