google-apis-cloudchannel_v1 0.63.0 → 0.64.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7e2bb7b17bb674f2105922ae38e64892aa6a67ae50f2a357eae5a1f5efb5f77d
4
- data.tar.gz: 1289c9bbd0e9e7ab9c1511b5cc61fef9389792792001aa24dca5dbdf4ce1debe
3
+ metadata.gz: 70a40a9de28230eccb6e22996e51406447d925143a41f9e268df0d4de7ed0f26
4
+ data.tar.gz: 98ed680a37a187aef07c95f1ba0bebc19730deca43d967c93fabbddcae7ec793
5
5
  SHA512:
6
- metadata.gz: 7eb3c07e10ef2365c4628873189c1aac6bf9e0a560374324c99ea4ced284b739e811d82b8cb9c545106d8edff056dc0a84b7e3b6f3bb10867c8987c7c82249cb
7
- data.tar.gz: 4f1cda52c5714c10ca4a2259ec30c52ddb51afa9383f1b057f5225e0eb178e3d63c5cf6863b31d6acebe33d6fd1180ce0ea47345f11c4e6752676ab644bf4294
6
+ metadata.gz: 9ea6985e948951851e75ed3d699680ffc1b65e4833f4855efb58b1bacf6eb1b93eee3eea2d0e0af169cc0c3867168cad380244829bacbc439d49abf7a7a5aed3
7
+ data.tar.gz: aa380a28be5ac0c1a030102c4eee873d3e2107872b68ee0220770cfbe94c5b23bdd96d5bbceee80ab295bce1b00caee95e470c92b2d0f3cf1a8b675573e641a4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-cloudchannel_v1
2
2
 
3
+ ### v0.64.0 (2025-08-17)
4
+
5
+ * Regenerated from discovery document revision 20250809
6
+
3
7
  ### v0.63.0 (2025-06-22)
4
8
 
5
9
  * Regenerated from discovery document revision 20250614
@@ -1116,6 +1116,38 @@ module Google
1116
1116
  end
1117
1117
  end
1118
1118
 
1119
+ # Represents a single component of the total discount applicable on a Price.
1120
+ class GoogleCloudChannelV1DiscountComponent
1121
+ include Google::Apis::Core::Hashable
1122
+
1123
+ # Represents an amount of money with its currency type.
1124
+ # Corresponds to the JSON property `discountAbsolute`
1125
+ # @return [Google::Apis::CloudchannelV1::GoogleTypeMoney]
1126
+ attr_accessor :discount_absolute
1127
+
1128
+ # Discount percentage, represented as decimal. For example, a 20% discount will
1129
+ # be represented as 0.2.
1130
+ # Corresponds to the JSON property `discountPercentage`
1131
+ # @return [Float]
1132
+ attr_accessor :discount_percentage
1133
+
1134
+ # Type of the discount.
1135
+ # Corresponds to the JSON property `discountType`
1136
+ # @return [String]
1137
+ attr_accessor :discount_type
1138
+
1139
+ def initialize(**args)
1140
+ update!(**args)
1141
+ end
1142
+
1143
+ # Update properties of this object
1144
+ def update!(**args)
1145
+ @discount_absolute = args[:discount_absolute] if args.key?(:discount_absolute)
1146
+ @discount_percentage = args[:discount_percentage] if args.key?(:discount_percentage)
1147
+ @discount_type = args[:discount_type] if args.key?(:discount_type)
1148
+ end
1149
+ end
1150
+
1119
1151
  # Required Edu Attributes
1120
1152
  class GoogleCloudChannelV1EduData
1121
1153
  include Google::Apis::Core::Hashable
@@ -2433,6 +2465,12 @@ module Google
2433
2465
  # @return [Float]
2434
2466
  attr_accessor :discount
2435
2467
 
2468
+ # Breakdown of the discount into its components. This will be empty if there is
2469
+ # no discount present.
2470
+ # Corresponds to the JSON property `discountComponents`
2471
+ # @return [Array<Google::Apis::CloudchannelV1::GoogleCloudChannelV1DiscountComponent>]
2472
+ attr_accessor :discount_components
2473
+
2436
2474
  # Represents an amount of money with its currency type.
2437
2475
  # Corresponds to the JSON property `effectivePrice`
2438
2476
  # @return [Google::Apis::CloudchannelV1::GoogleTypeMoney]
@@ -2443,6 +2481,11 @@ module Google
2443
2481
  # @return [String]
2444
2482
  attr_accessor :external_price_uri
2445
2483
 
2484
+ # Represents period in days/months/years.
2485
+ # Corresponds to the JSON property `pricePeriod`
2486
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1Period]
2487
+ attr_accessor :price_period
2488
+
2446
2489
  def initialize(**args)
2447
2490
  update!(**args)
2448
2491
  end
@@ -2451,8 +2494,10 @@ module Google
2451
2494
  def update!(**args)
2452
2495
  @base_price = args[:base_price] if args.key?(:base_price)
2453
2496
  @discount = args[:discount] if args.key?(:discount)
2497
+ @discount_components = args[:discount_components] if args.key?(:discount_components)
2454
2498
  @effective_price = args[:effective_price] if args.key?(:effective_price)
2455
2499
  @external_price_uri = args[:external_price_uri] if args.key?(:external_price_uri)
2500
+ @price_period = args[:price_period] if args.key?(:price_period)
2456
2501
  end
2457
2502
  end
2458
2503
 
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module CloudchannelV1
18
18
  # Version of the google-apis-cloudchannel_v1 gem
19
- GEM_VERSION = "0.63.0"
19
+ GEM_VERSION = "0.64.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.18.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250614"
25
+ REVISION = "20250809"
26
26
  end
27
27
  end
28
28
  end
@@ -184,6 +184,12 @@ module Google
184
184
  include Google::Apis::Core::JsonObjectSupport
185
185
  end
186
186
 
187
+ class GoogleCloudChannelV1DiscountComponent
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
187
193
  class GoogleCloudChannelV1EduData
188
194
  class Representation < Google::Apis::Core::JsonRepresentation; end
189
195
 
@@ -1144,6 +1150,16 @@ module Google
1144
1150
  end
1145
1151
  end
1146
1152
 
1153
+ class GoogleCloudChannelV1DiscountComponent
1154
+ # @private
1155
+ class Representation < Google::Apis::Core::JsonRepresentation
1156
+ property :discount_absolute, as: 'discountAbsolute', class: Google::Apis::CloudchannelV1::GoogleTypeMoney, decorator: Google::Apis::CloudchannelV1::GoogleTypeMoney::Representation
1157
+
1158
+ property :discount_percentage, as: 'discountPercentage'
1159
+ property :discount_type, as: 'discountType'
1160
+ end
1161
+ end
1162
+
1147
1163
  class GoogleCloudChannelV1EduData
1148
1164
  # @private
1149
1165
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1525,9 +1541,13 @@ module Google
1525
1541
  property :base_price, as: 'basePrice', class: Google::Apis::CloudchannelV1::GoogleTypeMoney, decorator: Google::Apis::CloudchannelV1::GoogleTypeMoney::Representation
1526
1542
 
1527
1543
  property :discount, as: 'discount'
1544
+ collection :discount_components, as: 'discountComponents', class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1DiscountComponent, decorator: Google::Apis::CloudchannelV1::GoogleCloudChannelV1DiscountComponent::Representation
1545
+
1528
1546
  property :effective_price, as: 'effectivePrice', class: Google::Apis::CloudchannelV1::GoogleTypeMoney, decorator: Google::Apis::CloudchannelV1::GoogleTypeMoney::Representation
1529
1547
 
1530
1548
  property :external_price_uri, as: 'externalPriceUri'
1549
+ property :price_period, as: 'pricePeriod', class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1Period, decorator: Google::Apis::CloudchannelV1::GoogleCloudChannelV1Period::Representation
1550
+
1531
1551
  end
1532
1552
  end
1533
1553
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-cloudchannel_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.63.0
4
+ version: 0.64.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudchannel_v1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-cloudchannel_v1/v0.63.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-cloudchannel_v1/v0.64.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudchannel_v1
62
62
  rdoc_options: []
63
63
  require_paths: