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()
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, )
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, )
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, )
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)