def create(params): url = f'{marketplace.get_full_url()}{get_full_url()}' return post(end_point=url, data=params)
def add_documment(seller_id, params, files): url = f'{marketplace.get_full_url()}{BASE_MODEL_URL}/{seller_id}{DOCUMENTS_URL}' return post(end_point=url, data=params, files=files)
def approve(invoice_id, is_beta=False): url = f'{marketplace.get_full_url()}{get_full_url()}/{invoice_id}/approve' return post(end_point=url, is_beta=is_beta)
def attach_card(token_id, customer_id): url = f'{marketplace.get_full_url()}{BASE_MODEL_CARD_URL}' data = {'customer': customer_id, 'token': token_id} return post(end_point=url, data=data)
def attach_bank_account(token_id, customer_id): url = f'{marketplace.get_full_url()}{BASE_MODEL_BANK_ACCOUNT_URL}' data = {'customer': customer_id, 'token': token_id} return post(end_point=url, data=data)
def create_p2p(owner, receiver, params): url = f'{marketplace.get_full_url()}{BASE_MODEL_URL}/{owner}/to/{receiver}' return post(end_point=url, data=params, is_v2=True)
def create(bank_account_id, params): url = f'{marketplace.get_full_url()}{BANK_ACCOUNTS_URL.format(bank_account_id)}' return post(end_point=url, data=params)
def void(transaction_id, params): url = f'{marketplace.get_full_url()}{get_full_url()}/{transaction_id}/void' return post(end_point=url, data=params)