Package com.stripe.param
Class CreditNotePreviewParams.Line
java.lang.Object
com.stripe.param.CreditNotePreviewParams.Line
- Enclosing class:
- CreditNotePreviewParams
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic enumRequired. The amount on which tax is calculated, in cents (or local equivalent). -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanbooleanThe line item amount to credit.The description of the credit note line item.Map of extra parameters for custom features not available in this client library.The invoice line item to credit.The line item quantity to credit.A list of up to 10 tax amounts for the credit note line item.The tax rates which apply to the credit note line item.getType()Required. Type of the credit note line item, one ofinvoice_line_itemorcustom_line_itemThe integer unit amount in cents (or local equivalent) of the credit note line item.Same asunit_amount, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places.inthashCode()
-
Method Details
-
builder
-
getAmount
The line item amount to credit. Only valid whentypeisinvoice_line_item. If invoice is set up withautomatic_tax[enabled]=true, this amount is tax exclusive -
getDescription
The description of the credit note line item. Only valid when thetypeiscustom_line_item. -
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
The invoice line item to credit. Only valid when thetypeisinvoice_line_item. -
getQuantity
The line item quantity to credit. -
getTaxAmounts
A list of up to 10 tax amounts for the credit note line item. Cannot be mixed withtax_rates. -
getTaxRates
The tax rates which apply to the credit note line item. Only valid when thetypeiscustom_line_itemand cannot be mixed withtax_amounts. -
getType
Required. Type of the credit note line item, one ofinvoice_line_itemorcustom_line_item -
getUnitAmount
The integer unit amount in cents (or local equivalent) 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
Same asunit_amount, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one ofunit_amountandunit_amount_decimalcan be set. -
equals
-
canEqual
-
hashCode
public int hashCode()
-