Class: Invoiced::Refund
Constant Summary collapse
- OBJECT_NAME =
'refund'
Instance Attribute Summary
Attributes inherited from Object
Instance Method Summary collapse
Methods inherited from Object
#[], #[]=, #add_accessors, #build_endpoint, #each, #endpoint, #endpoint_base, #initialize, #inspect, #keys, #metaclass, #method_missing, #refresh_from, #remove_accessors, #retrieve, #set_endpoint_base, #to_hash, #to_json, #to_s, #values
Constructor Details
This class inherits a constructor from Invoiced::Object
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Invoiced::Object
Instance Method Details
#create(chargeId, body = {}, opts = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/invoiced/refund.rb', line 5 def create(chargeId, body={}, opts={}) response = @client.request(:post, @endpoint_base + "/charges/#{chargeId}/refunds", body, opts) Util.convert_to_object(self, response[:body]) end |