# Path: pagarme/recipient.py
# def create(dictionary):
# def default_recipient():
# def find_all():
# def find_by(search_params):
# def recipient_balance(recipient_id):
# def recipient_balance_operation(recipient_id):
# def recipient_balance_operation_id(recipient_id, operation_id):
# def update_recipient(recipient_id, dictionary):
# 
# Path: tests/resources/pagarme_test.py
# AUTH_TEST = handler_request.authentication_key(None, True)
# POSTBACK_URL = 'http://teste.url.com'
# BUSINESS_CALENDAR_URL = 'https://pagarme.github.io/business-calendar/data/brazil/{0}.json'
# def create_postback_url():
# def generate_timestamp():
# def is_holiday(date):
# def is_weekend(date):
# def get_business_calendar(year):
# 
# Path: tests/resources/dictionaries/card_dictionary.py
# INVALID_CARD = {
#     'card_number': '4242424242424242',
#     'card_cvv': '611',
#     'card_holder_name': 'THEON GREYJOY',
#     'card_expiration_date': '1220'
# }
# VALID_CARD = {
#     'card_number': '4242424242424242',
#     'card_cvv': '111',
#     'card_holder_name': 'DAENERYS TARGARYEN',
#     'card_expiration_date': '1220'
# }
# 
# Path: tests/resources/dictionaries/customer_dictionary.py
# ADDRESS = {
#     'address': {
#         'zipcode': '04571020',
#         'neighborhood': 'Dragon Village',
#         'street': 'Rua Drogon',
#         'street_number': '240'
#     }
# }
# PHONE = {
#     'phone': {
#         'number': '987654321',
#         'ddd': '11'
#     }
# }
# CUSTOMER = {
#     'email': 'daenerys.targaryen@gmail.com',
#     'name': 'Daenerys Targaryen',
#     'document_number': '18152564000105',
#     'address': ADDRESS['address'],
#     'phone': PHONE['phone']
# }
# 
# Path: tests/resources/dictionaries/recipient_dictionary.py
# BANK_ACCOUNT = bank_account.create(bank_account_dictionary.BANK_ACCOUNT)
# RECIPIENT = {
#     'anticipatable_volume_percentage': '80',
#     'automatic_anticipation_enabled': 'true',
#     'transfer_day': '5',
#     'transfer_enabled': 'true',
#     'transfer_interval': 'weekly',
#     'bank_account_id': BANK_ACCOUNT['id']
# }
# UPDATE_RECIPIENT = {
#     'transfer_enabled': 'false',
#     'anticipatable_volume_percentage': '85'
# }


from pagarme import recipient
from tests.resources import pagarme_test
from tests.resources.dictionaries import card_dictionary
from tests.resources.dictionaries import customer_dictionary
from tests.resources.dictionaries import recipient_dictionary
INVALID_REQUEST = {
    'amount': '1',
    'payment_method': BOLETO_TRANSACTION['payment_method'],
    'customer': customer_dictionary.CUSTOMER
}

PAY_BOLETO = {
    'status': 'paid'
}

REFUNDED_OR_CAPTURE_TRANSACTION = {
    'amount': '1000000'
}

VALID_CREDIT_CARD_TRANSACTION = {
    'amount': '1000000',
    'card_number': card_dictionary.VALID_CARD['card_number'],
    'card_holder_name': card_dictionary.VALID_CARD['card_holder_name'],
    'card_cvv': card_dictionary.VALID_CARD['card_cvv'],
    'card_expiration_date': card_dictionary.VALID_CARD['card_expiration_date'],
    'customer': customer_dictionary.CUSTOMER,
    'installments': '12'
}

VALID_CREDIT_CARD_TRANSACTION_CAPTURE_FALSE = {
    'amount': '1000000',
    'capture': 'false',
    'card_number': card_dictionary.VALID_CARD['card_number'],
    'card_holder_name': card_dictionary.VALID_CARD['card_holder_name'],
    'card_cvv': card_dictionary.VALID_CARD['card_cvv'],

# Path: pagarme/recipient.py
# def create(dictionary):
# def default_recipient():
# def find_all():
# def find_by(search_params):
# def recipient_balance(recipient_id):
# def recipient_balance_operation(recipient_id):
# def recipient_balance_operation_id(recipient_id, operation_id):
# def update_recipient(recipient_id, dictionary):
# 
# Path: tests/resources/pagarme_test.py
# AUTH_TEST = handler_request.authentication_key(None, True)
# POSTBACK_URL = 'http://teste.url.com'
# BUSINESS_CALENDAR_URL = 'https://pagarme.github.io/business-calendar/data/brazil/{0}.json'
# def create_postback_url():
# def generate_timestamp():
# def is_holiday(date):
# def is_weekend(date):
# def get_business_calendar(year):
# 
# Path: tests/resources/dictionaries/card_dictionary.py
# INVALID_CARD = {
#     'card_number': '4242424242424242',
#     'card_cvv': '611',
#     'card_holder_name': 'THEON GREYJOY',
#     'card_expiration_date': '1220'
# }
# VALID_CARD = {
#     'card_number': '4242424242424242',
#     'card_cvv': '111',
#     'card_holder_name': 'DAENERYS TARGARYEN',
#     'card_expiration_date': '1220'
# }
# 
# Path: tests/resources/dictionaries/customer_dictionary.py
# ADDRESS = {
#     'address': {
#         'zipcode': '04571020',
#         'neighborhood': 'Dragon Village',
#         'street': 'Rua Drogon',
#         'street_number': '240'
#     }
# }
# PHONE = {
#     'phone': {
#         'number': '987654321',
#         'ddd': '11'
#     }
# }
# CUSTOMER = {
#     'email': 'daenerys.targaryen@gmail.com',
#     'name': 'Daenerys Targaryen',
#     'document_number': '18152564000105',
#     'address': ADDRESS['address'],
#     'phone': PHONE['phone']
# }
# 
# Path: tests/resources/dictionaries/recipient_dictionary.py
# BANK_ACCOUNT = bank_account.create(bank_account_dictionary.BANK_ACCOUNT)
# RECIPIENT = {
#     'anticipatable_volume_percentage': '80',
#     'automatic_anticipation_enabled': 'true',
#     'transfer_day': '5',
#     'transfer_enabled': 'true',
#     'transfer_interval': 'weekly',
#     'bank_account_id': BANK_ACCOUNT['id']
# }
# UPDATE_RECIPIENT = {
#     'transfer_enabled': 'false',
#     'anticipatable_volume_percentage': '85'
# }


# Path: tests/resources/dictionaries/transaction_dictionary.py
from pagarme import recipient
from tests.resources import pagarme_test
from tests.resources.dictionaries import card_dictionary
from tests.resources.dictionaries import customer_dictionary
from tests.resources.dictionaries import recipient_dictionary

INVALID_REQUEST = {
    'amount': '1',
    'payment_method': BOLETO_TRANSACTION['payment_method'],
    'customer': customer_dictionary.CUSTOMER
}

PAY_BOLETO = {
    'status': 'paid'
}

REFUNDED_OR_CAPTURE_TRANSACTION = {
    'amount': '1000000'
}

VALID_CREDIT_CARD_TRANSACTION = {
    'amount': '1000000',
    'card_number': card_dictionary.VALID_CARD['card_number'],
    'card_holder_name': card_dictionary.VALID_CARD['card_holder_name'],
    'card_cvv': card_dictionary.VALID_CARD['card_cvv'],
    'card_expiration_date': card_dictionary.VALID_CARD['card_expiration_date'],
    'customer': customer_dictionary.CUSTOMER,
    'installments': '12'
}

VALID_CREDIT_CARD_TRANSACTION_CAPTURE_FALSE = {
    'amount': '1000000',
    'capture': 'false',
    'card_number': card_dictionary.VALID_CARD['card_number'],
    'card_holder_name': card_dictionary.VALID_CARD['card_holder_name'],
    'card_cvv': card_dictionary.VALID_CARD['card_cvv'],

    'card_expiration_date': card_dictionary.VALID_CARD['card_expiration_date'],