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

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

Defined Under Namespace

Classes: Custom

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(custom: nil, type: nil) ⇒ ServicePeriodAnchorConfig

Returns a new instance of ServicePeriodAnchorConfig.



1415
1416
1417
1418
# File 'lib/stripe/params/invoice_create_preview_params.rb', line 1415

def initialize(custom: nil, type: nil)
  @custom = custom
  @type = type
end

Instance Attribute Details

#customObject

Anchor the service period to a custom date. Type must be ‘custom` to specify.



1411
1412
1413
# File 'lib/stripe/params/invoice_create_preview_params.rb', line 1411

def custom
  @custom
end

#typeObject

The type of service period anchor config. Defaults to ‘inherit` if omitted.



1413
1414
1415
# File 'lib/stripe/params/invoice_create_preview_params.rb', line 1413

def type
  @type
end