Example #1
0
def find_all():
    return handler_request.get(card_routes.GET_ALL_CARDS)
def payables(transaction_id):
    return handler_request.get(
        transaction_routes.GET_ALL_PAYABLES_WITH_TRANSACTION_ID.format(
            transaction_id))
def specific_payable(transaction_id, payable_id):
    return handler_request.get(
        transaction_routes.GET_SPECIFIC_PAYABLE.format(transaction_id,
                                                       payable_id))
def find_by_id(transaction_id):
    return handler_request.get(
        transaction_routes.GET_SPECIFIC_TRANSACTION_BY_ID.format(
            transaction_id))
def calculate_installments_amount(dictionary):
    return handler_request.get(
        transaction_routes.CALCULATE_INSTALLMENTS_AMOUNT, dictionary)
def find_by(search_params):
    return handler_request.get(payable_routes.GET_PAYABLE_BY, search_params)
def find_all():
    return handler_request.get(transaction_routes.BASE_URL)
Example #8
0
def find_by(search_params):
    return handler_request.get(plan_routes.GET_PLAN_BY, search_params)
Example #9
0
def find_all():
    return handler_request.get(plan_routes.GET_ALL_PLANS)
def find_by(search_params):
    return handler_request.get(bank_account_routes.GET_BANK_ACCOUNTS_BY, search_params)
def find_all():
    return handler_request.get(bank_account_routes.BASE_URL)
def find_by(search_params):
    return handler_request.get(transfer_routes.GET_TRANSFER_BY, search_params)
def find_all():
    return handler_request.get(transfer_routes.GET_ALL_TRANSFERS)
Example #14
0
def find_by(search_params):
    return handler_request.get(card_routes.GET_CARD_BY, search_params)
def limits(recipient_id, dictionary):
    return handler_request.get(bulk_anticipation_routes.GET_ANTICIPATION_LIMITS.format(recipient_id), dictionary)
Example #16
0
def find_all():
    return handler_request.get(recipient_routes.GET_ALL_RECIPIENTS)
def find_all():
    return handler_request.get(payable_routes.GET_ALL_PAYABLES)
Example #18
0
def find_by(search_params):
    return handler_request.get(recipient_routes.GET_RECIPIENT_BY,
                               search_params)
def events(transaction_id):
    return handler_request.get(
        transaction_routes.GET_EVENTS_TRANSACTION.format(transaction_id))
Example #20
0
def recipient_balance(recipient_id):
    return handler_request.get(
        recipient_routes.GET_RECIPIENT_BALANCE.format(recipient_id))
def find_by(search_params):
    return handler_request.get(transaction_routes.GET_TRANSACTION_BY,
                               search_params)
Example #22
0
def recipient_balance_operation_id(recipient_id, operation_id):
    return \
        handler_request.get(recipient_routes.GET_RECIPIENT_BALANCE_OPERATION_BY_ID.format(recipient_id, operation_id))
def generate_card_hash_key():
    return handler_request.get(transaction_routes.GENERATE_CARD_HASH_KEY)
Example #24
0
def default_recipient():
    return handler_request.get(
        recipient_routes.GET_DEFAULT_RECIPIENT)['default_recipient_id']
def operations(transaction_id):
    return handler_request.get(
        transaction_routes.GET_TRANSACTION_OPERATION.format(transaction_id))
Example #26
0
 def transfer(self):
     if not self.__transfer and self.pagarme_id:
         self.__transfer = handler_request.get(
             f'https://api.pagar.me/1/transfers/{self.pagarme_id}')
     return self.__transfer
def postbacks(transaction_id):
    return handler_request.get(
        transaction_routes.GET_ALL_POSTBACKS.format(transaction_id))
def find_all(recipient_id):
    return handler_request.get(bulk_anticipation_routes.GET_ALL_ANTICIPATIONS.format(recipient_id))
def specific_postback(transaction_id, postback_id):
    return handler_request.get(
        transaction_routes.GET_SPECIFIC_POSTBACK.format(
            transaction_id, postback_id))
def default_recipient_balance():
    return handler_request.get(balance_routes.BASE_URL)