google-apis-androidpublisher_v3 0.1.0 → 0.35.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,106 @@ 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
+ # Definition of user country sets for the app.
1104
+ # Corresponds to the JSON property `userCountrySets`
1105
+ # @return [Array<Google::Apis::AndroidpublisherV3::UserCountrySet>]
1106
+ attr_accessor :user_country_sets
1107
+
1108
+ def initialize(**args)
1109
+ update!(**args)
1110
+ end
1111
+
1112
+ # Update properties of this object
1113
+ def update!(**args)
1114
+ @device_groups = args[:device_groups] if args.key?(:device_groups)
1115
+ @device_tier_config_id = args[:device_tier_config_id] if args.key?(:device_tier_config_id)
1116
+ @device_tier_set = args[:device_tier_set] if args.key?(:device_tier_set)
1117
+ @user_country_sets = args[:user_country_sets] if args.key?(:user_country_sets)
1118
+ end
1119
+ end
1120
+
1121
+ # A set of device tiers. A tier set determines what variation of app content
1122
+ # gets served to a specific device, for device-targeted content. You should
1123
+ # assign a priority level to each tier, which determines the ordering by which
1124
+ # they are evaluated by Play. See the documentation of DeviceTier.level for more
1125
+ # details.
1126
+ class DeviceTierSet
1127
+ include Google::Apis::Core::Hashable
1128
+
1129
+ # Device tiers belonging to the set.
1130
+ # Corresponds to the JSON property `deviceTiers`
1131
+ # @return [Array<Google::Apis::AndroidpublisherV3::DeviceTier>]
1132
+ attr_accessor :device_tiers
1133
+
1134
+ def initialize(**args)
1135
+ update!(**args)
1136
+ end
1137
+
1138
+ # Update properties of this object
1139
+ def update!(**args)
1140
+ @device_tiers = args[:device_tiers] if args.key?(:device_tiers)
1141
+ end
1142
+ end
1143
+
497
1144
  # An expansion file. The resource for ExpansionFilesService.
498
1145
  class ExpansionFile
499
1146
  include Google::Apis::Core::Hashable
@@ -541,6 +1188,45 @@ module Google
541
1188
  end
542
1189
  end
543
1190
 
1191
+ # User account identifier in the third-party service.
1192
+ class ExternalAccountIdentifiers
1193
+ include Google::Apis::Core::Hashable
1194
+
1195
+ # User account identifier in the third-party service. Only present if account
1196
+ # linking happened as part of the subscription purchase flow.
1197
+ # Corresponds to the JSON property `externalAccountId`
1198
+ # @return [String]
1199
+ attr_accessor :external_account_id
1200
+
1201
+ # An obfuscated version of the id that is uniquely associated with the user's
1202
+ # account in your app. Present for the following purchases: * If account linking
1203
+ # happened as part of the subscription purchase flow. * It was specified using
1204
+ # https://developer.android.com/reference/com/android/billingclient/api/
1205
+ # BillingFlowParams.Builder#setobfuscatedaccountid when the purchase was made.
1206
+ # Corresponds to the JSON property `obfuscatedExternalAccountId`
1207
+ # @return [String]
1208
+ attr_accessor :obfuscated_external_account_id
1209
+
1210
+ # An obfuscated version of the id that is uniquely associated with the user's
1211
+ # profile in your app. Only present if specified using https://developer.android.
1212
+ # com/reference/com/android/billingclient/api/BillingFlowParams.Builder#
1213
+ # setobfuscatedprofileid when the purchase was made.
1214
+ # Corresponds to the JSON property `obfuscatedExternalProfileId`
1215
+ # @return [String]
1216
+ attr_accessor :obfuscated_external_profile_id
1217
+
1218
+ def initialize(**args)
1219
+ update!(**args)
1220
+ end
1221
+
1222
+ # Update properties of this object
1223
+ def update!(**args)
1224
+ @external_account_id = args[:external_account_id] if args.key?(:external_account_id)
1225
+ @obfuscated_external_account_id = args[:obfuscated_external_account_id] if args.key?(:obfuscated_external_account_id)
1226
+ @obfuscated_external_profile_id = args[:obfuscated_external_profile_id] if args.key?(:obfuscated_external_profile_id)
1227
+ end
1228
+ end
1229
+
544
1230
  # Defines an APK available for this application that is hosted externally and
545
1231
  # not uploaded to Google Play. This function is only available to organizations
546
1232
  # using Managed Play whose application is configured to restrict distribution to
@@ -648,6 +1334,227 @@ module Google
648
1334
  end
649
1335
  end
650
1336
 
1337
+ # Response to list generated APKs.
1338
+ class GeneratedApksListResponse
1339
+ include Google::Apis::Core::Hashable
1340
+
1341
+ # All generated APKs, grouped by the APK signing key.
1342
+ # Corresponds to the JSON property `generatedApks`
1343
+ # @return [Array<Google::Apis::AndroidpublisherV3::GeneratedApksPerSigningKey>]
1344
+ attr_accessor :generated_apks
1345
+
1346
+ def initialize(**args)
1347
+ update!(**args)
1348
+ end
1349
+
1350
+ # Update properties of this object
1351
+ def update!(**args)
1352
+ @generated_apks = args[:generated_apks] if args.key?(:generated_apks)
1353
+ end
1354
+ end
1355
+
1356
+ # Download metadata for split, standalone and universal APKs, as well as asset
1357
+ # pack slices, signed with a given key.
1358
+ class GeneratedApksPerSigningKey
1359
+ include Google::Apis::Core::Hashable
1360
+
1361
+ # SHA256 hash of the APK signing public key certificate.
1362
+ # Corresponds to the JSON property `certificateSha256Hash`
1363
+ # @return [String]
1364
+ attr_accessor :certificate_sha256_hash
1365
+
1366
+ # List of asset pack slices which will be served for this app bundle, signed
1367
+ # with a key corresponding to certificate_sha256_hash.
1368
+ # Corresponds to the JSON property `generatedAssetPackSlices`
1369
+ # @return [Array<Google::Apis::AndroidpublisherV3::GeneratedAssetPackSlice>]
1370
+ attr_accessor :generated_asset_pack_slices
1371
+
1372
+ # List of generated split APKs, signed with a key corresponding to
1373
+ # certificate_sha256_hash.
1374
+ # Corresponds to the JSON property `generatedSplitApks`
1375
+ # @return [Array<Google::Apis::AndroidpublisherV3::GeneratedSplitApk>]
1376
+ attr_accessor :generated_split_apks
1377
+
1378
+ # List of generated standalone APKs, signed with a key corresponding to
1379
+ # certificate_sha256_hash.
1380
+ # Corresponds to the JSON property `generatedStandaloneApks`
1381
+ # @return [Array<Google::Apis::AndroidpublisherV3::GeneratedStandaloneApk>]
1382
+ attr_accessor :generated_standalone_apks
1383
+
1384
+ # Download metadata for a universal APK.
1385
+ # Corresponds to the JSON property `generatedUniversalApk`
1386
+ # @return [Google::Apis::AndroidpublisherV3::GeneratedUniversalApk]
1387
+ attr_accessor :generated_universal_apk
1388
+
1389
+ def initialize(**args)
1390
+ update!(**args)
1391
+ end
1392
+
1393
+ # Update properties of this object
1394
+ def update!(**args)
1395
+ @certificate_sha256_hash = args[:certificate_sha256_hash] if args.key?(:certificate_sha256_hash)
1396
+ @generated_asset_pack_slices = args[:generated_asset_pack_slices] if args.key?(:generated_asset_pack_slices)
1397
+ @generated_split_apks = args[:generated_split_apks] if args.key?(:generated_split_apks)
1398
+ @generated_standalone_apks = args[:generated_standalone_apks] if args.key?(:generated_standalone_apks)
1399
+ @generated_universal_apk = args[:generated_universal_apk] if args.key?(:generated_universal_apk)
1400
+ end
1401
+ end
1402
+
1403
+ # Download metadata for an asset pack slice.
1404
+ class GeneratedAssetPackSlice
1405
+ include Google::Apis::Core::Hashable
1406
+
1407
+ # Download ID, which uniquely identifies the APK to download. Should be supplied
1408
+ # to `generatedapks.download` method.
1409
+ # Corresponds to the JSON property `downloadId`
1410
+ # @return [String]
1411
+ attr_accessor :download_id
1412
+
1413
+ # Name of the module that this asset slice belongs to.
1414
+ # Corresponds to the JSON property `moduleName`
1415
+ # @return [String]
1416
+ attr_accessor :module_name
1417
+
1418
+ # Asset slice ID.
1419
+ # Corresponds to the JSON property `sliceId`
1420
+ # @return [String]
1421
+ attr_accessor :slice_id
1422
+
1423
+ # Asset module version.
1424
+ # Corresponds to the JSON property `version`
1425
+ # @return [Fixnum]
1426
+ attr_accessor :version
1427
+
1428
+ def initialize(**args)
1429
+ update!(**args)
1430
+ end
1431
+
1432
+ # Update properties of this object
1433
+ def update!(**args)
1434
+ @download_id = args[:download_id] if args.key?(:download_id)
1435
+ @module_name = args[:module_name] if args.key?(:module_name)
1436
+ @slice_id = args[:slice_id] if args.key?(:slice_id)
1437
+ @version = args[:version] if args.key?(:version)
1438
+ end
1439
+ end
1440
+
1441
+ # Download metadata for a split APK.
1442
+ class GeneratedSplitApk
1443
+ include Google::Apis::Core::Hashable
1444
+
1445
+ # Download ID, which uniquely identifies the APK to download. Should be supplied
1446
+ # to `generatedapks.download` method.
1447
+ # Corresponds to the JSON property `downloadId`
1448
+ # @return [String]
1449
+ attr_accessor :download_id
1450
+
1451
+ # Name of the module that this APK belongs to.
1452
+ # Corresponds to the JSON property `moduleName`
1453
+ # @return [String]
1454
+ attr_accessor :module_name
1455
+
1456
+ # Split ID. Empty for the main split of the base module.
1457
+ # Corresponds to the JSON property `splitId`
1458
+ # @return [String]
1459
+ attr_accessor :split_id
1460
+
1461
+ # ID of the generated variant.
1462
+ # Corresponds to the JSON property `variantId`
1463
+ # @return [Fixnum]
1464
+ attr_accessor :variant_id
1465
+
1466
+ def initialize(**args)
1467
+ update!(**args)
1468
+ end
1469
+
1470
+ # Update properties of this object
1471
+ def update!(**args)
1472
+ @download_id = args[:download_id] if args.key?(:download_id)
1473
+ @module_name = args[:module_name] if args.key?(:module_name)
1474
+ @split_id = args[:split_id] if args.key?(:split_id)
1475
+ @variant_id = args[:variant_id] if args.key?(:variant_id)
1476
+ end
1477
+ end
1478
+
1479
+ # Download metadata for a standalone APK.
1480
+ class GeneratedStandaloneApk
1481
+ include Google::Apis::Core::Hashable
1482
+
1483
+ # Download ID, which uniquely identifies the APK to download. Should be supplied
1484
+ # to `generatedapks.download` method.
1485
+ # Corresponds to the JSON property `downloadId`
1486
+ # @return [String]
1487
+ attr_accessor :download_id
1488
+
1489
+ # ID of the generated variant.
1490
+ # Corresponds to the JSON property `variantId`
1491
+ # @return [Fixnum]
1492
+ attr_accessor :variant_id
1493
+
1494
+ def initialize(**args)
1495
+ update!(**args)
1496
+ end
1497
+
1498
+ # Update properties of this object
1499
+ def update!(**args)
1500
+ @download_id = args[:download_id] if args.key?(:download_id)
1501
+ @variant_id = args[:variant_id] if args.key?(:variant_id)
1502
+ end
1503
+ end
1504
+
1505
+ # Download metadata for a universal APK.
1506
+ class GeneratedUniversalApk
1507
+ include Google::Apis::Core::Hashable
1508
+
1509
+ # Download ID, which uniquely identifies the APK to download. Should be supplied
1510
+ # to `generatedapks.download` method.
1511
+ # Corresponds to the JSON property `downloadId`
1512
+ # @return [String]
1513
+ attr_accessor :download_id
1514
+
1515
+ def initialize(**args)
1516
+ update!(**args)
1517
+ end
1518
+
1519
+ # Update properties of this object
1520
+ def update!(**args)
1521
+ @download_id = args[:download_id] if args.key?(:download_id)
1522
+ end
1523
+ end
1524
+
1525
+ # An access grant resource.
1526
+ class Grant
1527
+ include Google::Apis::Core::Hashable
1528
+
1529
+ # The permissions granted to the user for this app.
1530
+ # Corresponds to the JSON property `appLevelPermissions`
1531
+ # @return [Array<String>]
1532
+ attr_accessor :app_level_permissions
1533
+
1534
+ # Required. Resource name for this grant, following the pattern "developers/`
1535
+ # developer`/users/`email`/grants/`package_name`". If this grant is for a draft
1536
+ # app, the app ID will be used in this resource name instead of the package name.
1537
+ # Corresponds to the JSON property `name`
1538
+ # @return [String]
1539
+ attr_accessor :name
1540
+
1541
+ # Immutable. The package name of the app. This will be empty for draft apps.
1542
+ # Corresponds to the JSON property `packageName`
1543
+ # @return [String]
1544
+ attr_accessor :package_name
1545
+
1546
+ def initialize(**args)
1547
+ update!(**args)
1548
+ end
1549
+
1550
+ # Update properties of this object
1551
+ def update!(**args)
1552
+ @app_level_permissions = args[:app_level_permissions] if args.key?(:app_level_permissions)
1553
+ @name = args[:name] if args.key?(:name)
1554
+ @package_name = args[:package_name] if args.key?(:package_name)
1555
+ end
1556
+ end
1557
+
651
1558
  # An uploaded image. The resource for ImagesService.
652
1559
  class Image
653
1560
  include Google::Apis::Core::Hashable
@@ -770,6 +1677,11 @@ module Google
770
1677
  # @return [Hash<String,Google::Apis::AndroidpublisherV3::InAppProductListing>]
771
1678
  attr_accessor :listings
772
1679
 
1680
+ # Details about taxation and legal compliance for managed products.
1681
+ # Corresponds to the JSON property `managedProductTaxesAndComplianceSettings`
1682
+ # @return [Google::Apis::AndroidpublisherV3::ManagedProductTaxAndComplianceSettings]
1683
+ attr_accessor :managed_product_taxes_and_compliance_settings
1684
+
773
1685
  # Package name of the parent app.
774
1686
  # Corresponds to the JSON property `packageName`
775
1687
  # @return [String]
@@ -803,6 +1715,12 @@ module Google
803
1715
  # @return [String]
804
1716
  attr_accessor :subscription_period
805
1717
 
1718
+ # Details about taxation, Google Play policy and legal compliance for
1719
+ # subscription products.
1720
+ # Corresponds to the JSON property `subscriptionTaxesAndComplianceSettings`
1721
+ # @return [Google::Apis::AndroidpublisherV3::SubscriptionTaxAndComplianceSettings]
1722
+ attr_accessor :subscription_taxes_and_compliance_settings
1723
+
806
1724
  # Trial period, specified in ISO 8601 format. Acceptable values are anything
807
1725
  # between P7D (seven days) and P999D (999 days).
808
1726
  # Corresponds to the JSON property `trialPeriod`
@@ -819,12 +1737,14 @@ module Google
819
1737
  @default_price = args[:default_price] if args.key?(:default_price)
820
1738
  @grace_period = args[:grace_period] if args.key?(:grace_period)
821
1739
  @listings = args[:listings] if args.key?(:listings)
1740
+ @managed_product_taxes_and_compliance_settings = args[:managed_product_taxes_and_compliance_settings] if args.key?(:managed_product_taxes_and_compliance_settings)
822
1741
  @package_name = args[:package_name] if args.key?(:package_name)
823
1742
  @prices = args[:prices] if args.key?(:prices)
824
1743
  @purchase_type = args[:purchase_type] if args.key?(:purchase_type)
825
1744
  @sku = args[:sku] if args.key?(:sku)
826
1745
  @status = args[:status] if args.key?(:status)
827
1746
  @subscription_period = args[:subscription_period] if args.key?(:subscription_period)
1747
+ @subscription_taxes_and_compliance_settings = args[:subscription_taxes_and_compliance_settings] if args.key?(:subscription_taxes_and_compliance_settings)
828
1748
  @trial_period = args[:trial_period] if args.key?(:trial_period)
829
1749
  end
830
1750
  end
@@ -984,30 +1904,134 @@ module Google
984
1904
  end
985
1905
  end
986
1906
 
987
- # A localized store listing. The resource for ListingsService.
988
- class Listing
1907
+ # Response listing existing device tier configs.
1908
+ class ListDeviceTierConfigsResponse
989
1909
  include Google::Apis::Core::Hashable
990
1910
 
991
- # Full description of the app.
992
- # Corresponds to the JSON property `fullDescription`
993
- # @return [String]
994
- attr_accessor :full_description
1911
+ # Device tier configs created by the developer.
1912
+ # Corresponds to the JSON property `deviceTierConfigs`
1913
+ # @return [Array<Google::Apis::AndroidpublisherV3::DeviceTierConfig>]
1914
+ attr_accessor :device_tier_configs
995
1915
 
996
- # Language localization code (a BCP-47 language tag; for example, "de-AT" for
997
- # Austrian German).
998
- # Corresponds to the JSON property `language`
1916
+ # A token, which can be sent as `page_token` to retrieve the next page. If this
1917
+ # field is omitted, there are no subsequent pages.
1918
+ # Corresponds to the JSON property `nextPageToken`
999
1919
  # @return [String]
1000
- attr_accessor :language
1920
+ attr_accessor :next_page_token
1001
1921
 
1002
- # Short description of the app.
1003
- # Corresponds to the JSON property `shortDescription`
1004
- # @return [String]
1005
- attr_accessor :short_description
1922
+ def initialize(**args)
1923
+ update!(**args)
1924
+ end
1006
1925
 
1007
- # Localized title of the app.
1008
- # Corresponds to the JSON property `title`
1009
- # @return [String]
1010
- attr_accessor :title
1926
+ # Update properties of this object
1927
+ def update!(**args)
1928
+ @device_tier_configs = args[:device_tier_configs] if args.key?(:device_tier_configs)
1929
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1930
+ end
1931
+ end
1932
+
1933
+ # Response message for ListSubscriptionOffers.
1934
+ class ListSubscriptionOffersResponse
1935
+ include Google::Apis::Core::Hashable
1936
+
1937
+ # A token, which can be sent as `page_token` to retrieve the next page. If this
1938
+ # field is omitted, there are no subsequent pages.
1939
+ # Corresponds to the JSON property `nextPageToken`
1940
+ # @return [String]
1941
+ attr_accessor :next_page_token
1942
+
1943
+ # The subscription offers from the specified subscription.
1944
+ # Corresponds to the JSON property `subscriptionOffers`
1945
+ # @return [Array<Google::Apis::AndroidpublisherV3::SubscriptionOffer>]
1946
+ attr_accessor :subscription_offers
1947
+
1948
+ def initialize(**args)
1949
+ update!(**args)
1950
+ end
1951
+
1952
+ # Update properties of this object
1953
+ def update!(**args)
1954
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1955
+ @subscription_offers = args[:subscription_offers] if args.key?(:subscription_offers)
1956
+ end
1957
+ end
1958
+
1959
+ # Response message for ListSubscriptions.
1960
+ class ListSubscriptionsResponse
1961
+ include Google::Apis::Core::Hashable
1962
+
1963
+ # A token, which can be sent as `page_token` to retrieve the next page. If this
1964
+ # field is omitted, there are no subsequent pages.
1965
+ # Corresponds to the JSON property `nextPageToken`
1966
+ # @return [String]
1967
+ attr_accessor :next_page_token
1968
+
1969
+ # The subscriptions from the specified app.
1970
+ # Corresponds to the JSON property `subscriptions`
1971
+ # @return [Array<Google::Apis::AndroidpublisherV3::Subscription>]
1972
+ attr_accessor :subscriptions
1973
+
1974
+ def initialize(**args)
1975
+ update!(**args)
1976
+ end
1977
+
1978
+ # Update properties of this object
1979
+ def update!(**args)
1980
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1981
+ @subscriptions = args[:subscriptions] if args.key?(:subscriptions)
1982
+ end
1983
+ end
1984
+
1985
+ # A response containing one or more users with access to an account.
1986
+ class ListUsersResponse
1987
+ include Google::Apis::Core::Hashable
1988
+
1989
+ # A token to pass to subsequent calls in order to retrieve subsequent results.
1990
+ # This will not be set if there are no more results to return.
1991
+ # Corresponds to the JSON property `nextPageToken`
1992
+ # @return [String]
1993
+ attr_accessor :next_page_token
1994
+
1995
+ # The resulting users.
1996
+ # Corresponds to the JSON property `users`
1997
+ # @return [Array<Google::Apis::AndroidpublisherV3::User>]
1998
+ attr_accessor :users
1999
+
2000
+ def initialize(**args)
2001
+ update!(**args)
2002
+ end
2003
+
2004
+ # Update properties of this object
2005
+ def update!(**args)
2006
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2007
+ @users = args[:users] if args.key?(:users)
2008
+ end
2009
+ end
2010
+
2011
+ # A localized store listing. The resource for ListingsService.
2012
+ class Listing
2013
+ include Google::Apis::Core::Hashable
2014
+
2015
+ # Full description of the app.
2016
+ # Corresponds to the JSON property `fullDescription`
2017
+ # @return [String]
2018
+ attr_accessor :full_description
2019
+
2020
+ # Language localization code (a BCP-47 language tag; for example, "de-AT" for
2021
+ # Austrian German).
2022
+ # Corresponds to the JSON property `language`
2023
+ # @return [String]
2024
+ attr_accessor :language
2025
+
2026
+ # Short description of the app.
2027
+ # Corresponds to the JSON property `shortDescription`
2028
+ # @return [String]
2029
+ attr_accessor :short_description
2030
+
2031
+ # Localized title of the app.
2032
+ # Corresponds to the JSON property `title`
2033
+ # @return [String]
2034
+ attr_accessor :title
1011
2035
 
1012
2036
  # URL of a promotional YouTube video for the app.
1013
2037
  # Corresponds to the JSON property `video`
@@ -1053,7 +2077,7 @@ module Google
1053
2077
  end
1054
2078
  end
1055
2079
 
1056
- # Release notes specification, i.e. language and text.
2080
+ # Localized text in given language.
1057
2081
  class LocalizedText
1058
2082
  include Google::Apis::Core::Hashable
1059
2083
 
@@ -1079,6 +2103,282 @@ module Google
1079
2103
  end
1080
2104
  end
1081
2105
 
2106
+ # Details about taxation and legal compliance for managed products.
2107
+ class ManagedProductTaxAndComplianceSettings
2108
+ include Google::Apis::Core::Hashable
2109
+
2110
+ # Digital content or service classification for products distributed to users in
2111
+ # the European Economic Area (EEA). The withdrawal regime under EEA consumer
2112
+ # laws depends on this classification. Refer to the [Help Center article](https:/
2113
+ # /support.google.com/googleplay/android-developer/answer/10463498) for more
2114
+ # information.
2115
+ # Corresponds to the JSON property `eeaWithdrawalRightType`
2116
+ # @return [String]
2117
+ attr_accessor :eea_withdrawal_right_type
2118
+
2119
+ # A mapping from region code to tax rate details. The keys are region codes as
2120
+ # defined by Unicode's "CLDR".
2121
+ # Corresponds to the JSON property `taxRateInfoByRegionCode`
2122
+ # @return [Hash<String,Google::Apis::AndroidpublisherV3::RegionalTaxRateInfo>]
2123
+ attr_accessor :tax_rate_info_by_region_code
2124
+
2125
+ def initialize(**args)
2126
+ update!(**args)
2127
+ end
2128
+
2129
+ # Update properties of this object
2130
+ def update!(**args)
2131
+ @eea_withdrawal_right_type = args[:eea_withdrawal_right_type] if args.key?(:eea_withdrawal_right_type)
2132
+ @tax_rate_info_by_region_code = args[:tax_rate_info_by_region_code] if args.key?(:tax_rate_info_by_region_code)
2133
+ end
2134
+ end
2135
+
2136
+ # Request message for MigrateBasePlanPrices.
2137
+ class MigrateBasePlanPricesRequest
2138
+ include Google::Apis::Core::Hashable
2139
+
2140
+ # Required. The regional prices to update.
2141
+ # Corresponds to the JSON property `regionalPriceMigrations`
2142
+ # @return [Array<Google::Apis::AndroidpublisherV3::RegionalPriceMigrationConfig>]
2143
+ attr_accessor :regional_price_migrations
2144
+
2145
+ # The version of the available regions being used for the specified resource.
2146
+ # Corresponds to the JSON property `regionsVersion`
2147
+ # @return [Google::Apis::AndroidpublisherV3::RegionsVersion]
2148
+ attr_accessor :regions_version
2149
+
2150
+ def initialize(**args)
2151
+ update!(**args)
2152
+ end
2153
+
2154
+ # Update properties of this object
2155
+ def update!(**args)
2156
+ @regional_price_migrations = args[:regional_price_migrations] if args.key?(:regional_price_migrations)
2157
+ @regions_version = args[:regions_version] if args.key?(:regions_version)
2158
+ end
2159
+ end
2160
+
2161
+ # Response message for MigrateBasePlanPrices.
2162
+ class MigrateBasePlanPricesResponse
2163
+ include Google::Apis::Core::Hashable
2164
+
2165
+ def initialize(**args)
2166
+ update!(**args)
2167
+ end
2168
+
2169
+ # Update properties of this object
2170
+ def update!(**args)
2171
+ end
2172
+ end
2173
+
2174
+ # Represents an amount of money with its currency type.
2175
+ class Money
2176
+ include Google::Apis::Core::Hashable
2177
+
2178
+ # The three-letter currency code defined in ISO 4217.
2179
+ # Corresponds to the JSON property `currencyCode`
2180
+ # @return [String]
2181
+ attr_accessor :currency_code
2182
+
2183
+ # Number of nano (10^-9) units of the amount. The value must be between -999,999,
2184
+ # 999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be
2185
+ # positive or zero. If `units` is zero, `nanos` can be positive, zero, or
2186
+ # negative. If `units` is negative, `nanos` must be negative or zero. For
2187
+ # example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
2188
+ # Corresponds to the JSON property `nanos`
2189
+ # @return [Fixnum]
2190
+ attr_accessor :nanos
2191
+
2192
+ # The whole units of the amount. For example if `currencyCode` is `"USD"`, then
2193
+ # 1 unit is one US dollar.
2194
+ # Corresponds to the JSON property `units`
2195
+ # @return [Fixnum]
2196
+ attr_accessor :units
2197
+
2198
+ def initialize(**args)
2199
+ update!(**args)
2200
+ end
2201
+
2202
+ # Update properties of this object
2203
+ def update!(**args)
2204
+ @currency_code = args[:currency_code] if args.key?(:currency_code)
2205
+ @nanos = args[:nanos] if args.key?(:nanos)
2206
+ @units = args[:units] if args.key?(:units)
2207
+ end
2208
+ end
2209
+
2210
+ # Offer details information related to a purchase line item.
2211
+ class OfferDetails
2212
+ include Google::Apis::Core::Hashable
2213
+
2214
+ # The base plan ID. Present for all base plan and offers.
2215
+ # Corresponds to the JSON property `basePlanId`
2216
+ # @return [String]
2217
+ attr_accessor :base_plan_id
2218
+
2219
+ # The offer ID. Only present for discounted offers.
2220
+ # Corresponds to the JSON property `offerId`
2221
+ # @return [String]
2222
+ attr_accessor :offer_id
2223
+
2224
+ # The latest offer tags associated with the offer. It includes tags inherited
2225
+ # from the base plan.
2226
+ # Corresponds to the JSON property `offerTags`
2227
+ # @return [Array<String>]
2228
+ attr_accessor :offer_tags
2229
+
2230
+ def initialize(**args)
2231
+ update!(**args)
2232
+ end
2233
+
2234
+ # Update properties of this object
2235
+ def update!(**args)
2236
+ @base_plan_id = args[:base_plan_id] if args.key?(:base_plan_id)
2237
+ @offer_id = args[:offer_id] if args.key?(:offer_id)
2238
+ @offer_tags = args[:offer_tags] if args.key?(:offer_tags)
2239
+ end
2240
+ end
2241
+
2242
+ # Represents a custom tag specified for base plans and subscription offers.
2243
+ class OfferTag
2244
+ include Google::Apis::Core::Hashable
2245
+
2246
+ # Must conform with RFC-1034. That is, this string can only contain lower-case
2247
+ # letters (a-z), numbers (0-9), and hyphens (-), and be at most 20 characters.
2248
+ # Corresponds to the JSON property `tag`
2249
+ # @return [String]
2250
+ attr_accessor :tag
2251
+
2252
+ def initialize(**args)
2253
+ update!(**args)
2254
+ end
2255
+
2256
+ # Update properties of this object
2257
+ def update!(**args)
2258
+ @tag = args[:tag] if args.key?(:tag)
2259
+ end
2260
+ end
2261
+
2262
+ # Pricing information for any new locations Play may launch in.
2263
+ class OtherRegionsBasePlanConfig
2264
+ include Google::Apis::Core::Hashable
2265
+
2266
+ # Represents an amount of money with its currency type.
2267
+ # Corresponds to the JSON property `eurPrice`
2268
+ # @return [Google::Apis::AndroidpublisherV3::Money]
2269
+ attr_accessor :eur_price
2270
+
2271
+ # Whether the base plan is available for new subscribers in any new locations
2272
+ # Play may launch in. If not specified, this will default to false.
2273
+ # Corresponds to the JSON property `newSubscriberAvailability`
2274
+ # @return [Boolean]
2275
+ attr_accessor :new_subscriber_availability
2276
+ alias_method :new_subscriber_availability?, :new_subscriber_availability
2277
+
2278
+ # Represents an amount of money with its currency type.
2279
+ # Corresponds to the JSON property `usdPrice`
2280
+ # @return [Google::Apis::AndroidpublisherV3::Money]
2281
+ attr_accessor :usd_price
2282
+
2283
+ def initialize(**args)
2284
+ update!(**args)
2285
+ end
2286
+
2287
+ # Update properties of this object
2288
+ def update!(**args)
2289
+ @eur_price = args[:eur_price] if args.key?(:eur_price)
2290
+ @new_subscriber_availability = args[:new_subscriber_availability] if args.key?(:new_subscriber_availability)
2291
+ @usd_price = args[:usd_price] if args.key?(:usd_price)
2292
+ end
2293
+ end
2294
+
2295
+ # Configuration for any new locations Play may launch in specified on a
2296
+ # subscription offer.
2297
+ class OtherRegionsSubscriptionOfferConfig
2298
+ include Google::Apis::Core::Hashable
2299
+
2300
+ # Whether the subscription offer in any new locations Play may launch in the
2301
+ # future. If not specified, this will default to false.
2302
+ # Corresponds to the JSON property `otherRegionsNewSubscriberAvailability`
2303
+ # @return [Boolean]
2304
+ attr_accessor :other_regions_new_subscriber_availability
2305
+ alias_method :other_regions_new_subscriber_availability?, :other_regions_new_subscriber_availability
2306
+
2307
+ def initialize(**args)
2308
+ update!(**args)
2309
+ end
2310
+
2311
+ # Update properties of this object
2312
+ def update!(**args)
2313
+ @other_regions_new_subscriber_availability = args[:other_regions_new_subscriber_availability] if args.key?(:other_regions_new_subscriber_availability)
2314
+ end
2315
+ end
2316
+
2317
+ # Configuration for any new locations Play may launch in for a single offer
2318
+ # phase.
2319
+ class OtherRegionsSubscriptionOfferPhaseConfig
2320
+ include Google::Apis::Core::Hashable
2321
+
2322
+ # Pricing information for any new locations Play may launch in.
2323
+ # Corresponds to the JSON property `absoluteDiscounts`
2324
+ # @return [Google::Apis::AndroidpublisherV3::OtherRegionsSubscriptionOfferPhasePrices]
2325
+ attr_accessor :absolute_discounts
2326
+
2327
+ # Pricing information for any new locations Play may launch in.
2328
+ # Corresponds to the JSON property `otherRegionsPrices`
2329
+ # @return [Google::Apis::AndroidpublisherV3::OtherRegionsSubscriptionOfferPhasePrices]
2330
+ attr_accessor :other_regions_prices
2331
+
2332
+ # The fraction of the base plan price prorated over the phase duration that the
2333
+ # user pays for this offer phase. For example, if the base plan price for this
2334
+ # region is $12 for a period of 1 year, then a 50% discount for a phase of a
2335
+ # duration of 3 months would correspond to a price of $1.50. The discount must
2336
+ # be specified as a fraction strictly larger than 0 and strictly smaller than 1.
2337
+ # The resulting price will be rounded to the nearest billable unit (e.g. cents
2338
+ # for USD). The relative discount is considered invalid if the discounted price
2339
+ # ends up being smaller than the minimum price allowed in any new locations Play
2340
+ # may launch in.
2341
+ # Corresponds to the JSON property `relativeDiscount`
2342
+ # @return [Float]
2343
+ attr_accessor :relative_discount
2344
+
2345
+ def initialize(**args)
2346
+ update!(**args)
2347
+ end
2348
+
2349
+ # Update properties of this object
2350
+ def update!(**args)
2351
+ @absolute_discounts = args[:absolute_discounts] if args.key?(:absolute_discounts)
2352
+ @other_regions_prices = args[:other_regions_prices] if args.key?(:other_regions_prices)
2353
+ @relative_discount = args[:relative_discount] if args.key?(:relative_discount)
2354
+ end
2355
+ end
2356
+
2357
+ # Pricing information for any new locations Play may launch in.
2358
+ class OtherRegionsSubscriptionOfferPhasePrices
2359
+ include Google::Apis::Core::Hashable
2360
+
2361
+ # Represents an amount of money with its currency type.
2362
+ # Corresponds to the JSON property `eurPrice`
2363
+ # @return [Google::Apis::AndroidpublisherV3::Money]
2364
+ attr_accessor :eur_price
2365
+
2366
+ # Represents an amount of money with its currency type.
2367
+ # Corresponds to the JSON property `usdPrice`
2368
+ # @return [Google::Apis::AndroidpublisherV3::Money]
2369
+ attr_accessor :usd_price
2370
+
2371
+ def initialize(**args)
2372
+ update!(**args)
2373
+ end
2374
+
2375
+ # Update properties of this object
2376
+ def update!(**args)
2377
+ @eur_price = args[:eur_price] if args.key?(:eur_price)
2378
+ @usd_price = args[:usd_price] if args.key?(:usd_price)
2379
+ end
2380
+ end
2381
+
1082
2382
  # Information about the current page. List operations that supports paging
1083
2383
  # return only one "page" of results. This protocol buffer message describes the
1084
2384
  # page that has been returned.
@@ -1114,6 +2414,73 @@ module Google
1114
2414
  end
1115
2415
  end
1116
2416
 
2417
+ # Information specific to a subscription in paused state.
2418
+ class PausedStateContext
2419
+ include Google::Apis::Core::Hashable
2420
+
2421
+ # Time at which the subscription will be automatically resumed.
2422
+ # Corresponds to the JSON property `autoResumeTime`
2423
+ # @return [String]
2424
+ attr_accessor :auto_resume_time
2425
+
2426
+ def initialize(**args)
2427
+ update!(**args)
2428
+ end
2429
+
2430
+ # Update properties of this object
2431
+ def update!(**args)
2432
+ @auto_resume_time = args[:auto_resume_time] if args.key?(:auto_resume_time)
2433
+ end
2434
+ end
2435
+
2436
+ # Represents a base plan that does not automatically renew at the end of the
2437
+ # base plan, and must be manually renewed by the user.
2438
+ class PrepaidBasePlanType
2439
+ include Google::Apis::Core::Hashable
2440
+
2441
+ # Required. Subscription period, specified in ISO 8601 format. For a list of
2442
+ # acceptable billing periods, refer to the help center.
2443
+ # Corresponds to the JSON property `billingPeriodDuration`
2444
+ # @return [String]
2445
+ attr_accessor :billing_period_duration
2446
+
2447
+ # Whether users should be able to extend this prepaid base plan in Google Play
2448
+ # surfaces. Defaults to TIME_EXTENSION_ACTIVE if not specified.
2449
+ # Corresponds to the JSON property `timeExtension`
2450
+ # @return [String]
2451
+ attr_accessor :time_extension
2452
+
2453
+ def initialize(**args)
2454
+ update!(**args)
2455
+ end
2456
+
2457
+ # Update properties of this object
2458
+ def update!(**args)
2459
+ @billing_period_duration = args[:billing_period_duration] if args.key?(:billing_period_duration)
2460
+ @time_extension = args[:time_extension] if args.key?(:time_extension)
2461
+ end
2462
+ end
2463
+
2464
+ # Information related to a prepaid plan.
2465
+ class PrepaidPlan
2466
+ include Google::Apis::Core::Hashable
2467
+
2468
+ # If present, this is the time after which top up purchases are allowed for the
2469
+ # prepaid plan. Will not be present for expired prepaid plans.
2470
+ # Corresponds to the JSON property `allowExtendAfterTime`
2471
+ # @return [String]
2472
+ attr_accessor :allow_extend_after_time
2473
+
2474
+ def initialize(**args)
2475
+ update!(**args)
2476
+ end
2477
+
2478
+ # Update properties of this object
2479
+ def update!(**args)
2480
+ @allow_extend_after_time = args[:allow_extend_after_time] if args.key?(:allow_extend_after_time)
2481
+ end
2482
+ end
2483
+
1117
2484
  # Definition of a price, i.e. currency and units.
1118
2485
  class Price
1119
2486
  include Google::Apis::Core::Hashable
@@ -1189,7 +2556,7 @@ module Google
1189
2556
  # @return [String]
1190
2557
  attr_accessor :order_id
1191
2558
 
1192
- # The inapp product SKU.
2559
+ # The inapp product SKU. May not be present.
1193
2560
  # Corresponds to the JSON property `productId`
1194
2561
  # @return [String]
1195
2562
  attr_accessor :product_id
@@ -1206,62 +2573,274 @@ module Google
1206
2573
  # @return [Fixnum]
1207
2574
  attr_accessor :purchase_time_millis
1208
2575
 
1209
- # The purchase token generated to identify this purchase.
1210
- # Corresponds to the JSON property `purchaseToken`
1211
- # @return [String]
1212
- attr_accessor :purchase_token
2576
+ # The purchase token generated to identify this purchase. May not be present.
2577
+ # Corresponds to the JSON property `purchaseToken`
2578
+ # @return [String]
2579
+ attr_accessor :purchase_token
2580
+
2581
+ # The type of purchase of the inapp product. This field is only set if this
2582
+ # purchase was not made using the standard in-app billing flow. Possible values
2583
+ # are: 0. Test (i.e. purchased from a license testing account) 1. Promo (i.e.
2584
+ # purchased using a promo code) 2. Rewarded (i.e. from watching a video ad
2585
+ # instead of paying)
2586
+ # Corresponds to the JSON property `purchaseType`
2587
+ # @return [Fixnum]
2588
+ attr_accessor :purchase_type
2589
+
2590
+ # The quantity associated with the purchase of the inapp product. If not present,
2591
+ # the quantity is 1.
2592
+ # Corresponds to the JSON property `quantity`
2593
+ # @return [Fixnum]
2594
+ attr_accessor :quantity
2595
+
2596
+ # ISO 3166-1 alpha-2 billing region code of the user at the time the product was
2597
+ # granted.
2598
+ # Corresponds to the JSON property `regionCode`
2599
+ # @return [String]
2600
+ attr_accessor :region_code
2601
+
2602
+ def initialize(**args)
2603
+ update!(**args)
2604
+ end
2605
+
2606
+ # Update properties of this object
2607
+ def update!(**args)
2608
+ @acknowledgement_state = args[:acknowledgement_state] if args.key?(:acknowledgement_state)
2609
+ @consumption_state = args[:consumption_state] if args.key?(:consumption_state)
2610
+ @developer_payload = args[:developer_payload] if args.key?(:developer_payload)
2611
+ @kind = args[:kind] if args.key?(:kind)
2612
+ @obfuscated_external_account_id = args[:obfuscated_external_account_id] if args.key?(:obfuscated_external_account_id)
2613
+ @obfuscated_external_profile_id = args[:obfuscated_external_profile_id] if args.key?(:obfuscated_external_profile_id)
2614
+ @order_id = args[:order_id] if args.key?(:order_id)
2615
+ @product_id = args[:product_id] if args.key?(:product_id)
2616
+ @purchase_state = args[:purchase_state] if args.key?(:purchase_state)
2617
+ @purchase_time_millis = args[:purchase_time_millis] if args.key?(:purchase_time_millis)
2618
+ @purchase_token = args[:purchase_token] if args.key?(:purchase_token)
2619
+ @purchase_type = args[:purchase_type] if args.key?(:purchase_type)
2620
+ @quantity = args[:quantity] if args.key?(:quantity)
2621
+ @region_code = args[:region_code] if args.key?(:region_code)
2622
+ end
2623
+ end
2624
+
2625
+ # Request for the product.purchases.acknowledge API.
2626
+ class ProductPurchasesAcknowledgeRequest
2627
+ include Google::Apis::Core::Hashable
2628
+
2629
+ # Payload to attach to the purchase.
2630
+ # Corresponds to the JSON property `developerPayload`
2631
+ # @return [String]
2632
+ attr_accessor :developer_payload
2633
+
2634
+ def initialize(**args)
2635
+ update!(**args)
2636
+ end
2637
+
2638
+ # Update properties of this object
2639
+ def update!(**args)
2640
+ @developer_payload = args[:developer_payload] if args.key?(:developer_payload)
2641
+ end
2642
+ end
2643
+
2644
+ # Configuration for a base plan specific to a region.
2645
+ class RegionalBasePlanConfig
2646
+ include Google::Apis::Core::Hashable
2647
+
2648
+ # Whether the base plan in the specified region is available for new subscribers.
2649
+ # Existing subscribers will not have their subscription canceled if this value
2650
+ # is set to false. If not specified, this will default to false.
2651
+ # Corresponds to the JSON property `newSubscriberAvailability`
2652
+ # @return [Boolean]
2653
+ attr_accessor :new_subscriber_availability
2654
+ alias_method :new_subscriber_availability?, :new_subscriber_availability
2655
+
2656
+ # Represents an amount of money with its currency type.
2657
+ # Corresponds to the JSON property `price`
2658
+ # @return [Google::Apis::AndroidpublisherV3::Money]
2659
+ attr_accessor :price
2660
+
2661
+ # Required. Region code this configuration applies to, as defined by ISO 3166-2,
2662
+ # e.g. "US".
2663
+ # Corresponds to the JSON property `regionCode`
2664
+ # @return [String]
2665
+ attr_accessor :region_code
2666
+
2667
+ def initialize(**args)
2668
+ update!(**args)
2669
+ end
2670
+
2671
+ # Update properties of this object
2672
+ def update!(**args)
2673
+ @new_subscriber_availability = args[:new_subscriber_availability] if args.key?(:new_subscriber_availability)
2674
+ @price = args[:price] if args.key?(:price)
2675
+ @region_code = args[:region_code] if args.key?(:region_code)
2676
+ end
2677
+ end
2678
+
2679
+ # Configuration for a price migration.
2680
+ class RegionalPriceMigrationConfig
2681
+ include Google::Apis::Core::Hashable
2682
+
2683
+ # Required. The cutoff time for historical prices that subscribers can remain
2684
+ # paying. Subscribers who are on a price that was created before this cutoff
2685
+ # time will be migrated to the currently-offered price. These subscribers will
2686
+ # receive a notification that they will be paying a different price. Subscribers
2687
+ # who do not agree to the new price will have their subscription ended at the
2688
+ # next renewal.
2689
+ # Corresponds to the JSON property `oldestAllowedPriceVersionTime`
2690
+ # @return [String]
2691
+ attr_accessor :oldest_allowed_price_version_time
2692
+
2693
+ # Required. Region code this configuration applies to, as defined by ISO 3166-2,
2694
+ # e.g. "US".
2695
+ # Corresponds to the JSON property `regionCode`
2696
+ # @return [String]
2697
+ attr_accessor :region_code
2698
+
2699
+ def initialize(**args)
2700
+ update!(**args)
2701
+ end
2702
+
2703
+ # Update properties of this object
2704
+ def update!(**args)
2705
+ @oldest_allowed_price_version_time = args[:oldest_allowed_price_version_time] if args.key?(:oldest_allowed_price_version_time)
2706
+ @region_code = args[:region_code] if args.key?(:region_code)
2707
+ end
2708
+ end
2709
+
2710
+ # Configuration for a subscription offer in a single region.
2711
+ class RegionalSubscriptionOfferConfig
2712
+ include Google::Apis::Core::Hashable
2713
+
2714
+ # Whether the subscription offer in the specified region is available for new
2715
+ # subscribers. Existing subscribers will not have their subscription cancelled
2716
+ # if this value is set to false. If not specified, this will default to false.
2717
+ # Corresponds to the JSON property `newSubscriberAvailability`
2718
+ # @return [Boolean]
2719
+ attr_accessor :new_subscriber_availability
2720
+ alias_method :new_subscriber_availability?, :new_subscriber_availability
2721
+
2722
+ # Required. Immutable. Region code this configuration applies to, as defined by
2723
+ # ISO 3166-2, e.g. "US".
2724
+ # Corresponds to the JSON property `regionCode`
2725
+ # @return [String]
2726
+ attr_accessor :region_code
2727
+
2728
+ def initialize(**args)
2729
+ update!(**args)
2730
+ end
2731
+
2732
+ # Update properties of this object
2733
+ def update!(**args)
2734
+ @new_subscriber_availability = args[:new_subscriber_availability] if args.key?(:new_subscriber_availability)
2735
+ @region_code = args[:region_code] if args.key?(:region_code)
2736
+ end
2737
+ end
2738
+
2739
+ # Configuration for a single phase of a subscription offer in a single region.
2740
+ class RegionalSubscriptionOfferPhaseConfig
2741
+ include Google::Apis::Core::Hashable
1213
2742
 
1214
- # The type of purchase of the inapp product. This field is only set if this
1215
- # purchase was not made using the standard in-app billing flow. Possible values
1216
- # are: 0. Test (i.e. purchased from a license testing account) 1. Promo (i.e.
1217
- # purchased using a promo code) 2. Rewarded (i.e. from watching a video ad
1218
- # instead of paying)
1219
- # Corresponds to the JSON property `purchaseType`
1220
- # @return [Fixnum]
1221
- attr_accessor :purchase_type
2743
+ # Represents an amount of money with its currency type.
2744
+ # Corresponds to the JSON property `absoluteDiscount`
2745
+ # @return [Google::Apis::AndroidpublisherV3::Money]
2746
+ attr_accessor :absolute_discount
1222
2747
 
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
2748
+ # Represents an amount of money with its currency type.
2749
+ # Corresponds to the JSON property `price`
2750
+ # @return [Google::Apis::AndroidpublisherV3::Money]
2751
+ attr_accessor :price
1227
2752
 
1228
- # ISO 3166-1 alpha-2 billing region code of the user at the time the product was
1229
- # granted.
2753
+ # Required. Immutable. The region to which this config applies.
1230
2754
  # Corresponds to the JSON property `regionCode`
1231
2755
  # @return [String]
1232
2756
  attr_accessor :region_code
1233
2757
 
2758
+ # The fraction of the base plan price prorated over the phase duration that the
2759
+ # user pays for this offer phase. For example, if the base plan price for this
2760
+ # region is $12 for a period of 1 year, then a 50% discount for a phase of a
2761
+ # duration of 3 months would correspond to a price of $1.50. The discount must
2762
+ # be specified as a fraction strictly larger than 0 and strictly smaller than 1.
2763
+ # The resulting price will be rounded to the nearest billable unit (e.g. cents
2764
+ # for USD). The relative discount is considered invalid if the discounted price
2765
+ # ends up being smaller than the minimum price allowed in this region.
2766
+ # Corresponds to the JSON property `relativeDiscount`
2767
+ # @return [Float]
2768
+ attr_accessor :relative_discount
2769
+
1234
2770
  def initialize(**args)
1235
2771
  update!(**args)
1236
2772
  end
1237
2773
 
1238
2774
  # Update properties of this object
1239
2775
  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)
2776
+ @absolute_discount = args[:absolute_discount] if args.key?(:absolute_discount)
2777
+ @price = args[:price] if args.key?(:price)
1253
2778
  @region_code = args[:region_code] if args.key?(:region_code)
2779
+ @relative_discount = args[:relative_discount] if args.key?(:relative_discount)
1254
2780
  end
1255
2781
  end
1256
2782
 
1257
- # Request for the product.purchases.acknowledge API.
1258
- class ProductPurchasesAcknowledgeRequest
2783
+ # Specified details about taxation in a given geographical region.
2784
+ class RegionalTaxRateInfo
1259
2785
  include Google::Apis::Core::Hashable
1260
2786
 
1261
- # Payload to attach to the purchase.
1262
- # Corresponds to the JSON property `developerPayload`
2787
+ # You must tell us if your app contains streaming products to correctly charge
2788
+ # US state and local sales tax. Field only supported in United States.
2789
+ # Corresponds to the JSON property `eligibleForStreamingServiceTaxRate`
2790
+ # @return [Boolean]
2791
+ attr_accessor :eligible_for_streaming_service_tax_rate
2792
+ alias_method :eligible_for_streaming_service_tax_rate?, :eligible_for_streaming_service_tax_rate
2793
+
2794
+ # To collect communications or amusement taxes in the United States, choose the
2795
+ # appropriate tax category. [Learn more](https://support.google.com/googleplay/
2796
+ # android-developer/answer/10463498#streaming_tax).
2797
+ # Corresponds to the JSON property `streamingTaxType`
1263
2798
  # @return [String]
1264
- attr_accessor :developer_payload
2799
+ attr_accessor :streaming_tax_type
2800
+
2801
+ # Tax tier to specify reduced tax rate. Developers who sell digital news,
2802
+ # magazines, newspapers, books, or audiobooks in various regions may be eligible
2803
+ # for reduced tax rates. [Learn more](https://support.google.com/googleplay/
2804
+ # android-developer/answer/10463498).
2805
+ # Corresponds to the JSON property `taxTier`
2806
+ # @return [String]
2807
+ attr_accessor :tax_tier
2808
+
2809
+ def initialize(**args)
2810
+ update!(**args)
2811
+ end
2812
+
2813
+ # Update properties of this object
2814
+ def update!(**args)
2815
+ @eligible_for_streaming_service_tax_rate = args[:eligible_for_streaming_service_tax_rate] if args.key?(:eligible_for_streaming_service_tax_rate)
2816
+ @streaming_tax_type = args[:streaming_tax_type] if args.key?(:streaming_tax_type)
2817
+ @tax_tier = args[:tax_tier] if args.key?(:tax_tier)
2818
+ end
2819
+ end
2820
+
2821
+ # The version of the available regions being used for the specified resource.
2822
+ class RegionsVersion
2823
+ include Google::Apis::Core::Hashable
2824
+
2825
+ # Required. A string representing version of the available regions being used
2826
+ # for the specified resource. The current version is 2022/02.
2827
+ # Corresponds to the JSON property `version`
2828
+ # @return [String]
2829
+ attr_accessor :version
2830
+
2831
+ def initialize(**args)
2832
+ update!(**args)
2833
+ end
2834
+
2835
+ # Update properties of this object
2836
+ def update!(**args)
2837
+ @version = args[:version] if args.key?(:version)
2838
+ end
2839
+ end
2840
+
2841
+ # Information specific to cancellations caused by subscription replacement.
2842
+ class ReplacementCancellation
2843
+ include Google::Apis::Core::Hashable
1265
2844
 
1266
2845
  def initialize(**args)
1267
2846
  update!(**args)
@@ -1269,7 +2848,6 @@ module Google
1269
2848
 
1270
2849
  # Update properties of this object
1271
2850
  def update!(**args)
1272
- @developer_payload = args[:developer_payload] if args.key?(:developer_payload)
1273
2851
  end
1274
2852
  end
1275
2853
 
@@ -1411,6 +2989,107 @@ module Google
1411
2989
  end
1412
2990
  end
1413
2991
 
2992
+ # Information associated with purchases made with 'Subscribe with Google'.
2993
+ class SubscribeWithGoogleInfo
2994
+ include Google::Apis::Core::Hashable
2995
+
2996
+ # The email address of the user when the subscription was purchased.
2997
+ # Corresponds to the JSON property `emailAddress`
2998
+ # @return [String]
2999
+ attr_accessor :email_address
3000
+
3001
+ # The family name of the user when the subscription was purchased.
3002
+ # Corresponds to the JSON property `familyName`
3003
+ # @return [String]
3004
+ attr_accessor :family_name
3005
+
3006
+ # The given name of the user when the subscription was purchased.
3007
+ # Corresponds to the JSON property `givenName`
3008
+ # @return [String]
3009
+ attr_accessor :given_name
3010
+
3011
+ # The Google profile id of the user when the subscription was purchased.
3012
+ # Corresponds to the JSON property `profileId`
3013
+ # @return [String]
3014
+ attr_accessor :profile_id
3015
+
3016
+ # The profile name of the user when the subscription was purchased.
3017
+ # Corresponds to the JSON property `profileName`
3018
+ # @return [String]
3019
+ attr_accessor :profile_name
3020
+
3021
+ def initialize(**args)
3022
+ update!(**args)
3023
+ end
3024
+
3025
+ # Update properties of this object
3026
+ def update!(**args)
3027
+ @email_address = args[:email_address] if args.key?(:email_address)
3028
+ @family_name = args[:family_name] if args.key?(:family_name)
3029
+ @given_name = args[:given_name] if args.key?(:given_name)
3030
+ @profile_id = args[:profile_id] if args.key?(:profile_id)
3031
+ @profile_name = args[:profile_name] if args.key?(:profile_name)
3032
+ end
3033
+ end
3034
+
3035
+ # A single subscription for an app.
3036
+ class Subscription
3037
+ include Google::Apis::Core::Hashable
3038
+
3039
+ # Output only. Whether this subscription is archived. Archived subscriptions are
3040
+ # not available to any subscriber any longer, cannot be updated, and are not
3041
+ # returned in list requests unless the show archived flag is passed in.
3042
+ # Corresponds to the JSON property `archived`
3043
+ # @return [Boolean]
3044
+ attr_accessor :archived
3045
+ alias_method :archived?, :archived
3046
+
3047
+ # The set of base plans for this subscription. Represents the prices and
3048
+ # duration of the subscription if no other offers apply.
3049
+ # Corresponds to the JSON property `basePlans`
3050
+ # @return [Array<Google::Apis::AndroidpublisherV3::BasePlan>]
3051
+ attr_accessor :base_plans
3052
+
3053
+ # Required. List of localized listings for this subscription. Must contain at
3054
+ # least an entry for the default language of the parent app.
3055
+ # Corresponds to the JSON property `listings`
3056
+ # @return [Array<Google::Apis::AndroidpublisherV3::SubscriptionListing>]
3057
+ attr_accessor :listings
3058
+
3059
+ # Immutable. Package name of the parent app.
3060
+ # Corresponds to the JSON property `packageName`
3061
+ # @return [String]
3062
+ attr_accessor :package_name
3063
+
3064
+ # Immutable. Unique product ID of the product. Unique within the parent app.
3065
+ # Product IDs must be composed of lower-case letters (a-z), numbers (0-9),
3066
+ # underscores (_) and dots (.). It must start with a lower-case letter or number,
3067
+ # and be between 1 and 40 (inclusive) characters in length.
3068
+ # Corresponds to the JSON property `productId`
3069
+ # @return [String]
3070
+ attr_accessor :product_id
3071
+
3072
+ # Details about taxation, Google Play policy and legal compliance for
3073
+ # subscription products.
3074
+ # Corresponds to the JSON property `taxAndComplianceSettings`
3075
+ # @return [Google::Apis::AndroidpublisherV3::SubscriptionTaxAndComplianceSettings]
3076
+ attr_accessor :tax_and_compliance_settings
3077
+
3078
+ def initialize(**args)
3079
+ update!(**args)
3080
+ end
3081
+
3082
+ # Update properties of this object
3083
+ def update!(**args)
3084
+ @archived = args[:archived] if args.key?(:archived)
3085
+ @base_plans = args[:base_plans] if args.key?(:base_plans)
3086
+ @listings = args[:listings] if args.key?(:listings)
3087
+ @package_name = args[:package_name] if args.key?(:package_name)
3088
+ @product_id = args[:product_id] if args.key?(:product_id)
3089
+ @tax_and_compliance_settings = args[:tax_and_compliance_settings] if args.key?(:tax_and_compliance_settings)
3090
+ end
3091
+ end
3092
+
1414
3093
  # Information provided by the user when they complete the subscription
1415
3094
  # cancellation flow (cancellation reason survey).
1416
3095
  class SubscriptionCancelSurveyResult
@@ -1445,18 +3124,250 @@ module Google
1445
3124
  class SubscriptionDeferralInfo
1446
3125
  include Google::Apis::Core::Hashable
1447
3126
 
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
3127
+ # The desired next expiry time to assign to the subscription, in milliseconds
3128
+ # since the Epoch. The given time must be later/greater than the current expiry
3129
+ # time for the subscription.
3130
+ # Corresponds to the JSON property `desiredExpiryTimeMillis`
3131
+ # @return [Fixnum]
3132
+ attr_accessor :desired_expiry_time_millis
3133
+
3134
+ # The expected expiry time for the subscription. If the current expiry time for
3135
+ # the subscription is not the value specified here, the deferral will not occur.
3136
+ # Corresponds to the JSON property `expectedExpiryTimeMillis`
3137
+ # @return [Fixnum]
3138
+ attr_accessor :expected_expiry_time_millis
3139
+
3140
+ def initialize(**args)
3141
+ update!(**args)
3142
+ end
3143
+
3144
+ # Update properties of this object
3145
+ def update!(**args)
3146
+ @desired_expiry_time_millis = args[:desired_expiry_time_millis] if args.key?(:desired_expiry_time_millis)
3147
+ @expected_expiry_time_millis = args[:expected_expiry_time_millis] if args.key?(:expected_expiry_time_millis)
3148
+ end
3149
+ end
3150
+
3151
+ # Price change related information of a subscription item.
3152
+ class SubscriptionItemPriceChangeDetails
3153
+ include Google::Apis::Core::Hashable
3154
+
3155
+ # The renewal time at which the price change will become effective for the user.
3156
+ # This is subject to change(to a future time) due to cases where the renewal
3157
+ # time shifts like pause.
3158
+ # Corresponds to the JSON property `expectedNewPriceChargeTime`
3159
+ # @return [String]
3160
+ attr_accessor :expected_new_price_charge_time
3161
+
3162
+ # Represents an amount of money with its currency type.
3163
+ # Corresponds to the JSON property `newPrice`
3164
+ # @return [Google::Apis::AndroidpublisherV3::Money]
3165
+ attr_accessor :new_price
3166
+
3167
+ # Price change mode specifies how the subscription item price is changing.
3168
+ # Corresponds to the JSON property `priceChangeMode`
3169
+ # @return [String]
3170
+ attr_accessor :price_change_mode
3171
+
3172
+ # State the price change is currently in.
3173
+ # Corresponds to the JSON property `priceChangeState`
3174
+ # @return [String]
3175
+ attr_accessor :price_change_state
3176
+
3177
+ def initialize(**args)
3178
+ update!(**args)
3179
+ end
3180
+
3181
+ # Update properties of this object
3182
+ def update!(**args)
3183
+ @expected_new_price_charge_time = args[:expected_new_price_charge_time] if args.key?(:expected_new_price_charge_time)
3184
+ @new_price = args[:new_price] if args.key?(:new_price)
3185
+ @price_change_mode = args[:price_change_mode] if args.key?(:price_change_mode)
3186
+ @price_change_state = args[:price_change_state] if args.key?(:price_change_state)
3187
+ end
3188
+ end
3189
+
3190
+ # The consumer-visible metadata of a subscription.
3191
+ class SubscriptionListing
3192
+ include Google::Apis::Core::Hashable
3193
+
3194
+ # A list of benefits shown to the user on platforms such as the Play Store and
3195
+ # in restoration flows in the language of this listing. Plain text. Ordered list
3196
+ # of at most four benefits.
3197
+ # Corresponds to the JSON property `benefits`
3198
+ # @return [Array<String>]
3199
+ attr_accessor :benefits
3200
+
3201
+ # The description of this subscription in the language of this listing. Maximum
3202
+ # length - 80 characters. Plain text.
3203
+ # Corresponds to the JSON property `description`
3204
+ # @return [String]
3205
+ attr_accessor :description
3206
+
3207
+ # Required. The language of this listing, as defined by BCP-47, e.g. "en-US".
3208
+ # Corresponds to the JSON property `languageCode`
3209
+ # @return [String]
3210
+ attr_accessor :language_code
3211
+
3212
+ # Required. The title of this subscription in the language of this listing.
3213
+ # Plain text.
3214
+ # Corresponds to the JSON property `title`
3215
+ # @return [String]
3216
+ attr_accessor :title
3217
+
3218
+ def initialize(**args)
3219
+ update!(**args)
3220
+ end
3221
+
3222
+ # Update properties of this object
3223
+ def update!(**args)
3224
+ @benefits = args[:benefits] if args.key?(:benefits)
3225
+ @description = args[:description] if args.key?(:description)
3226
+ @language_code = args[:language_code] if args.key?(:language_code)
3227
+ @title = args[:title] if args.key?(:title)
3228
+ end
3229
+ end
3230
+
3231
+ # A single, temporary offer
3232
+ class SubscriptionOffer
3233
+ include Google::Apis::Core::Hashable
3234
+
3235
+ # Required. Immutable. The ID of the base plan to which this offer is an
3236
+ # extension.
3237
+ # Corresponds to the JSON property `basePlanId`
3238
+ # @return [String]
3239
+ attr_accessor :base_plan_id
3240
+
3241
+ # Required. Immutable. Unique ID of this subscription offer. Must be unique
3242
+ # within the base plan.
3243
+ # Corresponds to the JSON property `offerId`
3244
+ # @return [String]
3245
+ attr_accessor :offer_id
3246
+
3247
+ # List of up to 20 custom tags specified for this offer, and returned to the app
3248
+ # through the billing library.
3249
+ # Corresponds to the JSON property `offerTags`
3250
+ # @return [Array<Google::Apis::AndroidpublisherV3::OfferTag>]
3251
+ attr_accessor :offer_tags
3252
+
3253
+ # Configuration for any new locations Play may launch in specified on a
3254
+ # subscription offer.
3255
+ # Corresponds to the JSON property `otherRegionsConfig`
3256
+ # @return [Google::Apis::AndroidpublisherV3::OtherRegionsSubscriptionOfferConfig]
3257
+ attr_accessor :other_regions_config
3258
+
3259
+ # Required. Immutable. The package name of the app the parent subscription
3260
+ # belongs to.
3261
+ # Corresponds to the JSON property `packageName`
3262
+ # @return [String]
3263
+ attr_accessor :package_name
3264
+
3265
+ # Required. The phases of this subscription offer. Must contain at least one
3266
+ # entry, and may contain at most five. Users will always receive all these
3267
+ # phases in the specified order. Phases may not be added, removed, or reordered
3268
+ # after initial creation.
3269
+ # Corresponds to the JSON property `phases`
3270
+ # @return [Array<Google::Apis::AndroidpublisherV3::SubscriptionOfferPhase>]
3271
+ attr_accessor :phases
3272
+
3273
+ # Required. Immutable. The ID of the parent subscription this offer belongs to.
3274
+ # Corresponds to the JSON property `productId`
3275
+ # @return [String]
3276
+ attr_accessor :product_id
3277
+
3278
+ # Required. The region-specific configuration of this offer. Must contain at
3279
+ # least one entry.
3280
+ # Corresponds to the JSON property `regionalConfigs`
3281
+ # @return [Array<Google::Apis::AndroidpublisherV3::RegionalSubscriptionOfferConfig>]
3282
+ attr_accessor :regional_configs
3283
+
3284
+ # Output only. The current state of this offer. Can be changed using Activate
3285
+ # and Deactivate actions. NB: the base plan state supersedes this state, so an
3286
+ # active offer may not be available if the base plan is not active.
3287
+ # Corresponds to the JSON property `state`
3288
+ # @return [String]
3289
+ attr_accessor :state
3290
+
3291
+ # Defines the rule a user needs to satisfy to receive this offer.
3292
+ # Corresponds to the JSON property `targeting`
3293
+ # @return [Google::Apis::AndroidpublisherV3::SubscriptionOfferTargeting]
3294
+ attr_accessor :targeting
3295
+
3296
+ def initialize(**args)
3297
+ update!(**args)
3298
+ end
3299
+
3300
+ # Update properties of this object
3301
+ def update!(**args)
3302
+ @base_plan_id = args[:base_plan_id] if args.key?(:base_plan_id)
3303
+ @offer_id = args[:offer_id] if args.key?(:offer_id)
3304
+ @offer_tags = args[:offer_tags] if args.key?(:offer_tags)
3305
+ @other_regions_config = args[:other_regions_config] if args.key?(:other_regions_config)
3306
+ @package_name = args[:package_name] if args.key?(:package_name)
3307
+ @phases = args[:phases] if args.key?(:phases)
3308
+ @product_id = args[:product_id] if args.key?(:product_id)
3309
+ @regional_configs = args[:regional_configs] if args.key?(:regional_configs)
3310
+ @state = args[:state] if args.key?(:state)
3311
+ @targeting = args[:targeting] if args.key?(:targeting)
3312
+ end
3313
+ end
3314
+
3315
+ # A single phase of a subscription offer.
3316
+ class SubscriptionOfferPhase
3317
+ include Google::Apis::Core::Hashable
3318
+
3319
+ # Required. The duration of a single recurrence of this phase. Specified in ISO
3320
+ # 8601 format.
3321
+ # Corresponds to the JSON property `duration`
3322
+ # @return [String]
3323
+ attr_accessor :duration
3324
+
3325
+ # Configuration for any new locations Play may launch in for a single offer
3326
+ # phase.
3327
+ # Corresponds to the JSON property `otherRegionsConfig`
3328
+ # @return [Google::Apis::AndroidpublisherV3::OtherRegionsSubscriptionOfferPhaseConfig]
3329
+ attr_accessor :other_regions_config
3330
+
3331
+ # Required. The number of times this phase repeats. If this offer phase is not
3332
+ # free, each recurrence charges the user the price of this offer phase.
3333
+ # Corresponds to the JSON property `recurrenceCount`
3334
+ # @return [Fixnum]
3335
+ attr_accessor :recurrence_count
3336
+
3337
+ # Required. The region-specific configuration of this offer phase. This list
3338
+ # must contain exactly one entry for each region for which the subscription
3339
+ # offer has a regional config.
3340
+ # Corresponds to the JSON property `regionalConfigs`
3341
+ # @return [Array<Google::Apis::AndroidpublisherV3::RegionalSubscriptionOfferPhaseConfig>]
3342
+ attr_accessor :regional_configs
3343
+
3344
+ def initialize(**args)
3345
+ update!(**args)
3346
+ end
3347
+
3348
+ # Update properties of this object
3349
+ def update!(**args)
3350
+ @duration = args[:duration] if args.key?(:duration)
3351
+ @other_regions_config = args[:other_regions_config] if args.key?(:other_regions_config)
3352
+ @recurrence_count = args[:recurrence_count] if args.key?(:recurrence_count)
3353
+ @regional_configs = args[:regional_configs] if args.key?(:regional_configs)
3354
+ end
3355
+ end
3356
+
3357
+ # Defines the rule a user needs to satisfy to receive this offer.
3358
+ class SubscriptionOfferTargeting
3359
+ include Google::Apis::Core::Hashable
3360
+
3361
+ # Represents a targeting rule of the form: User never had `scope` before.
3362
+ # Corresponds to the JSON property `acquisitionRule`
3363
+ # @return [Google::Apis::AndroidpublisherV3::AcquisitionTargetingRule]
3364
+ attr_accessor :acquisition_rule
1454
3365
 
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
3366
+ # Represents a targeting rule of the form: User currently has `scope` [with
3367
+ # billing period `billing_period`].
3368
+ # Corresponds to the JSON property `upgradeRule`
3369
+ # @return [Google::Apis::AndroidpublisherV3::UpgradeTargetingRule]
3370
+ attr_accessor :upgrade_rule
1460
3371
 
1461
3372
  def initialize(**args)
1462
3373
  update!(**args)
@@ -1464,8 +3375,8 @@ module Google
1464
3375
 
1465
3376
  # Update properties of this object
1466
3377
  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)
3378
+ @acquisition_rule = args[:acquisition_rule] if args.key?(:acquisition_rule)
3379
+ @upgrade_rule = args[:upgrade_rule] if args.key?(:upgrade_rule)
1469
3380
  end
1470
3381
  end
1471
3382
 
@@ -1626,7 +3537,8 @@ module Google
1626
3537
  attr_accessor :obfuscated_external_profile_id
1627
3538
 
1628
3539
  # The order id of the latest recurring order associated with the purchase of the
1629
- # subscription.
3540
+ # subscription. If the subscription was canceled because payment was declined,
3541
+ # this will be the order id from the payment declined order.
1630
3542
  # Corresponds to the JSON property `orderId`
1631
3543
  # @return [String]
1632
3544
  attr_accessor :order_id
@@ -1638,9 +3550,11 @@ module Google
1638
3550
  # @return [Fixnum]
1639
3551
  attr_accessor :payment_state
1640
3552
 
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.
3553
+ # Price of the subscription, For tax exclusive countries, the price doesn't
3554
+ # include tax. For tax inclusive countries, the price includes tax. Price is
3555
+ # expressed in micro-units, where 1,000,000 micro-units represents one unit of
3556
+ # the currency. For example, if the subscription price is €1.99,
3557
+ # price_amount_micros is 1990000.
1644
3558
  # Corresponds to the JSON property `priceAmountMicros`
1645
3559
  # @return [Fixnum]
1646
3560
  attr_accessor :price_amount_micros
@@ -1741,6 +3655,153 @@ module Google
1741
3655
  end
1742
3656
  end
1743
3657
 
3658
+ # Item-level info for a subscription purchase.
3659
+ class SubscriptionPurchaseLineItem
3660
+ include Google::Apis::Core::Hashable
3661
+
3662
+ # Information related to an auto renewing plan.
3663
+ # Corresponds to the JSON property `autoRenewingPlan`
3664
+ # @return [Google::Apis::AndroidpublisherV3::AutoRenewingPlan]
3665
+ attr_accessor :auto_renewing_plan
3666
+
3667
+ # Time at which the subscription expired or will expire unless the access is
3668
+ # extended (ex. renews).
3669
+ # Corresponds to the JSON property `expiryTime`
3670
+ # @return [String]
3671
+ attr_accessor :expiry_time
3672
+
3673
+ # Offer details information related to a purchase line item.
3674
+ # Corresponds to the JSON property `offerDetails`
3675
+ # @return [Google::Apis::AndroidpublisherV3::OfferDetails]
3676
+ attr_accessor :offer_details
3677
+
3678
+ # Information related to a prepaid plan.
3679
+ # Corresponds to the JSON property `prepaidPlan`
3680
+ # @return [Google::Apis::AndroidpublisherV3::PrepaidPlan]
3681
+ attr_accessor :prepaid_plan
3682
+
3683
+ # The purchased product ID (for example, 'monthly001').
3684
+ # Corresponds to the JSON property `productId`
3685
+ # @return [String]
3686
+ attr_accessor :product_id
3687
+
3688
+ def initialize(**args)
3689
+ update!(**args)
3690
+ end
3691
+
3692
+ # Update properties of this object
3693
+ def update!(**args)
3694
+ @auto_renewing_plan = args[:auto_renewing_plan] if args.key?(:auto_renewing_plan)
3695
+ @expiry_time = args[:expiry_time] if args.key?(:expiry_time)
3696
+ @offer_details = args[:offer_details] if args.key?(:offer_details)
3697
+ @prepaid_plan = args[:prepaid_plan] if args.key?(:prepaid_plan)
3698
+ @product_id = args[:product_id] if args.key?(:product_id)
3699
+ end
3700
+ end
3701
+
3702
+ # Indicates the status of a user's subscription purchase.
3703
+ class SubscriptionPurchaseV2
3704
+ include Google::Apis::Core::Hashable
3705
+
3706
+ # The acknowledgement state of the subscription.
3707
+ # Corresponds to the JSON property `acknowledgementState`
3708
+ # @return [String]
3709
+ attr_accessor :acknowledgement_state
3710
+
3711
+ # Information specific to a subscription in canceled state.
3712
+ # Corresponds to the JSON property `canceledStateContext`
3713
+ # @return [Google::Apis::AndroidpublisherV3::CanceledStateContext]
3714
+ attr_accessor :canceled_state_context
3715
+
3716
+ # User account identifier in the third-party service.
3717
+ # Corresponds to the JSON property `externalAccountIdentifiers`
3718
+ # @return [Google::Apis::AndroidpublisherV3::ExternalAccountIdentifiers]
3719
+ attr_accessor :external_account_identifiers
3720
+
3721
+ # This kind represents a SubscriptionPurchaseV2 object in the androidpublisher
3722
+ # service.
3723
+ # Corresponds to the JSON property `kind`
3724
+ # @return [String]
3725
+ attr_accessor :kind
3726
+
3727
+ # The order id of the latest order associated with the purchase of the
3728
+ # subscription. For autoRenewing subscription, this is the order id of signup
3729
+ # order if it is not renewed yet, or the last recurring order id (success,
3730
+ # pending, or declined order). For prepaid subscription, this is the order id
3731
+ # associated with the queried purchase token.
3732
+ # Corresponds to the JSON property `latestOrderId`
3733
+ # @return [String]
3734
+ attr_accessor :latest_order_id
3735
+
3736
+ # Item-level info for a subscription purchase. The items in the same purchase
3737
+ # should be either all with AutoRenewingPlan or all with PrepaidPlan.
3738
+ # Corresponds to the JSON property `lineItems`
3739
+ # @return [Array<Google::Apis::AndroidpublisherV3::SubscriptionPurchaseLineItem>]
3740
+ attr_accessor :line_items
3741
+
3742
+ # The purchase token of the old subscription if this subscription is one of the
3743
+ # following: * Re-signup of a canceled but non-lapsed subscription * Upgrade/
3744
+ # downgrade from a previous subscription. * Convert from prepaid to auto
3745
+ # renewing subscription. * Convert from an auto renewing subscription to prepaid.
3746
+ # * Topup a prepaid subscription.
3747
+ # Corresponds to the JSON property `linkedPurchaseToken`
3748
+ # @return [String]
3749
+ attr_accessor :linked_purchase_token
3750
+
3751
+ # Information specific to a subscription in paused state.
3752
+ # Corresponds to the JSON property `pausedStateContext`
3753
+ # @return [Google::Apis::AndroidpublisherV3::PausedStateContext]
3754
+ attr_accessor :paused_state_context
3755
+
3756
+ # ISO 3166-1 alpha-2 billing country/region code of the user at the time the
3757
+ # subscription was granted.
3758
+ # Corresponds to the JSON property `regionCode`
3759
+ # @return [String]
3760
+ attr_accessor :region_code
3761
+
3762
+ # Time at which the subscription was granted. Not set for pending subscriptions (
3763
+ # subscription was created but awaiting payment during signup).
3764
+ # Corresponds to the JSON property `startTime`
3765
+ # @return [String]
3766
+ attr_accessor :start_time
3767
+
3768
+ # Information associated with purchases made with 'Subscribe with Google'.
3769
+ # Corresponds to the JSON property `subscribeWithGoogleInfo`
3770
+ # @return [Google::Apis::AndroidpublisherV3::SubscribeWithGoogleInfo]
3771
+ attr_accessor :subscribe_with_google_info
3772
+
3773
+ # The current state of the subscription.
3774
+ # Corresponds to the JSON property `subscriptionState`
3775
+ # @return [String]
3776
+ attr_accessor :subscription_state
3777
+
3778
+ # Whether this subscription purchase is a test purchase.
3779
+ # Corresponds to the JSON property `testPurchase`
3780
+ # @return [Google::Apis::AndroidpublisherV3::TestPurchase]
3781
+ attr_accessor :test_purchase
3782
+
3783
+ def initialize(**args)
3784
+ update!(**args)
3785
+ end
3786
+
3787
+ # Update properties of this object
3788
+ def update!(**args)
3789
+ @acknowledgement_state = args[:acknowledgement_state] if args.key?(:acknowledgement_state)
3790
+ @canceled_state_context = args[:canceled_state_context] if args.key?(:canceled_state_context)
3791
+ @external_account_identifiers = args[:external_account_identifiers] if args.key?(:external_account_identifiers)
3792
+ @kind = args[:kind] if args.key?(:kind)
3793
+ @latest_order_id = args[:latest_order_id] if args.key?(:latest_order_id)
3794
+ @line_items = args[:line_items] if args.key?(:line_items)
3795
+ @linked_purchase_token = args[:linked_purchase_token] if args.key?(:linked_purchase_token)
3796
+ @paused_state_context = args[:paused_state_context] if args.key?(:paused_state_context)
3797
+ @region_code = args[:region_code] if args.key?(:region_code)
3798
+ @start_time = args[:start_time] if args.key?(:start_time)
3799
+ @subscribe_with_google_info = args[:subscribe_with_google_info] if args.key?(:subscribe_with_google_info)
3800
+ @subscription_state = args[:subscription_state] if args.key?(:subscription_state)
3801
+ @test_purchase = args[:test_purchase] if args.key?(:test_purchase)
3802
+ end
3803
+ end
3804
+
1744
3805
  # Request for the purchases.subscriptions.acknowledge API.
1745
3806
  class SubscriptionPurchasesAcknowledgeRequest
1746
3807
  include Google::Apis::Core::Hashable
@@ -1799,6 +3860,37 @@ module Google
1799
3860
  end
1800
3861
  end
1801
3862
 
3863
+ # Details about taxation, Google Play policy and legal compliance for
3864
+ # subscription products.
3865
+ class SubscriptionTaxAndComplianceSettings
3866
+ include Google::Apis::Core::Hashable
3867
+
3868
+ # Digital content or service classification for products distributed to users in
3869
+ # the European Economic Area (EEA). The withdrawal regime under EEA consumer
3870
+ # laws depends on this classification. Refer to the [Help Center article](https:/
3871
+ # /support.google.com/googleplay/android-developer/answer/10463498) for more
3872
+ # information.
3873
+ # Corresponds to the JSON property `eeaWithdrawalRightType`
3874
+ # @return [String]
3875
+ attr_accessor :eea_withdrawal_right_type
3876
+
3877
+ # A mapping from region code to tax rate details. The keys are region codes as
3878
+ # defined by Unicode's "CLDR".
3879
+ # Corresponds to the JSON property `taxRateInfoByRegionCode`
3880
+ # @return [Hash<String,Google::Apis::AndroidpublisherV3::RegionalTaxRateInfo>]
3881
+ attr_accessor :tax_rate_info_by_region_code
3882
+
3883
+ def initialize(**args)
3884
+ update!(**args)
3885
+ end
3886
+
3887
+ # Update properties of this object
3888
+ def update!(**args)
3889
+ @eea_withdrawal_right_type = args[:eea_withdrawal_right_type] if args.key?(:eea_withdrawal_right_type)
3890
+ @tax_rate_info_by_region_code = args[:tax_rate_info_by_region_code] if args.key?(:tax_rate_info_by_region_code)
3891
+ end
3892
+ end
3893
+
1802
3894
  # Response to list previously created system APK variants.
1803
3895
  class SystemApksListResponse
1804
3896
  include Google::Apis::Core::Hashable
@@ -1818,7 +3910,75 @@ module Google
1818
3910
  end
1819
3911
  end
1820
3912
 
1821
- # The testers of an app. The resource for TestersService.
3913
+ # Representation of a system feature.
3914
+ class SystemFeature
3915
+ include Google::Apis::Core::Hashable
3916
+
3917
+ # The name of the feature.
3918
+ # Corresponds to the JSON property `name`
3919
+ # @return [String]
3920
+ attr_accessor :name
3921
+
3922
+ def initialize(**args)
3923
+ update!(**args)
3924
+ end
3925
+
3926
+ # Update properties of this object
3927
+ def update!(**args)
3928
+ @name = args[:name] if args.key?(:name)
3929
+ end
3930
+ end
3931
+
3932
+ # Information specific to cancellations initiated by Google system.
3933
+ class SystemInitiatedCancellation
3934
+ include Google::Apis::Core::Hashable
3935
+
3936
+ def initialize(**args)
3937
+ update!(**args)
3938
+ end
3939
+
3940
+ # Update properties of this object
3941
+ def update!(**args)
3942
+ end
3943
+ end
3944
+
3945
+ # Defines the scope of subscriptions which a targeting rule can match to target
3946
+ # offers to users based on past or current entitlement.
3947
+ class TargetingRuleScope
3948
+ include Google::Apis::Core::Hashable
3949
+
3950
+ # The scope of the current targeting rule is the subscription with the specified
3951
+ # subscription ID. Must be a subscription within the same parent app.
3952
+ # Corresponds to the JSON property `specificSubscriptionInApp`
3953
+ # @return [String]
3954
+ attr_accessor :specific_subscription_in_app
3955
+
3956
+ def initialize(**args)
3957
+ update!(**args)
3958
+ end
3959
+
3960
+ # Update properties of this object
3961
+ def update!(**args)
3962
+ @specific_subscription_in_app = args[:specific_subscription_in_app] if args.key?(:specific_subscription_in_app)
3963
+ end
3964
+ end
3965
+
3966
+ # Whether this subscription purchase is a test purchase.
3967
+ class TestPurchase
3968
+ include Google::Apis::Core::Hashable
3969
+
3970
+ def initialize(**args)
3971
+ update!(**args)
3972
+ end
3973
+
3974
+ # Update properties of this object
3975
+ def update!(**args)
3976
+ end
3977
+ end
3978
+
3979
+ # The testers of an app. The resource for TestersService. Note: while it is
3980
+ # possible in the Play Console UI to add testers via email lists, email lists
3981
+ # are not supported by this resource.
1822
3982
  class Testers
1823
3983
  include Google::Apis::Core::Hashable
1824
3984
 
@@ -1925,6 +4085,45 @@ module Google
1925
4085
  end
1926
4086
  end
1927
4087
 
4088
+ # Resource for per-track country availability information.
4089
+ class TrackCountryAvailability
4090
+ include Google::Apis::Core::Hashable
4091
+
4092
+ # A list of one or more countries where artifacts in this track are available.
4093
+ # This list includes all countries that are targeted by the track, even if only
4094
+ # specific carriers are targeted in that country.
4095
+ # Corresponds to the JSON property `countries`
4096
+ # @return [Array<Google::Apis::AndroidpublisherV3::TrackTargetedCountry>]
4097
+ attr_accessor :countries
4098
+
4099
+ # Whether artifacts in this track are available to "rest of the world" countries.
4100
+ # Corresponds to the JSON property `restOfWorld`
4101
+ # @return [Boolean]
4102
+ attr_accessor :rest_of_world
4103
+ alias_method :rest_of_world?, :rest_of_world
4104
+
4105
+ # Whether this track's availability is synced with the default production track.
4106
+ # See https://support.google.com/googleplay/android-developer/answer/7550024 for
4107
+ # more information on syncing country availability with production. Note that if
4108
+ # this is true, the returned "countries" and "rest_of_world" fields will reflect
4109
+ # the values for the default production track.
4110
+ # Corresponds to the JSON property `syncWithProduction`
4111
+ # @return [Boolean]
4112
+ attr_accessor :sync_with_production
4113
+ alias_method :sync_with_production?, :sync_with_production
4114
+
4115
+ def initialize(**args)
4116
+ update!(**args)
4117
+ end
4118
+
4119
+ # Update properties of this object
4120
+ def update!(**args)
4121
+ @countries = args[:countries] if args.key?(:countries)
4122
+ @rest_of_world = args[:rest_of_world] if args.key?(:rest_of_world)
4123
+ @sync_with_production = args[:sync_with_production] if args.key?(:sync_with_production)
4124
+ end
4125
+ end
4126
+
1928
4127
  # A release within a track.
1929
4128
  class TrackRelease
1930
4129
  include Google::Apis::Core::Hashable
@@ -1988,6 +4187,25 @@ module Google
1988
4187
  end
1989
4188
  end
1990
4189
 
4190
+ # Representation of a single country where the contents of a track are available.
4191
+ class TrackTargetedCountry
4192
+ include Google::Apis::Core::Hashable
4193
+
4194
+ # The country to target, as a two-letter CLDR code.
4195
+ # Corresponds to the JSON property `countryCode`
4196
+ # @return [String]
4197
+ attr_accessor :country_code
4198
+
4199
+ def initialize(**args)
4200
+ update!(**args)
4201
+ end
4202
+
4203
+ # Update properties of this object
4204
+ def update!(**args)
4205
+ @country_code = args[:country_code] if args.key?(:country_code)
4206
+ end
4207
+ end
4208
+
1991
4209
  # Response listing all tracks.
1992
4210
  class TracksListResponse
1993
4211
  include Google::Apis::Core::Hashable
@@ -2013,6 +4231,107 @@ module Google
2013
4231
  end
2014
4232
  end
2015
4233
 
4234
+ # Represents a targeting rule of the form: User currently has `scope` [with
4235
+ # billing period `billing_period`].
4236
+ class UpgradeTargetingRule
4237
+ include Google::Apis::Core::Hashable
4238
+
4239
+ # The specific billing period duration, specified in ISO 8601 format, that a
4240
+ # user must be currently subscribed to to be eligible for this rule. If not
4241
+ # specified, users subscribed to any billing period are matched.
4242
+ # Corresponds to the JSON property `billingPeriodDuration`
4243
+ # @return [String]
4244
+ attr_accessor :billing_period_duration
4245
+
4246
+ # Limit this offer to only once per user. If set to true, a user can never be
4247
+ # eligible for this offer again if they ever subscribed to this offer.
4248
+ # Corresponds to the JSON property `oncePerUser`
4249
+ # @return [Boolean]
4250
+ attr_accessor :once_per_user
4251
+ alias_method :once_per_user?, :once_per_user
4252
+
4253
+ # Defines the scope of subscriptions which a targeting rule can match to target
4254
+ # offers to users based on past or current entitlement.
4255
+ # Corresponds to the JSON property `scope`
4256
+ # @return [Google::Apis::AndroidpublisherV3::TargetingRuleScope]
4257
+ attr_accessor :scope
4258
+
4259
+ def initialize(**args)
4260
+ update!(**args)
4261
+ end
4262
+
4263
+ # Update properties of this object
4264
+ def update!(**args)
4265
+ @billing_period_duration = args[:billing_period_duration] if args.key?(:billing_period_duration)
4266
+ @once_per_user = args[:once_per_user] if args.key?(:once_per_user)
4267
+ @scope = args[:scope] if args.key?(:scope)
4268
+ end
4269
+ end
4270
+
4271
+ # A user resource.
4272
+ class User
4273
+ include Google::Apis::Core::Hashable
4274
+
4275
+ # Output only. The state of the user's access to the Play Console.
4276
+ # Corresponds to the JSON property `accessState`
4277
+ # @return [String]
4278
+ attr_accessor :access_state
4279
+
4280
+ # Permissions for the user which apply across the developer account.
4281
+ # Corresponds to the JSON property `developerAccountPermissions`
4282
+ # @return [Array<String>]
4283
+ attr_accessor :developer_account_permissions
4284
+
4285
+ # Immutable. The user's email address.
4286
+ # Corresponds to the JSON property `email`
4287
+ # @return [String]
4288
+ attr_accessor :email
4289
+
4290
+ # The time at which the user's access expires, if set. When setting this value,
4291
+ # it must always be in the future.
4292
+ # Corresponds to the JSON property `expirationTime`
4293
+ # @return [String]
4294
+ attr_accessor :expiration_time
4295
+
4296
+ # Output only. Per-app permissions for the user.
4297
+ # Corresponds to the JSON property `grants`
4298
+ # @return [Array<Google::Apis::AndroidpublisherV3::Grant>]
4299
+ attr_accessor :grants
4300
+
4301
+ # Required. Resource name for this user, following the pattern "developers/`
4302
+ # developer`/users/`email`".
4303
+ # Corresponds to the JSON property `name`
4304
+ # @return [String]
4305
+ attr_accessor :name
4306
+
4307
+ # Output only. Whether there are more permissions for the user that are not
4308
+ # represented here. This can happen if the caller does not have permission to
4309
+ # manage all apps in the account. This is also `true` if this user is the
4310
+ # account owner. If this field is `true`, it should be taken as a signal that
4311
+ # this user cannot be fully managed via the API. That is, the API caller is not
4312
+ # be able to manage all of the permissions this user holds, either because it
4313
+ # doesn't know about them or because the user is the account owner.
4314
+ # Corresponds to the JSON property `partial`
4315
+ # @return [Boolean]
4316
+ attr_accessor :partial
4317
+ alias_method :partial?, :partial
4318
+
4319
+ def initialize(**args)
4320
+ update!(**args)
4321
+ end
4322
+
4323
+ # Update properties of this object
4324
+ def update!(**args)
4325
+ @access_state = args[:access_state] if args.key?(:access_state)
4326
+ @developer_account_permissions = args[:developer_account_permissions] if args.key?(:developer_account_permissions)
4327
+ @email = args[:email] if args.key?(:email)
4328
+ @expiration_time = args[:expiration_time] if args.key?(:expiration_time)
4329
+ @grants = args[:grants] if args.key?(:grants)
4330
+ @name = args[:name] if args.key?(:name)
4331
+ @partial = args[:partial] if args.key?(:partial)
4332
+ end
4333
+ end
4334
+
2016
4335
  # User entry from conversation between user and developer.
2017
4336
  class UserComment
2018
4337
  include Google::Apis::Core::Hashable
@@ -2108,6 +4427,60 @@ module Google
2108
4427
  end
2109
4428
  end
2110
4429
 
4430
+ # A set of user countries. A country set determines what variation of app
4431
+ # content gets served to a specific location.
4432
+ class UserCountrySet
4433
+ include Google::Apis::Core::Hashable
4434
+
4435
+ # List of country codes representing countries. A Country code is represented in
4436
+ # ISO 3166 alpha-2 format. For Example:- "IT" for Italy, "GE" for Georgia.
4437
+ # Corresponds to the JSON property `countryCodes`
4438
+ # @return [Array<String>]
4439
+ attr_accessor :country_codes
4440
+
4441
+ # Country set name.
4442
+ # Corresponds to the JSON property `name`
4443
+ # @return [String]
4444
+ attr_accessor :name
4445
+
4446
+ def initialize(**args)
4447
+ update!(**args)
4448
+ end
4449
+
4450
+ # Update properties of this object
4451
+ def update!(**args)
4452
+ @country_codes = args[:country_codes] if args.key?(:country_codes)
4453
+ @name = args[:name] if args.key?(:name)
4454
+ end
4455
+ end
4456
+
4457
+ # Information specific to cancellations initiated by users.
4458
+ class UserInitiatedCancellation
4459
+ include Google::Apis::Core::Hashable
4460
+
4461
+ # Result of the cancel survey when the subscription was canceled by the user.
4462
+ # Corresponds to the JSON property `cancelSurveyResult`
4463
+ # @return [Google::Apis::AndroidpublisherV3::CancelSurveyResult]
4464
+ attr_accessor :cancel_survey_result
4465
+
4466
+ # The time at which the subscription was canceled by the user. The user might
4467
+ # still have access to the subscription after this time. Use line_items.
4468
+ # expiry_time to determine if a user still has access.
4469
+ # Corresponds to the JSON property `cancelTime`
4470
+ # @return [String]
4471
+ attr_accessor :cancel_time
4472
+
4473
+ def initialize(**args)
4474
+ update!(**args)
4475
+ end
4476
+
4477
+ # Update properties of this object
4478
+ def update!(**args)
4479
+ @cancel_survey_result = args[:cancel_survey_result] if args.key?(:cancel_survey_result)
4480
+ @cancel_time = args[:cancel_time] if args.key?(:cancel_time)
4481
+ end
4482
+ end
4483
+
2111
4484
  # A permission used by this APK.
2112
4485
  class UsesPermission
2113
4486
  include Google::Apis::Core::Hashable