class Stripe::Invoice::LineItem

Included Modules

Defined in:

stripe/methods/core/invoices/create_invoice_line_item.cr
stripe/objects/core/invoice.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

Class Method Detail

def self.create(customer : String | Customer, currency : String, amount : Int32 | Nil = nil, quantity : Int32 | Nil = nil, description : String | Nil = nil, unit_amount : Int32 | Nil = nil, invoice : String | Invoice | Nil = nil, subscription : String | Subscription | Nil = nil, metadata : Hash(String, String) | Nil = nil) : Invoice::LineItem forall T, U #

Instance Method Detail

def amount : Int32 | Nil #

def created : Time | Nil #

def currency : String | Nil #

def description : String | Nil #

def discountable : Bool | Nil #

def id : String #

def invoice_item : String | Nil #

def livemode : Bool #

def metadata : Hash(String, String) | Nil #

def period : Hash(String, Int32) | Nil #

def price : Stripe::Price | Nil #

def proration : Bool #

def quantity : Int32 #

def subscription : String | Nil | Stripe::Subscription | Nil #

def subscription_item : String | Nil #

def tax_rates : Array(Stripe::TaxRate) | Nil #

def type : String | Nil #