Showing 27 of 27 total issues
Method buildUrl
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public String buildUrl(String path, List<Pair> queryParams, List<Pair> collectionQueryParams) {
final StringBuilder url = new StringBuilder();
url.append(basePath).append(path);
if (queryParams != null && !queryParams.isEmpty()) {
Method appInvokeFlow
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static void appInvokeFlow(final PaymentApi paymentApi, final WalletApi walletApiInstance,
final String userAuthorizationId) {
int amount =1;
QRCodeDetails qrCodeDetails = createQRCode(paymentApi, amount);
Method preAuthCaptureFlow
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static void preAuthCaptureFlow(WalletApi walletApiInstance, PaymentApi paymentApi, String userAuthorizationId){
String merchantPaymentId = UUID.randomUUID().toString();
System.out.println("Checking wallet balance...");
int amount =1;
Method checkWalletBalanceCall
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private Call checkWalletBalanceCall(String userAuthorizationId, Integer amount, String currency,
ProductType productType) throws ApiException {
String localVarPath = "/v2/wallet/check_balance";
Method prepareDownloadFile
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public File prepareDownloadFile(Response response) throws IOException {
String filename = null;
String contentDisposition = response.header("Content-Disposition");
if (contentDisposition != null && !"".equals(contentDisposition)) {
// Get filename from the Content-Disposition header.
Avoid too many return
statements within this method. Open
Open
return (T) respBody;
Avoid too many return
statements within this method. Open
Open
return json.deserialize(respBody, returnType);