Package com.stripe.model
Class InvoiceLineItem
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.InvoiceLineItem
- All Implemented Interfaces:
HasId
,StripeObjectInterface
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
static class
static class
static class
Credited invoice line items. -
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The amount, in cents (or local equivalent).The integer amount in cents (or local equivalent) representing the amount for this line item, excluding all tax and discounts.Three-letter ISO currency code, in lowercase.An arbitrary string attached to the object.If true, discounts will apply to this line item.The amount of discount calculated per discount for this line item.Get expandeddiscounts
.Get IDs of expandablediscounts
object list.getId()
Unique identifier for the object.Get ID of expandableinvoiceItem
object.Get expandedinvoiceItem
.Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.The amount of margin calculated per margin for this line item.Get expandedmargins
.Get IDs of expandablemargins
object list.Set of key-value pairs that you can attach to an object.String representing the object's type.getPlan()
The plan of the subscription, if the line item is a subscription or a proration.getPrice()
The price of the line item.Whether this is a proration.Additional details for proration line items.The quantity of the subscription, if the line item is a subscription or a proration.Get ID of expandablesubscription
object.Get ID of expandablesubscriptionItem
object.Get expandedsubscriptionItem
.Get expandedsubscription
.The amount of tax calculated per tax rate for this line item.The tax rates which apply to the line item.getType()
A string identifying the type of the source of this line item, either aninvoiceitem
or asubscription
.The amount in cents (or local equivalent) representing the unit amount for this line item, excluding all tax and discounts.int
hashCode()
void
The amount, in cents (or local equivalent).void
setAmountExcludingTax
(Long amountExcludingTax) The integer amount in cents (or local equivalent) representing the amount for this line item, excluding all tax and discounts.void
setCurrency
(String currency) Three-letter ISO currency code, in lowercase.void
setDescription
(String description) An arbitrary string attached to the object.void
setDiscountable
(Boolean discountable) If true, discounts will apply to this line item.void
setDiscountAmounts
(List<InvoiceLineItem.DiscountAmount> discountAmounts) The amount of discount calculated per discount for this line item.void
setDiscountObjects
(List<Discount> objs) void
setDiscounts
(List<String> ids) void
Unique identifier for the object.void
setInvoiceItem
(String id) void
setInvoiceItemObject
(InvoiceItem expandableObject) void
setLivemode
(Boolean livemode) Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.void
setMarginAmounts
(List<InvoiceLineItem.MarginAmount> marginAmounts) The amount of margin calculated per margin for this line item.void
setMarginObjects
(List<Margin> objs) void
setMargins
(List<String> ids) void
setMetadata
(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.void
String representing the object's type.void
setPeriod
(InvoiceLineItem.Period period) void
The plan of the subscription, if the line item is a subscription or a proration.void
The price of the line item.void
setProration
(Boolean proration) Whether this is a proration.void
setProrationDetails
(InvoiceLineItem.ProrationDetails prorationDetails) Additional details for proration line items.void
setQuantity
(Long quantity) The quantity of the subscription, if the line item is a subscription or a proration.void
void
void
setSubscriptionItemObject
(SubscriptionItem expandableObject) void
setSubscriptionObject
(Subscription expandableObject) void
setTaxAmounts
(List<InvoiceLineItem.TaxAmount> taxAmounts) The amount of tax calculated per tax rate for this line item.void
setTaxRates
(List<TaxRate> taxRates) The tax rates which apply to the line item.void
A string identifying the type of the source of this line item, either aninvoiceitem
or asubscription
.void
setUnitAmountExcludingTax
(BigDecimal unitAmountExcludingTax) The amount in cents (or local equivalent) representing the unit amount for this line item, excluding all tax and discounts.Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
InvoiceLineItem
public InvoiceLineItem()
-
-
Method Details
-
getInvoiceItem
Get ID of expandableinvoiceItem
object. -
setInvoiceItem
-
getInvoiceItemObject
Get expandedinvoiceItem
. -
setInvoiceItemObject
-
getSubscription
Get ID of expandablesubscription
object. -
setSubscription
-
getSubscriptionObject
Get expandedsubscription
. -
setSubscriptionObject
-
getSubscriptionItem
Get ID of expandablesubscriptionItem
object. -
setSubscriptionItem
-
getSubscriptionItemObject
Get expandedsubscriptionItem
. -
setSubscriptionItemObject
-
getDiscounts
Get IDs of expandablediscounts
object list. -
setDiscounts
-
getDiscountObjects
Get expandeddiscounts
. -
setDiscountObjects
-
getMargins
Get IDs of expandablemargins
object list. -
setMargins
-
getMarginObjects
Get expandedmargins
. -
setMarginObjects
-
getAmount
The amount, in cents (or local equivalent). -
getAmountExcludingTax
The integer amount in cents (or local equivalent) representing the amount for this line item, excluding all tax and discounts. -
getCurrency
Three-letter ISO currency code, in lowercase. Must be a supported currency. -
getDescription
An arbitrary string attached to the object. Often useful for displaying to users. -
getDiscountAmounts
The amount of discount calculated per discount for this line item. -
getDiscountable
If true, discounts will apply to this line item. Always false for prorations. -
getLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
getMarginAmounts
The amount of margin calculated per margin for this line item. -
getMetadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Note that for line items withtype=subscription
this will reflect the metadata of the subscription that caused the line item to be created. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
line_item
. -
getPeriod
-
getPlan
The plan of the subscription, if the line item is a subscription or a proration. -
getPrice
The price of the line item. -
getProration
Whether this is a proration. -
getProrationDetails
Additional details for proration line items. -
getQuantity
The quantity of the subscription, if the line item is a subscription or a proration. -
getTaxAmounts
The amount of tax calculated per tax rate for this line item. -
getTaxRates
The tax rates which apply to the line item. -
getType
A string identifying the type of the source of this line item, either aninvoiceitem
or asubscription
.One of
invoiceitem
, orsubscription
. -
getUnitAmountExcludingTax
The amount in cents (or local equivalent) representing the unit amount for this line item, excluding all tax and discounts. -
setAmount
The amount, in cents (or local equivalent). -
setAmountExcludingTax
The integer amount in cents (or local equivalent) representing the amount for this line item, excluding all tax and discounts. -
setCurrency
Three-letter ISO currency code, in lowercase. Must be a supported currency. -
setDescription
An arbitrary string attached to the object. Often useful for displaying to users. -
setDiscountAmounts
The amount of discount calculated per discount for this line item. -
setDiscountable
If true, discounts will apply to this line item. Always false for prorations. -
setId
Unique identifier for the object. -
setLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
setMarginAmounts
The amount of margin calculated per margin for this line item. -
setMetadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Note that for line items withtype=subscription
this will reflect the metadata of the subscription that caused the line item to be created. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
line_item
. -
setPeriod
-
setPlan
The plan of the subscription, if the line item is a subscription or a proration. -
setPrice
The price of the line item. -
setProration
Whether this is a proration. -
setProrationDetails
Additional details for proration line items. -
setQuantity
The quantity of the subscription, if the line item is a subscription or a proration. -
setTaxAmounts
The amount of tax calculated per tax rate for this line item. -
setTaxRates
The tax rates which apply to the line item. -
setType
A string identifying the type of the source of this line item, either aninvoiceitem
or asubscription
.One of
invoiceitem
, orsubscription
. -
setUnitAmountExcludingTax
The amount in cents (or local equivalent) representing the unit amount for this line item, excluding all tax and discounts. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-