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

Feature/ad 156 #364

Merged
merged 4 commits into from
Mar 28, 2024
Merged

Feature/ad 156 #364

merged 4 commits into from
Mar 28, 2024

Conversation

kpieloch
Copy link
Collaborator

Description

Tested scenarios

Fixed issue:

@kpieloch kpieloch requested a review from a team as a code owner March 18, 2024 09:41
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should consider null parameter handling?

public class DefaultSubscriptionAdyenCheckoutApiService extends DefaultAdyenCheckoutApiService {

protected static final Logger LOG = LogManager.getLogger(DefaultSubscriptionAdyenCheckoutApiService.class);
private CartFacade cartFacade;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove unused fields

final PaymentsRequest paymentsRequest = new PaymentsRequest();

final PaymentRequest paymentsRequest = new PaymentRequest();
//Blik
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it necessary comment?

public RecurringDetailsRequest createListRecurringDetailsRequest(final String merchantAccount, final String customerId) {
return new RecurringDetailsRequest().merchantAccount(merchantAccount).shopperReference(customerId).selectOneClickContract();
return new RecurringDetailsRequest().merchantAccount(merchantAccount).shopperReference(customerId);//.setRecurring(new Recurring());//.selectOneClickContract();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

commented out code

@@ -476,7 +392,7 @@ public TerminalAPIRequest createTerminalAPIRequest(final CartData cartData, Cust
saleToAcquirerData.setShopperReference(shopperReference);
saleToAcquirerData.setRecurringContract(recurringContract.getContract().toString());
}
updateApplicationInfoEcom(saleToAcquirerData.getApplicationInfo());
//updateApplicationInfoEcom(saleToAcquirerData.getApplicationInfo());
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

commented out code

address.setStreet("NA");

// set the actual values if they are available
if (addressData.getTown() != null && !addressData.getTown().isEmpty()) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wouldn't it be better to use StringUtils.isNotEmpty()?

@@ -842,21 +691,19 @@ public void setOpenInvoiceData(PaymentsRequest paymentsRequest, CartData cartDat
invoiceLines.add(invoiceLine);
}

paymentsRequest.setLineItems(invoiceLines);
// paymentsRequest.setLineItems(invoiceLines);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

commented out code

@kpieloch kpieloch merged commit 072078e into develop Mar 28, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants