Class: Telnyx::Models::TermsOfService::AgreementRetrieveResponse::Data

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/terms_of_service/agreement_retrieve_response.rb

Overview

See Also:

Defined Under Namespace

Modules: ProductType

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

Parameters:

  • id (String) (defaults to: nil)
  • agreed_at (Time) (defaults to: nil)
  • created_at (Time) (defaults to: nil)
  • product_type (Symbol, Telnyx::Models::TermsOfService::AgreementRetrieveResponse::Data::ProductType) (defaults to: nil)

    Telnyx product the Terms of Service apply to.

  • terms_version (String) (defaults to: nil)
  • version (String) (defaults to: nil)

    Convenience alias of ‘terms_version`. Both keys are present on every response.



# File 'lib/telnyx/models/terms_of_service/agreement_retrieve_response.rb', line 59

Instance Attribute Details

#product_typeSymbol, ...

Telnyx product the Terms of Service apply to.



28
29
# File 'lib/telnyx/models/terms_of_service/agreement_retrieve_response.rb', line 28

optional :product_type,
enum: -> { Telnyx::Models::TermsOfService::AgreementRetrieveResponse::Data::ProductType }

#terms_versionString?

Returns:

  • (String, nil)


34
# File 'lib/telnyx/models/terms_of_service/agreement_retrieve_response.rb', line 34

optional :terms_version, String