google-apis-androidpublisher_v3 0.1.0 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 38bd35ef40d9fc1051d3f51608575dc9b713165263e0b8304a4a08f2fadcee52
4
- data.tar.gz: '0521943d4a99d3c63b66a7bbe5ed0cedede20ac05d694b4737f311593537da4c'
3
+ metadata.gz: f7e7a219d0f7ba83dae78031c1e46f36c4b648a1d0392145afc84ebfea049801
4
+ data.tar.gz: 26c3d51f2354e2459c7ef6974672c705bb0fb6da918b68bfa66b3f1858cf029c
5
5
  SHA512:
6
- metadata.gz: 0c995acca3569bc6c12edba3217d90bdf4d03360945d148f1d1a847b5a8c4627a2f92192f3ec4fe30fc5bfc231bb10dfea5550dcbd4aac0d77d6cb00a44484b3
7
- data.tar.gz: '09d47fa8e99d5793400711d1f40260f7d5f98e1bb125b23cc7860936d850e05ee239d567e20ea21597141ef6ce3861ee665281a8505f701e4491b84bb99a11e9'
6
+ metadata.gz: e5305ec881247145c7a2d55f9fe869fb37587d870c4cfcbcf63bdc5399a3c497889422f266b2dea006dbff70a6c0b605990989381ed1a39c507516ffd76d782b
7
+ data.tar.gz: 9fa3d712eb7dd44f7f6a804fa7141716b53cb2cb2c214948e250e212a0e5751a7430c81f15f7ce42f2aec99b797169e2a5057b3239d045ee98315768fa92d732
data/CHANGELOG.md CHANGED
@@ -1,5 +1,55 @@
1
1
  # Release history for google-apis-androidpublisher_v3
2
2
 
3
+ ### v0.13.0 (2021-10-22)
4
+
5
+ * Regenerated from discovery document revision 20211021
6
+
7
+ ### v0.12.0 (2021-10-07)
8
+
9
+ * Regenerated from discovery document revision 20211006
10
+
11
+ ### v0.11.0 (2021-09-01)
12
+
13
+ * Regenerated from discovery document revision 20210901
14
+
15
+ ### v0.10.0 (2021-07-30)
16
+
17
+ * Regenerated from discovery document revision 20210728
18
+
19
+ ### v0.9.0 (2021-07-21)
20
+
21
+ * Regenerated from discovery document revision 20210720
22
+
23
+ ### v0.8.0 (2021-06-29)
24
+
25
+ * Regenerated using generator version 0.4.0
26
+
27
+ ### v0.7.0 (2021-06-24)
28
+
29
+ * Unspecified changes
30
+
31
+ ### v0.6.0 (2021-06-08)
32
+
33
+ * Regenerated from discovery document revision 20210605
34
+ * Regenerated using generator version 0.3.0
35
+
36
+ ### v0.5.0 (2021-05-28)
37
+
38
+ * Regenerated from discovery document revision 20210527
39
+
40
+ ### v0.4.0 (2021-05-19)
41
+
42
+ * Unspecified changes
43
+
44
+ ### v0.3.0 (2021-04-30)
45
+
46
+ * Regenerated from discovery document revision 20210429
47
+ * Regenerated using generator version 0.2.0
48
+
49
+ ### v0.2.0 (2021-03-04)
50
+
51
+ * Regenerated using generator version 0.1.2
52
+
3
53
  ### v0.1.0 (2021-01-07)
4
54
 
5
55
  * Regenerated using generator version 0.1.1
data/OVERVIEW.md CHANGED
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
60
60
 
61
61
  More detailed descriptions of the Google simple REST clients are available in two documents.
62
62
 
63
- * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
- * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
63
+ * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
+ * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
65
65
 
66
66
  (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Androidpublisher service in particular.)
67
67
 
@@ -206,7 +206,7 @@ module Google
206
206
  end
207
207
  end
208
208
 
209
- # Information about a bundle. The resource for BundlesService.
209
+ # Information about an app bundle. The resource for BundlesService.
210
210
  class Bundle
211
211
  include Google::Apis::Core::Hashable
212
212
 
@@ -240,11 +240,11 @@ module Google
240
240
  end
241
241
  end
242
242
 
243
- # Response listing all bundles.
243
+ # Response listing all app bundles.
244
244
  class BundlesListResponse
245
245
  include Google::Apis::Core::Hashable
246
246
 
247
- # All bundles.
247
+ # All app bundles.
248
248
  # Corresponds to the JSON property `bundles`
249
249
  # @return [Array<Google::Apis::AndroidpublisherV3::Bundle>]
250
250
  attr_accessor :bundles
@@ -290,6 +290,106 @@ module Google
290
290
  end
291
291
  end
292
292
 
293
+ # Request message for ConvertRegionPrices.
294
+ class ConvertRegionPricesRequest
295
+ include Google::Apis::Core::Hashable
296
+
297
+ # Represents an amount of money with its currency type.
298
+ # Corresponds to the JSON property `price`
299
+ # @return [Google::Apis::AndroidpublisherV3::Money]
300
+ attr_accessor :price
301
+
302
+ def initialize(**args)
303
+ update!(**args)
304
+ end
305
+
306
+ # Update properties of this object
307
+ def update!(**args)
308
+ @price = args[:price] if args.key?(:price)
309
+ end
310
+ end
311
+
312
+ # Response message for ConvertRegionPrices.
313
+ class ConvertRegionPricesResponse
314
+ include Google::Apis::Core::Hashable
315
+
316
+ # Converted other regions prices.
317
+ # Corresponds to the JSON property `convertedOtherRegionsPrice`
318
+ # @return [Google::Apis::AndroidpublisherV3::ConvertedOtherRegionsPrice]
319
+ attr_accessor :converted_other_regions_price
320
+
321
+ # Map from region code to converted region price.
322
+ # Corresponds to the JSON property `convertedRegionPrices`
323
+ # @return [Hash<String,Google::Apis::AndroidpublisherV3::ConvertedRegionPrice>]
324
+ attr_accessor :converted_region_prices
325
+
326
+ def initialize(**args)
327
+ update!(**args)
328
+ end
329
+
330
+ # Update properties of this object
331
+ def update!(**args)
332
+ @converted_other_regions_price = args[:converted_other_regions_price] if args.key?(:converted_other_regions_price)
333
+ @converted_region_prices = args[:converted_region_prices] if args.key?(:converted_region_prices)
334
+ end
335
+ end
336
+
337
+ # Converted other regions prices.
338
+ class ConvertedOtherRegionsPrice
339
+ include Google::Apis::Core::Hashable
340
+
341
+ # Represents an amount of money with its currency type.
342
+ # Corresponds to the JSON property `eurPrice`
343
+ # @return [Google::Apis::AndroidpublisherV3::Money]
344
+ attr_accessor :eur_price
345
+
346
+ # Represents an amount of money with its currency type.
347
+ # Corresponds to the JSON property `usdPrice`
348
+ # @return [Google::Apis::AndroidpublisherV3::Money]
349
+ attr_accessor :usd_price
350
+
351
+ def initialize(**args)
352
+ update!(**args)
353
+ end
354
+
355
+ # Update properties of this object
356
+ def update!(**args)
357
+ @eur_price = args[:eur_price] if args.key?(:eur_price)
358
+ @usd_price = args[:usd_price] if args.key?(:usd_price)
359
+ end
360
+ end
361
+
362
+ # A converted region price.
363
+ class ConvertedRegionPrice
364
+ include Google::Apis::Core::Hashable
365
+
366
+ # Represents an amount of money with its currency type.
367
+ # Corresponds to the JSON property `price`
368
+ # @return [Google::Apis::AndroidpublisherV3::Money]
369
+ attr_accessor :price
370
+
371
+ # The region code of the region.
372
+ # Corresponds to the JSON property `regionCode`
373
+ # @return [String]
374
+ attr_accessor :region_code
375
+
376
+ # Represents an amount of money with its currency type.
377
+ # Corresponds to the JSON property `taxAmount`
378
+ # @return [Google::Apis::AndroidpublisherV3::Money]
379
+ attr_accessor :tax_amount
380
+
381
+ def initialize(**args)
382
+ update!(**args)
383
+ end
384
+
385
+ # Update properties of this object
386
+ def update!(**args)
387
+ @price = args[:price] if args.key?(:price)
388
+ @region_code = args[:region_code] if args.key?(:region_code)
389
+ @tax_amount = args[:tax_amount] if args.key?(:tax_amount)
390
+ end
391
+ end
392
+
293
393
  # Country targeting specification.
294
394
  class CountryTargeting
295
395
  include Google::Apis::Core::Hashable
@@ -648,6 +748,38 @@ module Google
648
748
  end
649
749
  end
650
750
 
751
+ # An access grant resource.
752
+ class Grant
753
+ include Google::Apis::Core::Hashable
754
+
755
+ # The permissions granted to the user for this app.
756
+ # Corresponds to the JSON property `appLevelPermissions`
757
+ # @return [Array<String>]
758
+ attr_accessor :app_level_permissions
759
+
760
+ # Required. Resource name for this grant, following the pattern "developers/`
761
+ # developer`/users/`email`/grants/`package_name`".
762
+ # Corresponds to the JSON property `name`
763
+ # @return [String]
764
+ attr_accessor :name
765
+
766
+ # Immutable. The package name of the app.
767
+ # Corresponds to the JSON property `packageName`
768
+ # @return [String]
769
+ attr_accessor :package_name
770
+
771
+ def initialize(**args)
772
+ update!(**args)
773
+ end
774
+
775
+ # Update properties of this object
776
+ def update!(**args)
777
+ @app_level_permissions = args[:app_level_permissions] if args.key?(:app_level_permissions)
778
+ @name = args[:name] if args.key?(:name)
779
+ @package_name = args[:package_name] if args.key?(:package_name)
780
+ end
781
+ end
782
+
651
783
  # An uploaded image. The resource for ImagesService.
652
784
  class Image
653
785
  include Google::Apis::Core::Hashable
@@ -770,6 +902,11 @@ module Google
770
902
  # @return [Hash<String,Google::Apis::AndroidpublisherV3::InAppProductListing>]
771
903
  attr_accessor :listings
772
904
 
905
+ # Details about taxation and legal compliance for managed products.
906
+ # Corresponds to the JSON property `managedProductTaxesAndComplianceSettings`
907
+ # @return [Google::Apis::AndroidpublisherV3::ManagedProductTaxAndComplianceSettings]
908
+ attr_accessor :managed_product_taxes_and_compliance_settings
909
+
773
910
  # Package name of the parent app.
774
911
  # Corresponds to the JSON property `packageName`
775
912
  # @return [String]
@@ -803,6 +940,12 @@ module Google
803
940
  # @return [String]
804
941
  attr_accessor :subscription_period
805
942
 
943
+ # Details about taxation, Google Play policy and legal compliance for
944
+ # subscription products.
945
+ # Corresponds to the JSON property `subscriptionTaxesAndComplianceSettings`
946
+ # @return [Google::Apis::AndroidpublisherV3::SubscriptionTaxAndComplianceSettings]
947
+ attr_accessor :subscription_taxes_and_compliance_settings
948
+
806
949
  # Trial period, specified in ISO 8601 format. Acceptable values are anything
807
950
  # between P7D (seven days) and P999D (999 days).
808
951
  # Corresponds to the JSON property `trialPeriod`
@@ -819,12 +962,14 @@ module Google
819
962
  @default_price = args[:default_price] if args.key?(:default_price)
820
963
  @grace_period = args[:grace_period] if args.key?(:grace_period)
821
964
  @listings = args[:listings] if args.key?(:listings)
965
+ @managed_product_taxes_and_compliance_settings = args[:managed_product_taxes_and_compliance_settings] if args.key?(:managed_product_taxes_and_compliance_settings)
822
966
  @package_name = args[:package_name] if args.key?(:package_name)
823
967
  @prices = args[:prices] if args.key?(:prices)
824
968
  @purchase_type = args[:purchase_type] if args.key?(:purchase_type)
825
969
  @sku = args[:sku] if args.key?(:sku)
826
970
  @status = args[:status] if args.key?(:status)
827
971
  @subscription_period = args[:subscription_period] if args.key?(:subscription_period)
972
+ @subscription_taxes_and_compliance_settings = args[:subscription_taxes_and_compliance_settings] if args.key?(:subscription_taxes_and_compliance_settings)
828
973
  @trial_period = args[:trial_period] if args.key?(:trial_period)
829
974
  end
830
975
  end
@@ -984,6 +1129,32 @@ module Google
984
1129
  end
985
1130
  end
986
1131
 
1132
+ # A response containing one or more users with access to an account.
1133
+ class ListUsersResponse
1134
+ include Google::Apis::Core::Hashable
1135
+
1136
+ # A token to pass to subsequent calls in order to retrieve subsequent results.
1137
+ # This will not be set if there are no more results to return.
1138
+ # Corresponds to the JSON property `nextPageToken`
1139
+ # @return [String]
1140
+ attr_accessor :next_page_token
1141
+
1142
+ # The resulting users.
1143
+ # Corresponds to the JSON property `users`
1144
+ # @return [Array<Google::Apis::AndroidpublisherV3::User>]
1145
+ attr_accessor :users
1146
+
1147
+ def initialize(**args)
1148
+ update!(**args)
1149
+ end
1150
+
1151
+ # Update properties of this object
1152
+ def update!(**args)
1153
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1154
+ @users = args[:users] if args.key?(:users)
1155
+ end
1156
+ end
1157
+
987
1158
  # A localized store listing. The resource for ListingsService.
988
1159
  class Listing
989
1160
  include Google::Apis::Core::Hashable
@@ -1079,6 +1250,72 @@ module Google
1079
1250
  end
1080
1251
  end
1081
1252
 
1253
+ # Details about taxation and legal compliance for managed products.
1254
+ class ManagedProductTaxAndComplianceSettings
1255
+ include Google::Apis::Core::Hashable
1256
+
1257
+ # Digital content or service classification for products distributed to users in
1258
+ # the European Economic Area (EEA). The withdrawal regime under EEA consumer
1259
+ # laws depends on this classification. Refer to the [Help Center article](https:/
1260
+ # /support.google.com/googleplay/android-developer/answer/10463498) for more
1261
+ # information.
1262
+ # Corresponds to the JSON property `eeaWithdrawalRightType`
1263
+ # @return [String]
1264
+ attr_accessor :eea_withdrawal_right_type
1265
+
1266
+ # A mapping from region code to tax rate details. The keys are region codes as
1267
+ # defined by Unicode's "CLDR".
1268
+ # Corresponds to the JSON property `taxRateInfoByRegionCode`
1269
+ # @return [Hash<String,Google::Apis::AndroidpublisherV3::RegionalTaxRateInfo>]
1270
+ attr_accessor :tax_rate_info_by_region_code
1271
+
1272
+ def initialize(**args)
1273
+ update!(**args)
1274
+ end
1275
+
1276
+ # Update properties of this object
1277
+ def update!(**args)
1278
+ @eea_withdrawal_right_type = args[:eea_withdrawal_right_type] if args.key?(:eea_withdrawal_right_type)
1279
+ @tax_rate_info_by_region_code = args[:tax_rate_info_by_region_code] if args.key?(:tax_rate_info_by_region_code)
1280
+ end
1281
+ end
1282
+
1283
+ # Represents an amount of money with its currency type.
1284
+ class Money
1285
+ include Google::Apis::Core::Hashable
1286
+
1287
+ # The three-letter currency code defined in ISO 4217.
1288
+ # Corresponds to the JSON property `currencyCode`
1289
+ # @return [String]
1290
+ attr_accessor :currency_code
1291
+
1292
+ # Number of nano (10^-9) units of the amount. The value must be between -999,999,
1293
+ # 999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be
1294
+ # positive or zero. If `units` is zero, `nanos` can be positive, zero, or
1295
+ # negative. If `units` is negative, `nanos` must be negative or zero. For
1296
+ # example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1297
+ # Corresponds to the JSON property `nanos`
1298
+ # @return [Fixnum]
1299
+ attr_accessor :nanos
1300
+
1301
+ # The whole units of the amount. For example if `currencyCode` is `"USD"`, then
1302
+ # 1 unit is one US dollar.
1303
+ # Corresponds to the JSON property `units`
1304
+ # @return [Fixnum]
1305
+ attr_accessor :units
1306
+
1307
+ def initialize(**args)
1308
+ update!(**args)
1309
+ end
1310
+
1311
+ # Update properties of this object
1312
+ def update!(**args)
1313
+ @currency_code = args[:currency_code] if args.key?(:currency_code)
1314
+ @nanos = args[:nanos] if args.key?(:nanos)
1315
+ @units = args[:units] if args.key?(:units)
1316
+ end
1317
+ end
1318
+
1082
1319
  # Information about the current page. List operations that supports paging
1083
1320
  # return only one "page" of results. This protocol buffer message describes the
1084
1321
  # page that has been returned.
@@ -1273,6 +1510,36 @@ module Google
1273
1510
  end
1274
1511
  end
1275
1512
 
1513
+ # Specified details about taxation in a given geographical region.
1514
+ class RegionalTaxRateInfo
1515
+ include Google::Apis::Core::Hashable
1516
+
1517
+ # You must tell us if your app contains streaming products to correctly charge
1518
+ # US state and local sales tax. Field only supported in United States.
1519
+ # Corresponds to the JSON property `eligibleForStreamingServiceTaxRate`
1520
+ # @return [Boolean]
1521
+ attr_accessor :eligible_for_streaming_service_tax_rate
1522
+ alias_method :eligible_for_streaming_service_tax_rate?, :eligible_for_streaming_service_tax_rate
1523
+
1524
+ # Tax tier to specify reduced tax rate. Developers who sell digital news,
1525
+ # magazines, newspapers, books, or audiobooks in various regions may be eligible
1526
+ # for reduced tax rates. [Learn more](https://support.google.com/googleplay/
1527
+ # android-developer/answer/10463498).
1528
+ # Corresponds to the JSON property `taxTier`
1529
+ # @return [String]
1530
+ attr_accessor :tax_tier
1531
+
1532
+ def initialize(**args)
1533
+ update!(**args)
1534
+ end
1535
+
1536
+ # Update properties of this object
1537
+ def update!(**args)
1538
+ @eligible_for_streaming_service_tax_rate = args[:eligible_for_streaming_service_tax_rate] if args.key?(:eligible_for_streaming_service_tax_rate)
1539
+ @tax_tier = args[:tax_tier] if args.key?(:tax_tier)
1540
+ end
1541
+ end
1542
+
1276
1543
  # An Android app review.
1277
1544
  class Review
1278
1545
  include Google::Apis::Core::Hashable
@@ -1626,7 +1893,8 @@ module Google
1626
1893
  attr_accessor :obfuscated_external_profile_id
1627
1894
 
1628
1895
  # The order id of the latest recurring order associated with the purchase of the
1629
- # subscription.
1896
+ # subscription. If the subscription was canceled because payment was declined,
1897
+ # this will be the order id from the payment declined order.
1630
1898
  # Corresponds to the JSON property `orderId`
1631
1899
  # @return [String]
1632
1900
  attr_accessor :order_id
@@ -1638,9 +1906,11 @@ module Google
1638
1906
  # @return [Fixnum]
1639
1907
  attr_accessor :payment_state
1640
1908
 
1641
- # Price of the subscription, not including tax. Price is expressed in micro-
1642
- # units, where 1,000,000 micro-units represents one unit of the currency. For
1643
- # example, if the subscription price is €1.99, price_amount_micros is 1990000.
1909
+ # Price of the subscription, For tax exclusive countries, the price doesn't
1910
+ # include tax. For tax inclusive countries, the price includes tax. Price is
1911
+ # expressed in micro-units, where 1,000,000 micro-units represents one unit of
1912
+ # the currency. For example, if the subscription price is €1.99,
1913
+ # price_amount_micros is 1990000.
1644
1914
  # Corresponds to the JSON property `priceAmountMicros`
1645
1915
  # @return [Fixnum]
1646
1916
  attr_accessor :price_amount_micros
@@ -1799,6 +2069,37 @@ module Google
1799
2069
  end
1800
2070
  end
1801
2071
 
2072
+ # Details about taxation, Google Play policy and legal compliance for
2073
+ # subscription products.
2074
+ class SubscriptionTaxAndComplianceSettings
2075
+ include Google::Apis::Core::Hashable
2076
+
2077
+ # Digital content or service classification for products distributed to users in
2078
+ # the European Economic Area (EEA). The withdrawal regime under EEA consumer
2079
+ # laws depends on this classification. Refer to the [Help Center article](https:/
2080
+ # /support.google.com/googleplay/android-developer/answer/10463498) for more
2081
+ # information.
2082
+ # Corresponds to the JSON property `eeaWithdrawalRightType`
2083
+ # @return [String]
2084
+ attr_accessor :eea_withdrawal_right_type
2085
+
2086
+ # A mapping from region code to tax rate details. The keys are region codes as
2087
+ # defined by Unicode's "CLDR".
2088
+ # Corresponds to the JSON property `taxRateInfoByRegionCode`
2089
+ # @return [Hash<String,Google::Apis::AndroidpublisherV3::RegionalTaxRateInfo>]
2090
+ attr_accessor :tax_rate_info_by_region_code
2091
+
2092
+ def initialize(**args)
2093
+ update!(**args)
2094
+ end
2095
+
2096
+ # Update properties of this object
2097
+ def update!(**args)
2098
+ @eea_withdrawal_right_type = args[:eea_withdrawal_right_type] if args.key?(:eea_withdrawal_right_type)
2099
+ @tax_rate_info_by_region_code = args[:tax_rate_info_by_region_code] if args.key?(:tax_rate_info_by_region_code)
2100
+ end
2101
+ end
2102
+
1802
2103
  # Response to list previously created system APK variants.
1803
2104
  class SystemApksListResponse
1804
2105
  include Google::Apis::Core::Hashable
@@ -2013,6 +2314,64 @@ module Google
2013
2314
  end
2014
2315
  end
2015
2316
 
2317
+ # A user resource.
2318
+ class User
2319
+ include Google::Apis::Core::Hashable
2320
+
2321
+ # Output only. The state of the user's access to the Play Console.
2322
+ # Corresponds to the JSON property `accessState`
2323
+ # @return [String]
2324
+ attr_accessor :access_state
2325
+
2326
+ # Permissions for the user which apply across the developer account.
2327
+ # Corresponds to the JSON property `developerAccountPermissions`
2328
+ # @return [Array<String>]
2329
+ attr_accessor :developer_account_permissions
2330
+
2331
+ # Immutable. The user's email address.
2332
+ # Corresponds to the JSON property `email`
2333
+ # @return [String]
2334
+ attr_accessor :email
2335
+
2336
+ # The time at which the user's access expires, if set.
2337
+ # Corresponds to the JSON property `expirationTime`
2338
+ # @return [String]
2339
+ attr_accessor :expiration_time
2340
+
2341
+ # Output only. Per-app permissions for the user.
2342
+ # Corresponds to the JSON property `grants`
2343
+ # @return [Array<Google::Apis::AndroidpublisherV3::Grant>]
2344
+ attr_accessor :grants
2345
+
2346
+ # Required. Resource name for this user, following the pattern "developers/`
2347
+ # developer`/users/`email`".
2348
+ # Corresponds to the JSON property `name`
2349
+ # @return [String]
2350
+ attr_accessor :name
2351
+
2352
+ # Output only. Whether there are more permissions for the user that are not
2353
+ # represented here.
2354
+ # Corresponds to the JSON property `partial`
2355
+ # @return [Boolean]
2356
+ attr_accessor :partial
2357
+ alias_method :partial?, :partial
2358
+
2359
+ def initialize(**args)
2360
+ update!(**args)
2361
+ end
2362
+
2363
+ # Update properties of this object
2364
+ def update!(**args)
2365
+ @access_state = args[:access_state] if args.key?(:access_state)
2366
+ @developer_account_permissions = args[:developer_account_permissions] if args.key?(:developer_account_permissions)
2367
+ @email = args[:email] if args.key?(:email)
2368
+ @expiration_time = args[:expiration_time] if args.key?(:expiration_time)
2369
+ @grants = args[:grants] if args.key?(:grants)
2370
+ @name = args[:name] if args.key?(:name)
2371
+ @partial = args[:partial] if args.key?(:partial)
2372
+ end
2373
+ end
2374
+
2016
2375
  # User entry from conversation between user and developer.
2017
2376
  class UserComment
2018
2377
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module AndroidpublisherV3
18
18
  # Version of the google-apis-androidpublisher_v3 gem
19
- GEM_VERSION = "0.1.0"
19
+ GEM_VERSION = "0.13.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.1"
22
+ GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20201125"
25
+ REVISION = "20211021"
26
26
  end
27
27
  end
28
28
  end
@@ -82,6 +82,30 @@ module Google
82
82
  include Google::Apis::Core::JsonObjectSupport
83
83
  end
84
84
 
85
+ class ConvertRegionPricesRequest
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class ConvertRegionPricesResponse
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class ConvertedOtherRegionsPrice
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class ConvertedRegionPrice
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
85
109
  class CountryTargeting
86
110
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
111
 
@@ -136,6 +160,12 @@ module Google
136
160
  include Google::Apis::Core::JsonObjectSupport
137
161
  end
138
162
 
163
+ class Grant
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
139
169
  class Image
140
170
  class Representation < Google::Apis::Core::JsonRepresentation; end
141
171
 
@@ -190,6 +220,12 @@ module Google
190
220
  include Google::Apis::Core::JsonObjectSupport
191
221
  end
192
222
 
223
+ class ListUsersResponse
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
193
229
  class Listing
194
230
  class Representation < Google::Apis::Core::JsonRepresentation; end
195
231
 
@@ -208,6 +244,18 @@ module Google
208
244
  include Google::Apis::Core::JsonObjectSupport
209
245
  end
210
246
 
247
+ class ManagedProductTaxAndComplianceSettings
248
+ class Representation < Google::Apis::Core::JsonRepresentation; end
249
+
250
+ include Google::Apis::Core::JsonObjectSupport
251
+ end
252
+
253
+ class Money
254
+ class Representation < Google::Apis::Core::JsonRepresentation; end
255
+
256
+ include Google::Apis::Core::JsonObjectSupport
257
+ end
258
+
211
259
  class PageInfo
212
260
  class Representation < Google::Apis::Core::JsonRepresentation; end
213
261
 
@@ -232,6 +280,12 @@ module Google
232
280
  include Google::Apis::Core::JsonObjectSupport
233
281
  end
234
282
 
283
+ class RegionalTaxRateInfo
284
+ class Representation < Google::Apis::Core::JsonRepresentation; end
285
+
286
+ include Google::Apis::Core::JsonObjectSupport
287
+ end
288
+
235
289
  class Review
236
290
  class Representation < Google::Apis::Core::JsonRepresentation; end
237
291
 
@@ -304,6 +358,12 @@ module Google
304
358
  include Google::Apis::Core::JsonObjectSupport
305
359
  end
306
360
 
361
+ class SubscriptionTaxAndComplianceSettings
362
+ class Representation < Google::Apis::Core::JsonRepresentation; end
363
+
364
+ include Google::Apis::Core::JsonObjectSupport
365
+ end
366
+
307
367
  class SystemApksListResponse
308
368
  class Representation < Google::Apis::Core::JsonRepresentation; end
309
369
 
@@ -346,6 +406,12 @@ module Google
346
406
  include Google::Apis::Core::JsonObjectSupport
347
407
  end
348
408
 
409
+ class User
410
+ class Representation < Google::Apis::Core::JsonRepresentation; end
411
+
412
+ include Google::Apis::Core::JsonObjectSupport
413
+ end
414
+
349
415
  class UserComment
350
416
  class Representation < Google::Apis::Core::JsonRepresentation; end
351
417
 
@@ -464,6 +530,45 @@ module Google
464
530
  end
465
531
  end
466
532
 
533
+ class ConvertRegionPricesRequest
534
+ # @private
535
+ class Representation < Google::Apis::Core::JsonRepresentation
536
+ property :price, as: 'price', class: Google::Apis::AndroidpublisherV3::Money, decorator: Google::Apis::AndroidpublisherV3::Money::Representation
537
+
538
+ end
539
+ end
540
+
541
+ class ConvertRegionPricesResponse
542
+ # @private
543
+ class Representation < Google::Apis::Core::JsonRepresentation
544
+ property :converted_other_regions_price, as: 'convertedOtherRegionsPrice', class: Google::Apis::AndroidpublisherV3::ConvertedOtherRegionsPrice, decorator: Google::Apis::AndroidpublisherV3::ConvertedOtherRegionsPrice::Representation
545
+
546
+ hash :converted_region_prices, as: 'convertedRegionPrices', class: Google::Apis::AndroidpublisherV3::ConvertedRegionPrice, decorator: Google::Apis::AndroidpublisherV3::ConvertedRegionPrice::Representation
547
+
548
+ end
549
+ end
550
+
551
+ class ConvertedOtherRegionsPrice
552
+ # @private
553
+ class Representation < Google::Apis::Core::JsonRepresentation
554
+ property :eur_price, as: 'eurPrice', class: Google::Apis::AndroidpublisherV3::Money, decorator: Google::Apis::AndroidpublisherV3::Money::Representation
555
+
556
+ property :usd_price, as: 'usdPrice', class: Google::Apis::AndroidpublisherV3::Money, decorator: Google::Apis::AndroidpublisherV3::Money::Representation
557
+
558
+ end
559
+ end
560
+
561
+ class ConvertedRegionPrice
562
+ # @private
563
+ class Representation < Google::Apis::Core::JsonRepresentation
564
+ property :price, as: 'price', class: Google::Apis::AndroidpublisherV3::Money, decorator: Google::Apis::AndroidpublisherV3::Money::Representation
565
+
566
+ property :region_code, as: 'regionCode'
567
+ property :tax_amount, as: 'taxAmount', class: Google::Apis::AndroidpublisherV3::Money, decorator: Google::Apis::AndroidpublisherV3::Money::Representation
568
+
569
+ end
570
+ end
571
+
467
572
  class CountryTargeting
468
573
  # @private
469
574
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -560,6 +665,15 @@ module Google
560
665
  end
561
666
  end
562
667
 
668
+ class Grant
669
+ # @private
670
+ class Representation < Google::Apis::Core::JsonRepresentation
671
+ collection :app_level_permissions, as: 'appLevelPermissions'
672
+ property :name, as: 'name'
673
+ property :package_name, as: 'packageName'
674
+ end
675
+ end
676
+
563
677
  class Image
564
678
  # @private
565
679
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -603,6 +717,8 @@ module Google
603
717
  property :grace_period, as: 'gracePeriod'
604
718
  hash :listings, as: 'listings', class: Google::Apis::AndroidpublisherV3::InAppProductListing, decorator: Google::Apis::AndroidpublisherV3::InAppProductListing::Representation
605
719
 
720
+ property :managed_product_taxes_and_compliance_settings, as: 'managedProductTaxesAndComplianceSettings', class: Google::Apis::AndroidpublisherV3::ManagedProductTaxAndComplianceSettings, decorator: Google::Apis::AndroidpublisherV3::ManagedProductTaxAndComplianceSettings::Representation
721
+
606
722
  property :package_name, as: 'packageName'
607
723
  hash :prices, as: 'prices', class: Google::Apis::AndroidpublisherV3::Price, decorator: Google::Apis::AndroidpublisherV3::Price::Representation
608
724
 
@@ -610,6 +726,8 @@ module Google
610
726
  property :sku, as: 'sku'
611
727
  property :status, as: 'status'
612
728
  property :subscription_period, as: 'subscriptionPeriod'
729
+ property :subscription_taxes_and_compliance_settings, as: 'subscriptionTaxesAndComplianceSettings', class: Google::Apis::AndroidpublisherV3::SubscriptionTaxAndComplianceSettings, decorator: Google::Apis::AndroidpublisherV3::SubscriptionTaxAndComplianceSettings::Representation
730
+
613
731
  property :trial_period, as: 'trialPeriod'
614
732
  end
615
733
  end
@@ -655,6 +773,15 @@ module Google
655
773
  end
656
774
  end
657
775
 
776
+ class ListUsersResponse
777
+ # @private
778
+ class Representation < Google::Apis::Core::JsonRepresentation
779
+ property :next_page_token, as: 'nextPageToken'
780
+ collection :users, as: 'users', class: Google::Apis::AndroidpublisherV3::User, decorator: Google::Apis::AndroidpublisherV3::User::Representation
781
+
782
+ end
783
+ end
784
+
658
785
  class Listing
659
786
  # @private
660
787
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -683,6 +810,24 @@ module Google
683
810
  end
684
811
  end
685
812
 
813
+ class ManagedProductTaxAndComplianceSettings
814
+ # @private
815
+ class Representation < Google::Apis::Core::JsonRepresentation
816
+ property :eea_withdrawal_right_type, as: 'eeaWithdrawalRightType'
817
+ hash :tax_rate_info_by_region_code, as: 'taxRateInfoByRegionCode', class: Google::Apis::AndroidpublisherV3::RegionalTaxRateInfo, decorator: Google::Apis::AndroidpublisherV3::RegionalTaxRateInfo::Representation
818
+
819
+ end
820
+ end
821
+
822
+ class Money
823
+ # @private
824
+ class Representation < Google::Apis::Core::JsonRepresentation
825
+ property :currency_code, as: 'currencyCode'
826
+ property :nanos, as: 'nanos'
827
+ property :units, :numeric_string => true, as: 'units'
828
+ end
829
+ end
830
+
686
831
  class PageInfo
687
832
  # @private
688
833
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -727,6 +872,14 @@ module Google
727
872
  end
728
873
  end
729
874
 
875
+ class RegionalTaxRateInfo
876
+ # @private
877
+ class Representation < Google::Apis::Core::JsonRepresentation
878
+ property :eligible_for_streaming_service_tax_rate, as: 'eligibleForStreamingServiceTaxRate'
879
+ property :tax_tier, as: 'taxTier'
880
+ end
881
+ end
882
+
730
883
  class Review
731
884
  # @private
732
885
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -858,6 +1011,15 @@ module Google
858
1011
  end
859
1012
  end
860
1013
 
1014
+ class SubscriptionTaxAndComplianceSettings
1015
+ # @private
1016
+ class Representation < Google::Apis::Core::JsonRepresentation
1017
+ property :eea_withdrawal_right_type, as: 'eeaWithdrawalRightType'
1018
+ hash :tax_rate_info_by_region_code, as: 'taxRateInfoByRegionCode', class: Google::Apis::AndroidpublisherV3::RegionalTaxRateInfo, decorator: Google::Apis::AndroidpublisherV3::RegionalTaxRateInfo::Representation
1019
+
1020
+ end
1021
+ end
1022
+
861
1023
  class SystemApksListResponse
862
1024
  # @private
863
1025
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -922,6 +1084,20 @@ module Google
922
1084
  end
923
1085
  end
924
1086
 
1087
+ class User
1088
+ # @private
1089
+ class Representation < Google::Apis::Core::JsonRepresentation
1090
+ property :access_state, as: 'accessState'
1091
+ collection :developer_account_permissions, as: 'developerAccountPermissions'
1092
+ property :email, as: 'email'
1093
+ property :expiration_time, as: 'expirationTime'
1094
+ collection :grants, as: 'grants', class: Google::Apis::AndroidpublisherV3::Grant, decorator: Google::Apis::AndroidpublisherV3::Grant::Representation
1095
+
1096
+ property :name, as: 'name'
1097
+ property :partial, as: 'partial'
1098
+ end
1099
+ end
1100
+
925
1101
  class UserComment
926
1102
  # @private
927
1103
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -54,6 +54,10 @@ module Google
54
54
  # Package name of the app.
55
55
  # @param [String] edit_id
56
56
  # Identifier of the edit.
57
+ # @param [Boolean] changes_not_sent_for_review
58
+ # Indicates that the changes in this edit will not be reviewed until they are
59
+ # explicitly sent for review from the Google Play Console UI. These changes will
60
+ # be added to any other changes that are not yet sent for review.
57
61
  # @param [String] fields
58
62
  # Selector specifying which fields to include in a partial response.
59
63
  # @param [String] quota_user
@@ -71,12 +75,13 @@ module Google
71
75
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
72
76
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
73
77
  # @raise [Google::Apis::AuthorizationError] Authorization is required
74
- def commit_edit(package_name, edit_id, fields: nil, quota_user: nil, options: nil, &block)
78
+ def commit_edit(package_name, edit_id, changes_not_sent_for_review: nil, fields: nil, quota_user: nil, options: nil, &block)
75
79
  command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/edits/{editId}:commit', options)
76
80
  command.response_representation = Google::Apis::AndroidpublisherV3::AppEdit::Representation
77
81
  command.response_class = Google::Apis::AndroidpublisherV3::AppEdit
78
82
  command.params['packageName'] = package_name unless package_name.nil?
79
83
  command.params['editId'] = edit_id unless edit_id.nil?
84
+ command.query['changesNotSentForReview'] = changes_not_sent_for_review unless changes_not_sent_for_review.nil?
80
85
  command.query['fields'] = fields unless fields.nil?
81
86
  command.query['quotaUser'] = quota_user unless quota_user.nil?
82
87
  execute_or_queue_command(command, &block)
@@ -370,9 +375,9 @@ module Google
370
375
  # @param [String] edit_id
371
376
  # Identifier of the edit.
372
377
  # @param [Boolean] ack_bundle_installation_warning
373
- # Must be set to true if the bundle installation may trigger a warning on user
374
- # devices (for example, if installation size may be over a threshold, typically
375
- # 100 MB).
378
+ # Must be set to true if the app bundle installation may trigger a warning on
379
+ # user devices (for example, if installation size may be over a threshold,
380
+ # typically 100 MB).
376
381
  # @param [String] fields
377
382
  # Selector specifying which fields to include in a partial response.
378
383
  # @param [String] quota_user
@@ -1397,6 +1402,106 @@ module Google
1397
1402
  execute_or_queue_command(command, &block)
1398
1403
  end
1399
1404
 
1405
+ # Grant access for a user to the given package.
1406
+ # @param [String] parent
1407
+ # Required. The user which needs permission. Format: developers/`developer`/
1408
+ # users/`user`
1409
+ # @param [Google::Apis::AndroidpublisherV3::Grant] grant_object
1410
+ # @param [String] fields
1411
+ # Selector specifying which fields to include in a partial response.
1412
+ # @param [String] quota_user
1413
+ # Available to use for quota purposes for server-side applications. Can be any
1414
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1415
+ # @param [Google::Apis::RequestOptions] options
1416
+ # Request-specific options
1417
+ #
1418
+ # @yield [result, err] Result & error if block supplied
1419
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::Grant] parsed result object
1420
+ # @yieldparam err [StandardError] error object if request failed
1421
+ #
1422
+ # @return [Google::Apis::AndroidpublisherV3::Grant]
1423
+ #
1424
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1425
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1426
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1427
+ def create_grant(parent, grant_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1428
+ command = make_simple_command(:post, 'androidpublisher/v3/{+parent}/grants', options)
1429
+ command.request_representation = Google::Apis::AndroidpublisherV3::Grant::Representation
1430
+ command.request_object = grant_object
1431
+ command.response_representation = Google::Apis::AndroidpublisherV3::Grant::Representation
1432
+ command.response_class = Google::Apis::AndroidpublisherV3::Grant
1433
+ command.params['parent'] = parent unless parent.nil?
1434
+ command.query['fields'] = fields unless fields.nil?
1435
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1436
+ execute_or_queue_command(command, &block)
1437
+ end
1438
+
1439
+ # Removes all access for the user to the given package or developer account.
1440
+ # @param [String] name
1441
+ # Required. The name of the grant to delete. Format: developers/`developer`/
1442
+ # users/`email`/grants/`package_name`
1443
+ # @param [String] fields
1444
+ # Selector specifying which fields to include in a partial response.
1445
+ # @param [String] quota_user
1446
+ # Available to use for quota purposes for server-side applications. Can be any
1447
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1448
+ # @param [Google::Apis::RequestOptions] options
1449
+ # Request-specific options
1450
+ #
1451
+ # @yield [result, err] Result & error if block supplied
1452
+ # @yieldparam result [NilClass] No result returned for this method
1453
+ # @yieldparam err [StandardError] error object if request failed
1454
+ #
1455
+ # @return [void]
1456
+ #
1457
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1458
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1459
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1460
+ def delete_grant(name, fields: nil, quota_user: nil, options: nil, &block)
1461
+ command = make_simple_command(:delete, 'androidpublisher/v3/{+name}', options)
1462
+ command.params['name'] = name unless name.nil?
1463
+ command.query['fields'] = fields unless fields.nil?
1464
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1465
+ execute_or_queue_command(command, &block)
1466
+ end
1467
+
1468
+ # Updates access for the user to the given package.
1469
+ # @param [String] name
1470
+ # Required. Resource name for this grant, following the pattern "developers/`
1471
+ # developer`/users/`email`/grants/`package_name`".
1472
+ # @param [Google::Apis::AndroidpublisherV3::Grant] grant_object
1473
+ # @param [String] update_mask
1474
+ # Optional. The list of fields to be updated.
1475
+ # @param [String] fields
1476
+ # Selector specifying which fields to include in a partial response.
1477
+ # @param [String] quota_user
1478
+ # Available to use for quota purposes for server-side applications. Can be any
1479
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1480
+ # @param [Google::Apis::RequestOptions] options
1481
+ # Request-specific options
1482
+ #
1483
+ # @yield [result, err] Result & error if block supplied
1484
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::Grant] parsed result object
1485
+ # @yieldparam err [StandardError] error object if request failed
1486
+ #
1487
+ # @return [Google::Apis::AndroidpublisherV3::Grant]
1488
+ #
1489
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1490
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1491
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1492
+ def patch_grant(name, grant_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1493
+ command = make_simple_command(:patch, 'androidpublisher/v3/{+name}', options)
1494
+ command.request_representation = Google::Apis::AndroidpublisherV3::Grant::Representation
1495
+ command.request_object = grant_object
1496
+ command.response_representation = Google::Apis::AndroidpublisherV3::Grant::Representation
1497
+ command.response_class = Google::Apis::AndroidpublisherV3::Grant
1498
+ command.params['name'] = name unless name.nil?
1499
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1500
+ command.query['fields'] = fields unless fields.nil?
1501
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1502
+ execute_or_queue_command(command, &block)
1503
+ end
1504
+
1400
1505
  # Deletes an in-app product (i.e. a managed product or a subscriptions).
1401
1506
  # @param [String] package_name
1402
1507
  # Package name of the app.
@@ -1499,13 +1604,17 @@ module Google
1499
1604
  execute_or_queue_command(command, &block)
1500
1605
  end
1501
1606
 
1502
- # Lists all in-app products - both managed products and subscriptions.
1607
+ # Lists all in-app products - both managed products and subscriptions. If an app
1608
+ # has a large number of in-app products, the response may be paginated. In this
1609
+ # case the response field `tokenPagination.nextPageToken` will be set and the
1610
+ # caller should provide its value as a `token` request parameter to retrieve the
1611
+ # next page.
1503
1612
  # @param [String] package_name
1504
1613
  # Package name of the app.
1505
1614
  # @param [Fixnum] max_results
1506
- # How many results the list operation should return.
1615
+ # Deprecated and ignored. The page size is determined by the server.
1507
1616
  # @param [Fixnum] start_index
1508
- # The index of the first element to return.
1617
+ # Deprecated and ignored. Set the `token` parameter to rertieve the next page.
1509
1618
  # @param [String] token
1510
1619
  # Pagination token. If empty, list starts at the first product.
1511
1620
  # @param [String] fields
@@ -1585,6 +1694,9 @@ module Google
1585
1694
  # @param [String] sku
1586
1695
  # Unique identifier for the in-app product.
1587
1696
  # @param [Google::Apis::AndroidpublisherV3::InAppProduct] in_app_product_object
1697
+ # @param [Boolean] allow_missing
1698
+ # If set to true, and the in-app product with the given package_name and sku
1699
+ # doesn't exist, the in-app product will be created.
1588
1700
  # @param [Boolean] auto_convert_missing_prices
1589
1701
  # If true the prices for all regions targeted by the parent app that don't have
1590
1702
  # a price specified for this in-app product will be auto converted to the target
@@ -1606,7 +1718,7 @@ module Google
1606
1718
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1607
1719
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1608
1720
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1609
- def update_inappproduct(package_name, sku, in_app_product_object = nil, auto_convert_missing_prices: nil, fields: nil, quota_user: nil, options: nil, &block)
1721
+ 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)
1610
1722
  command = make_simple_command(:put, 'androidpublisher/v3/applications/{packageName}/inappproducts/{sku}', options)
1611
1723
  command.request_representation = Google::Apis::AndroidpublisherV3::InAppProduct::Representation
1612
1724
  command.request_object = in_app_product_object
@@ -1614,6 +1726,7 @@ module Google
1614
1726
  command.response_class = Google::Apis::AndroidpublisherV3::InAppProduct
1615
1727
  command.params['packageName'] = package_name unless package_name.nil?
1616
1728
  command.params['sku'] = sku unless sku.nil?
1729
+ command.query['allowMissing'] = allow_missing unless allow_missing.nil?
1617
1730
  command.query['autoConvertMissingPrices'] = auto_convert_missing_prices unless auto_convert_missing_prices.nil?
1618
1731
  command.query['fields'] = fields unless fields.nil?
1619
1732
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -1708,7 +1821,42 @@ module Google
1708
1821
  execute_or_queue_command(command, &block)
1709
1822
  end
1710
1823
 
1711
- # Refund a user's subscription or in-app purchase order.
1824
+ # Calculates the region prices, using today's exchange rate and country-specific
1825
+ # pricing patterns, based on the price in the request for a set of regions.
1826
+ # @param [String] package_name
1827
+ # Required. The app package name.
1828
+ # @param [Google::Apis::AndroidpublisherV3::ConvertRegionPricesRequest] convert_region_prices_request_object
1829
+ # @param [String] fields
1830
+ # Selector specifying which fields to include in a partial response.
1831
+ # @param [String] quota_user
1832
+ # Available to use for quota purposes for server-side applications. Can be any
1833
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1834
+ # @param [Google::Apis::RequestOptions] options
1835
+ # Request-specific options
1836
+ #
1837
+ # @yield [result, err] Result & error if block supplied
1838
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::ConvertRegionPricesResponse] parsed result object
1839
+ # @yieldparam err [StandardError] error object if request failed
1840
+ #
1841
+ # @return [Google::Apis::AndroidpublisherV3::ConvertRegionPricesResponse]
1842
+ #
1843
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1844
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1845
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1846
+ def convert_monetization_region_prices(package_name, convert_region_prices_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1847
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/pricing:convertRegionPrices', options)
1848
+ command.request_representation = Google::Apis::AndroidpublisherV3::ConvertRegionPricesRequest::Representation
1849
+ command.request_object = convert_region_prices_request_object
1850
+ command.response_representation = Google::Apis::AndroidpublisherV3::ConvertRegionPricesResponse::Representation
1851
+ command.response_class = Google::Apis::AndroidpublisherV3::ConvertRegionPricesResponse
1852
+ command.params['packageName'] = package_name unless package_name.nil?
1853
+ command.query['fields'] = fields unless fields.nil?
1854
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1855
+ execute_or_queue_command(command, &block)
1856
+ end
1857
+
1858
+ # Refunds a user's subscription or in-app purchase order. Orders older than 1
1859
+ # year cannot be refunded.
1712
1860
  # @param [String] package_name
1713
1861
  # The package name of the application for which this subscription or in-app item
1714
1862
  # was purchased (for example, 'com.some.thing').
@@ -2377,6 +2525,145 @@ module Google
2377
2525
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2378
2526
  execute_or_queue_command(command, &block)
2379
2527
  end
2528
+
2529
+ # Grant access for a user to the given developer account.
2530
+ # @param [String] parent
2531
+ # Required. The developer account to add the user to. Format: developers/`
2532
+ # developer`
2533
+ # @param [Google::Apis::AndroidpublisherV3::User] user_object
2534
+ # @param [String] fields
2535
+ # Selector specifying which fields to include in a partial response.
2536
+ # @param [String] quota_user
2537
+ # Available to use for quota purposes for server-side applications. Can be any
2538
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2539
+ # @param [Google::Apis::RequestOptions] options
2540
+ # Request-specific options
2541
+ #
2542
+ # @yield [result, err] Result & error if block supplied
2543
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::User] parsed result object
2544
+ # @yieldparam err [StandardError] error object if request failed
2545
+ #
2546
+ # @return [Google::Apis::AndroidpublisherV3::User]
2547
+ #
2548
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2549
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2550
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2551
+ def create_user(parent, user_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2552
+ command = make_simple_command(:post, 'androidpublisher/v3/{+parent}/users', options)
2553
+ command.request_representation = Google::Apis::AndroidpublisherV3::User::Representation
2554
+ command.request_object = user_object
2555
+ command.response_representation = Google::Apis::AndroidpublisherV3::User::Representation
2556
+ command.response_class = Google::Apis::AndroidpublisherV3::User
2557
+ command.params['parent'] = parent unless parent.nil?
2558
+ command.query['fields'] = fields unless fields.nil?
2559
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2560
+ execute_or_queue_command(command, &block)
2561
+ end
2562
+
2563
+ # Removes all access for the user to the given developer account.
2564
+ # @param [String] name
2565
+ # Required. The name of the user to delete. Format: developers/`developer`/users/
2566
+ # `email`
2567
+ # @param [String] fields
2568
+ # Selector specifying which fields to include in a partial response.
2569
+ # @param [String] quota_user
2570
+ # Available to use for quota purposes for server-side applications. Can be any
2571
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2572
+ # @param [Google::Apis::RequestOptions] options
2573
+ # Request-specific options
2574
+ #
2575
+ # @yield [result, err] Result & error if block supplied
2576
+ # @yieldparam result [NilClass] No result returned for this method
2577
+ # @yieldparam err [StandardError] error object if request failed
2578
+ #
2579
+ # @return [void]
2580
+ #
2581
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2582
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2583
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2584
+ def delete_user(name, fields: nil, quota_user: nil, options: nil, &block)
2585
+ command = make_simple_command(:delete, 'androidpublisher/v3/{+name}', options)
2586
+ command.params['name'] = name unless name.nil?
2587
+ command.query['fields'] = fields unless fields.nil?
2588
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2589
+ execute_or_queue_command(command, &block)
2590
+ end
2591
+
2592
+ # Lists all users with access to a developer account.
2593
+ # @param [String] parent
2594
+ # Required. The developer account to fetch users from. Format: developers/`
2595
+ # developer`
2596
+ # @param [Fixnum] page_size
2597
+ # The maximum number of results to return. This must be set to -1 to disable
2598
+ # pagination.
2599
+ # @param [String] page_token
2600
+ # A token received from a previous call to this method, in order to retrieve
2601
+ # further results.
2602
+ # @param [String] fields
2603
+ # Selector specifying which fields to include in a partial response.
2604
+ # @param [String] quota_user
2605
+ # Available to use for quota purposes for server-side applications. Can be any
2606
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2607
+ # @param [Google::Apis::RequestOptions] options
2608
+ # Request-specific options
2609
+ #
2610
+ # @yield [result, err] Result & error if block supplied
2611
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::ListUsersResponse] parsed result object
2612
+ # @yieldparam err [StandardError] error object if request failed
2613
+ #
2614
+ # @return [Google::Apis::AndroidpublisherV3::ListUsersResponse]
2615
+ #
2616
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2617
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2618
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2619
+ def list_users(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2620
+ command = make_simple_command(:get, 'androidpublisher/v3/{+parent}/users', options)
2621
+ command.response_representation = Google::Apis::AndroidpublisherV3::ListUsersResponse::Representation
2622
+ command.response_class = Google::Apis::AndroidpublisherV3::ListUsersResponse
2623
+ command.params['parent'] = parent unless parent.nil?
2624
+ command.query['pageSize'] = page_size unless page_size.nil?
2625
+ command.query['pageToken'] = page_token unless page_token.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 access for the user to the developer account.
2632
+ # @param [String] name
2633
+ # Required. Resource name for this user, following the pattern "developers/`
2634
+ # developer`/users/`email`".
2635
+ # @param [Google::Apis::AndroidpublisherV3::User] user_object
2636
+ # @param [String] update_mask
2637
+ # Optional. The list of fields to be updated.
2638
+ # @param [String] fields
2639
+ # Selector specifying which fields to include in a partial response.
2640
+ # @param [String] quota_user
2641
+ # Available to use for quota purposes for server-side applications. Can be any
2642
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2643
+ # @param [Google::Apis::RequestOptions] options
2644
+ # Request-specific options
2645
+ #
2646
+ # @yield [result, err] Result & error if block supplied
2647
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::User] parsed result object
2648
+ # @yieldparam err [StandardError] error object if request failed
2649
+ #
2650
+ # @return [Google::Apis::AndroidpublisherV3::User]
2651
+ #
2652
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2653
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2654
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2655
+ def patch_user(name, user_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2656
+ command = make_simple_command(:patch, 'androidpublisher/v3/{+name}', options)
2657
+ command.request_representation = Google::Apis::AndroidpublisherV3::User::Representation
2658
+ command.request_object = user_object
2659
+ command.response_representation = Google::Apis::AndroidpublisherV3::User::Representation
2660
+ command.response_class = Google::Apis::AndroidpublisherV3::User
2661
+ command.params['name'] = name unless name.nil?
2662
+ command.query['updateMask'] = update_mask unless update_mask.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
2380
2667
 
2381
2668
  protected
2382
2669
 
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-androidpublisher_v3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-08 00:00:00.000000000 Z
11
+ date: 2021-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.1'
19
+ version: '0.4'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: 2.a
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '0.4'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '0.1'
32
+ version: 2.a
27
33
  description: This is the simple REST client for Google Play Android Developer API
28
34
  V3. Simple REST clients are Ruby client libraries that provide access to Google
29
35
  services via their HTTP REST API endpoints. These libraries are generated and updated
@@ -51,9 +57,9 @@ licenses:
51
57
  - Apache-2.0
52
58
  metadata:
53
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
- changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-androidpublisher_v3/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-androidpublisher_v3/v0.1.0
56
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-androidpublisher_v3
60
+ changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-androidpublisher_v3/CHANGELOG.md
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-androidpublisher_v3/v0.13.0
62
+ source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-androidpublisher_v3
57
63
  post_install_message:
58
64
  rdoc_options: []
59
65
  require_paths:
@@ -62,14 +68,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
62
68
  requirements:
63
69
  - - ">="
64
70
  - !ruby/object:Gem::Version
65
- version: '2.4'
71
+ version: '2.5'
66
72
  required_rubygems_version: !ruby/object:Gem::Requirement
67
73
  requirements:
68
74
  - - ">="
69
75
  - !ruby/object:Gem::Version
70
76
  version: '0'
71
77
  requirements: []
72
- rubygems_version: 3.1.4
78
+ rubygems_version: 3.2.17
73
79
  signing_key:
74
80
  specification_version: 4
75
81
  summary: Simple REST client for Google Play Android Developer API V3