Skip to content

Commit cd51ab9

Browse files
authored
Feature/pipeline (#24)
* feat(pipeline): Implement github actions flow and update pom * fix!(pipeline): Remove prerequisites from pom * fix!: Test issues
1 parent cc2f2ea commit cd51ab9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/main/java/mobi/appcent/medusa/store/api/ReturnApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public void setApiClient(MedusaSdkClient medusaSdkClient) {
5151
* @return StoreReturnsRes
5252
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
5353
*/
54-
public CreateReturnRequest createReturn(StorePostReturnsReq body) throws ApiException {
54+
public CreateReturnRequest createReturn() throws ApiException {
5555
return new CreateReturnRequest(medusaSdkClient);
5656
}
5757
}

src/test/java/mobi/appcent/medusa/store/api/ProductVariantApiTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public void getVariantsVariantTest() throws Exception {
6969
String salesChannelId = null;
7070
String regionId = null;
7171
String currencyCode = null;
72-
StoreVariantsRes response = api.getVariantsVariant(variantId, cartId, salesChannelId, regionId, currencyCode);
72+
StoreVariantsRes response = api.getVariant(variantId).execute().getData();
7373

7474
// TODO: test validations
7575
}

src/test/java/mobi/appcent/medusa/store/api/ReturnApiTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public class ReturnApiTest {
3737
@Test
3838
public void postReturnsTest() throws Exception {
3939
StorePostReturnsReq body = null;
40-
StoreReturnsRes response = api.postReturns(body);
40+
StoreReturnsRes response = api.createReturn().execute().getData();
4141

4242
// TODO: test validations
4343
}

0 commit comments

Comments
 (0)