-
Notifications
You must be signed in to change notification settings - Fork 0
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
PPF-562 Create helper method to activate uitpas integration with organizers #1310
PPF-562 Create helper method to activate uitpas integration with organizers #1310
Conversation
@@ -115,15 +129,25 @@ public function activate(UuidInterface $id): void | |||
$integrationModel->activate(); | |||
} | |||
|
|||
public function activateWithOrganization(UuidInterface $id, UuidInterface $organizationId, ?string $couponCode): void | |||
public function activateWithOrganization(UuidInterface $integrationId, UuidInterface $organizationId, ?string $couponCode, array $organizers=[]): void |
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.
Should this also be typed on the new collection?
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 thought so to at first but if you look at ActivateIntegration you can see that actually it is an array of strings (ids).
I will add a docblock to make this more clear.
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.
But should it be an array of strings? The UdbOrganizers
could be created where this gets called. So in the handle
method of ActivateUitpasIntegration
the construction of UdbOrganizer
could be done.
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.
Moved it to the ActivateUitpasIntegration class
app/Domain/Integrations/Repositories/EloquentUdbOrganizerRepository.php
Outdated
Show resolved
Hide resolved
…pas-integration-with-organizers
Feedback has been processed |
Added
Changed
Ticket: https://jira.uitdatabank.be/browse/PPF-562