Class: Lithic::Models::AccountSpendLimits

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/lithic/models/account_spend_limits.rb

Overview

Defined Under Namespace

Classes: AvailableSpendLimit, SpendLimit, SpendVelocity

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(daily: nil, lifetime: nil, monthly: nil) ⇒ Object

Parameters:

  • daily (Integer) (defaults to: nil)

    The configured daily spend limit (in cents) on the Account.

  • lifetime (Integer) (defaults to: nil)

    The configured lifetime spend limit (in cents) on the Account.

  • monthly (Integer) (defaults to: nil)

    The configured monthly spend limit (in cents) on the Account.



# File 'lib/lithic/models/account_spend_limits.rb', line 22


Instance Attribute Details

#available_spend_limitLithic::Models::AccountSpendLimits::AvailableSpendLimit



10
# File 'lib/lithic/models/account_spend_limits.rb', line 10

required :available_spend_limit, -> { Lithic::AccountSpendLimits::AvailableSpendLimit }

#spend_limitLithic::Models::AccountSpendLimits::SpendLimit?



15
# File 'lib/lithic/models/account_spend_limits.rb', line 15

optional :spend_limit, -> { Lithic::AccountSpendLimits::SpendLimit }

#spend_velocityLithic::Models::AccountSpendLimits::SpendVelocity?



20
# File 'lib/lithic/models/account_spend_limits.rb', line 20

optional :spend_velocity, -> { Lithic::AccountSpendLimits::SpendVelocity }