Class: Stripe::V2::Billing::ContractUpdateParams::PricingLineAction

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

Defined Under Namespace

Classes: Add, Remove, Update

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, remove: nil, type: nil, update: nil) ⇒ PricingLineAction

Returns a new instance of PricingLineAction.



196
197
198
199
200
201
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 196

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

Instance Attribute Details

#addObject

Parameters for adding a pricing line.



188
189
190
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 188

def add
  @add
end

#removeObject

Parameters for removing a pricing line.



190
191
192
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 190

def remove
  @remove
end

#typeObject

The type of pricing line action.



192
193
194
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 192

def type
  @type
end

#updateObject

Parameters for updating a pricing line.



194
195
196
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 194

def update
  @update
end