Class: Telnyx::Models::TermsOfService::TosAgreement
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Telnyx::Models::TermsOfService::TosAgreement
- Defined in:
- lib/telnyx/models/terms_of_service/tos_agreement.rb,
sig/telnyx/models/terms_of_service/tos_agreement.rbs
Overview
Instance Attribute Summary collapse
-
#agreed_at ⇒ Time?
readonly
Returns the value of attribute agreed_at.
-
#created_at ⇒ Time?
readonly
Returns the value of attribute created_at.
-
#id ⇒ String?
readonly
Returns the value of attribute id.
-
#product_type ⇒ Symbol, ...
Telnyx product the Terms of Service apply to.
- #terms_version ⇒ String?
-
#version ⇒ String?
readonly
Returns the value of attribute version.
Instance Method Summary collapse
- #agreed_at ⇒ Time readonly
- #created_at ⇒ Time readonly
- #id ⇒ String readonly
-
#initialize(id: nil, agreed_at: nil, created_at: nil, product_type: nil, terms_version: nil, version: nil) ⇒ Object
constructor
A recorded user agreement to a product's Terms of Service.
- #to_hash ⇒ {
- #version ⇒ String readonly
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: nil, agreed_at: nil, created_at: nil, product_type: nil, terms_version: nil, version: nil) ⇒ Object
A recorded user agreement to a product's Terms of Service. The user_id is
intentionally NOT echoed back on this public surface - the caller already knows
their own identity.
|
|
# File 'lib/telnyx/models/terms_of_service/tos_agreement.rb', line 42
|
Instance Attribute Details
#agreed_at ⇒ Time? (readonly)
Returns the value of attribute agreed_at.
29 30 31 |
# File 'sig/telnyx/models/terms_of_service/tos_agreement.rbs', line 29 def agreed_at @agreed_at end |
#created_at ⇒ Time? (readonly)
Returns the value of attribute created_at.
33 34 35 |
# File 'sig/telnyx/models/terms_of_service/tos_agreement.rbs', line 33 def created_at @created_at end |
#id ⇒ String? (readonly)
Returns the value of attribute id.
25 26 27 |
# File 'sig/telnyx/models/terms_of_service/tos_agreement.rbs', line 25 def id @id end |
#product_type ⇒ Symbol, ...
Telnyx product the Terms of Service apply to.
12 |
# File 'lib/telnyx/models/terms_of_service/tos_agreement.rb', line 12 optional :product_type, enum: -> { Telnyx::TermsOfService::TosProductType } |
#terms_version ⇒ String?
17 |
# File 'lib/telnyx/models/terms_of_service/tos_agreement.rb', line 17 optional :terms_version, String |
#version ⇒ String? (readonly)
Returns the value of attribute version.
37 38 39 |
# File 'sig/telnyx/models/terms_of_service/tos_agreement.rbs', line 37 def version @version end |
Instance Method Details
#agreed_at= ⇒ Time (readonly)
31 |
# File 'sig/telnyx/models/terms_of_service/tos_agreement.rbs', line 31
def agreed_at=: (Time) -> Time
|
#created_at= ⇒ Time (readonly)
35 |
# File 'sig/telnyx/models/terms_of_service/tos_agreement.rbs', line 35
def created_at=: (Time) -> Time
|
#id= ⇒ String (readonly)
27 |
# File 'sig/telnyx/models/terms_of_service/tos_agreement.rbs', line 27
def id=: (String) -> String
|
#to_hash ⇒ {
50 |
# File 'sig/telnyx/models/terms_of_service/tos_agreement.rbs', line 50
def to_hash: -> {
|
#version= ⇒ String (readonly)
39 |
# File 'sig/telnyx/models/terms_of_service/tos_agreement.rbs', line 39
def version=: (String) -> String
|