Class: Dodopayments::Models::Event
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Dodopayments::Models::Event
- Defined in:
- lib/dodopayments/models/event.rb
Overview
Defined Under Namespace
Modules: Metadata
Instance Attribute Summary collapse
- #business_id ⇒ String
- #customer_id ⇒ String
- #event_id ⇒ String
- #event_name ⇒ String
-
#metadata ⇒ Hash{Symbol=>String, Float, Boolean}?
Arbitrary key-value metadata.
- #timestamp ⇒ Time
Instance Method Summary collapse
-
#initialize(business_id: , customer_id: , event_id: , event_name: , timestamp: , metadata: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see Event for more details.
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(business_id: , customer_id: , event_id: , event_name: , timestamp: , metadata: nil) ⇒ Object
Some parameter documentations has been truncated, see Dodopayments::Models::Event for more details.
|
|
# File 'lib/dodopayments/models/event.rb', line 40
|
Instance Attribute Details
#business_id ⇒ String
10 |
# File 'lib/dodopayments/models/event.rb', line 10 required :business_id, String |
#customer_id ⇒ String
15 |
# File 'lib/dodopayments/models/event.rb', line 15 required :customer_id, String |
#event_id ⇒ String
20 |
# File 'lib/dodopayments/models/event.rb', line 20 required :event_id, String |
#event_name ⇒ String
25 |
# File 'lib/dodopayments/models/event.rb', line 25 required :event_name, String |
#metadata ⇒ Hash{Symbol=>String, Float, Boolean}?
Arbitrary key-value metadata. Values can be string, integer, number, or boolean.
36 37 38 |
# File 'lib/dodopayments/models/event.rb', line 36 optional :metadata, -> { Dodopayments::Internal::Type::HashOf[union: Dodopayments::Event::Metadata] }, nil?: true |
#timestamp ⇒ Time
30 |
# File 'lib/dodopayments/models/event.rb', line 30 required :timestamp, Time |