Class: Billrb::Customer
- 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
Class Method Summary collapse
-
.authorize_charge(id, params = {}, options = {}) ⇒ Object
POST /v3/customers/Resource#id/charge-authorization — required before charging a customer with ReceivablePayment.charge.
Methods included from Operations::List
Methods included from Operations::Retrieve
Methods included from Operations::Create
Methods included from Operations::Update
Methods included from Operations::Archive
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.(id, params = {}, = {}) new(Operations.client_from().post("#{resource_path}/#{id}/charge-authorization", Util.camelize_keys(params))) end |