# 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/bulk_anticipation_routes.py
# BASE_URL = BASE_RECIPIENT + '/{0}/bulk_anticipations'
# CANCEL_ANTICIPATION = BASE_URL + '/{1}/cancel'
# CONFIRM_ANTICIPATION = BASE_URL + '/{1}/confirm'
# DELETE_ANTICIPATION = BASE_URL + '/{1}'
# GET_ALL_ANTICIPATIONS = BASE_URL
# GET_ANTICIPATION_LIMITS = BASE_URL + '/limits'


from pagarme.resources import handler_request
from pagarme.resources.routes import bulk_anticipation_routes


def cancel(recipient_id, bulk_anticipation_id):
    return \
        handler_request.post(bulk_anticipation_routes.CANCEL_ANTICIPATION.format(recipient_id, bulk_anticipation_id))


def confirm(recipient_id, bulk_anticipation_id):
    return \
        handler_request.post(bulk_anticipation_routes.CONFIRM_ANTICIPATION.format(recipient_id, bulk_anticipation_id))


def create(recipient_id, dictionary):

# 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/bulk_anticipation_routes.py
# BASE_URL = BASE_RECIPIENT + '/{0}/bulk_anticipations'
# CANCEL_ANTICIPATION = BASE_URL + '/{1}/cancel'
# CONFIRM_ANTICIPATION = BASE_URL + '/{1}/confirm'
# DELETE_ANTICIPATION = BASE_URL + '/{1}'
# GET_ALL_ANTICIPATIONS = BASE_URL
# GET_ANTICIPATION_LIMITS = BASE_URL + '/limits'


# Path: pagarme/bulk_anticipation.py
from pagarme.resources import handler_request
from pagarme.resources.routes import bulk_anticipation_routes



def cancel(recipient_id, bulk_anticipation_id):
    return \
        handler_request.post(bulk_anticipation_routes.CANCEL_ANTICIPATION.format(recipient_id, bulk_anticipation_id))


def confirm(recipient_id, bulk_anticipation_id):
    return \
        handler_request.post(bulk_anticipation_routes.CONFIRM_ANTICIPATION.format(recipient_id, bulk_anticipation_id))


def create(recipient_id, dictionary):

    return handler_request.post(bulk_anticipation_routes.BASE_URL.format(recipient_id), dictionary)