Class: Stripe::Issuing::CardCreateParams::SpendingControls::SpendingLimit
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Issuing::CardCreateParams::SpendingControls::SpendingLimit
- Defined in:
- lib/stripe/params/issuing/card_create_params.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
Maximum amount allowed to spend per interval.
-
#categories ⇒ Object
Array of strings containing [categories](docs.stripe.com/api#issuing_authorization_object-merchant_data-category) this limit applies to.
-
#interval ⇒ Object
Interval (or event) to which the amount applies.
Instance Method Summary collapse
-
#initialize(amount: nil, categories: nil, interval: nil) ⇒ SpendingLimit
constructor
A new instance of SpendingLimit.
Methods inherited from RequestParams
attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h
Constructor Details
#initialize(amount: nil, categories: nil, interval: nil) ⇒ SpendingLimit
Returns a new instance of SpendingLimit.
129 130 131 132 133 |
# File 'lib/stripe/params/issuing/card_create_params.rb', line 129 def initialize(amount: nil, categories: nil, interval: nil) @amount = amount @categories = categories @interval = interval end |
Instance Attribute Details
#amount ⇒ Object
Maximum amount allowed to spend per interval.
123 124 125 |
# File 'lib/stripe/params/issuing/card_create_params.rb', line 123 def amount @amount end |
#categories ⇒ Object
Array of strings containing [categories](docs.stripe.com/api#issuing_authorization_object-merchant_data-category) this limit applies to. Omitting this field will apply the limit to all categories.
125 126 127 |
# File 'lib/stripe/params/issuing/card_create_params.rb', line 125 def categories @categories end |
#interval ⇒ Object
Interval (or event) to which the amount applies.
127 128 129 |
# File 'lib/stripe/params/issuing/card_create_params.rb', line 127 def interval @interval end |