google-apis-androidpublisher_v3 0.86.0 → 0.88.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: 2198180802c73cef0c0a93d206e08b4d45becef2cdad25a2bb5bafeb62906bfd
4
+ data.tar.gz: 5a47b0664fd88e0604b9e269e69dbb114dd42b84f388cf94bc9f92b132e2d782
5
5
  SHA512:
6
- metadata.gz: e427295d196d526154111251dbb1f7fbcacf5176e8fd6d4e1129c8f47c2ea47145c4645c71f7e722aa0bdc622e536194b2529c2a51daa8e150245587c49b2f04
7
- data.tar.gz: 689746fa48a74b266e3bc117e199ccca70623d27850c5eed9a9301fb0552302df3fbfc0fb6737d02bb547b0368d8548fbfa897d19ab271ad571e9addd752b999
6
+ metadata.gz: 80c44804bc1dbe86459f84cff29985de45f912408c65ca430a6a167350ec599c319292e6cacc100eb41db5d8c77a09b4228335c714daffcf4c2eb1002475a220
7
+ data.tar.gz: 5aa5455297a8c94b62e44bdfe7ebcdc17a0ac61248e634e6e6e4c27dbc892e91dcb0685456f8f7071abfab89c9178320fbbfc04622d6bc09ef82d46c446d13c2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-androidpublisher_v3
2
2
 
3
+ ### v0.88.0 (2025-11-02)
4
+
5
+ * Regenerated from discovery document revision 20251028
6
+
7
+ ### v0.87.0 (2025-09-07)
8
+
9
+ * Regenerated from discovery document revision 20250904
10
+
3
11
  ### v0.86.0 (2025-08-31)
4
12
 
5
13
  * 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
@@ -5395,6 +5452,11 @@ module Google
5395
5452
  # @return [String]
5396
5453
  attr_accessor :offer_id
5397
5454
 
5455
+ # Details of a pre-order purchase.
5456
+ # Corresponds to the JSON property `preorderDetails`
5457
+ # @return [Google::Apis::AndroidpublisherV3::PreorderDetails]
5458
+ attr_accessor :preorder_details
5459
+
5398
5460
  # ID of the purchase option. This field is set for both purchase options and
5399
5461
  # variant offers. For purchase options, this ID identifies the purchase option
5400
5462
  # itself. For variant offers, this ID refers to the associated purchase option,
@@ -5420,6 +5482,7 @@ module Google
5420
5482
  # Update properties of this object
5421
5483
  def update!(**args)
5422
5484
  @offer_id = args[:offer_id] if args.key?(:offer_id)
5485
+ @preorder_details = args[:preorder_details] if args.key?(:preorder_details)
5423
5486
  @purchase_option_id = args[:purchase_option_id] if args.key?(:purchase_option_id)
5424
5487
  @quantity = args[:quantity] if args.key?(:quantity)
5425
5488
  @rental_details = args[:rental_details] if args.key?(:rental_details)
@@ -5935,6 +5998,38 @@ module Google
5935
5998
  end
5936
5999
  end
5937
6000
 
6001
+ # Details of a pre-order purchase.
6002
+ class PreorderDetails
6003
+ include Google::Apis::Core::Hashable
6004
+
6005
+ def initialize(**args)
6006
+ update!(**args)
6007
+ end
6008
+
6009
+ # Update properties of this object
6010
+ def update!(**args)
6011
+ end
6012
+ end
6013
+
6014
+ # Offer details information related to a preorder line item.
6015
+ class PreorderOfferDetails
6016
+ include Google::Apis::Core::Hashable
6017
+
6018
+ # The time when a preordered item is released for a preorder purchase.
6019
+ # Corresponds to the JSON property `preorderReleaseTime`
6020
+ # @return [String]
6021
+ attr_accessor :preorder_release_time
6022
+
6023
+ def initialize(**args)
6024
+ update!(**args)
6025
+ end
6026
+
6027
+ # Update properties of this object
6028
+ def update!(**args)
6029
+ @preorder_release_time = args[:preorder_release_time] if args.key?(:preorder_release_time)
6030
+ end
6031
+ end
6032
+
5938
6033
  # Represents a base plan that does not automatically renew at the end of the
5939
6034
  # base plan, and must be manually renewed by the user.
5940
6035
  class PrepaidBasePlanType
@@ -6010,6 +6105,38 @@ module Google
6010
6105
  end
6011
6106
  end
6012
6107
 
6108
+ # Information related to a price step-up that requires user consent.
6109
+ class PriceStepUpConsentDetails
6110
+ include Google::Apis::Core::Hashable
6111
+
6112
+ # The deadline by which the user must provide consent. If consent is not
6113
+ # provided by this time, the subscription will be canceled.
6114
+ # Corresponds to the JSON property `consentDeadlineTime`
6115
+ # @return [String]
6116
+ attr_accessor :consent_deadline_time
6117
+
6118
+ # Represents an amount of money with its currency type.
6119
+ # Corresponds to the JSON property `newPrice`
6120
+ # @return [Google::Apis::AndroidpublisherV3::Money]
6121
+ attr_accessor :new_price
6122
+
6123
+ # Output only. The state of the price step-up consent.
6124
+ # Corresponds to the JSON property `state`
6125
+ # @return [String]
6126
+ attr_accessor :state
6127
+
6128
+ def initialize(**args)
6129
+ update!(**args)
6130
+ end
6131
+
6132
+ # Update properties of this object
6133
+ def update!(**args)
6134
+ @consent_deadline_time = args[:consent_deadline_time] if args.key?(:consent_deadline_time)
6135
+ @new_price = args[:new_price] if args.key?(:new_price)
6136
+ @state = args[:state] if args.key?(:state)
6137
+ end
6138
+ end
6139
+
6013
6140
  # Details of when the order was processed.
6014
6141
  class ProcessedEvent
6015
6142
  include Google::Apis::Core::Hashable
@@ -6079,6 +6206,11 @@ module Google
6079
6206
  # @return [String]
6080
6207
  attr_accessor :offer_token
6081
6208
 
6209
+ # Offer details information related to a preorder line item.
6210
+ # Corresponds to the JSON property `preorderOfferDetails`
6211
+ # @return [Google::Apis::AndroidpublisherV3::PreorderOfferDetails]
6212
+ attr_accessor :preorder_offer_details
6213
+
6082
6214
  # The purchase option ID.
6083
6215
  # Corresponds to the JSON property `purchaseOptionId`
6084
6216
  # @return [String]
@@ -6110,6 +6242,7 @@ module Google
6110
6242
  @offer_id = args[:offer_id] if args.key?(:offer_id)
6111
6243
  @offer_tags = args[:offer_tags] if args.key?(:offer_tags)
6112
6244
  @offer_token = args[:offer_token] if args.key?(:offer_token)
6245
+ @preorder_offer_details = args[:preorder_offer_details] if args.key?(:preorder_offer_details)
6113
6246
  @purchase_option_id = args[:purchase_option_id] if args.key?(:purchase_option_id)
6114
6247
  @quantity = args[:quantity] if args.key?(:quantity)
6115
6248
  @refundable_quantity = args[:refundable_quantity] if args.key?(:refundable_quantity)
@@ -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.88.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 = "20251028"
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
 
@@ -1162,6 +1180,18 @@ module Google
1162
1180
  include Google::Apis::Core::JsonObjectSupport
1163
1181
  end
1164
1182
 
1183
+ class PreorderDetails
1184
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1185
+
1186
+ include Google::Apis::Core::JsonObjectSupport
1187
+ end
1188
+
1189
+ class PreorderOfferDetails
1190
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1191
+
1192
+ include Google::Apis::Core::JsonObjectSupport
1193
+ end
1194
+
1165
1195
  class PrepaidBasePlanType
1166
1196
  class Representation < Google::Apis::Core::JsonRepresentation; end
1167
1197
 
@@ -1180,6 +1210,12 @@ module Google
1180
1210
  include Google::Apis::Core::JsonObjectSupport
1181
1211
  end
1182
1212
 
1213
+ class PriceStepUpConsentDetails
1214
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1215
+
1216
+ include Google::Apis::Core::JsonObjectSupport
1217
+ end
1218
+
1183
1219
  class ProcessedEvent
1184
1220
  class Representation < Google::Apis::Core::JsonRepresentation; end
1185
1221
 
@@ -2122,6 +2158,8 @@ module Google
2122
2158
 
2123
2159
  property :price_change_details, as: 'priceChangeDetails', class: Google::Apis::AndroidpublisherV3::SubscriptionItemPriceChangeDetails, decorator: Google::Apis::AndroidpublisherV3::SubscriptionItemPriceChangeDetails::Representation
2124
2160
 
2161
+ property :price_step_up_consent_details, as: 'priceStepUpConsentDetails', class: Google::Apis::AndroidpublisherV3::PriceStepUpConsentDetails, decorator: Google::Apis::AndroidpublisherV3::PriceStepUpConsentDetails::Representation
2162
+
2125
2163
  property :recurring_price, as: 'recurringPrice', class: Google::Apis::AndroidpublisherV3::Money, decorator: Google::Apis::AndroidpublisherV3::Money::Representation
2126
2164
 
2127
2165
  end
@@ -2421,6 +2459,20 @@ module Google
2421
2459
  end
2422
2460
  end
2423
2461
 
2462
+ class CancelSubscriptionPurchaseRequest
2463
+ # @private
2464
+ class Representation < Google::Apis::Core::JsonRepresentation
2465
+ property :cancellation_context, as: 'cancellationContext', class: Google::Apis::AndroidpublisherV3::CancellationContext, decorator: Google::Apis::AndroidpublisherV3::CancellationContext::Representation
2466
+
2467
+ end
2468
+ end
2469
+
2470
+ class CancelSubscriptionPurchaseResponse
2471
+ # @private
2472
+ class Representation < Google::Apis::Core::JsonRepresentation
2473
+ end
2474
+ end
2475
+
2424
2476
  class CancelSurveyResult
2425
2477
  # @private
2426
2478
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2443,6 +2495,13 @@ module Google
2443
2495
  end
2444
2496
  end
2445
2497
 
2498
+ class CancellationContext
2499
+ # @private
2500
+ class Representation < Google::Apis::Core::JsonRepresentation
2501
+ property :cancellation_type, as: 'cancellationType'
2502
+ end
2503
+ end
2504
+
2446
2505
  class CancellationEvent
2447
2506
  # @private
2448
2507
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3527,6 +3586,8 @@ module Google
3527
3586
  # @private
3528
3587
  class Representation < Google::Apis::Core::JsonRepresentation
3529
3588
  property :offer_id, as: 'offerId'
3589
+ property :preorder_details, as: 'preorderDetails', class: Google::Apis::AndroidpublisherV3::PreorderDetails, decorator: Google::Apis::AndroidpublisherV3::PreorderDetails::Representation
3590
+
3530
3591
  property :purchase_option_id, as: 'purchaseOptionId'
3531
3592
  property :quantity, as: 'quantity'
3532
3593
  property :rental_details, as: 'rentalDetails', class: Google::Apis::AndroidpublisherV3::RentalDetails, decorator: Google::Apis::AndroidpublisherV3::RentalDetails::Representation
@@ -3694,6 +3755,19 @@ module Google
3694
3755
  end
3695
3756
  end
3696
3757
 
3758
+ class PreorderDetails
3759
+ # @private
3760
+ class Representation < Google::Apis::Core::JsonRepresentation
3761
+ end
3762
+ end
3763
+
3764
+ class PreorderOfferDetails
3765
+ # @private
3766
+ class Representation < Google::Apis::Core::JsonRepresentation
3767
+ property :preorder_release_time, as: 'preorderReleaseTime'
3768
+ end
3769
+ end
3770
+
3697
3771
  class PrepaidBasePlanType
3698
3772
  # @private
3699
3773
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3717,6 +3791,16 @@ module Google
3717
3791
  end
3718
3792
  end
3719
3793
 
3794
+ class PriceStepUpConsentDetails
3795
+ # @private
3796
+ class Representation < Google::Apis::Core::JsonRepresentation
3797
+ property :consent_deadline_time, as: 'consentDeadlineTime'
3798
+ property :new_price, as: 'newPrice', class: Google::Apis::AndroidpublisherV3::Money, decorator: Google::Apis::AndroidpublisherV3::Money::Representation
3799
+
3800
+ property :state, as: 'state'
3801
+ end
3802
+ end
3803
+
3720
3804
  class ProcessedEvent
3721
3805
  # @private
3722
3806
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3740,6 +3824,8 @@ module Google
3740
3824
  property :offer_id, as: 'offerId'
3741
3825
  collection :offer_tags, as: 'offerTags'
3742
3826
  property :offer_token, as: 'offerToken'
3827
+ property :preorder_offer_details, as: 'preorderOfferDetails', class: Google::Apis::AndroidpublisherV3::PreorderOfferDetails, decorator: Google::Apis::AndroidpublisherV3::PreorderOfferDetails::Representation
3828
+
3743
3829
  property :purchase_option_id, as: 'purchaseOptionId'
3744
3830
  property :quantity, as: 'quantity'
3745
3831
  property :refundable_quantity, as: 'refundableQuantity'
@@ -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.88.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.88.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: