feat: add compliance_application_id param to phone number buy - #267
Merged
koushiksk-plivo (koushiksk-plivo) merged 1 commit intoJun 12, 2026
Merged
Conversation
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>
revanth-plivo
approved these changes
Jun 12, 2026
koushiksk-plivo (koushiksk-plivo)
merged commit Jun 12, 2026
1d87e66
into
master
8 of 11 checks passed
koushiksk-plivo (koushiksk-plivo)
deleted the
feat/compliance-application-id-buy
branch
June 12, 2026 10:48
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What
Adds an optional trailing
compliance_application_idparameter to the PhoneNumberbuymethods (bothPhoneNumber#buyand the resource-interfacebuy(number, ...)). When provided, it is sent as thecompliance_application_idAPI 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
buyonly forwardedapp_id,verification_info,cnam_lookup, andha_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.rbbuy specs pass, including a new "buy phone number with compliance application id" case.spec/resource_phone_number_compliance_spec.rbthat exist onmasterindependently of this change.🤖 Generated with Claude Code