lib/twilio-ruby/rest/conversations/v1/address_configuration.rb in twilio-ruby-6.9.1 vs lib/twilio-ruby/rest/conversations/v1/address_configuration.rb in twilio-ruby-6.11.0

- old
+ new

@@ -16,10 +16,11 @@ module Twilio module REST class Conversations < ConversationsBase class V1 < Version class AddressConfigurationList < ListResource + ## # Initialize the AddressConfigurationList # @param [Version] version Version that contains the resource # @return [AddressConfigurationList] AddressConfigurationList def initialize(version) @@ -72,10 +73,11 @@ 'AutoCreation.StudioFlowSid' => auto_creation_studio_flow_sid, 'AutoCreation.StudioRetryCount' => auto_creation_studio_retry_count, 'AddressCountry' => address_country, }) + payload = @version.create('POST', @uri, data: data) AddressConfigurationInstance.new( @version, payload, ) @@ -199,18 +201,20 @@ ## # Delete the AddressConfigurationInstance # @return [Boolean] True if delete succeeds, false otherwise def delete + @version.delete('DELETE', @uri) end ## # Fetch the AddressConfigurationInstance # @return [AddressConfigurationInstance] Fetched AddressConfigurationInstance def fetch + payload = @version.fetch('GET', @uri) AddressConfigurationInstance.new( @version, payload, sid: @solution[:sid], @@ -251,9 +255,10 @@ 'AutoCreation.WebhookFilters' => Twilio.serialize_list(auto_creation_webhook_filters) { |e| e }, 'AutoCreation.StudioFlowSid' => auto_creation_studio_flow_sid, 'AutoCreation.StudioRetryCount' => auto_creation_studio_retry_count, }) + payload = @version.update('POST', @uri, data: data) AddressConfigurationInstance.new( @version, payload, sid: @solution[:sid],