GetSellingManagerSoldListingsCall sellingManagerSoldListings = new GetSellingManagerSoldListingsCall(apiContext);
List<SellingManagerSoldOrderType> items = FastList.newInstance();
SellingManagerSoldOrderType[] sellingManagerSoldOrders = sellingManagerSoldListings.getSellingManagerSoldListings();
if (UtilValidate.isNotEmpty(sellingManagerSoldOrders)) {
for (SellingManagerSoldOrderType solditem : sellingManagerSoldOrders) {
SellingManagerOrderStatusType orderStatus = solditem.getOrderStatus();
if (orderStatus != null) {
SellingManagerPaidStatusCodeType paidStatus = orderStatus.getPaidStatus();
SellingManagerShippedStatusCodeType shippedStatus = orderStatus.getShippedStatus();
//Buyer has paid for this item. && Seller shipped items but feedback has not been received from buyer more than days condition
if (SellingManagerPaidStatusCodeType.PAID.equals(paidStatus) && SellingManagerShippedStatusCodeType.SHIPPED.equals(shippedStatus)) {
Calendar right_now = Calendar.getInstance();
Calendar shippedTime = orderStatus.getShippedTime();
Calendar afterShippedTime = orderStatus.getShippedTime();
afterShippedTime.add(afterShippedTime.DAY_OF_MONTH, afterDays);
Debug.logInfo("Verify date for send reminder feedback eamil by auto service: buyer " + solditem.getBuyerID() + " seller shippedTime " +
"" + formatter.format(shippedTime) + " codition days " + afterDays + " after shippedTime :" + formatter.format(afterShippedTime) + " now date" + formatter.format(right_now), module);
// if now date is after shipped time follow after days condition would be send reminder email to buyer
if (right_now.after(afterShippedTime)) {