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, max_billing_period_spend: nil, type: nil) ⇒ SpendModifierRule
constructor
A new instance of SpendModifierRule.
Methods inherited from RequestParams
attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h
Constructor Details
#initialize(applies_to: nil, max_billing_period_spend: nil, type: nil) ⇒ SpendModifierRule
Returns a new instance of SpendModifierRule.
131 132 133 134 135 |
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 131 def initialize(applies_to: nil, max_billing_period_spend: nil, type: nil) @applies_to = applies_to @max_billing_period_spend = max_billing_period_spend @type = type end |
Instance Attribute Details
#applies_to ⇒ Object
What the spend modifier applies to.
125 126 127 |
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 125 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.
127 128 129 |
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 127 def max_billing_period_spend @max_billing_period_spend end |
#type ⇒ Object
Type of the spend modifier.
129 130 131 |
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 129 def type @type end |