Class: Orb::Models::CreditBlockAccountingSyncSucceededWebhookEvent::AccountingSyncRecord

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#accounting_sync_record

Defined Under Namespace

Modules: RecordType

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(id:, customer_id:, record_type:, block_id: nil, error_details: nil, invoice_id: nil, provider_customer_id: nil, status: nil, sync_action: nil) ⇒ Object

Parameters:



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

Instance Attribute Details

#block_id ⇒ String?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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

optional :block_id, String, nil?: true

#customer_id ⇒ String

Parameters:

  • value (String)

Returns:

  • (String)


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

required :customer_id, String

#error_details ⇒ Hash{Symbol=>Object}?

Parameters:

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

Returns:

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


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

optional :error_details, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown], nil?: true

#id ⇒ String

Parameters:

  • value (String)

Returns:

  • (String)


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

required :id, String

#invoice_id ⇒ String?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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

optional :invoice_id, String, nil?: true

#provider_customer_id ⇒ String?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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

optional :provider_customer_id, String, nil?: true

#record_type ⇒ Symbol, Orb::Models::CreditBlockAccountingSyncSucceededWebhookEvent::AccountingSyncRecord::RecordType

Parameters:

  • value (Orb::Models::CreditBlockAccountingSyncSucceededWebhookEvent::AccountingSyncRecord::record_type)

Returns:



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

required :record_type,
enum: -> { Orb::CreditBlockAccountingSyncSucceededWebhookEvent::AccountingSyncRecord::RecordType }

#status ⇒ String?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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

optional :status, String, nil?: true

#sync_action ⇒ String?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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

optional :sync_action, String, nil?: true

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


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

def to_hash: -> {