Class: Stripe::Issuing::CardService::UpdateParams::SpendingControls::SpendingLimit

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/issuing/card_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(amount: nil, categories: nil, interval: nil) ⇒ SpendingLimit

Returns a new instance of SpendingLimit.



452
453
454
455
456
# File 'lib/stripe/services/issuing/card_service.rb', line 452

def initialize(amount: nil, categories: nil, interval: nil)
  @amount = amount
  @categories = categories
  @interval = interval
end

Instance Attribute Details

#amountObject

Maximum amount allowed to spend per interval.



444
445
446
# File 'lib/stripe/services/issuing/card_service.rb', line 444

def amount
  @amount
end

#categoriesObject

Array of strings containing [categories](stripe.com/docs/api#issuing_authorization_object-merchant_data-category) this limit applies to. Omitting this field will apply the limit to all categories.



447
448
449
# File 'lib/stripe/services/issuing/card_service.rb', line 447

def categories
  @categories
end

#intervalObject

Interval (or event) to which the amount applies.



450
451
452
# File 'lib/stripe/services/issuing/card_service.rb', line 450

def interval
  @interval
end