Class: BillForward::Refund
- Inherits:
-
MutableEntity
- Object
- BillingEntity
- InsertableEntity
- MutableEntity
- BillForward::Refund
- Defined in:
- lib/bill_forward/entities/refund.rb
Instance Attribute Summary
Attributes inherited from BillingEntity
Class Method Summary collapse
Methods inherited from MutableEntity
Methods inherited from InsertableEntity
Methods inherited from BillingEntity
#[], #[]=, #_dump, _load, build_entity, build_entity_array, #camel_case_lower, get_all, get_by_id, #initialize, #method_missing, request_ambiguous, request_first_heterotyped, request_many_heterotyped, #serialize, #serialize_field, singleton_client, #state_params, #to_json, #to_ordered_hash, #to_s, #to_unordered_hash
Constructor Details
This class inherits a constructor from BillForward::MutableEntity
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class BillForward::BillingEntity
Class Method Details
.get_by_invoice_id(id, query_params = {}, custom_client = nil) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/bill_forward/entities/refund.rb', line 6 def get_by_invoice_id(id, query_params = {}, custom_client = nil) raise ArgumentError.new("id cannot be nil") if id.nil? endpoint = sprintf('invoice/%s', ERB::Util.url_encode(id) ) self.request_many('get', endpoint, query_params, custom_client) end |