Skip to content

InCamp Task#7

Open
oleksiibon wants to merge 9 commits intoalexanderko:masterfrom
oleksiibon:master
Open

InCamp Task#7
oleksiibon wants to merge 9 commits intoalexanderko:masterfrom
oleksiibon:master

Conversation

@oleksiibon
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown
Owner

@alexanderko alexanderko left a comment

Choose a reason for hiding this comment

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

Improve code style

.reduce(0, (a, b) -> a + b);
}

int getCostByOutlet(Outlet outlet) {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Implement generic getSubCost method and pass Predicate<Product> as parameter.


@Override
public boolean checkCondition(Check check) {
if(check.getCostByCategory(category) != 0){
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

configure required amount


@Override
public boolean checkCondition(Check check) {
if(check.getCostByOutlet(outlet) != 0){
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

configure required amount


public Offer(LocalDate expiredDate, Reward rewardType, Condition conditionType) {
this.expiredDate = expiredDate;
this.rewardType = rewardType;
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Remove type form field names

import checkout.*;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import sun.security.x509.CertAttrSet;
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Remove wrong inport

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.

3 participants