Class: Stripe::SubscriptionCreateParams::Discount::Settings::ServicePeriodAnchorConfig

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



327
328
329
330
# File 'lib/stripe/params/subscription_create_params.rb', line 327

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.



323
324
325
# File 'lib/stripe/params/subscription_create_params.rb', line 323

def custom
  @custom
end

#typeObject

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



325
326
327
# File 'lib/stripe/params/subscription_create_params.rb', line 325

def type
  @type
end