def register_binding_card(self):
        phone_number = Utility.GetData().mobile()
        user_name = Utility.GetData().english_name()
        id_no = Utility.GetData().id_no()
        band_card_no = Utility.GetData().bank_card_no(card_bin='622202').split('-')[0]

        self.xjb.register_binding_card(phone_number=phone_number,
                                       login_password='******',
                                       trade_password='******',
                                       user_name=user_name,
                                       id_no=id_no,
                                       band_card_no=band_card_no)
 def delete_bank_card(self):
     band_card_no = Utility.GetData().bank_card_no(card_bin='622202').split('-')[0]
     phone_number = Utility.GetData().mobile()
     user_new, login_password, trade_password = RestfulXjbTools().new_user(user_name=phone_number,
                                                                           login_password='******',
                                                                           card_bin='622202',
                                                                           trade_password='******',
                                                                           recharge_amount='10000')
     self.xjb.delete_bank_card(user_name=user_new,
                               login_password=login_password,
                               trade_password=trade_password,
                               last_card_no=band_card_no[-4:])
    def bank_card_manage_binding_nan_yue_card(self):
        phone_number = Utility.GetData().mobile()
        band_card_no = Utility.GetData().bank_card_no(card_bin='623595').split('-')[0]
        user_new, login_password, trade_password = RestfulXjbTools().new_user(user_name=phone_number,
                                                                              login_password='******',
                                                                              card_bin='622202',
                                                                              trade_password='******',
                                                                              recharge_amount='10000')

        self.xjb.bank_card_manage_binding_nan_yue_card(user_name=user_new,
                                                       login_password=login_password,
                                                       band_card_no=band_card_no,
                                                       phone_number=user_new)
    def security_center_modify_mobile(self):
        phone_number = Utility.GetData().mobile()
        mobile_new = Utility.GetData().mobile()
        user_new, login_password, trade_password = RestfulXjbTools().new_user(user_name=phone_number,
                                                                              login_password='******',
                                                                              card_bin='622202',
                                                                              trade_password='******',
                                                                              recharge_amount='10000')

        self.xjb.security_center_modify_mobile(user_name=user_new,
                                               login_password=login_password,
                                               trade_password=trade_password,
                                               mobile_new=mobile_new)
 def risk_evaluating_new_user(self):
     phone_number = Utility.GetData().mobile()
     user_new, login_password, trade_password = RestfulXjbTools().new_user(user_name=phone_number,
                                                                           login_password='******',
                                                                           card_bin='622202',
                                                                           trade_password='******',
                                                                           recharge_amount='10000')
     self.xjb.risk_evaluating_new_user(user_name=user_new,
                                       login_password=login_password)
    def new_user(self):
        username = Utility.GetData().mobile()
        username, login_password, trade_password = RestfulXjbTools().new_user(
            username=username,
            login_password='******',
            card_bin='622202',
            trade_password='******',
            recharge_amount='10000')
        self.main_page.go_to_home_page()
        self.main_page.go_to_login_page()
        self.main_page.login(username, login_password, 'HomePage')

        return username, login_password, trade_password
 def register(self):
     phone_number = Utility.GetData().mobile()
     self.xjb.register(phone_number=phone_number, login_password='******')
Beispiel #8
0
 def __init__(self):
     self._data = Utility.GetData()