google-apis-androidpublisher_v3 0.53.0 → 0.55.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.
@@ -34,6 +34,8 @@ module Google
34
34
  #
35
35
  # @see https://developers.google.com/android-publisher
36
36
  class AndroidPublisherService < Google::Apis::Core::BaseService
37
+ DEFAULT_ENDPOINT_TEMPLATE = "https://androidpublisher.$UNIVERSE_DOMAIN$/"
38
+
37
39
  # @return [String]
38
40
  # API key. Your API key identifies your project and provides you with API access,
39
41
  # quota, and reports. Required unless you provide an OAuth 2.0 token.
@@ -45,7 +47,7 @@ module Google
45
47
  attr_accessor :quota_user
46
48
 
47
49
  def initialize
48
- super('https://androidpublisher.googleapis.com/', '',
50
+ super(DEFAULT_ENDPOINT_TEMPLATE, '',
49
51
  client_name: 'google-apis-androidpublisher_v3',
50
52
  client_version: Google::Apis::AndroidpublisherV3::GEM_VERSION)
51
53
  @batch_path = 'batch'
@@ -162,6 +164,188 @@ module Google
162
164
  execute_or_queue_command(command, &block)
163
165
  end
164
166
 
167
+ # Incrementally update targeting for a recovery action. Note that only the
168
+ # criteria selected during the creation of recovery action can be expanded.
169
+ # @param [String] package_name
170
+ # Required. Package name of the app for which recovery action is to be updated.
171
+ # @param [Fixnum] app_recovery_id
172
+ # Required. ID corresponding to the app recovery action.
173
+ # @param [Google::Apis::AndroidpublisherV3::AddTargetingRequest] add_targeting_request_object
174
+ # @param [String] fields
175
+ # Selector specifying which fields to include in a partial response.
176
+ # @param [String] quota_user
177
+ # Available to use for quota purposes for server-side applications. Can be any
178
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
179
+ # @param [Google::Apis::RequestOptions] options
180
+ # Request-specific options
181
+ #
182
+ # @yield [result, err] Result & error if block supplied
183
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::AddTargetingResponse] parsed result object
184
+ # @yieldparam err [StandardError] error object if request failed
185
+ #
186
+ # @return [Google::Apis::AndroidpublisherV3::AddTargetingResponse]
187
+ #
188
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
189
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
190
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
191
+ def add_apprecovery_targeting(package_name, app_recovery_id, add_targeting_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
192
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/appRecoveries/{appRecoveryId}:addTargeting', options)
193
+ command.request_representation = Google::Apis::AndroidpublisherV3::AddTargetingRequest::Representation
194
+ command.request_object = add_targeting_request_object
195
+ command.response_representation = Google::Apis::AndroidpublisherV3::AddTargetingResponse::Representation
196
+ command.response_class = Google::Apis::AndroidpublisherV3::AddTargetingResponse
197
+ command.params['packageName'] = package_name unless package_name.nil?
198
+ command.params['appRecoveryId'] = app_recovery_id unless app_recovery_id.nil?
199
+ command.query['fields'] = fields unless fields.nil?
200
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
201
+ execute_or_queue_command(command, &block)
202
+ end
203
+
204
+ # List all app recovery action resources associated with a particular package
205
+ # name and app version.
206
+ # @param [String] package_name
207
+ # Required. Package name of the app for which list of recovery actions is
208
+ # requested.
209
+ # @param [Fixnum] version_code
210
+ # Required. Version code targeted by the list of recovery actions.
211
+ # @param [String] fields
212
+ # Selector specifying which fields to include in a partial response.
213
+ # @param [String] quota_user
214
+ # Available to use for quota purposes for server-side applications. Can be any
215
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
216
+ # @param [Google::Apis::RequestOptions] options
217
+ # Request-specific options
218
+ #
219
+ # @yield [result, err] Result & error if block supplied
220
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::ListAppRecoveriesResponse] parsed result object
221
+ # @yieldparam err [StandardError] error object if request failed
222
+ #
223
+ # @return [Google::Apis::AndroidpublisherV3::ListAppRecoveriesResponse]
224
+ #
225
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
226
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
227
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
228
+ def app_apprecovery_recoveries(package_name, version_code: nil, fields: nil, quota_user: nil, options: nil, &block)
229
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/appRecoveries', options)
230
+ command.response_representation = Google::Apis::AndroidpublisherV3::ListAppRecoveriesResponse::Representation
231
+ command.response_class = Google::Apis::AndroidpublisherV3::ListAppRecoveriesResponse
232
+ command.params['packageName'] = package_name unless package_name.nil?
233
+ command.query['versionCode'] = version_code unless version_code.nil?
234
+ command.query['fields'] = fields unless fields.nil?
235
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
236
+ execute_or_queue_command(command, &block)
237
+ end
238
+
239
+ # Cancel an already executing app recovery action. Note that this action changes
240
+ # status of the recovery action to CANCELED.
241
+ # @param [String] package_name
242
+ # Required. Package name of the app for which recovery action cancellation is
243
+ # requested.
244
+ # @param [Fixnum] app_recovery_id
245
+ # Required. ID corresponding to the app recovery action.
246
+ # @param [Google::Apis::AndroidpublisherV3::CancelAppRecoveryRequest] cancel_app_recovery_request_object
247
+ # @param [String] fields
248
+ # Selector specifying which fields to include in a partial response.
249
+ # @param [String] quota_user
250
+ # Available to use for quota purposes for server-side applications. Can be any
251
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
252
+ # @param [Google::Apis::RequestOptions] options
253
+ # Request-specific options
254
+ #
255
+ # @yield [result, err] Result & error if block supplied
256
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::CancelAppRecoveryResponse] parsed result object
257
+ # @yieldparam err [StandardError] error object if request failed
258
+ #
259
+ # @return [Google::Apis::AndroidpublisherV3::CancelAppRecoveryResponse]
260
+ #
261
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
262
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
263
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
264
+ def cancel_apprecovery_app_recovery(package_name, app_recovery_id, cancel_app_recovery_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
265
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/appRecoveries/{appRecoveryId}:cancel', options)
266
+ command.request_representation = Google::Apis::AndroidpublisherV3::CancelAppRecoveryRequest::Representation
267
+ command.request_object = cancel_app_recovery_request_object
268
+ command.response_representation = Google::Apis::AndroidpublisherV3::CancelAppRecoveryResponse::Representation
269
+ command.response_class = Google::Apis::AndroidpublisherV3::CancelAppRecoveryResponse
270
+ command.params['packageName'] = package_name unless package_name.nil?
271
+ command.params['appRecoveryId'] = app_recovery_id unless app_recovery_id.nil?
272
+ command.query['fields'] = fields unless fields.nil?
273
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
274
+ execute_or_queue_command(command, &block)
275
+ end
276
+
277
+ # Create an app recovery action with recovery status as DRAFT. Note that this
278
+ # action does not execute the recovery action.
279
+ # @param [String] package_name
280
+ # Required. Package name of the app on which recovery action is performed.
281
+ # @param [Google::Apis::AndroidpublisherV3::CreateDraftAppRecoveryRequest] create_draft_app_recovery_request_object
282
+ # @param [String] fields
283
+ # Selector specifying which fields to include in a partial response.
284
+ # @param [String] quota_user
285
+ # Available to use for quota purposes for server-side applications. Can be any
286
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
287
+ # @param [Google::Apis::RequestOptions] options
288
+ # Request-specific options
289
+ #
290
+ # @yield [result, err] Result & error if block supplied
291
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::AppRecoveryAction] parsed result object
292
+ # @yieldparam err [StandardError] error object if request failed
293
+ #
294
+ # @return [Google::Apis::AndroidpublisherV3::AppRecoveryAction]
295
+ #
296
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
297
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
298
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
299
+ def create_apprecovery_draft_app_recovery(package_name, create_draft_app_recovery_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
300
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/appRecoveries', options)
301
+ command.request_representation = Google::Apis::AndroidpublisherV3::CreateDraftAppRecoveryRequest::Representation
302
+ command.request_object = create_draft_app_recovery_request_object
303
+ command.response_representation = Google::Apis::AndroidpublisherV3::AppRecoveryAction::Representation
304
+ command.response_class = Google::Apis::AndroidpublisherV3::AppRecoveryAction
305
+ command.params['packageName'] = package_name unless package_name.nil?
306
+ command.query['fields'] = fields unless fields.nil?
307
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
308
+ execute_or_queue_command(command, &block)
309
+ end
310
+
311
+ # Deploy an already created app recovery action with recovery status DRAFT. Note
312
+ # that this action activates the recovery action for all targeted users and
313
+ # changes its status to ACTIVE.
314
+ # @param [String] package_name
315
+ # Required. Package name of the app for which recovery action is deployed.
316
+ # @param [Fixnum] app_recovery_id
317
+ # Required. ID corresponding to the app recovery action to deploy.
318
+ # @param [Google::Apis::AndroidpublisherV3::DeployAppRecoveryRequest] deploy_app_recovery_request_object
319
+ # @param [String] fields
320
+ # Selector specifying which fields to include in a partial response.
321
+ # @param [String] quota_user
322
+ # Available to use for quota purposes for server-side applications. Can be any
323
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
324
+ # @param [Google::Apis::RequestOptions] options
325
+ # Request-specific options
326
+ #
327
+ # @yield [result, err] Result & error if block supplied
328
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::DeployAppRecoveryResponse] parsed result object
329
+ # @yieldparam err [StandardError] error object if request failed
330
+ #
331
+ # @return [Google::Apis::AndroidpublisherV3::DeployAppRecoveryResponse]
332
+ #
333
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
334
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
335
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
336
+ def deploy_apprecovery_app_recovery(package_name, app_recovery_id, deploy_app_recovery_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
337
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/appRecoveries/{appRecoveryId}:deploy', options)
338
+ command.request_representation = Google::Apis::AndroidpublisherV3::DeployAppRecoveryRequest::Representation
339
+ command.request_object = deploy_app_recovery_request_object
340
+ command.response_representation = Google::Apis::AndroidpublisherV3::DeployAppRecoveryResponse::Representation
341
+ command.response_class = Google::Apis::AndroidpublisherV3::DeployAppRecoveryResponse
342
+ command.params['packageName'] = package_name unless package_name.nil?
343
+ command.params['appRecoveryId'] = app_recovery_id unless app_recovery_id.nil?
344
+ command.query['fields'] = fields unless fields.nil?
345
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
346
+ execute_or_queue_command(command, &block)
347
+ end
348
+
165
349
  # Commits an app edit.
166
350
  # @param [String] package_name
167
351
  # Package name of the app.
@@ -1877,6 +2061,116 @@ module Google
1877
2061
  execute_or_queue_command(command, &block)
1878
2062
  end
1879
2063
 
2064
+ # Deletes in-app products (managed products or subscriptions). Set the
2065
+ # latencyTolerance field on nested requests to
2066
+ # PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update
2067
+ # throughput. This method should not be used to delete subscriptions. See [this
2068
+ # article](https://android-developers.googleblog.com/2023/06/changes-to-google-
2069
+ # play-developer-api-june-2023.html) for more information.
2070
+ # @param [String] package_name
2071
+ # Package name of the app.
2072
+ # @param [Google::Apis::AndroidpublisherV3::InappproductsBatchDeleteRequest] inappproducts_batch_delete_request_object
2073
+ # @param [String] fields
2074
+ # Selector specifying which fields to include in a partial response.
2075
+ # @param [String] quota_user
2076
+ # Available to use for quota purposes for server-side applications. Can be any
2077
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2078
+ # @param [Google::Apis::RequestOptions] options
2079
+ # Request-specific options
2080
+ #
2081
+ # @yield [result, err] Result & error if block supplied
2082
+ # @yieldparam result [NilClass] No result returned for this method
2083
+ # @yieldparam err [StandardError] error object if request failed
2084
+ #
2085
+ # @return [void]
2086
+ #
2087
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2088
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2089
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2090
+ def batch_inappproduct_delete(package_name, inappproducts_batch_delete_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2091
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/inappproducts:batchDelete', options)
2092
+ command.request_representation = Google::Apis::AndroidpublisherV3::InappproductsBatchDeleteRequest::Representation
2093
+ command.request_object = inappproducts_batch_delete_request_object
2094
+ command.params['packageName'] = package_name unless package_name.nil?
2095
+ command.query['fields'] = fields unless fields.nil?
2096
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2097
+ execute_or_queue_command(command, &block)
2098
+ end
2099
+
2100
+ # Reads multiple in-app products, which can be managed products or subscriptions.
2101
+ # This method should not be used to retrieve subscriptions. See [this article](
2102
+ # https://android-developers.googleblog.com/2023/06/changes-to-google-play-
2103
+ # developer-api-june-2023.html) for more information.
2104
+ # @param [String] package_name
2105
+ # Package name of the app.
2106
+ # @param [Array<String>, String] sku
2107
+ # Unique identifier for the in-app products.
2108
+ # @param [String] fields
2109
+ # Selector specifying which fields to include in a partial response.
2110
+ # @param [String] quota_user
2111
+ # Available to use for quota purposes for server-side applications. Can be any
2112
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2113
+ # @param [Google::Apis::RequestOptions] options
2114
+ # Request-specific options
2115
+ #
2116
+ # @yield [result, err] Result & error if block supplied
2117
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::InappproductsBatchGetResponse] parsed result object
2118
+ # @yieldparam err [StandardError] error object if request failed
2119
+ #
2120
+ # @return [Google::Apis::AndroidpublisherV3::InappproductsBatchGetResponse]
2121
+ #
2122
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2123
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2124
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2125
+ def batch_inappproduct_get(package_name, sku: nil, fields: nil, quota_user: nil, options: nil, &block)
2126
+ command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/inappproducts:batchGet', options)
2127
+ command.response_representation = Google::Apis::AndroidpublisherV3::InappproductsBatchGetResponse::Representation
2128
+ command.response_class = Google::Apis::AndroidpublisherV3::InappproductsBatchGetResponse
2129
+ command.params['packageName'] = package_name unless package_name.nil?
2130
+ command.query['sku'] = sku unless sku.nil?
2131
+ command.query['fields'] = fields unless fields.nil?
2132
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2133
+ execute_or_queue_command(command, &block)
2134
+ end
2135
+
2136
+ # Updates or inserts one or more in-app products (managed products or
2137
+ # subscriptions). Set the latencyTolerance field on nested requests to
2138
+ # PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update
2139
+ # throughput. This method should no longer be used to update subscriptions. See [
2140
+ # this article](https://android-developers.googleblog.com/2023/06/changes-to-
2141
+ # google-play-developer-api-june-2023.html) for more information.
2142
+ # @param [String] package_name
2143
+ # Package name of the app.
2144
+ # @param [Google::Apis::AndroidpublisherV3::InappproductsBatchUpdateRequest] inappproducts_batch_update_request_object
2145
+ # @param [String] fields
2146
+ # Selector specifying which fields to include in a partial response.
2147
+ # @param [String] quota_user
2148
+ # Available to use for quota purposes for server-side applications. Can be any
2149
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2150
+ # @param [Google::Apis::RequestOptions] options
2151
+ # Request-specific options
2152
+ #
2153
+ # @yield [result, err] Result & error if block supplied
2154
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::InappproductsBatchUpdateResponse] parsed result object
2155
+ # @yieldparam err [StandardError] error object if request failed
2156
+ #
2157
+ # @return [Google::Apis::AndroidpublisherV3::InappproductsBatchUpdateResponse]
2158
+ #
2159
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2160
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2161
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2162
+ def batch_inappproduct_update(package_name, inappproducts_batch_update_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2163
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/inappproducts:batchUpdate', options)
2164
+ command.request_representation = Google::Apis::AndroidpublisherV3::InappproductsBatchUpdateRequest::Representation
2165
+ command.request_object = inappproducts_batch_update_request_object
2166
+ command.response_representation = Google::Apis::AndroidpublisherV3::InappproductsBatchUpdateResponse::Representation
2167
+ command.response_class = Google::Apis::AndroidpublisherV3::InappproductsBatchUpdateResponse
2168
+ command.params['packageName'] = package_name unless package_name.nil?
2169
+ command.query['fields'] = fields unless fields.nil?
2170
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2171
+ execute_or_queue_command(command, &block)
2172
+ end
2173
+
1880
2174
  # Deletes an in-app product (a managed product or a subscription). This method
1881
2175
  # should no longer be used to delete subscriptions. See [this article](https://
1882
2176
  # android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-
@@ -1885,6 +2179,9 @@ module Google
1885
2179
  # Package name of the app.
1886
2180
  # @param [String] sku
1887
2181
  # Unique identifier for the in-app product.
2182
+ # @param [String] latency_tolerance
2183
+ # Optional. The latency tolerance for the propagation of this product update.
2184
+ # Defaults to latency-sensitive.
1888
2185
  # @param [String] fields
1889
2186
  # Selector specifying which fields to include in a partial response.
1890
2187
  # @param [String] quota_user
@@ -1902,10 +2199,11 @@ module Google
1902
2199
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1903
2200
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1904
2201
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1905
- def delete_inappproduct(package_name, sku, fields: nil, quota_user: nil, options: nil, &block)
2202
+ def delete_inappproduct(package_name, sku, latency_tolerance: nil, fields: nil, quota_user: nil, options: nil, &block)
1906
2203
  command = make_simple_command(:delete, 'androidpublisher/v3/applications/{packageName}/inappproducts/{sku}', options)
1907
2204
  command.params['packageName'] = package_name unless package_name.nil?
1908
2205
  command.params['sku'] = sku unless sku.nil?
2206
+ command.query['latencyTolerance'] = latency_tolerance unless latency_tolerance.nil?
1909
2207
  command.query['fields'] = fields unless fields.nil?
1910
2208
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1911
2209
  execute_or_queue_command(command, &block)
@@ -2046,6 +2344,9 @@ module Google
2046
2344
  # If true the prices for all regions targeted by the parent app that don't have
2047
2345
  # a price specified for this in-app product will be auto converted to the target
2048
2346
  # currency based on the default price. Defaults to false.
2347
+ # @param [String] latency_tolerance
2348
+ # Optional. The latency tolerance for the propagation of this product update.
2349
+ # Defaults to latency-sensitive.
2049
2350
  # @param [String] fields
2050
2351
  # Selector specifying which fields to include in a partial response.
2051
2352
  # @param [String] quota_user
@@ -2063,7 +2364,7 @@ module Google
2063
2364
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2064
2365
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2065
2366
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2066
- def patch_inappproduct(package_name, sku, in_app_product_object = nil, auto_convert_missing_prices: nil, fields: nil, quota_user: nil, options: nil, &block)
2367
+ def patch_inappproduct(package_name, sku, in_app_product_object = nil, auto_convert_missing_prices: nil, latency_tolerance: nil, fields: nil, quota_user: nil, options: nil, &block)
2067
2368
  command = make_simple_command(:patch, 'androidpublisher/v3/applications/{packageName}/inappproducts/{sku}', options)
2068
2369
  command.request_representation = Google::Apis::AndroidpublisherV3::InAppProduct::Representation
2069
2370
  command.request_object = in_app_product_object
@@ -2072,6 +2373,7 @@ module Google
2072
2373
  command.params['packageName'] = package_name unless package_name.nil?
2073
2374
  command.params['sku'] = sku unless sku.nil?
2074
2375
  command.query['autoConvertMissingPrices'] = auto_convert_missing_prices unless auto_convert_missing_prices.nil?
2376
+ command.query['latencyTolerance'] = latency_tolerance unless latency_tolerance.nil?
2075
2377
  command.query['fields'] = fields unless fields.nil?
2076
2378
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2077
2379
  execute_or_queue_command(command, &block)
@@ -2093,6 +2395,9 @@ module Google
2093
2395
  # If true the prices for all regions targeted by the parent app that don't have
2094
2396
  # a price specified for this in-app product will be auto converted to the target
2095
2397
  # currency based on the default price. Defaults to false.
2398
+ # @param [String] latency_tolerance
2399
+ # Optional. The latency tolerance for the propagation of this product update.
2400
+ # Defaults to latency-sensitive.
2096
2401
  # @param [String] fields
2097
2402
  # Selector specifying which fields to include in a partial response.
2098
2403
  # @param [String] quota_user
@@ -2110,7 +2415,7 @@ module Google
2110
2415
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2111
2416
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2112
2417
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2113
- def update_inappproduct(package_name, sku, in_app_product_object = nil, allow_missing: nil, auto_convert_missing_prices: nil, fields: nil, quota_user: nil, options: nil, &block)
2418
+ def update_inappproduct(package_name, sku, in_app_product_object = nil, allow_missing: nil, auto_convert_missing_prices: nil, latency_tolerance: nil, fields: nil, quota_user: nil, options: nil, &block)
2114
2419
  command = make_simple_command(:put, 'androidpublisher/v3/applications/{packageName}/inappproducts/{sku}', options)
2115
2420
  command.request_representation = Google::Apis::AndroidpublisherV3::InAppProduct::Representation
2116
2421
  command.request_object = in_app_product_object
@@ -2120,6 +2425,7 @@ module Google
2120
2425
  command.params['sku'] = sku unless sku.nil?
2121
2426
  command.query['allowMissing'] = allow_missing unless allow_missing.nil?
2122
2427
  command.query['autoConvertMissingPrices'] = auto_convert_missing_prices unless auto_convert_missing_prices.nil?
2428
+ command.query['latencyTolerance'] = latency_tolerance unless latency_tolerance.nil?
2123
2429
  command.query['fields'] = fields unless fields.nil?
2124
2430
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2125
2431
  execute_or_queue_command(command, &block)
@@ -2287,6 +2593,78 @@ module Google
2287
2593
  execute_or_queue_command(command, &block)
2288
2594
  end
2289
2595
 
2596
+ # Reads one or more subscriptions.
2597
+ # @param [String] package_name
2598
+ # Required. The parent app (package name) for which the subscriptions should be
2599
+ # retrieved. Must be equal to the package_name field on all the requests.
2600
+ # @param [Array<String>, String] product_ids
2601
+ # Required. A list of up to 100 subscription product IDs to retrieve. All the
2602
+ # IDs must be different.
2603
+ # @param [String] fields
2604
+ # Selector specifying which fields to include in a partial response.
2605
+ # @param [String] quota_user
2606
+ # Available to use for quota purposes for server-side applications. Can be any
2607
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2608
+ # @param [Google::Apis::RequestOptions] options
2609
+ # Request-specific options
2610
+ #
2611
+ # @yield [result, err] Result & error if block supplied
2612
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::BatchGetSubscriptionsResponse] parsed result object
2613
+ # @yieldparam err [StandardError] error object if request failed
2614
+ #
2615
+ # @return [Google::Apis::AndroidpublisherV3::BatchGetSubscriptionsResponse]
2616
+ #
2617
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2618
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2619
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2620
+ def batch_monetization_subscription_get(package_name, product_ids: nil, fields: nil, quota_user: nil, options: nil, &block)
2621
+ command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/subscriptions:batchGet', options)
2622
+ command.response_representation = Google::Apis::AndroidpublisherV3::BatchGetSubscriptionsResponse::Representation
2623
+ command.response_class = Google::Apis::AndroidpublisherV3::BatchGetSubscriptionsResponse
2624
+ command.params['packageName'] = package_name unless package_name.nil?
2625
+ command.query['productIds'] = product_ids unless product_ids.nil?
2626
+ command.query['fields'] = fields unless fields.nil?
2627
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2628
+ execute_or_queue_command(command, &block)
2629
+ end
2630
+
2631
+ # Updates a batch of subscriptions. Set the latencyTolerance field on nested
2632
+ # requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve
2633
+ # maximum update throughput.
2634
+ # @param [String] package_name
2635
+ # Required. The parent app (package name) for which the subscriptions should be
2636
+ # updated. Must be equal to the package_name field on all the Subscription
2637
+ # resources.
2638
+ # @param [Google::Apis::AndroidpublisherV3::BatchUpdateSubscriptionsRequest] batch_update_subscriptions_request_object
2639
+ # @param [String] fields
2640
+ # Selector specifying which fields to include in a partial response.
2641
+ # @param [String] quota_user
2642
+ # Available to use for quota purposes for server-side applications. Can be any
2643
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2644
+ # @param [Google::Apis::RequestOptions] options
2645
+ # Request-specific options
2646
+ #
2647
+ # @yield [result, err] Result & error if block supplied
2648
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::BatchUpdateSubscriptionsResponse] parsed result object
2649
+ # @yieldparam err [StandardError] error object if request failed
2650
+ #
2651
+ # @return [Google::Apis::AndroidpublisherV3::BatchUpdateSubscriptionsResponse]
2652
+ #
2653
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2654
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2655
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2656
+ def batch_update_subscriptions(package_name, batch_update_subscriptions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2657
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/subscriptions:batchUpdate', options)
2658
+ command.request_representation = Google::Apis::AndroidpublisherV3::BatchUpdateSubscriptionsRequest::Representation
2659
+ command.request_object = batch_update_subscriptions_request_object
2660
+ command.response_representation = Google::Apis::AndroidpublisherV3::BatchUpdateSubscriptionsResponse::Representation
2661
+ command.response_class = Google::Apis::AndroidpublisherV3::BatchUpdateSubscriptionsResponse
2662
+ command.params['packageName'] = package_name unless package_name.nil?
2663
+ command.query['fields'] = fields unless fields.nil?
2664
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2665
+ execute_or_queue_command(command, &block)
2666
+ end
2667
+
2290
2668
  # Creates a new subscription. Newly added base plans will remain in draft state
2291
2669
  # until activated.
2292
2670
  # @param [String] package_name
@@ -2458,6 +2836,13 @@ module Google
2458
2836
  # underscores (_) and dots (.). It must start with a lower-case letter or number,
2459
2837
  # and be between 1 and 40 (inclusive) characters in length.
2460
2838
  # @param [Google::Apis::AndroidpublisherV3::Subscription] subscription_object
2839
+ # @param [Boolean] allow_missing
2840
+ # Optional. If set to true, and the subscription with the given package_name and
2841
+ # product_id doesn't exist, the subscription will be created. If a new
2842
+ # subscription is created, update_mask is ignored.
2843
+ # @param [String] latency_tolerance
2844
+ # Optional. The latency tolerance for the propagation of this product update.
2845
+ # Defaults to latency-sensitive.
2461
2846
  # @param [String] regions_version_version
2462
2847
  # Required. A string representing the version of available regions being used
2463
2848
  # for the specified resource. Regional prices for the resource have to be
@@ -2486,7 +2871,7 @@ module Google
2486
2871
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2487
2872
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2488
2873
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2489
- def patch_monetization_subscription(package_name, product_id, subscription_object = nil, regions_version_version: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2874
+ def patch_monetization_subscription(package_name, product_id, subscription_object = nil, allow_missing: nil, latency_tolerance: nil, regions_version_version: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2490
2875
  command = make_simple_command(:patch, 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}', options)
2491
2876
  command.request_representation = Google::Apis::AndroidpublisherV3::Subscription::Representation
2492
2877
  command.request_object = subscription_object
@@ -2494,6 +2879,8 @@ module Google
2494
2879
  command.response_class = Google::Apis::AndroidpublisherV3::Subscription
2495
2880
  command.params['packageName'] = package_name unless package_name.nil?
2496
2881
  command.params['productId'] = product_id unless product_id.nil?
2882
+ command.query['allowMissing'] = allow_missing unless allow_missing.nil?
2883
+ command.query['latencyTolerance'] = latency_tolerance unless latency_tolerance.nil?
2497
2884
  command.query['regionsVersion.version'] = regions_version_version unless regions_version_version.nil?
2498
2885
  command.query['updateMask'] = update_mask unless update_mask.nil?
2499
2886
  command.query['fields'] = fields unless fields.nil?
@@ -2541,6 +2928,89 @@ module Google
2541
2928
  execute_or_queue_command(command, &block)
2542
2929
  end
2543
2930
 
2931
+ # Batch variant of the MigrateBasePlanPrices endpoint. Set the latencyTolerance
2932
+ # field on nested requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT
2933
+ # to achieve maximum update throughput.
2934
+ # @param [String] package_name
2935
+ # Required. The parent app (package name) for which the subscriptions should be
2936
+ # created or updated. Must be equal to the package_name field on all the
2937
+ # Subscription resources.
2938
+ # @param [String] product_id
2939
+ # Required. The product ID of the parent subscription, if all updated offers
2940
+ # belong to the same subscription. If this batch update spans multiple
2941
+ # subscriptions, set this field to "-". Must be set.
2942
+ # @param [Google::Apis::AndroidpublisherV3::BatchMigrateBasePlanPricesRequest] batch_migrate_base_plan_prices_request_object
2943
+ # @param [String] fields
2944
+ # Selector specifying which fields to include in a partial response.
2945
+ # @param [String] quota_user
2946
+ # Available to use for quota purposes for server-side applications. Can be any
2947
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2948
+ # @param [Google::Apis::RequestOptions] options
2949
+ # Request-specific options
2950
+ #
2951
+ # @yield [result, err] Result & error if block supplied
2952
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::BatchMigrateBasePlanPricesResponse] parsed result object
2953
+ # @yieldparam err [StandardError] error object if request failed
2954
+ #
2955
+ # @return [Google::Apis::AndroidpublisherV3::BatchMigrateBasePlanPricesResponse]
2956
+ #
2957
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2958
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2959
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2960
+ def batch_monetization_subscription_base_plan_migrate_prices(package_name, product_id, batch_migrate_base_plan_prices_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2961
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans:batchMigratePrices', options)
2962
+ command.request_representation = Google::Apis::AndroidpublisherV3::BatchMigrateBasePlanPricesRequest::Representation
2963
+ command.request_object = batch_migrate_base_plan_prices_request_object
2964
+ command.response_representation = Google::Apis::AndroidpublisherV3::BatchMigrateBasePlanPricesResponse::Representation
2965
+ command.response_class = Google::Apis::AndroidpublisherV3::BatchMigrateBasePlanPricesResponse
2966
+ command.params['packageName'] = package_name unless package_name.nil?
2967
+ command.params['productId'] = product_id unless product_id.nil?
2968
+ command.query['fields'] = fields unless fields.nil?
2969
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2970
+ execute_or_queue_command(command, &block)
2971
+ end
2972
+
2973
+ # Activates or deactivates base plans across one or multiple subscriptions. Set
2974
+ # the latencyTolerance field on nested requests to
2975
+ # PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update
2976
+ # throughput.
2977
+ # @param [String] package_name
2978
+ # Required. The parent app (package name) of the updated base plans.
2979
+ # @param [String] product_id
2980
+ # Required. The product ID of the parent subscription, if all updated base plans
2981
+ # belong to the same subscription. If this batch update spans multiple
2982
+ # subscriptions, set this field to "-". Must be set.
2983
+ # @param [Google::Apis::AndroidpublisherV3::BatchUpdateBasePlanStatesRequest] batch_update_base_plan_states_request_object
2984
+ # @param [String] fields
2985
+ # Selector specifying which fields to include in a partial response.
2986
+ # @param [String] quota_user
2987
+ # Available to use for quota purposes for server-side applications. Can be any
2988
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2989
+ # @param [Google::Apis::RequestOptions] options
2990
+ # Request-specific options
2991
+ #
2992
+ # @yield [result, err] Result & error if block supplied
2993
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::BatchUpdateBasePlanStatesResponse] parsed result object
2994
+ # @yieldparam err [StandardError] error object if request failed
2995
+ #
2996
+ # @return [Google::Apis::AndroidpublisherV3::BatchUpdateBasePlanStatesResponse]
2997
+ #
2998
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2999
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3000
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3001
+ def batch_monetization_subscription_base_plan_update_states(package_name, product_id, batch_update_base_plan_states_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3002
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans:batchUpdateStates', options)
3003
+ command.request_representation = Google::Apis::AndroidpublisherV3::BatchUpdateBasePlanStatesRequest::Representation
3004
+ command.request_object = batch_update_base_plan_states_request_object
3005
+ command.response_representation = Google::Apis::AndroidpublisherV3::BatchUpdateBasePlanStatesResponse::Representation
3006
+ command.response_class = Google::Apis::AndroidpublisherV3::BatchUpdateBasePlanStatesResponse
3007
+ command.params['packageName'] = package_name unless package_name.nil?
3008
+ command.params['productId'] = product_id unless product_id.nil?
3009
+ command.query['fields'] = fields unless fields.nil?
3010
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3011
+ execute_or_queue_command(command, &block)
3012
+ end
3013
+
2544
3014
  # Deactivates a base plan. Once deactivated, the base plan will become
2545
3015
  # unavailable to new subscribers, but existing subscribers will maintain their
2546
3016
  # subscription
@@ -2705,6 +3175,142 @@ module Google
2705
3175
  execute_or_queue_command(command, &block)
2706
3176
  end
2707
3177
 
3178
+ # Reads one or more subscription offers.
3179
+ # @param [String] package_name
3180
+ # Required. The parent app (package name) for which the subscriptions should be
3181
+ # created or updated. Must be equal to the package_name field on all the
3182
+ # requests.
3183
+ # @param [String] product_id
3184
+ # Required. The product ID of the parent subscription, if all updated offers
3185
+ # belong to the same subscription. If this request spans multiple subscriptions,
3186
+ # set this field to "-". Must be set.
3187
+ # @param [String] base_plan_id
3188
+ # Required. The parent base plan (ID) for which the offers should be read. May
3189
+ # be specified as '-' to read offers from multiple base plans.
3190
+ # @param [Google::Apis::AndroidpublisherV3::BatchGetSubscriptionOffersRequest] batch_get_subscription_offers_request_object
3191
+ # @param [String] fields
3192
+ # Selector specifying which fields to include in a partial response.
3193
+ # @param [String] quota_user
3194
+ # Available to use for quota purposes for server-side applications. Can be any
3195
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3196
+ # @param [Google::Apis::RequestOptions] options
3197
+ # Request-specific options
3198
+ #
3199
+ # @yield [result, err] Result & error if block supplied
3200
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::BatchGetSubscriptionOffersResponse] parsed result object
3201
+ # @yieldparam err [StandardError] error object if request failed
3202
+ #
3203
+ # @return [Google::Apis::AndroidpublisherV3::BatchGetSubscriptionOffersResponse]
3204
+ #
3205
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3206
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3207
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3208
+ def batch_get_subscription_offers(package_name, product_id, base_plan_id, batch_get_subscription_offers_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3209
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers:batchGet', options)
3210
+ command.request_representation = Google::Apis::AndroidpublisherV3::BatchGetSubscriptionOffersRequest::Representation
3211
+ command.request_object = batch_get_subscription_offers_request_object
3212
+ command.response_representation = Google::Apis::AndroidpublisherV3::BatchGetSubscriptionOffersResponse::Representation
3213
+ command.response_class = Google::Apis::AndroidpublisherV3::BatchGetSubscriptionOffersResponse
3214
+ command.params['packageName'] = package_name unless package_name.nil?
3215
+ command.params['productId'] = product_id unless product_id.nil?
3216
+ command.params['basePlanId'] = base_plan_id unless base_plan_id.nil?
3217
+ command.query['fields'] = fields unless fields.nil?
3218
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3219
+ execute_or_queue_command(command, &block)
3220
+ end
3221
+
3222
+ # Updates a batch of subscription offers. Set the latencyTolerance field on
3223
+ # nested requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to
3224
+ # achieve maximum update throughput.
3225
+ # @param [String] package_name
3226
+ # Required. The parent app (package name) of the updated subscription offers.
3227
+ # Must be equal to the package_name field on all the updated SubscriptionOffer
3228
+ # resources.
3229
+ # @param [String] product_id
3230
+ # Required. The product ID of the parent subscription, if all updated offers
3231
+ # belong to the same subscription. If this request spans multiple subscriptions,
3232
+ # set this field to "-". Must be set.
3233
+ # @param [String] base_plan_id
3234
+ # Required. The parent base plan (ID) for which the offers should be updated.
3235
+ # May be specified as '-' to update offers from multiple base plans.
3236
+ # @param [Google::Apis::AndroidpublisherV3::BatchUpdateSubscriptionOffersRequest] batch_update_subscription_offers_request_object
3237
+ # @param [String] fields
3238
+ # Selector specifying which fields to include in a partial response.
3239
+ # @param [String] quota_user
3240
+ # Available to use for quota purposes for server-side applications. Can be any
3241
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3242
+ # @param [Google::Apis::RequestOptions] options
3243
+ # Request-specific options
3244
+ #
3245
+ # @yield [result, err] Result & error if block supplied
3246
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::BatchUpdateSubscriptionOffersResponse] parsed result object
3247
+ # @yieldparam err [StandardError] error object if request failed
3248
+ #
3249
+ # @return [Google::Apis::AndroidpublisherV3::BatchUpdateSubscriptionOffersResponse]
3250
+ #
3251
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3252
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3253
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3254
+ def batch_update_subscription_offers(package_name, product_id, base_plan_id, batch_update_subscription_offers_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3255
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers:batchUpdate', options)
3256
+ command.request_representation = Google::Apis::AndroidpublisherV3::BatchUpdateSubscriptionOffersRequest::Representation
3257
+ command.request_object = batch_update_subscription_offers_request_object
3258
+ command.response_representation = Google::Apis::AndroidpublisherV3::BatchUpdateSubscriptionOffersResponse::Representation
3259
+ command.response_class = Google::Apis::AndroidpublisherV3::BatchUpdateSubscriptionOffersResponse
3260
+ command.params['packageName'] = package_name unless package_name.nil?
3261
+ command.params['productId'] = product_id unless product_id.nil?
3262
+ command.params['basePlanId'] = base_plan_id unless base_plan_id.nil?
3263
+ command.query['fields'] = fields unless fields.nil?
3264
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3265
+ execute_or_queue_command(command, &block)
3266
+ end
3267
+
3268
+ # Updates a batch of subscription offer states. Set the latencyTolerance field
3269
+ # on nested requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to
3270
+ # achieve maximum update throughput.
3271
+ # @param [String] package_name
3272
+ # Required. The parent app (package name) of the updated subscription offers.
3273
+ # Must be equal to the package_name field on all the updated SubscriptionOffer
3274
+ # resources.
3275
+ # @param [String] product_id
3276
+ # Required. The product ID of the parent subscription, if all updated offers
3277
+ # belong to the same subscription. If this request spans multiple subscriptions,
3278
+ # set this field to "-". Must be set.
3279
+ # @param [String] base_plan_id
3280
+ # Required. The parent base plan (ID) for which the offers should be updated.
3281
+ # May be specified as '-' to update offers from multiple base plans.
3282
+ # @param [Google::Apis::AndroidpublisherV3::BatchUpdateSubscriptionOfferStatesRequest] batch_update_subscription_offer_states_request_object
3283
+ # @param [String] fields
3284
+ # Selector specifying which fields to include in a partial response.
3285
+ # @param [String] quota_user
3286
+ # Available to use for quota purposes for server-side applications. Can be any
3287
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3288
+ # @param [Google::Apis::RequestOptions] options
3289
+ # Request-specific options
3290
+ #
3291
+ # @yield [result, err] Result & error if block supplied
3292
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::BatchUpdateSubscriptionOfferStatesResponse] parsed result object
3293
+ # @yieldparam err [StandardError] error object if request failed
3294
+ #
3295
+ # @return [Google::Apis::AndroidpublisherV3::BatchUpdateSubscriptionOfferStatesResponse]
3296
+ #
3297
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3298
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3299
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3300
+ def batch_monetization_subscription_base_plan_offer_update_states(package_name, product_id, base_plan_id, batch_update_subscription_offer_states_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3301
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers:batchUpdateStates', options)
3302
+ command.request_representation = Google::Apis::AndroidpublisherV3::BatchUpdateSubscriptionOfferStatesRequest::Representation
3303
+ command.request_object = batch_update_subscription_offer_states_request_object
3304
+ command.response_representation = Google::Apis::AndroidpublisherV3::BatchUpdateSubscriptionOfferStatesResponse::Representation
3305
+ command.response_class = Google::Apis::AndroidpublisherV3::BatchUpdateSubscriptionOfferStatesResponse
3306
+ command.params['packageName'] = package_name unless package_name.nil?
3307
+ command.params['productId'] = product_id unless product_id.nil?
3308
+ command.params['basePlanId'] = base_plan_id unless base_plan_id.nil?
3309
+ command.query['fields'] = fields unless fields.nil?
3310
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3311
+ execute_or_queue_command(command, &block)
3312
+ end
3313
+
2708
3314
  # Creates a new subscription offer. Only auto-renewing base plans can have
2709
3315
  # subscription offers. The offer state will be DRAFT until it is activated.
2710
3316
  # @param [String] package_name
@@ -2947,6 +3553,13 @@ module Google
2947
3553
  # Required. Immutable. Unique ID of this subscription offer. Must be unique
2948
3554
  # within the base plan.
2949
3555
  # @param [Google::Apis::AndroidpublisherV3::SubscriptionOffer] subscription_offer_object
3556
+ # @param [Boolean] allow_missing
3557
+ # Optional. If set to true, and the subscription offer with the given
3558
+ # package_name, product_id, base_plan_id and offer_id doesn't exist, an offer
3559
+ # will be created. If a new offer is created, update_mask is ignored.
3560
+ # @param [String] latency_tolerance
3561
+ # Optional. The latency tolerance for the propagation of this product update.
3562
+ # Defaults to latency-sensitive.
2950
3563
  # @param [String] regions_version_version
2951
3564
  # Required. A string representing the version of available regions being used
2952
3565
  # for the specified resource. Regional prices for the resource have to be
@@ -2975,7 +3588,7 @@ module Google
2975
3588
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2976
3589
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2977
3590
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2978
- def patch_monetization_subscription_base_plan_offer(package_name, product_id, base_plan_id, offer_id, subscription_offer_object = nil, regions_version_version: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
3591
+ def patch_monetization_subscription_base_plan_offer(package_name, product_id, base_plan_id, offer_id, subscription_offer_object = nil, allow_missing: nil, latency_tolerance: nil, regions_version_version: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2979
3592
  command = make_simple_command(:patch, 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}', options)
2980
3593
  command.request_representation = Google::Apis::AndroidpublisherV3::SubscriptionOffer::Representation
2981
3594
  command.request_object = subscription_offer_object
@@ -2985,6 +3598,8 @@ module Google
2985
3598
  command.params['productId'] = product_id unless product_id.nil?
2986
3599
  command.params['basePlanId'] = base_plan_id unless base_plan_id.nil?
2987
3600
  command.params['offerId'] = offer_id unless offer_id.nil?
3601
+ command.query['allowMissing'] = allow_missing unless allow_missing.nil?
3602
+ command.query['latencyTolerance'] = latency_tolerance unless latency_tolerance.nil?
2988
3603
  command.query['regionsVersion.version'] = regions_version_version unless regions_version_version.nil?
2989
3604
  command.query['updateMask'] = update_mask unless update_mask.nil?
2990
3605
  command.query['fields'] = fields unless fields.nil?
@@ -3401,6 +4016,44 @@ module Google
3401
4016
  execute_or_queue_command(command, &block)
3402
4017
  end
3403
4018
 
4019
+ # Revoke a subscription purchase for the user.
4020
+ # @param [String] package_name
4021
+ # Required. The package of the application for which this subscription was
4022
+ # purchased (for example, 'com.some.thing').
4023
+ # @param [String] token
4024
+ # Required. The token provided to the user's device when the subscription was
4025
+ # purchased.
4026
+ # @param [Google::Apis::AndroidpublisherV3::RevokeSubscriptionPurchaseRequest] revoke_subscription_purchase_request_object
4027
+ # @param [String] fields
4028
+ # Selector specifying which fields to include in a partial response.
4029
+ # @param [String] quota_user
4030
+ # Available to use for quota purposes for server-side applications. Can be any
4031
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4032
+ # @param [Google::Apis::RequestOptions] options
4033
+ # Request-specific options
4034
+ #
4035
+ # @yield [result, err] Result & error if block supplied
4036
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::RevokeSubscriptionPurchaseResponse] parsed result object
4037
+ # @yieldparam err [StandardError] error object if request failed
4038
+ #
4039
+ # @return [Google::Apis::AndroidpublisherV3::RevokeSubscriptionPurchaseResponse]
4040
+ #
4041
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4042
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4043
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4044
+ def revoke_subscriptionsv2_subscription_purchase(package_name, token, revoke_subscription_purchase_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
4045
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/purchases/subscriptionsv2/tokens/{token}:revoke', options)
4046
+ command.request_representation = Google::Apis::AndroidpublisherV3::RevokeSubscriptionPurchaseRequest::Representation
4047
+ command.request_object = revoke_subscription_purchase_request_object
4048
+ command.response_representation = Google::Apis::AndroidpublisherV3::RevokeSubscriptionPurchaseResponse::Representation
4049
+ command.response_class = Google::Apis::AndroidpublisherV3::RevokeSubscriptionPurchaseResponse
4050
+ command.params['packageName'] = package_name unless package_name.nil?
4051
+ command.params['token'] = token unless token.nil?
4052
+ command.query['fields'] = fields unless fields.nil?
4053
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4054
+ execute_or_queue_command(command, &block)
4055
+ end
4056
+
3404
4057
  # Lists the purchases that were canceled, refunded or charged-back.
3405
4058
  # @param [String] package_name
3406
4059
  # The package name of the application for which voided purchases need to be