Class: Stripe::InvoiceCreatePreviewParams::ScheduleDetails::Phase::Item::Discount::Settings

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

Defined Under Namespace

Classes: ServicePeriodAnchorConfig

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(service_period_anchor_config: nil, start_date: nil) ⇒ Settings

Returns a new instance of Settings.



1594
1595
1596
1597
# File 'lib/stripe/params/invoice_create_preview_params.rb', line 1594

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.



1590
1591
1592
# File 'lib/stripe/params/invoice_create_preview_params.rb', line 1590

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.



1592
1593
1594
# File 'lib/stripe/params/invoice_create_preview_params.rb', line 1592

def start_date
  @start_date
end