Skip to content

feat: add compliance_application_id param to phone number buy - #267

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

feat: add compliance_application_id param to phone number buy#267
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 compliance_application_id parameter to the PhoneNumber buy methods (both PhoneNumber#buy and the resource-interface buy(number, ...)). When provided, it is sent as the compliance_application_id API parameter at purchase time.

Why

Regulated numbers (e.g. India) require an approved regulatory compliance application to be linked at the moment of purchase. Previously buy only forwarded app_id, verification_info, cnam_lookup, and ha_enable, with no way to associate a compliance application during the buy call. This adds that capability.

The new param is a trailing optional argument, so the change is fully backward-compatible — existing callers are unaffected.

Testing

  • spec/resource_phone_numbers_spec.rb buy specs pass, including a new "buy phone number with compliance application id" case.
  • Full suite: 212 examples, 3 failures — all 3 are pre-existing, unrelated failures in spec/resource_phone_number_compliance_spec.rb that exist on master independently of this change.

🤖 Generated with Claude Code

Adds an optional trailing compliance_application_id param to the phone-number
buy methods, sent as 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 arg.

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