class Stripe::Customer

Included Modules

Defined in:

stripe/methods/core/customers/create_customer.cr
stripe/methods/core/customers/sources/create_customer_source.cr
stripe/methods/core/customers/sources/delete_customer_source.cr
stripe/methods/core/customers/tax_ids/create_customer_tax_id.cr
stripe/methods/core/customers/tax_ids/delete_customer_tax_id.cr
stripe/methods/core/customers/tax_ids/retrieve_customer_tax_id.cr
stripe/methods/core/customers/update_customer.cr
stripe/objects/core/customer/customer.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.create(balance : Int32 | Nil = nil, coupon : String | Nil = nil, default_source : String | Token | Nil = nil, name : String | Token | Nil = nil, description : String | Token | Nil = nil, email : String | Nil = nil, phone : String | Nil = nil, invoice_prefix : String | Nil = nil, payment_method : String | Nil | Token | Nil | Stripe::PaymentMethod | Nil = nil, metadata : Hash | Nil = nil, shipping : T | Nil = nil, source : String | Token | PaymentMethods::Card | Nil = nil, tax_info : U | Nil = nil, invoice_settings : U | Nil = nil, expand : Array(String) | Nil = nil) : Customer forall T, U #

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

[View source]
def self.update(customer : String | Customer, balance : Int32 | Unset = Unset.new, coupon : String | Nil | Unset = Unset.new, default_source : String | Token | Unset = Unset.new, name : String | Token | Nil | Unset = Unset.new, description : String | Token | Nil | Unset = Unset.new, email : String | Nil | Unset = Unset.new, phone : String | Nil | Unset = Unset.new, invoice_prefix : String | Unset = Unset.new, invoice_settings : U | Nil | Unset = Unset.new, metadata : Hash | Nil | Unset = Unset.new, shipping : T | Nil | Unset = Unset.new, source : String | Token | Unset = Unset.new, tax_info : U | Nil | Unset = Unset.new) : Customer forall T, U #

[View source]

Class Method Detail

def self.create_source(customer : String | Stripe::Customer, source : String | Stripe::Source) : Source forall T, U #

[View source]
def self.create_tax_id(customer : String | Stripe::Customer, type : String, value : String) : Customer::TaxID forall T, U #

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

[View source]
def self.delete(customer : Stripe::Customer) #

[View source]
def self.delete_tax_id(id : String, tax_id : String) #

[View source]
def self.delete_tax_id(customer : Customer, tax_id : Customer::TaxID) #

[View source]
def self.detach_source(customer : String, source : String) #

[View source]
def self.detach_source(customer : Customer, source : Source) #

[View source]
def self.list(email : String | Nil = nil, created : Hash(String, Int32) | Nil = nil, limit : Int32 | Nil = nil, starting_after : String | Nil = nil, ending_before : String | Nil = nil) : List(Stripe::Customer) #

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

[View source]
def self.retrieve(customer : Stripe::Customer) #

[View source]
def self.retrieve_tax_id(id : String, tax_id : String) #

[View source]
def self.retrieve_tax_id(customer : Customer, tax_id : Customer::TaxID) #

[View source]

Instance Method Detail

def balance : Int32 | Nil #

[View source]
def created : Time | Nil #

[View source]
def currency : String | Nil #

[View source]
def default_source : String | Nil #

[View source]
def deleted : Bool | Nil #

[View source]
def delinquent : Bool | Nil #

[View source]
def description : String | Nil #

[View source]
def email : String | Nil #

[View source]
def id : String #

[View source]
def invoice_prefix : String | Nil #

[View source]
def livemode : Bool | Nil #

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

[View source]
def name : String | Nil #

[View source]
def phone : String | Nil #

[View source]
def shipping : Shipping | Nil #

[View source]

[View source]
def tax_info : TaxInfo | Nil #

getter subscriptions : List?


[View source]
def tax_info_verification : TaxInfoVerification | Nil #

[View source]