Class: Straddle::Models::RelatedPayment

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

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:, payment_type:, relationship:) ⇒ Object

Parameters:



# File 'lib/straddle/models/related_payment.rb', line 23

Instance Attribute Details

#id ⇒ String

Unique identifier of the related payment.

Parameters:

  • value (String)

Returns:

  • (String)


10
# File 'lib/straddle/models/related_payment.rb', line 10

required :id, String

#payment_type ⇒ Symbol, Straddle::Models::PaymentType

The type of payment.

Parameters:

  • value (Straddle::Models::payment_type)

Returns:



16
# File 'lib/straddle/models/related_payment.rb', line 16

required :payment_type, enum: -> { Straddle::PaymentType }

#relationship ⇒ Symbol, Straddle::Models::PaymentRelationship

Parameters:

  • value (Straddle::Models::payment_relationship)

Returns:



21
# File 'lib/straddle/models/related_payment.rb', line 21

required :relationship, enum: -> { Straddle::PaymentRelationship }

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


23
# File 'sig/straddle/models/related_payment.rbs', line 23

def to_hash: -> {