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.
1070 1071 1072 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1070 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
1022 1023 1024 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1022 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
1028 1029 1030 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1028 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
1034 1035 1036 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1034 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
1040 1041 1042 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1040 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
1049 1050 1051 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1049 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
1056 1057 1058 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1056 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
1061 1062 1063 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1061 def migrated_price @migrated_price end |
#type ⇒ String
Type of the price reason. It can have values such as 'unspecified', 'default-
price', 'fixed-price', 'fixed-discount', 'floating-discount', 'migrated-price',
'merged-price', 'list-price-as-ceiling'.
Corresponds to the JSON property type
1068 1069 1070 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1068 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1075 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 |