class Stripe::Invoice

Included Modules

Defined in:

stripe/methods/core/invoices/create_invoice.cr
stripe/methods/core/invoices/update_invoice.cr
stripe/objects/core/invoice.cr

Constructors

Class Method Summary

Instance Method Summary

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.new(pull : JSON::PullParser) #

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) #

def self.retrieve(id : String) #

def self.retrieve(invoice : Stripe::Invoice) #

Instance Method Detail

def account_country : String | Nil #

def account_name : String | Nil #

def amount_due : Int32 | Nil #

def amount_paid : Int32 | Nil #

def amount_remaining : Int32 | Nil #

def application_fee_amount : Int32 | Nil #

def attempt_count : Int32 #

def attempted : Bool #

def auto_advance : Bool #

def billing : String | Nil #

def billing_reason : String | Nil #

def charge : String | Nil #

def collection_method : CollectionMethod #

def customer : String | Nil #

def customer_address : String | Nil #

def customer_email : String | Nil #

def customer_name : String | Nil #

def customer_phone : String | Nil #

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

def customer_tax_exempt : String | Nil #

def default_tax_rates : Array(Hash(String, String | Bool | Time | Hash(String, String))) | Nil #

def description : String | Nil #

def due_date : Time | Nil #

def ending_balance : Int32 | Nil #

def hosted_invoice_url : String | Nil #

def id : String #

def invoice_pdf : String | Nil #

def lines : List(LineItem) | Nil #

def livemode : Bool #

def payment_intent : String | Nil | Stripe::PaymentIntent | Nil #

def status : Status #