public void GetDispute(string token, DateTime from, DateTime to, DisputeFilterTypeCodeType disputeFilterTypeCodeType, DisputeSortTypeCodeType disputeSortTypeCodeType) { var apiContext = CreateApiContext(apiServerUrl, ruName, appId, devId, certId, token); var apiCall = new GetUserDisputesCall(apiContext); var pagination = new PaginationType(); var disputes = apiCall.GetUserDisputes(disputeFilterTypeCodeType, disputeSortTypeCodeType, from, to, pagination); foreach (DisputeType dispute in disputes) { dispute / } }
/// <summary> /// Requests a list of disputes the requester is involved in as buyer or seller. /// eBay Money Back Guarantee Item Not Received and Significantly Not As Described cases /// are not returned with this call. To retrieve eBay Money Back Guarantee cases, use the Resolution Case Management API <b>getUserCases</b> call. /// </summary> /// /// <param name="DisputeFilterType"> /// An inclusive filter that isolates the returned disputes to a certain /// type such as Item Not Received or Unpaid Item disputes. eBay Money Back Guarantee cases are not retrieved with this call, even if the /// <b>ItemNotReceivedDisputes</b> filter is included in the request. /// </param> /// /// <param name="DisputeSortType"> /// The value and sequence to use to sort the returned disputes. /// </param> /// /// <param name="ModTimeFrom"> /// A filter that retrieves disputes whose <b>DisputeModifiedTime</b> is later /// than or equal to this value. Specify the time value in GMT. /// See the eBay Features Guide for information about specifying time values. /// For more precise control of the date range filter, it is a good practice to also /// specify <b>ModTimeTo</b>. Otherwise, the end of the date range is the present time. /// Filtering by date range is optional. You can use date range filters in combination /// with other filters like <b>DisputeFilterType</b> to control the amount of data returned. /// </param> /// /// <param name="ModTimeTo"> /// A filter that retrieves disputes whose <b>DisputeModifiedTime</b> is earlier /// than or equal to this value. Specify the time value in GMT. /// See the eBay Features Guide for information about specifying time values. /// For more precise control of the date range filter, it is a good practice to also /// specify <b>ModTimeFrom</b>. Otherwise, all available disputes modified prior to the <b>ModTimeTo</b> value are returned. /// Filtering by date range is optional. You can use date range filters in combination /// with other filters like <b>DisputeFilterType</b> to control the amount of data returned. /// </param> /// /// <param name="Pagination"> /// The virtual page number of the result set to display. A result set has a number of disputes /// divided into virtual pages, with 200 disputes per page. The response can only display one page. /// The first page in the result set is number 1. Required. If not specified, a warning is returned /// and <b>Pagination.PageNumber</b> is set to 1 by default. /// </param> /// public DisputeTypeCollection GetUserDisputes(DisputeFilterTypeCodeType DisputeFilterType, DisputeSortTypeCodeType DisputeSortType, DateTime ModTimeFrom, DateTime ModTimeTo, PaginationType Pagination) { this.DisputeFilterType = DisputeFilterType; this.DisputeSortType = DisputeSortType; this.ModTimeFrom = ModTimeFrom; this.ModTimeTo = ModTimeTo; this.Pagination = Pagination; Execute(); return(ApiResponse.DisputeArray); }
/// <summary> /// Requests a list of disputes the requester is involved in as buyer or seller. /// The list includes both Unpaid Item and Item Not Received disputes. /// </summary> /// /// <param name="DisputeFilterType"> /// A filter that specifies a subset of disputes to return. The return list /// includes both Item Not Received and Unpaid Item disputes. /// </param> /// /// <param name="DisputeSortType"> /// The value and sequence to use to sort the returned disputes. /// </param> /// /// <param name="ModTimeFrom"> /// A filter that retrieves disputes whose DisputeModifiedTime is later /// than or equal to this value. Specify the time value in GMT. /// See the eBay Web Services documentation for information about specifying time values. /// For more precise control of the date range filter, it is a good practice to also /// specify ModTimeTo. Otherwise, the end of the date range is the present time. /// Filtering by date range is optional. You can use date range filters in combination /// with other filters like DisputeFilterType to control the amount of data returned. /// </param> /// /// <param name="ModTimeTo"> /// A filter that retrieves disputes whose DisputeModifiedTime is earlier /// than or equal to this value. Specify the time value in GMT. /// See the eBay Web Services documentation for information about specifying time values. /// For more precise control of the date range filter, it is a good practice to also /// specify ModTimeFrom. Otherwise, all available disputes modified prior to the ModTimeTo value are returned. /// Filtering by date range is optional. You can use date range filters in combination /// with other filters like DisputeFilterType to control the amount of data returned. /// </param> /// /// <param name="Pagination"> /// The virtual page number of the result set to display. A result set has a number of disputes /// divided into virtual pages, with 200 disputes per page. The response can only display one page. /// The first page in the result set is number 1. Required. If not specified, a warning is returned /// and Pagination.PageNumber is set to 1 by default. /// </param> /// public DisputeTypeCollection GetUserDisputes(DisputeFilterTypeCodeType DisputeFilterType, DisputeSortTypeCodeType DisputeSortType, DateTime ModTimeFrom, DateTime ModTimeTo, PaginationType Pagination) { this.DisputeFilterType = DisputeFilterType; this.DisputeSortType = DisputeSortType; this.ModTimeFrom = ModTimeFrom; this.ModTimeTo = ModTimeTo; this.Pagination = Pagination; Execute(); return ApiResponse.DisputeArray; }