Class: Pago::V2026_04::Models::ProductPriceSeatTiersInput
- Defined in:
- lib/pago/v2026_04/models.rb,
sig/pago/v2026_04/generated.rbs
Overview
List of pricing tiers for seat-based pricing.
The minimum and maximum seat limits are derived from the tiers:
- minimum_seats = first tier's min_seats
- maximum_seats = last tier's max_seats (None for unlimited)
Constant Summary collapse
- JSON_KEYS =
{ seat_tier_type: "seat_tier_type", tiers: "tiers" }.freeze
- REQUIRED_KEYS =
["tiers"].freeze
Instance Attribute Summary collapse
- #seat_tier_type ⇒ String readonly
-
#tiers ⇒ Array<Models::ProductPriceSeatTier>
readonly
List of pricing tiers.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(seat_tier_type: ::Pago::UNSET, tiers:) ⇒ ProductPriceSeatTiersInput
constructor
A new instance of ProductPriceSeatTiersInput.
Methods inherited from Model
#==, #[], #field_set?, #hash, #inspect, json_keys, required_json_keys, #to_json, #to_json_hash, wrap_raw
Constructor Details
#initialize(seat_tier_type: ::Pago::UNSET, tiers:) ⇒ ProductPriceSeatTiersInput
Returns a new instance of ProductPriceSeatTiersInput.
37941 37942 37943 37944 37945 37946 37947 37948 |
# File 'lib/pago/v2026_04/models.rb', line 37941 def initialize( seat_tier_type: ::Pago::UNSET, tiers: ) super() assign(:seat_tier_type, seat_tier_type) assign(:tiers, tiers) end |
Instance Attribute Details
#seat_tier_type ⇒ String (readonly)
37935 37936 37937 |
# File 'lib/pago/v2026_04/models.rb', line 37935 def seat_tier_type @seat_tier_type end |
#tiers ⇒ Array<Models::ProductPriceSeatTier> (readonly)
List of pricing tiers
37939 37940 37941 |
# File 'lib/pago/v2026_04/models.rb', line 37939 def tiers @tiers end |
Class Method Details
.from_json(data) ⇒ ProductPriceSeatTiersInput?
37952 37953 37954 37955 37956 37957 37958 37959 37960 37961 37962 37963 37964 |
# File 'lib/pago/v2026_04/models.rb', line 37952 def self.from_json(data) data = ::JSON.parse(data) if data.is_a?(String) data = ::Pago::Serde.object(data) return nil if data.nil? wrap_raw( new( seat_tier_type: (data.key?("seat_tier_type") ? data["seat_tier_type"] : ::Pago::UNSET), tiers: (data.key?("tiers") ? ::Pago::Serde.array(data["tiers"]) { |item0| Models::ProductPriceSeatTier.from_json(item0) } : ::Pago::UNSET) ), data ) end |