Class: Stripe::V2::Billing::ContractCreateParams::PricingOverride
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::V2::Billing::ContractCreateParams::PricingOverride
- Defined in:
- lib/stripe/params/v2/billing/contract_create_params.rb
Defined Under Namespace
Classes: EndsAt, MultiplyPricing, StartsAt
Instance Attribute Summary collapse
-
#ends_at ⇒ Object
When the pricing override ends.
-
#lookup_key ⇒ Object
A user-provided lookup key to reference this pricing override.
-
#multiply_pricing ⇒ Object
Parameters for a multiply_pricing override.
-
#priority ⇒ Object
The priority of this override relative to others.
-
#starts_at ⇒ Object
When the pricing override starts.
-
#type ⇒ Object
The type of pricing override.
Instance Method Summary collapse
-
#initialize(ends_at: nil, lookup_key: nil, multiply_pricing: nil, priority: nil, starts_at: nil, type: nil) ⇒ PricingOverride
constructor
A new instance of PricingOverride.
Methods inherited from RequestParams
attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h
Constructor Details
#initialize(ends_at: nil, lookup_key: nil, multiply_pricing: nil, priority: nil, starts_at: nil, type: nil) ⇒ PricingOverride
Returns a new instance of PricingOverride.
408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 |
# File 'lib/stripe/params/v2/billing/contract_create_params.rb', line 408 def initialize( ends_at: nil, lookup_key: nil, multiply_pricing: nil, priority: nil, starts_at: nil, type: nil ) @ends_at = ends_at @lookup_key = lookup_key @multiply_pricing = multiply_pricing @priority = priority @starts_at = starts_at @type = type end |
Instance Attribute Details
#ends_at ⇒ Object
When the pricing override ends.
396 397 398 |
# File 'lib/stripe/params/v2/billing/contract_create_params.rb', line 396 def ends_at @ends_at end |
#lookup_key ⇒ Object
A user-provided lookup key to reference this pricing override.
398 399 400 |
# File 'lib/stripe/params/v2/billing/contract_create_params.rb', line 398 def lookup_key @lookup_key end |
#multiply_pricing ⇒ Object
Parameters for a multiply_pricing override. Required if type is multiply_pricing.
400 401 402 |
# File 'lib/stripe/params/v2/billing/contract_create_params.rb', line 400 def multiply_pricing @multiply_pricing end |
#priority ⇒ Object
The priority of this override relative to others. The highest priority is 0 and the lowest is 100.
402 403 404 |
# File 'lib/stripe/params/v2/billing/contract_create_params.rb', line 402 def priority @priority end |
#starts_at ⇒ Object
When the pricing override starts.
404 405 406 |
# File 'lib/stripe/params/v2/billing/contract_create_params.rb', line 404 def starts_at @starts_at end |
#type ⇒ Object
The type of pricing override.
406 407 408 |
# File 'lib/stripe/params/v2/billing/contract_create_params.rb', line 406 def type @type end |