Class: Billy::Card
Instance Attribute Summary
Attributes inherited from BaseModel
Class Method Summary collapse
Instance Method Summary collapse
-
#list ⇒ Object
Get a paginated list of all cards for a Billy service.
Methods inherited from BaseModel
Constructor Details
This class inherits a constructor from Billy::BaseModel
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Billy::BaseModel
Class Method Details
.add_stripe_card(service, stripe_token, ip_address, options = {}) ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/billy/card.rb', line 9 def self.add_stripe_card(service, stripe_token, ip_address, = {}) params = {} params[:service] = service params[:token] = stripe_token params[:ip_address] = ip_address params[:invoice] = [:invoice_to_pay] if [:invoice_to_pay] Billy::Request.request('cards/add_stripe_card', params) end |