Class: Stripe::QuoteUpdateParams::Line::Action::SetItem::Discount::Settings

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

Defined Under Namespace

Classes: ServicePeriodAnchorConfig

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

attr_accessor, new, #to_h

Constructor Details

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

Returns a new instance of Settings.



469
470
471
472
# File 'lib/stripe/params/quote_update_params.rb', line 469

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.



465
466
467
# File 'lib/stripe/params/quote_update_params.rb', line 465

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 ‘line_start` if omitted.



467
468
469
# File 'lib/stripe/params/quote_update_params.rb', line 467

def start_date
  @start_date
end