Class: Zavudev::Models::CallRetrieveResponse::Call
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Zavudev::Models::CallRetrieveResponse::Call
- Defined in:
- lib/zavudev/models/call_retrieve_response.rb,
sig/zavudev/models/call_retrieve_response.rbs
Overview
Defined Under Namespace
Modules: Direction, Status Classes: Transcript
Instance Attribute Summary collapse
-
#answered_at ⇒ Time?
When the call was answered.
-
#cost ⇒ Float?
Total cost of the call in USD, combining the managed voice pipeline per-minute charge and telephony.
- #created_at ⇒ Time
-
#direction ⇒ Symbol, Zavudev::Models::CallRetrieveResponse::Call::Direction
Whether the call was placed by Zavu (outbound) or received from a caller (inbound).
-
#duration_seconds ⇒ Integer?
Billable talk time in seconds, measured from answer to hangup.
-
#end_reason ⇒ String?
Why the call ended (e.g.
agent_ended,max_duration,transfer,hangup). -
#ended_at ⇒ Time?
When the call ended.
-
#from ⇒ String
Caller phone number in E.164 format.
- #id ⇒ String
-
#metadata ⇒ Hash{Symbol=>String}?
Arbitrary metadata you attached when creating the call.
-
#status ⇒ Symbol, Zavudev::Models::CallRetrieveResponse::Call::Status
Lifecycle status of a voice call.
-
#to ⇒ String
Callee phone number in E.164 format.
-
#transcript ⇒ Array<Zavudev::Models::CallRetrieveResponse::Call::Transcript>?
Ordered transcript of the call.
-
#turn_count ⇒ Integer?
Number of conversation turns exchanged during the call.
- #updated_at ⇒ Time?
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id:, created_at:, direction:, from:, status:, to:, answered_at: nil, cost: nil, duration_seconds: nil, ended_at: nil, end_reason: nil, metadata: nil, transcript: nil, turn_count: nil, updated_at: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see Call for more details.
- #to_hash ⇒ {
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(id:, created_at:, direction:, from:, status:, to:, answered_at: nil, cost: nil, duration_seconds: nil, ended_at: nil, end_reason: nil, metadata: nil, transcript: nil, turn_count: nil, updated_at: nil) ⇒ Object
Some parameter documentations has been truncated, see Zavudev::Models::CallRetrieveResponse::Call for more details.
|
|
# File 'lib/zavudev/models/call_retrieve_response.rb', line 119
|
Instance Attribute Details
#answered_at ⇒ Time?
When the call was answered.
66 |
# File 'lib/zavudev/models/call_retrieve_response.rb', line 66 optional :answered_at, Time, api_name: :answeredAt, nil?: true |
#cost ⇒ Float?
Total cost of the call in USD, combining the managed voice pipeline per-minute charge and telephony. Available once the call has ended.
73 |
# File 'lib/zavudev/models/call_retrieve_response.rb', line 73 optional :cost, Float, nil?: true |
#created_at ⇒ Time
25 |
# File 'lib/zavudev/models/call_retrieve_response.rb', line 25 required :created_at, Time, api_name: :createdAt |
#direction ⇒ Symbol, Zavudev::Models::CallRetrieveResponse::Call::Direction
Whether the call was placed by Zavu (outbound) or received from a caller (inbound).
32 |
# File 'lib/zavudev/models/call_retrieve_response.rb', line 32 required :direction, enum: -> { Zavudev::Models::CallRetrieveResponse::Call::Direction } |
#duration_seconds ⇒ Integer?
Billable talk time in seconds, measured from answer to hangup.
79 |
# File 'lib/zavudev/models/call_retrieve_response.rb', line 79 optional :duration_seconds, Integer, api_name: :durationSeconds, nil?: true |
#end_reason ⇒ String?
Why the call ended (e.g. agent_ended, max_duration, transfer, hangup).
Present once the call is no longer active.
92 |
# File 'lib/zavudev/models/call_retrieve_response.rb', line 92 optional :end_reason, String, api_name: :endReason, nil?: true |
#ended_at ⇒ Time?
When the call ended.
85 |
# File 'lib/zavudev/models/call_retrieve_response.rb', line 85 optional :ended_at, Time, api_name: :endedAt, nil?: true |
#from ⇒ String
Caller phone number in E.164 format. Your sender's number for outbound calls; the caller's number for inbound calls.
39 |
# File 'lib/zavudev/models/call_retrieve_response.rb', line 39 required :from, String |
#id ⇒ String
20 |
# File 'lib/zavudev/models/call_retrieve_response.rb', line 20 required :id, String |
#metadata ⇒ Hash{Symbol=>String}?
Arbitrary metadata you attached when creating the call.
98 |
# File 'lib/zavudev/models/call_retrieve_response.rb', line 98 optional :metadata, Zavudev::Internal::Type::HashOf[String] |
#status ⇒ Symbol, Zavudev::Models::CallRetrieveResponse::Call::Status
Lifecycle status of a voice call.
queued: outbound call created, not yet dialing.ringing: dialing (outbound) or received and ringing (inbound).in_progress: answered, the agent is connected.completed: ended after a conversation.failed: could not be completed.busy: the line was busy.no_answer: rang but was not answered.canceled: canceled before it was answered.
54 |
# File 'lib/zavudev/models/call_retrieve_response.rb', line 54 required :status, enum: -> { Zavudev::Models::CallRetrieveResponse::Call::Status } |
#to ⇒ String
Callee phone number in E.164 format.
60 |
# File 'lib/zavudev/models/call_retrieve_response.rb', line 60 required :to, String |
#transcript ⇒ Array<Zavudev::Models::CallRetrieveResponse::Call::Transcript>?
Ordered transcript of the call. Included when retrieving a single call; omitted from list responses.
105 106 |
# File 'lib/zavudev/models/call_retrieve_response.rb', line 105 optional :transcript, -> { Zavudev::Internal::Type::ArrayOf[Zavudev::Models::CallRetrieveResponse::Call::Transcript] } |
#turn_count ⇒ Integer?
Number of conversation turns exchanged during the call.
112 |
# File 'lib/zavudev/models/call_retrieve_response.rb', line 112 optional :turn_count, Integer, api_name: :turnCount, nil?: true |
#updated_at ⇒ Time?
117 |
# File 'lib/zavudev/models/call_retrieve_response.rb', line 117 optional :updated_at, Time, api_name: :updatedAt |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/zavudev/models/call_retrieve_response.rb', line 163
|
Instance Method Details
#to_hash ⇒ {
91 |
# File 'sig/zavudev/models/call_retrieve_response.rbs', line 91
def to_hash: -> {
|