Skip to content

Conversation

@gogl92
Copy link

@gogl92 gogl92 commented Sep 30, 2025

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 AccountService and unit tests for the Account resource 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:

  • New Account Resource: Represents PrintNode account data, including integrator-specific properties like canCreateSubAccounts, childAccounts, creatorRef, Tags, and ApiKeys.
  • New AccountService: Provides a full suite of methods for:
    • Creating, retrieving, updating, and deleting child accounts.
    • Listing all child accounts and downloading detailed data.
    • Suspending and activating accounts.
    • Adding tags and generating API keys.
  • Integration: Seamlessly integrated into the PrintNodeClient and ServiceFactory.
  • Documentation & Examples: Detailed documentation (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! 🙌


Open in Cursor Open in Web

This commit introduces the AccountService for managing PrintNode child accounts. It includes functionality for creating, retrieving, updating, deleting, suspending, activating, adding tags, and generating API keys for accounts. Documentation and examples have also been added.

Co-authored-by: luisarmando1234 <[email protected]>
@cursor
Copy link

cursor bot commented Sep 30, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

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.

3 participants