twilio-ruby 7.0.1 → 7.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGES.md +12 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call/stream.rb +6 -6
- data/lib/twilio-ruby/rest/flex_api/v2/flex_user.rb +289 -0
- data/lib/twilio-ruby/rest/flex_api/v2/web_channels.rb +5 -2
- data/lib/twilio-ruby/rest/flex_api/v2.rb +37 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb +68 -3
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in_phone_number.rb +168 -0
- data/lib/twilio-ruby/rest/numbers/v1.rb +48 -2
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +4 -2
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 7b9b24187aba76a770f60364e3e1ffa57e3c88a6
         | 
| 4 | 
            +
              data.tar.gz: 7c31889135293f5c47a7721116945a581a81d3a7
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 750c2f3b5a765c73c1107cd3730bcf964ce73518f4db98a577b8ef0ddc8ce149c403081345d229f659a7a7e88c74e0487d10ed58ec82070d1583cc06642584ce
         | 
| 7 | 
            +
              data.tar.gz: 406e6722646f066f6145c2552f07d0db03cffe8b7d24c2f5e24883fa66a0e02a5b51922fe0015e6440dbd674abf31425ec6d00e88eeb25644ea05d8cfac6338f
         | 
    
        data/CHANGES.md
    CHANGED
    
    | @@ -1,6 +1,18 @@ | |
| 1 1 | 
             
            twilio-ruby changelog
         | 
| 2 2 | 
             
            =====================
         | 
| 3 3 |  | 
| 4 | 
            +
            [2024-04-18] Version 7.0.2
         | 
| 5 | 
            +
            --------------------------
         | 
| 6 | 
            +
            **Flex**
         | 
| 7 | 
            +
            - Add header `ui_version` to `web_channels` API
         | 
| 8 | 
            +
             | 
| 9 | 
            +
            **Messaging**
         | 
| 10 | 
            +
            - Redeploy after failed pipeline
         | 
| 11 | 
            +
             | 
| 12 | 
            +
            **Numbers**
         | 
| 13 | 
            +
            - Add Delete Port In request phone number api and Add Delete Port In request api
         | 
| 14 | 
            +
             | 
| 15 | 
            +
             | 
| 4 16 | 
             
            [2024-04-04] Version 7.0.1
         | 
| 5 17 | 
             
            --------------------------
         | 
| 6 18 | 
             
            **Api**
         | 
    
        data/README.md
    CHANGED
    
    | @@ -39,13 +39,13 @@ This library supports the following Ruby implementations: | |
| 39 39 | 
             
            To install using [Bundler][bundler] grab the latest stable version:
         | 
| 40 40 |  | 
| 41 41 | 
             
            ```ruby
         | 
| 42 | 
            -
            gem 'twilio-ruby', '~> 7.0. | 
| 42 | 
            +
            gem 'twilio-ruby', '~> 7.0.2'
         | 
| 43 43 | 
             
            ```
         | 
| 44 44 |  | 
| 45 45 | 
             
            To manually install `twilio-ruby` via [Rubygems][rubygems] simply gem install:
         | 
| 46 46 |  | 
| 47 47 | 
             
            ```bash
         | 
| 48 | 
            -
            gem install twilio-ruby -v 7.0. | 
| 48 | 
            +
            gem install twilio-ruby -v 7.0.2
         | 
| 49 49 | 
             
            ```
         | 
| 50 50 |  | 
| 51 51 | 
             
            To build and install the development branch yourself from the latest source:
         | 
| @@ -35,11 +35,11 @@ module Twilio | |
| 35 35 | 
             
                                end
         | 
| 36 36 | 
             
                                ##
         | 
| 37 37 | 
             
                                # Create the StreamInstance
         | 
| 38 | 
            -
                                # @param [String] url Relative or absolute  | 
| 39 | 
            -
                                # @param [String] name The user-specified name of this Stream, if one was given when the Stream was created. This  | 
| 38 | 
            +
                                # @param [String] url Relative or absolute URL where WebSocket connection will be established.
         | 
| 39 | 
            +
                                # @param [String] name The user-specified name of this Stream, if one was given when the Stream was created. This can be used to stop the Stream.
         | 
| 40 40 | 
             
                                # @param [Track] track 
         | 
| 41 | 
            -
                                # @param [String] status_callback Absolute URL  | 
| 42 | 
            -
                                # @param [String] status_callback_method The  | 
| 41 | 
            +
                                # @param [String] status_callback Absolute URL to which Twilio sends status callback HTTP requests.
         | 
| 42 | 
            +
                                # @param [String] status_callback_method The HTTP method Twilio uses when sending `status_callback` requests. Possible values are `GET` and `POST`. Default is `POST`.
         | 
| 43 43 | 
             
                                # @param [String] parameter1_name Parameter name
         | 
| 44 44 | 
             
                                # @param [String] parameter1_value Parameter value
         | 
| 45 45 | 
             
                                # @param [String] parameter2_name Parameter name
         | 
| @@ -677,7 +677,7 @@ module Twilio | |
| 677 677 | 
             
                                # @param [Version] version Version that contains the resource
         | 
| 678 678 | 
             
                                # @param [String] account_sid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this Stream resource.
         | 
| 679 679 | 
             
                                # @param [String] call_sid The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Stream resource is associated with.
         | 
| 680 | 
            -
                                # @param [String] sid The SID  | 
| 680 | 
            +
                                # @param [String] sid The SID or the `name` of the Stream resource to be stopped
         | 
| 681 681 | 
             
                                # @return [StreamContext] StreamContext
         | 
| 682 682 | 
             
                                def initialize(version, account_sid, call_sid, sid)
         | 
| 683 683 | 
             
                                    super(version)
         | 
| @@ -814,7 +814,7 @@ module Twilio | |
| 814 814 | 
             
                                end
         | 
| 815 815 |  | 
| 816 816 | 
             
                                ##
         | 
| 817 | 
            -
                                # @return [String] The user-specified name of this Stream, if one was given when the Stream was created. This  | 
| 817 | 
            +
                                # @return [String] The user-specified name of this Stream, if one was given when the Stream was created. This can be used to stop the Stream.
         | 
| 818 818 | 
             
                                def name
         | 
| 819 819 | 
             
                                    @properties['name']
         | 
| 820 820 | 
             
                                end
         | 
| @@ -0,0 +1,289 @@ | |
| 1 | 
            +
            ##
         | 
| 2 | 
            +
            #    This code was generated by
         | 
| 3 | 
            +
            #    ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
         | 
| 4 | 
            +
            #     |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
         | 
| 5 | 
            +
            #     |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \
         | 
| 6 | 
            +
            #
         | 
| 7 | 
            +
            #    Twilio - Flex
         | 
| 8 | 
            +
            #    This is the public Twilio REST API.
         | 
| 9 | 
            +
            #
         | 
| 10 | 
            +
            #    NOTE: This class is auto generated by OpenAPI Generator.
         | 
| 11 | 
            +
            #    https://openapi-generator.tech
         | 
| 12 | 
            +
            #    Do not edit the class manually.
         | 
| 13 | 
            +
            #
         | 
| 14 | 
            +
             | 
| 15 | 
            +
             | 
| 16 | 
            +
            module Twilio
         | 
| 17 | 
            +
                module REST
         | 
| 18 | 
            +
                    class FlexApi < FlexApiBase
         | 
| 19 | 
            +
                        class V2 < Version
         | 
| 20 | 
            +
                            class FlexUserList < ListResource
         | 
| 21 | 
            +
                            
         | 
| 22 | 
            +
                                ##
         | 
| 23 | 
            +
                                # Initialize the FlexUserList
         | 
| 24 | 
            +
                                # @param [Version] version Version that contains the resource
         | 
| 25 | 
            +
                                # @return [FlexUserList] FlexUserList
         | 
| 26 | 
            +
                                def initialize(version)
         | 
| 27 | 
            +
                                    super(version)
         | 
| 28 | 
            +
                                    # Path Solution
         | 
| 29 | 
            +
                                    @solution = {  }
         | 
| 30 | 
            +
                                    
         | 
| 31 | 
            +
                                    
         | 
| 32 | 
            +
                                end
         | 
| 33 | 
            +
                            
         | 
| 34 | 
            +
             | 
| 35 | 
            +
             | 
| 36 | 
            +
                                # Provide a user friendly representation
         | 
| 37 | 
            +
                                def to_s
         | 
| 38 | 
            +
                                    '#<Twilio.FlexApi.V2.FlexUserList>'
         | 
| 39 | 
            +
                                end
         | 
| 40 | 
            +
                            end
         | 
| 41 | 
            +
             | 
| 42 | 
            +
             | 
| 43 | 
            +
                            class FlexUserContext < InstanceContext
         | 
| 44 | 
            +
                                ##
         | 
| 45 | 
            +
                                # Initialize the FlexUserContext
         | 
| 46 | 
            +
                                # @param [Version] version Version that contains the resource
         | 
| 47 | 
            +
                                # @param [String] instance_sid The unique ID created by Twilio to identify a Flex instance.
         | 
| 48 | 
            +
                                # @param [String] flex_user_sid The unique id for the flex user to be retrieved.
         | 
| 49 | 
            +
                                # @return [FlexUserContext] FlexUserContext
         | 
| 50 | 
            +
                                def initialize(version, instance_sid, flex_user_sid)
         | 
| 51 | 
            +
                                    super(version)
         | 
| 52 | 
            +
             | 
| 53 | 
            +
                                    # Path Solution
         | 
| 54 | 
            +
                                    @solution = { instance_sid: instance_sid, flex_user_sid: flex_user_sid,  }
         | 
| 55 | 
            +
                                    @uri = "/Instances/#{@solution[:instance_sid]}/Users/#{@solution[:flex_user_sid]}"
         | 
| 56 | 
            +
             | 
| 57 | 
            +
                                    
         | 
| 58 | 
            +
                                end
         | 
| 59 | 
            +
                                ##
         | 
| 60 | 
            +
                                # Fetch the FlexUserInstance
         | 
| 61 | 
            +
                                # @return [FlexUserInstance] Fetched FlexUserInstance
         | 
| 62 | 
            +
                                def fetch
         | 
| 63 | 
            +
             | 
| 64 | 
            +
                                    
         | 
| 65 | 
            +
                                    payload = @version.fetch('GET', @uri)
         | 
| 66 | 
            +
                                    FlexUserInstance.new(
         | 
| 67 | 
            +
                                        @version,
         | 
| 68 | 
            +
                                        payload,
         | 
| 69 | 
            +
                                        instance_sid: @solution[:instance_sid],
         | 
| 70 | 
            +
                                        flex_user_sid: @solution[:flex_user_sid],
         | 
| 71 | 
            +
                                    )
         | 
| 72 | 
            +
                                end
         | 
| 73 | 
            +
             | 
| 74 | 
            +
             | 
| 75 | 
            +
                                ##
         | 
| 76 | 
            +
                                # Provide a user friendly representation
         | 
| 77 | 
            +
                                def to_s
         | 
| 78 | 
            +
                                    context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
         | 
| 79 | 
            +
                                    "#<Twilio.FlexApi.V2.FlexUserContext #{context}>"
         | 
| 80 | 
            +
                                end
         | 
| 81 | 
            +
             | 
| 82 | 
            +
                                ##
         | 
| 83 | 
            +
                                # Provide a detailed, user friendly representation
         | 
| 84 | 
            +
                                def inspect
         | 
| 85 | 
            +
                                    context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
         | 
| 86 | 
            +
                                    "#<Twilio.FlexApi.V2.FlexUserContext #{context}>"
         | 
| 87 | 
            +
                                end
         | 
| 88 | 
            +
                            end
         | 
| 89 | 
            +
             | 
| 90 | 
            +
                            class FlexUserPage < Page
         | 
| 91 | 
            +
                                ##
         | 
| 92 | 
            +
                                # Initialize the FlexUserPage
         | 
| 93 | 
            +
                                # @param [Version] version Version that contains the resource
         | 
| 94 | 
            +
                                # @param [Response] response Response from the API
         | 
| 95 | 
            +
                                # @param [Hash] solution Path solution for the resource
         | 
| 96 | 
            +
                                # @return [FlexUserPage] FlexUserPage
         | 
| 97 | 
            +
                                def initialize(version, response, solution)
         | 
| 98 | 
            +
                                    super(version, response)
         | 
| 99 | 
            +
             | 
| 100 | 
            +
                                    # Path Solution
         | 
| 101 | 
            +
                                    @solution = solution
         | 
| 102 | 
            +
                                end
         | 
| 103 | 
            +
             | 
| 104 | 
            +
                                ##
         | 
| 105 | 
            +
                                # Build an instance of FlexUserInstance
         | 
| 106 | 
            +
                                # @param [Hash] payload Payload response from the API
         | 
| 107 | 
            +
                                # @return [FlexUserInstance] FlexUserInstance
         | 
| 108 | 
            +
                                def get_instance(payload)
         | 
| 109 | 
            +
                                    FlexUserInstance.new(@version, payload)
         | 
| 110 | 
            +
                                end
         | 
| 111 | 
            +
             | 
| 112 | 
            +
                                ##
         | 
| 113 | 
            +
                                # Provide a user friendly representation
         | 
| 114 | 
            +
                                def to_s
         | 
| 115 | 
            +
                                    '<Twilio.FlexApi.V2.FlexUserPage>'
         | 
| 116 | 
            +
                                end
         | 
| 117 | 
            +
                            end
         | 
| 118 | 
            +
                            class FlexUserInstance < InstanceResource
         | 
| 119 | 
            +
                                ##
         | 
| 120 | 
            +
                                # Initialize the FlexUserInstance
         | 
| 121 | 
            +
                                # @param [Version] version Version that contains the resource
         | 
| 122 | 
            +
                                # @param [Hash] payload payload that contains response from Twilio
         | 
| 123 | 
            +
                                # @param [String] account_sid The SID of the
         | 
| 124 | 
            +
                                #   {Account}[https://www.twilio.com/docs/iam/api/account] that created this FlexUser
         | 
| 125 | 
            +
                                #   resource.
         | 
| 126 | 
            +
                                # @param [String] sid The SID of the Call resource to fetch.
         | 
| 127 | 
            +
                                # @return [FlexUserInstance] FlexUserInstance
         | 
| 128 | 
            +
                                def initialize(version, payload , instance_sid: nil, flex_user_sid: nil)
         | 
| 129 | 
            +
                                    super(version)
         | 
| 130 | 
            +
                                    
         | 
| 131 | 
            +
                                    # Marshaled Properties
         | 
| 132 | 
            +
                                    @properties = { 
         | 
| 133 | 
            +
                                        'account_sid' => payload['account_sid'],
         | 
| 134 | 
            +
                                        'instance_sid' => payload['instance_sid'],
         | 
| 135 | 
            +
                                        'user_sid' => payload['user_sid'],
         | 
| 136 | 
            +
                                        'flex_user_sid' => payload['flex_user_sid'],
         | 
| 137 | 
            +
                                        'worker_sid' => payload['worker_sid'],
         | 
| 138 | 
            +
                                        'workspace_sid' => payload['workspace_sid'],
         | 
| 139 | 
            +
                                        'flex_team_sid' => payload['flex_team_sid'],
         | 
| 140 | 
            +
                                        'first_name' => payload['first_name'],
         | 
| 141 | 
            +
                                        'last_name' => payload['last_name'],
         | 
| 142 | 
            +
                                        'username' => payload['username'],
         | 
| 143 | 
            +
                                        'email' => payload['email'],
         | 
| 144 | 
            +
                                        'friendly_name' => payload['friendly_name'],
         | 
| 145 | 
            +
                                        'created_date' => Twilio.deserialize_iso8601_datetime(payload['created_date']),
         | 
| 146 | 
            +
                                        'updated_date' => Twilio.deserialize_iso8601_datetime(payload['updated_date']),
         | 
| 147 | 
            +
                                        'version' => payload['version'] == nil ? payload['version'] : payload['version'].to_i,
         | 
| 148 | 
            +
                                        'url' => payload['url'],
         | 
| 149 | 
            +
                                    }
         | 
| 150 | 
            +
             | 
| 151 | 
            +
                                    # Context
         | 
| 152 | 
            +
                                    @instance_context = nil
         | 
| 153 | 
            +
                                    @params = { 'instance_sid' => instance_sid  || @properties['instance_sid']  ,'flex_user_sid' => flex_user_sid  || @properties['flex_user_sid']  , }
         | 
| 154 | 
            +
                                end
         | 
| 155 | 
            +
             | 
| 156 | 
            +
                                ##
         | 
| 157 | 
            +
                                # Generate an instance context for the instance, the context is capable of
         | 
| 158 | 
            +
                                # performing various actions.  All instance actions are proxied to the context
         | 
| 159 | 
            +
                                # @return [FlexUserContext] CallContext for this CallInstance
         | 
| 160 | 
            +
                                def context
         | 
| 161 | 
            +
                                    unless @instance_context
         | 
| 162 | 
            +
                                        @instance_context = FlexUserContext.new(@version , @params['instance_sid'], @params['flex_user_sid'])
         | 
| 163 | 
            +
                                    end
         | 
| 164 | 
            +
                                    @instance_context
         | 
| 165 | 
            +
                                end
         | 
| 166 | 
            +
                                
         | 
| 167 | 
            +
                                ##
         | 
| 168 | 
            +
                                # @return [String] The unique SID of the account that created the resource.
         | 
| 169 | 
            +
                                def account_sid
         | 
| 170 | 
            +
                                    @properties['account_sid']
         | 
| 171 | 
            +
                                end
         | 
| 172 | 
            +
                                
         | 
| 173 | 
            +
                                ##
         | 
| 174 | 
            +
                                # @return [String] The unique ID created by Twilio to identify a Flex instance.
         | 
| 175 | 
            +
                                def instance_sid
         | 
| 176 | 
            +
                                    @properties['instance_sid']
         | 
| 177 | 
            +
                                end
         | 
| 178 | 
            +
                                
         | 
| 179 | 
            +
                                ##
         | 
| 180 | 
            +
                                # @return [String] The unique SID identifier of the Twilio Unified User.
         | 
| 181 | 
            +
                                def user_sid
         | 
| 182 | 
            +
                                    @properties['user_sid']
         | 
| 183 | 
            +
                                end
         | 
| 184 | 
            +
                                
         | 
| 185 | 
            +
                                ##
         | 
| 186 | 
            +
                                # @return [String] The unique SID identifier of the Flex User.
         | 
| 187 | 
            +
                                def flex_user_sid
         | 
| 188 | 
            +
                                    @properties['flex_user_sid']
         | 
| 189 | 
            +
                                end
         | 
| 190 | 
            +
                                
         | 
| 191 | 
            +
                                ##
         | 
| 192 | 
            +
                                # @return [String] The unique SID identifier of the worker.
         | 
| 193 | 
            +
                                def worker_sid
         | 
| 194 | 
            +
                                    @properties['worker_sid']
         | 
| 195 | 
            +
                                end
         | 
| 196 | 
            +
                                
         | 
| 197 | 
            +
                                ##
         | 
| 198 | 
            +
                                # @return [String] The unique SID identifier of the workspace.
         | 
| 199 | 
            +
                                def workspace_sid
         | 
| 200 | 
            +
                                    @properties['workspace_sid']
         | 
| 201 | 
            +
                                end
         | 
| 202 | 
            +
                                
         | 
| 203 | 
            +
                                ##
         | 
| 204 | 
            +
                                # @return [String] The unique SID identifier of the Flex Team.
         | 
| 205 | 
            +
                                def flex_team_sid
         | 
| 206 | 
            +
                                    @properties['flex_team_sid']
         | 
| 207 | 
            +
                                end
         | 
| 208 | 
            +
                                
         | 
| 209 | 
            +
                                ##
         | 
| 210 | 
            +
                                # @return [String] First name of the User.
         | 
| 211 | 
            +
                                def first_name
         | 
| 212 | 
            +
                                    @properties['first_name']
         | 
| 213 | 
            +
                                end
         | 
| 214 | 
            +
                                
         | 
| 215 | 
            +
                                ##
         | 
| 216 | 
            +
                                # @return [String] Last name of the User.
         | 
| 217 | 
            +
                                def last_name
         | 
| 218 | 
            +
                                    @properties['last_name']
         | 
| 219 | 
            +
                                end
         | 
| 220 | 
            +
                                
         | 
| 221 | 
            +
                                ##
         | 
| 222 | 
            +
                                # @return [String] Username of the User.
         | 
| 223 | 
            +
                                def username
         | 
| 224 | 
            +
                                    @properties['username']
         | 
| 225 | 
            +
                                end
         | 
| 226 | 
            +
                                
         | 
| 227 | 
            +
                                ##
         | 
| 228 | 
            +
                                # @return [String] Email of the User.
         | 
| 229 | 
            +
                                def email
         | 
| 230 | 
            +
                                    @properties['email']
         | 
| 231 | 
            +
                                end
         | 
| 232 | 
            +
                                
         | 
| 233 | 
            +
                                ##
         | 
| 234 | 
            +
                                # @return [String] Friendly name of the User.
         | 
| 235 | 
            +
                                def friendly_name
         | 
| 236 | 
            +
                                    @properties['friendly_name']
         | 
| 237 | 
            +
                                end
         | 
| 238 | 
            +
                                
         | 
| 239 | 
            +
                                ##
         | 
| 240 | 
            +
                                # @return [Time] The date that this user was created, given in ISO 8601 format.
         | 
| 241 | 
            +
                                def created_date
         | 
| 242 | 
            +
                                    @properties['created_date']
         | 
| 243 | 
            +
                                end
         | 
| 244 | 
            +
                                
         | 
| 245 | 
            +
                                ##
         | 
| 246 | 
            +
                                # @return [Time] The date that this user was updated, given in ISO 8601 format.
         | 
| 247 | 
            +
                                def updated_date
         | 
| 248 | 
            +
                                    @properties['updated_date']
         | 
| 249 | 
            +
                                end
         | 
| 250 | 
            +
                                
         | 
| 251 | 
            +
                                ##
         | 
| 252 | 
            +
                                # @return [String] The current version of the user.
         | 
| 253 | 
            +
                                def version
         | 
| 254 | 
            +
                                    @properties['version']
         | 
| 255 | 
            +
                                end
         | 
| 256 | 
            +
                                
         | 
| 257 | 
            +
                                ##
         | 
| 258 | 
            +
                                # @return [String] 
         | 
| 259 | 
            +
                                def url
         | 
| 260 | 
            +
                                    @properties['url']
         | 
| 261 | 
            +
                                end
         | 
| 262 | 
            +
                                
         | 
| 263 | 
            +
                                ##
         | 
| 264 | 
            +
                                # Fetch the FlexUserInstance
         | 
| 265 | 
            +
                                # @return [FlexUserInstance] Fetched FlexUserInstance
         | 
| 266 | 
            +
                                def fetch
         | 
| 267 | 
            +
             | 
| 268 | 
            +
                                    context.fetch
         | 
| 269 | 
            +
                                end
         | 
| 270 | 
            +
             | 
| 271 | 
            +
                                ##
         | 
| 272 | 
            +
                                # Provide a user friendly representation
         | 
| 273 | 
            +
                                def to_s
         | 
| 274 | 
            +
                                    values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
         | 
| 275 | 
            +
                                    "<Twilio.FlexApi.V2.FlexUserInstance #{values}>"
         | 
| 276 | 
            +
                                end
         | 
| 277 | 
            +
             | 
| 278 | 
            +
                                ##
         | 
| 279 | 
            +
                                # Provide a detailed, user friendly representation
         | 
| 280 | 
            +
                                def inspect
         | 
| 281 | 
            +
                                    values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
         | 
| 282 | 
            +
                                    "<Twilio.FlexApi.V2.FlexUserInstance #{values}>"
         | 
| 283 | 
            +
                                end
         | 
| 284 | 
            +
                            end
         | 
| 285 | 
            +
             | 
| 286 | 
            +
                        end
         | 
| 287 | 
            +
                    end
         | 
| 288 | 
            +
                end
         | 
| 289 | 
            +
            end
         | 
| @@ -36,12 +36,14 @@ module Twilio | |
| 36 36 | 
             
                                # @param [String] chat_friendly_name The Conversation's friendly name. See the [Conversation resource](https://www.twilio.com/docs/conversations/api/conversation-resource) for an example.
         | 
| 37 37 | 
             
                                # @param [String] customer_friendly_name The Conversation participant's friendly name. See the [Conversation Participant Resource](https://www.twilio.com/docs/conversations/api/conversation-participant-resource) for an example.
         | 
| 38 38 | 
             
                                # @param [String] pre_engagement_data The pre-engagement data.
         | 
| 39 | 
            +
                                # @param [String] ui_version The Ui-Version HTTP request header
         | 
| 39 40 | 
             
                                # @return [WebChannelsInstance] Created WebChannelsInstance
         | 
| 40 41 | 
             
                                def create(
         | 
| 41 42 | 
             
                                    address_sid: nil, 
         | 
| 42 43 | 
             
                                    chat_friendly_name: :unset, 
         | 
| 43 44 | 
             
                                    customer_friendly_name: :unset, 
         | 
| 44 | 
            -
                                    pre_engagement_data: :unset
         | 
| 45 | 
            +
                                    pre_engagement_data: :unset, 
         | 
| 46 | 
            +
                                    ui_version: :unset
         | 
| 45 47 | 
             
                                )
         | 
| 46 48 |  | 
| 47 49 | 
             
                                    data = Twilio::Values.of({
         | 
| @@ -52,7 +54,8 @@ module Twilio | |
| 52 54 | 
             
                                    })
         | 
| 53 55 |  | 
| 54 56 |  | 
| 55 | 
            -
                                     | 
| 57 | 
            +
                                    headers = Twilio::Values.of({ 'Ui-Version' => ui_version, })
         | 
| 58 | 
            +
                                    payload = @version.create('POST', @uri, data: data, headers: headers)
         | 
| 56 59 | 
             
                                    WebChannelsInstance.new(
         | 
| 57 60 | 
             
                                        @version,
         | 
| 58 61 | 
             
                                        payload,
         | 
| @@ -21,9 +21,46 @@ module Twilio | |
| 21 21 | 
             
                            def initialize(domain)
         | 
| 22 22 | 
             
                                super
         | 
| 23 23 | 
             
                                @version = 'v2'
         | 
| 24 | 
            +
                                @flex_user = nil
         | 
| 24 25 | 
             
                                @web_channels = nil
         | 
| 25 26 | 
             
                            end
         | 
| 26 27 |  | 
| 28 | 
            +
                            ##
         | 
| 29 | 
            +
                            # @param [String] instance_sid The unique ID created by Twilio to identify a Flex instance.
         | 
| 30 | 
            +
                            # @param [String] flex_user_sid The unique id for the flex user to be retrieved.
         | 
| 31 | 
            +
                            # @return [Twilio::REST::FlexApi::V2::FlexUserContext] if instanceSid was passed.
         | 
| 32 | 
            +
                            # @return [Twilio::REST::FlexApi::V2::FlexUserList]
         | 
| 33 | 
            +
                            def flex_user(instance_sid=:unset, flex_user_sid=:unset)
         | 
| 34 | 
            +
                                if instance_sid.nil?
         | 
| 35 | 
            +
                                    raise ArgumentError, 'instance_sid cannot be nil'
         | 
| 36 | 
            +
                                end
         | 
| 37 | 
            +
                                if flex_user_sid.nil?
         | 
| 38 | 
            +
                                    raise ArgumentError, 'flex_user_sid cannot be nil'
         | 
| 39 | 
            +
                                end
         | 
| 40 | 
            +
                                if instance_sid == :unset && flex_user_sid == :unset
         | 
| 41 | 
            +
                                    @flex_user ||= FlexUserList.new self
         | 
| 42 | 
            +
                                else
         | 
| 43 | 
            +
                                    FlexUserContext.new(self, instance_sid, flex_user_sid)
         | 
| 44 | 
            +
                                end
         | 
| 45 | 
            +
                            end
         | 
| 46 | 
            +
                            ##
         | 
| 47 | 
            +
                            # @param [String] instance_sid The unique ID created by Twilio to identify a Flex instance.
         | 
| 48 | 
            +
                            # @param [String] flex_user_sid The unique id for the flex user to be retrieved.
         | 
| 49 | 
            +
                            # @return [Twilio::REST::FlexApi::V2::FlexUserContext] if flexUserSid was passed.
         | 
| 50 | 
            +
                            # @return [Twilio::REST::FlexApi::V2::FlexUserList]
         | 
| 51 | 
            +
                            def flex_user(instance_sid=:unset, flex_user_sid=:unset)
         | 
| 52 | 
            +
                                if instance_sid.nil?
         | 
| 53 | 
            +
                                    raise ArgumentError, 'instance_sid cannot be nil'
         | 
| 54 | 
            +
                                end
         | 
| 55 | 
            +
                                if flex_user_sid.nil?
         | 
| 56 | 
            +
                                    raise ArgumentError, 'flex_user_sid cannot be nil'
         | 
| 57 | 
            +
                                end
         | 
| 58 | 
            +
                                if instance_sid == :unset && flex_user_sid == :unset
         | 
| 59 | 
            +
                                    @flex_user ||= FlexUserList.new self
         | 
| 60 | 
            +
                                else
         | 
| 61 | 
            +
                                    FlexUserContext.new(self, instance_sid, flex_user_sid)
         | 
| 62 | 
            +
                                end
         | 
| 63 | 
            +
                            end
         | 
| 27 64 | 
             
                            ##
         | 
| 28 65 | 
             
                            # @return [Twilio::REST::FlexApi::V2::WebChannelsList]
         | 
| 29 66 | 
             
                            def web_channels
         | 
| @@ -54,6 +54,47 @@ module Twilio | |
| 54 54 | 
             
                                end
         | 
| 55 55 | 
             
                            end
         | 
| 56 56 |  | 
| 57 | 
            +
             | 
| 58 | 
            +
                            class PortingPortInContext < InstanceContext
         | 
| 59 | 
            +
                                ##
         | 
| 60 | 
            +
                                # Initialize the PortingPortInContext
         | 
| 61 | 
            +
                                # @param [Version] version Version that contains the resource
         | 
| 62 | 
            +
                                # @param [String] port_in_request_sid The SID of the Port In request. This is a unique identifier of the port in request.
         | 
| 63 | 
            +
                                # @return [PortingPortInContext] PortingPortInContext
         | 
| 64 | 
            +
                                def initialize(version, port_in_request_sid)
         | 
| 65 | 
            +
                                    super(version)
         | 
| 66 | 
            +
             | 
| 67 | 
            +
                                    # Path Solution
         | 
| 68 | 
            +
                                    @solution = { port_in_request_sid: port_in_request_sid,  }
         | 
| 69 | 
            +
                                    @uri = "/Porting/PortIn/#{@solution[:port_in_request_sid]}"
         | 
| 70 | 
            +
             | 
| 71 | 
            +
                                    
         | 
| 72 | 
            +
                                end
         | 
| 73 | 
            +
                                ##
         | 
| 74 | 
            +
                                # Delete the PortingPortInInstance
         | 
| 75 | 
            +
                                # @return [Boolean] True if delete succeeds, false otherwise
         | 
| 76 | 
            +
                                def delete
         | 
| 77 | 
            +
             | 
| 78 | 
            +
                                    
         | 
| 79 | 
            +
                                    @version.delete('DELETE', @uri)
         | 
| 80 | 
            +
                                end
         | 
| 81 | 
            +
             | 
| 82 | 
            +
             | 
| 83 | 
            +
                                ##
         | 
| 84 | 
            +
                                # Provide a user friendly representation
         | 
| 85 | 
            +
                                def to_s
         | 
| 86 | 
            +
                                    context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
         | 
| 87 | 
            +
                                    "#<Twilio.Numbers.V1.PortingPortInContext #{context}>"
         | 
| 88 | 
            +
                                end
         | 
| 89 | 
            +
             | 
| 90 | 
            +
                                ##
         | 
| 91 | 
            +
                                # Provide a detailed, user friendly representation
         | 
| 92 | 
            +
                                def inspect
         | 
| 93 | 
            +
                                    context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
         | 
| 94 | 
            +
                                    "#<Twilio.Numbers.V1.PortingPortInContext #{context}>"
         | 
| 95 | 
            +
                                end
         | 
| 96 | 
            +
                            end
         | 
| 97 | 
            +
             | 
| 57 98 | 
             
                            class PortingPortInPage < Page
         | 
| 58 99 | 
             
                                ##
         | 
| 59 100 | 
             
                                # Initialize the PortingPortInPage
         | 
| @@ -92,7 +133,7 @@ module Twilio | |
| 92 133 | 
             
                                #   resource.
         | 
| 93 134 | 
             
                                # @param [String] sid The SID of the Call resource to fetch.
         | 
| 94 135 | 
             
                                # @return [PortingPortInInstance] PortingPortInInstance
         | 
| 95 | 
            -
                                def initialize(version, payload )
         | 
| 136 | 
            +
                                def initialize(version, payload , port_in_request_sid: nil)
         | 
| 96 137 | 
             
                                    super(version)
         | 
| 97 138 |  | 
| 98 139 | 
             
                                    # Marshaled Properties
         | 
| @@ -100,8 +141,22 @@ module Twilio | |
| 100 141 | 
             
                                        'port_in_request_sid' => payload['port_in_request_sid'],
         | 
| 101 142 | 
             
                                        'url' => payload['url'],
         | 
| 102 143 | 
             
                                    }
         | 
| 144 | 
            +
             | 
| 145 | 
            +
                                    # Context
         | 
| 146 | 
            +
                                    @instance_context = nil
         | 
| 147 | 
            +
                                    @params = { 'port_in_request_sid' => port_in_request_sid  || @properties['port_in_request_sid']  , }
         | 
| 103 148 | 
             
                                end
         | 
| 104 149 |  | 
| 150 | 
            +
                                ##
         | 
| 151 | 
            +
                                # Generate an instance context for the instance, the context is capable of
         | 
| 152 | 
            +
                                # performing various actions.  All instance actions are proxied to the context
         | 
| 153 | 
            +
                                # @return [PortingPortInContext] CallContext for this CallInstance
         | 
| 154 | 
            +
                                def context
         | 
| 155 | 
            +
                                    unless @instance_context
         | 
| 156 | 
            +
                                        @instance_context = PortingPortInContext.new(@version , @params['port_in_request_sid'])
         | 
| 157 | 
            +
                                    end
         | 
| 158 | 
            +
                                    @instance_context
         | 
| 159 | 
            +
                                end
         | 
| 105 160 |  | 
| 106 161 | 
             
                                ##
         | 
| 107 162 | 
             
                                # @return [String] The SID of the Port In request. This is a unique identifier of the port in request.
         | 
| @@ -115,16 +170,26 @@ module Twilio | |
| 115 170 | 
             
                                    @properties['url']
         | 
| 116 171 | 
             
                                end
         | 
| 117 172 |  | 
| 173 | 
            +
                                ##
         | 
| 174 | 
            +
                                # Delete the PortingPortInInstance
         | 
| 175 | 
            +
                                # @return [Boolean] True if delete succeeds, false otherwise
         | 
| 176 | 
            +
                                def delete
         | 
| 177 | 
            +
             | 
| 178 | 
            +
                                    context.delete
         | 
| 179 | 
            +
                                end
         | 
| 180 | 
            +
             | 
| 118 181 | 
             
                                ##
         | 
| 119 182 | 
             
                                # Provide a user friendly representation
         | 
| 120 183 | 
             
                                def to_s
         | 
| 121 | 
            -
                                    " | 
| 184 | 
            +
                                    values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
         | 
| 185 | 
            +
                                    "<Twilio.Numbers.V1.PortingPortInInstance #{values}>"
         | 
| 122 186 | 
             
                                end
         | 
| 123 187 |  | 
| 124 188 | 
             
                                ##
         | 
| 125 189 | 
             
                                # Provide a detailed, user friendly representation
         | 
| 126 190 | 
             
                                def inspect
         | 
| 127 | 
            -
                                    " | 
| 191 | 
            +
                                    values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
         | 
| 192 | 
            +
                                    "<Twilio.Numbers.V1.PortingPortInInstance #{values}>"
         | 
| 128 193 | 
             
                                end
         | 
| 129 194 | 
             
                            end
         | 
| 130 195 |  | 
| @@ -0,0 +1,168 @@ | |
| 1 | 
            +
            ##
         | 
| 2 | 
            +
            #    This code was generated by
         | 
| 3 | 
            +
            #    ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
         | 
| 4 | 
            +
            #     |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
         | 
| 5 | 
            +
            #     |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \
         | 
| 6 | 
            +
            #
         | 
| 7 | 
            +
            #    Twilio - Numbers
         | 
| 8 | 
            +
            #    This is the public Twilio REST API.
         | 
| 9 | 
            +
            #
         | 
| 10 | 
            +
            #    NOTE: This class is auto generated by OpenAPI Generator.
         | 
| 11 | 
            +
            #    https://openapi-generator.tech
         | 
| 12 | 
            +
            #    Do not edit the class manually.
         | 
| 13 | 
            +
            #
         | 
| 14 | 
            +
             | 
| 15 | 
            +
             | 
| 16 | 
            +
            module Twilio
         | 
| 17 | 
            +
                module REST
         | 
| 18 | 
            +
                    class Numbers < NumbersBase
         | 
| 19 | 
            +
                        class V1 < Version
         | 
| 20 | 
            +
                            class PortingPortInPhoneNumberList < ListResource
         | 
| 21 | 
            +
                            
         | 
| 22 | 
            +
                                ##
         | 
| 23 | 
            +
                                # Initialize the PortingPortInPhoneNumberList
         | 
| 24 | 
            +
                                # @param [Version] version Version that contains the resource
         | 
| 25 | 
            +
                                # @return [PortingPortInPhoneNumberList] PortingPortInPhoneNumberList
         | 
| 26 | 
            +
                                def initialize(version)
         | 
| 27 | 
            +
                                    super(version)
         | 
| 28 | 
            +
                                    # Path Solution
         | 
| 29 | 
            +
                                    @solution = {  }
         | 
| 30 | 
            +
                                    
         | 
| 31 | 
            +
                                    
         | 
| 32 | 
            +
                                end
         | 
| 33 | 
            +
                            
         | 
| 34 | 
            +
             | 
| 35 | 
            +
             | 
| 36 | 
            +
                                # Provide a user friendly representation
         | 
| 37 | 
            +
                                def to_s
         | 
| 38 | 
            +
                                    '#<Twilio.Numbers.V1.PortingPortInPhoneNumberList>'
         | 
| 39 | 
            +
                                end
         | 
| 40 | 
            +
                            end
         | 
| 41 | 
            +
             | 
| 42 | 
            +
             | 
| 43 | 
            +
                            class PortingPortInPhoneNumberContext < InstanceContext
         | 
| 44 | 
            +
                                ##
         | 
| 45 | 
            +
                                # Initialize the PortingPortInPhoneNumberContext
         | 
| 46 | 
            +
                                # @param [Version] version Version that contains the resource
         | 
| 47 | 
            +
                                # @param [String] port_in_request_sid The SID of the Port In request. This is a unique identifier of the port in request.
         | 
| 48 | 
            +
                                # @param [String] phone_number_sid The SID of the Port In request phone number. This is a unique identifier of the phone number.
         | 
| 49 | 
            +
                                # @return [PortingPortInPhoneNumberContext] PortingPortInPhoneNumberContext
         | 
| 50 | 
            +
                                def initialize(version, port_in_request_sid, phone_number_sid)
         | 
| 51 | 
            +
                                    super(version)
         | 
| 52 | 
            +
             | 
| 53 | 
            +
                                    # Path Solution
         | 
| 54 | 
            +
                                    @solution = { port_in_request_sid: port_in_request_sid, phone_number_sid: phone_number_sid,  }
         | 
| 55 | 
            +
                                    @uri = "/Porting/PortIn/#{@solution[:port_in_request_sid]}/PhoneNumber/#{@solution[:phone_number_sid]}"
         | 
| 56 | 
            +
             | 
| 57 | 
            +
                                    
         | 
| 58 | 
            +
                                end
         | 
| 59 | 
            +
                                ##
         | 
| 60 | 
            +
                                # Delete the PortingPortInPhoneNumberInstance
         | 
| 61 | 
            +
                                # @return [Boolean] True if delete succeeds, false otherwise
         | 
| 62 | 
            +
                                def delete
         | 
| 63 | 
            +
             | 
| 64 | 
            +
                                    
         | 
| 65 | 
            +
                                    @version.delete('DELETE', @uri)
         | 
| 66 | 
            +
                                end
         | 
| 67 | 
            +
             | 
| 68 | 
            +
             | 
| 69 | 
            +
                                ##
         | 
| 70 | 
            +
                                # Provide a user friendly representation
         | 
| 71 | 
            +
                                def to_s
         | 
| 72 | 
            +
                                    context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
         | 
| 73 | 
            +
                                    "#<Twilio.Numbers.V1.PortingPortInPhoneNumberContext #{context}>"
         | 
| 74 | 
            +
                                end
         | 
| 75 | 
            +
             | 
| 76 | 
            +
                                ##
         | 
| 77 | 
            +
                                # Provide a detailed, user friendly representation
         | 
| 78 | 
            +
                                def inspect
         | 
| 79 | 
            +
                                    context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
         | 
| 80 | 
            +
                                    "#<Twilio.Numbers.V1.PortingPortInPhoneNumberContext #{context}>"
         | 
| 81 | 
            +
                                end
         | 
| 82 | 
            +
                            end
         | 
| 83 | 
            +
             | 
| 84 | 
            +
                            class PortingPortInPhoneNumberPage < Page
         | 
| 85 | 
            +
                                ##
         | 
| 86 | 
            +
                                # Initialize the PortingPortInPhoneNumberPage
         | 
| 87 | 
            +
                                # @param [Version] version Version that contains the resource
         | 
| 88 | 
            +
                                # @param [Response] response Response from the API
         | 
| 89 | 
            +
                                # @param [Hash] solution Path solution for the resource
         | 
| 90 | 
            +
                                # @return [PortingPortInPhoneNumberPage] PortingPortInPhoneNumberPage
         | 
| 91 | 
            +
                                def initialize(version, response, solution)
         | 
| 92 | 
            +
                                    super(version, response)
         | 
| 93 | 
            +
             | 
| 94 | 
            +
                                    # Path Solution
         | 
| 95 | 
            +
                                    @solution = solution
         | 
| 96 | 
            +
                                end
         | 
| 97 | 
            +
             | 
| 98 | 
            +
                                ##
         | 
| 99 | 
            +
                                # Build an instance of PortingPortInPhoneNumberInstance
         | 
| 100 | 
            +
                                # @param [Hash] payload Payload response from the API
         | 
| 101 | 
            +
                                # @return [PortingPortInPhoneNumberInstance] PortingPortInPhoneNumberInstance
         | 
| 102 | 
            +
                                def get_instance(payload)
         | 
| 103 | 
            +
                                    PortingPortInPhoneNumberInstance.new(@version, payload)
         | 
| 104 | 
            +
                                end
         | 
| 105 | 
            +
             | 
| 106 | 
            +
                                ##
         | 
| 107 | 
            +
                                # Provide a user friendly representation
         | 
| 108 | 
            +
                                def to_s
         | 
| 109 | 
            +
                                    '<Twilio.Numbers.V1.PortingPortInPhoneNumberPage>'
         | 
| 110 | 
            +
                                end
         | 
| 111 | 
            +
                            end
         | 
| 112 | 
            +
                            class PortingPortInPhoneNumberInstance < InstanceResource
         | 
| 113 | 
            +
                                ##
         | 
| 114 | 
            +
                                # Initialize the PortingPortInPhoneNumberInstance
         | 
| 115 | 
            +
                                # @param [Version] version Version that contains the resource
         | 
| 116 | 
            +
                                # @param [Hash] payload payload that contains response from Twilio
         | 
| 117 | 
            +
                                # @param [String] account_sid The SID of the
         | 
| 118 | 
            +
                                #   {Account}[https://www.twilio.com/docs/iam/api/account] that created this PortingPortInPhoneNumber
         | 
| 119 | 
            +
                                #   resource.
         | 
| 120 | 
            +
                                # @param [String] sid The SID of the Call resource to fetch.
         | 
| 121 | 
            +
                                # @return [PortingPortInPhoneNumberInstance] PortingPortInPhoneNumberInstance
         | 
| 122 | 
            +
                                def initialize(version , port_in_request_sid: nil, phone_number_sid: nil)
         | 
| 123 | 
            +
                                    super(version)
         | 
| 124 | 
            +
                                    
         | 
| 125 | 
            +
             | 
| 126 | 
            +
                                    # Context
         | 
| 127 | 
            +
                                    @instance_context = nil
         | 
| 128 | 
            +
                                    @params = { 'port_in_request_sid' => port_in_request_sid  || @properties['port_in_request_sid']  ,'phone_number_sid' => phone_number_sid  || @properties['phone_number_sid']  , }
         | 
| 129 | 
            +
                                end
         | 
| 130 | 
            +
             | 
| 131 | 
            +
                                ##
         | 
| 132 | 
            +
                                # Generate an instance context for the instance, the context is capable of
         | 
| 133 | 
            +
                                # performing various actions.  All instance actions are proxied to the context
         | 
| 134 | 
            +
                                # @return [PortingPortInPhoneNumberContext] CallContext for this CallInstance
         | 
| 135 | 
            +
                                def context
         | 
| 136 | 
            +
                                    unless @instance_context
         | 
| 137 | 
            +
                                        @instance_context = PortingPortInPhoneNumberContext.new(@version , @params['port_in_request_sid'], @params['phone_number_sid'])
         | 
| 138 | 
            +
                                    end
         | 
| 139 | 
            +
                                    @instance_context
         | 
| 140 | 
            +
                                end
         | 
| 141 | 
            +
                                
         | 
| 142 | 
            +
                                ##
         | 
| 143 | 
            +
                                # Delete the PortingPortInPhoneNumberInstance
         | 
| 144 | 
            +
                                # @return [Boolean] True if delete succeeds, false otherwise
         | 
| 145 | 
            +
                                def delete
         | 
| 146 | 
            +
             | 
| 147 | 
            +
                                    context.delete
         | 
| 148 | 
            +
                                end
         | 
| 149 | 
            +
             | 
| 150 | 
            +
                                ##
         | 
| 151 | 
            +
                                # Provide a user friendly representation
         | 
| 152 | 
            +
                                def to_s
         | 
| 153 | 
            +
                                    values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
         | 
| 154 | 
            +
                                    "<Twilio.Numbers.V1.PortingPortInPhoneNumberInstance #{values}>"
         | 
| 155 | 
            +
                                end
         | 
| 156 | 
            +
             | 
| 157 | 
            +
                                ##
         | 
| 158 | 
            +
                                # Provide a detailed, user friendly representation
         | 
| 159 | 
            +
                                def inspect
         | 
| 160 | 
            +
                                    values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
         | 
| 161 | 
            +
                                    "<Twilio.Numbers.V1.PortingPortInPhoneNumberInstance #{values}>"
         | 
| 162 | 
            +
                                end
         | 
| 163 | 
            +
                            end
         | 
| 164 | 
            +
             | 
| 165 | 
            +
                        end
         | 
| 166 | 
            +
                    end
         | 
| 167 | 
            +
                end
         | 
| 168 | 
            +
            end
         | 
| @@ -26,6 +26,7 @@ module Twilio | |
| 26 26 | 
             
                                @porting_bulk_portabilities = nil
         | 
| 27 27 | 
             
                                @porting_port_ins = nil
         | 
| 28 28 | 
             
                                @porting_port_ins_fetch = nil
         | 
| 29 | 
            +
                                @porting_port_in_phone_number = nil
         | 
| 29 30 | 
             
                                @porting_portabilities = nil
         | 
| 30 31 | 
             
                            end
         | 
| 31 32 |  | 
| @@ -63,9 +64,18 @@ module Twilio | |
| 63 64 | 
             
                                end
         | 
| 64 65 | 
             
                            end
         | 
| 65 66 | 
             
                            ##
         | 
| 67 | 
            +
                            # @param [String] port_in_request_sid The SID of the Port In request. This is a unique identifier of the port in request.
         | 
| 68 | 
            +
                            # @return [Twilio::REST::Numbers::V1::PortingPortInContext] if portInRequestSid was passed.
         | 
| 66 69 | 
             
                            # @return [Twilio::REST::Numbers::V1::PortingPortInList]
         | 
| 67 | 
            -
                            def porting_port_ins
         | 
| 68 | 
            -
                                 | 
| 70 | 
            +
                            def porting_port_ins(port_in_request_sid=:unset)
         | 
| 71 | 
            +
                                if port_in_request_sid.nil?
         | 
| 72 | 
            +
                                    raise ArgumentError, 'port_in_request_sid cannot be nil'
         | 
| 73 | 
            +
                                end
         | 
| 74 | 
            +
                                if port_in_request_sid == :unset
         | 
| 75 | 
            +
                                    @porting_port_ins ||= PortingPortInList.new self
         | 
| 76 | 
            +
                                else
         | 
| 77 | 
            +
                                    PortingPortInContext.new(self, port_in_request_sid)
         | 
| 78 | 
            +
                                end
         | 
| 69 79 | 
             
                            end
         | 
| 70 80 | 
             
                            ##
         | 
| 71 81 | 
             
                            # @param [String] port_in_request_sid The SID of the Port In request. This is a unique identifier of the port in request.
         | 
| @@ -82,6 +92,42 @@ module Twilio | |
| 82 92 | 
             
                                end
         | 
| 83 93 | 
             
                            end
         | 
| 84 94 | 
             
                            ##
         | 
| 95 | 
            +
                            # @param [String] port_in_request_sid The SID of the Port In request. This is a unique identifier of the port in request.
         | 
| 96 | 
            +
                            # @param [String] phone_number_sid The SID of the Port In request phone number. This is a unique identifier of the phone number.
         | 
| 97 | 
            +
                            # @return [Twilio::REST::Numbers::V1::PortingPortInPhoneNumberContext] if portInRequestSid was passed.
         | 
| 98 | 
            +
                            # @return [Twilio::REST::Numbers::V1::PortingPortInPhoneNumberList]
         | 
| 99 | 
            +
                            def porting_port_in_phone_number(port_in_request_sid=:unset, phone_number_sid=:unset)
         | 
| 100 | 
            +
                                if port_in_request_sid.nil?
         | 
| 101 | 
            +
                                    raise ArgumentError, 'port_in_request_sid cannot be nil'
         | 
| 102 | 
            +
                                end
         | 
| 103 | 
            +
                                if phone_number_sid.nil?
         | 
| 104 | 
            +
                                    raise ArgumentError, 'phone_number_sid cannot be nil'
         | 
| 105 | 
            +
                                end
         | 
| 106 | 
            +
                                if port_in_request_sid == :unset && phone_number_sid == :unset
         | 
| 107 | 
            +
                                    @porting_port_in_phone_number ||= PortingPortInPhoneNumberList.new self
         | 
| 108 | 
            +
                                else
         | 
| 109 | 
            +
                                    PortingPortInPhoneNumberContext.new(self, port_in_request_sid, phone_number_sid)
         | 
| 110 | 
            +
                                end
         | 
| 111 | 
            +
                            end
         | 
| 112 | 
            +
                            ##
         | 
| 113 | 
            +
                            # @param [String] port_in_request_sid The SID of the Port In request. This is a unique identifier of the port in request.
         | 
| 114 | 
            +
                            # @param [String] phone_number_sid The SID of the Port In request phone number. This is a unique identifier of the phone number.
         | 
| 115 | 
            +
                            # @return [Twilio::REST::Numbers::V1::PortingPortInPhoneNumberContext] if phoneNumberSid was passed.
         | 
| 116 | 
            +
                            # @return [Twilio::REST::Numbers::V1::PortingPortInPhoneNumberList]
         | 
| 117 | 
            +
                            def porting_port_in_phone_number(port_in_request_sid=:unset, phone_number_sid=:unset)
         | 
| 118 | 
            +
                                if port_in_request_sid.nil?
         | 
| 119 | 
            +
                                    raise ArgumentError, 'port_in_request_sid cannot be nil'
         | 
| 120 | 
            +
                                end
         | 
| 121 | 
            +
                                if phone_number_sid.nil?
         | 
| 122 | 
            +
                                    raise ArgumentError, 'phone_number_sid cannot be nil'
         | 
| 123 | 
            +
                                end
         | 
| 124 | 
            +
                                if port_in_request_sid == :unset && phone_number_sid == :unset
         | 
| 125 | 
            +
                                    @porting_port_in_phone_number ||= PortingPortInPhoneNumberList.new self
         | 
| 126 | 
            +
                                else
         | 
| 127 | 
            +
                                    PortingPortInPhoneNumberContext.new(self, port_in_request_sid, phone_number_sid)
         | 
| 128 | 
            +
                                end
         | 
| 129 | 
            +
                            end
         | 
| 130 | 
            +
                            ##
         | 
| 85 131 | 
             
                            # @param [String] phone_number The phone number which portability is to be checked. Phone numbers are in E.164 format (e.g. +16175551212).
         | 
| 86 132 | 
             
                            # @return [Twilio::REST::Numbers::V1::PortingPortabilityContext] if phoneNumber was passed.
         | 
| 87 133 | 
             
                            # @return [Twilio::REST::Numbers::V1::PortingPortabilityList]
         | 
    
        data/lib/twilio-ruby/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: twilio-ruby
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 7.0. | 
| 4 | 
            +
              version: 7.0.2
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Twilio API Team
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2024-04- | 
| 11 | 
            +
            date: 2024-04-18 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: jwt
         | 
| @@ -448,6 +448,7 @@ files: | |
| 448 448 | 
             
            - lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb
         | 
| 449 449 | 
             
            - lib/twilio-ruby/rest/flex_api/v1/web_channel.rb
         | 
| 450 450 | 
             
            - lib/twilio-ruby/rest/flex_api/v2.rb
         | 
| 451 | 
            +
            - lib/twilio-ruby/rest/flex_api/v2/flex_user.rb
         | 
| 451 452 | 
             
            - lib/twilio-ruby/rest/flex_api/v2/web_channels.rb
         | 
| 452 453 | 
             
            - lib/twilio-ruby/rest/flex_api_base.rb
         | 
| 453 454 | 
             
            - lib/twilio-ruby/rest/frontline_api.rb
         | 
| @@ -558,6 +559,7 @@ files: | |
| 558 559 | 
             
            - lib/twilio-ruby/rest/numbers/v1/porting_bulk_portability.rb
         | 
| 559 560 | 
             
            - lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb
         | 
| 560 561 | 
             
            - lib/twilio-ruby/rest/numbers/v1/porting_port_in_fetch.rb
         | 
| 562 | 
            +
            - lib/twilio-ruby/rest/numbers/v1/porting_port_in_phone_number.rb
         | 
| 561 563 | 
             
            - lib/twilio-ruby/rest/numbers/v1/porting_portability.rb
         | 
| 562 564 | 
             
            - lib/twilio-ruby/rest/numbers/v2.rb
         | 
| 563 565 | 
             
            - lib/twilio-ruby/rest/numbers/v2/authorization_document.rb
         |