Module: MangoApi::Transfers
- Extended by:
- UriProvider
- Defined in:
- lib/mangopay/api/service/transfers.rb
Overview
Provides API method delegates concerning the Transfer
entity
Class Method Summary collapse
-
.create(transfer, id_key = nil) ⇒ Transfer
Creates a new transfer entity.
-
.get(id) ⇒ Transfer
Retrieves a transfer entity.
Methods included from UriProvider
Class Method Details
.create(transfer, id_key = nil) ⇒ Transfer
Creates a new transfer entity.
Transfer
properties:
-
Required
-
author_id
-
debited_funds
-
fees
-
debited_wallet_id
-
credited_wallet_id
-
-
Optional
-
tag
-
credited_user_id
-
26 27 28 29 30 |
# File 'lib/mangopay/api/service/transfers.rb', line 26 def create(transfer, id_key = nil) uri = provide_uri(:create_transfer) response = HttpClient.post(uri, transfer, id_key) parse response end |
.get(id) ⇒ Transfer
Retrieves a transfer entity.
36 37 38 39 40 |
# File 'lib/mangopay/api/service/transfers.rb', line 36 def get(id) uri = provide_uri(:get_transfer, id) response = HttpClient.get(uri) parse response end |