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 #

def self.new(pull : JSON::PullParser) #

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.delete(id : String) #

def self.delete(customer : Stripe::Customer) #

def self.delete_tax_id(id : String, tax_id : String) #

def self.delete_tax_id(customer : Customer, tax_id : Customer::TaxID) #

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

def self.detach_source(customer : Customer, source : 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) #

def self.retrieve(id : String) #

def self.retrieve(customer : Stripe::Customer) #

def self.retrieve_tax_id(id : String, tax_id : String) #

def self.retrieve_tax_id(customer : Customer, tax_id : Customer::TaxID) #

Instance Method Detail

def balance : Int32 | Nil #

def created : Time | Nil #

def currency : String | Nil #

def default_source : String | Nil #

def deleted : Bool | Nil #

def delinquent : Bool | Nil #

def description : String | Nil #

def email : String | Nil #

def id : String #

def invoice_prefix : String | Nil #

def livemode : Bool | Nil #

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

def name : String | Nil #

def phone : String | Nil #

def shipping : Shipping | Nil #


def tax_info : TaxInfo | Nil #

getter subscriptions : List?


def tax_info_verification : TaxInfoVerification | Nil #