Class: FinchAPI::Models::PaymentEvent::Data

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/finch_api/models/payment_event.rb

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(data: nil, event_type: nil) ⇒ Object

Parameters:



20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# File 'lib/finch_api/models/payment_event.rb', line 20

class Data < FinchAPI::Internal::Type::BaseModel
  # @!attribute pay_date
  #   The date of the payment.
  #
  #   @return [String]
  required :pay_date, String

  # @!attribute payment_id
  #   The ID of the payment.
  #
  #   @return [String]
  required :payment_id, String

  # @!method initialize(pay_date:, payment_id:)
  #   @param pay_date [String] The date of the payment.
  #
  #   @param payment_id [String] The ID of the payment.
end

Instance Attribute Details

#pay_dateString

The date of the payment.

Returns:

  • (String)


25
# File 'lib/finch_api/models/payment_event.rb', line 25

required :pay_date, String

#payment_idString

The ID of the payment.

Returns:

  • (String)


31
# File 'lib/finch_api/models/payment_event.rb', line 31

required :payment_id, String