Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code refactoring #121

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refactored update method in MerchantAccountGateway class - introducin…
…g explaining variable refactoring
sksaifuddin committed Apr 6, 2023
commit 741e351ff48b8af9ff3fa068351e0206b594be07
Original file line number Diff line number Diff line change
@@ -37,7 +37,8 @@ public MerchantAccount find(String id) {
}

public Result<MerchantAccount> update(String id, MerchantAccountRequest request) {
final NodeWrapper response = http.put(configuration.getMerchantPath() + "/merchant_accounts/" + id + "/update_via_api", request);
String updateUrl = "/merchant_accounts/" + id + "/update_via_api";
final NodeWrapper response = http.put(configuration.getMerchantPath() + updateUrl, request);
return new Result<MerchantAccount>(response, MerchantAccount.class);
}