Class: Telnyx::Resources::Porting

Inherits:
Object
  • Object
show all
Defined in:
lib/telnyx/resources/porting.rb,
lib/telnyx/resources/porting/events.rb,
lib/telnyx/resources/porting/reports.rb,
lib/telnyx/resources/porting/loa_configurations.rb

Overview

Endpoints related to porting orders management.

Defined Under Namespace

Classes: Events, LoaConfigurations, Reports

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ Porting

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Porting.

Parameters:



40
41
42
43
44
45
# File 'lib/telnyx/resources/porting.rb', line 40

def initialize(client:)
  @client = client
  @events = Telnyx::Resources::Porting::Events.new(client: client)
  @reports = Telnyx::Resources::Porting::Reports.new(client: client)
  @loa_configurations = Telnyx::Resources::Porting::LoaConfigurations.new(client: client)
end

Instance Attribute Details

#eventsTelnyx::Resources::Porting::Events (readonly)

Endpoints related to porting orders management.



9
10
11
# File 'lib/telnyx/resources/porting.rb', line 9

def events
  @events
end

#loa_configurationsTelnyx::Resources::Porting::LoaConfigurations (readonly)

Endpoints related to porting orders management.



17
18
19
# File 'lib/telnyx/resources/porting.rb', line 17

def loa_configurations
  @loa_configurations
end

#reportsTelnyx::Resources::Porting::Reports (readonly)

Endpoints related to porting orders management.



13
14
15
# File 'lib/telnyx/resources/porting.rb', line 13

def reports
  @reports
end

Instance Method Details

#list_uk_carriers(request_options: {}) ⇒ Telnyx::Models::PortingListUkCarriersResponse

List available carriers in the UK.

Parameters:

Returns:

See Also:



28
29
30
31
32
33
34
35
# File 'lib/telnyx/resources/porting.rb', line 28

def list_uk_carriers(params = {})
  @client.request(
    method: :get,
    path: "porting/uk_carriers",
    model: Telnyx::Models::PortingListUkCarriersResponse,
    options: params[:request_options]
  )
end