Class: Billrb::Customer

Inherits:
Resource show all
Extended by:
Operations::Archive, Operations::Create, Operations::List, Operations::Retrieve, Operations::Update
Defined in:
lib/billrb/resources/customer.rb

Instance Attribute Summary

Attributes inherited from Resource

#attributes

Class Method Summary collapse

Methods included from Operations::List

list

Methods included from Operations::Retrieve

retrieve

Methods included from Operations::Create

create

Methods included from Operations::Update

update

Methods included from Operations::Archive

archive, restore

Methods inherited from Resource

#[], #id, #initialize, #inspect, #method_missing, #respond_to_missing?, #to_h

Constructor Details

This class inherits a constructor from Billrb::Resource

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Billrb::Resource

Class Method Details

.authorize_charge(id, params = {}, options = {}) ⇒ Object

POST /v3/customers/Resource#id/charge-authorization — required before charging a customer with ReceivablePayment.charge.



15
16
17
18
# File 'lib/billrb/resources/customer.rb', line 15

def self.authorize_charge(id, params = {}, options = {})
  new(Operations.client_from(options).post("#{resource_path}/#{id}/charge-authorization",
                                           Util.camelize_keys(params)))
end