# Path: pagarme/resources/handler_request.py
# TEMPORARY_COMPANY = 'https://api.pagar.me/1/companies/temporary'
# KEYS = {}
# def validate_response(pagarme_response):
# def create_temporary_company():
# def authentication_key(api_key=None, company_temporary=False):
# def delete(end_point, data = {}):
# def get(end_point, data = {}):
# def post(end_point, data={}):
# def put(end_point, data = {}):
# def error(data):
# 
# Path: pagarme/resources/routes/recipient_routes.py
# BASE_URL = 'https://api.pagar.me/1/recipients'
# GET_ALL_RECIPIENTS = BASE_URL
# GET_DEFAULT_RECIPIENT = company_routes.BASE_URL
# GET_RECIPIENT_BALANCE = BASE_URL + '/{0}/balance'
# GET_RECIPIENT_BALANCE_OPERATIONS = BASE_URL + '/{0}/balance/operations'
# GET_RECIPIENT_BALANCE_OPERATION_BY_ID = BASE_URL + '/{0}/balance/operations/{1}'
# GET_RECIPIENT_BY = BASE_URL
# UPDATE_RECIPIENT = BASE_URL + '/{0}'


from pagarme.resources import handler_request
from pagarme.resources.routes import recipient_routes


def create(dictionary):
    return handler_request.post(recipient_routes.BASE_URL, dictionary)


def default_recipient():
    return handler_request.get(recipient_routes.GET_DEFAULT_RECIPIENT)['default_recipient_id']


def find_all():
    return handler_request.get(recipient_routes.GET_ALL_RECIPIENTS)


def find_by(search_params):
    return handler_request.get(recipient_routes.GET_RECIPIENT_BY, search_params)


def recipient_balance(recipient_id):
    return handler_request.get(recipient_routes.GET_RECIPIENT_BALANCE.format(recipient_id))


def recipient_balance_operation(recipient_id):

# Path: pagarme/resources/handler_request.py
# TEMPORARY_COMPANY = 'https://api.pagar.me/1/companies/temporary'
# KEYS = {}
# def validate_response(pagarme_response):
# def create_temporary_company():
# def authentication_key(api_key=None, company_temporary=False):
# def delete(end_point, data = {}):
# def get(end_point, data = {}):
# def post(end_point, data={}):
# def put(end_point, data = {}):
# def error(data):
# 
# Path: pagarme/resources/routes/recipient_routes.py
# BASE_URL = 'https://api.pagar.me/1/recipients'
# GET_ALL_RECIPIENTS = BASE_URL
# GET_DEFAULT_RECIPIENT = company_routes.BASE_URL
# GET_RECIPIENT_BALANCE = BASE_URL + '/{0}/balance'
# GET_RECIPIENT_BALANCE_OPERATIONS = BASE_URL + '/{0}/balance/operations'
# GET_RECIPIENT_BALANCE_OPERATION_BY_ID = BASE_URL + '/{0}/balance/operations/{1}'
# GET_RECIPIENT_BY = BASE_URL
# UPDATE_RECIPIENT = BASE_URL + '/{0}'


# Path: pagarme/recipient.py
from pagarme.resources import handler_request
from pagarme.resources.routes import recipient_routes



def create(dictionary):
    return handler_request.post(recipient_routes.BASE_URL, dictionary)


def default_recipient():
    return handler_request.get(recipient_routes.GET_DEFAULT_RECIPIENT)['default_recipient_id']


def find_all():
    return handler_request.get(recipient_routes.GET_ALL_RECIPIENTS)


def find_by(search_params):
    return handler_request.get(recipient_routes.GET_RECIPIENT_BY, search_params)


def recipient_balance(recipient_id):
    return handler_request.get(recipient_routes.GET_RECIPIENT_BALANCE.format(recipient_id))


def recipient_balance_operation(recipient_id):

    return handler_request.get(recipient_routes.GET_RECIPIENT_BALANCE_OPERATIONS.format(recipient_id))