Module: Revolut::Clients::Payments
- Included in:
- Revolut::Client
- Defined in:
- lib/revolut/clients/payments.rb
Overview
Revolut Payments
Instance Method Summary collapse
-
#cancel_transaction(id) ⇒ Hash
Cancel transaction.
-
#pay(params = {}) ⇒ Hash
Create payment.
-
#transaction(id, params = {}) ⇒ Hash
Get transaction.
-
#transactions ⇒ Hash
List transactions.
-
#transfer(params = {}) ⇒ Hash
Transfer payment.
Instance Method Details
#cancel_transaction(id) ⇒ Hash
Cancel transaction
56 57 58 |
# File 'lib/revolut/clients/payments.rb', line 56 def cancel_transaction(id) connection.delete("transaction/#{id}") end |
#pay(params = {}) ⇒ Hash
Create payment
25 26 27 |
# File 'lib/revolut/clients/payments.rb', line 25 def pay(params = {}) connection.post('pay', params) end |
#transaction(id, params = {}) ⇒ Hash
Get transaction
45 46 47 |
# File 'lib/revolut/clients/payments.rb', line 45 def transaction(id, params = {}) connection.get("transaction/#{id}", params) end |
#transactions ⇒ Hash
List transactions
34 35 36 |
# File 'lib/revolut/clients/payments.rb', line 34 def transactions connection.get('transactions') end |
#transfer(params = {}) ⇒ Hash
Transfer payment
14 15 16 |
# File 'lib/revolut/clients/payments.rb', line 14 def transfer(params = {}) connection.post('transfer', params) end |