Class: Telnyx::Models::NumberReservationListParams::Filter

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/number_reservation_list_params.rb,
sig/telnyx/models/number_reservation_list_params.rbs

Defined Under Namespace

Classes: CreatedAt

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(created_at: nil, customer_reference: nil, phone_numbers_phone_number: nil, status: nil) ⇒ Object

Consolidated filter parameter (deepObject style). Originally: filter, filter, filter, filter



40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# File 'lib/telnyx/models/number_reservation_list_params.rb', line 40

class Filter < Telnyx::Internal::Type::BaseModel
  # @!attribute created_at
  #   Filter number reservations by date range.
  #
  #   @return [Telnyx::Models::NumberReservationListParams::Filter::CreatedAt, nil]
  optional :created_at, -> { Telnyx::NumberReservationListParams::Filter::CreatedAt }

  # @!attribute customer_reference
  #   Filter number reservations via the customer reference set.
  #
  #   @return [String, nil]
  optional :customer_reference, String

  # @!attribute phone_numbers_phone_number
  #   Filter number reservations having these phone numbers.
  #
  #   @return [String, nil]
  optional :phone_numbers_phone_number, String, api_name: :"phone_numbers.phone_number"

  # @!attribute status
  #   Filter number reservations by status.
  #
  #   @return [String, nil]
  optional :status, String

  # @!method initialize(created_at: nil, customer_reference: nil, phone_numbers_phone_number: nil, status: nil)
  #   Consolidated filter parameter (deepObject style). Originally: filter[status],
  #   filter[created_at], filter[phone_numbers.phone_number],
  #   filter[customer_reference]
  #
  #   @param created_at [Telnyx::Models::NumberReservationListParams::Filter::CreatedAt] Filter number reservations by date range.
  #
  #   @param customer_reference [String] Filter number reservations via the customer reference set.
  #
  #   @param phone_numbers_phone_number [String] Filter number reservations having these phone numbers.
  #
  #   @param status [String] Filter number reservations by status.

  # @see Telnyx::Models::NumberReservationListParams::Filter#created_at
  class CreatedAt < Telnyx::Internal::Type::BaseModel
    # @!attribute gt
    #   Filter number reservations later than this value.
    #
    #   @return [String, nil]
    optional :gt, String

    # @!attribute lt
    #   Filter number reservations earlier than this value.
    #
    #   @return [String, nil]
    optional :lt, String

    # @!method initialize(gt: nil, lt: nil)
    #   Filter number reservations by date range.
    #
    #   @param gt [String] Filter number reservations later than this value.
    #
    #   @param lt [String] Filter number reservations earlier than this value.
  end
end

Instance Attribute Details

#created_atTelnyx::Models::NumberReservationListParams::Filter::CreatedAt?

Filter number reservations by date range.



45
# File 'lib/telnyx/models/number_reservation_list_params.rb', line 45

optional :created_at, -> { Telnyx::NumberReservationListParams::Filter::CreatedAt }

#customer_referenceString?

Filter number reservations via the customer reference set.



51
# File 'lib/telnyx/models/number_reservation_list_params.rb', line 51

optional :customer_reference, String

#phone_numbers_phone_numberString?

Filter number reservations having these phone numbers.



57
# File 'lib/telnyx/models/number_reservation_list_params.rb', line 57

optional :phone_numbers_phone_number, String, api_name: :"phone_numbers.phone_number"

#statusString?

Filter number reservations by status.



63
# File 'lib/telnyx/models/number_reservation_list_params.rb', line 63

optional :status, String

Instance Method Details

#to_hash{



77
# File 'sig/telnyx/models/number_reservation_list_params.rbs', line 77

def to_hash: -> {