Skip to content

Commit 993417c

Browse files
feat: Automated regeneration of androidpublisher v3 client (#24228)
Auto-created at 2025-09-07 10:37:38 +0000 using the toys pull request generator.
1 parent ecf3e2c commit 993417c

File tree

6 files changed

+203
-2
lines changed

6 files changed

+203
-2
lines changed

api_names_out.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34661,6 +34661,7 @@
3466134661
"/androidpublisher:v3/AutoRenewingPlan/autoRenewEnabled": auto_renew_enabled
3466234662
"/androidpublisher:v3/AutoRenewingPlan/installmentDetails": installment_details
3466334663
"/androidpublisher:v3/AutoRenewingPlan/priceChangeDetails": price_change_details
34664+
"/androidpublisher:v3/AutoRenewingPlan/priceStepUpConsentDetails": price_step_up_consent_details
3466434665
"/androidpublisher:v3/AutoRenewingPlan/recurringPrice": recurring_price
3466534666
"/androidpublisher:v3/BasePlan": base_plan
3466634667
"/androidpublisher:v3/BasePlan/autoRenewingBasePlanType": auto_renewing_base_plan_type
@@ -34777,6 +34778,9 @@
3477734778
"/androidpublisher:v3/CancelOneTimeProductOfferRequest/packageName": package_name
3477834779
"/androidpublisher:v3/CancelOneTimeProductOfferRequest/productId": product_id
3477934780
"/androidpublisher:v3/CancelOneTimeProductOfferRequest/purchaseOptionId": purchase_option_id
34781+
"/androidpublisher:v3/CancelSubscriptionPurchaseRequest": cancel_subscription_purchase_request
34782+
"/androidpublisher:v3/CancelSubscriptionPurchaseRequest/cancellationContext": cancellation_context
34783+
"/androidpublisher:v3/CancelSubscriptionPurchaseResponse": cancel_subscription_purchase_response
3478034784
"/androidpublisher:v3/CancelSurveyResult": cancel_survey_result
3478134785
"/androidpublisher:v3/CancelSurveyResult/reason": reason
3478234786
"/androidpublisher:v3/CancelSurveyResult/reasonUserInput": reason_user_input
@@ -34785,6 +34789,8 @@
3478534789
"/androidpublisher:v3/CanceledStateContext/replacementCancellation": replacement_cancellation
3478634790
"/androidpublisher:v3/CanceledStateContext/systemInitiatedCancellation": system_initiated_cancellation
3478734791
"/androidpublisher:v3/CanceledStateContext/userInitiatedCancellation": user_initiated_cancellation
34792+
"/androidpublisher:v3/CancellationContext": cancellation_context
34793+
"/androidpublisher:v3/CancellationContext/cancellationType": cancellation_type
3478834794
"/androidpublisher:v3/CancellationEvent": cancellation_event
3478934795
"/androidpublisher:v3/CancellationEvent/eventTime": event_time
3479034796
"/androidpublisher:v3/Comment": comment
@@ -35366,6 +35372,10 @@
3536635372
"/androidpublisher:v3/Price": price
3536735373
"/androidpublisher:v3/Price/currency": currency
3536835374
"/androidpublisher:v3/Price/priceMicros": price_micros
35375+
"/androidpublisher:v3/PriceStepUpConsentDetails": price_step_up_consent_details
35376+
"/androidpublisher:v3/PriceStepUpConsentDetails/consentDeadlineTime": consent_deadline_time
35377+
"/androidpublisher:v3/PriceStepUpConsentDetails/newPrice": new_price
35378+
"/androidpublisher:v3/PriceStepUpConsentDetails/state": state
3536935379
"/androidpublisher:v3/ProcessedEvent": processed_event
3537035380
"/androidpublisher:v3/ProcessedEvent/eventTime": event_time
3537135381
"/androidpublisher:v3/ProductLineItem": product_line_item
@@ -36323,6 +36333,9 @@
3632336333
"/androidpublisher:v3/androidpublisher.purchases.subscriptions.revoke/packageName": package_name
3632436334
"/androidpublisher:v3/androidpublisher.purchases.subscriptions.revoke/subscriptionId": subscription_id
3632536335
"/androidpublisher:v3/androidpublisher.purchases.subscriptions.revoke/token": token
36336+
"/androidpublisher:v3/androidpublisher.purchases.subscriptionsv2.cancel": cancel_subscriptionsv2_subscription_purchase
36337+
"/androidpublisher:v3/androidpublisher.purchases.subscriptionsv2.cancel/packageName": package_name
36338+
"/androidpublisher:v3/androidpublisher.purchases.subscriptionsv2.cancel/token": token
3632636339
"/androidpublisher:v3/androidpublisher.purchases.subscriptionsv2.get": get_purchase_subscriptionsv2
3632736340
"/androidpublisher:v3/androidpublisher.purchases.subscriptionsv2.get/packageName": package_name
3632836341
"/androidpublisher:v3/androidpublisher.purchases.subscriptionsv2.get/token": token

generated/google-apis-androidpublisher_v3/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-androidpublisher_v3
22

3+
### v0.87.0 (2025-09-07)
4+
5+
* Regenerated from discovery document revision 20250904
6+
37
### v0.86.0 (2025-08-31)
48

59
* Regenerated from discovery document revision 20250828

generated/google-apis-androidpublisher_v3/lib/google/apis/androidpublisher_v3/classes.rb

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -904,6 +904,11 @@ class AutoRenewingPlan
904904
# @return [Google::Apis::AndroidpublisherV3::SubscriptionItemPriceChangeDetails]
905905
attr_accessor :price_change_details
906906

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+
907912
# Represents an amount of money with its currency type.
908913
# Corresponds to the JSON property `recurringPrice`
909914
# @return [Google::Apis::AndroidpublisherV3::Money]
@@ -918,6 +923,7 @@ def update!(**args)
918923
@auto_renew_enabled = args[:auto_renew_enabled] if args.key?(:auto_renew_enabled)
919924
@installment_details = args[:installment_details] if args.key?(:installment_details)
920925
@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)
921927
@recurring_price = args[:recurring_price] if args.key?(:recurring_price)
922928
end
923929
end
@@ -1705,6 +1711,38 @@ def update!(**args)
17051711
end
17061712
end
17071713

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+
17081746
# Result of the cancel survey when the subscription was canceled by the user.
17091747
class CancelSurveyResult
17101748
include Google::Apis::Core::Hashable
@@ -1769,6 +1807,25 @@ def update!(**args)
17691807
end
17701808
end
17711809

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+
17721829
# Details of when the order was canceled.
17731830
class CancellationEvent
17741831
include Google::Apis::Core::Hashable
@@ -6010,6 +6067,38 @@ def update!(**args)
60106067
end
60116068
end
60126069

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+
60136102
# Details of when the order was processed.
60146103
class ProcessedEvent
60156104
include Google::Apis::Core::Hashable

generated/google-apis-androidpublisher_v3/lib/google/apis/androidpublisher_v3/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module AndroidpublisherV3
1818
# Version of the google-apis-androidpublisher_v3 gem
19-
GEM_VERSION = "0.86.0"
19+
GEM_VERSION = "0.87.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.18.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20250828"
25+
REVISION = "20250904"
2626
end
2727
end
2828
end

generated/google-apis-androidpublisher_v3/lib/google/apis/androidpublisher_v3/representations.rb

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
406406
include Google::Apis::Core::JsonObjectSupport
407407
end
408408

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+
409421
class CancelSurveyResult
410422
class Representation < Google::Apis::Core::JsonRepresentation; end
411423

@@ -418,6 +430,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
418430
include Google::Apis::Core::JsonObjectSupport
419431
end
420432

433+
class CancellationContext
434+
class Representation < Google::Apis::Core::JsonRepresentation; end
435+
436+
include Google::Apis::Core::JsonObjectSupport
437+
end
438+
421439
class CancellationEvent
422440
class Representation < Google::Apis::Core::JsonRepresentation; end
423441

@@ -1180,6 +1198,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
11801198
include Google::Apis::Core::JsonObjectSupport
11811199
end
11821200

1201+
class PriceStepUpConsentDetails
1202+
class Representation < Google::Apis::Core::JsonRepresentation; end
1203+
1204+
include Google::Apis::Core::JsonObjectSupport
1205+
end
1206+
11831207
class ProcessedEvent
11841208
class Representation < Google::Apis::Core::JsonRepresentation; end
11851209

@@ -2122,6 +2146,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
21222146

21232147
property :price_change_details, as: 'priceChangeDetails', class: Google::Apis::AndroidpublisherV3::SubscriptionItemPriceChangeDetails, decorator: Google::Apis::AndroidpublisherV3::SubscriptionItemPriceChangeDetails::Representation
21242148

2149+
property :price_step_up_consent_details, as: 'priceStepUpConsentDetails', class: Google::Apis::AndroidpublisherV3::PriceStepUpConsentDetails, decorator: Google::Apis::AndroidpublisherV3::PriceStepUpConsentDetails::Representation
2150+
21252151
property :recurring_price, as: 'recurringPrice', class: Google::Apis::AndroidpublisherV3::Money, decorator: Google::Apis::AndroidpublisherV3::Money::Representation
21262152

21272153
end
@@ -2421,6 +2447,20 @@ class Representation < Google::Apis::Core::JsonRepresentation
24212447
end
24222448
end
24232449

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+
24242464
class CancelSurveyResult
24252465
# @private
24262466
class Representation < Google::Apis::Core::JsonRepresentation
@@ -2443,6 +2483,13 @@ class Representation < Google::Apis::Core::JsonRepresentation
24432483
end
24442484
end
24452485

2486+
class CancellationContext
2487+
# @private
2488+
class Representation < Google::Apis::Core::JsonRepresentation
2489+
property :cancellation_type, as: 'cancellationType'
2490+
end
2491+
end
2492+
24462493
class CancellationEvent
24472494
# @private
24482495
class Representation < Google::Apis::Core::JsonRepresentation
@@ -3717,6 +3764,16 @@ class Representation < Google::Apis::Core::JsonRepresentation
37173764
end
37183765
end
37193766

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+
37203777
class ProcessedEvent
37213778
# @private
37223779
class Representation < Google::Apis::Core::JsonRepresentation

generated/google-apis-androidpublisher_v3/lib/google/apis/androidpublisher_v3/service.rb

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4823,6 +4823,44 @@ def revoke_purchase_subscription(package_name, subscription_id, token, fields: n
48234823
execute_or_queue_command(command, &block)
48244824
end
48254825

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+
48264864
# Get metadata about a subscription
48274865
# @param [String] package_name
48284866
# The package of the application for which this subscription was purchased (for

0 commit comments

Comments
 (0)