Skip to content

Commit

Permalink
add-availabilities.issue-4041
Browse files Browse the repository at this point in the history
* remove prefix
  • Loading branch information
m-timmermann committed Mar 18, 2024
1 parent 6bd56f3 commit d5adc5d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/com/meplato/store2/availabilities/Service.java
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ public DeleteResponse execute() throws ServiceException {
headers.put("Authorization", authorization);
}

String uriTemplate = service.getBaseURL() + "/api/v2/products/{spn}/availabilities{?region,zipCode}";
String uriTemplate = service.getBaseURL() + "/products/{spn}/availabilities{?region,zipCode}";
Response response = service.getClient().execute("DELETE", uriTemplate, params, headers, null);
if (response != null && response.getStatusCode() >= 200 && response.getStatusCode() < 300) {
return response.getBodyJSON(DeleteResponse.class);
Expand Down Expand Up @@ -317,7 +317,7 @@ public GetResponse execute() throws ServiceException {
headers.put("Authorization", authorization);
}

String uriTemplate = service.getBaseURL() + "/api/v2/products/{spn}/availabilities{?region,zipCode}";
String uriTemplate = service.getBaseURL() + "/products/{spn}/availabilities{?region,zipCode}";
Response response = service.getClient().execute("GET", uriTemplate, params, headers, null);
if (response != null && response.getStatusCode() >= 200 && response.getStatusCode() < 300) {
return response.getBodyJSON(GetResponse.class);
Expand Down Expand Up @@ -379,7 +379,7 @@ public UpsertResponse execute() throws ServiceException {
headers.put("Authorization", authorization);
}

String uriTemplate = service.getBaseURL() + "/api/v2/products/{spn}/availabilities";
String uriTemplate = service.getBaseURL() + "/products/{spn}/availabilities";
Response response = service.getClient().execute("POST", uriTemplate, params, headers, this.availability);
if (response != null && response.getStatusCode() >= 200 && response.getStatusCode() < 300) {
return response.getBodyJSON(UpsertResponse.class);
Expand Down

0 comments on commit d5adc5d

Please sign in to comment.