コード例 #1
0
def query_bill(service_provider_code: str, account_number: str) -> dict:
    op_info = execute_op(None,
                         OperationType.query,
                         arcusd.arcusactions.query_bill,
                         get_biller_id(service_provider_code),
                         account_number,
                         send_callback=False)
    return op_info.to_dict()
コード例 #2
0
ファイル: tasks.py プロジェクト: cuenca-mx/arcusd
def query_bill(
    request_id: str, service_provider_code: str, account_number: str
):
    execute_op(
        request_id,
        OperationType.query,
        arcusd.arcusactions.query_bill,
        get_biller_id(service_provider_code),
        account_number,
    )
コード例 #3
0
ファイル: tasks.py プロジェクト: cuenca-mx/arcusd
def pay_bill(
    request_id: str,
    service_provider_code: str,
    account_number: str,
    amount: Optional[int] = None,
):
    execute_op(
        request_id,
        OperationType.payment,
        arcusd.arcusactions.pay_bill,
        get_biller_id(service_provider_code),
        account_number,
        amount,
    )
コード例 #4
0
ファイル: tasks.py プロジェクト: cuenca-mx/arcusd
def topup(
    request_id: str,
    service_provider_code: str,
    phone_number: str,
    amount: int,
    currency: str = 'MXN',
    name_on_account: Optional[str] = None,
):
    biller_id = get_biller_id(service_provider_code)
    execute_op(
        request_id,
        OperationType.topup
        if biller_id in arcusd.arcusactions.TOPUP_BILLERS
        else OperationType.payment,
        arcusd.arcusactions.bill_payments,
        biller_id,
        phone_number,
        amount,
        currency,
        name_on_account,
    )
コード例 #5
0
def topup(request_id: str, service_provider_code: str, phone_number: str,
          amount: int, currency: str = 'MXN',
          name_on_account: Optional[str] = None):
    execute_op(request_id, OperationType.topup, arcusd.arcusactions.topup,
               get_biller_id(service_provider_code), phone_number, amount,
               currency, name_on_account)