Sha256: 51ae82c0a44addf0b203a0525e7674f1466024234eb4609dfdda7f0fb9621f9e

Contents?: true

Size: 611 Bytes

Versions: 12

Compression:

Stored size: 611 Bytes

Contents

# frozen_string_literal: true

module Mock
  module Twilio
    module Schemas
      class PhoneNumbersV2
        class << self
          def for(body, request)
            body["calling_country_code"] = '1' if body["calling_country_code"]
            body["country_code"] = 'US' if body["country_code"]
            body["valid"] = true if body["valid"]
            body["validation_errors"] = [] if body["validation_errors"]
            body["line_type_intelligence"] = { "carrier_name" => "Mock::Twilio - SMS/MMS-SVR", "type" => "mock" }

            body
          end
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
mock-twilio-1.3.1 lib/mock/twilio/schemas/phone_numbers_v2.rb
mock-twilio-1.3.0 lib/mock/twilio/schemas/phone_numbers_v2.rb
mock-twilio-1.2.0 lib/mock/twilio/schemas/phone_numbers_v2.rb
mock-twilio-1.1.0 lib/mock/twilio/schemas/phone_numbers_v2.rb
mock-twilio-1.0.0 lib/mock/twilio/schemas/phone_numbers_v2.rb
mock-twilio-0.8.0 lib/mock/twilio/schemas/phone_numbers_v2.rb
mock-twilio-0.7.2 lib/mock/twilio/schemas/phone_numbers_v2.rb
mock-twilio-0.7.1 lib/mock/twilio/schemas/phone_numbers_v2.rb
mock-twilio-0.7.0 lib/mock/twilio/schemas/phone_numbers_v2.rb
mock-twilio-0.6.0 lib/mock/twilio/schemas/phone_numbers_v2.rb
mock-twilio-0.5.0 lib/mock/twilio/schemas/phone_numbers_v2.rb
mock-twilio-0.4.0 lib/mock/twilio/schemas/phone_numbers_v2.rb