class Stripe::Customer
- Stripe::Customer
- Reference
- Object
Included Modules
- JSON::Serializable
- StripeMethods
Defined in:
stripe/methods/core/customers/create_customer.crstripe/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
- .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
- .new(pull : JSON::PullParser)
- .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
Class Method Summary
- .create_source(customer : String | Stripe::Customer, source : String | Stripe::Source) : Source forall T, U
- .create_tax_id(customer : String | Stripe::Customer, type : String, value : String) : Customer::TaxID forall T, U
- .delete(id : String)
- .delete(customer : Stripe::Customer)
- .delete_tax_id(id : String, tax_id : String)
- .delete_tax_id(customer : Customer, tax_id : Customer::TaxID)
- .detach_source(customer : String, source : String)
- .detach_source(customer : Customer, source : Source)
- .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)
- .retrieve(id : String)
- .retrieve(customer : Stripe::Customer)
- .retrieve_tax_id(id : String, tax_id : String)
- .retrieve_tax_id(customer : Customer, tax_id : Customer::TaxID)
Instance Method Summary
- #balance : Int32 | Nil
- #created : Time | Nil
- #currency : String | Nil
- #default_source : String | Nil
- #deleted : Bool | Nil
- #delinquent : Bool | Nil
- #description : String | Nil
- #email : String | Nil
- #id : String
- #invoice_prefix : String | Nil
- #livemode : Bool | Nil
- #metadata : Hash(String, String) | Nil
- #name : String | Nil
- #phone : String | Nil
- #shipping : Shipping | Nil
- #sources : List(PaymentMethods::Card | PaymentMethods::BankAccount) | Nil
-
#tax_info : TaxInfo | Nil
getter subscriptions : List?
- #tax_info_verification : TaxInfoVerification | Nil
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
#
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
#
Class Method Detail
def self.create_source(customer : String | Stripe::Customer, source : String | Stripe::Source) : Source forall T, U
#
def self.create_tax_id(customer : String | Stripe::Customer, type : String, value : String) : Customer::TaxID forall T, U
#
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)
#