Class: Straddle::Models::RelatedPayment
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Straddle::Models::RelatedPayment
- Defined in:
- lib/straddle/models/related_payment.rb,
sig/straddle/models/related_payment.rbs
Instance Attribute Summary collapse
-
#id ⇒ String
Unique identifier of the related payment.
-
#payment_type ⇒ Symbol, Straddle::Models::PaymentType
The type of payment.
- #relationship ⇒ Symbol, Straddle::Models::PaymentRelationship
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:, payment_type:, relationship:) ⇒ Object
|
|
# File 'lib/straddle/models/related_payment.rb', line 23
|
Instance Attribute Details
#id ⇒ String
Unique identifier of the related payment.
10 |
# File 'lib/straddle/models/related_payment.rb', line 10 required :id, String |
#payment_type ⇒ Symbol, Straddle::Models::PaymentType
The type of payment.
16 |
# File 'lib/straddle/models/related_payment.rb', line 16 required :payment_type, enum: -> { Straddle::PaymentType } |
#relationship ⇒ Symbol, Straddle::Models::PaymentRelationship
21 |
# File 'lib/straddle/models/related_payment.rb', line 21 required :relationship, enum: -> { Straddle::PaymentRelationship } |
Instance Method Details
#to_hash ⇒ {
23 |
# File 'sig/straddle/models/related_payment.rbs', line 23
def to_hash: -> {
|