lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb in twilio-ruby-7.2.3 vs lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb in twilio-ruby-7.2.4
- old
+ new
@@ -39,28 +39,31 @@
# @param [String] status_callback The URL we call to inform your application of status changes.
# @param [String] regulation_sid The unique string of a regulation that is associated to the Bundle resource.
# @param [String] iso_country The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the Bundle's phone number country ownership request.
# @param [EndUserType] end_user_type
# @param [String] number_type The type of phone number of the Bundle's ownership request. Can be `local`, `mobile`, `national`, or `toll free`.
+ # @param [Boolean] is_test Indicates that Bundle is a Test Bundle and will be Auto-Rejected
# @return [BundleInstance] Created BundleInstance
def create(
friendly_name: nil,
email: nil,
status_callback: :unset,
regulation_sid: :unset,
iso_country: :unset,
end_user_type: :unset,
- number_type: :unset
+ number_type: :unset,
+ is_test: :unset
)
data = Twilio::Values.of({
'FriendlyName' => friendly_name,
'Email' => email,
'StatusCallback' => status_callback,
'RegulationSid' => regulation_sid,
'IsoCountry' => iso_country,
'EndUserType' => end_user_type,
'NumberType' => number_type,
+ 'IsTest' => is_test,
})
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
payload = @version.create('POST', @uri, data: data, headers: headers)