Package com.blockchyp.client.dto
Class InvoicePayment
java.lang.Object
com.blockchyp.client.dto.InvoicePayment
Models information about payments against an invoice.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatGets the amount disbursed in floating point format.Gets the currency formatted form of amount.Gets the auth code associated with credit card payment methods.getId()Gets the line item id.Gets the masked account number into which funds were deposited.Gets the payment method used to fund the disbursement.Gets a response description from the disbursement payment platform, in any.Gets timestamp the payment was authorized.Gets the type of disbursement transaction.booleanGets that payment is approved.booleanGets that payment is still pending.voidsetAmount(float value) Sets the amount disbursed in floating point format.voidsetAmountFormatted(String value) Sets the currency formatted form of amount.voidsetApproved(boolean value) Sets that payment is approved.voidsetAuthCode(String value) Sets the auth code associated with credit card payment methods.voidSets the line item id.voidsetMaskedPan(String value) Sets the masked account number into which funds were deposited.voidsetPaymentType(String value) Sets the payment method used to fund the disbursement.voidsetPending(boolean value) Sets that payment is still pending.voidsetResponseDescription(String value) Sets a response description from the disbursement payment platform, in any.voidsetTimestamp(Date value) Sets timestamp the payment was authorized.voidsetTransactionType(String value) Sets the type of disbursement transaction.
-
Constructor Details
-
InvoicePayment
public InvoicePayment()
-
-
Method Details
-
setId
Sets the line item id.- Parameters:
value- the line item id.
-
getId
Gets the line item id.- Returns:
- the line item id.
-
setTimestamp
Sets timestamp the payment was authorized.- Parameters:
value- timestamp the payment was authorized.
-
getTimestamp
Gets timestamp the payment was authorized.- Returns:
- timestamp the payment was authorized.
-
setTransactionType
Sets the type of disbursement transaction.- Parameters:
value- the type of disbursement transaction.
-
getTransactionType
Gets the type of disbursement transaction.- Returns:
- the type of disbursement transaction.
-
setPaymentType
Sets the payment method used to fund the disbursement.- Parameters:
value- the payment method used to fund the disbursement.
-
getPaymentType
Gets the payment method used to fund the disbursement.- Returns:
- the payment method used to fund the disbursement.
-
setAuthCode
Sets the auth code associated with credit card payment methods.- Parameters:
value- the auth code associated with credit card payment methods.
-
getAuthCode
Gets the auth code associated with credit card payment methods.- Returns:
- the auth code associated with credit card payment methods.
-
setMaskedPan
Sets the masked account number into which funds were deposited.- Parameters:
value- the masked account number into which funds were deposited.
-
getMaskedPan
Gets the masked account number into which funds were deposited.- Returns:
- the masked account number into which funds were deposited.
-
setPending
public void setPending(boolean value) Sets that payment is still pending.- Parameters:
value- that payment is still pending.
-
isPending
public boolean isPending()Gets that payment is still pending.- Returns:
- that payment is still pending.
-
setApproved
public void setApproved(boolean value) Sets that payment is approved.- Parameters:
value- that payment is approved.
-
isApproved
public boolean isApproved()Gets that payment is approved.- Returns:
- that payment is approved.
-
setResponseDescription
Sets a response description from the disbursement payment platform, in any.- Parameters:
value- a response description from the disbursement payment platform, in any.
-
getResponseDescription
Gets a response description from the disbursement payment platform, in any.- Returns:
- a response description from the disbursement payment platform, in any.
-
setAmount
public void setAmount(float value) Sets the amount disbursed in floating point format.- Parameters:
value- the amount disbursed in floating point format.
-
getAmount
public float getAmount()Gets the amount disbursed in floating point format.- Returns:
- the amount disbursed in floating point format.
-
setAmountFormatted
Sets the currency formatted form of amount.- Parameters:
value- the currency formatted form of amount.
-
getAmountFormatted
Gets the currency formatted form of amount.- Returns:
- the currency formatted form of amount.
-