Package com.stripe.model
Class SubscriptionSchedule.Phase.AddInvoiceItem
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.SubscriptionSchedule.Phase.AddInvoiceItem
- All Implemented Interfaces:
StripeActiveObject,StripeObjectInterface
- Enclosing class:
- SubscriptionSchedule.Phase
public static class SubscriptionSchedule.Phase.AddInvoiceItem
extends StripeObject
implements StripeActiveObject
An Add Invoice Item describes the prices and quantities that will be added as pending invoice
items when entering a phase.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFor more details about Discount, please refer to the API Reference.static classFor more details about Period, please refer to the API Reference. -
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanControls whether discounts apply to this invoice item.The stackable discounts that will be applied to the item.Set of key-value pairs that you can attach to an object.getPrice()Get ID of expandablepriceobject.Get expandedprice.The quantity of the invoice item.The tax rates which apply to the item.inthashCode()voidsetDiscountable(Boolean discountable) Controls whether discounts apply to this invoice item.voidThe stackable discounts that will be applied to the item.voidsetMetadata(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.voidvoidvoidsetPriceObject(Price expandableObject) voidsetQuantity(Long quantity) The quantity of the invoice item.voidsetResponseGetter(StripeResponseGetter responseGetter) Select how to calculate the start of the invoice item period.voidsetTaxRates(List<TaxRate> taxRates) The tax rates which apply to the item.Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetter
-
Constructor Details
-
AddInvoiceItem
public AddInvoiceItem()
-
-
Method Details
-
getPrice
Get ID of expandablepriceobject. -
setPrice
-
getPriceObject
Get expandedprice. -
setPriceObject
-
setResponseGetter
Select how to calculate the start of the invoice item period.One of
max_item_period_start,phase_start, ortimestamp.- Specified by:
setResponseGetterin interfaceStripeActiveObject- Parameters:
responseGetter- theStripeResponseGetterinstance to use for making further requests.
-
getDiscountable
Controls whether discounts apply to this invoice item. Defaults to true if no value is provided. -
getDiscounts
The stackable discounts that will be applied to the 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. -
getPeriod
-
getQuantity
The quantity of the invoice item. -
getTaxRates
The tax rates which apply to the item. When set, thedefault_tax_ratesdo not apply to this item. -
setDiscountable
Controls whether discounts apply to this invoice item. Defaults to true if no value is provided. -
setDiscounts
The stackable discounts that will be applied to the 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. -
setPeriod
-
setQuantity
The quantity of the invoice item. -
setTaxRates
The tax rates which apply to the item. When set, thedefault_tax_ratesdo not apply to this item. -
equals
-
canEqual
-
hashCode
public int hashCode()
-