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, type: nil, max_billing_period_spend: nil) ⇒ SpendModifierRule

Returns a new instance of SpendModifierRule.



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

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_toObject

What the spend modifier applies to.



122
123
124
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 122

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.



126
127
128
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 126

def max_billing_period_spend
  @max_billing_period_spend
end

#typeObject

Type of the spend modifier.



124
125
126
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 124

def type
  @type
end