google-apis-androidpublisher_v3 0.1.0 → 0.33.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -22,6 +22,52 @@ module Google
22
22
  module Apis
23
23
  module AndroidpublisherV3
24
24
 
25
+ # Represents a targeting rule of the form: User never had `scope` before.
26
+ class AcquisitionTargetingRule
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # Defines the scope of subscriptions which a targeting rule can match to target
30
+ # offers to users based on past or current entitlement.
31
+ # Corresponds to the JSON property `scope`
32
+ # @return [Google::Apis::AndroidpublisherV3::TargetingRuleScope]
33
+ attr_accessor :scope
34
+
35
+ def initialize(**args)
36
+ update!(**args)
37
+ end
38
+
39
+ # Update properties of this object
40
+ def update!(**args)
41
+ @scope = args[:scope] if args.key?(:scope)
42
+ end
43
+ end
44
+
45
+ # Request message for ActivateBasePlan.
46
+ class ActivateBasePlanRequest
47
+ include Google::Apis::Core::Hashable
48
+
49
+ def initialize(**args)
50
+ update!(**args)
51
+ end
52
+
53
+ # Update properties of this object
54
+ def update!(**args)
55
+ end
56
+ end
57
+
58
+ # Request message for ActivateSubscriptionOffer.
59
+ class ActivateSubscriptionOfferRequest
60
+ include Google::Apis::Core::Hashable
61
+
62
+ def initialize(**args)
63
+ update!(**args)
64
+ end
65
+
66
+ # Update properties of this object
67
+ def update!(**args)
68
+ end
69
+ end
70
+
25
71
  # Information about an APK. The resource for ApksService.
26
72
  class Apk
27
73
  include Google::Apis::Core::Hashable
@@ -206,7 +252,177 @@ module Google
206
252
  end
207
253
  end
208
254
 
209
- # Information about a bundle. The resource for BundlesService.
255
+ # Request message for ArchiveSubscription.
256
+ class ArchiveSubscriptionRequest
257
+ include Google::Apis::Core::Hashable
258
+
259
+ def initialize(**args)
260
+ update!(**args)
261
+ end
262
+
263
+ # Update properties of this object
264
+ def update!(**args)
265
+ end
266
+ end
267
+
268
+ # Represents a base plan that automatically renews at the end of its
269
+ # subscription period.
270
+ class AutoRenewingBasePlanType
271
+ include Google::Apis::Core::Hashable
272
+
273
+ # Required. Subscription period, specified in ISO 8601 format. For a list of
274
+ # acceptable billing periods, refer to the help center.
275
+ # Corresponds to the JSON property `billingPeriodDuration`
276
+ # @return [String]
277
+ attr_accessor :billing_period_duration
278
+
279
+ # Grace period of the subscription, specified in ISO 8601 format. Acceptable
280
+ # values are P0D (zero days), P3D (3 days), P7D (7 days), P14D (14 days), and
281
+ # P30D (30 days). If not specified, a default value will be used based on the
282
+ # recurring period duration.
283
+ # Corresponds to the JSON property `gracePeriodDuration`
284
+ # @return [String]
285
+ attr_accessor :grace_period_duration
286
+
287
+ # Whether the renewing base plan is backward compatible. The backward compatible
288
+ # base plan is returned by the Google Play Billing Library deprecated method
289
+ # querySkuDetailsAsync(). Only one renewing base plan can be marked as legacy
290
+ # compatible for a given subscription.
291
+ # Corresponds to the JSON property `legacyCompatible`
292
+ # @return [Boolean]
293
+ attr_accessor :legacy_compatible
294
+ alias_method :legacy_compatible?, :legacy_compatible
295
+
296
+ # Subscription offer id which is legacy compatible. The backward compatible
297
+ # subscription offer is returned by the Google Play Billing Library deprecated
298
+ # method querySkuDetailsAsync(). Only one subscription offer can be marked as
299
+ # legacy compatible for a given renewing base plan. To have no Subscription
300
+ # offer as legacy compatible set this field as empty string.
301
+ # Corresponds to the JSON property `legacyCompatibleSubscriptionOfferId`
302
+ # @return [String]
303
+ attr_accessor :legacy_compatible_subscription_offer_id
304
+
305
+ # The proration mode for the base plan determines what happens when a user
306
+ # switches to this plan from another base plan. If unspecified, defaults to
307
+ # CHARGE_ON_NEXT_BILLING_DATE.
308
+ # Corresponds to the JSON property `prorationMode`
309
+ # @return [String]
310
+ attr_accessor :proration_mode
311
+
312
+ # Whether users should be able to resubscribe to this base plan in Google Play
313
+ # surfaces. Defaults to RESUBSCRIBE_STATE_ACTIVE if not specified.
314
+ # Corresponds to the JSON property `resubscribeState`
315
+ # @return [String]
316
+ attr_accessor :resubscribe_state
317
+
318
+ def initialize(**args)
319
+ update!(**args)
320
+ end
321
+
322
+ # Update properties of this object
323
+ def update!(**args)
324
+ @billing_period_duration = args[:billing_period_duration] if args.key?(:billing_period_duration)
325
+ @grace_period_duration = args[:grace_period_duration] if args.key?(:grace_period_duration)
326
+ @legacy_compatible = args[:legacy_compatible] if args.key?(:legacy_compatible)
327
+ @legacy_compatible_subscription_offer_id = args[:legacy_compatible_subscription_offer_id] if args.key?(:legacy_compatible_subscription_offer_id)
328
+ @proration_mode = args[:proration_mode] if args.key?(:proration_mode)
329
+ @resubscribe_state = args[:resubscribe_state] if args.key?(:resubscribe_state)
330
+ end
331
+ end
332
+
333
+ # Information related to an auto renewing plan.
334
+ class AutoRenewingPlan
335
+ include Google::Apis::Core::Hashable
336
+
337
+ # If the subscription is currently set to auto-renew, e.g. the user has not
338
+ # canceled the subscription
339
+ # Corresponds to the JSON property `autoRenewEnabled`
340
+ # @return [Boolean]
341
+ attr_accessor :auto_renew_enabled
342
+ alias_method :auto_renew_enabled?, :auto_renew_enabled
343
+
344
+ # Price change related information of a subscription item.
345
+ # Corresponds to the JSON property `priceChangeDetails`
346
+ # @return [Google::Apis::AndroidpublisherV3::SubscriptionItemPriceChangeDetails]
347
+ attr_accessor :price_change_details
348
+
349
+ def initialize(**args)
350
+ update!(**args)
351
+ end
352
+
353
+ # Update properties of this object
354
+ def update!(**args)
355
+ @auto_renew_enabled = args[:auto_renew_enabled] if args.key?(:auto_renew_enabled)
356
+ @price_change_details = args[:price_change_details] if args.key?(:price_change_details)
357
+ end
358
+ end
359
+
360
+ # A single base plan for a subscription.
361
+ class BasePlan
362
+ include Google::Apis::Core::Hashable
363
+
364
+ # Represents a base plan that automatically renews at the end of its
365
+ # subscription period.
366
+ # Corresponds to the JSON property `autoRenewingBasePlanType`
367
+ # @return [Google::Apis::AndroidpublisherV3::AutoRenewingBasePlanType]
368
+ attr_accessor :auto_renewing_base_plan_type
369
+
370
+ # Required. Immutable. The unique identifier of this base plan. Must be unique
371
+ # within the subscription, and conform with RFC-1034. That is, this ID can only
372
+ # contain lower-case letters (a-z), numbers (0-9), and hyphens (-), and be at
373
+ # most 63 characters.
374
+ # Corresponds to the JSON property `basePlanId`
375
+ # @return [String]
376
+ attr_accessor :base_plan_id
377
+
378
+ # List of up to 20 custom tags specified for this base plan, and returned to the
379
+ # app through the billing library. Subscription offers for this base plan will
380
+ # also receive these offer tags in the billing library.
381
+ # Corresponds to the JSON property `offerTags`
382
+ # @return [Array<Google::Apis::AndroidpublisherV3::OfferTag>]
383
+ attr_accessor :offer_tags
384
+
385
+ # Pricing information for any new locations Play may launch in.
386
+ # Corresponds to the JSON property `otherRegionsConfig`
387
+ # @return [Google::Apis::AndroidpublisherV3::OtherRegionsBasePlanConfig]
388
+ attr_accessor :other_regions_config
389
+
390
+ # Represents a base plan that does not automatically renew at the end of the
391
+ # base plan, and must be manually renewed by the user.
392
+ # Corresponds to the JSON property `prepaidBasePlanType`
393
+ # @return [Google::Apis::AndroidpublisherV3::PrepaidBasePlanType]
394
+ attr_accessor :prepaid_base_plan_type
395
+
396
+ # Region-specific information for this base plan.
397
+ # Corresponds to the JSON property `regionalConfigs`
398
+ # @return [Array<Google::Apis::AndroidpublisherV3::RegionalBasePlanConfig>]
399
+ attr_accessor :regional_configs
400
+
401
+ # Output only. The state of the base plan, i.e. whether it's active. Draft and
402
+ # inactive base plans can be activated or deleted. Active base plans can be made
403
+ # inactive. Inactive base plans can be canceled. This field cannot be changed by
404
+ # updating the resource. Use the dedicated endpoints instead.
405
+ # Corresponds to the JSON property `state`
406
+ # @return [String]
407
+ attr_accessor :state
408
+
409
+ def initialize(**args)
410
+ update!(**args)
411
+ end
412
+
413
+ # Update properties of this object
414
+ def update!(**args)
415
+ @auto_renewing_base_plan_type = args[:auto_renewing_base_plan_type] if args.key?(:auto_renewing_base_plan_type)
416
+ @base_plan_id = args[:base_plan_id] if args.key?(:base_plan_id)
417
+ @offer_tags = args[:offer_tags] if args.key?(:offer_tags)
418
+ @other_regions_config = args[:other_regions_config] if args.key?(:other_regions_config)
419
+ @prepaid_base_plan_type = args[:prepaid_base_plan_type] if args.key?(:prepaid_base_plan_type)
420
+ @regional_configs = args[:regional_configs] if args.key?(:regional_configs)
421
+ @state = args[:state] if args.key?(:state)
422
+ end
423
+ end
424
+
425
+ # Information about an app bundle. The resource for BundlesService.
210
426
  class Bundle
211
427
  include Google::Apis::Core::Hashable
212
428
 
@@ -240,11 +456,11 @@ module Google
240
456
  end
241
457
  end
242
458
 
243
- # Response listing all bundles.
459
+ # Response listing all app bundles.
244
460
  class BundlesListResponse
245
461
  include Google::Apis::Core::Hashable
246
462
 
247
- # All bundles.
463
+ # All app bundles.
248
464
  # Corresponds to the JSON property `bundles`
249
465
  # @return [Array<Google::Apis::AndroidpublisherV3::Bundle>]
250
466
  attr_accessor :bundles
@@ -265,6 +481,69 @@ module Google
265
481
  end
266
482
  end
267
483
 
484
+ # Result of the cancel survey when the subscription was canceled by the user.
485
+ class CancelSurveyResult
486
+ include Google::Apis::Core::Hashable
487
+
488
+ # The reason the user selected in the cancel survey.
489
+ # Corresponds to the JSON property `reason`
490
+ # @return [String]
491
+ attr_accessor :reason
492
+
493
+ # Only set for CANCEL_SURVEY_REASON_OTHERS. This is the user's freeform response
494
+ # to the survey.
495
+ # Corresponds to the JSON property `reasonUserInput`
496
+ # @return [String]
497
+ attr_accessor :reason_user_input
498
+
499
+ def initialize(**args)
500
+ update!(**args)
501
+ end
502
+
503
+ # Update properties of this object
504
+ def update!(**args)
505
+ @reason = args[:reason] if args.key?(:reason)
506
+ @reason_user_input = args[:reason_user_input] if args.key?(:reason_user_input)
507
+ end
508
+ end
509
+
510
+ # Information specific to a subscription in canceled state.
511
+ class CanceledStateContext
512
+ include Google::Apis::Core::Hashable
513
+
514
+ # Information specific to cancellations initiated by developers.
515
+ # Corresponds to the JSON property `developerInitiatedCancellation`
516
+ # @return [Google::Apis::AndroidpublisherV3::DeveloperInitiatedCancellation]
517
+ attr_accessor :developer_initiated_cancellation
518
+
519
+ # Information specific to cancellations caused by subscription replacement.
520
+ # Corresponds to the JSON property `replacementCancellation`
521
+ # @return [Google::Apis::AndroidpublisherV3::ReplacementCancellation]
522
+ attr_accessor :replacement_cancellation
523
+
524
+ # Information specific to cancellations initiated by Google system.
525
+ # Corresponds to the JSON property `systemInitiatedCancellation`
526
+ # @return [Google::Apis::AndroidpublisherV3::SystemInitiatedCancellation]
527
+ attr_accessor :system_initiated_cancellation
528
+
529
+ # Information specific to cancellations initiated by users.
530
+ # Corresponds to the JSON property `userInitiatedCancellation`
531
+ # @return [Google::Apis::AndroidpublisherV3::UserInitiatedCancellation]
532
+ attr_accessor :user_initiated_cancellation
533
+
534
+ def initialize(**args)
535
+ update!(**args)
536
+ end
537
+
538
+ # Update properties of this object
539
+ def update!(**args)
540
+ @developer_initiated_cancellation = args[:developer_initiated_cancellation] if args.key?(:developer_initiated_cancellation)
541
+ @replacement_cancellation = args[:replacement_cancellation] if args.key?(:replacement_cancellation)
542
+ @system_initiated_cancellation = args[:system_initiated_cancellation] if args.key?(:system_initiated_cancellation)
543
+ @user_initiated_cancellation = args[:user_initiated_cancellation] if args.key?(:user_initiated_cancellation)
544
+ end
545
+ end
546
+
268
547
  # An entry of conversation between user and developer.
269
548
  class Comment
270
549
  include Google::Apis::Core::Hashable
@@ -290,6 +569,106 @@ module Google
290
569
  end
291
570
  end
292
571
 
572
+ # Request message for ConvertRegionPrices.
573
+ class ConvertRegionPricesRequest
574
+ include Google::Apis::Core::Hashable
575
+
576
+ # Represents an amount of money with its currency type.
577
+ # Corresponds to the JSON property `price`
578
+ # @return [Google::Apis::AndroidpublisherV3::Money]
579
+ attr_accessor :price
580
+
581
+ def initialize(**args)
582
+ update!(**args)
583
+ end
584
+
585
+ # Update properties of this object
586
+ def update!(**args)
587
+ @price = args[:price] if args.key?(:price)
588
+ end
589
+ end
590
+
591
+ # Response message for ConvertRegionPrices.
592
+ class ConvertRegionPricesResponse
593
+ include Google::Apis::Core::Hashable
594
+
595
+ # Converted other regions prices.
596
+ # Corresponds to the JSON property `convertedOtherRegionsPrice`
597
+ # @return [Google::Apis::AndroidpublisherV3::ConvertedOtherRegionsPrice]
598
+ attr_accessor :converted_other_regions_price
599
+
600
+ # Map from region code to converted region price.
601
+ # Corresponds to the JSON property `convertedRegionPrices`
602
+ # @return [Hash<String,Google::Apis::AndroidpublisherV3::ConvertedRegionPrice>]
603
+ attr_accessor :converted_region_prices
604
+
605
+ def initialize(**args)
606
+ update!(**args)
607
+ end
608
+
609
+ # Update properties of this object
610
+ def update!(**args)
611
+ @converted_other_regions_price = args[:converted_other_regions_price] if args.key?(:converted_other_regions_price)
612
+ @converted_region_prices = args[:converted_region_prices] if args.key?(:converted_region_prices)
613
+ end
614
+ end
615
+
616
+ # Converted other regions prices.
617
+ class ConvertedOtherRegionsPrice
618
+ include Google::Apis::Core::Hashable
619
+
620
+ # Represents an amount of money with its currency type.
621
+ # Corresponds to the JSON property `eurPrice`
622
+ # @return [Google::Apis::AndroidpublisherV3::Money]
623
+ attr_accessor :eur_price
624
+
625
+ # Represents an amount of money with its currency type.
626
+ # Corresponds to the JSON property `usdPrice`
627
+ # @return [Google::Apis::AndroidpublisherV3::Money]
628
+ attr_accessor :usd_price
629
+
630
+ def initialize(**args)
631
+ update!(**args)
632
+ end
633
+
634
+ # Update properties of this object
635
+ def update!(**args)
636
+ @eur_price = args[:eur_price] if args.key?(:eur_price)
637
+ @usd_price = args[:usd_price] if args.key?(:usd_price)
638
+ end
639
+ end
640
+
641
+ # A converted region price.
642
+ class ConvertedRegionPrice
643
+ include Google::Apis::Core::Hashable
644
+
645
+ # Represents an amount of money with its currency type.
646
+ # Corresponds to the JSON property `price`
647
+ # @return [Google::Apis::AndroidpublisherV3::Money]
648
+ attr_accessor :price
649
+
650
+ # The region code of the region.
651
+ # Corresponds to the JSON property `regionCode`
652
+ # @return [String]
653
+ attr_accessor :region_code
654
+
655
+ # Represents an amount of money with its currency type.
656
+ # Corresponds to the JSON property `taxAmount`
657
+ # @return [Google::Apis::AndroidpublisherV3::Money]
658
+ attr_accessor :tax_amount
659
+
660
+ def initialize(**args)
661
+ update!(**args)
662
+ end
663
+
664
+ # Update properties of this object
665
+ def update!(**args)
666
+ @price = args[:price] if args.key?(:price)
667
+ @region_code = args[:region_code] if args.key?(:region_code)
668
+ @tax_amount = args[:tax_amount] if args.key?(:tax_amount)
669
+ end
670
+ end
671
+
293
672
  # Country targeting specification.
294
673
  class CountryTargeting
295
674
  include Google::Apis::Core::Hashable
@@ -317,6 +696,32 @@ module Google
317
696
  end
318
697
  end
319
698
 
699
+ # Request message for DeactivateBasePlan.
700
+ class DeactivateBasePlanRequest
701
+ include Google::Apis::Core::Hashable
702
+
703
+ def initialize(**args)
704
+ update!(**args)
705
+ end
706
+
707
+ # Update properties of this object
708
+ def update!(**args)
709
+ end
710
+ end
711
+
712
+ # Request message for DeactivateSubscriptionOffer.
713
+ class DeactivateSubscriptionOfferRequest
714
+ include Google::Apis::Core::Hashable
715
+
716
+ def initialize(**args)
717
+ update!(**args)
718
+ end
719
+
720
+ # Update properties of this object
721
+ def update!(**args)
722
+ end
723
+ end
724
+
320
725
  # Represents a deobfuscation file.
321
726
  class DeobfuscationFile
322
727
  include Google::Apis::Core::Hashable
@@ -383,6 +788,72 @@ module Google
383
788
  end
384
789
  end
385
790
 
791
+ # Information specific to cancellations initiated by developers.
792
+ class DeveloperInitiatedCancellation
793
+ include Google::Apis::Core::Hashable
794
+
795
+ def initialize(**args)
796
+ update!(**args)
797
+ end
798
+
799
+ # Update properties of this object
800
+ def update!(**args)
801
+ end
802
+ end
803
+
804
+ # LINT.IfChange A group of devices. A group is defined by a set of device
805
+ # selectors. A device belongs to the group if it matches any selector (logical
806
+ # OR).
807
+ class DeviceGroup
808
+ include Google::Apis::Core::Hashable
809
+
810
+ # Device selectors for this group. A device matching any of the selectors is
811
+ # included in this group.
812
+ # Corresponds to the JSON property `deviceSelectors`
813
+ # @return [Array<Google::Apis::AndroidpublisherV3::DeviceSelector>]
814
+ attr_accessor :device_selectors
815
+
816
+ # The name of the group.
817
+ # Corresponds to the JSON property `name`
818
+ # @return [String]
819
+ attr_accessor :name
820
+
821
+ def initialize(**args)
822
+ update!(**args)
823
+ end
824
+
825
+ # Update properties of this object
826
+ def update!(**args)
827
+ @device_selectors = args[:device_selectors] if args.key?(:device_selectors)
828
+ @name = args[:name] if args.key?(:name)
829
+ end
830
+ end
831
+
832
+ # Identifier of a device.
833
+ class DeviceId
834
+ include Google::Apis::Core::Hashable
835
+
836
+ # Value of Build.BRAND.
837
+ # Corresponds to the JSON property `buildBrand`
838
+ # @return [String]
839
+ attr_accessor :build_brand
840
+
841
+ # Value of Build.DEVICE.
842
+ # Corresponds to the JSON property `buildDevice`
843
+ # @return [String]
844
+ attr_accessor :build_device
845
+
846
+ def initialize(**args)
847
+ update!(**args)
848
+ end
849
+
850
+ # Update properties of this object
851
+ def update!(**args)
852
+ @build_brand = args[:build_brand] if args.key?(:build_brand)
853
+ @build_device = args[:build_device] if args.key?(:build_device)
854
+ end
855
+ end
856
+
386
857
  # Characteristics of the user's device.
387
858
  class DeviceMetadata
388
859
  include Google::Apis::Core::Hashable
@@ -462,17 +933,93 @@ module Google
462
933
  end
463
934
  end
464
935
 
465
- # The device spec used to generate a system APK.
466
- class DeviceSpec
936
+ # Conditions about a device's RAM capabilities.
937
+ class DeviceRam
467
938
  include Google::Apis::Core::Hashable
468
939
 
469
- # Screen dpi.
470
- # Corresponds to the JSON property `screenDensity`
940
+ # Maximum RAM in bytes (bound excluded).
941
+ # Corresponds to the JSON property `maxBytes`
471
942
  # @return [Fixnum]
472
- attr_accessor :screen_density
943
+ attr_accessor :max_bytes
473
944
 
474
- # Supported ABI architectures in the order of preference. The values should be
475
- # the string as reported by the platform, e.g. "armeabi-v7a", "x86_64".
945
+ # Minimum RAM in bytes (bound included).
946
+ # Corresponds to the JSON property `minBytes`
947
+ # @return [Fixnum]
948
+ attr_accessor :min_bytes
949
+
950
+ def initialize(**args)
951
+ update!(**args)
952
+ end
953
+
954
+ # Update properties of this object
955
+ def update!(**args)
956
+ @max_bytes = args[:max_bytes] if args.key?(:max_bytes)
957
+ @min_bytes = args[:min_bytes] if args.key?(:min_bytes)
958
+ end
959
+ end
960
+
961
+ # Selector for a device group. A selector consists of a set of conditions on the
962
+ # device that should all match (logical AND) to determine a device group
963
+ # eligibility. For instance, if a selector specifies RAM conditions, device
964
+ # model inclusion and device model exclusion, a device is considered to match if:
965
+ # device matches RAM conditions AND device matches one of the included device
966
+ # models AND device doesn't match excluded device models
967
+ class DeviceSelector
968
+ include Google::Apis::Core::Hashable
969
+
970
+ # Conditions about a device's RAM capabilities.
971
+ # Corresponds to the JSON property `deviceRam`
972
+ # @return [Google::Apis::AndroidpublisherV3::DeviceRam]
973
+ attr_accessor :device_ram
974
+
975
+ # Device models excluded by this selector, even if they match all other
976
+ # conditions.
977
+ # Corresponds to the JSON property `excludedDeviceIds`
978
+ # @return [Array<Google::Apis::AndroidpublisherV3::DeviceId>]
979
+ attr_accessor :excluded_device_ids
980
+
981
+ # A device that has any of these system features is excluded by this selector,
982
+ # even if it matches all other conditions.
983
+ # Corresponds to the JSON property `forbiddenSystemFeatures`
984
+ # @return [Array<Google::Apis::AndroidpublisherV3::SystemFeature>]
985
+ attr_accessor :forbidden_system_features
986
+
987
+ # Device models included by this selector.
988
+ # Corresponds to the JSON property `includedDeviceIds`
989
+ # @return [Array<Google::Apis::AndroidpublisherV3::DeviceId>]
990
+ attr_accessor :included_device_ids
991
+
992
+ # A device needs to have all these system features to be included by the
993
+ # selector.
994
+ # Corresponds to the JSON property `requiredSystemFeatures`
995
+ # @return [Array<Google::Apis::AndroidpublisherV3::SystemFeature>]
996
+ attr_accessor :required_system_features
997
+
998
+ def initialize(**args)
999
+ update!(**args)
1000
+ end
1001
+
1002
+ # Update properties of this object
1003
+ def update!(**args)
1004
+ @device_ram = args[:device_ram] if args.key?(:device_ram)
1005
+ @excluded_device_ids = args[:excluded_device_ids] if args.key?(:excluded_device_ids)
1006
+ @forbidden_system_features = args[:forbidden_system_features] if args.key?(:forbidden_system_features)
1007
+ @included_device_ids = args[:included_device_ids] if args.key?(:included_device_ids)
1008
+ @required_system_features = args[:required_system_features] if args.key?(:required_system_features)
1009
+ end
1010
+ end
1011
+
1012
+ # The device spec used to generate a system APK.
1013
+ class DeviceSpec
1014
+ include Google::Apis::Core::Hashable
1015
+
1016
+ # Screen dpi.
1017
+ # Corresponds to the JSON property `screenDensity`
1018
+ # @return [Fixnum]
1019
+ attr_accessor :screen_density
1020
+
1021
+ # Supported ABI architectures in the order of preference. The values should be
1022
+ # the string as reported by the platform, e.g. "armeabi-v7a", "x86_64".
476
1023
  # Corresponds to the JSON property `supportedAbis`
477
1024
  # @return [Array<String>]
478
1025
  attr_accessor :supported_abis
@@ -494,6 +1041,100 @@ module Google
494
1041
  end
495
1042
  end
496
1043
 
1044
+ # A single device tier. Devices matching any of the device groups in
1045
+ # device_group_names are considered to match the tier.
1046
+ class DeviceTier
1047
+ include Google::Apis::Core::Hashable
1048
+
1049
+ # Groups of devices included in this tier. These groups must be defined
1050
+ # explicitly under device_groups in this configuration.
1051
+ # Corresponds to the JSON property `deviceGroupNames`
1052
+ # @return [Array<String>]
1053
+ attr_accessor :device_group_names
1054
+
1055
+ # The priority level of the tier. Tiers are evaluated in descending order of
1056
+ # level: the highest level tier has the highest priority. The highest tier
1057
+ # matching a given device is selected for that device. You should use a
1058
+ # contiguous range of levels for your tiers in a tier set; tier levels in a tier
1059
+ # set must be unique. For instance, if your tier set has 4 tiers (including the
1060
+ # global fallback), you should define tiers 1, 2 and 3 in this configuration.
1061
+ # Note: tier 0 is implicitly defined as a global fallback and selected for
1062
+ # devices that don't match any of the tiers explicitly defined here. You mustn't
1063
+ # define level 0 explicitly in this configuration.
1064
+ # Corresponds to the JSON property `level`
1065
+ # @return [Fixnum]
1066
+ attr_accessor :level
1067
+
1068
+ def initialize(**args)
1069
+ update!(**args)
1070
+ end
1071
+
1072
+ # Update properties of this object
1073
+ def update!(**args)
1074
+ @device_group_names = args[:device_group_names] if args.key?(:device_group_names)
1075
+ @level = args[:level] if args.key?(:level)
1076
+ end
1077
+ end
1078
+
1079
+ # LINT.IfChange Configuration describing device targeting criteria for the
1080
+ # content of an app.
1081
+ class DeviceTierConfig
1082
+ include Google::Apis::Core::Hashable
1083
+
1084
+ # Definition of device groups for the app.
1085
+ # Corresponds to the JSON property `deviceGroups`
1086
+ # @return [Array<Google::Apis::AndroidpublisherV3::DeviceGroup>]
1087
+ attr_accessor :device_groups
1088
+
1089
+ # Output only. The device tier config ID.
1090
+ # Corresponds to the JSON property `deviceTierConfigId`
1091
+ # @return [Fixnum]
1092
+ attr_accessor :device_tier_config_id
1093
+
1094
+ # A set of device tiers. A tier set determines what variation of app content
1095
+ # gets served to a specific device, for device-targeted content. You should
1096
+ # assign a priority level to each tier, which determines the ordering by which
1097
+ # they are evaluated by Play. See the documentation of DeviceTier.level for more
1098
+ # details.
1099
+ # Corresponds to the JSON property `deviceTierSet`
1100
+ # @return [Google::Apis::AndroidpublisherV3::DeviceTierSet]
1101
+ attr_accessor :device_tier_set
1102
+
1103
+ def initialize(**args)
1104
+ update!(**args)
1105
+ end
1106
+
1107
+ # Update properties of this object
1108
+ def update!(**args)
1109
+ @device_groups = args[:device_groups] if args.key?(:device_groups)
1110
+ @device_tier_config_id = args[:device_tier_config_id] if args.key?(:device_tier_config_id)
1111
+ @device_tier_set = args[:device_tier_set] if args.key?(:device_tier_set)
1112
+ end
1113
+ end
1114
+
1115
+ # A set of device tiers. A tier set determines what variation of app content
1116
+ # gets served to a specific device, for device-targeted content. You should
1117
+ # assign a priority level to each tier, which determines the ordering by which
1118
+ # they are evaluated by Play. See the documentation of DeviceTier.level for more
1119
+ # details.
1120
+ class DeviceTierSet
1121
+ include Google::Apis::Core::Hashable
1122
+
1123
+ # Device tiers belonging to the set.
1124
+ # Corresponds to the JSON property `deviceTiers`
1125
+ # @return [Array<Google::Apis::AndroidpublisherV3::DeviceTier>]
1126
+ attr_accessor :device_tiers
1127
+
1128
+ def initialize(**args)
1129
+ update!(**args)
1130
+ end
1131
+
1132
+ # Update properties of this object
1133
+ def update!(**args)
1134
+ @device_tiers = args[:device_tiers] if args.key?(:device_tiers)
1135
+ end
1136
+ end
1137
+
497
1138
  # An expansion file. The resource for ExpansionFilesService.
498
1139
  class ExpansionFile
499
1140
  include Google::Apis::Core::Hashable
@@ -541,6 +1182,45 @@ module Google
541
1182
  end
542
1183
  end
543
1184
 
1185
+ # User account identifier in the third-party service.
1186
+ class ExternalAccountIdentifiers
1187
+ include Google::Apis::Core::Hashable
1188
+
1189
+ # User account identifier in the third-party service. Only present if account
1190
+ # linking happened as part of the subscription purchase flow.
1191
+ # Corresponds to the JSON property `externalAccountId`
1192
+ # @return [String]
1193
+ attr_accessor :external_account_id
1194
+
1195
+ # An obfuscated version of the id that is uniquely associated with the user's
1196
+ # account in your app. Present for the following purchases: * If account linking
1197
+ # happened as part of the subscription purchase flow. * It was specified using
1198
+ # https://developer.android.com/reference/com/android/billingclient/api/
1199
+ # BillingFlowParams.Builder#setobfuscatedaccountid when the purchase was made.
1200
+ # Corresponds to the JSON property `obfuscatedExternalAccountId`
1201
+ # @return [String]
1202
+ attr_accessor :obfuscated_external_account_id
1203
+
1204
+ # An obfuscated version of the id that is uniquely associated with the user's
1205
+ # profile in your app. Only present if specified using https://developer.android.
1206
+ # com/reference/com/android/billingclient/api/BillingFlowParams.Builder#
1207
+ # setobfuscatedprofileid when the purchase was made.
1208
+ # Corresponds to the JSON property `obfuscatedExternalProfileId`
1209
+ # @return [String]
1210
+ attr_accessor :obfuscated_external_profile_id
1211
+
1212
+ def initialize(**args)
1213
+ update!(**args)
1214
+ end
1215
+
1216
+ # Update properties of this object
1217
+ def update!(**args)
1218
+ @external_account_id = args[:external_account_id] if args.key?(:external_account_id)
1219
+ @obfuscated_external_account_id = args[:obfuscated_external_account_id] if args.key?(:obfuscated_external_account_id)
1220
+ @obfuscated_external_profile_id = args[:obfuscated_external_profile_id] if args.key?(:obfuscated_external_profile_id)
1221
+ end
1222
+ end
1223
+
544
1224
  # Defines an APK available for this application that is hosted externally and
545
1225
  # not uploaded to Google Play. This function is only available to organizations
546
1226
  # using Managed Play whose application is configured to restrict distribution to
@@ -648,6 +1328,227 @@ module Google
648
1328
  end
649
1329
  end
650
1330
 
1331
+ # Response to list generated APKs.
1332
+ class GeneratedApksListResponse
1333
+ include Google::Apis::Core::Hashable
1334
+
1335
+ # All generated APKs, grouped by the APK signing key.
1336
+ # Corresponds to the JSON property `generatedApks`
1337
+ # @return [Array<Google::Apis::AndroidpublisherV3::GeneratedApksPerSigningKey>]
1338
+ attr_accessor :generated_apks
1339
+
1340
+ def initialize(**args)
1341
+ update!(**args)
1342
+ end
1343
+
1344
+ # Update properties of this object
1345
+ def update!(**args)
1346
+ @generated_apks = args[:generated_apks] if args.key?(:generated_apks)
1347
+ end
1348
+ end
1349
+
1350
+ # Download metadata for split, standalone and universal APKs, as well as asset
1351
+ # pack slices, signed with a given key.
1352
+ class GeneratedApksPerSigningKey
1353
+ include Google::Apis::Core::Hashable
1354
+
1355
+ # SHA256 hash of the APK signing public key certificate.
1356
+ # Corresponds to the JSON property `certificateSha256Hash`
1357
+ # @return [String]
1358
+ attr_accessor :certificate_sha256_hash
1359
+
1360
+ # List of asset pack slices which will be served for this app bundle, signed
1361
+ # with a key corresponding to certificate_sha256_hash.
1362
+ # Corresponds to the JSON property `generatedAssetPackSlices`
1363
+ # @return [Array<Google::Apis::AndroidpublisherV3::GeneratedAssetPackSlice>]
1364
+ attr_accessor :generated_asset_pack_slices
1365
+
1366
+ # List of generated split APKs, signed with a key corresponding to
1367
+ # certificate_sha256_hash.
1368
+ # Corresponds to the JSON property `generatedSplitApks`
1369
+ # @return [Array<Google::Apis::AndroidpublisherV3::GeneratedSplitApk>]
1370
+ attr_accessor :generated_split_apks
1371
+
1372
+ # List of generated standalone APKs, signed with a key corresponding to
1373
+ # certificate_sha256_hash.
1374
+ # Corresponds to the JSON property `generatedStandaloneApks`
1375
+ # @return [Array<Google::Apis::AndroidpublisherV3::GeneratedStandaloneApk>]
1376
+ attr_accessor :generated_standalone_apks
1377
+
1378
+ # Download metadata for a universal APK.
1379
+ # Corresponds to the JSON property `generatedUniversalApk`
1380
+ # @return [Google::Apis::AndroidpublisherV3::GeneratedUniversalApk]
1381
+ attr_accessor :generated_universal_apk
1382
+
1383
+ def initialize(**args)
1384
+ update!(**args)
1385
+ end
1386
+
1387
+ # Update properties of this object
1388
+ def update!(**args)
1389
+ @certificate_sha256_hash = args[:certificate_sha256_hash] if args.key?(:certificate_sha256_hash)
1390
+ @generated_asset_pack_slices = args[:generated_asset_pack_slices] if args.key?(:generated_asset_pack_slices)
1391
+ @generated_split_apks = args[:generated_split_apks] if args.key?(:generated_split_apks)
1392
+ @generated_standalone_apks = args[:generated_standalone_apks] if args.key?(:generated_standalone_apks)
1393
+ @generated_universal_apk = args[:generated_universal_apk] if args.key?(:generated_universal_apk)
1394
+ end
1395
+ end
1396
+
1397
+ # Download metadata for an asset pack slice.
1398
+ class GeneratedAssetPackSlice
1399
+ include Google::Apis::Core::Hashable
1400
+
1401
+ # Download ID, which uniquely identifies the APK to download. Should be supplied
1402
+ # to `generatedapks.download` method.
1403
+ # Corresponds to the JSON property `downloadId`
1404
+ # @return [String]
1405
+ attr_accessor :download_id
1406
+
1407
+ # Name of the module that this asset slice belongs to.
1408
+ # Corresponds to the JSON property `moduleName`
1409
+ # @return [String]
1410
+ attr_accessor :module_name
1411
+
1412
+ # Asset slice ID.
1413
+ # Corresponds to the JSON property `sliceId`
1414
+ # @return [String]
1415
+ attr_accessor :slice_id
1416
+
1417
+ # Asset module version.
1418
+ # Corresponds to the JSON property `version`
1419
+ # @return [Fixnum]
1420
+ attr_accessor :version
1421
+
1422
+ def initialize(**args)
1423
+ update!(**args)
1424
+ end
1425
+
1426
+ # Update properties of this object
1427
+ def update!(**args)
1428
+ @download_id = args[:download_id] if args.key?(:download_id)
1429
+ @module_name = args[:module_name] if args.key?(:module_name)
1430
+ @slice_id = args[:slice_id] if args.key?(:slice_id)
1431
+ @version = args[:version] if args.key?(:version)
1432
+ end
1433
+ end
1434
+
1435
+ # Download metadata for a split APK.
1436
+ class GeneratedSplitApk
1437
+ include Google::Apis::Core::Hashable
1438
+
1439
+ # Download ID, which uniquely identifies the APK to download. Should be supplied
1440
+ # to `generatedapks.download` method.
1441
+ # Corresponds to the JSON property `downloadId`
1442
+ # @return [String]
1443
+ attr_accessor :download_id
1444
+
1445
+ # Name of the module that this APK belongs to.
1446
+ # Corresponds to the JSON property `moduleName`
1447
+ # @return [String]
1448
+ attr_accessor :module_name
1449
+
1450
+ # Split ID. Empty for the main split of the base module.
1451
+ # Corresponds to the JSON property `splitId`
1452
+ # @return [String]
1453
+ attr_accessor :split_id
1454
+
1455
+ # ID of the generated variant.
1456
+ # Corresponds to the JSON property `variantId`
1457
+ # @return [Fixnum]
1458
+ attr_accessor :variant_id
1459
+
1460
+ def initialize(**args)
1461
+ update!(**args)
1462
+ end
1463
+
1464
+ # Update properties of this object
1465
+ def update!(**args)
1466
+ @download_id = args[:download_id] if args.key?(:download_id)
1467
+ @module_name = args[:module_name] if args.key?(:module_name)
1468
+ @split_id = args[:split_id] if args.key?(:split_id)
1469
+ @variant_id = args[:variant_id] if args.key?(:variant_id)
1470
+ end
1471
+ end
1472
+
1473
+ # Download metadata for a standalone APK.
1474
+ class GeneratedStandaloneApk
1475
+ include Google::Apis::Core::Hashable
1476
+
1477
+ # Download ID, which uniquely identifies the APK to download. Should be supplied
1478
+ # to `generatedapks.download` method.
1479
+ # Corresponds to the JSON property `downloadId`
1480
+ # @return [String]
1481
+ attr_accessor :download_id
1482
+
1483
+ # ID of the generated variant.
1484
+ # Corresponds to the JSON property `variantId`
1485
+ # @return [Fixnum]
1486
+ attr_accessor :variant_id
1487
+
1488
+ def initialize(**args)
1489
+ update!(**args)
1490
+ end
1491
+
1492
+ # Update properties of this object
1493
+ def update!(**args)
1494
+ @download_id = args[:download_id] if args.key?(:download_id)
1495
+ @variant_id = args[:variant_id] if args.key?(:variant_id)
1496
+ end
1497
+ end
1498
+
1499
+ # Download metadata for a universal APK.
1500
+ class GeneratedUniversalApk
1501
+ include Google::Apis::Core::Hashable
1502
+
1503
+ # Download ID, which uniquely identifies the APK to download. Should be supplied
1504
+ # to `generatedapks.download` method.
1505
+ # Corresponds to the JSON property `downloadId`
1506
+ # @return [String]
1507
+ attr_accessor :download_id
1508
+
1509
+ def initialize(**args)
1510
+ update!(**args)
1511
+ end
1512
+
1513
+ # Update properties of this object
1514
+ def update!(**args)
1515
+ @download_id = args[:download_id] if args.key?(:download_id)
1516
+ end
1517
+ end
1518
+
1519
+ # An access grant resource.
1520
+ class Grant
1521
+ include Google::Apis::Core::Hashable
1522
+
1523
+ # The permissions granted to the user for this app.
1524
+ # Corresponds to the JSON property `appLevelPermissions`
1525
+ # @return [Array<String>]
1526
+ attr_accessor :app_level_permissions
1527
+
1528
+ # Required. Resource name for this grant, following the pattern "developers/`
1529
+ # developer`/users/`email`/grants/`package_name`". If this grant is for a draft
1530
+ # app, the app ID will be used in this resource name instead of the package name.
1531
+ # Corresponds to the JSON property `name`
1532
+ # @return [String]
1533
+ attr_accessor :name
1534
+
1535
+ # Immutable. The package name of the app. This will be empty for draft apps.
1536
+ # Corresponds to the JSON property `packageName`
1537
+ # @return [String]
1538
+ attr_accessor :package_name
1539
+
1540
+ def initialize(**args)
1541
+ update!(**args)
1542
+ end
1543
+
1544
+ # Update properties of this object
1545
+ def update!(**args)
1546
+ @app_level_permissions = args[:app_level_permissions] if args.key?(:app_level_permissions)
1547
+ @name = args[:name] if args.key?(:name)
1548
+ @package_name = args[:package_name] if args.key?(:package_name)
1549
+ end
1550
+ end
1551
+
651
1552
  # An uploaded image. The resource for ImagesService.
652
1553
  class Image
653
1554
  include Google::Apis::Core::Hashable
@@ -770,6 +1671,11 @@ module Google
770
1671
  # @return [Hash<String,Google::Apis::AndroidpublisherV3::InAppProductListing>]
771
1672
  attr_accessor :listings
772
1673
 
1674
+ # Details about taxation and legal compliance for managed products.
1675
+ # Corresponds to the JSON property `managedProductTaxesAndComplianceSettings`
1676
+ # @return [Google::Apis::AndroidpublisherV3::ManagedProductTaxAndComplianceSettings]
1677
+ attr_accessor :managed_product_taxes_and_compliance_settings
1678
+
773
1679
  # Package name of the parent app.
774
1680
  # Corresponds to the JSON property `packageName`
775
1681
  # @return [String]
@@ -803,6 +1709,12 @@ module Google
803
1709
  # @return [String]
804
1710
  attr_accessor :subscription_period
805
1711
 
1712
+ # Details about taxation, Google Play policy and legal compliance for
1713
+ # subscription products.
1714
+ # Corresponds to the JSON property `subscriptionTaxesAndComplianceSettings`
1715
+ # @return [Google::Apis::AndroidpublisherV3::SubscriptionTaxAndComplianceSettings]
1716
+ attr_accessor :subscription_taxes_and_compliance_settings
1717
+
806
1718
  # Trial period, specified in ISO 8601 format. Acceptable values are anything
807
1719
  # between P7D (seven days) and P999D (999 days).
808
1720
  # Corresponds to the JSON property `trialPeriod`
@@ -819,12 +1731,14 @@ module Google
819
1731
  @default_price = args[:default_price] if args.key?(:default_price)
820
1732
  @grace_period = args[:grace_period] if args.key?(:grace_period)
821
1733
  @listings = args[:listings] if args.key?(:listings)
1734
+ @managed_product_taxes_and_compliance_settings = args[:managed_product_taxes_and_compliance_settings] if args.key?(:managed_product_taxes_and_compliance_settings)
822
1735
  @package_name = args[:package_name] if args.key?(:package_name)
823
1736
  @prices = args[:prices] if args.key?(:prices)
824
1737
  @purchase_type = args[:purchase_type] if args.key?(:purchase_type)
825
1738
  @sku = args[:sku] if args.key?(:sku)
826
1739
  @status = args[:status] if args.key?(:status)
827
1740
  @subscription_period = args[:subscription_period] if args.key?(:subscription_period)
1741
+ @subscription_taxes_and_compliance_settings = args[:subscription_taxes_and_compliance_settings] if args.key?(:subscription_taxes_and_compliance_settings)
828
1742
  @trial_period = args[:trial_period] if args.key?(:trial_period)
829
1743
  end
830
1744
  end
@@ -984,29 +1898,133 @@ module Google
984
1898
  end
985
1899
  end
986
1900
 
987
- # A localized store listing. The resource for ListingsService.
988
- class Listing
1901
+ # Response listing existing device tier configs.
1902
+ class ListDeviceTierConfigsResponse
989
1903
  include Google::Apis::Core::Hashable
990
1904
 
991
- # Full description of the app.
992
- # Corresponds to the JSON property `fullDescription`
993
- # @return [String]
994
- attr_accessor :full_description
1905
+ # Device tier configs created by the developer.
1906
+ # Corresponds to the JSON property `deviceTierConfigs`
1907
+ # @return [Array<Google::Apis::AndroidpublisherV3::DeviceTierConfig>]
1908
+ attr_accessor :device_tier_configs
995
1909
 
996
- # Language localization code (a BCP-47 language tag; for example, "de-AT" for
997
- # Austrian German).
998
- # Corresponds to the JSON property `language`
1910
+ # A token, which can be sent as `page_token` to retrieve the next page. If this
1911
+ # field is omitted, there are no subsequent pages.
1912
+ # Corresponds to the JSON property `nextPageToken`
999
1913
  # @return [String]
1000
- attr_accessor :language
1914
+ attr_accessor :next_page_token
1001
1915
 
1002
- # Short description of the app.
1003
- # Corresponds to the JSON property `shortDescription`
1004
- # @return [String]
1005
- attr_accessor :short_description
1916
+ def initialize(**args)
1917
+ update!(**args)
1918
+ end
1006
1919
 
1007
- # Localized title of the app.
1008
- # Corresponds to the JSON property `title`
1009
- # @return [String]
1920
+ # Update properties of this object
1921
+ def update!(**args)
1922
+ @device_tier_configs = args[:device_tier_configs] if args.key?(:device_tier_configs)
1923
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1924
+ end
1925
+ end
1926
+
1927
+ # Response message for ListSubscriptionOffers.
1928
+ class ListSubscriptionOffersResponse
1929
+ include Google::Apis::Core::Hashable
1930
+
1931
+ # A token, which can be sent as `page_token` to retrieve the next page. If this
1932
+ # field is omitted, there are no subsequent pages.
1933
+ # Corresponds to the JSON property `nextPageToken`
1934
+ # @return [String]
1935
+ attr_accessor :next_page_token
1936
+
1937
+ # The subscription offers from the specified subscription.
1938
+ # Corresponds to the JSON property `subscriptionOffers`
1939
+ # @return [Array<Google::Apis::AndroidpublisherV3::SubscriptionOffer>]
1940
+ attr_accessor :subscription_offers
1941
+
1942
+ def initialize(**args)
1943
+ update!(**args)
1944
+ end
1945
+
1946
+ # Update properties of this object
1947
+ def update!(**args)
1948
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1949
+ @subscription_offers = args[:subscription_offers] if args.key?(:subscription_offers)
1950
+ end
1951
+ end
1952
+
1953
+ # Response message for ListSubscriptions.
1954
+ class ListSubscriptionsResponse
1955
+ include Google::Apis::Core::Hashable
1956
+
1957
+ # A token, which can be sent as `page_token` to retrieve the next page. If this
1958
+ # field is omitted, there are no subsequent pages.
1959
+ # Corresponds to the JSON property `nextPageToken`
1960
+ # @return [String]
1961
+ attr_accessor :next_page_token
1962
+
1963
+ # The subscriptions from the specified app.
1964
+ # Corresponds to the JSON property `subscriptions`
1965
+ # @return [Array<Google::Apis::AndroidpublisherV3::Subscription>]
1966
+ attr_accessor :subscriptions
1967
+
1968
+ def initialize(**args)
1969
+ update!(**args)
1970
+ end
1971
+
1972
+ # Update properties of this object
1973
+ def update!(**args)
1974
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1975
+ @subscriptions = args[:subscriptions] if args.key?(:subscriptions)
1976
+ end
1977
+ end
1978
+
1979
+ # A response containing one or more users with access to an account.
1980
+ class ListUsersResponse
1981
+ include Google::Apis::Core::Hashable
1982
+
1983
+ # A token to pass to subsequent calls in order to retrieve subsequent results.
1984
+ # This will not be set if there are no more results to return.
1985
+ # Corresponds to the JSON property `nextPageToken`
1986
+ # @return [String]
1987
+ attr_accessor :next_page_token
1988
+
1989
+ # The resulting users.
1990
+ # Corresponds to the JSON property `users`
1991
+ # @return [Array<Google::Apis::AndroidpublisherV3::User>]
1992
+ attr_accessor :users
1993
+
1994
+ def initialize(**args)
1995
+ update!(**args)
1996
+ end
1997
+
1998
+ # Update properties of this object
1999
+ def update!(**args)
2000
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2001
+ @users = args[:users] if args.key?(:users)
2002
+ end
2003
+ end
2004
+
2005
+ # A localized store listing. The resource for ListingsService.
2006
+ class Listing
2007
+ include Google::Apis::Core::Hashable
2008
+
2009
+ # Full description of the app.
2010
+ # Corresponds to the JSON property `fullDescription`
2011
+ # @return [String]
2012
+ attr_accessor :full_description
2013
+
2014
+ # Language localization code (a BCP-47 language tag; for example, "de-AT" for
2015
+ # Austrian German).
2016
+ # Corresponds to the JSON property `language`
2017
+ # @return [String]
2018
+ attr_accessor :language
2019
+
2020
+ # Short description of the app.
2021
+ # Corresponds to the JSON property `shortDescription`
2022
+ # @return [String]
2023
+ attr_accessor :short_description
2024
+
2025
+ # Localized title of the app.
2026
+ # Corresponds to the JSON property `title`
2027
+ # @return [String]
1010
2028
  attr_accessor :title
1011
2029
 
1012
2030
  # URL of a promotional YouTube video for the app.
@@ -1053,7 +2071,7 @@ module Google
1053
2071
  end
1054
2072
  end
1055
2073
 
1056
- # Release notes specification, i.e. language and text.
2074
+ # Localized text in given language.
1057
2075
  class LocalizedText
1058
2076
  include Google::Apis::Core::Hashable
1059
2077
 
@@ -1079,6 +2097,282 @@ module Google
1079
2097
  end
1080
2098
  end
1081
2099
 
2100
+ # Details about taxation and legal compliance for managed products.
2101
+ class ManagedProductTaxAndComplianceSettings
2102
+ include Google::Apis::Core::Hashable
2103
+
2104
+ # Digital content or service classification for products distributed to users in
2105
+ # the European Economic Area (EEA). The withdrawal regime under EEA consumer
2106
+ # laws depends on this classification. Refer to the [Help Center article](https:/
2107
+ # /support.google.com/googleplay/android-developer/answer/10463498) for more
2108
+ # information.
2109
+ # Corresponds to the JSON property `eeaWithdrawalRightType`
2110
+ # @return [String]
2111
+ attr_accessor :eea_withdrawal_right_type
2112
+
2113
+ # A mapping from region code to tax rate details. The keys are region codes as
2114
+ # defined by Unicode's "CLDR".
2115
+ # Corresponds to the JSON property `taxRateInfoByRegionCode`
2116
+ # @return [Hash<String,Google::Apis::AndroidpublisherV3::RegionalTaxRateInfo>]
2117
+ attr_accessor :tax_rate_info_by_region_code
2118
+
2119
+ def initialize(**args)
2120
+ update!(**args)
2121
+ end
2122
+
2123
+ # Update properties of this object
2124
+ def update!(**args)
2125
+ @eea_withdrawal_right_type = args[:eea_withdrawal_right_type] if args.key?(:eea_withdrawal_right_type)
2126
+ @tax_rate_info_by_region_code = args[:tax_rate_info_by_region_code] if args.key?(:tax_rate_info_by_region_code)
2127
+ end
2128
+ end
2129
+
2130
+ # Request message for MigrateBasePlanPrices.
2131
+ class MigrateBasePlanPricesRequest
2132
+ include Google::Apis::Core::Hashable
2133
+
2134
+ # Required. The regional prices to update.
2135
+ # Corresponds to the JSON property `regionalPriceMigrations`
2136
+ # @return [Array<Google::Apis::AndroidpublisherV3::RegionalPriceMigrationConfig>]
2137
+ attr_accessor :regional_price_migrations
2138
+
2139
+ # The version of the available regions being used for the specified resource.
2140
+ # Corresponds to the JSON property `regionsVersion`
2141
+ # @return [Google::Apis::AndroidpublisherV3::RegionsVersion]
2142
+ attr_accessor :regions_version
2143
+
2144
+ def initialize(**args)
2145
+ update!(**args)
2146
+ end
2147
+
2148
+ # Update properties of this object
2149
+ def update!(**args)
2150
+ @regional_price_migrations = args[:regional_price_migrations] if args.key?(:regional_price_migrations)
2151
+ @regions_version = args[:regions_version] if args.key?(:regions_version)
2152
+ end
2153
+ end
2154
+
2155
+ # Response message for MigrateBasePlanPrices.
2156
+ class MigrateBasePlanPricesResponse
2157
+ include Google::Apis::Core::Hashable
2158
+
2159
+ def initialize(**args)
2160
+ update!(**args)
2161
+ end
2162
+
2163
+ # Update properties of this object
2164
+ def update!(**args)
2165
+ end
2166
+ end
2167
+
2168
+ # Represents an amount of money with its currency type.
2169
+ class Money
2170
+ include Google::Apis::Core::Hashable
2171
+
2172
+ # The three-letter currency code defined in ISO 4217.
2173
+ # Corresponds to the JSON property `currencyCode`
2174
+ # @return [String]
2175
+ attr_accessor :currency_code
2176
+
2177
+ # Number of nano (10^-9) units of the amount. The value must be between -999,999,
2178
+ # 999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be
2179
+ # positive or zero. If `units` is zero, `nanos` can be positive, zero, or
2180
+ # negative. If `units` is negative, `nanos` must be negative or zero. For
2181
+ # example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
2182
+ # Corresponds to the JSON property `nanos`
2183
+ # @return [Fixnum]
2184
+ attr_accessor :nanos
2185
+
2186
+ # The whole units of the amount. For example if `currencyCode` is `"USD"`, then
2187
+ # 1 unit is one US dollar.
2188
+ # Corresponds to the JSON property `units`
2189
+ # @return [Fixnum]
2190
+ attr_accessor :units
2191
+
2192
+ def initialize(**args)
2193
+ update!(**args)
2194
+ end
2195
+
2196
+ # Update properties of this object
2197
+ def update!(**args)
2198
+ @currency_code = args[:currency_code] if args.key?(:currency_code)
2199
+ @nanos = args[:nanos] if args.key?(:nanos)
2200
+ @units = args[:units] if args.key?(:units)
2201
+ end
2202
+ end
2203
+
2204
+ # Offer details information related to a purchase line item.
2205
+ class OfferDetails
2206
+ include Google::Apis::Core::Hashable
2207
+
2208
+ # The base plan ID. Present for all base plan and offers.
2209
+ # Corresponds to the JSON property `basePlanId`
2210
+ # @return [String]
2211
+ attr_accessor :base_plan_id
2212
+
2213
+ # The offer ID. Only present for discounted offers.
2214
+ # Corresponds to the JSON property `offerId`
2215
+ # @return [String]
2216
+ attr_accessor :offer_id
2217
+
2218
+ # The latest offer tags associated with the offer. It includes tags inherited
2219
+ # from the base plan.
2220
+ # Corresponds to the JSON property `offerTags`
2221
+ # @return [Array<String>]
2222
+ attr_accessor :offer_tags
2223
+
2224
+ def initialize(**args)
2225
+ update!(**args)
2226
+ end
2227
+
2228
+ # Update properties of this object
2229
+ def update!(**args)
2230
+ @base_plan_id = args[:base_plan_id] if args.key?(:base_plan_id)
2231
+ @offer_id = args[:offer_id] if args.key?(:offer_id)
2232
+ @offer_tags = args[:offer_tags] if args.key?(:offer_tags)
2233
+ end
2234
+ end
2235
+
2236
+ # Represents a custom tag specified for base plans and subscription offers.
2237
+ class OfferTag
2238
+ include Google::Apis::Core::Hashable
2239
+
2240
+ # Must conform with RFC-1034. That is, this string can only contain lower-case
2241
+ # letters (a-z), numbers (0-9), and hyphens (-), and be at most 20 characters.
2242
+ # Corresponds to the JSON property `tag`
2243
+ # @return [String]
2244
+ attr_accessor :tag
2245
+
2246
+ def initialize(**args)
2247
+ update!(**args)
2248
+ end
2249
+
2250
+ # Update properties of this object
2251
+ def update!(**args)
2252
+ @tag = args[:tag] if args.key?(:tag)
2253
+ end
2254
+ end
2255
+
2256
+ # Pricing information for any new locations Play may launch in.
2257
+ class OtherRegionsBasePlanConfig
2258
+ include Google::Apis::Core::Hashable
2259
+
2260
+ # Represents an amount of money with its currency type.
2261
+ # Corresponds to the JSON property `eurPrice`
2262
+ # @return [Google::Apis::AndroidpublisherV3::Money]
2263
+ attr_accessor :eur_price
2264
+
2265
+ # Whether the base plan is available for new subscribers in any new locations
2266
+ # Play may launch in. If not specified, this will default to false.
2267
+ # Corresponds to the JSON property `newSubscriberAvailability`
2268
+ # @return [Boolean]
2269
+ attr_accessor :new_subscriber_availability
2270
+ alias_method :new_subscriber_availability?, :new_subscriber_availability
2271
+
2272
+ # Represents an amount of money with its currency type.
2273
+ # Corresponds to the JSON property `usdPrice`
2274
+ # @return [Google::Apis::AndroidpublisherV3::Money]
2275
+ attr_accessor :usd_price
2276
+
2277
+ def initialize(**args)
2278
+ update!(**args)
2279
+ end
2280
+
2281
+ # Update properties of this object
2282
+ def update!(**args)
2283
+ @eur_price = args[:eur_price] if args.key?(:eur_price)
2284
+ @new_subscriber_availability = args[:new_subscriber_availability] if args.key?(:new_subscriber_availability)
2285
+ @usd_price = args[:usd_price] if args.key?(:usd_price)
2286
+ end
2287
+ end
2288
+
2289
+ # Configuration for any new locations Play may launch in specified on a
2290
+ # subscription offer.
2291
+ class OtherRegionsSubscriptionOfferConfig
2292
+ include Google::Apis::Core::Hashable
2293
+
2294
+ # Whether the subscription offer in any new locations Play may launch in the
2295
+ # future. If not specified, this will default to false.
2296
+ # Corresponds to the JSON property `otherRegionsNewSubscriberAvailability`
2297
+ # @return [Boolean]
2298
+ attr_accessor :other_regions_new_subscriber_availability
2299
+ alias_method :other_regions_new_subscriber_availability?, :other_regions_new_subscriber_availability
2300
+
2301
+ def initialize(**args)
2302
+ update!(**args)
2303
+ end
2304
+
2305
+ # Update properties of this object
2306
+ def update!(**args)
2307
+ @other_regions_new_subscriber_availability = args[:other_regions_new_subscriber_availability] if args.key?(:other_regions_new_subscriber_availability)
2308
+ end
2309
+ end
2310
+
2311
+ # Configuration for any new locations Play may launch in for a single offer
2312
+ # phase.
2313
+ class OtherRegionsSubscriptionOfferPhaseConfig
2314
+ include Google::Apis::Core::Hashable
2315
+
2316
+ # Pricing information for any new locations Play may launch in.
2317
+ # Corresponds to the JSON property `absoluteDiscounts`
2318
+ # @return [Google::Apis::AndroidpublisherV3::OtherRegionsSubscriptionOfferPhasePrices]
2319
+ attr_accessor :absolute_discounts
2320
+
2321
+ # Pricing information for any new locations Play may launch in.
2322
+ # Corresponds to the JSON property `otherRegionsPrices`
2323
+ # @return [Google::Apis::AndroidpublisherV3::OtherRegionsSubscriptionOfferPhasePrices]
2324
+ attr_accessor :other_regions_prices
2325
+
2326
+ # The fraction of the base plan price prorated over the phase duration that the
2327
+ # user pays for this offer phase. For example, if the base plan price for this
2328
+ # region is $12 for a period of 1 year, then a 50% discount for a phase of a
2329
+ # duration of 3 months would correspond to a price of $1.50. The discount must
2330
+ # be specified as a fraction strictly larger than 0 and strictly smaller than 1.
2331
+ # The resulting price will be rounded to the nearest billable unit (e.g. cents
2332
+ # for USD). The relative discount is considered invalid if the discounted price
2333
+ # ends up being smaller than the minimum price allowed in any new locations Play
2334
+ # may launch in.
2335
+ # Corresponds to the JSON property `relativeDiscount`
2336
+ # @return [Float]
2337
+ attr_accessor :relative_discount
2338
+
2339
+ def initialize(**args)
2340
+ update!(**args)
2341
+ end
2342
+
2343
+ # Update properties of this object
2344
+ def update!(**args)
2345
+ @absolute_discounts = args[:absolute_discounts] if args.key?(:absolute_discounts)
2346
+ @other_regions_prices = args[:other_regions_prices] if args.key?(:other_regions_prices)
2347
+ @relative_discount = args[:relative_discount] if args.key?(:relative_discount)
2348
+ end
2349
+ end
2350
+
2351
+ # Pricing information for any new locations Play may launch in.
2352
+ class OtherRegionsSubscriptionOfferPhasePrices
2353
+ include Google::Apis::Core::Hashable
2354
+
2355
+ # Represents an amount of money with its currency type.
2356
+ # Corresponds to the JSON property `eurPrice`
2357
+ # @return [Google::Apis::AndroidpublisherV3::Money]
2358
+ attr_accessor :eur_price
2359
+
2360
+ # Represents an amount of money with its currency type.
2361
+ # Corresponds to the JSON property `usdPrice`
2362
+ # @return [Google::Apis::AndroidpublisherV3::Money]
2363
+ attr_accessor :usd_price
2364
+
2365
+ def initialize(**args)
2366
+ update!(**args)
2367
+ end
2368
+
2369
+ # Update properties of this object
2370
+ def update!(**args)
2371
+ @eur_price = args[:eur_price] if args.key?(:eur_price)
2372
+ @usd_price = args[:usd_price] if args.key?(:usd_price)
2373
+ end
2374
+ end
2375
+
1082
2376
  # Information about the current page. List operations that supports paging
1083
2377
  # return only one "page" of results. This protocol buffer message describes the
1084
2378
  # page that has been returned.
@@ -1114,6 +2408,73 @@ module Google
1114
2408
  end
1115
2409
  end
1116
2410
 
2411
+ # Information specific to a subscription in paused state.
2412
+ class PausedStateContext
2413
+ include Google::Apis::Core::Hashable
2414
+
2415
+ # Time at which the subscription will be automatically resumed.
2416
+ # Corresponds to the JSON property `autoResumeTime`
2417
+ # @return [String]
2418
+ attr_accessor :auto_resume_time
2419
+
2420
+ def initialize(**args)
2421
+ update!(**args)
2422
+ end
2423
+
2424
+ # Update properties of this object
2425
+ def update!(**args)
2426
+ @auto_resume_time = args[:auto_resume_time] if args.key?(:auto_resume_time)
2427
+ end
2428
+ end
2429
+
2430
+ # Represents a base plan that does not automatically renew at the end of the
2431
+ # base plan, and must be manually renewed by the user.
2432
+ class PrepaidBasePlanType
2433
+ include Google::Apis::Core::Hashable
2434
+
2435
+ # Required. Subscription period, specified in ISO 8601 format. For a list of
2436
+ # acceptable billing periods, refer to the help center.
2437
+ # Corresponds to the JSON property `billingPeriodDuration`
2438
+ # @return [String]
2439
+ attr_accessor :billing_period_duration
2440
+
2441
+ # Whether users should be able to extend this prepaid base plan in Google Play
2442
+ # surfaces. Defaults to TIME_EXTENSION_ACTIVE if not specified.
2443
+ # Corresponds to the JSON property `timeExtension`
2444
+ # @return [String]
2445
+ attr_accessor :time_extension
2446
+
2447
+ def initialize(**args)
2448
+ update!(**args)
2449
+ end
2450
+
2451
+ # Update properties of this object
2452
+ def update!(**args)
2453
+ @billing_period_duration = args[:billing_period_duration] if args.key?(:billing_period_duration)
2454
+ @time_extension = args[:time_extension] if args.key?(:time_extension)
2455
+ end
2456
+ end
2457
+
2458
+ # Information related to a prepaid plan.
2459
+ class PrepaidPlan
2460
+ include Google::Apis::Core::Hashable
2461
+
2462
+ # If present, this is the time after which top up purchases are allowed for the
2463
+ # prepaid plan. Will not be present for expired prepaid plans.
2464
+ # Corresponds to the JSON property `allowExtendAfterTime`
2465
+ # @return [String]
2466
+ attr_accessor :allow_extend_after_time
2467
+
2468
+ def initialize(**args)
2469
+ update!(**args)
2470
+ end
2471
+
2472
+ # Update properties of this object
2473
+ def update!(**args)
2474
+ @allow_extend_after_time = args[:allow_extend_after_time] if args.key?(:allow_extend_after_time)
2475
+ end
2476
+ end
2477
+
1117
2478
  # Definition of a price, i.e. currency and units.
1118
2479
  class Price
1119
2480
  include Google::Apis::Core::Hashable
@@ -1189,7 +2550,7 @@ module Google
1189
2550
  # @return [String]
1190
2551
  attr_accessor :order_id
1191
2552
 
1192
- # The inapp product SKU.
2553
+ # The inapp product SKU. May not be present.
1193
2554
  # Corresponds to the JSON property `productId`
1194
2555
  # @return [String]
1195
2556
  attr_accessor :product_id
@@ -1206,7 +2567,7 @@ module Google
1206
2567
  # @return [Fixnum]
1207
2568
  attr_accessor :purchase_time_millis
1208
2569
 
1209
- # The purchase token generated to identify this purchase.
2570
+ # The purchase token generated to identify this purchase. May not be present.
1210
2571
  # Corresponds to the JSON property `purchaseToken`
1211
2572
  # @return [String]
1212
2573
  attr_accessor :purchase_token
@@ -1220,48 +2581,260 @@ module Google
1220
2581
  # @return [Fixnum]
1221
2582
  attr_accessor :purchase_type
1222
2583
 
1223
- # The quantity associated with the purchase of the inapp product.
1224
- # Corresponds to the JSON property `quantity`
1225
- # @return [Fixnum]
1226
- attr_accessor :quantity
2584
+ # The quantity associated with the purchase of the inapp product. If not present,
2585
+ # the quantity is 1.
2586
+ # Corresponds to the JSON property `quantity`
2587
+ # @return [Fixnum]
2588
+ attr_accessor :quantity
2589
+
2590
+ # ISO 3166-1 alpha-2 billing region code of the user at the time the product was
2591
+ # granted.
2592
+ # Corresponds to the JSON property `regionCode`
2593
+ # @return [String]
2594
+ attr_accessor :region_code
2595
+
2596
+ def initialize(**args)
2597
+ update!(**args)
2598
+ end
2599
+
2600
+ # Update properties of this object
2601
+ def update!(**args)
2602
+ @acknowledgement_state = args[:acknowledgement_state] if args.key?(:acknowledgement_state)
2603
+ @consumption_state = args[:consumption_state] if args.key?(:consumption_state)
2604
+ @developer_payload = args[:developer_payload] if args.key?(:developer_payload)
2605
+ @kind = args[:kind] if args.key?(:kind)
2606
+ @obfuscated_external_account_id = args[:obfuscated_external_account_id] if args.key?(:obfuscated_external_account_id)
2607
+ @obfuscated_external_profile_id = args[:obfuscated_external_profile_id] if args.key?(:obfuscated_external_profile_id)
2608
+ @order_id = args[:order_id] if args.key?(:order_id)
2609
+ @product_id = args[:product_id] if args.key?(:product_id)
2610
+ @purchase_state = args[:purchase_state] if args.key?(:purchase_state)
2611
+ @purchase_time_millis = args[:purchase_time_millis] if args.key?(:purchase_time_millis)
2612
+ @purchase_token = args[:purchase_token] if args.key?(:purchase_token)
2613
+ @purchase_type = args[:purchase_type] if args.key?(:purchase_type)
2614
+ @quantity = args[:quantity] if args.key?(:quantity)
2615
+ @region_code = args[:region_code] if args.key?(:region_code)
2616
+ end
2617
+ end
2618
+
2619
+ # Request for the product.purchases.acknowledge API.
2620
+ class ProductPurchasesAcknowledgeRequest
2621
+ include Google::Apis::Core::Hashable
2622
+
2623
+ # Payload to attach to the purchase.
2624
+ # Corresponds to the JSON property `developerPayload`
2625
+ # @return [String]
2626
+ attr_accessor :developer_payload
2627
+
2628
+ def initialize(**args)
2629
+ update!(**args)
2630
+ end
2631
+
2632
+ # Update properties of this object
2633
+ def update!(**args)
2634
+ @developer_payload = args[:developer_payload] if args.key?(:developer_payload)
2635
+ end
2636
+ end
2637
+
2638
+ # Configuration for a base plan specific to a region.
2639
+ class RegionalBasePlanConfig
2640
+ include Google::Apis::Core::Hashable
2641
+
2642
+ # Whether the base plan in the specified region is available for new subscribers.
2643
+ # Existing subscribers will not have their subscription canceled if this value
2644
+ # is set to false. If not specified, this will default to false.
2645
+ # Corresponds to the JSON property `newSubscriberAvailability`
2646
+ # @return [Boolean]
2647
+ attr_accessor :new_subscriber_availability
2648
+ alias_method :new_subscriber_availability?, :new_subscriber_availability
2649
+
2650
+ # Represents an amount of money with its currency type.
2651
+ # Corresponds to the JSON property `price`
2652
+ # @return [Google::Apis::AndroidpublisherV3::Money]
2653
+ attr_accessor :price
2654
+
2655
+ # Required. Region code this configuration applies to, as defined by ISO 3166-2,
2656
+ # e.g. "US".
2657
+ # Corresponds to the JSON property `regionCode`
2658
+ # @return [String]
2659
+ attr_accessor :region_code
2660
+
2661
+ def initialize(**args)
2662
+ update!(**args)
2663
+ end
2664
+
2665
+ # Update properties of this object
2666
+ def update!(**args)
2667
+ @new_subscriber_availability = args[:new_subscriber_availability] if args.key?(:new_subscriber_availability)
2668
+ @price = args[:price] if args.key?(:price)
2669
+ @region_code = args[:region_code] if args.key?(:region_code)
2670
+ end
2671
+ end
2672
+
2673
+ # Configuration for a price migration.
2674
+ class RegionalPriceMigrationConfig
2675
+ include Google::Apis::Core::Hashable
2676
+
2677
+ # Required. The cutoff time for historical prices that subscribers can remain
2678
+ # paying. Subscribers who are on a price that was created before this cutoff
2679
+ # time will be migrated to the currently-offered price. These subscribers will
2680
+ # receive a notification that they will be paying a different price. Subscribers
2681
+ # who do not agree to the new price will have their subscription ended at the
2682
+ # next renewal.
2683
+ # Corresponds to the JSON property `oldestAllowedPriceVersionTime`
2684
+ # @return [String]
2685
+ attr_accessor :oldest_allowed_price_version_time
2686
+
2687
+ # Required. Region code this configuration applies to, as defined by ISO 3166-2,
2688
+ # e.g. "US".
2689
+ # Corresponds to the JSON property `regionCode`
2690
+ # @return [String]
2691
+ attr_accessor :region_code
2692
+
2693
+ def initialize(**args)
2694
+ update!(**args)
2695
+ end
2696
+
2697
+ # Update properties of this object
2698
+ def update!(**args)
2699
+ @oldest_allowed_price_version_time = args[:oldest_allowed_price_version_time] if args.key?(:oldest_allowed_price_version_time)
2700
+ @region_code = args[:region_code] if args.key?(:region_code)
2701
+ end
2702
+ end
2703
+
2704
+ # Configuration for a subscription offer in a single region.
2705
+ class RegionalSubscriptionOfferConfig
2706
+ include Google::Apis::Core::Hashable
2707
+
2708
+ # Whether the subscription offer in the specified region is available for new
2709
+ # subscribers. Existing subscribers will not have their subscription cancelled
2710
+ # if this value is set to false. If not specified, this will default to false.
2711
+ # Corresponds to the JSON property `newSubscriberAvailability`
2712
+ # @return [Boolean]
2713
+ attr_accessor :new_subscriber_availability
2714
+ alias_method :new_subscriber_availability?, :new_subscriber_availability
2715
+
2716
+ # Required. Immutable. Region code this configuration applies to, as defined by
2717
+ # ISO 3166-2, e.g. "US".
2718
+ # Corresponds to the JSON property `regionCode`
2719
+ # @return [String]
2720
+ attr_accessor :region_code
2721
+
2722
+ def initialize(**args)
2723
+ update!(**args)
2724
+ end
2725
+
2726
+ # Update properties of this object
2727
+ def update!(**args)
2728
+ @new_subscriber_availability = args[:new_subscriber_availability] if args.key?(:new_subscriber_availability)
2729
+ @region_code = args[:region_code] if args.key?(:region_code)
2730
+ end
2731
+ end
2732
+
2733
+ # Configuration for a single phase of a subscription offer in a single region.
2734
+ class RegionalSubscriptionOfferPhaseConfig
2735
+ include Google::Apis::Core::Hashable
2736
+
2737
+ # Represents an amount of money with its currency type.
2738
+ # Corresponds to the JSON property `absoluteDiscount`
2739
+ # @return [Google::Apis::AndroidpublisherV3::Money]
2740
+ attr_accessor :absolute_discount
1227
2741
 
1228
- # ISO 3166-1 alpha-2 billing region code of the user at the time the product was
1229
- # granted.
2742
+ # Represents an amount of money with its currency type.
2743
+ # Corresponds to the JSON property `price`
2744
+ # @return [Google::Apis::AndroidpublisherV3::Money]
2745
+ attr_accessor :price
2746
+
2747
+ # Required. Immutable. The region to which this config applies.
1230
2748
  # Corresponds to the JSON property `regionCode`
1231
2749
  # @return [String]
1232
2750
  attr_accessor :region_code
1233
2751
 
2752
+ # The fraction of the base plan price prorated over the phase duration that the
2753
+ # user pays for this offer phase. For example, if the base plan price for this
2754
+ # region is $12 for a period of 1 year, then a 50% discount for a phase of a
2755
+ # duration of 3 months would correspond to a price of $1.50. The discount must
2756
+ # be specified as a fraction strictly larger than 0 and strictly smaller than 1.
2757
+ # The resulting price will be rounded to the nearest billable unit (e.g. cents
2758
+ # for USD). The relative discount is considered invalid if the discounted price
2759
+ # ends up being smaller than the minimum price allowed in this region.
2760
+ # Corresponds to the JSON property `relativeDiscount`
2761
+ # @return [Float]
2762
+ attr_accessor :relative_discount
2763
+
1234
2764
  def initialize(**args)
1235
2765
  update!(**args)
1236
2766
  end
1237
2767
 
1238
2768
  # Update properties of this object
1239
2769
  def update!(**args)
1240
- @acknowledgement_state = args[:acknowledgement_state] if args.key?(:acknowledgement_state)
1241
- @consumption_state = args[:consumption_state] if args.key?(:consumption_state)
1242
- @developer_payload = args[:developer_payload] if args.key?(:developer_payload)
1243
- @kind = args[:kind] if args.key?(:kind)
1244
- @obfuscated_external_account_id = args[:obfuscated_external_account_id] if args.key?(:obfuscated_external_account_id)
1245
- @obfuscated_external_profile_id = args[:obfuscated_external_profile_id] if args.key?(:obfuscated_external_profile_id)
1246
- @order_id = args[:order_id] if args.key?(:order_id)
1247
- @product_id = args[:product_id] if args.key?(:product_id)
1248
- @purchase_state = args[:purchase_state] if args.key?(:purchase_state)
1249
- @purchase_time_millis = args[:purchase_time_millis] if args.key?(:purchase_time_millis)
1250
- @purchase_token = args[:purchase_token] if args.key?(:purchase_token)
1251
- @purchase_type = args[:purchase_type] if args.key?(:purchase_type)
1252
- @quantity = args[:quantity] if args.key?(:quantity)
2770
+ @absolute_discount = args[:absolute_discount] if args.key?(:absolute_discount)
2771
+ @price = args[:price] if args.key?(:price)
1253
2772
  @region_code = args[:region_code] if args.key?(:region_code)
2773
+ @relative_discount = args[:relative_discount] if args.key?(:relative_discount)
1254
2774
  end
1255
2775
  end
1256
2776
 
1257
- # Request for the product.purchases.acknowledge API.
1258
- class ProductPurchasesAcknowledgeRequest
2777
+ # Specified details about taxation in a given geographical region.
2778
+ class RegionalTaxRateInfo
1259
2779
  include Google::Apis::Core::Hashable
1260
2780
 
1261
- # Payload to attach to the purchase.
1262
- # Corresponds to the JSON property `developerPayload`
2781
+ # You must tell us if your app contains streaming products to correctly charge
2782
+ # US state and local sales tax. Field only supported in United States.
2783
+ # Corresponds to the JSON property `eligibleForStreamingServiceTaxRate`
2784
+ # @return [Boolean]
2785
+ attr_accessor :eligible_for_streaming_service_tax_rate
2786
+ alias_method :eligible_for_streaming_service_tax_rate?, :eligible_for_streaming_service_tax_rate
2787
+
2788
+ # To collect communications or amusement taxes in the United States, choose the
2789
+ # appropriate tax category. [Learn more](https://support.google.com/googleplay/
2790
+ # android-developer/answer/10463498#streaming_tax).
2791
+ # Corresponds to the JSON property `streamingTaxType`
1263
2792
  # @return [String]
1264
- attr_accessor :developer_payload
2793
+ attr_accessor :streaming_tax_type
2794
+
2795
+ # Tax tier to specify reduced tax rate. Developers who sell digital news,
2796
+ # magazines, newspapers, books, or audiobooks in various regions may be eligible
2797
+ # for reduced tax rates. [Learn more](https://support.google.com/googleplay/
2798
+ # android-developer/answer/10463498).
2799
+ # Corresponds to the JSON property `taxTier`
2800
+ # @return [String]
2801
+ attr_accessor :tax_tier
2802
+
2803
+ def initialize(**args)
2804
+ update!(**args)
2805
+ end
2806
+
2807
+ # Update properties of this object
2808
+ def update!(**args)
2809
+ @eligible_for_streaming_service_tax_rate = args[:eligible_for_streaming_service_tax_rate] if args.key?(:eligible_for_streaming_service_tax_rate)
2810
+ @streaming_tax_type = args[:streaming_tax_type] if args.key?(:streaming_tax_type)
2811
+ @tax_tier = args[:tax_tier] if args.key?(:tax_tier)
2812
+ end
2813
+ end
2814
+
2815
+ # The version of the available regions being used for the specified resource.
2816
+ class RegionsVersion
2817
+ include Google::Apis::Core::Hashable
2818
+
2819
+ # Required. A string representing version of the available regions being used
2820
+ # for the specified resource. The current version is 2022/02.
2821
+ # Corresponds to the JSON property `version`
2822
+ # @return [String]
2823
+ attr_accessor :version
2824
+
2825
+ def initialize(**args)
2826
+ update!(**args)
2827
+ end
2828
+
2829
+ # Update properties of this object
2830
+ def update!(**args)
2831
+ @version = args[:version] if args.key?(:version)
2832
+ end
2833
+ end
2834
+
2835
+ # Information specific to cancellations caused by subscription replacement.
2836
+ class ReplacementCancellation
2837
+ include Google::Apis::Core::Hashable
1265
2838
 
1266
2839
  def initialize(**args)
1267
2840
  update!(**args)
@@ -1269,7 +2842,6 @@ module Google
1269
2842
 
1270
2843
  # Update properties of this object
1271
2844
  def update!(**args)
1272
- @developer_payload = args[:developer_payload] if args.key?(:developer_payload)
1273
2845
  end
1274
2846
  end
1275
2847
 
@@ -1411,23 +2983,357 @@ module Google
1411
2983
  end
1412
2984
  end
1413
2985
 
2986
+ # Information associated with purchases made with 'Subscribe with Google'.
2987
+ class SubscribeWithGoogleInfo
2988
+ include Google::Apis::Core::Hashable
2989
+
2990
+ # The email address of the user when the subscription was purchased.
2991
+ # Corresponds to the JSON property `emailAddress`
2992
+ # @return [String]
2993
+ attr_accessor :email_address
2994
+
2995
+ # The family name of the user when the subscription was purchased.
2996
+ # Corresponds to the JSON property `familyName`
2997
+ # @return [String]
2998
+ attr_accessor :family_name
2999
+
3000
+ # The given name of the user when the subscription was purchased.
3001
+ # Corresponds to the JSON property `givenName`
3002
+ # @return [String]
3003
+ attr_accessor :given_name
3004
+
3005
+ # The Google profile id of the user when the subscription was purchased.
3006
+ # Corresponds to the JSON property `profileId`
3007
+ # @return [String]
3008
+ attr_accessor :profile_id
3009
+
3010
+ # The profile name of the user when the subscription was purchased.
3011
+ # Corresponds to the JSON property `profileName`
3012
+ # @return [String]
3013
+ attr_accessor :profile_name
3014
+
3015
+ def initialize(**args)
3016
+ update!(**args)
3017
+ end
3018
+
3019
+ # Update properties of this object
3020
+ def update!(**args)
3021
+ @email_address = args[:email_address] if args.key?(:email_address)
3022
+ @family_name = args[:family_name] if args.key?(:family_name)
3023
+ @given_name = args[:given_name] if args.key?(:given_name)
3024
+ @profile_id = args[:profile_id] if args.key?(:profile_id)
3025
+ @profile_name = args[:profile_name] if args.key?(:profile_name)
3026
+ end
3027
+ end
3028
+
3029
+ # A single subscription for an app.
3030
+ class Subscription
3031
+ include Google::Apis::Core::Hashable
3032
+
3033
+ # Output only. Whether this subscription is archived. Archived subscriptions are
3034
+ # not available to any subscriber any longer, cannot be updated, and are not
3035
+ # returned in list requests unless the show archived flag is passed in.
3036
+ # Corresponds to the JSON property `archived`
3037
+ # @return [Boolean]
3038
+ attr_accessor :archived
3039
+ alias_method :archived?, :archived
3040
+
3041
+ # The set of base plans for this subscription. Represents the prices and
3042
+ # duration of the subscription if no other offers apply.
3043
+ # Corresponds to the JSON property `basePlans`
3044
+ # @return [Array<Google::Apis::AndroidpublisherV3::BasePlan>]
3045
+ attr_accessor :base_plans
3046
+
3047
+ # Required. List of localized listings for this subscription. Must contain at
3048
+ # least an entry for the default language of the parent app.
3049
+ # Corresponds to the JSON property `listings`
3050
+ # @return [Array<Google::Apis::AndroidpublisherV3::SubscriptionListing>]
3051
+ attr_accessor :listings
3052
+
3053
+ # Immutable. Package name of the parent app.
3054
+ # Corresponds to the JSON property `packageName`
3055
+ # @return [String]
3056
+ attr_accessor :package_name
3057
+
3058
+ # Immutable. Unique product ID of the product. Unique within the parent app.
3059
+ # Product IDs must be composed of lower-case letters (a-z), numbers (0-9),
3060
+ # underscores (_) and dots (.). It must start with a lower-case letter or number,
3061
+ # and be between 1 and 40 (inclusive) characters in length.
3062
+ # Corresponds to the JSON property `productId`
3063
+ # @return [String]
3064
+ attr_accessor :product_id
3065
+
3066
+ # Details about taxation, Google Play policy and legal compliance for
3067
+ # subscription products.
3068
+ # Corresponds to the JSON property `taxAndComplianceSettings`
3069
+ # @return [Google::Apis::AndroidpublisherV3::SubscriptionTaxAndComplianceSettings]
3070
+ attr_accessor :tax_and_compliance_settings
3071
+
3072
+ def initialize(**args)
3073
+ update!(**args)
3074
+ end
3075
+
3076
+ # Update properties of this object
3077
+ def update!(**args)
3078
+ @archived = args[:archived] if args.key?(:archived)
3079
+ @base_plans = args[:base_plans] if args.key?(:base_plans)
3080
+ @listings = args[:listings] if args.key?(:listings)
3081
+ @package_name = args[:package_name] if args.key?(:package_name)
3082
+ @product_id = args[:product_id] if args.key?(:product_id)
3083
+ @tax_and_compliance_settings = args[:tax_and_compliance_settings] if args.key?(:tax_and_compliance_settings)
3084
+ end
3085
+ end
3086
+
1414
3087
  # Information provided by the user when they complete the subscription
1415
3088
  # cancellation flow (cancellation reason survey).
1416
3089
  class SubscriptionCancelSurveyResult
1417
3090
  include Google::Apis::Core::Hashable
1418
3091
 
1419
- # The cancellation reason the user chose in the survey. Possible values are: 0.
1420
- # Other 1. I don't use this service enough 2. Technical issues 3. Cost-related
1421
- # reasons 4. I found a better app
1422
- # Corresponds to the JSON property `cancelSurveyReason`
3092
+ # The cancellation reason the user chose in the survey. Possible values are: 0.
3093
+ # Other 1. I don't use this service enough 2. Technical issues 3. Cost-related
3094
+ # reasons 4. I found a better app
3095
+ # Corresponds to the JSON property `cancelSurveyReason`
3096
+ # @return [Fixnum]
3097
+ attr_accessor :cancel_survey_reason
3098
+
3099
+ # The customized input cancel reason from the user. Only present when
3100
+ # cancelReason is 0.
3101
+ # Corresponds to the JSON property `userInputCancelReason`
3102
+ # @return [String]
3103
+ attr_accessor :user_input_cancel_reason
3104
+
3105
+ def initialize(**args)
3106
+ update!(**args)
3107
+ end
3108
+
3109
+ # Update properties of this object
3110
+ def update!(**args)
3111
+ @cancel_survey_reason = args[:cancel_survey_reason] if args.key?(:cancel_survey_reason)
3112
+ @user_input_cancel_reason = args[:user_input_cancel_reason] if args.key?(:user_input_cancel_reason)
3113
+ end
3114
+ end
3115
+
3116
+ # A SubscriptionDeferralInfo contains the data needed to defer a subscription
3117
+ # purchase to a future expiry time.
3118
+ class SubscriptionDeferralInfo
3119
+ include Google::Apis::Core::Hashable
3120
+
3121
+ # The desired next expiry time to assign to the subscription, in milliseconds
3122
+ # since the Epoch. The given time must be later/greater than the current expiry
3123
+ # time for the subscription.
3124
+ # Corresponds to the JSON property `desiredExpiryTimeMillis`
3125
+ # @return [Fixnum]
3126
+ attr_accessor :desired_expiry_time_millis
3127
+
3128
+ # The expected expiry time for the subscription. If the current expiry time for
3129
+ # the subscription is not the value specified here, the deferral will not occur.
3130
+ # Corresponds to the JSON property `expectedExpiryTimeMillis`
3131
+ # @return [Fixnum]
3132
+ attr_accessor :expected_expiry_time_millis
3133
+
3134
+ def initialize(**args)
3135
+ update!(**args)
3136
+ end
3137
+
3138
+ # Update properties of this object
3139
+ def update!(**args)
3140
+ @desired_expiry_time_millis = args[:desired_expiry_time_millis] if args.key?(:desired_expiry_time_millis)
3141
+ @expected_expiry_time_millis = args[:expected_expiry_time_millis] if args.key?(:expected_expiry_time_millis)
3142
+ end
3143
+ end
3144
+
3145
+ # Price change related information of a subscription item.
3146
+ class SubscriptionItemPriceChangeDetails
3147
+ include Google::Apis::Core::Hashable
3148
+
3149
+ # The renewal time at which the price change will become effective for the user.
3150
+ # This is subject to change(to a future time) due to cases where the renewal
3151
+ # time shifts like pause.
3152
+ # Corresponds to the JSON property `expectedNewPriceChargeTime`
3153
+ # @return [String]
3154
+ attr_accessor :expected_new_price_charge_time
3155
+
3156
+ # Represents an amount of money with its currency type.
3157
+ # Corresponds to the JSON property `newPrice`
3158
+ # @return [Google::Apis::AndroidpublisherV3::Money]
3159
+ attr_accessor :new_price
3160
+
3161
+ # Price change mode specifies how the subscription item price is changing.
3162
+ # Corresponds to the JSON property `priceChangeMode`
3163
+ # @return [String]
3164
+ attr_accessor :price_change_mode
3165
+
3166
+ # State the price change is currently in.
3167
+ # Corresponds to the JSON property `priceChangeState`
3168
+ # @return [String]
3169
+ attr_accessor :price_change_state
3170
+
3171
+ def initialize(**args)
3172
+ update!(**args)
3173
+ end
3174
+
3175
+ # Update properties of this object
3176
+ def update!(**args)
3177
+ @expected_new_price_charge_time = args[:expected_new_price_charge_time] if args.key?(:expected_new_price_charge_time)
3178
+ @new_price = args[:new_price] if args.key?(:new_price)
3179
+ @price_change_mode = args[:price_change_mode] if args.key?(:price_change_mode)
3180
+ @price_change_state = args[:price_change_state] if args.key?(:price_change_state)
3181
+ end
3182
+ end
3183
+
3184
+ # The consumer-visible metadata of a subscription.
3185
+ class SubscriptionListing
3186
+ include Google::Apis::Core::Hashable
3187
+
3188
+ # A list of benefits shown to the user on platforms such as the Play Store and
3189
+ # in restoration flows in the language of this listing. Plain text. Ordered list
3190
+ # of at most four benefits.
3191
+ # Corresponds to the JSON property `benefits`
3192
+ # @return [Array<String>]
3193
+ attr_accessor :benefits
3194
+
3195
+ # The description of this subscription in the language of this listing. Maximum
3196
+ # length - 80 characters. Plain text.
3197
+ # Corresponds to the JSON property `description`
3198
+ # @return [String]
3199
+ attr_accessor :description
3200
+
3201
+ # Required. The language of this listing, as defined by BCP-47, e.g. "en-US".
3202
+ # Corresponds to the JSON property `languageCode`
3203
+ # @return [String]
3204
+ attr_accessor :language_code
3205
+
3206
+ # Required. The title of this subscription in the language of this listing.
3207
+ # Plain text.
3208
+ # Corresponds to the JSON property `title`
3209
+ # @return [String]
3210
+ attr_accessor :title
3211
+
3212
+ def initialize(**args)
3213
+ update!(**args)
3214
+ end
3215
+
3216
+ # Update properties of this object
3217
+ def update!(**args)
3218
+ @benefits = args[:benefits] if args.key?(:benefits)
3219
+ @description = args[:description] if args.key?(:description)
3220
+ @language_code = args[:language_code] if args.key?(:language_code)
3221
+ @title = args[:title] if args.key?(:title)
3222
+ end
3223
+ end
3224
+
3225
+ # A single, temporary offer
3226
+ class SubscriptionOffer
3227
+ include Google::Apis::Core::Hashable
3228
+
3229
+ # Required. Immutable. The ID of the base plan to which this offer is an
3230
+ # extension.
3231
+ # Corresponds to the JSON property `basePlanId`
3232
+ # @return [String]
3233
+ attr_accessor :base_plan_id
3234
+
3235
+ # Required. Immutable. Unique ID of this subscription offer. Must be unique
3236
+ # within the base plan.
3237
+ # Corresponds to the JSON property `offerId`
3238
+ # @return [String]
3239
+ attr_accessor :offer_id
3240
+
3241
+ # List of up to 20 custom tags specified for this offer, and returned to the app
3242
+ # through the billing library.
3243
+ # Corresponds to the JSON property `offerTags`
3244
+ # @return [Array<Google::Apis::AndroidpublisherV3::OfferTag>]
3245
+ attr_accessor :offer_tags
3246
+
3247
+ # Configuration for any new locations Play may launch in specified on a
3248
+ # subscription offer.
3249
+ # Corresponds to the JSON property `otherRegionsConfig`
3250
+ # @return [Google::Apis::AndroidpublisherV3::OtherRegionsSubscriptionOfferConfig]
3251
+ attr_accessor :other_regions_config
3252
+
3253
+ # Required. Immutable. The package name of the app the parent subscription
3254
+ # belongs to.
3255
+ # Corresponds to the JSON property `packageName`
3256
+ # @return [String]
3257
+ attr_accessor :package_name
3258
+
3259
+ # Required. The phases of this subscription offer. Must contain at least one
3260
+ # entry, and may contain at most five. Users will always receive all these
3261
+ # phases in the specified order. Phases may not be added, removed, or reordered
3262
+ # after initial creation.
3263
+ # Corresponds to the JSON property `phases`
3264
+ # @return [Array<Google::Apis::AndroidpublisherV3::SubscriptionOfferPhase>]
3265
+ attr_accessor :phases
3266
+
3267
+ # Required. Immutable. The ID of the parent subscription this offer belongs to.
3268
+ # Corresponds to the JSON property `productId`
3269
+ # @return [String]
3270
+ attr_accessor :product_id
3271
+
3272
+ # Required. The region-specific configuration of this offer. Must contain at
3273
+ # least one entry.
3274
+ # Corresponds to the JSON property `regionalConfigs`
3275
+ # @return [Array<Google::Apis::AndroidpublisherV3::RegionalSubscriptionOfferConfig>]
3276
+ attr_accessor :regional_configs
3277
+
3278
+ # Output only. The current state of this offer. Can be changed using Activate
3279
+ # and Deactivate actions. NB: the base plan state supersedes this state, so an
3280
+ # active offer may not be available if the base plan is not active.
3281
+ # Corresponds to the JSON property `state`
3282
+ # @return [String]
3283
+ attr_accessor :state
3284
+
3285
+ # Defines the rule a user needs to satisfy to receive this offer.
3286
+ # Corresponds to the JSON property `targeting`
3287
+ # @return [Google::Apis::AndroidpublisherV3::SubscriptionOfferTargeting]
3288
+ attr_accessor :targeting
3289
+
3290
+ def initialize(**args)
3291
+ update!(**args)
3292
+ end
3293
+
3294
+ # Update properties of this object
3295
+ def update!(**args)
3296
+ @base_plan_id = args[:base_plan_id] if args.key?(:base_plan_id)
3297
+ @offer_id = args[:offer_id] if args.key?(:offer_id)
3298
+ @offer_tags = args[:offer_tags] if args.key?(:offer_tags)
3299
+ @other_regions_config = args[:other_regions_config] if args.key?(:other_regions_config)
3300
+ @package_name = args[:package_name] if args.key?(:package_name)
3301
+ @phases = args[:phases] if args.key?(:phases)
3302
+ @product_id = args[:product_id] if args.key?(:product_id)
3303
+ @regional_configs = args[:regional_configs] if args.key?(:regional_configs)
3304
+ @state = args[:state] if args.key?(:state)
3305
+ @targeting = args[:targeting] if args.key?(:targeting)
3306
+ end
3307
+ end
3308
+
3309
+ # A single phase of a subscription offer.
3310
+ class SubscriptionOfferPhase
3311
+ include Google::Apis::Core::Hashable
3312
+
3313
+ # Required. The duration of a single recurrence of this phase. Specified in ISO
3314
+ # 8601 format.
3315
+ # Corresponds to the JSON property `duration`
3316
+ # @return [String]
3317
+ attr_accessor :duration
3318
+
3319
+ # Configuration for any new locations Play may launch in for a single offer
3320
+ # phase.
3321
+ # Corresponds to the JSON property `otherRegionsConfig`
3322
+ # @return [Google::Apis::AndroidpublisherV3::OtherRegionsSubscriptionOfferPhaseConfig]
3323
+ attr_accessor :other_regions_config
3324
+
3325
+ # Required. The number of times this phase repeats. If this offer phase is not
3326
+ # free, each recurrence charges the user the price of this offer phase.
3327
+ # Corresponds to the JSON property `recurrenceCount`
1423
3328
  # @return [Fixnum]
1424
- attr_accessor :cancel_survey_reason
3329
+ attr_accessor :recurrence_count
1425
3330
 
1426
- # The customized input cancel reason from the user. Only present when
1427
- # cancelReason is 0.
1428
- # Corresponds to the JSON property `userInputCancelReason`
1429
- # @return [String]
1430
- attr_accessor :user_input_cancel_reason
3331
+ # Required. The region-specific configuration of this offer phase. This list
3332
+ # must contain exactly one entry for each region for which the subscription
3333
+ # offer has a regional config.
3334
+ # Corresponds to the JSON property `regionalConfigs`
3335
+ # @return [Array<Google::Apis::AndroidpublisherV3::RegionalSubscriptionOfferPhaseConfig>]
3336
+ attr_accessor :regional_configs
1431
3337
 
1432
3338
  def initialize(**args)
1433
3339
  update!(**args)
@@ -1435,28 +3341,27 @@ module Google
1435
3341
 
1436
3342
  # Update properties of this object
1437
3343
  def update!(**args)
1438
- @cancel_survey_reason = args[:cancel_survey_reason] if args.key?(:cancel_survey_reason)
1439
- @user_input_cancel_reason = args[:user_input_cancel_reason] if args.key?(:user_input_cancel_reason)
3344
+ @duration = args[:duration] if args.key?(:duration)
3345
+ @other_regions_config = args[:other_regions_config] if args.key?(:other_regions_config)
3346
+ @recurrence_count = args[:recurrence_count] if args.key?(:recurrence_count)
3347
+ @regional_configs = args[:regional_configs] if args.key?(:regional_configs)
1440
3348
  end
1441
3349
  end
1442
3350
 
1443
- # A SubscriptionDeferralInfo contains the data needed to defer a subscription
1444
- # purchase to a future expiry time.
1445
- class SubscriptionDeferralInfo
3351
+ # Defines the rule a user needs to satisfy to receive this offer.
3352
+ class SubscriptionOfferTargeting
1446
3353
  include Google::Apis::Core::Hashable
1447
3354
 
1448
- # The desired next expiry time to assign to the subscription, in milliseconds
1449
- # since the Epoch. The given time must be later/greater than the current expiry
1450
- # time for the subscription.
1451
- # Corresponds to the JSON property `desiredExpiryTimeMillis`
1452
- # @return [Fixnum]
1453
- attr_accessor :desired_expiry_time_millis
3355
+ # Represents a targeting rule of the form: User never had `scope` before.
3356
+ # Corresponds to the JSON property `acquisitionRule`
3357
+ # @return [Google::Apis::AndroidpublisherV3::AcquisitionTargetingRule]
3358
+ attr_accessor :acquisition_rule
1454
3359
 
1455
- # The expected expiry time for the subscription. If the current expiry time for
1456
- # the subscription is not the value specified here, the deferral will not occur.
1457
- # Corresponds to the JSON property `expectedExpiryTimeMillis`
1458
- # @return [Fixnum]
1459
- attr_accessor :expected_expiry_time_millis
3360
+ # Represents a targeting rule of the form: User currently has `scope` [with
3361
+ # billing period `billing_period`].
3362
+ # Corresponds to the JSON property `upgradeRule`
3363
+ # @return [Google::Apis::AndroidpublisherV3::UpgradeTargetingRule]
3364
+ attr_accessor :upgrade_rule
1460
3365
 
1461
3366
  def initialize(**args)
1462
3367
  update!(**args)
@@ -1464,8 +3369,8 @@ module Google
1464
3369
 
1465
3370
  # Update properties of this object
1466
3371
  def update!(**args)
1467
- @desired_expiry_time_millis = args[:desired_expiry_time_millis] if args.key?(:desired_expiry_time_millis)
1468
- @expected_expiry_time_millis = args[:expected_expiry_time_millis] if args.key?(:expected_expiry_time_millis)
3372
+ @acquisition_rule = args[:acquisition_rule] if args.key?(:acquisition_rule)
3373
+ @upgrade_rule = args[:upgrade_rule] if args.key?(:upgrade_rule)
1469
3374
  end
1470
3375
  end
1471
3376
 
@@ -1626,7 +3531,8 @@ module Google
1626
3531
  attr_accessor :obfuscated_external_profile_id
1627
3532
 
1628
3533
  # The order id of the latest recurring order associated with the purchase of the
1629
- # subscription.
3534
+ # subscription. If the subscription was canceled because payment was declined,
3535
+ # this will be the order id from the payment declined order.
1630
3536
  # Corresponds to the JSON property `orderId`
1631
3537
  # @return [String]
1632
3538
  attr_accessor :order_id
@@ -1638,9 +3544,11 @@ module Google
1638
3544
  # @return [Fixnum]
1639
3545
  attr_accessor :payment_state
1640
3546
 
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.
3547
+ # Price of the subscription, For tax exclusive countries, the price doesn't
3548
+ # include tax. For tax inclusive countries, the price includes tax. Price is
3549
+ # expressed in micro-units, where 1,000,000 micro-units represents one unit of
3550
+ # the currency. For example, if the subscription price is €1.99,
3551
+ # price_amount_micros is 1990000.
1644
3552
  # Corresponds to the JSON property `priceAmountMicros`
1645
3553
  # @return [Fixnum]
1646
3554
  attr_accessor :price_amount_micros
@@ -1741,6 +3649,153 @@ module Google
1741
3649
  end
1742
3650
  end
1743
3651
 
3652
+ # Item-level info for a subscription purchase.
3653
+ class SubscriptionPurchaseLineItem
3654
+ include Google::Apis::Core::Hashable
3655
+
3656
+ # Information related to an auto renewing plan.
3657
+ # Corresponds to the JSON property `autoRenewingPlan`
3658
+ # @return [Google::Apis::AndroidpublisherV3::AutoRenewingPlan]
3659
+ attr_accessor :auto_renewing_plan
3660
+
3661
+ # Time at which the subscription expired or will expire unless the access is
3662
+ # extended (ex. renews).
3663
+ # Corresponds to the JSON property `expiryTime`
3664
+ # @return [String]
3665
+ attr_accessor :expiry_time
3666
+
3667
+ # Offer details information related to a purchase line item.
3668
+ # Corresponds to the JSON property `offerDetails`
3669
+ # @return [Google::Apis::AndroidpublisherV3::OfferDetails]
3670
+ attr_accessor :offer_details
3671
+
3672
+ # Information related to a prepaid plan.
3673
+ # Corresponds to the JSON property `prepaidPlan`
3674
+ # @return [Google::Apis::AndroidpublisherV3::PrepaidPlan]
3675
+ attr_accessor :prepaid_plan
3676
+
3677
+ # The purchased product ID (for example, 'monthly001').
3678
+ # Corresponds to the JSON property `productId`
3679
+ # @return [String]
3680
+ attr_accessor :product_id
3681
+
3682
+ def initialize(**args)
3683
+ update!(**args)
3684
+ end
3685
+
3686
+ # Update properties of this object
3687
+ def update!(**args)
3688
+ @auto_renewing_plan = args[:auto_renewing_plan] if args.key?(:auto_renewing_plan)
3689
+ @expiry_time = args[:expiry_time] if args.key?(:expiry_time)
3690
+ @offer_details = args[:offer_details] if args.key?(:offer_details)
3691
+ @prepaid_plan = args[:prepaid_plan] if args.key?(:prepaid_plan)
3692
+ @product_id = args[:product_id] if args.key?(:product_id)
3693
+ end
3694
+ end
3695
+
3696
+ # Indicates the status of a user's subscription purchase.
3697
+ class SubscriptionPurchaseV2
3698
+ include Google::Apis::Core::Hashable
3699
+
3700
+ # The acknowledgement state of the subscription.
3701
+ # Corresponds to the JSON property `acknowledgementState`
3702
+ # @return [String]
3703
+ attr_accessor :acknowledgement_state
3704
+
3705
+ # Information specific to a subscription in canceled state.
3706
+ # Corresponds to the JSON property `canceledStateContext`
3707
+ # @return [Google::Apis::AndroidpublisherV3::CanceledStateContext]
3708
+ attr_accessor :canceled_state_context
3709
+
3710
+ # User account identifier in the third-party service.
3711
+ # Corresponds to the JSON property `externalAccountIdentifiers`
3712
+ # @return [Google::Apis::AndroidpublisherV3::ExternalAccountIdentifiers]
3713
+ attr_accessor :external_account_identifiers
3714
+
3715
+ # This kind represents a SubscriptionPurchaseV2 object in the androidpublisher
3716
+ # service.
3717
+ # Corresponds to the JSON property `kind`
3718
+ # @return [String]
3719
+ attr_accessor :kind
3720
+
3721
+ # The order id of the latest order associated with the purchase of the
3722
+ # subscription. For autoRenewing subscription, this is the order id of signup
3723
+ # order if it is not renewed yet, or the last recurring order id (success,
3724
+ # pending, or declined order). For prepaid subscription, this is the order id
3725
+ # associated with the queried purchase token.
3726
+ # Corresponds to the JSON property `latestOrderId`
3727
+ # @return [String]
3728
+ attr_accessor :latest_order_id
3729
+
3730
+ # Item-level info for a subscription purchase. The items in the same purchase
3731
+ # should be either all with AutoRenewingPlan or all with PrepaidPlan.
3732
+ # Corresponds to the JSON property `lineItems`
3733
+ # @return [Array<Google::Apis::AndroidpublisherV3::SubscriptionPurchaseLineItem>]
3734
+ attr_accessor :line_items
3735
+
3736
+ # The purchase token of the old subscription if this subscription is one of the
3737
+ # following: * Re-signup of a canceled but non-lapsed subscription * Upgrade/
3738
+ # downgrade from a previous subscription. * Convert from prepaid to auto
3739
+ # renewing subscription. * Convert from an auto renewing subscription to prepaid.
3740
+ # * Topup a prepaid subscription.
3741
+ # Corresponds to the JSON property `linkedPurchaseToken`
3742
+ # @return [String]
3743
+ attr_accessor :linked_purchase_token
3744
+
3745
+ # Information specific to a subscription in paused state.
3746
+ # Corresponds to the JSON property `pausedStateContext`
3747
+ # @return [Google::Apis::AndroidpublisherV3::PausedStateContext]
3748
+ attr_accessor :paused_state_context
3749
+
3750
+ # ISO 3166-1 alpha-2 billing country/region code of the user at the time the
3751
+ # subscription was granted.
3752
+ # Corresponds to the JSON property `regionCode`
3753
+ # @return [String]
3754
+ attr_accessor :region_code
3755
+
3756
+ # Time at which the subscription was granted. Not set for pending subscriptions (
3757
+ # subscription was created but awaiting payment during signup).
3758
+ # Corresponds to the JSON property `startTime`
3759
+ # @return [String]
3760
+ attr_accessor :start_time
3761
+
3762
+ # Information associated with purchases made with 'Subscribe with Google'.
3763
+ # Corresponds to the JSON property `subscribeWithGoogleInfo`
3764
+ # @return [Google::Apis::AndroidpublisherV3::SubscribeWithGoogleInfo]
3765
+ attr_accessor :subscribe_with_google_info
3766
+
3767
+ # The current state of the subscription.
3768
+ # Corresponds to the JSON property `subscriptionState`
3769
+ # @return [String]
3770
+ attr_accessor :subscription_state
3771
+
3772
+ # Whether this subscription purchase is a test purchase.
3773
+ # Corresponds to the JSON property `testPurchase`
3774
+ # @return [Google::Apis::AndroidpublisherV3::TestPurchase]
3775
+ attr_accessor :test_purchase
3776
+
3777
+ def initialize(**args)
3778
+ update!(**args)
3779
+ end
3780
+
3781
+ # Update properties of this object
3782
+ def update!(**args)
3783
+ @acknowledgement_state = args[:acknowledgement_state] if args.key?(:acknowledgement_state)
3784
+ @canceled_state_context = args[:canceled_state_context] if args.key?(:canceled_state_context)
3785
+ @external_account_identifiers = args[:external_account_identifiers] if args.key?(:external_account_identifiers)
3786
+ @kind = args[:kind] if args.key?(:kind)
3787
+ @latest_order_id = args[:latest_order_id] if args.key?(:latest_order_id)
3788
+ @line_items = args[:line_items] if args.key?(:line_items)
3789
+ @linked_purchase_token = args[:linked_purchase_token] if args.key?(:linked_purchase_token)
3790
+ @paused_state_context = args[:paused_state_context] if args.key?(:paused_state_context)
3791
+ @region_code = args[:region_code] if args.key?(:region_code)
3792
+ @start_time = args[:start_time] if args.key?(:start_time)
3793
+ @subscribe_with_google_info = args[:subscribe_with_google_info] if args.key?(:subscribe_with_google_info)
3794
+ @subscription_state = args[:subscription_state] if args.key?(:subscription_state)
3795
+ @test_purchase = args[:test_purchase] if args.key?(:test_purchase)
3796
+ end
3797
+ end
3798
+
1744
3799
  # Request for the purchases.subscriptions.acknowledge API.
1745
3800
  class SubscriptionPurchasesAcknowledgeRequest
1746
3801
  include Google::Apis::Core::Hashable
@@ -1799,6 +3854,37 @@ module Google
1799
3854
  end
1800
3855
  end
1801
3856
 
3857
+ # Details about taxation, Google Play policy and legal compliance for
3858
+ # subscription products.
3859
+ class SubscriptionTaxAndComplianceSettings
3860
+ include Google::Apis::Core::Hashable
3861
+
3862
+ # Digital content or service classification for products distributed to users in
3863
+ # the European Economic Area (EEA). The withdrawal regime under EEA consumer
3864
+ # laws depends on this classification. Refer to the [Help Center article](https:/
3865
+ # /support.google.com/googleplay/android-developer/answer/10463498) for more
3866
+ # information.
3867
+ # Corresponds to the JSON property `eeaWithdrawalRightType`
3868
+ # @return [String]
3869
+ attr_accessor :eea_withdrawal_right_type
3870
+
3871
+ # A mapping from region code to tax rate details. The keys are region codes as
3872
+ # defined by Unicode's "CLDR".
3873
+ # Corresponds to the JSON property `taxRateInfoByRegionCode`
3874
+ # @return [Hash<String,Google::Apis::AndroidpublisherV3::RegionalTaxRateInfo>]
3875
+ attr_accessor :tax_rate_info_by_region_code
3876
+
3877
+ def initialize(**args)
3878
+ update!(**args)
3879
+ end
3880
+
3881
+ # Update properties of this object
3882
+ def update!(**args)
3883
+ @eea_withdrawal_right_type = args[:eea_withdrawal_right_type] if args.key?(:eea_withdrawal_right_type)
3884
+ @tax_rate_info_by_region_code = args[:tax_rate_info_by_region_code] if args.key?(:tax_rate_info_by_region_code)
3885
+ end
3886
+ end
3887
+
1802
3888
  # Response to list previously created system APK variants.
1803
3889
  class SystemApksListResponse
1804
3890
  include Google::Apis::Core::Hashable
@@ -1818,7 +3904,75 @@ module Google
1818
3904
  end
1819
3905
  end
1820
3906
 
1821
- # The testers of an app. The resource for TestersService.
3907
+ # Representation of a system feature.
3908
+ class SystemFeature
3909
+ include Google::Apis::Core::Hashable
3910
+
3911
+ # The name of the feature.
3912
+ # Corresponds to the JSON property `name`
3913
+ # @return [String]
3914
+ attr_accessor :name
3915
+
3916
+ def initialize(**args)
3917
+ update!(**args)
3918
+ end
3919
+
3920
+ # Update properties of this object
3921
+ def update!(**args)
3922
+ @name = args[:name] if args.key?(:name)
3923
+ end
3924
+ end
3925
+
3926
+ # Information specific to cancellations initiated by Google system.
3927
+ class SystemInitiatedCancellation
3928
+ include Google::Apis::Core::Hashable
3929
+
3930
+ def initialize(**args)
3931
+ update!(**args)
3932
+ end
3933
+
3934
+ # Update properties of this object
3935
+ def update!(**args)
3936
+ end
3937
+ end
3938
+
3939
+ # Defines the scope of subscriptions which a targeting rule can match to target
3940
+ # offers to users based on past or current entitlement.
3941
+ class TargetingRuleScope
3942
+ include Google::Apis::Core::Hashable
3943
+
3944
+ # The scope of the current targeting rule is the subscription with the specified
3945
+ # subscription ID. Must be a subscription within the same parent app.
3946
+ # Corresponds to the JSON property `specificSubscriptionInApp`
3947
+ # @return [String]
3948
+ attr_accessor :specific_subscription_in_app
3949
+
3950
+ def initialize(**args)
3951
+ update!(**args)
3952
+ end
3953
+
3954
+ # Update properties of this object
3955
+ def update!(**args)
3956
+ @specific_subscription_in_app = args[:specific_subscription_in_app] if args.key?(:specific_subscription_in_app)
3957
+ end
3958
+ end
3959
+
3960
+ # Whether this subscription purchase is a test purchase.
3961
+ class TestPurchase
3962
+ include Google::Apis::Core::Hashable
3963
+
3964
+ def initialize(**args)
3965
+ update!(**args)
3966
+ end
3967
+
3968
+ # Update properties of this object
3969
+ def update!(**args)
3970
+ end
3971
+ end
3972
+
3973
+ # The testers of an app. The resource for TestersService. Note: while it is
3974
+ # possible in the Play Console UI to add testers via email lists, email lists
3975
+ # are not supported by this resource.
1822
3976
  class Testers
1823
3977
  include Google::Apis::Core::Hashable
1824
3978
 
@@ -1925,6 +4079,45 @@ module Google
1925
4079
  end
1926
4080
  end
1927
4081
 
4082
+ # Resource for per-track country availability information.
4083
+ class TrackCountryAvailability
4084
+ include Google::Apis::Core::Hashable
4085
+
4086
+ # A list of one or more countries where artifacts in this track are available.
4087
+ # This list includes all countries that are targeted by the track, even if only
4088
+ # specific carriers are targeted in that country.
4089
+ # Corresponds to the JSON property `countries`
4090
+ # @return [Array<Google::Apis::AndroidpublisherV3::TrackTargetedCountry>]
4091
+ attr_accessor :countries
4092
+
4093
+ # Whether artifacts in this track are available to "rest of the world" countries.
4094
+ # Corresponds to the JSON property `restOfWorld`
4095
+ # @return [Boolean]
4096
+ attr_accessor :rest_of_world
4097
+ alias_method :rest_of_world?, :rest_of_world
4098
+
4099
+ # Whether this track's availability is synced with the default production track.
4100
+ # See https://support.google.com/googleplay/android-developer/answer/7550024 for
4101
+ # more information on syncing country availability with production. Note that if
4102
+ # this is true, the returned "countries" and "rest_of_world" fields will reflect
4103
+ # the values for the default production track.
4104
+ # Corresponds to the JSON property `syncWithProduction`
4105
+ # @return [Boolean]
4106
+ attr_accessor :sync_with_production
4107
+ alias_method :sync_with_production?, :sync_with_production
4108
+
4109
+ def initialize(**args)
4110
+ update!(**args)
4111
+ end
4112
+
4113
+ # Update properties of this object
4114
+ def update!(**args)
4115
+ @countries = args[:countries] if args.key?(:countries)
4116
+ @rest_of_world = args[:rest_of_world] if args.key?(:rest_of_world)
4117
+ @sync_with_production = args[:sync_with_production] if args.key?(:sync_with_production)
4118
+ end
4119
+ end
4120
+
1928
4121
  # A release within a track.
1929
4122
  class TrackRelease
1930
4123
  include Google::Apis::Core::Hashable
@@ -1988,6 +4181,25 @@ module Google
1988
4181
  end
1989
4182
  end
1990
4183
 
4184
+ # Representation of a single country where the contents of a track are available.
4185
+ class TrackTargetedCountry
4186
+ include Google::Apis::Core::Hashable
4187
+
4188
+ # The country to target, as a two-letter CLDR code.
4189
+ # Corresponds to the JSON property `countryCode`
4190
+ # @return [String]
4191
+ attr_accessor :country_code
4192
+
4193
+ def initialize(**args)
4194
+ update!(**args)
4195
+ end
4196
+
4197
+ # Update properties of this object
4198
+ def update!(**args)
4199
+ @country_code = args[:country_code] if args.key?(:country_code)
4200
+ end
4201
+ end
4202
+
1991
4203
  # Response listing all tracks.
1992
4204
  class TracksListResponse
1993
4205
  include Google::Apis::Core::Hashable
@@ -2013,6 +4225,107 @@ module Google
2013
4225
  end
2014
4226
  end
2015
4227
 
4228
+ # Represents a targeting rule of the form: User currently has `scope` [with
4229
+ # billing period `billing_period`].
4230
+ class UpgradeTargetingRule
4231
+ include Google::Apis::Core::Hashable
4232
+
4233
+ # The specific billing period duration, specified in ISO 8601 format, that a
4234
+ # user must be currently subscribed to to be eligible for this rule. If not
4235
+ # specified, users subscribed to any billing period are matched.
4236
+ # Corresponds to the JSON property `billingPeriodDuration`
4237
+ # @return [String]
4238
+ attr_accessor :billing_period_duration
4239
+
4240
+ # Limit this offer to only once per user. If set to true, a user can never be
4241
+ # eligible for this offer again if they ever subscribed to this offer.
4242
+ # Corresponds to the JSON property `oncePerUser`
4243
+ # @return [Boolean]
4244
+ attr_accessor :once_per_user
4245
+ alias_method :once_per_user?, :once_per_user
4246
+
4247
+ # Defines the scope of subscriptions which a targeting rule can match to target
4248
+ # offers to users based on past or current entitlement.
4249
+ # Corresponds to the JSON property `scope`
4250
+ # @return [Google::Apis::AndroidpublisherV3::TargetingRuleScope]
4251
+ attr_accessor :scope
4252
+
4253
+ def initialize(**args)
4254
+ update!(**args)
4255
+ end
4256
+
4257
+ # Update properties of this object
4258
+ def update!(**args)
4259
+ @billing_period_duration = args[:billing_period_duration] if args.key?(:billing_period_duration)
4260
+ @once_per_user = args[:once_per_user] if args.key?(:once_per_user)
4261
+ @scope = args[:scope] if args.key?(:scope)
4262
+ end
4263
+ end
4264
+
4265
+ # A user resource.
4266
+ class User
4267
+ include Google::Apis::Core::Hashable
4268
+
4269
+ # Output only. The state of the user's access to the Play Console.
4270
+ # Corresponds to the JSON property `accessState`
4271
+ # @return [String]
4272
+ attr_accessor :access_state
4273
+
4274
+ # Permissions for the user which apply across the developer account.
4275
+ # Corresponds to the JSON property `developerAccountPermissions`
4276
+ # @return [Array<String>]
4277
+ attr_accessor :developer_account_permissions
4278
+
4279
+ # Immutable. The user's email address.
4280
+ # Corresponds to the JSON property `email`
4281
+ # @return [String]
4282
+ attr_accessor :email
4283
+
4284
+ # The time at which the user's access expires, if set. When setting this value,
4285
+ # it must always be in the future.
4286
+ # Corresponds to the JSON property `expirationTime`
4287
+ # @return [String]
4288
+ attr_accessor :expiration_time
4289
+
4290
+ # Output only. Per-app permissions for the user.
4291
+ # Corresponds to the JSON property `grants`
4292
+ # @return [Array<Google::Apis::AndroidpublisherV3::Grant>]
4293
+ attr_accessor :grants
4294
+
4295
+ # Required. Resource name for this user, following the pattern "developers/`
4296
+ # developer`/users/`email`".
4297
+ # Corresponds to the JSON property `name`
4298
+ # @return [String]
4299
+ attr_accessor :name
4300
+
4301
+ # Output only. Whether there are more permissions for the user that are not
4302
+ # represented here. This can happen if the caller does not have permission to
4303
+ # manage all apps in the account. This is also `true` if this user is the
4304
+ # account owner. If this field is `true`, it should be taken as a signal that
4305
+ # this user cannot be fully managed via the API. That is, the API caller is not
4306
+ # be able to manage all of the permissions this user holds, either because it
4307
+ # doesn't know about them or because the user is the account owner.
4308
+ # Corresponds to the JSON property `partial`
4309
+ # @return [Boolean]
4310
+ attr_accessor :partial
4311
+ alias_method :partial?, :partial
4312
+
4313
+ def initialize(**args)
4314
+ update!(**args)
4315
+ end
4316
+
4317
+ # Update properties of this object
4318
+ def update!(**args)
4319
+ @access_state = args[:access_state] if args.key?(:access_state)
4320
+ @developer_account_permissions = args[:developer_account_permissions] if args.key?(:developer_account_permissions)
4321
+ @email = args[:email] if args.key?(:email)
4322
+ @expiration_time = args[:expiration_time] if args.key?(:expiration_time)
4323
+ @grants = args[:grants] if args.key?(:grants)
4324
+ @name = args[:name] if args.key?(:name)
4325
+ @partial = args[:partial] if args.key?(:partial)
4326
+ end
4327
+ end
4328
+
2016
4329
  # User entry from conversation between user and developer.
2017
4330
  class UserComment
2018
4331
  include Google::Apis::Core::Hashable
@@ -2108,6 +4421,33 @@ module Google
2108
4421
  end
2109
4422
  end
2110
4423
 
4424
+ # Information specific to cancellations initiated by users.
4425
+ class UserInitiatedCancellation
4426
+ include Google::Apis::Core::Hashable
4427
+
4428
+ # Result of the cancel survey when the subscription was canceled by the user.
4429
+ # Corresponds to the JSON property `cancelSurveyResult`
4430
+ # @return [Google::Apis::AndroidpublisherV3::CancelSurveyResult]
4431
+ attr_accessor :cancel_survey_result
4432
+
4433
+ # The time at which the subscription was canceled by the user. The user might
4434
+ # still have access to the subscription after this time. Use line_items.
4435
+ # expiry_time to determine if a user still has access.
4436
+ # Corresponds to the JSON property `cancelTime`
4437
+ # @return [String]
4438
+ attr_accessor :cancel_time
4439
+
4440
+ def initialize(**args)
4441
+ update!(**args)
4442
+ end
4443
+
4444
+ # Update properties of this object
4445
+ def update!(**args)
4446
+ @cancel_survey_result = args[:cancel_survey_result] if args.key?(:cancel_survey_result)
4447
+ @cancel_time = args[:cancel_time] if args.key?(:cancel_time)
4448
+ end
4449
+ end
4450
+
2111
4451
  # A permission used by this APK.
2112
4452
  class UsesPermission
2113
4453
  include Google::Apis::Core::Hashable