Class: Google::Apis::CloudbillingV1beta::GoogleCloudBillingBillingaccountpricesV1betaPriceReason
- Inherits:
-
Object
- Object
- Google::Apis::CloudbillingV1beta::GoogleCloudBillingBillingaccountpricesV1betaPriceReason
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudbilling_v1beta/classes.rb,
lib/google/apis/cloudbilling_v1beta/representations.rb,
lib/google/apis/cloudbilling_v1beta/representations.rb
Overview
Encapsulates a price reason which contains background information about the origin of the price.
Instance Attribute Summary collapse
-
#default_price ⇒ Google::Apis::CloudbillingV1beta::GoogleCloudBillingBillingaccountpricesV1betaDefaultPrice
Encapsulates a default price which is the current list price.
-
#fixed_discount ⇒ Google::Apis::CloudbillingV1beta::GoogleCloudBillingBillingaccountpricesV1betaFixedDiscount
Encapsulates a discount off the list price, anchored to the list price as of a fixed time.
-
#fixed_price ⇒ Google::Apis::CloudbillingV1beta::GoogleCloudBillingBillingaccountpricesV1betaFixedPrice
Encapsulates a set fixed price applicable during the terms of a contract agreement.
-
#floating_discount ⇒ Google::Apis::CloudbillingV1beta::GoogleCloudBillingBillingaccountpricesV1betaFloatingDiscount
Encapsulates a discount off the current list price, not anchored to any list price as of a fixed time.
-
#list_price_as_ceiling ⇒ Google::Apis::CloudbillingV1beta::GoogleCloudBillingBillingaccountpricesV1betaListPriceAsCeiling
Encapsulates a contract feature that the list price (DefaultPrice) will be used for the price if the current list price drops lower than the custom fixed price.
-
#merged_price ⇒ Google::Apis::CloudbillingV1beta::GoogleCloudBillingBillingaccountpricesV1betaMergedPrice
Encapsulates a price after merging from multiple sources.
-
#migrated_price ⇒ Google::Apis::CloudbillingV1beta::GoogleCloudBillingBillingaccountpricesV1betaMigratedPrice
Encapsulates a price migrated from other SKUs.
-
#type ⇒ String
Type of the price reason.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudBillingBillingaccountpricesV1betaPriceReason
constructor
A new instance of GoogleCloudBillingBillingaccountpricesV1betaPriceReason.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudBillingBillingaccountpricesV1betaPriceReason
Returns a new instance of GoogleCloudBillingBillingaccountpricesV1betaPriceReason.
1044 1045 1046 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1044 def initialize(**args) update!(**args) end |
Instance Attribute Details
#default_price ⇒ Google::Apis::CloudbillingV1beta::GoogleCloudBillingBillingaccountpricesV1betaDefaultPrice
Encapsulates a default price which is the current list price.
Corresponds to the JSON property defaultPrice
996 997 998 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 996 def default_price @default_price end |
#fixed_discount ⇒ Google::Apis::CloudbillingV1beta::GoogleCloudBillingBillingaccountpricesV1betaFixedDiscount
Encapsulates a discount off the list price, anchored to the list price as of a
fixed time.
Corresponds to the JSON property fixedDiscount
1002 1003 1004 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1002 def fixed_discount @fixed_discount end |
#fixed_price ⇒ Google::Apis::CloudbillingV1beta::GoogleCloudBillingBillingaccountpricesV1betaFixedPrice
Encapsulates a set fixed price applicable during the terms of a contract
agreement.
Corresponds to the JSON property fixedPrice
1008 1009 1010 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1008 def fixed_price @fixed_price end |
#floating_discount ⇒ Google::Apis::CloudbillingV1beta::GoogleCloudBillingBillingaccountpricesV1betaFloatingDiscount
Encapsulates a discount off the current list price, not anchored to any list
price as of a fixed time.
Corresponds to the JSON property floatingDiscount
1014 1015 1016 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1014 def floating_discount @floating_discount end |
#list_price_as_ceiling ⇒ Google::Apis::CloudbillingV1beta::GoogleCloudBillingBillingaccountpricesV1betaListPriceAsCeiling
Encapsulates a contract feature that the list price (DefaultPrice) will be
used for the price if the current list price drops lower than the custom fixed
price. Available to new contracts after March 21, 2022. Applies to all fixed
price SKUs in the contract, including FixedPrice, FixedDiscount, MigratedPrice,
and MergedPrice.
Corresponds to the JSON property listPriceAsCeiling
1023 1024 1025 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1023 def list_price_as_ceiling @list_price_as_ceiling end |
#merged_price ⇒ Google::Apis::CloudbillingV1beta::GoogleCloudBillingBillingaccountpricesV1betaMergedPrice
Encapsulates a price after merging from multiple sources. With merged tiers,
each individual tier can be from a different source with different discount
types.
Corresponds to the JSON property mergedPrice
1030 1031 1032 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1030 def merged_price @merged_price end |
#migrated_price ⇒ Google::Apis::CloudbillingV1beta::GoogleCloudBillingBillingaccountpricesV1betaMigratedPrice
Encapsulates a price migrated from other SKUs.
Corresponds to the JSON property migratedPrice
1035 1036 1037 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1035 def migrated_price @migrated_price end |
#type ⇒ String
Type of the price reason. It can values such as 'default-price', 'fixed-price',
'fixed-discount', 'floating-discount', 'migrated-price', 'merged-price', '
list-price-as-ceiling'.
Corresponds to the JSON property type
1042 1043 1044 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1042 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1049 def update!(**args) @default_price = args[:default_price] if args.key?(:default_price) @fixed_discount = args[:fixed_discount] if args.key?(:fixed_discount) @fixed_price = args[:fixed_price] if args.key?(:fixed_price) @floating_discount = args[:floating_discount] if args.key?(:floating_discount) @list_price_as_ceiling = args[:list_price_as_ceiling] if args.key?(:list_price_as_ceiling) @merged_price = args[:merged_price] if args.key?(:merged_price) @migrated_price = args[:migrated_price] if args.key?(:migrated_price) @type = args[:type] if args.key?(:type) end |