Class: MetronomeSDK::Models::V1::Payment

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/metronome_sdk/models/v1/payment.rb

Overview

Defined Under Namespace

Classes: PaymentGateway

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: , amount: nil, amount_paid: nil, contract_id: nil, created_at: nil, customer_id: nil, error_message: nil, fiat_credit_type: nil, invoice_id: nil, payment_gateway: nil, status: nil, updated_at: nil) ⇒ Object

Parameters:



# File 'lib/metronome_sdk/models/v1/payment.rb', line 68


Instance Attribute Details

#amountFloat?

Returns:

  • (Float, nil)


16
# File 'lib/metronome_sdk/models/v1/payment.rb', line 16

optional :amount, Float

#amount_paidFloat?

Returns:

  • (Float, nil)


21
# File 'lib/metronome_sdk/models/v1/payment.rb', line 21

optional :amount_paid, Float

#contract_idString?

Returns:

  • (String, nil)


26
# File 'lib/metronome_sdk/models/v1/payment.rb', line 26

optional :contract_id, String

#created_atTime?

Returns:

  • (Time, nil)


31
# File 'lib/metronome_sdk/models/v1/payment.rb', line 31

optional :created_at, Time

#customer_idString?

Returns:

  • (String, nil)


36
# File 'lib/metronome_sdk/models/v1/payment.rb', line 36

optional :customer_id, String

#error_messageString?

Returns:

  • (String, nil)


41
# File 'lib/metronome_sdk/models/v1/payment.rb', line 41

optional :error_message, String

#fiat_credit_typeMetronomeSDK::Models::CreditTypeData?



46
# File 'lib/metronome_sdk/models/v1/payment.rb', line 46

optional :fiat_credit_type, -> { MetronomeSDK::CreditTypeData }

#idString

Returns:

  • (String)


11
# File 'lib/metronome_sdk/models/v1/payment.rb', line 11

required :id, String

#invoice_idString?

Returns:

  • (String, nil)


51
# File 'lib/metronome_sdk/models/v1/payment.rb', line 51

optional :invoice_id, String

#payment_gatewayMetronomeSDK::Models::V1::Payment::PaymentGateway?



56
# File 'lib/metronome_sdk/models/v1/payment.rb', line 56

optional :payment_gateway, -> { MetronomeSDK::V1::Payment::PaymentGateway }

#statusSymbol, ...

Returns:



61
# File 'lib/metronome_sdk/models/v1/payment.rb', line 61

optional :status, enum: -> { MetronomeSDK::V1::PaymentStatus }

#updated_atTime?

Returns:

  • (Time, nil)


66
# File 'lib/metronome_sdk/models/v1/payment.rb', line 66

optional :updated_at, Time