Stripe::Customer
Inherits OpenApi::Json < OpenApi::Validatable < JSON::Serializable::Unmapped < JSON::Serializable < Reference < Object
This object represents a customer of your business. Use it to create recurring charges and track payments that belong to the same customer. Related guide: Save a card during payment
Constants
Constructors
Initializes the object @param [Hash] attributes Model attributes in the form of hash
Instance methods
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code
Custom attribute writer method checking allowed values (enum). @param [Object] address Object to be assigned
The current balance, if any, that's stored on the customer. If negative, the customer has credit to apply to their next invoice. If positive, the customer has an amount owed that's added to their next invoice. The balance only considers amounts that Stripe hasn't successfully applied to any invoice. It doesn't reflect unpaid invoices. This balance is only taken into account after invoices finalize.
Custom attribute writer method checking allowed values (enum). @param [Object] balance Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] cash_balance Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] created Object to be assigned
Three-letter ISO code for the currency the customer can be charged in for recurring billing purposes.
Custom attribute writer method checking allowed values (enum). @param [Object] currency Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] default_source Object to be assigned
Tracks the most recent state change on any invoice belonging to the customer. Paying an invoice or marking it uncollectible via the API will set this field to false. An automatic payment failure or passing the invoice.due_date will set this field to true. If an invoice becomes uncollectible by dunning, delinquent doesn't reset to false. If you care whether the customer has paid their most recent subscription invoice, use subscription.status instead. Paying or marking uncollectible any customer invoice regardless of whether it is the latest invoice for a subscription will always set this field to false.
Custom attribute writer method checking allowed values (enum). @param [Object] delinquent Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] description Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] discount Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] email Object to be assigned
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code
Custom attribute writer method checking allowed values (enum). @param [Object] id Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] invoice_credit_balance Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] invoice_prefix Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] invoice_settings Object to be assigned
Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons
Has the value true if the object exists in live mode or the value false if the object exists in test mode.
Custom attribute writer method checking allowed values (enum). @param [Object] livemode Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] metadata Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] name Object to be assigned
The suffix of the customer's next invoice number (for example, 0001). When the account uses account level sequencing, this parameter is ignored in API requests and the field omitted in API responses.
Custom attribute writer method checking allowed values (enum). @param [Object] next_invoice_sequence Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] object Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] phone Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] preferred_locales Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] shipping Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] sources Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] subscriptions Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] tax Object to be assigned
Describes the customer's tax exemption status, which is none, exempt, or reverse. When set to reverse, invoice and receipt PDFs include the following text: "Reverse charge".
Custom attribute writer method checking allowed values (enum). @param [Object] tax_exempt Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] tax_ids Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] test_clock Object to be assigned
Check to see if the all the properties in the model are valid @return true if the model is valid