lib/mock/twilio/schemas/messaging_v1.rb in mock-twilio-0.7.1 vs lib/mock/twilio/schemas/messaging_v1.rb in mock-twilio-0.7.2
- old
+ new
@@ -7,10 +7,10 @@
class << self
def for(body, request)
phone_number_sid(body) if body["phone_numbers"].first["sid"]
body["phone_numbers"].first["account_sid"] = ::Twilio.account_sid if body["phone_numbers"].first["account_sid"]
parse_messaging_service_sid(body, request) if body["phone_numbers"].first["service_sid"]
- body["phone_numbers"].first["phone_number"] = "987654321" if body["phone_numbers"].first["phone_number"]
+ body["phone_numbers"].first["phone_number"] = "+19876543210" if body["phone_numbers"].first["phone_number"]
body["phone_numbers"].first["country_code"] = "US" if body["phone_numbers"].first["country_code"]
# Params for twilio pagination, needed for twilio-ruby serializers and absolute paths
body["meta"]["key"] = "phone_numbers" if body["meta"]["key"]
body["meta"]["page_size"] = 20 if body["meta"]["page_size"]