Class: Stripe::V2::Billing::ContractUpdateParams::PricingOverrideAction::Add
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::V2::Billing::ContractUpdateParams::PricingOverrideAction::Add
- Defined in:
- lib/stripe/params/v2/billing/contract_update_params.rb
Defined Under Namespace
Classes: EndsAt, Multiplier, OverwritePrice, StartsAt
Instance Attribute Summary collapse
-
#ends_at ⇒ Object
The end time for the pricing override.
-
#lookup_key ⇒ Object
A lookup key for the pricing override.
-
#multiplier ⇒ Object
A multiplier override to add.
-
#overwrite_price ⇒ Object
An overwrite price override to add.
-
#priority ⇒ Object
The priority for the pricing override.
-
#starts_at ⇒ Object
The start time for the pricing override.
-
#type ⇒ Object
The type of pricing override to add.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(ends_at: nil, lookup_key: nil, multiplier: nil, overwrite_price: nil, priority: nil, starts_at: nil, type: nil) ⇒ Add
constructor
A new instance of Add.
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_at ⇒ Object
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_key ⇒ Object
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 |
#multiplier ⇒ Object
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_price ⇒ Object
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 |
#priority ⇒ Object
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_at ⇒ Object
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 |
#type ⇒ Object
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_encodings ⇒ Object
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 |