Class: Stripe::InvoiceCreatePreviewParams::ScheduleDetails::Amendment::ItemAction::Set::Discount::Settings::ServicePeriodAnchorConfig
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::InvoiceCreatePreviewParams::ScheduleDetails::Amendment::ItemAction::Set::Discount::Settings::ServicePeriodAnchorConfig
- Defined in:
- lib/stripe/params/invoice_create_preview_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
Constructor Details
#initialize(custom: nil, type: nil) ⇒ ServicePeriodAnchorConfig
Returns a new instance of ServicePeriodAnchorConfig.
895 896 897 898 |
# File 'lib/stripe/params/invoice_create_preview_params.rb', line 895 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.
891 892 893 |
# File 'lib/stripe/params/invoice_create_preview_params.rb', line 891 def custom @custom end |
#type ⇒ Object
The type of service period anchor config. Defaults to ‘inherit` if omitted.
893 894 895 |
# File 'lib/stripe/params/invoice_create_preview_params.rb', line 893 def type @type end |