Class: Stripe::SubscriptionCreateParams::Item::Discount::Settings::ServicePeriodAnchorConfig
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::SubscriptionCreateParams::Item::Discount::Settings::ServicePeriodAnchorConfig
- Defined in:
- lib/stripe/params/subscription_create_params.rb
Defined Under Namespace
Classes: Custom
Instance Attribute Summary collapse
-
#custom ⇒ Object
Anchor the service period to a custom date.
-
#type ⇒ Object
The type of service period anchor config.
Instance Method Summary collapse
-
#initialize(custom: nil, type: nil) ⇒ ServicePeriodAnchorConfig
constructor
A new instance of ServicePeriodAnchorConfig.
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.
477 478 479 480 |
# File 'lib/stripe/params/subscription_create_params.rb', line 477 def initialize(custom: nil, type: nil) @custom = custom @type = type end |
Instance Attribute Details
#custom ⇒ Object
Anchor the service period to a custom date. Type must be ‘custom` to specify.
473 474 475 |
# File 'lib/stripe/params/subscription_create_params.rb', line 473 def custom @custom end |
#type ⇒ Object
The type of service period anchor config. Defaults to ‘subscription_service_cycle_anchor` if omitted.
475 476 477 |
# File 'lib/stripe/params/subscription_create_params.rb', line 475 def type @type end |