Class: Stripe::QuoteCreateParams::Line::Action::AddDiscount::Settings::ServicePeriodAnchorConfig

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

Defined Under Namespace

Classes: Custom

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(custom: nil, type: nil) ⇒ ServicePeriodAnchorConfig

Returns a new instance of ServicePeriodAnchorConfig.



173
174
175
176
# File 'lib/stripe/params/quote_create_params.rb', line 173

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.



169
170
171
# File 'lib/stripe/params/quote_create_params.rb', line 169

def custom
  @custom
end

#typeObject

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



171
172
173
# File 'lib/stripe/params/quote_create_params.rb', line 171

def type
  @type
end