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 #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]
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 #

[View source]

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

[View source]
def self.retrieve(id : String) #

[View source]
def self.retrieve(invoice : Stripe::Invoice) #

[View source]

Instance Method Detail

def account_country : String | Nil #

[View source]
def account_name : String | Nil #

[View source]
def amount_due : Int32 | Nil #

[View source]
def amount_paid : Int32 | Nil #

[View source]
def amount_remaining : Int32 | Nil #

[View source]
def application_fee_amount : Int32 | Nil #

[View source]
def attempt_count : Int32 #

[View source]
def attempted : Bool #

[View source]
def auto_advance : Bool #

[View source]
def billing : String | Nil #

[View source]
def billing_reason : String | Nil #

[View source]
def charge : String | Nil #

[View source]
def collection_method : CollectionMethod #

[View source]
def customer : String | Nil #

[View source]
def customer_address : String | Nil #

[View source]
def customer_email : String | Nil #

[View source]
def customer_name : String | Nil #

[View source]
def customer_phone : String | Nil #

[View source]
def customer_shipping : Hash(String, String | Hash(String, String)) | Nil #

[View source]
def customer_tax_exempt : String | Nil #

[View source]
def default_tax_rates : Array(Hash(String, String | Bool | Time | Hash(String, String))) | Nil #

[View source]
def description : String | Nil #

[View source]
def due_date : Time | Nil #

[View source]
def ending_balance : Int32 | Nil #

[View source]
def hosted_invoice_url : String | Nil #

[View source]
def id : String #

[View source]
def invoice_pdf : String | Nil #

[View source]
def lines : List(LineItem) | Nil #

[View source]
def livemode : Bool #

[View source]
def payment_intent : String | Nil | Stripe::PaymentIntent | Nil #

[View source]
def status : Status #

[View source]