占座订单占座成功
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
rq | OccupyOrderConfirmRQ | 必须 | 请求参数 | ||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | TapResult | rs | |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); TrainAgentOccupyorderConfirmSuccRequest req = new TrainAgentOccupyorderConfirmSuccRequest(); TrainAgentOccupyorderConfirmSuccRequest.OccupyOrderConfirmRQ obj1 = new TrainAgentOccupyorderConfirmSuccRequest.OccupyOrderConfirmRQ(); obj1.setTaskId(1635187060363644928L); obj1.setTradeId(123L); obj1.setAccountUsername( "用户名" ); TrainAgentOccupyorderConfirmSuccRequest.OccupyResultDTO obj2 = new TrainAgentOccupyorderConfirmSuccRequest.OccupyResultDTO(); obj2.setPayLimitTime( "20241209115039" ); obj2.setOrderDate( "20241115" ); obj2.setSequenceNo( "EA84243106" ); obj2.setBeginTime( "1731654613506" ); obj2.setLoseTime( "1731654613506" ); obj2.setResignFlag( "1" ); obj2.setTicketTotalnum( "1" ); obj2.setTicketPriceAll( "400" ); List<TrainAgentOccupyorderConfirmSuccRequest.OccupyTicketInfoDTO> list4 = new ArrayList<TrainAgentOccupyorderConfirmSuccRequest.OccupyTicketInfoDTO>(); TrainAgentOccupyorderConfirmSuccRequest.OccupyTicketInfoDTO obj5 = new TrainAgentOccupyorderConfirmSuccRequest.OccupyTicketInfoDTO(); list4.add(obj5); obj5.setArriveTime( "0800" ); obj5.setBatchNo( "1" ); obj5.setCoachName( "02" ); obj5.setCoachNo( "02" ); obj5.setFromStationName( "大连" ); obj5.setFromStationTelecode( "DLT" ); obj5.setIntegralPayFlag( "N" ); obj5.setLimitTime( "20241209114039" ); obj5.setLoseTime( "20241209114039" ); obj5.setPassengerIdNo( "4114***********019" ); obj5.setPassengerIdTypeCode( "1" ); obj5.setPassengerName( "张三" ); obj5.setPayModeCode( "\"\"" ); obj5.setPreferenceRate( "1" ); obj5.setPreferenceWord( "\"\"" ); obj5.setPurposeCode( "00" ); obj5.setSeatName( "07F号" ); obj5.setSeatNo( "007F" ); obj5.setSeatTypeCode( "0" ); obj5.setSequenceNo( "E249303965" ); obj5.setStartTime( "0618" ); obj5.setStationTrainCode( "D7741" ); obj5.setTicketPrice( "5.50" ); obj5.setTicketTypeCode( "1" ); obj5.setToStationName( "大连北" ); obj5.setToStationTelecode( "DFT" ); obj5.setTradeNo( "1232134" ); obj5.setTrainDate( "20241222" ); obj5.setPassengerBornDate( "19990101" ); obj5.setArriveDate( "20241116" ); obj2.setTicketInfos(list4); obj1.setOccupyResult(obj2); TrainAgentOccupyorderConfirmSuccRequest.OccupyQueryPayResultDTO obj6 = new TrainAgentOccupyorderConfirmSuccRequest.OccupyQueryPayResultDTO(); obj6.setMerSignMsg( "1323123" ); obj6.setPayOrderId( "123213" ); obj6.setAmount( "400" ); obj6.setTransType( "01" ); obj6.setTranData( "12312312" ); obj6.setAppId( "0001" ); obj6.setInterfaceVersion( "1.0" ); obj6.setInterfaceName( "WAP_SERVLET" ); obj1.setQueryPayResult(obj6); TrainAgentOccupyorderConfirmSuccRequest.OccupyMonitorInfoDTO obj7 = new TrainAgentOccupyorderConfirmSuccRequest.OccupyMonitorInfoDTO(); List<TrainAgentOccupyorderConfirmSuccRequest.MonitorItem> list9 = new ArrayList<TrainAgentOccupyorderConfirmSuccRequest.MonitorItem>(); TrainAgentOccupyorderConfirmSuccRequest.MonitorItem obj10 = new TrainAgentOccupyorderConfirmSuccRequest.MonitorItem(); list9.add(obj10); obj10.setStepName( "com.cars.otsmobile.queryPassenger" ); obj10.setStepStartTimeMillis(1734681315716L); obj10.setStepCostTime(181L); obj10.setStepSuccess( true ); obj10.setStepResult( "成功" ); obj7.setMonitorList(list9); obj1.setMonitorInfo(obj7); req.setRq(obj1); TrainAgentOccupyorderConfirmSuccResponse rsp = client.execute(req, sessionKey); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 | < train_agent_occupyorder_confirm_succ_response > < result > < success >false</ success > < error_code >-1</ error_code > < error_msg >系统繁忙</ error_msg > </ result > </ train_agent_occupyorder_confirm_succ_response > |
1 2 3 4 5 6 | < error_response > < code >50</ code > < msg >Remote service error</ msg > < sub_code >isv.invalid-parameter</ sub_code > < sub_msg >非法参数</ sub_msg > </ error_response > |
错误码 | 错误描述 | 解决方案 |
---|