A one-off invoice item to add at the start of a SubscriptionSchedule phase.
Used to bill setup fees, credits, or other non-recurring amounts at phase
boundaries. Smaller than LatticeStripe.SubscriptionSchedule.PhaseItem —
no billing_thresholds, plan, or trial_data.
Fields
discounts- List of discount IDs or objectsmetadata- Set of key-value pairsperiod- Billing period map (%{"start" => ..., "end" => ...})price- Price ID for an existing Priceprice_data- Inline price data for ad-hoc pricingquantity- Quantity for this itemtax_rates- List of tax rate objectsextra- Unknown fields from Stripe not yet in this struct
Summary
Functions
Converts a decoded Stripe API map to a %AddInvoiceItem{} struct.
Types
@type t() :: %LatticeStripe.SubscriptionSchedule.AddInvoiceItem{ discounts: list() | nil, extra: map(), metadata: map() | nil, period: map() | nil, price: String.t() | map() | nil, price_data: map() | nil, quantity: integer() | nil, tax_rates: list() | nil }
A one-off add-invoice-item attached to a SubscriptionSchedule phase.