-
Notifications
You must be signed in to change notification settings - Fork 81
30861 API - business account settings #3822
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
Conversation
Signed-off-by: Kial Jinnah <kialj876@gmail.com>
| 'businessIdentifier': self.business.identifier, | ||
| 'email': self.email, | ||
| 'phone': self.phone, | ||
| 'phoneExtension': self.phone_extension, |
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 just kept this flat, but was also thinking of putting 'email', 'phone', 'phoneExtension' inside a 'contact' field?
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 believe this is good, don't need contact field
| @jwt.requires_auth | ||
| def update_business_account_settings(account_id: str, identifier: str): | ||
| """Update the settings information for the business and account combination.""" | ||
| # TODO: decide if this is enough? Do we need to verify they are allowed to update the account? |
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.
Note - I think its okay not to have anything extra since we check that they have edit permissions on the business, but lmk what you think
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.
We need to include this into non-filing permissions, since this is a new permission you could create a separate ticket for this https://github.com/bcgov/lear/blob/main/legal-api/src/legal_api/services/permissions.py#L61. This permission is used in UI as well and i believe its feature flagged and disabled in PROD
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.
created a new ticket for this: bcgov/entity#30992
Signed-off-by: Kial Jinnah <kialj876@gmail.com>
Signed-off-by: Kial Jinnah <kialj876@gmail.com>
Signed-off-by: Kial Jinnah <kialj876@gmail.com>
...business_model_migrations/versions/20251008_102501_015353fe5746_business_account_settings.py
Outdated
Show resolved
Hide resolved
python/common/business-registry-model/src/business_model/models/business_account_settings.py
Outdated
Show resolved
Hide resolved
Signed-off-by: Kial Jinnah <kialj876@gmail.com>
Issue #: /bcgov/entity#30861
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the lear license (Apache 2.0).