class Stripe::Invoice
- Stripe::Invoice
- Reference
- Object
Included Modules
- JSON::Serializable
- StripeMethods
Defined in:
stripe/methods/core/invoices/create_invoice.crstripe/methods/core/invoices/update_invoice.cr
stripe/objects/core/invoice.cr
Constructors
- .create(customer : String | Customer | Nil = nil, auto_advance : Bool | Nil = nil, default_source : String | Token | Nil = nil, default_payment_method : String | Token | Nil = nil, metadata : Hash | Nil = nil, subscription : String | Nil = nil, statement_descriptor : String | Nil = nil) : Invoice forall T, U
- .new(pull : JSON::PullParser)
- .update(invoice : String | Invoice, auto_advance : Bool | Nil = nil, default_source : String | Token | Nil = nil, default_payment_method : String | Token | Nil = nil, metadata : Hash | Nil = nil, subscription : String | Nil = nil, statement_descriptor : String | Nil = nil) : Invoice forall T, U
Class Method Summary
- .list(customer : String | Nil = nil, status : String | Nil | Stripe::Invoice::Status | Nil = nil, limit : Int32 | Nil = nil, starting_after : String | Nil = nil, ending_before : String | Nil = nil) : List(Stripe::Invoice)
- .retrieve(id : String)
- .retrieve(invoice : Stripe::Invoice)
Instance Method Summary
- #account_country : String | Nil
- #account_name : String | Nil
- #amount_due : Int32 | Nil
- #amount_paid : Int32 | Nil
- #amount_remaining : Int32 | Nil
- #application_fee_amount : Int32 | Nil
- #attempt_count : Int32
- #attempted : Bool
- #auto_advance : Bool
- #billing : String | Nil
- #billing_reason : String | Nil
- #charge : String | Nil
- #collection_method : CollectionMethod
- #customer : String | Nil
- #customer_address : String | Nil
- #customer_email : String | Nil
- #customer_name : String | Nil
- #customer_phone : String | Nil
- #customer_shipping : Hash(String, String | Hash(String, String)) | Nil
- #customer_tax_exempt : String | Nil
- #default_tax_rates : Array(Hash(String, String | Bool | Time | Hash(String, String))) | Nil
- #description : String | Nil
- #due_date : Time | Nil
- #ending_balance : Int32 | Nil
- #hosted_invoice_url : String | Nil
- #id : String
- #invoice_pdf : String | Nil
- #lines : List(LineItem) | Nil
- #livemode : Bool
- #payment_intent : String | Nil | Stripe::PaymentIntent | Nil
- #status : Status
Constructor Detail
def self.create(customer : String | Customer | Nil = nil, auto_advance : Bool | Nil = nil, default_source : String | Token | Nil = nil, default_payment_method : String | Token | Nil = nil, metadata : Hash | Nil = nil, subscription : String | Nil = nil, statement_descriptor : String | Nil = nil) : Invoice forall T, U
#
def self.update(invoice : String | Invoice, auto_advance : Bool | Nil = nil, default_source : String | Token | Nil = nil, default_payment_method : String | Token | Nil = nil, metadata : Hash | Nil = nil, subscription : String | Nil = nil, statement_descriptor : String | Nil = nil) : Invoice forall T, U
#
Class Method Detail
def self.list(customer : String | Nil = nil, status : String | Nil | Stripe::Invoice::Status | Nil = nil, limit : Int32 | Nil = nil, starting_after : String | Nil = nil, ending_before : String | Nil = nil) : List(Stripe::Invoice)
#
Instance Method Detail
def default_tax_rates : Array(Hash(String, String | Bool | Time | Hash(String, String))) | Nil
#