Skip to content

Commit

Permalink
Add promotion admin api deleteTrackingRecords (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruhan1 authored Jan 11, 2024
1 parent eb32693 commit 267df16
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class IndyPromoteAdminClientModule
extends IndyClientModule
{

public static final String PROMOTE_ADMIN_BASEPATH = "admin/promotion";
public static final String PROMOTE_ADMIN_BASEPATH = "promotion/admin";

public static final String VALIDATION_BASEPATH = PROMOTE_ADMIN_BASEPATH + "/validation";

Expand All @@ -56,6 +56,7 @@ public class IndyPromoteAdminClientModule
public static final String VALIDATION_RULESET_GET_BY_STOREKEY_PATH = VALIDATION_RULESET_BASEPATH + "/storekey";

public static final String VALIDATION_RULESET_GET_BY_NAME_PATH = VALIDATION_RULESET_BASEPATH + "/named";
private static final String TRACKING = "/tracking";

public boolean reloadRules()
throws IndyClientException
Expand Down Expand Up @@ -109,4 +110,11 @@ public ValidationRuleSet getRuleSetByStoreKey( final StoreKey key )
{
return http.get( buildUrl( VALIDATION_RULESET_GET_BY_STOREKEY_PATH, key.toString() ), ValidationRuleSet.class );
}

public void deleteTrackingRecords( final String trackingId )
throws IndyClientException
{
http.delete( buildUrl(TRACKING, trackingId ) );
}

}

0 comments on commit 267df16

Please sign in to comment.