Example #1
0
def create(params):
    url = f'{marketplace.get_full_url()}{get_full_url()}'
    return post(end_point=url, data=params)
Example #2
0
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)
Example #3
0
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)
Example #4
0
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)
Example #5
0
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)
Example #6
0
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)
Example #7
0
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)
Example #8
0
def void(transaction_id, params):
    url = f'{marketplace.get_full_url()}{get_full_url()}/{transaction_id}/void'
    return post(end_point=url, data=params)