Class: Stripe::SubscriptionScheduleUpdateParams::Phase::Item::Discount::Settings

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

Defined Under Namespace

Classes: ServicePeriodAnchorConfig

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(service_period_anchor_config: nil, start_date: nil) ⇒ Settings

Returns a new instance of Settings.



563
564
565
566
# File 'lib/stripe/params/subscription_schedule_update_params.rb', line 563

def initialize(service_period_anchor_config: nil, start_date: nil)
  @service_period_anchor_config = service_period_anchor_config
  @start_date = start_date
end

Instance Attribute Details

#service_period_anchor_configObject

Configures service period cycle anchoring.



559
560
561
# File 'lib/stripe/params/subscription_schedule_update_params.rb', line 559

def service_period_anchor_config
  @service_period_anchor_config
end

#start_dateObject

The start date of the discount’s service period when applying a coupon or promotion code with a service period duration. Defaults to ‘phase_start` if omitted.



561
562
563
# File 'lib/stripe/params/subscription_schedule_update_params.rb', line 561

def start_date
  @start_date
end