lib/twilio-ruby/rest/numbers/v1/porting_portability.rb in twilio-ruby-7.1.1 vs lib/twilio-ruby/rest/numbers/v1/porting_portability.rb in twilio-ruby-7.2.0
- old
+ new
@@ -64,12 +64,13 @@
)
params = Twilio::Values.of({
'TargetAccountSid' => target_account_sid,
})
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
- payload = @version.fetch('GET', @uri, params: params)
+ payload = @version.fetch('GET', @uri, params: params, headers: headers)
PortingPortabilityInstance.new(
@version,
payload,
phone_number: @solution[:phone_number],
)
@@ -140,12 +141,10 @@
'pin_and_account_number_required' => payload['pin_and_account_number_required'],
'not_portable_reason' => payload['not_portable_reason'],
'not_portable_reason_code' => payload['not_portable_reason_code'] == nil ? payload['not_portable_reason_code'] : payload['not_portable_reason_code'].to_i,
'number_type' => payload['number_type'],
'country' => payload['country'],
- 'messaging_carrier' => payload['messaging_carrier'],
- 'voice_carrier' => payload['voice_carrier'],
'url' => payload['url'],
}
# Context
@instance_context = nil
@@ -207,21 +206,9 @@
##
# @return [String] Country the phone number belongs to.
def country
@properties['country']
- end
-
- ##
- # @return [String] Current messaging carrier of the phone number
- def messaging_carrier
- @properties['messaging_carrier']
- end
-
- ##
- # @return [String] Current voice carrier of the phone number
- def voice_carrier
- @properties['voice_carrier']
end
##
# @return [String] This is the url of the request that you're trying to reach out to locate the resource.
def url