Class: Stripe::V2::Billing::IntentCreateParams::Action::Apply::SpendModifierRule
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::V2::Billing::IntentCreateParams::Action::Apply::SpendModifierRule
- Defined in:
- lib/stripe/params/v2/billing/intent_create_params.rb
Defined Under Namespace
Classes: MaxBillingPeriodSpend
Instance Attribute Summary collapse
-
#applies_to ⇒ Object
What the spend modifier applies to.
-
#max_billing_period_spend ⇒ Object
Details for max billing period spend modifier.
-
#type ⇒ Object
Type of the spend modifier.
Instance Method Summary collapse
-
#initialize(applies_to: nil, type: nil, max_billing_period_spend: nil) ⇒ SpendModifierRule
constructor
A new instance of SpendModifierRule.
Methods inherited from RequestParams
Constructor Details
#initialize(applies_to: nil, type: nil, max_billing_period_spend: nil) ⇒ SpendModifierRule
Returns a new instance of SpendModifierRule.
100 101 102 103 104 |
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 100 def initialize(applies_to: nil, type: nil, max_billing_period_spend: nil) @applies_to = applies_to @type = type @max_billing_period_spend = max_billing_period_spend end |
Instance Attribute Details
#applies_to ⇒ Object
What the spend modifier applies to.
94 95 96 |
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 94 def applies_to @applies_to end |
#max_billing_period_spend ⇒ Object
Details for max billing period spend modifier. Only present if type is max_billing_period_spend.
98 99 100 |
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 98 def max_billing_period_spend @max_billing_period_spend end |
#type ⇒ Object
Type of the spend modifier.
96 97 98 |
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 96 def type @type end |