Class: Stripe::SubscriptionScheduleUpdateParams::Phase::BillingThresholds

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/subscription_schedule_update_params.rb

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(amount_gte: nil, reset_billing_cycle_anchor: nil) ⇒ BillingThresholds

Returns a new instance of BillingThresholds.



304
305
306
307
# File 'lib/stripe/params/subscription_schedule_update_params.rb', line 304

def initialize(amount_gte: nil, reset_billing_cycle_anchor: nil)
  @amount_gte = amount_gte
  @reset_billing_cycle_anchor = reset_billing_cycle_anchor
end

Instance Attribute Details

#amount_gteObject

Monetary threshold that triggers the subscription to advance to a new billing period



300
301
302
# File 'lib/stripe/params/subscription_schedule_update_params.rb', line 300

def amount_gte
  @amount_gte
end

#reset_billing_cycle_anchorObject

Indicates if the ‘billing_cycle_anchor` should be reset when a threshold is reached. If true, `billing_cycle_anchor` will be updated to the date/time the threshold was last reached; otherwise, the value will remain unchanged.



302
303
304
# File 'lib/stripe/params/subscription_schedule_update_params.rb', line 302

def reset_billing_cycle_anchor
  @reset_billing_cycle_anchor
end