Class: Orb::Models::InvoiceInvoiceDateElapsedWebhookEvent::Invoice

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

Overview

See Also:

  • Orb::Models::InvoiceInvoiceDateElapsedWebhookEvent#invoice

Defined Under Namespace

Modules: Status

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:, invoice_number:, status:, subscription:) ⇒ Object

Parameters:



# File 'lib/orb/models/invoice_invoice_date_elapsed_webhook_event.rb', line 74

Instance Attribute Details

#customer ⇒ Orb::Models::CustomerMinified

Parameters:

Returns:



57
# File 'lib/orb/models/invoice_invoice_date_elapsed_webhook_event.rb', line 57

required :customer, -> { Orb::CustomerMinified }

#id ⇒ String

Parameters:

Returns:



52
# File 'lib/orb/models/invoice_invoice_date_elapsed_webhook_event.rb', line 52

required :id, String

#invoice_number ⇒ String

Parameters:

Returns:



62
# File 'lib/orb/models/invoice_invoice_date_elapsed_webhook_event.rb', line 62

required :invoice_number, String

#status ⇒ Symbol, Orb::Models::InvoiceInvoiceDateElapsedWebhookEvent::Invoice::Status

Parameters:

Returns:



67
# File 'lib/orb/models/invoice_invoice_date_elapsed_webhook_event.rb', line 67

required :status, enum: -> { Orb::InvoiceInvoiceDateElapsedWebhookEvent::Invoice::Status }

#subscription ⇒ Orb::Models::SubscriptionMinified?

Parameters:

Returns:



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

required :subscription, -> { Orb::SubscriptionMinified }, nil?: true

Instance Method Details

#to_hash ⇒ {

Returns:



67
# File 'sig/orb/models/invoice_invoice_date_elapsed_webhook_event.rbs', line 67

def to_hash: -> {