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/#1016 apply mapstruct for create checkout api #1018

Merged

Conversation

hnd14
Copy link
Contributor

@hnd14 hnd14 commented Sep 11, 2024

Copy link

github-actions bot commented Sep 11, 2024

Order Coverage Report

Overall Project 50.8% -0.19%
Files changed 85.71% 🍏

File Coverage
CheckoutItemVm.java 100% 🍏
CheckoutVm.java 100% 🍏
CheckoutPostVm.java 100% 🍏
CheckoutService.java 30.09% -4.42% 🍏

@hnd14 hnd14 force-pushed the feature/#1016-apply-mapstruct-for-create-checkout-api branch 2 times, most recently from 99558b5 to bf71d44 Compare September 11, 2024 10:11
@hnd14
Copy link
Contributor Author

hnd14 commented Sep 11, 2024

API Call test
image
API Response
image

@hnd14 hnd14 force-pushed the feature/#1016-apply-mapstruct-for-create-checkout-api branch 2 times, most recently from c98c1b2 to 94d895d Compare September 12, 2024 09:01
@hnd14 hnd14 marked this pull request as ready for review September 13, 2024 06:04
Checkout toModel(CheckoutPostVm checkoutPostVm);

@Mapping(target = "checkoutId", source = "checkoutId.id")
CheckoutItemVm toVm(CheckoutItem checkoutItem);
Copy link
Contributor

Choose a reason for hiding this comment

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

Please remove fromModel method in CheckoutItemVm class as it is not used anywhere.

@hnd14 hnd14 force-pushed the feature/#1016-apply-mapstruct-for-create-checkout-api branch from 94d895d to fcb6400 Compare September 13, 2024 06:38
Copy link

sonarcloud bot commented Sep 13, 2024

@khanhtrand khanhtrand merged commit e874a5c into main Sep 13, 2024
8 checks passed
@khanhtrand khanhtrand deleted the feature/#1016-apply-mapstruct-for-create-checkout-api branch September 13, 2024 06:48
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.

[Order/Checkout] Update Create Checkout feature to use MapStruct
4 participants