diff --git a/src/main/java/com/bynder/sdk/query/UsageQuery.java b/src/main/java/com/bynder/sdk/query/UsageQuery.java index 8a77a92..dddb399 100644 --- a/src/main/java/com/bynder/sdk/query/UsageQuery.java +++ b/src/main/java/com/bynder/sdk/query/UsageQuery.java @@ -19,6 +19,12 @@ public class UsageQuery { @ApiField(name = "asset_id") private String assetId; + /** + * Uri of the asset + */ + @ApiField(name = "uri") + private String uri; + public String getAssetId() { return assetId; } @@ -27,4 +33,13 @@ public UsageQuery setAssetId(final String assetId) { this.assetId = assetId; return this; } + + public String getUri() { + return uri; + } + + public UsageQuery setUri(final String uri) { + this.uri = uri; + return this; + } } diff --git a/src/test/java/com/bynder/sdk/query/UsageQueryTest.java b/src/test/java/com/bynder/sdk/query/UsageQueryTest.java index e08efe4..6806b66 100644 --- a/src/test/java/com/bynder/sdk/query/UsageQueryTest.java +++ b/src/test/java/com/bynder/sdk/query/UsageQueryTest.java @@ -22,6 +22,7 @@ public class UsageQueryTest { public static final String EXPECTED_ASSET_ID = "assetId"; + public static final String EXPECTED_URI = "uri"; private UsageQuery usageQuery; @@ -33,6 +34,7 @@ public void setUp() { @Test public void initializeEmptyUsageQuery() { assertNull(usageQuery.getAssetId()); + assertNull(usageQuery.getUri()); } @Test @@ -40,4 +42,10 @@ public void setAssetIdForUsageQuery() { usageQuery.setAssetId(EXPECTED_ASSET_ID); assertEquals(EXPECTED_ASSET_ID, usageQuery.getAssetId()); } + + @Test + public void setUriForUsageQuery() { + usageQuery.setUri(EXPECTED_URI); + assertEquals(EXPECTED_URI, usageQuery.getUri()); + } }