Class: Increase::Models::Card::AuthorizationControls::SpendingLimit

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/increase/models/card.rb

Defined Under Namespace

Modules: Interval Classes: MerchantCategoryCode

Instance Attribute Summary collapse

Class Method 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(interval:, merchant_category_codes:, settlement_amount:) ⇒ Object

Some parameter documentations has been truncated, see Increase::Models::Card::AuthorizationControls::SpendingLimit for more details.

Parameters:



# File 'lib/increase/models/card.rb', line 398

Instance Attribute Details

#intervalSymbol, Increase::Models::Card::AuthorizationControls::SpendingLimit::Interval

The interval at which the spending limit is enforced.



379
# File 'lib/increase/models/card.rb', line 379

required :interval, enum: -> { Increase::Card::AuthorizationControls::SpendingLimit::Interval }

#merchant_category_codesArray<Increase::Models::Card::AuthorizationControls::SpendingLimit::MerchantCategoryCode>?

The Merchant Category Codes (MCCs) this spending limit applies to. If not set, the limit applies to all transactions.



386
387
388
389
390
# File 'lib/increase/models/card.rb', line 386

required :merchant_category_codes,
-> {
  Increase::Internal::Type::ArrayOf[Increase::Card::AuthorizationControls::SpendingLimit::MerchantCategoryCode]
},
nil?: true

#settlement_amountInteger

The maximum settlement amount permitted in the given interval.

Returns:

  • (Integer)


396
# File 'lib/increase/models/card.rb', line 396

required :settlement_amount, Integer

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/increase/models/card.rb', line 429