Module: MangoApi::SettlementTransfers
- Extended by:
- UriProvider
- Defined in:
- lib/mangopay/api/service/settlement_transfers.rb
Overview
Provides API method delegates concerning the SettlementTransfer
entity
Class Method Summary collapse
-
.create(repudiation_id, transfer) ⇒ SettlementTransfer
Creates a new settlement transfer entity.
-
.get(id) ⇒ SettlementTransfer
Retrieves a settlement transfer entity.
Methods included from UriProvider
Class Method Details
.create(repudiation_id, transfer) ⇒ SettlementTransfer
Creates a new settlement transfer entity.
SettlementTransfer
properties:
-
Required
-
author_id
-
debited_funds
-
fees
-
-
Optional
-
tag
-
transfer to be created entity object
25 26 27 28 29 |
# File 'lib/mangopay/api/service/settlement_transfers.rb', line 25 def create(repudiation_id, transfer) uri = provide_uri(:create_settlement_transfer, repudiation_id) response = HttpClient.post(uri, transfer) parse response end |
.get(id) ⇒ SettlementTransfer
Retrieves a settlement transfer entity.
entity object
36 37 38 39 40 |
# File 'lib/mangopay/api/service/settlement_transfers.rb', line 36 def get(id) uri = provide_uri(:get_settlement_transfer, id) response = HttpClient.get(uri) parse response end |