google-apis-androidpublisher_v3 0.86.0 → 0.87.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: d26814b4b6833145b611c9a77aa7e3a5888aadfc31642a8b16e901d52283e087
4
- data.tar.gz: a4d3c0fe83ba1c03db684b53bd9f1d47d7a5b65080ea88daf08df2d76d35c709
3
+ metadata.gz: 18d5d7924d8274977797d65cf4e86d507032e311c0af13b0a730233f7a7a04c2
4
+ data.tar.gz: dd4b1e3bd89c54d98af7ee16bc7b59ae859d19fe7ceb8fdb26d1521aa7506465
5
5
  SHA512:
6
- metadata.gz: e427295d196d526154111251dbb1f7fbcacf5176e8fd6d4e1129c8f47c2ea47145c4645c71f7e722aa0bdc622e536194b2529c2a51daa8e150245587c49b2f04
7
- data.tar.gz: 689746fa48a74b266e3bc117e199ccca70623d27850c5eed9a9301fb0552302df3fbfc0fb6737d02bb547b0368d8548fbfa897d19ab271ad571e9addd752b999
6
+ metadata.gz: 03d6e689222def188a99cb61b089ff7ca31593a1fdb41ce83c27217831f2872a885df57cab19eb06b440955e0cc91bfe88997cdb5c3771625e8d4223ab4514a6
7
+ data.tar.gz: d11a3a9aad55f579df99c382ffb5f0a74c158dc1c480cf6b5c5e5d47223ea02d53a76e2b46cbed3a1c23fe8a18218d3bcd5699ad7470a6729b3bd7eef308ef6c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-androidpublisher_v3
2
2
 
3
+ ### v0.87.0 (2025-09-07)
4
+
5
+ * Regenerated from discovery document revision 20250904
6
+
3
7
  ### v0.86.0 (2025-08-31)
4
8
 
5
9
  * Regenerated from discovery document revision 20250828
@@ -904,6 +904,11 @@ module Google
904
904
  # @return [Google::Apis::AndroidpublisherV3::SubscriptionItemPriceChangeDetails]
905
905
  attr_accessor :price_change_details
906
906
 
907
+ # Information related to a price step-up that requires user consent.
908
+ # Corresponds to the JSON property `priceStepUpConsentDetails`
909
+ # @return [Google::Apis::AndroidpublisherV3::PriceStepUpConsentDetails]
910
+ attr_accessor :price_step_up_consent_details
911
+
907
912
  # Represents an amount of money with its currency type.
908
913
  # Corresponds to the JSON property `recurringPrice`
909
914
  # @return [Google::Apis::AndroidpublisherV3::Money]
@@ -918,6 +923,7 @@ module Google
918
923
  @auto_renew_enabled = args[:auto_renew_enabled] if args.key?(:auto_renew_enabled)
919
924
  @installment_details = args[:installment_details] if args.key?(:installment_details)
920
925
  @price_change_details = args[:price_change_details] if args.key?(:price_change_details)
926
+ @price_step_up_consent_details = args[:price_step_up_consent_details] if args.key?(:price_step_up_consent_details)
921
927
  @recurring_price = args[:recurring_price] if args.key?(:recurring_price)
922
928
  end
923
929
  end
@@ -1705,6 +1711,38 @@ module Google
1705
1711
  end
1706
1712
  end
1707
1713
 
1714
+ # Request for the purchases.subscriptionsv2.cancel API.
1715
+ class CancelSubscriptionPurchaseRequest
1716
+ include Google::Apis::Core::Hashable
1717
+
1718
+ # Cancellation context of the purchases.subscriptionsv2.cancel API.
1719
+ # Corresponds to the JSON property `cancellationContext`
1720
+ # @return [Google::Apis::AndroidpublisherV3::CancellationContext]
1721
+ attr_accessor :cancellation_context
1722
+
1723
+ def initialize(**args)
1724
+ update!(**args)
1725
+ end
1726
+
1727
+ # Update properties of this object
1728
+ def update!(**args)
1729
+ @cancellation_context = args[:cancellation_context] if args.key?(:cancellation_context)
1730
+ end
1731
+ end
1732
+
1733
+ # Response for the purchases.subscriptionsv2.cancel API.
1734
+ class CancelSubscriptionPurchaseResponse
1735
+ include Google::Apis::Core::Hashable
1736
+
1737
+ def initialize(**args)
1738
+ update!(**args)
1739
+ end
1740
+
1741
+ # Update properties of this object
1742
+ def update!(**args)
1743
+ end
1744
+ end
1745
+
1708
1746
  # Result of the cancel survey when the subscription was canceled by the user.
1709
1747
  class CancelSurveyResult
1710
1748
  include Google::Apis::Core::Hashable
@@ -1769,6 +1807,25 @@ module Google
1769
1807
  end
1770
1808
  end
1771
1809
 
1810
+ # Cancellation context of the purchases.subscriptionsv2.cancel API.
1811
+ class CancellationContext
1812
+ include Google::Apis::Core::Hashable
1813
+
1814
+ # Required. The type of cancellation for the purchased subscription.
1815
+ # Corresponds to the JSON property `cancellationType`
1816
+ # @return [String]
1817
+ attr_accessor :cancellation_type
1818
+
1819
+ def initialize(**args)
1820
+ update!(**args)
1821
+ end
1822
+
1823
+ # Update properties of this object
1824
+ def update!(**args)
1825
+ @cancellation_type = args[:cancellation_type] if args.key?(:cancellation_type)
1826
+ end
1827
+ end
1828
+
1772
1829
  # Details of when the order was canceled.
1773
1830
  class CancellationEvent
1774
1831
  include Google::Apis::Core::Hashable
@@ -6010,6 +6067,38 @@ module Google
6010
6067
  end
6011
6068
  end
6012
6069
 
6070
+ # Information related to a price step-up that requires user consent.
6071
+ class PriceStepUpConsentDetails
6072
+ include Google::Apis::Core::Hashable
6073
+
6074
+ # The deadline by which the user must provide consent. If consent is not
6075
+ # provided by this time, the subscription will be canceled.
6076
+ # Corresponds to the JSON property `consentDeadlineTime`
6077
+ # @return [String]
6078
+ attr_accessor :consent_deadline_time
6079
+
6080
+ # Represents an amount of money with its currency type.
6081
+ # Corresponds to the JSON property `newPrice`
6082
+ # @return [Google::Apis::AndroidpublisherV3::Money]
6083
+ attr_accessor :new_price
6084
+
6085
+ # Output only. The state of the price step-up consent.
6086
+ # Corresponds to the JSON property `state`
6087
+ # @return [String]
6088
+ attr_accessor :state
6089
+
6090
+ def initialize(**args)
6091
+ update!(**args)
6092
+ end
6093
+
6094
+ # Update properties of this object
6095
+ def update!(**args)
6096
+ @consent_deadline_time = args[:consent_deadline_time] if args.key?(:consent_deadline_time)
6097
+ @new_price = args[:new_price] if args.key?(:new_price)
6098
+ @state = args[:state] if args.key?(:state)
6099
+ end
6100
+ end
6101
+
6013
6102
  # Details of when the order was processed.
6014
6103
  class ProcessedEvent
6015
6104
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module AndroidpublisherV3
18
18
  # Version of the google-apis-androidpublisher_v3 gem
19
- GEM_VERSION = "0.86.0"
19
+ GEM_VERSION = "0.87.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 = "20250828"
25
+ REVISION = "20250904"
26
26
  end
27
27
  end
28
28
  end
@@ -406,6 +406,18 @@ module Google
406
406
  include Google::Apis::Core::JsonObjectSupport
407
407
  end
408
408
 
409
+ class CancelSubscriptionPurchaseRequest
410
+ class Representation < Google::Apis::Core::JsonRepresentation; end
411
+
412
+ include Google::Apis::Core::JsonObjectSupport
413
+ end
414
+
415
+ class CancelSubscriptionPurchaseResponse
416
+ class Representation < Google::Apis::Core::JsonRepresentation; end
417
+
418
+ include Google::Apis::Core::JsonObjectSupport
419
+ end
420
+
409
421
  class CancelSurveyResult
410
422
  class Representation < Google::Apis::Core::JsonRepresentation; end
411
423
 
@@ -418,6 +430,12 @@ module Google
418
430
  include Google::Apis::Core::JsonObjectSupport
419
431
  end
420
432
 
433
+ class CancellationContext
434
+ class Representation < Google::Apis::Core::JsonRepresentation; end
435
+
436
+ include Google::Apis::Core::JsonObjectSupport
437
+ end
438
+
421
439
  class CancellationEvent
422
440
  class Representation < Google::Apis::Core::JsonRepresentation; end
423
441
 
@@ -1180,6 +1198,12 @@ module Google
1180
1198
  include Google::Apis::Core::JsonObjectSupport
1181
1199
  end
1182
1200
 
1201
+ class PriceStepUpConsentDetails
1202
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1203
+
1204
+ include Google::Apis::Core::JsonObjectSupport
1205
+ end
1206
+
1183
1207
  class ProcessedEvent
1184
1208
  class Representation < Google::Apis::Core::JsonRepresentation; end
1185
1209
 
@@ -2122,6 +2146,8 @@ module Google
2122
2146
 
2123
2147
  property :price_change_details, as: 'priceChangeDetails', class: Google::Apis::AndroidpublisherV3::SubscriptionItemPriceChangeDetails, decorator: Google::Apis::AndroidpublisherV3::SubscriptionItemPriceChangeDetails::Representation
2124
2148
 
2149
+ property :price_step_up_consent_details, as: 'priceStepUpConsentDetails', class: Google::Apis::AndroidpublisherV3::PriceStepUpConsentDetails, decorator: Google::Apis::AndroidpublisherV3::PriceStepUpConsentDetails::Representation
2150
+
2125
2151
  property :recurring_price, as: 'recurringPrice', class: Google::Apis::AndroidpublisherV3::Money, decorator: Google::Apis::AndroidpublisherV3::Money::Representation
2126
2152
 
2127
2153
  end
@@ -2421,6 +2447,20 @@ module Google
2421
2447
  end
2422
2448
  end
2423
2449
 
2450
+ class CancelSubscriptionPurchaseRequest
2451
+ # @private
2452
+ class Representation < Google::Apis::Core::JsonRepresentation
2453
+ property :cancellation_context, as: 'cancellationContext', class: Google::Apis::AndroidpublisherV3::CancellationContext, decorator: Google::Apis::AndroidpublisherV3::CancellationContext::Representation
2454
+
2455
+ end
2456
+ end
2457
+
2458
+ class CancelSubscriptionPurchaseResponse
2459
+ # @private
2460
+ class Representation < Google::Apis::Core::JsonRepresentation
2461
+ end
2462
+ end
2463
+
2424
2464
  class CancelSurveyResult
2425
2465
  # @private
2426
2466
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2443,6 +2483,13 @@ module Google
2443
2483
  end
2444
2484
  end
2445
2485
 
2486
+ class CancellationContext
2487
+ # @private
2488
+ class Representation < Google::Apis::Core::JsonRepresentation
2489
+ property :cancellation_type, as: 'cancellationType'
2490
+ end
2491
+ end
2492
+
2446
2493
  class CancellationEvent
2447
2494
  # @private
2448
2495
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3717,6 +3764,16 @@ module Google
3717
3764
  end
3718
3765
  end
3719
3766
 
3767
+ class PriceStepUpConsentDetails
3768
+ # @private
3769
+ class Representation < Google::Apis::Core::JsonRepresentation
3770
+ property :consent_deadline_time, as: 'consentDeadlineTime'
3771
+ property :new_price, as: 'newPrice', class: Google::Apis::AndroidpublisherV3::Money, decorator: Google::Apis::AndroidpublisherV3::Money::Representation
3772
+
3773
+ property :state, as: 'state'
3774
+ end
3775
+ end
3776
+
3720
3777
  class ProcessedEvent
3721
3778
  # @private
3722
3779
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -4823,6 +4823,44 @@ module Google
4823
4823
  execute_or_queue_command(command, &block)
4824
4824
  end
4825
4825
 
4826
+ # Cancel a subscription purchase for the user.
4827
+ # @param [String] package_name
4828
+ # Required. The package of the application for which this subscription was
4829
+ # purchased (for example, 'com.some.thing').
4830
+ # @param [String] token
4831
+ # Required. The token provided to the user's device when the subscription was
4832
+ # purchased.
4833
+ # @param [Google::Apis::AndroidpublisherV3::CancelSubscriptionPurchaseRequest] cancel_subscription_purchase_request_object
4834
+ # @param [String] fields
4835
+ # Selector specifying which fields to include in a partial response.
4836
+ # @param [String] quota_user
4837
+ # Available to use for quota purposes for server-side applications. Can be any
4838
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4839
+ # @param [Google::Apis::RequestOptions] options
4840
+ # Request-specific options
4841
+ #
4842
+ # @yield [result, err] Result & error if block supplied
4843
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::CancelSubscriptionPurchaseResponse] parsed result object
4844
+ # @yieldparam err [StandardError] error object if request failed
4845
+ #
4846
+ # @return [Google::Apis::AndroidpublisherV3::CancelSubscriptionPurchaseResponse]
4847
+ #
4848
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4849
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4850
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4851
+ def cancel_subscriptionsv2_subscription_purchase(package_name, token, cancel_subscription_purchase_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
4852
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/purchases/subscriptionsv2/tokens/{token}:cancel', options)
4853
+ command.request_representation = Google::Apis::AndroidpublisherV3::CancelSubscriptionPurchaseRequest::Representation
4854
+ command.request_object = cancel_subscription_purchase_request_object
4855
+ command.response_representation = Google::Apis::AndroidpublisherV3::CancelSubscriptionPurchaseResponse::Representation
4856
+ command.response_class = Google::Apis::AndroidpublisherV3::CancelSubscriptionPurchaseResponse
4857
+ command.params['packageName'] = package_name unless package_name.nil?
4858
+ command.params['token'] = token unless token.nil?
4859
+ command.query['fields'] = fields unless fields.nil?
4860
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4861
+ execute_or_queue_command(command, &block)
4862
+ end
4863
+
4826
4864
  # Get metadata about a subscription
4827
4865
  # @param [String] package_name
4828
4866
  # The package of the application for which this subscription was purchased (for
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-androidpublisher_v3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.86.0
4
+ version: 0.87.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-androidpublisher_v3/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-androidpublisher_v3/v0.86.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-androidpublisher_v3/v0.87.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-androidpublisher_v3
62
62
  rdoc_options: []
63
63
  require_paths: