Add integrator and child account support #3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
1️⃣ Is this something that is wanted/needed? Did you create an issue / discussion about it first?
Yes, this feature was directly requested by the user to add support for PrintNode Integrator accounts and child account management.
2️⃣ Does it contain multiple, unrelated changes? Please separate the PRs out.
No, all changes are focused on implementing PrintNode Integrator account and child account management.
3️⃣ Does it include tests, if possible? (Not a deal-breaker, just a nice-to-have)
Yes, comprehensive feature tests for the
AccountServiceand unit tests for theAccountresource have been added, along with test fixtures.4️⃣ Please include a thorough description of the improvement and reasons why it's useful.
This PR introduces comprehensive support for PrintNode Integrator accounts, allowing programmatic management of child accounts.
Key improvements:
AccountResource: Represents PrintNode account data, including integrator-specific properties likecanCreateSubAccounts,childAccounts,creatorRef,Tags, andApiKeys.AccountService: Provides a full suite of methods for:PrintNodeClientandServiceFactory.docs/printnode/account-management.md) and an example usage file (examples/account-management.php) are included.Why it's useful:
This feature is crucial for businesses and platforms operating as PrintNode integrators. It enables the automation of child account provisioning, lifecycle management (suspension, activation), and organization through tagging, directly within the application. This significantly streamlines operations for managing multiple customer accounts.
5️⃣ Thanks for contributing! 🙌