Class: Dodopayments::Models::Blocklist::Customers::BlockedCustomerNote

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/dodopayments/models/blocklist/customers/blocked_customer_note.rb,
sig/dodopayments/models/blocklist/customers/blocked_customer_note.rbs

Overview

See Also:

  • Dodopayments::Resources::Blocklist::Customers::Notes#create

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:, created_at:, note:, author_email: nil, updated_at: nil) ⇒ Object

Parameters:

  • id (String)
  • created_at (Time)
  • note (String)
  • author_email (String, nil) (defaults to: nil)
  • updated_at (Time, nil) (defaults to: nil)


# File 'lib/dodopayments/models/blocklist/customers/blocked_customer_note.rb', line 34

Instance Attribute Details

#author_emailString?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


27
# File 'lib/dodopayments/models/blocklist/customers/blocked_customer_note.rb', line 27

optional :author_email, String, nil?: true

#created_atTime

Parameters:

  • value (Time)

Returns:

  • (Time)


17
# File 'lib/dodopayments/models/blocklist/customers/blocked_customer_note.rb', line 17

required :created_at, Time

#idString

Parameters:

  • value (String)

Returns:

  • (String)


12
# File 'lib/dodopayments/models/blocklist/customers/blocked_customer_note.rb', line 12

required :id, String

#noteString

Parameters:

  • value (String)

Returns:

  • (String)


22
# File 'lib/dodopayments/models/blocklist/customers/blocked_customer_note.rb', line 22

required :note, String

#updated_atTime?

Parameters:

  • value (Time, nil)

Returns:

  • (Time, nil)


32
# File 'lib/dodopayments/models/blocklist/customers/blocked_customer_note.rb', line 32

optional :updated_at, Time, nil?: true

Instance Method Details

#to_hash{

Returns:

  • ({)


33
# File 'sig/dodopayments/models/blocklist/customers/blocked_customer_note.rbs', line 33

def to_hash: -> {