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

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

Defined Under Namespace

Classes: Add, Replace

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(add: nil, replace: nil, type: nil) ⇒ ServiceAction

Returns a new instance of ServiceAction.



327
328
329
330
331
# File 'lib/stripe/params/v2/billing/contract_create_params.rb', line 327

def initialize(add: nil, replace: nil, type: nil)
  @add = add
  @replace = replace
  @type = type
end

Instance Attribute Details

#addObject

Parameters for adding a new service action.



321
322
323
# File 'lib/stripe/params/v2/billing/contract_create_params.rb', line 321

def add
  @add
end

#replaceObject

Parameters for replacing an existing service action.



323
324
325
# File 'lib/stripe/params/v2/billing/contract_create_params.rb', line 323

def replace
  @replace
end

#typeObject

The type of service action override.



325
326
327
# File 'lib/stripe/params/v2/billing/contract_create_params.rb', line 325

def type
  @type
end