Class: Trycourier::Models::TenantUpdateParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/trycourier/models/tenant_update_params.rb

Overview

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

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(name: , brand_id: nil, default_preferences: nil, parent_tenant_id: nil, properties: nil, user_profile: nil, request_options: {}) ⇒ Object

Some parameter documentations has been truncated, see Trycourier::Models::TenantUpdateParams for more details.

Parameters:

  • name (String) (defaults to: )

    Name of the tenant.

  • brand_id (String, nil) (defaults to: nil)

    Brand to be used for the account when one is not specified by the send call.

  • default_preferences (Trycourier::Models::DefaultPreferences, nil) (defaults to: nil)

    Defines the preferences used for the tenant when the user hasn’t specified their

  • parent_tenant_id (String, nil) (defaults to: nil)

    Tenant’s parent id (if any).

  • properties (Hash{Symbol=>Object}, nil) (defaults to: nil)

    Arbitrary properties accessible to a template.

  • user_profile (Hash{Symbol=>Object}, nil) (defaults to: nil)

    A user profile object merged with user profile on send.

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


# File 'lib/trycourier/models/tenant_update_params.rb', line 51


Instance Attribute Details

#brand_idString?

Brand to be used for the account when one is not specified by the send call.

Returns:

  • (String, nil)


20
# File 'lib/trycourier/models/tenant_update_params.rb', line 20

optional :brand_id, String, nil?: true

#default_preferencesTrycourier::Models::DefaultPreferences?

Defines the preferences used for the tenant when the user hasn’t specified their own.



27
# File 'lib/trycourier/models/tenant_update_params.rb', line 27

optional :default_preferences, -> { Trycourier::DefaultPreferences }, nil?: true

#nameString

Name of the tenant.

Returns:

  • (String)


14
# File 'lib/trycourier/models/tenant_update_params.rb', line 14

required :name, String

#parent_tenant_idString?

Tenant’s parent id (if any).

Returns:

  • (String, nil)


33
# File 'lib/trycourier/models/tenant_update_params.rb', line 33

optional :parent_tenant_id, String, nil?: true

#propertiesHash{Symbol=>Object}?

Arbitrary properties accessible to a template.

Returns:

  • (Hash{Symbol=>Object}, nil)


39
40
41
# File 'lib/trycourier/models/tenant_update_params.rb', line 39

optional :properties,
Trycourier::Internal::Type::HashOf[Trycourier::Internal::Type::Unknown],
nil?: true

#user_profileHash{Symbol=>Object}?

A user profile object merged with user profile on send.

Returns:

  • (Hash{Symbol=>Object}, nil)


47
48
49
# File 'lib/trycourier/models/tenant_update_params.rb', line 47

optional :user_profile,
Trycourier::Internal::Type::HashOf[Trycourier::Internal::Type::Unknown],
nil?: true