require_relative '../service' module Adyen # NOTE: This class is auto generated by OpenAPI Generator # Ref: https://openapi-generator.tech # # Do not edit the class manually. class TransferRoutesApi < Service attr_accessor :service, :version def initialize(client, version = DEFAULT_VERSION) super(client, version, 'BalancePlatform') end # Calculate transfer routes def calculate_transfer_routes(request, headers: {}) endpoint = '/transferRoutes/calculate'.gsub(/{.+?}/, '%s') endpoint = endpoint.gsub(%r{^/}, '') endpoint = format(endpoint) action = { method: 'post', url: endpoint } @client.call_adyen_api(@service, action, request, headers, @version) end end end