Class: Orb::Models::SubscriptionAccountingSyncFailedWebhookEvent::AccountingSyncRecord

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

Overview

See Also:

  • Orb::Models::SubscriptionAccountingSyncFailedWebhookEvent#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:, error_details: nil, provider_customer_id: nil, status: nil, subscription_id: nil, sync_action: nil) ⇒ Object

Parameters:



# File 'lib/orb/models/subscription_accounting_sync_failed_webhook_event.rb', line 120

Instance Attribute Details

#customer_id ⇒ String

Parameters:

  • value (String)

Returns:

  • (String)


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

required :customer_id, String

#error_details ⇒ Hash{Symbol=>Object}?

Parameters:

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

Returns:

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


98
# File 'lib/orb/models/subscription_accounting_sync_failed_webhook_event.rb', line 98

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

#id ⇒ String

Parameters:

  • value (String)

Returns:

  • (String)


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

required :id, String

#provider_customer_id ⇒ String?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


103
# File 'lib/orb/models/subscription_accounting_sync_failed_webhook_event.rb', line 103

optional :provider_customer_id, String, nil?: true

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

Parameters:

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

Returns:



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

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

#status ⇒ String?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


108
# File 'lib/orb/models/subscription_accounting_sync_failed_webhook_event.rb', line 108

optional :status, String, nil?: true

#subscription_id ⇒ String?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


113
# File 'lib/orb/models/subscription_accounting_sync_failed_webhook_event.rb', line 113

optional :subscription_id, String, nil?: true

#sync_action ⇒ String?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


118
# File 'lib/orb/models/subscription_accounting_sync_failed_webhook_event.rb', line 118

optional :sync_action, String, nil?: true

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


84
# File 'sig/orb/models/subscription_accounting_sync_failed_webhook_event.rbs', line 84

def to_hash: -> {