Class: Stripe::V2::Billing::ContractCreateParams::ContractLine::Override
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::V2::Billing::ContractCreateParams::ContractLine::Override
- Defined in:
- lib/stripe/params/v2/billing/contract_create_params.rb
Defined Under Namespace
Classes: EndsAt, ServiceAction, StartsAt
Instance Attribute Summary collapse
-
#ends_at ⇒ Object
Timestamp to indicate when the override ends.
-
#service_action ⇒ Object
Service action override parameters.
-
#starts_at ⇒ Object
Timestamp to indicate when the override starts.
-
#type ⇒ Object
The type of the override.
Instance Method Summary collapse
-
#initialize(ends_at: nil, service_action: nil, starts_at: nil, type: nil) ⇒ Override
constructor
A new instance of Override.
Methods inherited from RequestParams
attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h
Constructor Details
#initialize(ends_at: nil, service_action: nil, starts_at: nil, type: nil) ⇒ Override
Returns a new instance of Override.
351 352 353 354 355 356 |
# File 'lib/stripe/params/v2/billing/contract_create_params.rb', line 351 def initialize(ends_at: nil, service_action: nil, starts_at: nil, type: nil) @ends_at = ends_at @service_action = service_action @starts_at = starts_at @type = type end |
Instance Attribute Details
#ends_at ⇒ Object
Timestamp to indicate when the override ends.
343 344 345 |
# File 'lib/stripe/params/v2/billing/contract_create_params.rb', line 343 def ends_at @ends_at end |
#service_action ⇒ Object
Service action override parameters. Required if ‘type` is `service_action`.
345 346 347 |
# File 'lib/stripe/params/v2/billing/contract_create_params.rb', line 345 def service_action @service_action end |
#starts_at ⇒ Object
Timestamp to indicate when the override starts.
347 348 349 |
# File 'lib/stripe/params/v2/billing/contract_create_params.rb', line 347 def starts_at @starts_at end |
#type ⇒ Object
The type of the override.
349 350 351 |
# File 'lib/stripe/params/v2/billing/contract_create_params.rb', line 349 def type @type end |