Class: Dodopayments::Models::Customers::CustomerWallet

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/dodopayments/models/customers/customer_wallet.rb,
sig/dodopayments/models/customers/customer_wallet.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

#initializeObject



26
# File 'sig/dodopayments/models/customers/customer_wallet.rbs', line 26

def initialize: (

Instance Attribute Details

#balanceInteger

Parameters:

  • value (Integer)

Returns:

  • (Integer)


10
# File 'lib/dodopayments/models/customers/customer_wallet.rb', line 10

required :balance, Integer

#created_atTime

Parameters:

  • value (Time)

Returns:

  • (Time)


15
# File 'lib/dodopayments/models/customers/customer_wallet.rb', line 15

required :created_at, Time

#currencySymbol, Dodopayments::Models::Currency

Parameters:

  • value (Dodopayments::Models::currency)

Returns:



20
# File 'lib/dodopayments/models/customers/customer_wallet.rb', line 20

required :currency, enum: -> { Dodopayments::Currency }

#customer_idString

Parameters:

  • value (String)

Returns:

  • (String)


25
# File 'lib/dodopayments/models/customers/customer_wallet.rb', line 25

required :customer_id, String

#updated_atTime

Parameters:

  • value (Time)

Returns:

  • (Time)


30
# File 'lib/dodopayments/models/customers/customer_wallet.rb', line 30

required :updated_at, Time

Instance Method Details

#to_hash{

Returns:

  • ({)


34
# File 'sig/dodopayments/models/customers/customer_wallet.rbs', line 34

def to_hash: -> {