コード例 #1
0
ファイル: plan.py プロジェクト: franklindias/juno-python
def remove(plan_id, is_beta=False):
    url = f'{marketplace.get_full_url()}{BASE_MODEL_URL}/{plan_id}'
    return delete(url, is_beta=is_beta)
コード例 #2
0
def delete(seller_id):
    url = f'{marketplace.get_full_url()}{BASE_MODEL_URL}/{seller_id}'
    return delete(url)
コード例 #3
0
def remove(bank_account_id):
    url = f'{marketplace.get_full_url()}{get_full_url()}/{bank_account_id}'
    return delete(end_point=url)
コード例 #4
0
def void(invoice_id, is_beta=False):
    url = f'{marketplace.get_full_url()}{get_full_url()}/{invoice_id}/void'
    return delete(end_point=url, is_beta=is_beta
                  )  #Na documentação está POST mas a API só responde ao DELETE
コード例 #5
0
def remove(card_id):
    url = f'{marketplace.get_full_url()}{BASE_MODEL_URL}/{card_id}'
    return delete(url)
コード例 #6
0
def delete_bank_account(bank_account_id):
    url = f'{marketplace.get_full_url()}{BASE_MODEL_BANK_ACCOUNT_URL}/{bank_account_id}'
    return delete(url)
コード例 #7
0
def delete(transfer_id):
    url = f'{marketplace.get_full_url()}{BASE_MODEL_URL}/{transfer_id}'
    return delete(end_point=url, data=params)