Skip to content

feat: add number_of_employees field to Profile API - #373

Draft
Jai Shankar (jaishankar-plivo) wants to merge 1 commit into
masterfrom
feat/add-number-of-employees-to-profile
Draft

feat: add number_of_employees field to Profile API#373
Jai Shankar (jaishankar-plivo) wants to merge 1 commit into
masterfrom
feat/add-number-of-employees-to-profile

Conversation

@jaishankar-plivo

Copy link
Copy Markdown

Summary

Adds an optional number_of_employees string field to the Profile (10DLC/A2P account profile) create & update APIs. This mirrors a backend change in campaign-service where number_of_employees was added to the Profile create/update request as an optional string.

The implementation follows the recently added doing_business_as (DBA) field exactly — same files, same positions (immediately after DBA), same style.

Changes

  • src/Plivo/Resources/Profile/ProfileInterface.php: added $number_of_employees = '' param to create() (after $doing_business_as), conditional inclusion into the request args, and documented the 7 allowed values in the create()/update() docblocks. No client-side enum validation (server validates).
  • tests/Resources/ProfileTest.php: added number_of_employees to the expected request payload and the create() call args, mirroring DBA.
  • src/Plivo/Version.php: patch bump 4.69.24.69.3.
  • CHANGELOG.md: new 4.69.3 entry dated 2026-06-10.

Allowed values (documented, not enforced)

BETWEEN_1_AND_10, BETWEEN_11_AND_50, BETWEEN_51_AND_200, BETWEEN_201_AND_500, BETWEEN_501_AND_2000, BETWEEN_2001_AND_10000, MORE_THAN_10001

🤖 Generated with Claude Code

Add an optional number_of_employees string field to the Profile
create and update APIs, mirroring the existing doing_business_as
(DBA) field. The server validates the value; the SDK documents the
7 allowed values without enforcing them. Bumps patch version to
4.69.3 and updates the changelog and tests.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

1 participant