Class: Stripe::SubscriptionScheduleUpdateParams::Phase::Item::Discount::Settings::ServicePeriodAnchorConfig

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

Defined Under Namespace

Classes: Custom

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

attr_accessor, new, #to_h

Constructor Details

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

Returns a new instance of ServicePeriodAnchorConfig.



553
554
555
556
# File 'lib/stripe/params/subscription_schedule_update_params.rb', line 553

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.



549
550
551
# File 'lib/stripe/params/subscription_schedule_update_params.rb', line 549

def custom
  @custom
end

#typeObject

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



551
552
553
# File 'lib/stripe/params/subscription_schedule_update_params.rb', line 551

def type
  @type
end