Class: Stripe::V2::Billing::ContractUpdateParams::PricingOverrideAction::Add

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

Defined Under Namespace

Classes: EndsAt, Multiplier, OverwritePrice, StartsAt

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

attr_accessor, coerce_params, coerce_value, new, #to_h

Constructor Details

#initialize(ends_at: nil, lookup_key: nil, multiplier: nil, overwrite_price: nil, priority: nil, starts_at: nil, type: nil) ⇒ Add

Returns a new instance of Add.



358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 358

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

Instance Attribute Details

#ends_atObject

The end time for the pricing override.



344
345
346
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 344

def ends_at
  @ends_at
end

#lookup_keyObject

A lookup key for the pricing override.



346
347
348
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 346

def lookup_key
  @lookup_key
end

#multiplierObject

A multiplier override to add.



348
349
350
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 348

def multiplier
  @multiplier
end

#overwrite_priceObject

An overwrite price override to add.



350
351
352
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 350

def overwrite_price
  @overwrite_price
end

#priorityObject

The priority for the pricing override.



352
353
354
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 352

def priority
  @priority
end

#starts_atObject

The start time for the pricing override.



354
355
356
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 354

def starts_at
  @starts_at
end

#typeObject

The type of pricing override to add.



356
357
358
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 356

def type
  @type
end

Class Method Details

.field_encodingsObject



376
377
378
379
380
381
382
383
384
385
386
387
388
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 376

def self.field_encodings
  @field_encodings = {
    overwrite_price: {
      kind: :object,
      fields: {
        tiers: {
          kind: :array,
          element: { kind: :object, fields: { up_to_decimal: :decimal_string } },
        },
      },
    },
  }
end