Class: Lithic::Models::CardSpendLimits

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/lithic/models/card_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(annually: nil, forever: nil, monthly: nil) ⇒ Object

Parameters:

  • annually (Integer) (defaults to: nil)

    The configured annual spend limit (in cents) on the Card.

  • forever (Integer) (defaults to: nil)

    The configured forever spend limit (in cents) on the Card.

  • monthly (Integer) (defaults to: nil)

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



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


Instance Attribute Details

#available_spend_limitLithic::Models::CardSpendLimits::AvailableSpendLimit



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

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

#spend_limitLithic::Models::CardSpendLimits::SpendLimit?



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

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

#spend_velocityLithic::Models::CardSpendLimits::SpendVelocity?



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

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