开发者

eBay Trading API LeaveFeedbackCall

开发者 https://www.devze.com 2023-04-10 11:28 出处:网络
I am开发者_开发知识库 attempting to set seller feedback through the eBay Trading API, LeaveFeedbackCall. I am using the .NET SDK and am having difficulty assigning the feedback details. In the API des

I am开发者_开发知识库 attempting to set seller feedback through the eBay Trading API, LeaveFeedbackCall. I am using the .NET SDK and am having difficulty assigning the feedback details. In the API description this is an array SelerItemRatingDetailsArray that holds ItemRatingDetails with two items, Rating (Int) and RatingDetail (FeedbackRatingDetailCodeType). The line of code I am using that is throwing an error follows.

apicall.SellerItemRatingDetailArrayList.Item("Communication").Rating = iCommunication.

iCommunication is an integer variable holding a value between 0 and 4.

Any assistance would be appreciated.


I think you need this code instead.

ItemRatingDetailsType itemRateing = new ItemRatingDetailsType();
itemRateing.RatingDetail = FeedbackRatingDetailCodeType.Communication;
itemRateing.Rateing = iCommunication;
apicall.SellerItemRatingDetailArrayList.Add( itemRateing);

C# syntax. Basically you can not use the SellerItemRatingDetailArrayList like you were trying to.

Link: DetailedSellerRatings and LeaveFeedbackCallMembers

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号