Class: Orb::Models::CreditBlockAccountingSyncSucceededWebhookEvent::Block::CreditAllocation

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

Overview

See Also:

  • Orb::Models::CreditBlockAccountingSyncSucceededWebhookEvent::Block#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

#initialize ⇒ Object



301
# File 'sig/orb/models/credit_block_accounting_sync_succeeded_webhook_event.rbs', line 301

def initialize: (

Instance Attribute Details

#allows_rollover ⇒ Boolean

Parameters:

  • value (Boolean)

Returns:

  • (Boolean)


337
# File 'lib/orb/models/credit_block_accounting_sync_succeeded_webhook_event.rb', line 337

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

#currency ⇒ String

Parameters:

  • value (String)

Returns:

  • (String)


342
# File 'lib/orb/models/credit_block_accounting_sync_succeeded_webhook_event.rb', line 342

required :currency, String

#custom_expiration ⇒ Orb::Models::CustomExpiration?

Parameters:

Returns:



347
# File 'lib/orb/models/credit_block_accounting_sync_succeeded_webhook_event.rb', line 347

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

#filters ⇒ Array<Orb::Models::CreditBlockAccountingSyncSucceededWebhookEvent::Block::CreditAllocation::Filter>?



359
360
# File 'lib/orb/models/credit_block_accounting_sync_succeeded_webhook_event.rb', line 359

optional :filters,
-> { Orb::Internal::Type::ArrayOf[Orb::CreditBlockAccountingSyncSucceededWebhookEvent::Block::CreditAllocation::Filter] }

#item_id ⇒ String

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

Parameters:

  • value (String)

Returns:

  • (String)


354
# File 'lib/orb/models/credit_block_accounting_sync_succeeded_webhook_event.rb', line 354

required :item_id, String

#license_type_id ⇒ String?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


365
# File 'lib/orb/models/credit_block_accounting_sync_succeeded_webhook_event.rb', line 365

optional :license_type_id, String, nil?: true

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


310
# File 'sig/orb/models/credit_block_accounting_sync_succeeded_webhook_event.rbs', line 310

def to_hash: -> {