コード例 #1
0
ファイル: case_stream.py プロジェクト: RomySaber/api-test
def channel(channelname, accountname, LegalPerson_name, business_email):
    channelid = saveChannel(channelname)
    # 审核通过
    # sql = 'name="' + channelname + '" and state ="enabled"'
    # channelid = MysqlClent.select_one(loginAction.DB, 'Tbl_ChannelProfile', 'channel_uuid', sql)
    PlatformAction.test_api_78dk_platform_cm_examine_examine(isadopt='true',
                                                             uid=channelid,
                                                             message='通过')
    # 添加结算信息
    PlatformAction.test_api_78dk_platform_cm_base_clear_saveClearingAccount(
        accountname=accountname,
        accountnumber='6011826564542944',
        accountopeningbank='农业银行',
        accounttype='public_accounts',
        branchname='支行名称',
        chamberlainidcard='431081199812097872',
        channelormerchantuuid=channelid,
        city='510100',
        clearingaccountuuid='',
        linenumber='6756765756',
        phone='15179366892',
        province='510000',
        region='510101')
    # 添加法人
    PlatformAction.test_api_78dk_platform_cm_base_legal_saveLegalPerson(
        cardnumber='510903199909098900',
        channelormerchantuuid=channelid,
        legalpersonuuid='',
        mobile='18909890989',
        name=LegalPerson_name)
    # 添加机构信息
    PlatformAction.test_api_78dk_platform_cm_base_business_saveBusinessInfor(
        businessaddress='天府软件园',
        businessaddressgpsloction='天府软件园GPS地址',
        businessaddresszipcode='000000',
        businesshoursendtime='18:30',
        businesshoursstarttime='08:30',
        businessinformationuuid=channelid,
        businessregistrationnumber='443534534543',
        channelormerchantuuid=channelid,
        documentaddress='天府软件园',
        email=business_email,
        organizationcode='567657675765',
        socialunifiedcreditcode='34534543534',
        storerentalendtime='2019-01-12',
        storerentalstarttime='2018-01-12',
        taxregistrationnumber='34543543543',
        documentprovince=510000,
        documentcity=510100,
        documentregion=510104,
        documentprovincename='',
        documentcityname='',
        documentregionname='',
        businessprovince=510000,
        businesscity=510100,
        businessregion=510104,
        businessprovincename='',
        businesscityname='',
        businessregionname='')
    return channelname
コード例 #2
0
    def test_40api_78dk_platform_cm_base_business_deleteBusinessInfor(self):
        res = PlatformAction.test_api_78dk_platform_cm_base_saveChannel(
            city="510100",
            name=channelname2,
            province="510000",
            region="510107",
            shortname=channelname2 + '拒绝简称',
            parentchanneluuid=self.channelid)
        Assertion.verity(json.loads(res)['msg'], '成功')
        Assertion.verity(json.loads(res)['code'], '10000')

        # 查询渠道id
        sql = 'name="' + channelname2 + '" and state ="enabled"'
        channelid = MysqlClent.select_one(loginAction.DB, 'Tbl_ChannelProfile',
                                          'channel_uuid', sql)
        print(channelid)
        # 新增机构信息
        PlatformAction.test_api_78dk_platform_cm_base_business_saveBusinessInfor(
            businessaddress='天府软件园',
            businessaddressgpsloction='天府软件园GPS地址',
            businessaddresszipcode='000000',
            businesshoursendtime='18:30',
            businesshoursstarttime='08:30',
            businessinformationuuid='',
            businessregistrationnumber='443534534543',
            channelormerchantuuid=channelid,
            documentaddress='天府软件园',
            email=email,
            organizationcode='567657675765',
            socialunifiedcreditcode='34534543534',
            storerentalendtime='2019-01-12',
            storerentalstarttime='2018-01-12',
            taxregistrationnumber='34543543543',
            documentprovince=510000,
            documentcity=510100,
            documentregion=510104,
            documentprovincename='',
            documentcityname='',
            documentregionname='',
            businessprovince=510000,
            businesscity=510100,
            businessregion=510104,
            businessprovincename='',
            businesscityname='',
            businessregionname='')
        sql = 'email="' + email + '" and state ="enabled"'
        businnessid = MysqlClent.select_one(loginAction.DB,
                                            'Tbl_BusinessInformation',
                                            'business_information_uuid', sql)
        # 删除结算
        res = PlatformAction.test_api_78dk_platform_cm_base_business_deleteBusinessInfor(
            businnessid)
        Assertion.verity(json.loads(res)['code'], '10000')
コード例 #3
0
 def test_36api_78dk_platform_cm_base_business_saveBusinessInfor(self):
     # 新增机构
     sql = 'name="' + channelname + '" and state ="enabled"'
     channelid = MysqlClent.select_one(loginAction.DB, 'Tbl_ChannelProfile',
                                       'channel_uuid', sql)
     print(channelid)
     res = PlatformAction.test_api_78dk_platform_cm_base_business_saveBusinessInfor(
         businessaddress='天府软件园',
         businessaddressgpsloction='天府软件园GPS地址',
         businessaddresszipcode='000000',
         businesshoursendtime='18:30',
         businesshoursstarttime='08:30',
         businessinformationuuid='',
         businessregistrationnumber='443534534543',
         channelormerchantuuid=channelid,
         documentaddress='天府软件园',
         email=email,
         organizationcode='567657675765',
         socialunifiedcreditcode='34534543534',
         storerentalendtime='2019-01-12',
         storerentalstarttime='2018-01-12',
         taxregistrationnumber='34543543543',
         documentprovince=510000,
         documentcity=510100,
         documentregion=510104,
         documentprovincename='',
         documentcityname='',
         documentregionname='',
         businessprovince=510000,
         businesscity=510100,
         businessregion=510104,
         businessprovincename='',
         businesscityname='',
         businessregionname='')
     Assertion.verity(json.loads(res)['code'], '10000')