Class: Telnyx::Models::Enterprises::DirCreateParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/telnyx/models/enterprises/dir_create_params.rb

Overview

Defined Under Namespace

Modules: CertifyBrandIsAccurate, CertifyIPOwnership, CertifyNoShaftContent Classes: Document

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

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(enterprise_id:, authorizer_email:, authorizer_name:, certify_brand_is_accurate:, certify_ip_ownership:, certify_no_shaft_content:, display_name:, call_reasons: nil, documents: nil, logo_url: nil, reselling: nil, request_options: {}) ⇒ Object

Some parameter documentations has been truncated, see Telnyx::Models::Enterprises::DirCreateParams for more details.

Parameters:

  • enterprise_id (String)
  • authorizer_email (String)

    Contact email of the authorizer. Telnyx may send verification or infringement-no

  • authorizer_name (String)

    Name of the person at your enterprise who is authorizing this DIR registration.

  • certify_brand_is_accurate (Boolean, Telnyx::Models::Enterprises::DirCreateParams::CertifyBrandIsAccurate)

    Must be ‘true`.

  • certify_ip_ownership (Boolean, Telnyx::Models::Enterprises::DirCreateParams::CertifyIPOwnership)

    Must be ‘true`. Confirms ownership of any logos/trademarks shown.

  • certify_no_shaft_content (Boolean, Telnyx::Models::Enterprises::DirCreateParams::CertifyNoShaftContent)

    Must be ‘true`. Confirms this DIR is not used for SHAFT content (Sex, Hate, Alco

  • display_name (String)

    Name shown to call recipients. No emoji; not whitespace-only.

  • call_reasons (Array<String>) (defaults to: nil)

    1–10 reasons your business calls customers. Validate phrasing against ‘POST /cal

  • documents (Array<Telnyx::Models::Enterprises::DirCreateParams::Document>) (defaults to: nil)

    Supporting documents. Each ‘document_id` may appear at most once on a DIR.

  • logo_url (String) (defaults to: nil)

    Publicly accessible HTTPS URL (max 128 chars) to a 256x256 BMP logo (max 1 MB).

  • reselling (Boolean) (defaults to: nil)

    Set to true if your organization places calls on behalf of other enterprises (BP

  • request_options (Telnyx::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})


# File 'lib/telnyx/models/enterprises/dir_create_params.rb', line 84

Instance Attribute Details

#authorizer_emailString

Contact email of the authorizer. Telnyx may send verification or infringement-notice email here; use a monitored mailbox.

Returns:

  • (String)


21
# File 'lib/telnyx/models/enterprises/dir_create_params.rb', line 21

required :authorizer_email, String

#authorizer_nameString

Name of the person at your enterprise who is authorizing this DIR registration. Must be a real individual (used for audit and trademark-claim contests).

Returns:

  • (String)


28
# File 'lib/telnyx/models/enterprises/dir_create_params.rb', line 28

required :authorizer_name, String

#call_reasonsArray<String>?

1–10 reasons your business calls customers. Validate phrasing against ‘POST /call_reasons/validate`.

Returns:

  • (Array<String>, nil)


62
# File 'lib/telnyx/models/enterprises/dir_create_params.rb', line 62

optional :call_reasons, Telnyx::Internal::Type::ArrayOf[String]

#certify_brand_is_accurateBoolean, Telnyx::Models::Enterprises::DirCreateParams::CertifyBrandIsAccurate

Must be ‘true`.



34
35
# File 'lib/telnyx/models/enterprises/dir_create_params.rb', line 34

required :certify_brand_is_accurate,
enum: -> { Telnyx::Enterprises::DirCreateParams::CertifyBrandIsAccurate }

#certify_ip_ownershipBoolean, Telnyx::Models::Enterprises::DirCreateParams::CertifyIPOwnership

Must be ‘true`. Confirms ownership of any logos/trademarks shown.



41
# File 'lib/telnyx/models/enterprises/dir_create_params.rb', line 41

required :certify_ip_ownership, enum: -> { Telnyx::Enterprises::DirCreateParams::CertifyIPOwnership }

#certify_no_shaft_contentBoolean, Telnyx::Models::Enterprises::DirCreateParams::CertifyNoShaftContent

Must be ‘true`. Confirms this DIR is not used for SHAFT content (Sex, Hate, Alcohol, Firearms, Tobacco) where prohibited.



48
49
# File 'lib/telnyx/models/enterprises/dir_create_params.rb', line 48

required :certify_no_shaft_content,
enum: -> { Telnyx::Enterprises::DirCreateParams::CertifyNoShaftContent }

#display_nameString

Name shown to call recipients. No emoji; not whitespace-only.

Returns:

  • (String)


55
# File 'lib/telnyx/models/enterprises/dir_create_params.rb', line 55

required :display_name, String

#documentsArray<Telnyx::Models::Enterprises::DirCreateParams::Document>?

Supporting documents. Each ‘document_id` may appear at most once on a DIR.



68
69
# File 'lib/telnyx/models/enterprises/dir_create_params.rb', line 68

optional :documents,
-> { Telnyx::Internal::Type::ArrayOf[Telnyx::Enterprises::DirCreateParams::Document] }

#enterprise_idString

Returns:

  • (String)


14
# File 'lib/telnyx/models/enterprises/dir_create_params.rb', line 14

required :enterprise_id, String

#logo_urlString?

Publicly accessible HTTPS URL (max 128 chars) to a 256x256 BMP logo (max 1 MB).

Returns:

  • (String, nil)


75
# File 'lib/telnyx/models/enterprises/dir_create_params.rb', line 75

optional :logo_url, String

#resellingBoolean?

Set to true if your organization places calls on behalf of other enterprises (BPO/reseller).

Returns:

  • (Boolean, nil)


82
# File 'lib/telnyx/models/enterprises/dir_create_params.rb', line 82

optional :reselling, Telnyx::Internal::Type::Boolean

Class Method Details

.valuesArray<Boolean>

Returns:

  • (Array<Boolean>)


# File 'lib/telnyx/models/enterprises/dir_create_params.rb', line 118