Class: Stripe::V2::Billing::IntentCreateParams::Action::Apply::SpendModifierRule

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/v2/billing/intent_create_params.rb

Defined Under Namespace

Classes: MaxBillingPeriodSpend

Instance Attribute Summary collapse

Instance Method Summary collapse

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_toObject

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_spendObject

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

#typeObject

Type of the spend modifier.



129
130
131
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 129

def type
  @type
end