/// <summary> /// Enables a seller to send up to 10 messages to bidders, or to users who have /// made offers via Best Offer, regarding an active item listing. /// </summary> /// /// <param name="AddMemberMessagesAAQToBidderRequestContainerList"> /// Allows a seller to send up to 10 messages to /// bidders and users who have made offers (via Best /// Offer) during an active listing. /// </param> /// public AddMemberMessagesAAQToBidderResponseContainerTypeCollection AddMemberMessagesAAQToBidder(AddMemberMessagesAAQToBidderRequestContainerTypeCollection AddMemberMessagesAAQToBidderRequestContainerList) { this.AddMemberMessagesAAQToBidderRequestContainerList = AddMemberMessagesAAQToBidderRequestContainerList; Execute(); return ApiResponse.AddMemberMessagesAAQToBidderResponseContainer; }
public void AddMemberMessagesAAQToBidder() { AddMemberMessagesAAQToBidderCall api = new AddMemberMessagesAAQToBidderCall(apiContext); AddMemberMessagesAAQToBidderRequestContainerTypeCollection msgs = new AddMemberMessagesAAQToBidderRequestContainerTypeCollection(); api.AddMemberMessagesAAQToBidderRequestContainerList = msgs; AddMemberMessagesAAQToBidderRequestContainerType msg = new AddMemberMessagesAAQToBidderRequestContainerType(); msgs.Add(msg); msg.CorrelationID = "TestCorrelationID"; msg.ItemID = "1111111111"; MemberMessageType memberMsg = new MemberMessageType(); msg.MemberMessage = memberMsg; memberMsg.Subject = "SDK Sanity Test ASQ"; memberMsg.Body = "SDK sanity test body"; memberMsg.DisplayToPublic = false; memberMsg.DisplayToPublicSpecified = true; memberMsg.EmailCopyToSender = false; memberMsg.EmailCopyToSenderSpecified = true; memberMsg.HideSendersEmailAddress = true; memberMsg.HideSendersEmailAddressSpecified = true; memberMsg.MessageType = MessageTypeCodeType.ContactEbayMember; memberMsg.QuestionType = QuestionTypeCodeType.General; memberMsg.RecipientID = new StringCollection(); memberMsg.RecipientID.Add(TestData.ApiUserID); // Make API call. ApiException gotException = null; // Negative test. try { api.Execute(); } catch (ApiException ex) { gotException = ex; } Assert.IsNotNull(gotException); }
public void AddMemberMessagesAAQToBidder() { AddMemberMessagesAAQToBidderCall api = new AddMemberMessagesAAQToBidderCall(apiContext); AddMemberMessagesAAQToBidderRequestContainerTypeCollection msgs = new AddMemberMessagesAAQToBidderRequestContainerTypeCollection(); api.AddMemberMessagesAAQToBidderRequestContainerList = msgs; AddMemberMessagesAAQToBidderRequestContainerType msg = new AddMemberMessagesAAQToBidderRequestContainerType(); msgs.Add(msg); msg.CorrelationID = "TestCorrelationID"; msg.ItemID = "1111111111"; MemberMessageType memberMsg = new MemberMessageType(); msg.MemberMessage = memberMsg; memberMsg.Subject = "SDK Sanity Test ASQ"; memberMsg.Body = "SDK sanity test body"; memberMsg.DisplayToPublic = false; memberMsg.DisplayToPublicSpecified = true; memberMsg.EmailCopyToSender = false; memberMsg.EmailCopyToSenderSpecified = true; memberMsg.HideSendersEmailAddress = true; memberMsg.HideSendersEmailAddressSpecified = true; memberMsg.MessageType = MessageTypeCodeType.ContactEbayMember; memberMsg.QuestionType = QuestionTypeCodeType.General; memberMsg.RecipientID = new StringCollection(); memberMsg.RecipientID.Add(TestData.ApiUserID); // Make API call. ApiException gotException = null; // Negative test. try { api.Execute(); } catch (ApiException ex) { gotException = ex; } Assert.IsNotNull(gotException); }
/// <summary> /// The base request of the <b>AddMemberMessagesAAQToBidder</b> call, which allows a seller to send up to 10 messages to bidders/potential buyers regarding an active listing. These potential buyers may include those who have made a Best Offer on a listing. /// </summary> /// /// <param name="AddMemberMessagesAAQToBidderRequestContainerList"> /// An <b>AddMemberMessagesAAQToBidderRequestContainer</b> container is required for each message being sent to unique bidders/potential buyers. A seller can send up to 10 messages to unique bidders/potential buyers in one <b>AddMemberMessagesAAQToBidder</b> call. /// </param> /// public AddMemberMessagesAAQToBidderResponseContainerTypeCollection AddMemberMessagesAAQToBidder(AddMemberMessagesAAQToBidderRequestContainerTypeCollection AddMemberMessagesAAQToBidderRequestContainerList) { this.AddMemberMessagesAAQToBidderRequestContainerList = AddMemberMessagesAAQToBidderRequestContainerList; Execute(); return(ApiResponse.AddMemberMessagesAAQToBidderResponseContainer); }