Package com.stripe.param
Class CreditNotePreviewParams.Line
- java.lang.Object
-
- com.stripe.param.CreditNotePreviewParams.Line
-
- Enclosing class:
- CreditNotePreviewParams
public static class CreditNotePreviewParams.Line extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreditNotePreviewParams.Line.Builderstatic classCreditNotePreviewParams.Line.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CreditNotePreviewParams.Line.Builderbuilder()java.lang.LonggetAmount()The line item amount to credit.java.lang.StringgetDescription()The description of the credit note line item.java.util.Map<java.lang.String,java.lang.Object>getExtraParams()Map of extra parameters for custom features not available in this client library.java.lang.StringgetInvoiceLineItem()The invoice line item to credit.java.lang.LonggetQuantity()The line item quantity to credit.java.lang.ObjectgetTaxRates()The tax rates which apply to the credit note line item.CreditNotePreviewParams.Line.TypegetType()Type of the credit note line item, one ofinvoice_line_itemorcustom_line_item.java.lang.LonggetUnitAmount()The integer unit amount in %s of the credit note line item.java.math.BigDecimalgetUnitAmountDecimal()Same asunit_amount, but accepts a decimal value in %s with at most 12 decimal places.
-
-
-
Method Detail
-
builder
public static CreditNotePreviewParams.Line.Builder builder()
-
getAmount
public java.lang.Long getAmount()
The line item amount to credit. Only valid whentypeisinvoice_line_itemand the referenced invoice line item does not have a quantity, only an amount.
-
getDescription
public java.lang.String getDescription()
The description of the credit note line item. Only valid when thetypeiscustom_line_item.
-
getExtraParams
public java.util.Map<java.lang.String,java.lang.Object> getExtraParams()
Map of extra parameters for custom features not available in this client library. The content in this map is not serialized under this field's@SerializedNamevalue. Instead, each key/value pair is serialized as if the key is a root-level field (serialized) name in this param object. Effectively, this map is flattened to its parent instance.
-
getInvoiceLineItem
public java.lang.String getInvoiceLineItem()
The invoice line item to credit. Only valid when thetypeisinvoice_line_item.
-
getQuantity
public java.lang.Long getQuantity()
The line item quantity to credit.
-
getTaxRates
public java.lang.Object getTaxRates()
The tax rates which apply to the credit note line item. Only valid when thetypeiscustom_line_item.
-
getType
public CreditNotePreviewParams.Line.Type getType()
Type of the credit note line item, one ofinvoice_line_itemorcustom_line_item.
-
getUnitAmount
public java.lang.Long getUnitAmount()
The integer unit amount in %s of the credit note line item. Thisunit_amountwill be multiplied by the quantity to get the full amount to credit for this line item. Only valid whentypeiscustom_line_item.
-
getUnitAmountDecimal
public java.math.BigDecimal getUnitAmountDecimal()
Same asunit_amount, but accepts a decimal value in %s with at most 12 decimal places. Only one ofunit_amountandunit_amount_decimalcan be set.
-
-