lib/mangopay/dispute.rb in mangopay-3.0.20 vs lib/mangopay/dispute.rb in mangopay-3.0.21

- old
+ new

@@ -53,9 +53,15 @@ # +params+: hash; see https://docs.mangopay.com/api-references/disputes/settlement-transfers/ def create_settlement_transfer(repudiation_id, params, idempotency_key = nil) url = "#{MangoPay.api_path}/repudiations/#{repudiation_id}/settlementtransfer/" MangoPay.request(:post, url, params, {}, idempotency_key) end + + # see https://docs.mangopay.com/api-references/disputes/settlement-transfers/ + def fetch_settlement_transfer(transfer_id) + url = "#{MangoPay.api_path}/settlements/#{transfer_id}" + MangoPay.request(:get, url) + end ##################################################### # documents #####################################################