Class: Stripe::V2::Billing::ContractCreateParams::ContractLine::Override

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/v2/billing/contract_create_params.rb

Defined Under Namespace

Classes: EndsAt, ServiceAction, StartsAt

Instance Attribute Summary collapse

Instance Method Summary collapse

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_atObject

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_actionObject

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_atObject

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

#typeObject

The type of the override.



349
350
351
# File 'lib/stripe/params/v2/billing/contract_create_params.rb', line 349

def type
  @type
end