google-apis-androidpublisher_v3 0.8.0 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dbf5646cede63859d60e85dd6dacb4a125364baf08177a7148845c7ab19a56b9
4
- data.tar.gz: 662a371c41523745aab6ce3fc8ff68f433b3df489374f157f1609cadea8b5fc9
3
+ metadata.gz: 28d855024c7645050c23c435951a1387dd0e297da3367efccc88e78676293862
4
+ data.tar.gz: f667aedadcda98532ab684a063fe625079e816d1dbd894d689aba1618e9f6d48
5
5
  SHA512:
6
- metadata.gz: 9ef0a1cc6264c926daddd5ace0d8203500d6051da8e9a7ba24ba0c4a241dd6cbd24d8b0fbcd0057823f790e273610560984b27a7825de388905728f1982b4a1c
7
- data.tar.gz: 94b088febb8b50b2464ae978526e74676efabbe93cf045b29e32384ab06448cea0dc54e92dff583fd9d28bd92f714776994f77b3faa3cb2246b5a2a8031b4017
6
+ metadata.gz: 318180323b20b24cc7541e6eb4f90834e243d1d348031c06e4bb6c13d9154fe33c3d8c62df4000e52e7e14a850a3c83fcd36c95f17705edd3c6f6e8b651edeb3
7
+ data.tar.gz: 0ac5c23065d6c4241e0fa5bdf8ac1d1f3209f6f3aca16f768954016821bb56710f988778735889464d53775c3e9d43b874c58ba19d303029e16b78f4558db186
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release history for google-apis-androidpublisher_v3
2
2
 
3
+ ### v0.12.0 (2021-10-07)
4
+
5
+ * Regenerated from discovery document revision 20211006
6
+
7
+ ### v0.11.0 (2021-09-01)
8
+
9
+ * Regenerated from discovery document revision 20210901
10
+
11
+ ### v0.10.0 (2021-07-30)
12
+
13
+ * Regenerated from discovery document revision 20210728
14
+
15
+ ### v0.9.0 (2021-07-21)
16
+
17
+ * Regenerated from discovery document revision 20210720
18
+
3
19
  ### v0.8.0 (2021-06-29)
4
20
 
5
21
  * Regenerated using generator version 0.4.0
@@ -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
@@ -1079,6 +1179,42 @@ module Google
1079
1179
  end
1080
1180
  end
1081
1181
 
1182
+ # Represents an amount of money with its currency type.
1183
+ class Money
1184
+ include Google::Apis::Core::Hashable
1185
+
1186
+ # The three-letter currency code defined in ISO 4217.
1187
+ # Corresponds to the JSON property `currencyCode`
1188
+ # @return [String]
1189
+ attr_accessor :currency_code
1190
+
1191
+ # Number of nano (10^-9) units of the amount. The value must be between -999,999,
1192
+ # 999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be
1193
+ # positive or zero. If `units` is zero, `nanos` can be positive, zero, or
1194
+ # negative. If `units` is negative, `nanos` must be negative or zero. For
1195
+ # example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1196
+ # Corresponds to the JSON property `nanos`
1197
+ # @return [Fixnum]
1198
+ attr_accessor :nanos
1199
+
1200
+ # The whole units of the amount. For example if `currencyCode` is `"USD"`, then
1201
+ # 1 unit is one US dollar.
1202
+ # Corresponds to the JSON property `units`
1203
+ # @return [Fixnum]
1204
+ attr_accessor :units
1205
+
1206
+ def initialize(**args)
1207
+ update!(**args)
1208
+ end
1209
+
1210
+ # Update properties of this object
1211
+ def update!(**args)
1212
+ @currency_code = args[:currency_code] if args.key?(:currency_code)
1213
+ @nanos = args[:nanos] if args.key?(:nanos)
1214
+ @units = args[:units] if args.key?(:units)
1215
+ end
1216
+ end
1217
+
1082
1218
  # Information about the current page. List operations that supports paging
1083
1219
  # return only one "page" of results. This protocol buffer message describes the
1084
1220
  # page that has been returned.
@@ -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.8.0"
19
+ GEM_VERSION = "0.12.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210605"
25
+ REVISION = "20211006"
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
 
@@ -208,6 +232,12 @@ module Google
208
232
  include Google::Apis::Core::JsonObjectSupport
209
233
  end
210
234
 
235
+ class Money
236
+ class Representation < Google::Apis::Core::JsonRepresentation; end
237
+
238
+ include Google::Apis::Core::JsonObjectSupport
239
+ end
240
+
211
241
  class PageInfo
212
242
  class Representation < Google::Apis::Core::JsonRepresentation; end
213
243
 
@@ -464,6 +494,45 @@ module Google
464
494
  end
465
495
  end
466
496
 
497
+ class ConvertRegionPricesRequest
498
+ # @private
499
+ class Representation < Google::Apis::Core::JsonRepresentation
500
+ property :price, as: 'price', class: Google::Apis::AndroidpublisherV3::Money, decorator: Google::Apis::AndroidpublisherV3::Money::Representation
501
+
502
+ end
503
+ end
504
+
505
+ class ConvertRegionPricesResponse
506
+ # @private
507
+ class Representation < Google::Apis::Core::JsonRepresentation
508
+ property :converted_other_regions_price, as: 'convertedOtherRegionsPrice', class: Google::Apis::AndroidpublisherV3::ConvertedOtherRegionsPrice, decorator: Google::Apis::AndroidpublisherV3::ConvertedOtherRegionsPrice::Representation
509
+
510
+ hash :converted_region_prices, as: 'convertedRegionPrices', class: Google::Apis::AndroidpublisherV3::ConvertedRegionPrice, decorator: Google::Apis::AndroidpublisherV3::ConvertedRegionPrice::Representation
511
+
512
+ end
513
+ end
514
+
515
+ class ConvertedOtherRegionsPrice
516
+ # @private
517
+ class Representation < Google::Apis::Core::JsonRepresentation
518
+ property :eur_price, as: 'eurPrice', class: Google::Apis::AndroidpublisherV3::Money, decorator: Google::Apis::AndroidpublisherV3::Money::Representation
519
+
520
+ property :usd_price, as: 'usdPrice', class: Google::Apis::AndroidpublisherV3::Money, decorator: Google::Apis::AndroidpublisherV3::Money::Representation
521
+
522
+ end
523
+ end
524
+
525
+ class ConvertedRegionPrice
526
+ # @private
527
+ class Representation < Google::Apis::Core::JsonRepresentation
528
+ property :price, as: 'price', class: Google::Apis::AndroidpublisherV3::Money, decorator: Google::Apis::AndroidpublisherV3::Money::Representation
529
+
530
+ property :region_code, as: 'regionCode'
531
+ property :tax_amount, as: 'taxAmount', class: Google::Apis::AndroidpublisherV3::Money, decorator: Google::Apis::AndroidpublisherV3::Money::Representation
532
+
533
+ end
534
+ end
535
+
467
536
  class CountryTargeting
468
537
  # @private
469
538
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -683,6 +752,15 @@ module Google
683
752
  end
684
753
  end
685
754
 
755
+ class Money
756
+ # @private
757
+ class Representation < Google::Apis::Core::JsonRepresentation
758
+ property :currency_code, as: 'currencyCode'
759
+ property :nanos, as: 'nanos'
760
+ property :units, :numeric_string => true, as: 'units'
761
+ end
762
+ end
763
+
686
764
  class PageInfo
687
765
  # @private
688
766
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -375,9 +375,9 @@ module Google
375
375
  # @param [String] edit_id
376
376
  # Identifier of the edit.
377
377
  # @param [Boolean] ack_bundle_installation_warning
378
- # Must be set to true if the bundle installation may trigger a warning on user
379
- # devices (for example, if installation size may be over a threshold, typically
380
- # 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).
381
381
  # @param [String] fields
382
382
  # Selector specifying which fields to include in a partial response.
383
383
  # @param [String] quota_user
@@ -1504,13 +1504,17 @@ module Google
1504
1504
  execute_or_queue_command(command, &block)
1505
1505
  end
1506
1506
 
1507
- # Lists all in-app products - both managed products and subscriptions.
1507
+ # Lists all in-app products - both managed products and subscriptions. If an app
1508
+ # has a large number of in-app products, the response may be paginated. In this
1509
+ # case the response field `tokenPagination.nextPageToken` will be set and the
1510
+ # caller should provide its value as a `token` request parameter to retrieve the
1511
+ # next page.
1508
1512
  # @param [String] package_name
1509
1513
  # Package name of the app.
1510
1514
  # @param [Fixnum] max_results
1511
- # How many results the list operation should return.
1515
+ # Deprecated and ignored. The page size is determined by the server.
1512
1516
  # @param [Fixnum] start_index
1513
- # The index of the first element to return.
1517
+ # Deprecated and ignored. Set the `token` parameter to rertieve the next page.
1514
1518
  # @param [String] token
1515
1519
  # Pagination token. If empty, list starts at the first product.
1516
1520
  # @param [String] fields
@@ -1590,6 +1594,9 @@ module Google
1590
1594
  # @param [String] sku
1591
1595
  # Unique identifier for the in-app product.
1592
1596
  # @param [Google::Apis::AndroidpublisherV3::InAppProduct] in_app_product_object
1597
+ # @param [Boolean] allow_missing
1598
+ # If set to true, and the in-app product with the given package_name and sku
1599
+ # doesn't exist, the in-app product will be created.
1593
1600
  # @param [Boolean] auto_convert_missing_prices
1594
1601
  # If true the prices for all regions targeted by the parent app that don't have
1595
1602
  # a price specified for this in-app product will be auto converted to the target
@@ -1611,7 +1618,7 @@ module Google
1611
1618
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1612
1619
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1613
1620
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1614
- def update_inappproduct(package_name, sku, in_app_product_object = nil, auto_convert_missing_prices: nil, fields: nil, quota_user: nil, options: nil, &block)
1621
+ 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)
1615
1622
  command = make_simple_command(:put, 'androidpublisher/v3/applications/{packageName}/inappproducts/{sku}', options)
1616
1623
  command.request_representation = Google::Apis::AndroidpublisherV3::InAppProduct::Representation
1617
1624
  command.request_object = in_app_product_object
@@ -1619,6 +1626,7 @@ module Google
1619
1626
  command.response_class = Google::Apis::AndroidpublisherV3::InAppProduct
1620
1627
  command.params['packageName'] = package_name unless package_name.nil?
1621
1628
  command.params['sku'] = sku unless sku.nil?
1629
+ command.query['allowMissing'] = allow_missing unless allow_missing.nil?
1622
1630
  command.query['autoConvertMissingPrices'] = auto_convert_missing_prices unless auto_convert_missing_prices.nil?
1623
1631
  command.query['fields'] = fields unless fields.nil?
1624
1632
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -1713,7 +1721,42 @@ module Google
1713
1721
  execute_or_queue_command(command, &block)
1714
1722
  end
1715
1723
 
1716
- # Refund a user's subscription or in-app purchase order.
1724
+ # Calculates the region prices, using today's exchange rate and country-specific
1725
+ # pricing patterns, based on the price in the request for a set of regions.
1726
+ # @param [String] package_name
1727
+ # Required. The app package name.
1728
+ # @param [Google::Apis::AndroidpublisherV3::ConvertRegionPricesRequest] convert_region_prices_request_object
1729
+ # @param [String] fields
1730
+ # Selector specifying which fields to include in a partial response.
1731
+ # @param [String] quota_user
1732
+ # Available to use for quota purposes for server-side applications. Can be any
1733
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1734
+ # @param [Google::Apis::RequestOptions] options
1735
+ # Request-specific options
1736
+ #
1737
+ # @yield [result, err] Result & error if block supplied
1738
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::ConvertRegionPricesResponse] parsed result object
1739
+ # @yieldparam err [StandardError] error object if request failed
1740
+ #
1741
+ # @return [Google::Apis::AndroidpublisherV3::ConvertRegionPricesResponse]
1742
+ #
1743
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1744
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1745
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1746
+ def convert_monetization_region_prices(package_name, convert_region_prices_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1747
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/pricing:convertRegionPrices', options)
1748
+ command.request_representation = Google::Apis::AndroidpublisherV3::ConvertRegionPricesRequest::Representation
1749
+ command.request_object = convert_region_prices_request_object
1750
+ command.response_representation = Google::Apis::AndroidpublisherV3::ConvertRegionPricesResponse::Representation
1751
+ command.response_class = Google::Apis::AndroidpublisherV3::ConvertRegionPricesResponse
1752
+ command.params['packageName'] = package_name unless package_name.nil?
1753
+ command.query['fields'] = fields unless fields.nil?
1754
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1755
+ execute_or_queue_command(command, &block)
1756
+ end
1757
+
1758
+ # Refunds a user's subscription or in-app purchase order. Orders older than 1
1759
+ # year cannot be refunded.
1717
1760
  # @param [String] package_name
1718
1761
  # The package name of the application for which this subscription or in-app item
1719
1762
  # was purchased (for example, 'com.some.thing').
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-androidpublisher_v3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.12.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-07-05 00:00:00.000000000 Z
11
+ date: 2021-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-androidpublisher_v3/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-androidpublisher_v3/v0.8.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-androidpublisher_v3/v0.12.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-androidpublisher_v3
63
63
  post_install_message:
64
64
  rdoc_options: []