Package com.blockchyp.client.dto
Class InvoiceLineItem
java.lang.Object
com.blockchyp.client.dto.InvoiceLineItem
Models a single invoice or merchant statement line item.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLineItem(InvoiceLineItem value) Adds a the list of nested line items, if any.Gets the description associated with the line item.Gets an alternate explanation.getId()Gets the line item id.Gets the list of nested line items, if any.Gets the type of line item.floatGets the per transaction fee.Gets the string formatted per transaction fee.floatgetPrice()Gets the quantity price associated.floatGets the extended price .Gets the string formatted extended price.Gets the string formatted price associated with a conventional line item.Gets the product id for standard invoices.intGets the quantity associated with the line item.intGets the transaction count associated with any transaction based fees.floatGets the percentage (as floating point ratio) fee assessed on volume.Gets the string formatted transaction fee percentage.floatGets the transaction volume associated with any fees.Gets the string formatted volume.voidsetDescription(String value) Sets the description associated with the line item.voidsetExplanation(String value) Sets an alternate explanation.voidSets the line item id.voidsetLineItems(Collection<InvoiceLineItem> value) Sets the list of nested line items, if any.voidsetLineType(String value) Sets the type of line item.voidsetPerTransactionFee(float value) Sets the per transaction fee.voidSets the string formatted per transaction fee.voidsetPrice(float value) Sets the quantity price associated.voidsetPriceExtended(float value) Sets the extended price .voidsetPriceExtendedFormatted(String value) Sets the string formatted extended price.voidsetPriceFormatted(String value) Sets the string formatted price associated with a conventional line item.voidsetProductId(String value) Sets the product id for standard invoices.voidsetQuantity(int value) Sets the quantity associated with the line item.voidsetTransactionCount(int value) Sets the transaction count associated with any transaction based fees.voidsetTransactionPercentage(float value) Sets the percentage (as floating point ratio) fee assessed on volume.voidSets the string formatted transaction fee percentage.voidsetVolume(float value) Sets the transaction volume associated with any fees.voidsetVolumeFormatted(String value) Sets the string formatted volume.
-
Constructor Details
-
InvoiceLineItem
public InvoiceLineItem()
-
-
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.
-
setLineType
Sets the type of line item.- Parameters:
value- the type of line item.
-
getLineType
Gets the type of line item.- Returns:
- the type of line item.
-
setProductId
Sets the product id for standard invoices.- Parameters:
value- the product id for standard invoices.
-
getProductId
Gets the product id for standard invoices.- Returns:
- the product id for standard invoices.
-
setQuantity
public void setQuantity(int value) Sets the quantity associated with the line item.- Parameters:
value- the quantity associated with the line item.
-
getQuantity
public int getQuantity()Gets the quantity associated with the line item.- Returns:
- the quantity associated with the line item.
-
setDescription
Sets the description associated with the line item.- Parameters:
value- the description associated with the line item.
-
getDescription
Gets the description associated with the line item.- Returns:
- the description associated with the line item.
-
setExplanation
Sets an alternate explanation.- Parameters:
value- an alternate explanation.
-
getExplanation
Gets an alternate explanation.- Returns:
- an alternate explanation.
-
setTransactionCount
public void setTransactionCount(int value) Sets the transaction count associated with any transaction based fees.- Parameters:
value- the transaction count associated with any transaction based fees.
-
getTransactionCount
public int getTransactionCount()Gets the transaction count associated with any transaction based fees.- Returns:
- the transaction count associated with any transaction based fees.
-
setVolume
public void setVolume(float value) Sets the transaction volume associated with any fees.- Parameters:
value- the transaction volume associated with any fees.
-
getVolume
public float getVolume()Gets the transaction volume associated with any fees.- Returns:
- the transaction volume associated with any fees.
-
setVolumeFormatted
Sets the string formatted volume.- Parameters:
value- the string formatted volume.
-
getVolumeFormatted
Gets the string formatted volume.- Returns:
- the string formatted volume.
-
setPerTransactionFee
public void setPerTransactionFee(float value) Sets the per transaction fee.- Parameters:
value- the per transaction fee.
-
getPerTransactionFee
public float getPerTransactionFee()Gets the per transaction fee.- Returns:
- the per transaction fee.
-
setPerTransactionFeeFormatted
Sets the string formatted per transaction fee.- Parameters:
value- the string formatted per transaction fee.
-
getPerTransactionFeeFormatted
Gets the string formatted per transaction fee.- Returns:
- the string formatted per transaction fee.
-
setTransactionPercentage
public void setTransactionPercentage(float value) Sets the percentage (as floating point ratio) fee assessed on volume.- Parameters:
value- the percentage (as floating point ratio) fee assessed on volume.
-
getTransactionPercentage
public float getTransactionPercentage()Gets the percentage (as floating point ratio) fee assessed on volume.- Returns:
- the percentage (as floating point ratio) fee assessed on volume.
-
setTransactionPercentageFormatted
Sets the string formatted transaction fee percentage.- Parameters:
value- the string formatted transaction fee percentage.
-
getTransactionPercentageFormatted
Gets the string formatted transaction fee percentage.- Returns:
- the string formatted transaction fee percentage.
-
setPrice
public void setPrice(float value) Sets the quantity price associated.- Parameters:
value- the quantity price associated.
-
getPrice
public float getPrice()Gets the quantity price associated.- Returns:
- the quantity price associated.
-
setPriceFormatted
Sets the string formatted price associated with a conventional line item.- Parameters:
value- the string formatted price associated with a conventional line item.
-
getPriceFormatted
Gets the string formatted price associated with a conventional line item.- Returns:
- the string formatted price associated with a conventional line item.
-
setPriceExtended
public void setPriceExtended(float value) Sets the extended price .- Parameters:
value- the extended price .
-
getPriceExtended
public float getPriceExtended()Gets the extended price .- Returns:
- the extended price .
-
setPriceExtendedFormatted
Sets the string formatted extended price.- Parameters:
value- the string formatted extended price.
-
getPriceExtendedFormatted
Gets the string formatted extended price.- Returns:
- the string formatted extended price.
-
setLineItems
Sets the list of nested line items, if any.- Parameters:
value- the list of nested line items, if any.
-
getLineItems
Gets the list of nested line items, if any.- Returns:
- the list of nested line items, if any.
-
addLineItem
Adds a the list of nested line items, if any.- Parameters:
value- the list of nested line items, if any.
-