com.alipay.demo.trade.model.builder.AlipayHeartbeatSynRequestBuilder Java Examples

The following examples show how to use com.alipay.demo.trade.model.builder.AlipayHeartbeatSynRequestBuilder. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DemoHbRunner.java    From mmall20180107 with Apache License 2.0 6 votes vote down vote up
@Override
public AlipayHeartbeatSynRequestBuilder getBuilder() {
    // 系统商使用的交易信息格式,json字符串类型,从交易队列中获取
    List<SysTradeInfo> sysTradeInfoList = HbQueue.poll();

    // 异常信息的采集,系统商自行完成
    List<ExceptionInfo> exceptionInfoList = new ArrayList<ExceptionInfo>();
    //        exceptionInfoList.add(ExceptionInfo.HE_SCANER);
    //        exceptionInfoList.add(ExceptionInfo.HE_PRINTER);
    //        exceptionInfoList.add(ExceptionInfo.HE_OTHER);

    AlipayHeartbeatSynRequestBuilder builder = new AlipayHeartbeatSynRequestBuilder()
            .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) // 填写异常信息,如果有的话
            ;
    return builder;
}
 
Example #2
Source File: DemoHbRunner.java    From mmall-kay-Java with Apache License 2.0 6 votes vote down vote up
@Override
public AlipayHeartbeatSynRequestBuilder getBuilder() {
    // 系统商使用的交易信息格式,json字符串类型,从交易队列中获取
    List<SysTradeInfo> sysTradeInfoList = HbQueue.poll();

    // 异常信息的采集,系统商自行完成
    List<ExceptionInfo> exceptionInfoList = new ArrayList<ExceptionInfo>();
    //        exceptionInfoList.add(ExceptionInfo.HE_SCANER);
    //        exceptionInfoList.add(ExceptionInfo.HE_PRINTER);
    //        exceptionInfoList.add(ExceptionInfo.HE_OTHER);

    AlipayHeartbeatSynRequestBuilder builder = new AlipayHeartbeatSynRequestBuilder()
        .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) // 填写异常信息,如果有的话
    ;
    return builder;
}
 
Example #3
Source File: DemoHbRunner.java    From MMall_JAVA with GNU General Public License v3.0 6 votes vote down vote up
@Override
public AlipayHeartbeatSynRequestBuilder getBuilder() {
    // 系统商使用的交易信息格式,json字符串类型,从交易队列中获取
    List<SysTradeInfo> sysTradeInfoList = HbQueue.poll();

    // 异常信息的采集,系统商自行完成
    List<ExceptionInfo> exceptionInfoList = new ArrayList<ExceptionInfo>();
    //        exceptionInfoList.add(ExceptionInfo.HE_SCANER);
    //        exceptionInfoList.add(ExceptionInfo.HE_PRINTER);
    //        exceptionInfoList.add(ExceptionInfo.HE_OTHER);

    AlipayHeartbeatSynRequestBuilder builder = new AlipayHeartbeatSynRequestBuilder()
        .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) // 填写异常信息,如果有的话
    ;
    return builder;
}