com.alipay.api.response.MonitorHeartbeatSynResponse源码实例Demo

类com.alipay.api.response.MonitorHeartbeatSynResponse源码实例Demo

下面列出了com.alipay.api.response.MonitorHeartbeatSynResponse 类实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

源代码1 项目: MeetingFilm   文件: AbsHbRunner.java
@Override
public void run() {
    AlipayHeartbeatSynRequestBuilder builder = getBuilder();
    builder.setAppAuthToken(getAppAuthToken());

    MonitorHeartbeatSynResponse response = monitorService.heartbeatSyn(builder);

    StringBuilder sb = new StringBuilder(response.getCode())
                            .append(":")
                            .append(response.getMsg());
    if (StringUtils.isNotEmpty(response.getSubCode())) {
        sb.append(", ")
        .append(response.getSubCode())
        .append(":")
        .append(response.getSubMsg());
    }
    log.info(sb.toString());
}
 
源代码2 项目: MeetingFilm   文件: AlipayMonitorServiceImpl.java
@Override
public MonitorHeartbeatSynResponse heartbeatSyn(AlipayHeartbeatSynRequestBuilder builder) {
    validateBuilder(builder);

    MonitorHeartbeatSynRequest request = new MonitorHeartbeatSynRequest();
    request.putOtherTextParam("app_auth_token", builder.getAppAuthToken());
    request.setBizContent(builder.toJsonString());
    log.info("heartbeat.sync bizContent:" + request.getBizContent());

    return (MonitorHeartbeatSynResponse) getResponse(client, request);
}
 
源代码3 项目: mmall20180107   文件: Main.java
public void test_monitor_sys() {
    // 系统商使用的交易信息格式,json字符串类型
    List<SysTradeInfo> sysTradeInfoList = new ArrayList<SysTradeInfo>();
    sysTradeInfoList.add(SysTradeInfo.newInstance("00000001", 5.2, HbStatus.S));
    sysTradeInfoList.add(SysTradeInfo.newInstance("00000002", 4.4, HbStatus.F));
    sysTradeInfoList.add(SysTradeInfo.newInstance("00000003", 11.3, HbStatus.P));
    sysTradeInfoList.add(SysTradeInfo.newInstance("00000004", 3.2, HbStatus.X));
    sysTradeInfoList.add(SysTradeInfo.newInstance("00000005", 4.1, HbStatus.X));

    // 填写异常信息,如果有的话
    List<ExceptionInfo> exceptionInfoList = new ArrayList<ExceptionInfo>();
    exceptionInfoList.add(ExceptionInfo.HE_SCANER);
    //        exceptionInfoList.add(ExceptionInfo.HE_PRINTER);
    //        exceptionInfoList.add(ExceptionInfo.HE_OTHER);

    // 填写扩展参数,如果有的话
    Map<String, Object> extendInfo = new HashMap<String, Object>();
    //        extendInfo.put("SHOP_ID", "BJ_ZZ_001");
    //        extendInfo.put("TERMINAL_ID", "1234");

    String appAuthToken = "应用授权令牌";//根据真实值填写

    AlipayHeartbeatSynRequestBuilder builder = new AlipayHeartbeatSynRequestBuilder()
            .setAppAuthToken(appAuthToken).setProduct(Product.FP).setType(Type.CR)
            .setEquipmentId("cr1000001").setEquipmentStatus(EquipStatus.NORMAL)
            .setTime(Utils.toDate(new Date())).setStoreId("store10001").setMac("0a:00:27:00:00:00")
            .setNetworkType("LAN").setProviderId("2088911212323549") // 设置系统商pid
            .setSysTradeInfoList(sysTradeInfoList) // 系统商同步trade_info信息
            //                .setExceptionInfoList(exceptionInfoList)  // 填写异常信息,如果有的话
            .setExtendInfo(extendInfo) // 填写扩展信息,如果有的话
            ;

    MonitorHeartbeatSynResponse response = monitorService.heartbeatSyn(builder);
    dumpResponse(response);
}
 
源代码4 项目: mmall20180107   文件: Main.java
public void test_monitor_pos() {
    // POS厂商使用的交易信息格式,字符串类型
    List<PosTradeInfo> posTradeInfoList = new ArrayList<PosTradeInfo>();
    posTradeInfoList.add(PosTradeInfo.newInstance(HbStatus.S, "1324", 7));
    posTradeInfoList.add(PosTradeInfo.newInstance(HbStatus.X, "1326", 15));
    posTradeInfoList.add(PosTradeInfo.newInstance(HbStatus.S, "1401", 8));
    posTradeInfoList.add(PosTradeInfo.newInstance(HbStatus.F, "1405", 3));

    // 填写异常信息,如果有的话
    List<ExceptionInfo> exceptionInfoList = new ArrayList<ExceptionInfo>();
    exceptionInfoList.add(ExceptionInfo.HE_PRINTER);

    // 填写扩展参数,如果有的话
    Map<String, Object> extendInfo = new HashMap<String, Object>();
    //        extendInfo.put("SHOP_ID", "BJ_ZZ_001");
    //        extendInfo.put("TERMINAL_ID", "1234");

    AlipayHeartbeatSynRequestBuilder builder = new AlipayHeartbeatSynRequestBuilder()
            .setProduct(Product.FP)
            .setType(Type.SOFT_POS)
            .setEquipmentId("soft100001")
            .setEquipmentStatus(EquipStatus.NORMAL)
            .setTime("2015-09-28 11:14:49")
            .setManufacturerPid("2088000000000009")
            // 填写机具商的支付宝pid
            .setStoreId("store200001").setEquipmentPosition("31.2433190000,121.5090750000")
            .setBbsPosition("2869719733-065|2896507033-091").setNetworkStatus("gggbbbgggnnn")
            .setNetworkType("3G").setBattery("98").setWifiMac("0a:00:27:00:00:00")
            .setWifiName("test_wifi_name").setIp("192.168.1.188")
            .setPosTradeInfoList(posTradeInfoList) // POS厂商同步trade_info信息
            //                .setExceptionInfoList(exceptionInfoList) // 填写异常信息,如果有的话
            .setExtendInfo(extendInfo) // 填写扩展信息,如果有的话
            ;

    MonitorHeartbeatSynResponse response = monitorService.heartbeatSyn(builder);
    dumpResponse(response);
}
 
源代码5 项目: mmall-kay-Java   文件: Main.java
public void test_monitor_sys() {
    // 系统商使用的交易信息格式,json字符串类型
    List<SysTradeInfo> sysTradeInfoList = new ArrayList<SysTradeInfo>();
    sysTradeInfoList.add(SysTradeInfo.newInstance("00000001", 5.2, HbStatus.S));
    sysTradeInfoList.add(SysTradeInfo.newInstance("00000002", 4.4, HbStatus.F));
    sysTradeInfoList.add(SysTradeInfo.newInstance("00000003", 11.3, HbStatus.P));
    sysTradeInfoList.add(SysTradeInfo.newInstance("00000004", 3.2, HbStatus.X));
    sysTradeInfoList.add(SysTradeInfo.newInstance("00000005", 4.1, HbStatus.X));

    // 填写异常信息,如果有的话
    List<ExceptionInfo> exceptionInfoList = new ArrayList<ExceptionInfo>();
    exceptionInfoList.add(ExceptionInfo.HE_SCANER);
    //        exceptionInfoList.add(ExceptionInfo.HE_PRINTER);
    //        exceptionInfoList.add(ExceptionInfo.HE_OTHER);

    // 填写扩展参数,如果有的话
    Map<String, Object> extendInfo = new HashMap<String, Object>();
    //        extendInfo.put("SHOP_ID", "BJ_ZZ_001");
    //        extendInfo.put("TERMINAL_ID", "1234");

    String appAuthToken = "应用授权令牌";//根据真实值填写

    AlipayHeartbeatSynRequestBuilder builder = new AlipayHeartbeatSynRequestBuilder()
        .setAppAuthToken(appAuthToken).setProduct(Product.FP).setType(Type.CR)
        .setEquipmentId("cr1000001").setEquipmentStatus(EquipStatus.NORMAL)
        .setTime(Utils.toDate(new Date())).setStoreId("store10001").setMac("0a:00:27:00:00:00")
        .setNetworkType("LAN").setProviderId("2088911212323549") // 设置系统商pid
        .setSysTradeInfoList(sysTradeInfoList) // 系统商同步trade_info信息
        //                .setExceptionInfoList(exceptionInfoList)  // 填写异常信息,如果有的话
        .setExtendInfo(extendInfo) // 填写扩展信息,如果有的话
    ;

    MonitorHeartbeatSynResponse response = monitorService.heartbeatSyn(builder);
    dumpResponse(response);
}
 
源代码6 项目: mmall-kay-Java   文件: Main.java
public void test_monitor_pos() {
    // POS厂商使用的交易信息格式,字符串类型
    List<PosTradeInfo> posTradeInfoList = new ArrayList<PosTradeInfo>();
    posTradeInfoList.add(PosTradeInfo.newInstance(HbStatus.S, "1324", 7));
    posTradeInfoList.add(PosTradeInfo.newInstance(HbStatus.X, "1326", 15));
    posTradeInfoList.add(PosTradeInfo.newInstance(HbStatus.S, "1401", 8));
    posTradeInfoList.add(PosTradeInfo.newInstance(HbStatus.F, "1405", 3));

    // 填写异常信息,如果有的话
    List<ExceptionInfo> exceptionInfoList = new ArrayList<ExceptionInfo>();
    exceptionInfoList.add(ExceptionInfo.HE_PRINTER);

    // 填写扩展参数,如果有的话
    Map<String, Object> extendInfo = new HashMap<String, Object>();
    //        extendInfo.put("SHOP_ID", "BJ_ZZ_001");
    //        extendInfo.put("TERMINAL_ID", "1234");

    AlipayHeartbeatSynRequestBuilder builder = new AlipayHeartbeatSynRequestBuilder()
        .setProduct(Product.FP)
        .setType(Type.SOFT_POS)
        .setEquipmentId("soft100001")
        .setEquipmentStatus(EquipStatus.NORMAL)
        .setTime("2015-09-28 11:14:49")
        .setManufacturerPid("2088000000000009")
        // 填写机具商的支付宝pid
        .setStoreId("store200001").setEquipmentPosition("31.2433190000,121.5090750000")
        .setBbsPosition("2869719733-065|2896507033-091").setNetworkStatus("gggbbbgggnnn")
        .setNetworkType("3G").setBattery("98").setWifiMac("0a:00:27:00:00:00")
        .setWifiName("test_wifi_name").setIp("192.168.1.188")
        .setPosTradeInfoList(posTradeInfoList) // POS厂商同步trade_info信息
        //                .setExceptionInfoList(exceptionInfoList) // 填写异常信息,如果有的话
        .setExtendInfo(extendInfo) // 填写扩展信息,如果有的话
    ;

    MonitorHeartbeatSynResponse response = monitorService.heartbeatSyn(builder);
    dumpResponse(response);
}
 
源代码7 项目: MMall_JAVA   文件: Main.java
public void test_monitor_sys() {
    // 系统商使用的交易信息格式,json字符串类型
    List<SysTradeInfo> sysTradeInfoList = new ArrayList<SysTradeInfo>();
    sysTradeInfoList.add(SysTradeInfo.newInstance("00000001", 5.2, HbStatus.S));
    sysTradeInfoList.add(SysTradeInfo.newInstance("00000002", 4.4, HbStatus.F));
    sysTradeInfoList.add(SysTradeInfo.newInstance("00000003", 11.3, HbStatus.P));
    sysTradeInfoList.add(SysTradeInfo.newInstance("00000004", 3.2, HbStatus.X));
    sysTradeInfoList.add(SysTradeInfo.newInstance("00000005", 4.1, HbStatus.X));

    // 填写异常信息,如果有的话
    List<ExceptionInfo> exceptionInfoList = new ArrayList<ExceptionInfo>();
    exceptionInfoList.add(ExceptionInfo.HE_SCANER);
    //        exceptionInfoList.add(ExceptionInfo.HE_PRINTER);
    //        exceptionInfoList.add(ExceptionInfo.HE_OTHER);

    // 填写扩展参数,如果有的话
    Map<String, Object> extendInfo = new HashMap<String, Object>();
    //        extendInfo.put("SHOP_ID", "BJ_ZZ_001");
    //        extendInfo.put("TERMINAL_ID", "1234");

    String appAuthToken = "应用授权令牌";//根据真实值填写

    AlipayHeartbeatSynRequestBuilder builder = new AlipayHeartbeatSynRequestBuilder()
        .setAppAuthToken(appAuthToken).setProduct(Product.FP).setType(Type.CR)
        .setEquipmentId("cr1000001").setEquipmentStatus(EquipStatus.NORMAL)
        .setTime(Utils.toDate(new Date())).setStoreId("store10001").setMac("0a:00:27:00:00:00")
        .setNetworkType("LAN").setProviderId("2088911212323549") // 设置系统商pid
        .setSysTradeInfoList(sysTradeInfoList) // 系统商同步trade_info信息
        //                .setExceptionInfoList(exceptionInfoList)  // 填写异常信息,如果有的话
        .setExtendInfo(extendInfo) // 填写扩展信息,如果有的话
    ;

    MonitorHeartbeatSynResponse response = monitorService.heartbeatSyn(builder);
    dumpResponse(response);
}
 
源代码8 项目: MMall_JAVA   文件: Main.java
public void test_monitor_pos() {
    // POS厂商使用的交易信息格式,字符串类型
    List<PosTradeInfo> posTradeInfoList = new ArrayList<PosTradeInfo>();
    posTradeInfoList.add(PosTradeInfo.newInstance(HbStatus.S, "1324", 7));
    posTradeInfoList.add(PosTradeInfo.newInstance(HbStatus.X, "1326", 15));
    posTradeInfoList.add(PosTradeInfo.newInstance(HbStatus.S, "1401", 8));
    posTradeInfoList.add(PosTradeInfo.newInstance(HbStatus.F, "1405", 3));

    // 填写异常信息,如果有的话
    List<ExceptionInfo> exceptionInfoList = new ArrayList<ExceptionInfo>();
    exceptionInfoList.add(ExceptionInfo.HE_PRINTER);

    // 填写扩展参数,如果有的话
    Map<String, Object> extendInfo = new HashMap<String, Object>();
    //        extendInfo.put("SHOP_ID", "BJ_ZZ_001");
    //        extendInfo.put("TERMINAL_ID", "1234");

    AlipayHeartbeatSynRequestBuilder builder = new AlipayHeartbeatSynRequestBuilder()
        .setProduct(Product.FP)
        .setType(Type.SOFT_POS)
        .setEquipmentId("soft100001")
        .setEquipmentStatus(EquipStatus.NORMAL)
        .setTime("2015-09-28 11:14:49")
        .setManufacturerPid("2088000000000009")
        // 填写机具商的支付宝pid
        .setStoreId("store200001").setEquipmentPosition("31.2433190000,121.5090750000")
        .setBbsPosition("2869719733-065|2896507033-091").setNetworkStatus("gggbbbgggnnn")
        .setNetworkType("3G").setBattery("98").setWifiMac("0a:00:27:00:00:00")
        .setWifiName("test_wifi_name").setIp("192.168.1.188")
        .setPosTradeInfoList(posTradeInfoList) // POS厂商同步trade_info信息
        //                .setExceptionInfoList(exceptionInfoList) // 填写异常信息,如果有的话
        .setExtendInfo(extendInfo) // 填写扩展信息,如果有的话
    ;

    MonitorHeartbeatSynResponse response = monitorService.heartbeatSyn(builder);
    dumpResponse(response);
}
 
public Class<MonitorHeartbeatSynResponse> getResponseClass() {
	return MonitorHeartbeatSynResponse.class;
}
 
源代码10 项目: alipay-sdk   文件: MonitorHeartbeatSynRequest.java
public Class<MonitorHeartbeatSynResponse> getResponseClass() {
	return MonitorHeartbeatSynResponse.class;
}
 
源代码11 项目: pay   文件: MonitorHeartbeatSynRequest.java
public Class<MonitorHeartbeatSynResponse> getResponseClass() {
	return MonitorHeartbeatSynResponse.class;
}
 
源代码12 项目: MeetingFilm   文件: AlipayMonitorService.java
public MonitorHeartbeatSynResponse heartbeatSyn(AlipayHeartbeatSynRequestBuilder builder); 
源代码评论
动弹
沙发等你来抢
 类所在包
 类方法
 同包方法