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 Classes -
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe amount, in %s.The integer amount in %s 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 expandablediscountsobject list.getId()Unique identifier for the object.The ID of the invoice item associated with this line item if any.Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.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.The subscription that the invoice item pertains to, if any.The subscription item that generated this invoice item.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 aninvoiceitemor asubscription.The amount in %s representing the unit amount for this line item, excluding all tax and discounts.inthashCode()voidThe amount, in %s.voidsetAmountExcludingTax(Long amountExcludingTax) The integer amount in %s representing the amount for this line item, excluding all tax and discounts.voidsetCurrency(String currency) Three-letter ISO currency code, in lowercase.voidsetDescription(String description) An arbitrary string attached to the object.voidsetDiscountable(Boolean discountable) If true, discounts will apply to this line item.voidsetDiscountAmounts(List<InvoiceLineItem.DiscountAmount> discountAmounts) The amount of discount calculated per discount for this line item.voidsetDiscountObjects(List<Discount> objs) voidsetDiscounts(List<String> ids) voidUnique identifier for the object.voidsetInvoiceItem(String invoiceItem) The ID of the invoice item associated with this line item if any.voidsetLivemode(Boolean livemode) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidsetMetadata(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.voidString representing the object's type.voidsetPeriod(InvoiceLineItemPeriod period) voidThe plan of the subscription, if the line item is a subscription or a proration.voidThe price of the line item.voidsetProration(Boolean proration) Whether this is a proration.voidsetProrationDetails(ProrationDetails prorationDetails) Additional details for proration line items.voidsetQuantity(Long quantity) The quantity of the subscription, if the line item is a subscription or a proration.voidsetSubscription(String subscription) The subscription that the invoice item pertains to, if any.voidsetSubscriptionItem(String subscriptionItem) The subscription item that generated this invoice item.voidsetTaxAmounts(List<Invoice.TaxAmount> taxAmounts) The amount of tax calculated per tax rate for this line item.voidsetTaxRates(List<TaxRate> taxRates) The tax rates which apply to the line item.voidA string identifying the type of the source of this line item, either aninvoiceitemor asubscription.voidsetUnitAmountExcludingTax(BigDecimal unitAmountExcludingTax) The amount in %s representing the unit amount for this line item, excluding all tax and discounts.Methods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
InvoiceLineItem
public InvoiceLineItem()
-
-
Method Details
-
getDiscounts
Get IDs of expandablediscountsobject list. -
setDiscounts
-
getDiscountObjects
Get expandeddiscounts. -
setDiscountObjects
-
getAmount
The amount, in %s. -
getAmountExcludingTax
The integer amount in %s 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. -
getDiscountable
If true, discounts will apply to this line item. Always false for prorations. -
getDiscountAmounts
The amount of discount calculated per discount for this line item. -
getInvoiceItem
The ID of the invoice item associated with this line item if any. -
getLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode. -
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=subscriptionthis 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. -
getSubscription
The subscription that the invoice item pertains to, if any. -
getSubscriptionItem
The subscription item that generated this invoice item. Left empty if the line item is not an explicit result of a subscription. -
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 aninvoiceitemor asubscription.One of
invoiceitem, orsubscription. -
getUnitAmountExcludingTax
The amount in %s representing the unit amount for this line item, excluding all tax and discounts. -
setAmount
The amount, in %s. -
setAmountExcludingTax
The integer amount in %s 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. -
setDiscountable
If true, discounts will apply to this line item. Always false for prorations. -
setDiscountAmounts
The amount of discount calculated per discount for this line item. -
setId
Unique identifier for the object. -
setInvoiceItem
The ID of the invoice item associated with this line item if any. -
setLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode. -
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=subscriptionthis 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. -
setSubscription
The subscription that the invoice item pertains to, if any. -
setSubscriptionItem
The subscription item that generated this invoice item. Left empty if the line item is not an explicit result of a subscription. -
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 aninvoiceitemor asubscription.One of
invoiceitem, orsubscription. -
setUnitAmountExcludingTax
The amount in %s 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.
-