Skip to content

Commit

Permalink
Merge pull request #100 from trufla-technology/TRUM-2751-android-item…
Browse files Browse the repository at this point in the history
…s-appear-in-claims-and-crs-screens-even-if-theyre-expired

Get only the non expiry policies, vehicles, properties
  • Loading branch information
marina-waged authored Jun 17, 2020
2 parents 15f777f + a7e98aa commit 88ca2cf
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
import okhttp3.Request;


public class EnumDataFetcher {
public class EnumDataFetcher
{
TruConsumer<ArrayList<Pair<Object, String>>> mListener;
String mSelector;
ArrayList<String> mNames;
Expand Down Expand Up @@ -50,13 +51,13 @@ private Request getFullRequest(String absoluteUrl) {
case "/vehicles":
case "/properties":
if(fullURL.toString().contains("?includes="))
fullURL.append("location.policy&location.policy.policy_expiration_date=gteq::").append(currentDate).append("&location.policy.cycle_business_purpose=!eq::XLN");
fullURL.append("location.policy&location.policy.transaction_expire_date=gteq::").append(currentDate);
else
fullURL.append("?includes=location.policy&location.policy.policy_expiration_date=gteq::").append(currentDate).append("&location.policy.cycle_business_purpose=!eq::XLN");
fullURL.append("?includes=location.policy&location.policy.transaction_expire_date=gteq::").append(currentDate);
break;

case "/policies":
fullURL.append("?policy_expiration_date=gteq::").append(currentDate).append("&cycle_business_purpose=!eq::XLN");
fullURL.append("?transaction_expire_date=gteq::").append(currentDate);
break;
}

Expand Down

0 comments on commit 88ca2cf

Please sign in to comment.