Skip to content

Commit

Permalink
Merge pull request #16 from PAYONE-GmbH/refactor/sonarcloud-exclusions
Browse files Browse the repository at this point in the history
refactor/sonarcloud exclusions
  • Loading branch information
lrosenfeldt authored Aug 8, 2024
2 parents 386de7c + 1f6d489 commit d76fc97
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ if (JavaVersion.current().majorVersion != '8') {
property 'sonar.host.url', 'https://sonarcloud.io'
property 'sonar.sources', 'src/main'
property 'sonar.tests', 'src/test'
property 'sonar.coverage.exclusions', '**/models/*'
property 'sonar.coverage.exclusions', '**/models/**'
property 'sonar.exclusions', '**/models/*'
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public OrderResponse createOrder(String merchantId, String commerceCaseId,
Request request = new Request.Builder()
.url(url)
.post(formBody)
.header("Content-Type", formBody.contentType().toString())
.header(CONTENT_TYPE_HEADER_NAME, formBody.contentType().toString())
.build();

return this.makeApiCall(request, OrderResponse.class);
Expand Down Expand Up @@ -106,7 +106,7 @@ public DeliverResponse deliverOrder(String merchantId, String commerceCaseId,
Request request = new Request.Builder()
.url(url)
.post(formBody)
.header("Content-Type", formBody.contentType().toString())
.header(CONTENT_TYPE_HEADER_NAME, formBody.contentType().toString())
.build();

return this.makeApiCall(request, DeliverResponse.class);
Expand Down Expand Up @@ -148,7 +148,7 @@ public ReturnResponse returnOrder(String merchantId, String commerceCaseId,
Request request = new Request.Builder()
.url(url)
.post(formBody)
.header("Content-Type", formBody.contentType().toString())
.header(CONTENT_TYPE_HEADER_NAME, formBody.contentType().toString())
.build();

return this.makeApiCall(request, ReturnResponse.class);
Expand Down

0 comments on commit d76fc97

Please sign in to comment.