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

#to_h

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_toObject

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_spendObject

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

#typeObject

Type of the spend modifier.



96
97
98
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 96

def type
  @type
end