Class: Payjp::Charge
- Inherits:
-
APIResource
- Object
- PayjpObject
- APIResource
- Payjp::Charge
- Defined in:
- lib/payjp/charge.rb
Instance Method Summary collapse
- #capture(params = {}, opts = {}) ⇒ Object
- #reauth(params = {}, opts = {}) ⇒ Object
- #refund(params = {}, opts = {}) ⇒ Object
- #tds_finish(params = {}, opts = {}) ⇒ Object
Methods included from APIOperations::Update
Methods included from APIOperations::Create
Methods included from APIOperations::List
Methods inherited from APIResource
class_name, #refresh, retrieve, url, #url
Methods included from APIOperations::Request
Methods inherited from PayjpObject
#[], #[]=, #_dump, _load, #as_json, construct_from, #each, #initialize, #inspect, #keys, #refresh_from, #respond_to?, #serialize_nested_object, serialize_params, #to_hash, #to_json, #to_s, #values
Constructor Details
This class inherits a constructor from Payjp::PayjpObject
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Payjp::PayjpObject
Instance Method Details
#capture(params = {}, opts = {}) ⇒ Object
12 13 14 15 |
# File 'lib/payjp/charge.rb', line 12 def capture(params = {}, opts = {}) response, opts = request(:post, capture_url, params, opts) refresh_from(response, opts) end |
#reauth(params = {}, opts = {}) ⇒ Object
17 18 19 20 |
# File 'lib/payjp/charge.rb', line 17 def reauth(params = {}, opts = {}) response, opts = request(:post, reauth_url, params, opts) refresh_from(response, opts) end |
#refund(params = {}, opts = {}) ⇒ Object
7 8 9 10 |
# File 'lib/payjp/charge.rb', line 7 def refund(params = {}, opts = {}) response, opts = request(:post, refund_url, params, opts) refresh_from(response, opts) end |
#tds_finish(params = {}, opts = {}) ⇒ Object
22 23 24 25 |
# File 'lib/payjp/charge.rb', line 22 def tds_finish(params = {}, opts = {}) response, opts = request(:post, tds_finish_url, params, opts) refresh_from(response, opts) end |