Class: Stripe::SubscriptionUpdateParams::Discount::Settings::ServicePeriodAnchorConfig

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/subscription_update_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.



312
313
314
315
# File 'lib/stripe/params/subscription_update_params.rb', line 312

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.



308
309
310
# File 'lib/stripe/params/subscription_update_params.rb', line 308

def custom
  @custom
end

#typeObject

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



310
311
312
# File 'lib/stripe/params/subscription_update_params.rb', line 310

def type
  @type
end