TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripAslanIeAgentRefundMultiplerefundsRequest req = new AlitripAslanIeAgentRefundMultiplerefundsRequest();
req.setAgentId(4632L);
List<AlitripAslanIeAgentRefundMultiplerefundsRequest.PassengerMultipleRefundsParam> list2 = new ArrayList<AlitripAslanIeAgentRefundMultiplerefundsRequest.PassengerMultipleRefundsParam>();
AlitripAslanIeAgentRefundMultiplerefundsRequest.PassengerMultipleRefundsParam obj3 = new AlitripAslanIeAgentRefundMultiplerefundsRequest.PassengerMultipleRefundsParam();
list2.add(obj3);
obj3.setPassengerName("xiaoming");
obj3.setRefundMoney(1000L);
req.setPassengerMultipleRefundsParams(list2);
req.setRefundOrderId(100001L);
AlitripAslanIeAgentRefundMultiplerefundsResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlitripAslanIeAgentRefundMultiplerefundsRequest req = new AlitripAslanIeAgentRefundMultiplerefundsRequest();
req.AgentId = 4632L;
List<AlitripAslanIeAgentRefundMultiplerefundsRequest.PassengerMultipleRefundsParamDomain> list2 = new List<AlitripAslanIeAgentRefundMultiplerefundsRequest.PassengerMultipleRefundsParamDomain>();
AlitripAslanIeAgentRefundMultiplerefundsRequest.PassengerMultipleRefundsParamDomain obj3 = new AlitripAslanIeAgentRefundMultiplerefundsRequest.PassengerMultipleRefundsParamDomain();
list2.Add(obj3);
obj3.PassengerName = "xiaoming";
obj3.RefundMoney = 1000L;
req.PassengerMultipleRefundsParams_ = list2;
req.RefundOrderId = 100001L;
AlitripAslanIeAgentRefundMultiplerefundsResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlitripAslanIeAgentRefundMultiplerefundsRequest;
$req->setAgentId("4632");
$passenger_multiple_refunds_params = new PassengerMultipleRefundsParam;
$passenger_multiple_refunds_params->passenger_name="xiaoming";
$passenger_multiple_refunds_params->refund_money="1000";
$req->setPassengerMultipleRefundsParams(json_encode($passenger_multiple_refunds_params));
$req->setRefundOrderId("100001");
$resp = $c->execute($req, $sessionKey);
curl -X POST 'http://gw.api.taobao.com/router/rest' \
-H 'Content-Type:application/x-www-form-urlencoded;charset=utf-8' \
-d 'app_key=12129701' \
-d 'format=json' \
-d 'method=alitrip.aslan.ie.agent.refund.multiplerefunds' \
-d 'partner_id=apidoc' \
-d 'session=2f2e44cf-18a7-40b4-a9af-547aa916962a' \
-d 'sign=474B43BE106B65DF3779745B4EEEAE88' \
-d 'sign_method=hmac' \
-d 'timestamp=2024-11-21+22%3A28%3A58' \
-d 'v=2.0' \
-d 'agent_id=4632' \
-d 'passenger_multiple_refunds_params=null' \
-d 'refund_order_id=100001'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlitripAslanIeAgentRefundMultiplerefundsRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.agent_id=4632
req.passenger_multiple_refunds_params=""
req.refund_order_id=100001
try:
resp= req.getResponse(sessionkey)
print(resp)
except Exception,e:
print(e)
pTopRequest pRequest = alloc_top_request();
pTopResponse pResponse = NULL;
pTaobaoClient pClient = alloc_taobao_client(url, appkey, appsecret);
set_api_name(pRequest,"alitrip.aslan.ie.agent.refund.multiplerefunds");
add_param(pRequest,"agent_id","4632");
add_param(pRequest,"passenger_multiple_refunds_params","数据结构JSON示例");
add_param(pRequest,"refund_order_id","100001");
pResponse = top_execute(pClient,pRequest,sessionKey);
printf("ret code:%d\n",pResponse->code);
if(pResponse->code == 0){
pTopResponseIterator ite = init_response_iterator(pResponse);
pResultItem pResultItem = alloc_result_item();
while(parseNext(ite, pResultItem) == 0){
printf("%s:%s\n",pResultItem->key,pResultItem->value);
}
destroy_response_iterator(ite);
destroy_result_item(pResultItem);
}
destroy_top_request(pRequest);
destroy_top_response(pResponse);
destroy_taobao_client(pClient);
TopClient = require('./topClient').TopClient;
var client = new TopClient({
'appkey': 'appkey',
'appsecret': 'secret',
'REST_URL': 'http://gw.api.taobao.com/router/rest'
});
client.execute('alitrip.aslan.ie.agent.refund.multiplerefunds', {
'agent_id':'4632',
'passenger_multiple_refunds_params':'数据结构JSON示例',
'refund_order_id':'100001'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})