Class: Telnyx::Resources::NumberReservations::Actions

Inherits:
Object
  • Object
show all
Defined in:
lib/telnyx/resources/number_reservations/actions.rb

Overview

Number reservations

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ Actions

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 Actions.

Parameters:



31
32
33
# File 'lib/telnyx/resources/number_reservations/actions.rb', line 31

def initialize(client:)
  @client = client
end

Instance Method Details

#extend_(number_reservation_id, request_options: {}) ⇒ Telnyx::Models::NumberReservations::ActionExtendResponse

Extends reservation expiry time on all phone numbers.

Parameters:

  • number_reservation_id (String)

    The number reservation ID.

  • request_options (Telnyx::RequestOptions, Hash{Symbol=>Object}, nil)

Returns:

See Also:



19
20
21
22
23
24
25
26
# File 'lib/telnyx/resources/number_reservations/actions.rb', line 19

def extend_(number_reservation_id, params = {})
  @client.request(
    method: :post,
    path: ["number_reservations/%1$s/actions/extend", number_reservation_id],
    model: Telnyx::Models::NumberReservations::ActionExtendResponse,
    options: params[:request_options]
  )
end