Skip to content

feat: add complianceApplicationId param to phone number Buy - #315

Merged
koushiksk-plivo (koushiksk-plivo) merged 1 commit into
masterfrom
feat/compliance-application-id-buy
Jun 12, 2026
Merged

feat: add complianceApplicationId param to phone number Buy#315
koushiksk-plivo (koushiksk-plivo) merged 1 commit into
masterfrom
feat/compliance-application-id-buy

Conversation

@koushiksk-plivo

Copy link
Copy Markdown
Contributor

What

Adds an optional trailing complianceApplicationId parameter to PhoneNumber.Buy and PhoneNumber.BuyAsync. It is serialized to the compliance_application_id wire parameter. Previously Buy only sent app_id, cnam_lookup, and ha_enabled.

Why

Regulated numbers (e.g. India) require an approved regulatory compliance application to be linked at purchase time. This lets callers pass that application id directly when buying the number.

Notes

  • Backward-compatible: the new parameter is a trailing optional param, so existing callers are unaffected.
  • Covers both Buy and BuyAsync.
  • Adds tests in both the NUnit (tests/Plivo.Test) and xUnit (tests_netcore/Plivo.NetCore.Test) suites asserting the compliance_application_id payload.
  • Version bumped to 5.52.2 across version.json, Plivo.csproj, Plivo.nuspec, plus a CHANGELOG entry.
  • Verified on a .NET 10 test harness (PhoneNumber tests pass). The repo's EOL target frameworks plus Nerdbank.GitVersioning's x86_64 libgit2 cannot run locally on this arm64 machine, a known pre-existing environment limitation.

🤖 Generated with Claude Code

Adds an optional trailing complianceApplicationId param to Buy and BuyAsync,
serialized to the compliance_application_id wire param. Lets regulated numbers
(e.g. India) be purchased with an approved regulatory compliance application
linked at purchase time. Backward-compatible trailing optional param.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@koushiksk-plivo
koushiksk-plivo (koushiksk-plivo) merged commit c9b5143 into master Jun 12, 2026
3 of 9 checks passed
@koushiksk-plivo
koushiksk-plivo (koushiksk-plivo) deleted the feat/compliance-application-id-buy branch June 12, 2026 10:55
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.

2 participants