Class: Stigg::Models::V1::SubscriptionProvisionResponse::Data::Entitlement::UnionObjectVariant1::Currency

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/stigg/models/v1/subscription_provision_response.rb,
sig/stigg/models/v1/subscription_provision_response.rbs

Overview

See Also:

  • Stigg::Models::V1::SubscriptionProvisionResponse::Data::Entitlement::UnionObjectVariant1#currency

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

#initializeObject



416
# File 'sig/stigg/models/v1/subscription_provision_response.rbs', line 416

def initialize: (

Instance Attribute Details

#currency_idString

The unique identifier of the custom currency.

Parameters:

  • value (String)

Returns:

  • (String)


430
# File 'lib/stigg/models/v1/subscription_provision_response.rb', line 430

required :currency_id, String, api_name: :currencyId

#descriptionString?

A description of the currency.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


442
# File 'lib/stigg/models/v1/subscription_provision_response.rb', line 442

optional :description, String, nil?: true

#display_nameString

The display name of the currency.

Parameters:

  • value (String)

Returns:

  • (String)


436
# File 'lib/stigg/models/v1/subscription_provision_response.rb', line 436

required :display_name, String, api_name: :displayName

#metadataHash{Symbol=>String}?

Additional metadata associated with the currency.

Parameters:

  • value (::Hash[Symbol, String], nil)

Returns:

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


448
# File 'lib/stigg/models/v1/subscription_provision_response.rb', line 448

optional :metadata, Stigg::Internal::Type::HashOf[String], nil?: true

#unit_pluralString?

The plural form of the currency unit.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


454
# File 'lib/stigg/models/v1/subscription_provision_response.rb', line 454

optional :unit_plural, String, api_name: :unitPlural, nil?: true

#unit_singularString?

The singular form of the currency unit.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


460
# File 'lib/stigg/models/v1/subscription_provision_response.rb', line 460

optional :unit_singular, String, api_name: :unitSingular, nil?: true

Instance Method Details

#to_hash{

Returns:

  • ({)


425
# File 'sig/stigg/models/v1/subscription_provision_response.rbs', line 425

def to_hash: -> {