Skip to content

Commit

Permalink
fix: linter
Browse files Browse the repository at this point in the history
  • Loading branch information
shauny-xendit committed Dec 8, 2022
1 parent 64ec5e9 commit 3ce4d24
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public QRCode createQRCode(
params.put("currency", currency);
params.put("amount", amount);

//Use new API version
// Use new API version
Map<String, String> headers = new HashMap<>();
headers.put("api-version", "2022-07-31");
String url = String.format("%s%s", opt.getXenditURL(), "/qr_codes");
Expand All @@ -42,7 +42,7 @@ public QRCode createQRCode(Map<String, Object> params) throws XenditException {
public QRCode createQRCode(Map<String, String> headers, Map<String, Object> params)
throws XenditException {
String url = String.format("%s%s", opt.getXenditURL(), "/qr_codes");
//Use new API version
// Use new API version
headers.put("api-version", "2022-07-31");
return this.requestClient.request(
RequestResource.Method.POST, url, headers, params, opt.getApiKey(), QRCode.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,12 @@ public void createQRCode_Success_WithHeaderProvided() throws XenditException {


when(this.requestClient.request(
RequestResource.Method.POST, URL, RequestHeaders, PARAMS, opt.getApiKey(), QRCode.class))
RequestResource.Method.POST,
URL,
RequestHeaders,
PARAMS,
opt.getApiKey(),
QRCode.class))
.thenReturn(VALID_PAYMENT);
when(qrCodeClient.createQRCode(HEADERS, PARAMS)).thenReturn(VALID_PAYMENT);

Expand Down

0 comments on commit 3ce4d24

Please sign in to comment.