Skip to content

Commit 05bf732

Browse files
authored
Merge pull request #22 from gofynd/fpp/4213-update-lib-version
update lib version
2 parents e138964 + 6d9259b commit 05bf732

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<retrofit.version>2.3.0</retrofit.version>
2424
<okhttp3.version>3.14.7</okhttp3.version>
2525
<fdk-extension.version>0.6.5</fdk-extension.version>
26-
<fdk-client.version>1.4.13</fdk-client.version>
26+
<fdk-client.version>1.5.2</fdk-client.version>
2727
<net.bytebuddy.experimental>true</net.bytebuddy.experimental>
2828
</properties>
2929

src/main/java/com/fynd/example/java/controller/PlatformController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public CatalogPlatformModels.ProductListingResponseV2 getProducts(HttpServletReq
3131

3232
}
3333
@GetMapping(value = "/{application_id}/products", produces = "application/json")
34-
public CatalogPlatformModels.RawProductListingResponse getAppProducts(@PathVariable("application_id") String applicationId, HttpServletRequest request) {
34+
public CatalogPlatformModels.RawProductListingResponseSchema getAppProducts(@PathVariable("application_id") String applicationId, HttpServletRequest request) {
3535
try {
3636
PlatformClient platformClient = (PlatformClient) request.getAttribute("platformClient");
3737
return platformClient.application(applicationId).catalog.getAppProducts(Collections.emptyList(),Collections.emptyList(), Collections.emptyList(), Collections.emptyList(), Collections.emptyList(), 1, 10, "");

src/test/java/com/fynd/example/java/controller/PlatformControllerTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ void setUp() {
5151

5252
@Test
5353
void testGetAppProducts_Success() throws Exception {
54-
CatalogPlatformModels.RawProductListingResponse mockResponse = new CatalogPlatformModels.RawProductListingResponse();
54+
CatalogPlatformModels.RawProductListingResponseSchema mockResponse = new CatalogPlatformModels.RawProductListingResponseSchema();
5555
when(catalogApplicationClient.getAppProducts(anyList(), anyList(), anyList(), anyList(), anyList(), anyInt(), anyInt(), anyString()))
5656
.thenReturn(mockResponse);
57-
CatalogPlatformModels.RawProductListingResponse response = platformController.getAppProducts("application_id", request);
57+
CatalogPlatformModels.RawProductListingResponseSchema response = platformController.getAppProducts("application_id", request);
5858
assertEquals(mockResponse, response);
5959
}
6060

0 commit comments

Comments
 (0)