BigDecimal rejectPercentValue = new BigDecimal(lessThanValue);
ApiContext apiContext = EbayStoreHelper.getApiContext(productStoreId, locale, delegator);
//GetMysbaySellingCall for get total page
GetMyeBaySellingCall getTotalPage = new GetMyeBaySellingCall(apiContext);
ItemListCustomizationType itemListType = new ItemListCustomizationType();
itemListType.setInclude(Boolean.TRUE);
itemListType.setSort(ItemSortTypeCodeType.ITEM_ID_DESCENDING);
itemListType.setListingType(ListingTypeCodeType.FIXED_PRICE_ITEM);
DetailLevelCodeType[] detailLevels = new DetailLevelCodeType[] {
DetailLevelCodeType.RETURN_ALL,
DetailLevelCodeType.ITEM_RETURN_ATTRIBUTES,
DetailLevelCodeType.ITEM_RETURN_DESCRIPTION
};
getTotalPage.setDetailLevel(detailLevels);
getTotalPage.setActiveList(itemListType);
getTotalPage.getMyeBaySelling();
int totalPage = getTotalPage.getReturnedActiveList().getPaginationResult().getTotalNumberOfPages();
for (int t = 1; t <= totalPage; t++) {
//GetMyebaySellingCall for get item that is sold on store
GetMyeBaySellingCall ebaySelling = new GetMyeBaySellingCall(apiContext);
//Set type of item
ItemListCustomizationType itemList = new ItemListCustomizationType();
itemList.setInclude(Boolean.TRUE);
itemListType.setSort(ItemSortTypeCodeType.ITEM_ID_DESCENDING);
itemListType.setListingType(ListingTypeCodeType.FIXED_PRICE_ITEM);
PaginationType page = new PaginationType();
page.setPageNumber(t);
itemList.setPagination(page);
itemList.setListingType(ListingTypeCodeType.FIXED_PRICE_ITEM);
DetailLevelCodeType[] detailLevel = new DetailLevelCodeType[] {
DetailLevelCodeType.RETURN_ALL,
DetailLevelCodeType.ITEM_RETURN_ATTRIBUTES,
DetailLevelCodeType.ITEM_RETURN_DESCRIPTION,