lib/twilio-ruby/rest/api/v2010/account/address.rb in twilio-ruby-5.1.0 vs lib/twilio-ruby/rest/api/v2010/account/address.rb in twilio-ruby-5.1.1

- old
+ new

@@ -34,21 +34,23 @@ # @param [String] region The region # @param [String] postal_code The postal_code # @param [String] iso_country The iso_country # @param [String] friendly_name The friendly_name # @param [Boolean] emergency_enabled The emergency_enabled + # @param [Boolean] auto_correct_address The auto_correct_address # @return [AddressInstance] Newly created AddressInstance - def create(customer_name: nil, street: nil, city: nil, region: nil, postal_code: nil, iso_country: nil, friendly_name: :unset, emergency_enabled: :unset) + def create(customer_name: nil, street: nil, city: nil, region: nil, postal_code: nil, iso_country: nil, friendly_name: :unset, emergency_enabled: :unset, auto_correct_address: :unset) data = Twilio::Values.of({ 'CustomerName' => customer_name, 'Street' => street, 'City' => city, 'Region' => region, 'PostalCode' => postal_code, 'IsoCountry' => iso_country, 'FriendlyName' => friendly_name, 'EmergencyEnabled' => emergency_enabled, + 'AutoCorrectAddress' => auto_correct_address, }) payload = @version.create( 'POST', @uri, @@ -264,20 +266,22 @@ # @param [String] street The street # @param [String] city The city # @param [String] region The region # @param [String] postal_code The postal_code # @param [Boolean] emergency_enabled The emergency_enabled + # @param [Boolean] auto_correct_address The auto_correct_address # @return [AddressInstance] Updated AddressInstance - def update(friendly_name: :unset, customer_name: :unset, street: :unset, city: :unset, region: :unset, postal_code: :unset, emergency_enabled: :unset) + def update(friendly_name: :unset, customer_name: :unset, street: :unset, city: :unset, region: :unset, postal_code: :unset, emergency_enabled: :unset, auto_correct_address: :unset) data = Twilio::Values.of({ 'FriendlyName' => friendly_name, 'CustomerName' => customer_name, 'Street' => street, 'City' => city, 'Region' => region, 'PostalCode' => postal_code, 'EmergencyEnabled' => emergency_enabled, + 'AutoCorrectAddress' => auto_correct_address, }) payload = @version.update( 'POST', @uri, @@ -473,19 +477,21 @@ # @param [String] street The street # @param [String] city The city # @param [String] region The region # @param [String] postal_code The postal_code # @param [Boolean] emergency_enabled The emergency_enabled + # @param [Boolean] auto_correct_address The auto_correct_address # @return [AddressInstance] Updated AddressInstance - def update(friendly_name: :unset, customer_name: :unset, street: :unset, city: :unset, region: :unset, postal_code: :unset, emergency_enabled: :unset) + def update(friendly_name: :unset, customer_name: :unset, street: :unset, city: :unset, region: :unset, postal_code: :unset, emergency_enabled: :unset, auto_correct_address: :unset) context.update( friendly_name: friendly_name, customer_name: customer_name, street: street, city: city, region: region, postal_code: postal_code, emergency_enabled: emergency_enabled, + auto_correct_address: auto_correct_address, ) end ## # Access the dependent_phone_numbers \ No newline at end of file