-
Notifications
You must be signed in to change notification settings - Fork 16
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
fix(bpdm-gate): output stage to only provide states based on business partner type #1097
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got some doubts we should clarify
@@ -65,7 +65,7 @@ class BusinessPartnerMappings { | |||
} } | |||
.map(::toIdentifierDto) | |||
}?: emptyList(), | |||
states = entity.states.map(::toStateDto), | |||
states = toStateDtos(entity.states, BusinessPartnerType.GENERIC), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm just looking at the identifiers behaviour. Shouldn't the states not better mirror the behaviour of the identifiers and take the states based on the address type?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In my opinion, yes we can do that and it will be right approach as well.
7e809f6
to
2422faf
Compare
…egorized states fix(bpdm-gate): output stage to only provide generic states for uncategorized states fix(bpdm-gate): output stage to only provide states based on business partner type
08ae919
to
9a1b556
Compare
I have adapted changes as we discussed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
Description
In this pull request, we have fixed logic for gate output stage to retrieve states based on business partner type.
Pre-review checks
Please ensure to do as many of the following checks as possible, before asking for committer review: