Class: Orb::Models::Customers::CreditListResponse::CreditAllocation

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/orb/models/customers/credit_list_response.rb,
sig/orb/models/customers/credit_list_response.rbs

Overview

See Also:

  • Orb::Models::Customers::CreditListResponse#credit_allocation

Defined Under Namespace

Classes: Filter

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



174
# File 'sig/orb/models/customers/credit_list_response.rbs', line 174

def initialize: (

Instance Attribute Details

#allows_rolloverBoolean

Parameters:

  • value (Boolean)

Returns:

  • (Boolean)


202
# File 'lib/orb/models/customers/credit_list_response.rb', line 202

required :allows_rollover, Orb::Internal::Type::Boolean

#currencyString

Parameters:

  • value (String)

Returns:

  • (String)


207
# File 'lib/orb/models/customers/credit_list_response.rb', line 207

required :currency, String

#custom_expirationOrb::Models::CustomExpiration?

Parameters:

Returns:



212
# File 'lib/orb/models/customers/credit_list_response.rb', line 212

required :custom_expiration, -> { Orb::CustomExpiration }, nil?: true

#filtersArray<Orb::Models::Customers::CreditListResponse::CreditAllocation::Filter>?



224
225
# File 'lib/orb/models/customers/credit_list_response.rb', line 224

optional :filters,
-> { Orb::Internal::Type::ArrayOf[Orb::Models::Customers::CreditListResponse::CreditAllocation::Filter] }

#item_idString

The ID of the catalog item this block was allocated from, derived from the allocation's price.

Parameters:

  • value (String)

Returns:

  • (String)


219
# File 'lib/orb/models/customers/credit_list_response.rb', line 219

required :item_id, String

#license_type_idString?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


230
# File 'lib/orb/models/customers/credit_list_response.rb', line 230

optional :license_type_id, String, nil?: true

Instance Method Details

#to_hash{

Returns:

  • ({)


183
# File 'sig/orb/models/customers/credit_list_response.rbs', line 183

def to_hash: -> {