Class: Stripe::V2::Billing::ContractUpdateParams::PricingLineAction::Update::Pricing::PriceDetails::PricingOverrideAction::Add

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

Defined Under Namespace

Classes: EndsAt, OverwritePrice, 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, lookup_key: nil, metadata: nil, overwrite_price: nil, priority: nil, starts_at: nil, type: nil) ⇒ Add

Returns a new instance of Add.



294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 294

def initialize(
  ends_at: nil,
  lookup_key: nil,
  metadata: nil,
  overwrite_price: nil,
  priority: nil,
  starts_at: nil,
  type: nil
)
  @ends_at = ends_at
  @lookup_key = lookup_key
  @metadata = 
  @overwrite_price = overwrite_price
  @priority = priority
  @starts_at = starts_at
  @type = type
end

Instance Attribute Details

#ends_atObject

The end time for the override.



280
281
282
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 280

def ends_at
  @ends_at
end

#lookup_keyObject

A lookup key for the override.



282
283
284
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 282

def lookup_key
  @lookup_key
end

#metadataObject

Metadata for the pricing override.



284
285
286
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 284

def 
  @metadata
end

#overwrite_priceObject

Parameters for an overwrite_price override. Required if type is overwrite_price.



286
287
288
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 286

def overwrite_price
  @overwrite_price
end

#priorityObject

The priority of this override relative to others. 0 is highest, 100 is lowest. Defaults to 50.



288
289
290
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 288

def priority
  @priority
end

#starts_atObject

The start time for the override.



290
291
292
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 290

def starts_at
  @starts_at
end

#typeObject

The type of override to add.



292
293
294
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 292

def type
  @type
end