google-apis-androidpublisher_v3 0.11.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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/androidpublisher_v3/classes.rb +136 -0
- data/lib/google/apis/androidpublisher_v3/gem_version.rb +2 -2
- data/lib/google/apis/androidpublisher_v3/representations.rb +78 -0
- data/lib/google/apis/androidpublisher_v3/service.rb +34 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 28d855024c7645050c23c435951a1387dd0e297da3367efccc88e78676293862
|
4
|
+
data.tar.gz: f667aedadcda98532ab684a063fe625079e816d1dbd894d689aba1618e9f6d48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 318180323b20b24cc7541e6eb4f90834e243d1d348031c06e4bb6c13d9154fe33c3d8c62df4000e52e7e14a850a3c83fcd36c95f17705edd3c6f6e8b651edeb3
|
7
|
+
data.tar.gz: 0ac5c23065d6c4241e0fa5bdf8ac1d1f3209f6f3aca16f768954016821bb56710f988778735889464d53775c3e9d43b874c58ba19d303029e16b78f4558db186
|
data/CHANGELOG.md
CHANGED
@@ -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.
|
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 = "
|
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
|
@@ -1721,6 +1721,40 @@ module Google
|
|
1721
1721
|
execute_or_queue_command(command, &block)
|
1722
1722
|
end
|
1723
1723
|
|
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
|
+
|
1724
1758
|
# Refunds a user's subscription or in-app purchase order. Orders older than 1
|
1725
1759
|
# year cannot be refunded.
|
1726
1760
|
# @param [String] package_name
|
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.
|
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-
|
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.
|
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: []
|