Class: Nihaopay::Transactions::Release
- Defined in:
- lib/nihaopay/transactions/release.rb
Constant Summary
Constants included from Queryable
Constants included from Api
Api::LIVE_HOST, Api::TEST_HOST, Api::VERSION
Instance Attribute Summary collapse
-
#release_transaction_id ⇒ Object
Returns the value of attribute release_transaction_id.
-
#released ⇒ Object
Returns the value of attribute released.
Attributes inherited from Cancel
#cancel_transaction_id, #cancelled
Attributes inherited from Capture
#capture_transaction_id, #captured
Attributes inherited from Base
#amount, #captured, #currency, #note, #reference, #status, #time, #token, #transaction_id, #type
Class Method Summary collapse
Methods inherited from Cancel
Methods inherited from Capture
request_params, start, valid_options
Methods inherited from Base
build, build_from_response!, #cancel, #capture, #initialize, #partial_capture, #partial_refund, #refund, #release, request_body, request_headers
Methods included from Queryable
Methods included from Api
Constructor Details
This class inherits a constructor from Nihaopay::Transactions::Base
Instance Attribute Details
#release_transaction_id ⇒ Object
Returns the value of attribute release_transaction_id.
4 5 6 |
# File 'lib/nihaopay/transactions/release.rb', line 4 def release_transaction_id @release_transaction_id end |
#released ⇒ Object
Returns the value of attribute released.
4 5 6 |
# File 'lib/nihaopay/transactions/release.rb', line 4 def released @released end |
Class Method Details
.request_url(transaction_id) ⇒ Object
7 8 9 |
# File 'lib/nihaopay/transactions/release.rb', line 7 def request_url(transaction_id) "#{base_url}/transactions/#{transaction_id}/release" end |
.response_keys_map ⇒ Object
15 16 17 |
# File 'lib/nihaopay/transactions/release.rb', line 15 def response_keys_map { id: :transaction_id, transaction_id: :release_transaction_id } end |
.valid_attributes ⇒ Object
11 12 13 |
# File 'lib/nihaopay/transactions/release.rb', line 11 def valid_attributes %i[transaction_id status released release_transaction_id time].freeze end |