google-apis-androidpublisher_v3 0.94.0 → 0.95.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 +212 -2
- data/lib/google/apis/androidpublisher_v3/gem_version.rb +2 -2
- data/lib/google/apis/androidpublisher_v3/representations.rb +129 -0
- data/lib/google/apis/androidpublisher_v3/service.rb +38 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 91efc9bdecac39a9f530395b3b2858111de6609621533ee713ac1175dc397415
|
|
4
|
+
data.tar.gz: 19b96b040841e7d9206ba0ef8a7a4deff95d9184cbd55771315b51089cc202be
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e048dffd74a135d87d84f5e44b85d7822c943ab5760b90def6e199125b2798c5c48134220ee28d161c8b6dd7f2eb57728c741e0349ee804f2135a316955e5800
|
|
7
|
+
data.tar.gz: 9417eb178ad144a9148a28945a9f6cf975b0dbf02e449573a5d990c7df61090c09ee9fcb135403f5a9a8fd3ef057d234418e47fc2501e93360bc17c8128d88fb
|
data/CHANGELOG.md
CHANGED
|
@@ -1014,6 +1014,19 @@ module Google
|
|
|
1014
1014
|
end
|
|
1015
1015
|
end
|
|
1016
1016
|
|
|
1017
|
+
# Details about base price offer phase.
|
|
1018
|
+
class BasePriceOfferPhase
|
|
1019
|
+
include Google::Apis::Core::Hashable
|
|
1020
|
+
|
|
1021
|
+
def initialize(**args)
|
|
1022
|
+
update!(**args)
|
|
1023
|
+
end
|
|
1024
|
+
|
|
1025
|
+
# Update properties of this object
|
|
1026
|
+
def update!(**args)
|
|
1027
|
+
end
|
|
1028
|
+
end
|
|
1029
|
+
|
|
1017
1030
|
# Request message for BatchDeleteOneTimeProductOffers.
|
|
1018
1031
|
class BatchDeleteOneTimeProductOffersRequest
|
|
1019
1032
|
include Google::Apis::Core::Hashable
|
|
@@ -2208,6 +2221,80 @@ module Google
|
|
|
2208
2221
|
end
|
|
2209
2222
|
end
|
|
2210
2223
|
|
|
2224
|
+
# Request for the v2 purchases.subscriptions.defer API.
|
|
2225
|
+
class DeferSubscriptionPurchaseRequest
|
|
2226
|
+
include Google::Apis::Core::Hashable
|
|
2227
|
+
|
|
2228
|
+
# Deferral context of the purchases.subscriptionsv2.defer API.
|
|
2229
|
+
# Corresponds to the JSON property `deferralContext`
|
|
2230
|
+
# @return [Google::Apis::AndroidpublisherV3::DeferralContext]
|
|
2231
|
+
attr_accessor :deferral_context
|
|
2232
|
+
|
|
2233
|
+
def initialize(**args)
|
|
2234
|
+
update!(**args)
|
|
2235
|
+
end
|
|
2236
|
+
|
|
2237
|
+
# Update properties of this object
|
|
2238
|
+
def update!(**args)
|
|
2239
|
+
@deferral_context = args[:deferral_context] if args.key?(:deferral_context)
|
|
2240
|
+
end
|
|
2241
|
+
end
|
|
2242
|
+
|
|
2243
|
+
# Response for the v2 purchases.subscriptions.defer API.
|
|
2244
|
+
class DeferSubscriptionPurchaseResponse
|
|
2245
|
+
include Google::Apis::Core::Hashable
|
|
2246
|
+
|
|
2247
|
+
# The new expiry time for each subscription items.
|
|
2248
|
+
# Corresponds to the JSON property `itemExpiryTimeDetails`
|
|
2249
|
+
# @return [Array<Google::Apis::AndroidpublisherV3::ItemExpiryTimeDetails>]
|
|
2250
|
+
attr_accessor :item_expiry_time_details
|
|
2251
|
+
|
|
2252
|
+
def initialize(**args)
|
|
2253
|
+
update!(**args)
|
|
2254
|
+
end
|
|
2255
|
+
|
|
2256
|
+
# Update properties of this object
|
|
2257
|
+
def update!(**args)
|
|
2258
|
+
@item_expiry_time_details = args[:item_expiry_time_details] if args.key?(:item_expiry_time_details)
|
|
2259
|
+
end
|
|
2260
|
+
end
|
|
2261
|
+
|
|
2262
|
+
# Deferral context of the purchases.subscriptionsv2.defer API.
|
|
2263
|
+
class DeferralContext
|
|
2264
|
+
include Google::Apis::Core::Hashable
|
|
2265
|
+
|
|
2266
|
+
# Required. The duration by which all subscription items should be deferred.
|
|
2267
|
+
# Corresponds to the JSON property `deferDuration`
|
|
2268
|
+
# @return [String]
|
|
2269
|
+
attr_accessor :defer_duration
|
|
2270
|
+
|
|
2271
|
+
# Required. The API will fail if the etag does not match the latest etag for
|
|
2272
|
+
# this subscription. The etag is retrieved from purchases.subscriptionsv2.get:
|
|
2273
|
+
# https://developers.google.com/android-publisher/api-ref/rest/v3/purchases.
|
|
2274
|
+
# subscriptionsv2/get
|
|
2275
|
+
# Corresponds to the JSON property `etag`
|
|
2276
|
+
# @return [String]
|
|
2277
|
+
attr_accessor :etag
|
|
2278
|
+
|
|
2279
|
+
# If set to "true", the request is a dry run to validate the effect of Defer,
|
|
2280
|
+
# the subscription would not be impacted.
|
|
2281
|
+
# Corresponds to the JSON property `validateOnly`
|
|
2282
|
+
# @return [Boolean]
|
|
2283
|
+
attr_accessor :validate_only
|
|
2284
|
+
alias_method :validate_only?, :validate_only
|
|
2285
|
+
|
|
2286
|
+
def initialize(**args)
|
|
2287
|
+
update!(**args)
|
|
2288
|
+
end
|
|
2289
|
+
|
|
2290
|
+
# Update properties of this object
|
|
2291
|
+
def update!(**args)
|
|
2292
|
+
@defer_duration = args[:defer_duration] if args.key?(:defer_duration)
|
|
2293
|
+
@etag = args[:etag] if args.key?(:etag)
|
|
2294
|
+
@validate_only = args[:validate_only] if args.key?(:validate_only)
|
|
2295
|
+
end
|
|
2296
|
+
end
|
|
2297
|
+
|
|
2211
2298
|
# Information related to deferred item replacement.
|
|
2212
2299
|
class DeferredItemRemoval
|
|
2213
2300
|
include Google::Apis::Core::Hashable
|
|
@@ -3336,6 +3423,19 @@ module Google
|
|
|
3336
3423
|
end
|
|
3337
3424
|
end
|
|
3338
3425
|
|
|
3426
|
+
# Details about free trial offer phase.
|
|
3427
|
+
class FreeTrialOfferPhase
|
|
3428
|
+
include Google::Apis::Core::Hashable
|
|
3429
|
+
|
|
3430
|
+
def initialize(**args)
|
|
3431
|
+
update!(**args)
|
|
3432
|
+
end
|
|
3433
|
+
|
|
3434
|
+
# Update properties of this object
|
|
3435
|
+
def update!(**args)
|
|
3436
|
+
end
|
|
3437
|
+
end
|
|
3438
|
+
|
|
3339
3439
|
# A full refund of the remaining amount of a transaction.
|
|
3340
3440
|
class FullRefund
|
|
3341
3441
|
include Google::Apis::Core::Hashable
|
|
@@ -4339,6 +4439,44 @@ module Google
|
|
|
4339
4439
|
end
|
|
4340
4440
|
end
|
|
4341
4441
|
|
|
4442
|
+
# Details about introductory price offer phase.
|
|
4443
|
+
class IntroductoryPriceOfferPhase
|
|
4444
|
+
include Google::Apis::Core::Hashable
|
|
4445
|
+
|
|
4446
|
+
def initialize(**args)
|
|
4447
|
+
update!(**args)
|
|
4448
|
+
end
|
|
4449
|
+
|
|
4450
|
+
# Update properties of this object
|
|
4451
|
+
def update!(**args)
|
|
4452
|
+
end
|
|
4453
|
+
end
|
|
4454
|
+
|
|
4455
|
+
# Expiry time details of a subscription item.
|
|
4456
|
+
class ItemExpiryTimeDetails
|
|
4457
|
+
include Google::Apis::Core::Hashable
|
|
4458
|
+
|
|
4459
|
+
# The new expiry time for this subscription item.
|
|
4460
|
+
# Corresponds to the JSON property `expiryTime`
|
|
4461
|
+
# @return [String]
|
|
4462
|
+
attr_accessor :expiry_time
|
|
4463
|
+
|
|
4464
|
+
# The product ID of the subscription item (for example, 'premium_plan').
|
|
4465
|
+
# Corresponds to the JSON property `productId`
|
|
4466
|
+
# @return [String]
|
|
4467
|
+
attr_accessor :product_id
|
|
4468
|
+
|
|
4469
|
+
def initialize(**args)
|
|
4470
|
+
update!(**args)
|
|
4471
|
+
end
|
|
4472
|
+
|
|
4473
|
+
# Update properties of this object
|
|
4474
|
+
def update!(**args)
|
|
4475
|
+
@expiry_time = args[:expiry_time] if args.key?(:expiry_time)
|
|
4476
|
+
@product_id = args[:product_id] if args.key?(:product_id)
|
|
4477
|
+
end
|
|
4478
|
+
end
|
|
4479
|
+
|
|
4342
4480
|
# Details about a subscription line item that is being replaced.
|
|
4343
4481
|
class ItemReplacement
|
|
4344
4482
|
include Google::Apis::Core::Hashable
|
|
@@ -5042,6 +5180,43 @@ module Google
|
|
|
5042
5180
|
end
|
|
5043
5181
|
end
|
|
5044
5182
|
|
|
5183
|
+
# Offer phase details.
|
|
5184
|
+
class OfferPhase
|
|
5185
|
+
include Google::Apis::Core::Hashable
|
|
5186
|
+
|
|
5187
|
+
# Details about base price offer phase.
|
|
5188
|
+
# Corresponds to the JSON property `basePrice`
|
|
5189
|
+
# @return [Google::Apis::AndroidpublisherV3::BasePriceOfferPhase]
|
|
5190
|
+
attr_accessor :base_price
|
|
5191
|
+
|
|
5192
|
+
# Details about free trial offer phase.
|
|
5193
|
+
# Corresponds to the JSON property `freeTrial`
|
|
5194
|
+
# @return [Google::Apis::AndroidpublisherV3::FreeTrialOfferPhase]
|
|
5195
|
+
attr_accessor :free_trial
|
|
5196
|
+
|
|
5197
|
+
# Details about introductory price offer phase.
|
|
5198
|
+
# Corresponds to the JSON property `introductoryPrice`
|
|
5199
|
+
# @return [Google::Apis::AndroidpublisherV3::IntroductoryPriceOfferPhase]
|
|
5200
|
+
attr_accessor :introductory_price
|
|
5201
|
+
|
|
5202
|
+
# Details about proration period offer phase.
|
|
5203
|
+
# Corresponds to the JSON property `prorationPeriod`
|
|
5204
|
+
# @return [Google::Apis::AndroidpublisherV3::ProrationPeriodOfferPhase]
|
|
5205
|
+
attr_accessor :proration_period
|
|
5206
|
+
|
|
5207
|
+
def initialize(**args)
|
|
5208
|
+
update!(**args)
|
|
5209
|
+
end
|
|
5210
|
+
|
|
5211
|
+
# Update properties of this object
|
|
5212
|
+
def update!(**args)
|
|
5213
|
+
@base_price = args[:base_price] if args.key?(:base_price)
|
|
5214
|
+
@free_trial = args[:free_trial] if args.key?(:free_trial)
|
|
5215
|
+
@introductory_price = args[:introductory_price] if args.key?(:introductory_price)
|
|
5216
|
+
@proration_period = args[:proration_period] if args.key?(:proration_period)
|
|
5217
|
+
end
|
|
5218
|
+
end
|
|
5219
|
+
|
|
5045
5220
|
# Details of a pricing phase for the entitlement period funded by this order.
|
|
5046
5221
|
class OfferPhaseDetails
|
|
5047
5222
|
include Google::Apis::Core::Hashable
|
|
@@ -6792,6 +6967,26 @@ module Google
|
|
|
6792
6967
|
end
|
|
6793
6968
|
end
|
|
6794
6969
|
|
|
6970
|
+
# Details about proration period offer phase.
|
|
6971
|
+
class ProrationPeriodOfferPhase
|
|
6972
|
+
include Google::Apis::Core::Hashable
|
|
6973
|
+
|
|
6974
|
+
# The original offer phase type before the proration period. Only set when the
|
|
6975
|
+
# proration period is updated from an existing offer phase.
|
|
6976
|
+
# Corresponds to the JSON property `originalOfferPhaseType`
|
|
6977
|
+
# @return [String]
|
|
6978
|
+
attr_accessor :original_offer_phase_type
|
|
6979
|
+
|
|
6980
|
+
def initialize(**args)
|
|
6981
|
+
update!(**args)
|
|
6982
|
+
end
|
|
6983
|
+
|
|
6984
|
+
# Update properties of this object
|
|
6985
|
+
def update!(**args)
|
|
6986
|
+
@original_offer_phase_type = args[:original_offer_phase_type] if args.key?(:original_offer_phase_type)
|
|
6987
|
+
end
|
|
6988
|
+
end
|
|
6989
|
+
|
|
6795
6990
|
# Details about taxation, Google Play policy and legal compliance for one-time
|
|
6796
6991
|
# product purchase options.
|
|
6797
6992
|
class PurchaseOptionTaxAndComplianceSettings
|
|
@@ -8686,6 +8881,11 @@ module Google
|
|
|
8686
8881
|
# @return [Google::Apis::AndroidpublisherV3::OfferDetails]
|
|
8687
8882
|
attr_accessor :offer_details
|
|
8688
8883
|
|
|
8884
|
+
# Offer phase details.
|
|
8885
|
+
# Corresponds to the JSON property `offerPhase`
|
|
8886
|
+
# @return [Google::Apis::AndroidpublisherV3::OfferPhase]
|
|
8887
|
+
attr_accessor :offer_phase
|
|
8888
|
+
|
|
8689
8889
|
# Information related to a prepaid plan.
|
|
8690
8890
|
# Corresponds to the JSON property `prepaidPlan`
|
|
8691
8891
|
# @return [Google::Apis::AndroidpublisherV3::PrepaidPlan]
|
|
@@ -8714,6 +8914,7 @@ module Google
|
|
|
8714
8914
|
@item_replacement = args[:item_replacement] if args.key?(:item_replacement)
|
|
8715
8915
|
@latest_successful_order_id = args[:latest_successful_order_id] if args.key?(:latest_successful_order_id)
|
|
8716
8916
|
@offer_details = args[:offer_details] if args.key?(:offer_details)
|
|
8917
|
+
@offer_phase = args[:offer_phase] if args.key?(:offer_phase)
|
|
8717
8918
|
@prepaid_plan = args[:prepaid_plan] if args.key?(:prepaid_plan)
|
|
8718
8919
|
@product_id = args[:product_id] if args.key?(:product_id)
|
|
8719
8920
|
@signup_promotion = args[:signup_promotion] if args.key?(:signup_promotion)
|
|
@@ -8735,6 +8936,13 @@ module Google
|
|
|
8735
8936
|
# @return [Google::Apis::AndroidpublisherV3::CanceledStateContext]
|
|
8736
8937
|
attr_accessor :canceled_state_context
|
|
8737
8938
|
|
|
8939
|
+
# Entity tag representing the current state of the subscription. The developer
|
|
8940
|
+
# will provide this etag for subscription actions. This etag is always present
|
|
8941
|
+
# for auto-renewing and prepaid subscriptions.
|
|
8942
|
+
# Corresponds to the JSON property `etag`
|
|
8943
|
+
# @return [String]
|
|
8944
|
+
attr_accessor :etag
|
|
8945
|
+
|
|
8738
8946
|
# User account identifier in the third-party service.
|
|
8739
8947
|
# Corresponds to the JSON property `externalAccountIdentifiers`
|
|
8740
8948
|
# @return [Google::Apis::AndroidpublisherV3::ExternalAccountIdentifiers]
|
|
@@ -8816,6 +9024,7 @@ module Google
|
|
|
8816
9024
|
def update!(**args)
|
|
8817
9025
|
@acknowledgement_state = args[:acknowledgement_state] if args.key?(:acknowledgement_state)
|
|
8818
9026
|
@canceled_state_context = args[:canceled_state_context] if args.key?(:canceled_state_context)
|
|
9027
|
+
@etag = args[:etag] if args.key?(:etag)
|
|
8819
9028
|
@external_account_identifiers = args[:external_account_identifiers] if args.key?(:external_account_identifiers)
|
|
8820
9029
|
@kind = args[:kind] if args.key?(:kind)
|
|
8821
9030
|
@latest_order_id = args[:latest_order_id] if args.key?(:latest_order_id)
|
|
@@ -9561,11 +9770,12 @@ module Google
|
|
|
9561
9770
|
end
|
|
9562
9771
|
end
|
|
9563
9772
|
|
|
9564
|
-
# Representation of a single country where the contents of a track
|
|
9773
|
+
# Representation of a single country where the contents of a track can be made
|
|
9774
|
+
# available.
|
|
9565
9775
|
class TrackTargetedCountry
|
|
9566
9776
|
include Google::Apis::Core::Hashable
|
|
9567
9777
|
|
|
9568
|
-
# The country
|
|
9778
|
+
# The country that can be targeted, as a two-letter CLDR code.
|
|
9569
9779
|
# Corresponds to the JSON property `countryCode`
|
|
9570
9780
|
# @return [String]
|
|
9571
9781
|
attr_accessor :country_code
|
|
@@ -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.95.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
22
|
GENERATOR_VERSION = "0.18.0"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20260129"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -208,6 +208,12 @@ module Google
|
|
|
208
208
|
include Google::Apis::Core::JsonObjectSupport
|
|
209
209
|
end
|
|
210
210
|
|
|
211
|
+
class BasePriceOfferPhase
|
|
212
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
213
|
+
|
|
214
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
215
|
+
end
|
|
216
|
+
|
|
211
217
|
class BatchDeleteOneTimeProductOffersRequest
|
|
212
218
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
213
219
|
|
|
@@ -514,6 +520,24 @@ module Google
|
|
|
514
520
|
include Google::Apis::Core::JsonObjectSupport
|
|
515
521
|
end
|
|
516
522
|
|
|
523
|
+
class DeferSubscriptionPurchaseRequest
|
|
524
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
525
|
+
|
|
526
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
527
|
+
end
|
|
528
|
+
|
|
529
|
+
class DeferSubscriptionPurchaseResponse
|
|
530
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
531
|
+
|
|
532
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
533
|
+
end
|
|
534
|
+
|
|
535
|
+
class DeferralContext
|
|
536
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
537
|
+
|
|
538
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
539
|
+
end
|
|
540
|
+
|
|
517
541
|
class DeferredItemRemoval
|
|
518
542
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
519
543
|
|
|
@@ -712,6 +736,12 @@ module Google
|
|
|
712
736
|
include Google::Apis::Core::JsonObjectSupport
|
|
713
737
|
end
|
|
714
738
|
|
|
739
|
+
class FreeTrialOfferPhase
|
|
740
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
741
|
+
|
|
742
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
743
|
+
end
|
|
744
|
+
|
|
715
745
|
class FullRefund
|
|
716
746
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
717
747
|
|
|
@@ -886,6 +916,18 @@ module Google
|
|
|
886
916
|
include Google::Apis::Core::JsonObjectSupport
|
|
887
917
|
end
|
|
888
918
|
|
|
919
|
+
class IntroductoryPriceOfferPhase
|
|
920
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
921
|
+
|
|
922
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
923
|
+
end
|
|
924
|
+
|
|
925
|
+
class ItemExpiryTimeDetails
|
|
926
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
927
|
+
|
|
928
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
929
|
+
end
|
|
930
|
+
|
|
889
931
|
class ItemReplacement
|
|
890
932
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
891
933
|
|
|
@@ -1018,6 +1060,12 @@ module Google
|
|
|
1018
1060
|
include Google::Apis::Core::JsonObjectSupport
|
|
1019
1061
|
end
|
|
1020
1062
|
|
|
1063
|
+
class OfferPhase
|
|
1064
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
1065
|
+
|
|
1066
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
1067
|
+
end
|
|
1068
|
+
|
|
1021
1069
|
class OfferPhaseDetails
|
|
1022
1070
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
1023
1071
|
|
|
@@ -1306,6 +1354,12 @@ module Google
|
|
|
1306
1354
|
include Google::Apis::Core::JsonObjectSupport
|
|
1307
1355
|
end
|
|
1308
1356
|
|
|
1357
|
+
class ProrationPeriodOfferPhase
|
|
1358
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
1359
|
+
|
|
1360
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
1361
|
+
end
|
|
1362
|
+
|
|
1309
1363
|
class PurchaseOptionTaxAndComplianceSettings
|
|
1310
1364
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
1311
1365
|
|
|
@@ -2251,6 +2305,12 @@ module Google
|
|
|
2251
2305
|
end
|
|
2252
2306
|
end
|
|
2253
2307
|
|
|
2308
|
+
class BasePriceOfferPhase
|
|
2309
|
+
# @private
|
|
2310
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
2311
|
+
end
|
|
2312
|
+
end
|
|
2313
|
+
|
|
2254
2314
|
class BatchDeleteOneTimeProductOffersRequest
|
|
2255
2315
|
# @private
|
|
2256
2316
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -2686,6 +2746,31 @@ module Google
|
|
|
2686
2746
|
end
|
|
2687
2747
|
end
|
|
2688
2748
|
|
|
2749
|
+
class DeferSubscriptionPurchaseRequest
|
|
2750
|
+
# @private
|
|
2751
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
2752
|
+
property :deferral_context, as: 'deferralContext', class: Google::Apis::AndroidpublisherV3::DeferralContext, decorator: Google::Apis::AndroidpublisherV3::DeferralContext::Representation
|
|
2753
|
+
|
|
2754
|
+
end
|
|
2755
|
+
end
|
|
2756
|
+
|
|
2757
|
+
class DeferSubscriptionPurchaseResponse
|
|
2758
|
+
# @private
|
|
2759
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
2760
|
+
collection :item_expiry_time_details, as: 'itemExpiryTimeDetails', class: Google::Apis::AndroidpublisherV3::ItemExpiryTimeDetails, decorator: Google::Apis::AndroidpublisherV3::ItemExpiryTimeDetails::Representation
|
|
2761
|
+
|
|
2762
|
+
end
|
|
2763
|
+
end
|
|
2764
|
+
|
|
2765
|
+
class DeferralContext
|
|
2766
|
+
# @private
|
|
2767
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
2768
|
+
property :defer_duration, as: 'deferDuration'
|
|
2769
|
+
property :etag, as: 'etag'
|
|
2770
|
+
property :validate_only, as: 'validateOnly'
|
|
2771
|
+
end
|
|
2772
|
+
end
|
|
2773
|
+
|
|
2689
2774
|
class DeferredItemRemoval
|
|
2690
2775
|
# @private
|
|
2691
2776
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -3008,6 +3093,12 @@ module Google
|
|
|
3008
3093
|
end
|
|
3009
3094
|
end
|
|
3010
3095
|
|
|
3096
|
+
class FreeTrialOfferPhase
|
|
3097
|
+
# @private
|
|
3098
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
3099
|
+
end
|
|
3100
|
+
end
|
|
3101
|
+
|
|
3011
3102
|
class FullRefund
|
|
3012
3103
|
# @private
|
|
3013
3104
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -3298,6 +3389,20 @@ module Google
|
|
|
3298
3389
|
end
|
|
3299
3390
|
end
|
|
3300
3391
|
|
|
3392
|
+
class IntroductoryPriceOfferPhase
|
|
3393
|
+
# @private
|
|
3394
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
3395
|
+
end
|
|
3396
|
+
end
|
|
3397
|
+
|
|
3398
|
+
class ItemExpiryTimeDetails
|
|
3399
|
+
# @private
|
|
3400
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
3401
|
+
property :expiry_time, as: 'expiryTime'
|
|
3402
|
+
property :product_id, as: 'productId'
|
|
3403
|
+
end
|
|
3404
|
+
end
|
|
3405
|
+
|
|
3301
3406
|
class ItemReplacement
|
|
3302
3407
|
# @private
|
|
3303
3408
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -3519,6 +3624,20 @@ module Google
|
|
|
3519
3624
|
end
|
|
3520
3625
|
end
|
|
3521
3626
|
|
|
3627
|
+
class OfferPhase
|
|
3628
|
+
# @private
|
|
3629
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
3630
|
+
property :base_price, as: 'basePrice', class: Google::Apis::AndroidpublisherV3::BasePriceOfferPhase, decorator: Google::Apis::AndroidpublisherV3::BasePriceOfferPhase::Representation
|
|
3631
|
+
|
|
3632
|
+
property :free_trial, as: 'freeTrial', class: Google::Apis::AndroidpublisherV3::FreeTrialOfferPhase, decorator: Google::Apis::AndroidpublisherV3::FreeTrialOfferPhase::Representation
|
|
3633
|
+
|
|
3634
|
+
property :introductory_price, as: 'introductoryPrice', class: Google::Apis::AndroidpublisherV3::IntroductoryPriceOfferPhase, decorator: Google::Apis::AndroidpublisherV3::IntroductoryPriceOfferPhase::Representation
|
|
3635
|
+
|
|
3636
|
+
property :proration_period, as: 'prorationPeriod', class: Google::Apis::AndroidpublisherV3::ProrationPeriodOfferPhase, decorator: Google::Apis::AndroidpublisherV3::ProrationPeriodOfferPhase::Representation
|
|
3637
|
+
|
|
3638
|
+
end
|
|
3639
|
+
end
|
|
3640
|
+
|
|
3522
3641
|
class OfferPhaseDetails
|
|
3523
3642
|
# @private
|
|
3524
3643
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -4026,6 +4145,13 @@ module Google
|
|
|
4026
4145
|
end
|
|
4027
4146
|
end
|
|
4028
4147
|
|
|
4148
|
+
class ProrationPeriodOfferPhase
|
|
4149
|
+
# @private
|
|
4150
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
4151
|
+
property :original_offer_phase_type, as: 'originalOfferPhaseType'
|
|
4152
|
+
end
|
|
4153
|
+
end
|
|
4154
|
+
|
|
4029
4155
|
class PurchaseOptionTaxAndComplianceSettings
|
|
4030
4156
|
# @private
|
|
4031
4157
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -4579,6 +4705,8 @@ module Google
|
|
|
4579
4705
|
property :latest_successful_order_id, as: 'latestSuccessfulOrderId'
|
|
4580
4706
|
property :offer_details, as: 'offerDetails', class: Google::Apis::AndroidpublisherV3::OfferDetails, decorator: Google::Apis::AndroidpublisherV3::OfferDetails::Representation
|
|
4581
4707
|
|
|
4708
|
+
property :offer_phase, as: 'offerPhase', class: Google::Apis::AndroidpublisherV3::OfferPhase, decorator: Google::Apis::AndroidpublisherV3::OfferPhase::Representation
|
|
4709
|
+
|
|
4582
4710
|
property :prepaid_plan, as: 'prepaidPlan', class: Google::Apis::AndroidpublisherV3::PrepaidPlan, decorator: Google::Apis::AndroidpublisherV3::PrepaidPlan::Representation
|
|
4583
4711
|
|
|
4584
4712
|
property :product_id, as: 'productId'
|
|
@@ -4593,6 +4721,7 @@ module Google
|
|
|
4593
4721
|
property :acknowledgement_state, as: 'acknowledgementState'
|
|
4594
4722
|
property :canceled_state_context, as: 'canceledStateContext', class: Google::Apis::AndroidpublisherV3::CanceledStateContext, decorator: Google::Apis::AndroidpublisherV3::CanceledStateContext::Representation
|
|
4595
4723
|
|
|
4724
|
+
property :etag, as: 'etag'
|
|
4596
4725
|
property :external_account_identifiers, as: 'externalAccountIdentifiers', class: Google::Apis::AndroidpublisherV3::ExternalAccountIdentifiers, decorator: Google::Apis::AndroidpublisherV3::ExternalAccountIdentifiers::Representation
|
|
4597
4726
|
|
|
4598
4727
|
property :kind, as: 'kind'
|
|
@@ -4861,6 +4861,44 @@ module Google
|
|
|
4861
4861
|
execute_or_queue_command(command, &block)
|
|
4862
4862
|
end
|
|
4863
4863
|
|
|
4864
|
+
# Defers the renewal of a subscription.
|
|
4865
|
+
# @param [String] package_name
|
|
4866
|
+
# Required. The package of the application for which this subscription was
|
|
4867
|
+
# purchased (for example, 'com.some.thing').
|
|
4868
|
+
# @param [String] token
|
|
4869
|
+
# Required. The token provided to the user's device when the subscription was
|
|
4870
|
+
# purchased.
|
|
4871
|
+
# @param [Google::Apis::AndroidpublisherV3::DeferSubscriptionPurchaseRequest] defer_subscription_purchase_request_object
|
|
4872
|
+
# @param [String] fields
|
|
4873
|
+
# Selector specifying which fields to include in a partial response.
|
|
4874
|
+
# @param [String] quota_user
|
|
4875
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
4876
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
4877
|
+
# @param [Google::Apis::RequestOptions] options
|
|
4878
|
+
# Request-specific options
|
|
4879
|
+
#
|
|
4880
|
+
# @yield [result, err] Result & error if block supplied
|
|
4881
|
+
# @yieldparam result [Google::Apis::AndroidpublisherV3::DeferSubscriptionPurchaseResponse] parsed result object
|
|
4882
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
4883
|
+
#
|
|
4884
|
+
# @return [Google::Apis::AndroidpublisherV3::DeferSubscriptionPurchaseResponse]
|
|
4885
|
+
#
|
|
4886
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
4887
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
4888
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
4889
|
+
def defer_subscriptionsv2_subscription_purchase(package_name, token, defer_subscription_purchase_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
4890
|
+
command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/purchases/subscriptionsv2/tokens/{token}:defer', options)
|
|
4891
|
+
command.request_representation = Google::Apis::AndroidpublisherV3::DeferSubscriptionPurchaseRequest::Representation
|
|
4892
|
+
command.request_object = defer_subscription_purchase_request_object
|
|
4893
|
+
command.response_representation = Google::Apis::AndroidpublisherV3::DeferSubscriptionPurchaseResponse::Representation
|
|
4894
|
+
command.response_class = Google::Apis::AndroidpublisherV3::DeferSubscriptionPurchaseResponse
|
|
4895
|
+
command.params['packageName'] = package_name unless package_name.nil?
|
|
4896
|
+
command.params['token'] = token unless token.nil?
|
|
4897
|
+
command.query['fields'] = fields unless fields.nil?
|
|
4898
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
4899
|
+
execute_or_queue_command(command, &block)
|
|
4900
|
+
end
|
|
4901
|
+
|
|
4864
4902
|
# Get metadata about a subscription
|
|
4865
4903
|
# @param [String] package_name
|
|
4866
4904
|
# The package of the application for which this subscription was purchased (for
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-apis-androidpublisher_v3
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.95.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -57,7 +57,7 @@ licenses:
|
|
|
57
57
|
metadata:
|
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-androidpublisher_v3/CHANGELOG.md
|
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-androidpublisher_v3/v0.
|
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-androidpublisher_v3/v0.95.0
|
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-androidpublisher_v3
|
|
62
62
|
rdoc_options: []
|
|
63
63
|
require_paths:
|