Class: Telnyx::Models::ChargesBreakdownRetrieveResponse::Data::Result
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Telnyx::Models::ChargesBreakdownRetrieveResponse::Data::Result
- Defined in:
- lib/telnyx/models/charges_breakdown_retrieve_response.rb
Defined Under Namespace
Classes: Service
Instance Attribute Summary collapse
-
#charge_type ⇒ String
Type of charge for the number.
-
#service_owner_email ⇒ String
Email address of the service owner.
-
#service_owner_user_id ⇒ String
User ID of the service owner.
-
#services ⇒ Array<Telnyx::Models::ChargesBreakdownRetrieveResponse::Data::Result::Service>
List of services associated with this number.
-
#tn ⇒ String
Phone number.
Instance Method Summary collapse
- #initialize(currency:, end_date:, results:, start_date:, user_email:, user_id:) ⇒ Object constructor
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(currency:, end_date:, results:, start_date:, user_email:, user_id:) ⇒ Object
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 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 |
# File 'lib/telnyx/models/charges_breakdown_retrieve_response.rb', line 67 class Result < Telnyx::Internal::Type::BaseModel # @!attribute charge_type # Type of charge for the number # # @return [String] required :charge_type, String # @!attribute service_owner_email # Email address of the service owner # # @return [String] required :service_owner_email, String # @!attribute service_owner_user_id # User ID of the service owner # # @return [String] required :service_owner_user_id, String # @!attribute services # List of services associated with this number # # @return [Array<Telnyx::Models::ChargesBreakdownRetrieveResponse::Data::Result::Service>] required :services, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::Models::ChargesBreakdownRetrieveResponse::Data::Result::Service] } # @!attribute tn # Phone number # # @return [String] required :tn, String # @!method initialize(charge_type:, service_owner_email:, service_owner_user_id:, services:, tn:) # @param charge_type [String] Type of charge for the number # # @param service_owner_email [String] Email address of the service owner # # @param service_owner_user_id [String] User ID of the service owner # # @param services [Array<Telnyx::Models::ChargesBreakdownRetrieveResponse::Data::Result::Service>] List of services associated with this number # # @param tn [String] Phone number class Service < Telnyx::Internal::Type::BaseModel # @!attribute cost # Cost per unit as decimal string # # @return [String] required :cost, String # @!attribute cost_type # Type of cost (MRC or OTC) # # @return [String] required :cost_type, String # @!attribute name # Service name # # @return [String] required :name, String # @!method initialize(cost:, cost_type:, name:) # @param cost [String] Cost per unit as decimal string # # @param cost_type [String] Type of cost (MRC or OTC) # # @param name [String] Service name end end |
Instance Attribute Details
#charge_type ⇒ String
Type of charge for the number
72 |
# File 'lib/telnyx/models/charges_breakdown_retrieve_response.rb', line 72 required :charge_type, String |
#service_owner_email ⇒ String
Email address of the service owner
78 |
# File 'lib/telnyx/models/charges_breakdown_retrieve_response.rb', line 78 required :service_owner_email, String |
#service_owner_user_id ⇒ String
User ID of the service owner
84 |
# File 'lib/telnyx/models/charges_breakdown_retrieve_response.rb', line 84 required :service_owner_user_id, String |
#services ⇒ Array<Telnyx::Models::ChargesBreakdownRetrieveResponse::Data::Result::Service>
List of services associated with this number
90 91 |
# File 'lib/telnyx/models/charges_breakdown_retrieve_response.rb', line 90 required :services, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::Models::ChargesBreakdownRetrieveResponse::Data::Result::Service] } |
#tn ⇒ String
Phone number
97 |
# File 'lib/telnyx/models/charges_breakdown_retrieve_response.rb', line 97 required :tn, String |