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, Multiplier, OverwritePrice, 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.
-
#multiplier ⇒ Object
Parameters for a multiplier override.
-
#overwrite_price ⇒ Object
Parameters for an overwrite_price 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.
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) ⇒ PricingOverride
constructor
A new instance of PricingOverride.
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) ⇒ PricingOverride
Returns a new instance of PricingOverride.
718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 |
# File 'lib/stripe/params/v2/billing/contract_create_params.rb', line 718 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
When the pricing override ends.
704 705 706 |
# File 'lib/stripe/params/v2/billing/contract_create_params.rb', line 704 def ends_at @ends_at end |
#lookup_key ⇒ Object
A user-provided lookup key to reference this pricing override.
706 707 708 |
# File 'lib/stripe/params/v2/billing/contract_create_params.rb', line 706 def lookup_key @lookup_key end |
#multiplier ⇒ Object
Parameters for a multiplier override. Required if ‘type` is `multiplier`.
708 709 710 |
# File 'lib/stripe/params/v2/billing/contract_create_params.rb', line 708 def multiplier @multiplier end |
#overwrite_price ⇒ Object
Parameters for an overwrite_price override. Required if ‘type` is `overwrite_price`.
710 711 712 |
# File 'lib/stripe/params/v2/billing/contract_create_params.rb', line 710 def overwrite_price @overwrite_price end |
#priority ⇒ Object
The priority of this override relative to others. Lower number = higher priority.
712 713 714 |
# File 'lib/stripe/params/v2/billing/contract_create_params.rb', line 712 def priority @priority end |
#starts_at ⇒ Object
When the pricing override starts.
714 715 716 |
# File 'lib/stripe/params/v2/billing/contract_create_params.rb', line 714 def starts_at @starts_at end |
#type ⇒ Object
The type of pricing override.
716 717 718 |
# File 'lib/stripe/params/v2/billing/contract_create_params.rb', line 716 def type @type end |
Class Method Details
.field_encodings ⇒ Object
736 737 738 739 740 741 742 743 744 745 746 747 748 |
# File 'lib/stripe/params/v2/billing/contract_create_params.rb', line 736 def self.field_encodings @field_encodings = { overwrite_price: { kind: :object, fields: { tiers: { kind: :array, element: { kind: :object, fields: { up_to_decimal: :decimal_string } }, }, }, }, } end |