Class: FinchAPI::Models::Sandbox::PaymentCreateResponse

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/finch_api/models/sandbox/payment_create_response.rb,
sig/finch_api/models/sandbox/payment_create_response.rbs

Overview

See Also:

  • FinchAPI::Resources::Sandbox::Payment#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(pay_date:, payment_id:) ⇒ PaymentCreateResponse

Returns a new instance of PaymentCreateResponse.

Parameters:

  • pay_date (String)

    The date of the payment.

  • payment_id (String)

    The ID of the payment.

  • pay_date: (String)
  • payment_id: (String)


# File 'lib/finch_api/models/sandbox/payment_create_response.rb', line 20

Instance Attribute Details

#pay_dateString

The date of the payment.

Parameters:

  • value (String)

Returns:

  • (String)


12
# File 'lib/finch_api/models/sandbox/payment_create_response.rb', line 12

required :pay_date, String

#payment_idString

The ID of the payment.

Parameters:

  • value (String)

Returns:

  • (String)


18
# File 'lib/finch_api/models/sandbox/payment_create_response.rb', line 18

required :payment_id, String

Instance Method Details

#to_hash{ pay_date: String, payment_id: String }

Returns:

  • ({ pay_date: String, payment_id: String })


13
# File 'sig/finch_api/models/sandbox/payment_create_response.rbs', line 13

def to_hash: -> { pay_date: String, payment_id: String }