Class: Google::Cloud::Channel::V1::PriceTier

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/channel/v1/offers.rb

Overview

Defines price at resource tier level. For example, an offer with following definition :

  • Tier 1: Provide 25% discount for all seats between 1 and 25.
  • Tier 2: Provide 10% discount for all seats between 26 and 100.
  • Tier 3: Provide flat 15% discount for all seats above 100.

Each of these tiers is represented as a PriceTier.

Instance Attribute Summary collapse

Instance Attribute Details

#first_resource::Integer

Returns First resource for which the tier price applies.

Returns:

  • (::Integer)

    First resource for which the tier price applies.



239
240
241
242
# File 'proto_docs/google/cloud/channel/v1/offers.rb', line 239

class PriceTier
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#last_resource::Integer

Returns Last resource for which the tier price applies.

Returns:

  • (::Integer)

    Last resource for which the tier price applies.



239
240
241
242
# File 'proto_docs/google/cloud/channel/v1/offers.rb', line 239

class PriceTier
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#price::Google::Cloud::Channel::V1::Price

Returns Price of the tier.

Returns:



239
240
241
242
# File 'proto_docs/google/cloud/channel/v1/offers.rb', line 239

class PriceTier
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end