// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // Generated code. DO NOT EDIT! namespace Google.Apis.AndroidPublisher.v3 { /// The AndroidPublisher Service. public class AndroidPublisherService : Google.Apis.Services.BaseClientService { /// The API version. public const string Version = "v3"; /// The discovery version used to generate this service. public static Google.Apis.Discovery.DiscoveryVersion DiscoveryVersionUsed = Google.Apis.Discovery.DiscoveryVersion.Version_1_0; /// Constructs a new service. public AndroidPublisherService() : this(new Google.Apis.Services.BaseClientService.Initializer()) { } /// Constructs a new service. /// The service initializer. public AndroidPublisherService(Google.Apis.Services.BaseClientService.Initializer initializer) : base(initializer) { Applications = new ApplicationsResource(this); Apprecovery = new ApprecoveryResource(this); Edits = new EditsResource(this); Externaltransactions = new ExternaltransactionsResource(this); Generatedapks = new GeneratedapksResource(this); Grants = new GrantsResource(this); Inappproducts = new InappproductsResource(this); Internalappsharingartifacts = new InternalappsharingartifactsResource(this); Monetization = new MonetizationResource(this); Orders = new OrdersResource(this); Purchases = new PurchasesResource(this); Reviews = new ReviewsResource(this); Systemapks = new SystemapksResource(this); Users = new UsersResource(this); BaseUri = GetEffectiveUri(BaseUriOverride, "https://androidpublisher.googleapis.com/"); BatchUri = GetEffectiveUri(null, "https://androidpublisher.googleapis.com/batch"); } /// Gets the service supported features. public override System.Collections.Generic.IList Features => new string[0]; /// Gets the service name. public override string Name => "androidpublisher"; /// Gets the service base URI. public override string BaseUri { get; } /// Gets the service base path. public override string BasePath => ""; /// Gets the batch base URI; null if unspecified. public override string BatchUri { get; } /// Gets the batch base path; null if unspecified. public override string BatchPath => "batch"; /// Available OAuth 2.0 scopes for use with the Google Play Android Developer API. public class Scope { /// View and manage your Google Play Developer account public static string Androidpublisher = "https://www.googleapis.com/auth/androidpublisher"; } /// Available OAuth 2.0 scope constants for use with the Google Play Android Developer API. public static class ScopeConstants { /// View and manage your Google Play Developer account public const string Androidpublisher = "https://www.googleapis.com/auth/androidpublisher"; } /// Gets the Applications resource. public virtual ApplicationsResource Applications { get; } /// Gets the Apprecovery resource. public virtual ApprecoveryResource Apprecovery { get; } /// Gets the Edits resource. public virtual EditsResource Edits { get; } /// Gets the Externaltransactions resource. public virtual ExternaltransactionsResource Externaltransactions { get; } /// Gets the Generatedapks resource. public virtual GeneratedapksResource Generatedapks { get; } /// Gets the Grants resource. public virtual GrantsResource Grants { get; } /// Gets the Inappproducts resource. public virtual InappproductsResource Inappproducts { get; } /// Gets the Internalappsharingartifacts resource. public virtual InternalappsharingartifactsResource Internalappsharingartifacts { get; } /// Gets the Monetization resource. public virtual MonetizationResource Monetization { get; } /// Gets the Orders resource. public virtual OrdersResource Orders { get; } /// Gets the Purchases resource. public virtual PurchasesResource Purchases { get; } /// Gets the Reviews resource. public virtual ReviewsResource Reviews { get; } /// Gets the Systemapks resource. public virtual SystemapksResource Systemapks { get; } /// Gets the Users resource. public virtual UsersResource Users { get; } } /// A base abstract class for AndroidPublisher requests. public abstract class AndroidPublisherBaseServiceRequest : Google.Apis.Requests.ClientServiceRequest { /// Constructs a new AndroidPublisherBaseServiceRequest instance. protected AndroidPublisherBaseServiceRequest(Google.Apis.Services.IClientService service) : base(service) { } /// V1 error format. [Google.Apis.Util.RequestParameterAttribute("$.xgafv", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable Xgafv { get; set; } /// V1 error format. public enum XgafvEnum { /// v1 error format [Google.Apis.Util.StringValueAttribute("1")] Value1 = 0, /// v2 error format [Google.Apis.Util.StringValueAttribute("2")] Value2 = 1, } /// OAuth access token. [Google.Apis.Util.RequestParameterAttribute("access_token", Google.Apis.Util.RequestParameterType.Query)] public virtual string AccessToken { get; set; } /// Data format for response. [Google.Apis.Util.RequestParameterAttribute("alt", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable Alt { get; set; } /// Data format for response. public enum AltEnum { /// Responses with Content-Type of application/json [Google.Apis.Util.StringValueAttribute("json")] Json = 0, /// Media download with context-dependent Content-Type [Google.Apis.Util.StringValueAttribute("media")] Media = 1, /// Responses with Content-Type of application/x-protobuf [Google.Apis.Util.StringValueAttribute("proto")] Proto = 2, } /// JSONP [Google.Apis.Util.RequestParameterAttribute("callback", Google.Apis.Util.RequestParameterType.Query)] public virtual string Callback { get; set; } /// Selector specifying which fields to include in a partial response. [Google.Apis.Util.RequestParameterAttribute("fields", Google.Apis.Util.RequestParameterType.Query)] public virtual string Fields { get; set; } /// /// API key. Your API key identifies your project and provides you with API access, quota, and reports. Required /// unless you provide an OAuth 2.0 token. /// [Google.Apis.Util.RequestParameterAttribute("key", Google.Apis.Util.RequestParameterType.Query)] public virtual string Key { get; set; } /// OAuth 2.0 token for the current user. [Google.Apis.Util.RequestParameterAttribute("oauth_token", Google.Apis.Util.RequestParameterType.Query)] public virtual string OauthToken { get; set; } /// Returns response with indentations and line breaks. [Google.Apis.Util.RequestParameterAttribute("prettyPrint", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable PrettyPrint { get; set; } /// /// Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a /// user, but should not exceed 40 characters. /// [Google.Apis.Util.RequestParameterAttribute("quotaUser", Google.Apis.Util.RequestParameterType.Query)] public virtual string QuotaUser { get; set; } /// Legacy upload protocol for media (e.g. "media", "multipart"). [Google.Apis.Util.RequestParameterAttribute("uploadType", Google.Apis.Util.RequestParameterType.Query)] public virtual string UploadType { get; set; } /// Upload protocol for media (e.g. "raw", "multipart"). [Google.Apis.Util.RequestParameterAttribute("upload_protocol", Google.Apis.Util.RequestParameterType.Query)] public virtual string UploadProtocol { get; set; } /// Initializes AndroidPublisher parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("$.xgafv", new Google.Apis.Discovery.Parameter { Name = "$.xgafv", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("access_token", new Google.Apis.Discovery.Parameter { Name = "access_token", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("alt", new Google.Apis.Discovery.Parameter { Name = "alt", IsRequired = false, ParameterType = "query", DefaultValue = "json", Pattern = null, }); RequestParameters.Add("callback", new Google.Apis.Discovery.Parameter { Name = "callback", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("fields", new Google.Apis.Discovery.Parameter { Name = "fields", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("key", new Google.Apis.Discovery.Parameter { Name = "key", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("oauth_token", new Google.Apis.Discovery.Parameter { Name = "oauth_token", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("prettyPrint", new Google.Apis.Discovery.Parameter { Name = "prettyPrint", IsRequired = false, ParameterType = "query", DefaultValue = "true", Pattern = null, }); RequestParameters.Add("quotaUser", new Google.Apis.Discovery.Parameter { Name = "quotaUser", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("uploadType", new Google.Apis.Discovery.Parameter { Name = "uploadType", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("upload_protocol", new Google.Apis.Discovery.Parameter { Name = "upload_protocol", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// The "applications" collection of methods. public class ApplicationsResource { private const string Resource = "applications"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. public ApplicationsResource(Google.Apis.Services.IClientService service) { this.service = service; DeviceTierConfigs = new DeviceTierConfigsResource(service); } /// Gets the DeviceTierConfigs resource. public virtual DeviceTierConfigsResource DeviceTierConfigs { get; } /// The "deviceTierConfigs" collection of methods. public class DeviceTierConfigsResource { private const string Resource = "deviceTierConfigs"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. public DeviceTierConfigsResource(Google.Apis.Services.IClientService service) { this.service = service; } /// Creates a new device tier config for an app. /// The body of the request. /// Package name of the app. public virtual CreateRequest Create(Google.Apis.AndroidPublisher.v3.Data.DeviceTierConfig body, string packageName) { return new CreateRequest(this.service, body, packageName); } /// Creates a new device tier config for an app. public class CreateRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Create request. public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.DeviceTierConfig body, string packageName) : base(service) { PackageName = packageName; Body = body; InitParameters(); } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// /// Whether the service should accept device IDs that are unknown to Play's device catalog. /// [Google.Apis.Util.RequestParameterAttribute("allowUnknownDevices", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable AllowUnknownDevices { get; set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.DeviceTierConfig Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "create"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/deviceTierConfigs"; /// Initializes Create parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("allowUnknownDevices", new Google.Apis.Discovery.Parameter { Name = "allowUnknownDevices", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// Returns a particular device tier config. /// Package name of the app. /// Required. Id of an existing device tier config. public virtual GetRequest Get(string packageName, long deviceTierConfigId) { return new GetRequest(this.service, packageName, deviceTierConfigId); } /// Returns a particular device tier config. public class GetRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Get request. public GetRequest(Google.Apis.Services.IClientService service, string packageName, long deviceTierConfigId) : base(service) { PackageName = packageName; DeviceTierConfigId = deviceTierConfigId; InitParameters(); } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Required. Id of an existing device tier config. [Google.Apis.Util.RequestParameterAttribute("deviceTierConfigId", Google.Apis.Util.RequestParameterType.Path)] public virtual long DeviceTierConfigId { get; private set; } /// Gets the method name. public override string MethodName => "get"; /// Gets the HTTP method. public override string HttpMethod => "GET"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/deviceTierConfigs/{deviceTierConfigId}"; /// Initializes Get parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("deviceTierConfigId", new Google.Apis.Discovery.Parameter { Name = "deviceTierConfigId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// Returns created device tier configs, ordered by descending creation time. /// Package name of the app. public virtual ListRequest List(string packageName) { return new ListRequest(this.service, packageName); } /// Returns created device tier configs, ordered by descending creation time. public class ListRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new List request. public ListRequest(Google.Apis.Services.IClientService service, string packageName) : base(service) { PackageName = packageName; InitParameters(); } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// /// The maximum number of device tier configs to return. The service may return fewer than this value. /// If unspecified, at most 10 device tier configs will be returned. The maximum value for this field is /// 100; values above 100 will be coerced to 100. Device tier configs will be ordered by descending /// creation time. /// [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable PageSize { get; set; } /// /// A page token, received from a previous `ListDeviceTierConfigs` call. Provide this to retrieve the /// subsequent page. /// [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } /// Gets the method name. public override string MethodName => "list"; /// Gets the HTTP method. public override string HttpMethod => "GET"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/deviceTierConfigs"; /// Initializes List parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter { Name = "pageSize", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter { Name = "pageToken", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } } /// Writes the Safety Labels declaration of an app. /// The body of the request. /// Required. Package name of the app. public virtual DataSafetyRequest DataSafety(Google.Apis.AndroidPublisher.v3.Data.SafetyLabelsUpdateRequest body, string packageName) { return new DataSafetyRequest(this.service, body, packageName); } /// Writes the Safety Labels declaration of an app. public class DataSafetyRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new DataSafety request. public DataSafetyRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.SafetyLabelsUpdateRequest body, string packageName) : base(service) { PackageName = packageName; Body = body; InitParameters(); } /// Required. Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.SafetyLabelsUpdateRequest Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "dataSafety"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/dataSafety"; /// Initializes DataSafety parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } } /// The "apprecovery" collection of methods. public class ApprecoveryResource { private const string Resource = "apprecovery"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. public ApprecoveryResource(Google.Apis.Services.IClientService service) { this.service = service; } /// /// Incrementally update targeting for a recovery action. Note that only the criteria selected during the /// creation of recovery action can be expanded. /// /// The body of the request. /// /// Required. Package name of the app for which recovery action is to be updated. /// /// Required. ID corresponding to the app recovery action. public virtual AddTargetingRequest AddTargeting(Google.Apis.AndroidPublisher.v3.Data.AddTargetingRequest body, string packageName, long appRecoveryId) { return new AddTargetingRequest(this.service, body, packageName, appRecoveryId); } /// /// Incrementally update targeting for a recovery action. Note that only the criteria selected during the /// creation of recovery action can be expanded. /// public class AddTargetingRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new AddTargeting request. public AddTargetingRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.AddTargetingRequest body, string packageName, long appRecoveryId) : base(service) { PackageName = packageName; AppRecoveryId = appRecoveryId; Body = body; InitParameters(); } /// Required. Package name of the app for which recovery action is to be updated. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Required. ID corresponding to the app recovery action. [Google.Apis.Util.RequestParameterAttribute("appRecoveryId", Google.Apis.Util.RequestParameterType.Path)] public virtual long AppRecoveryId { get; private set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.AddTargetingRequest Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "addTargeting"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/appRecoveries/{appRecoveryId}:addTargeting"; /// Initializes AddTargeting parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("appRecoveryId", new Google.Apis.Discovery.Parameter { Name = "appRecoveryId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// /// Cancel an already executing app recovery action. Note that this action changes status of the recovery action /// to CANCELED. /// /// The body of the request. /// /// Required. Package name of the app for which recovery action cancellation is requested. /// /// Required. ID corresponding to the app recovery action. public virtual CancelRequest Cancel(Google.Apis.AndroidPublisher.v3.Data.CancelAppRecoveryRequest body, string packageName, long appRecoveryId) { return new CancelRequest(this.service, body, packageName, appRecoveryId); } /// /// Cancel an already executing app recovery action. Note that this action changes status of the recovery action /// to CANCELED. /// public class CancelRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Cancel request. public CancelRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.CancelAppRecoveryRequest body, string packageName, long appRecoveryId) : base(service) { PackageName = packageName; AppRecoveryId = appRecoveryId; Body = body; InitParameters(); } /// /// Required. Package name of the app for which recovery action cancellation is requested. /// [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Required. ID corresponding to the app recovery action. [Google.Apis.Util.RequestParameterAttribute("appRecoveryId", Google.Apis.Util.RequestParameterType.Path)] public virtual long AppRecoveryId { get; private set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.CancelAppRecoveryRequest Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "cancel"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/appRecoveries/{appRecoveryId}:cancel"; /// Initializes Cancel parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("appRecoveryId", new Google.Apis.Discovery.Parameter { Name = "appRecoveryId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// /// Create an app recovery action with recovery status as DRAFT. Note that this action does not execute the /// recovery action. /// /// The body of the request. /// Required. Package name of the app on which recovery action is performed. public virtual CreateRequest Create(Google.Apis.AndroidPublisher.v3.Data.CreateDraftAppRecoveryRequest body, string packageName) { return new CreateRequest(this.service, body, packageName); } /// /// Create an app recovery action with recovery status as DRAFT. Note that this action does not execute the /// recovery action. /// public class CreateRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Create request. public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.CreateDraftAppRecoveryRequest body, string packageName) : base(service) { PackageName = packageName; Body = body; InitParameters(); } /// Required. Package name of the app on which recovery action is performed. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.CreateDraftAppRecoveryRequest Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "create"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/appRecoveries"; /// Initializes Create parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// /// Deploy an already created app recovery action with recovery status DRAFT. Note that this action activates /// the recovery action for all targeted users and changes its status to ACTIVE. /// /// The body of the request. /// Required. Package name of the app for which recovery action is deployed. /// Required. ID corresponding to the app recovery action to deploy. public virtual DeployRequest Deploy(Google.Apis.AndroidPublisher.v3.Data.DeployAppRecoveryRequest body, string packageName, long appRecoveryId) { return new DeployRequest(this.service, body, packageName, appRecoveryId); } /// /// Deploy an already created app recovery action with recovery status DRAFT. Note that this action activates /// the recovery action for all targeted users and changes its status to ACTIVE. /// public class DeployRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Deploy request. public DeployRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.DeployAppRecoveryRequest body, string packageName, long appRecoveryId) : base(service) { PackageName = packageName; AppRecoveryId = appRecoveryId; Body = body; InitParameters(); } /// Required. Package name of the app for which recovery action is deployed. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Required. ID corresponding to the app recovery action to deploy. [Google.Apis.Util.RequestParameterAttribute("appRecoveryId", Google.Apis.Util.RequestParameterType.Path)] public virtual long AppRecoveryId { get; private set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.DeployAppRecoveryRequest Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "deploy"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/appRecoveries/{appRecoveryId}:deploy"; /// Initializes Deploy parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("appRecoveryId", new Google.Apis.Discovery.Parameter { Name = "appRecoveryId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// /// List all app recovery action resources associated with a particular package name and app version. /// /// /// Required. Package name of the app for which list of recovery actions is requested. /// public virtual ListRequest List(string packageName) { return new ListRequest(this.service, packageName); } /// /// List all app recovery action resources associated with a particular package name and app version. /// public class ListRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new List request. public ListRequest(Google.Apis.Services.IClientService service, string packageName) : base(service) { PackageName = packageName; InitParameters(); } /// Required. Package name of the app for which list of recovery actions is requested. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Required. Version code targeted by the list of recovery actions. [Google.Apis.Util.RequestParameterAttribute("versionCode", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable VersionCode { get; set; } /// Gets the method name. public override string MethodName => "list"; /// Gets the HTTP method. public override string HttpMethod => "GET"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/appRecoveries"; /// Initializes List parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("versionCode", new Google.Apis.Discovery.Parameter { Name = "versionCode", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } } /// The "edits" collection of methods. public class EditsResource { private const string Resource = "edits"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. public EditsResource(Google.Apis.Services.IClientService service) { this.service = service; Apks = new ApksResource(service); Bundles = new BundlesResource(service); Countryavailability = new CountryavailabilityResource(service); Deobfuscationfiles = new DeobfuscationfilesResource(service); Details = new DetailsResource(service); Expansionfiles = new ExpansionfilesResource(service); Images = new ImagesResource(service); Listings = new ListingsResource(service); Testers = new TestersResource(service); Tracks = new TracksResource(service); } /// Gets the Apks resource. public virtual ApksResource Apks { get; } /// The "apks" collection of methods. public class ApksResource { private const string Resource = "apks"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. public ApksResource(Google.Apis.Services.IClientService service) { this.service = service; } /// /// Creates a new APK without uploading the APK itself to Google Play, instead hosting the APK at a /// specified URL. This function is only available to organizations using Managed Play whose application is /// configured to restrict distribution to the organizations. /// /// The body of the request. /// Package name of the app. /// Identifier of the edit. public virtual AddexternallyhostedRequest Addexternallyhosted(Google.Apis.AndroidPublisher.v3.Data.ApksAddExternallyHostedRequest body, string packageName, string editId) { return new AddexternallyhostedRequest(this.service, body, packageName, editId); } /// /// Creates a new APK without uploading the APK itself to Google Play, instead hosting the APK at a /// specified URL. This function is only available to organizations using Managed Play whose application is /// configured to restrict distribution to the organizations. /// public class AddexternallyhostedRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Addexternallyhosted request. public AddexternallyhostedRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.ApksAddExternallyHostedRequest body, string packageName, string editId) : base(service) { PackageName = packageName; EditId = editId; Body = body; InitParameters(); } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Identifier of the edit. [Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)] public virtual string EditId { get; private set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.ApksAddExternallyHostedRequest Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "addexternallyhosted"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/externallyHosted"; /// Initializes Addexternallyhosted parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter { Name = "editId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// Lists all current APKs of the app and edit. /// Package name of the app. /// Identifier of the edit. public virtual ListRequest List(string packageName, string editId) { return new ListRequest(this.service, packageName, editId); } /// Lists all current APKs of the app and edit. public class ListRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new List request. public ListRequest(Google.Apis.Services.IClientService service, string packageName, string editId) : base(service) { PackageName = packageName; EditId = editId; InitParameters(); } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Identifier of the edit. [Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)] public virtual string EditId { get; private set; } /// Gets the method name. public override string MethodName => "list"; /// Gets the HTTP method. public override string HttpMethod => "GET"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/apks"; /// Initializes List parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter { Name = "editId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// Uploads an APK and adds to the current edit. /// Package name of the app. /// Identifier of the edit. public virtual UploadRequest Upload(string packageName, string editId) { return new UploadRequest(this.service, packageName, editId); } /// Uploads an APK and adds to the current edit. public class UploadRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Upload request. public UploadRequest(Google.Apis.Services.IClientService service, string packageName, string editId) : base(service) { PackageName = packageName; EditId = editId; InitParameters(); } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Identifier of the edit. [Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)] public virtual string EditId { get; private set; } /// Gets the method name. public override string MethodName => "upload"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/apks"; /// Initializes Upload parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter { Name = "editId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// Uploads an APK and adds to the current edit. /// /// Considerations regarding : /// /// /// /// If is seekable, then the stream position will be reset to 0 before /// reading commences. If is not seekable, then it will be read from its current /// position /// /// /// /// /// Caller is responsible for maintaining the open until the upload is completed /// /// /// Caller is responsible for closing the /// /// /// Package name of the app. /// Identifier of the edit. /// The stream to upload. See remarks for further information. /// The content type of the stream to upload. public virtual UploadMediaUpload Upload(string packageName, string editId, System.IO.Stream stream, string contentType) { return new UploadMediaUpload(service, packageName, editId, stream, contentType); } /// Upload media upload which supports resumable upload. public class UploadMediaUpload : Google.Apis.Upload.ResumableUpload { /// V1 error format. [Google.Apis.Util.RequestParameterAttribute("$.xgafv", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable Xgafv { get; set; } /// V1 error format. public enum XgafvEnum { /// v1 error format [Google.Apis.Util.StringValueAttribute("1")] Value1 = 0, /// v2 error format [Google.Apis.Util.StringValueAttribute("2")] Value2 = 1, } /// OAuth access token. [Google.Apis.Util.RequestParameterAttribute("access_token", Google.Apis.Util.RequestParameterType.Query)] public virtual string AccessToken { get; set; } /// Data format for response. [Google.Apis.Util.RequestParameterAttribute("alt", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable Alt { get; set; } /// Data format for response. public enum AltEnum { /// Responses with Content-Type of application/json [Google.Apis.Util.StringValueAttribute("json")] Json = 0, /// Media download with context-dependent Content-Type [Google.Apis.Util.StringValueAttribute("media")] Media = 1, /// Responses with Content-Type of application/x-protobuf [Google.Apis.Util.StringValueAttribute("proto")] Proto = 2, } /// JSONP [Google.Apis.Util.RequestParameterAttribute("callback", Google.Apis.Util.RequestParameterType.Query)] public virtual string Callback { get; set; } /// Selector specifying which fields to include in a partial response. [Google.Apis.Util.RequestParameterAttribute("fields", Google.Apis.Util.RequestParameterType.Query)] public virtual string Fields { get; set; } /// /// API key. Your API key identifies your project and provides you with API access, quota, and reports. /// Required unless you provide an OAuth 2.0 token. /// [Google.Apis.Util.RequestParameterAttribute("key", Google.Apis.Util.RequestParameterType.Query)] public virtual string Key { get; set; } /// OAuth 2.0 token for the current user. [Google.Apis.Util.RequestParameterAttribute("oauth_token", Google.Apis.Util.RequestParameterType.Query)] public virtual string OauthToken { get; set; } /// Returns response with indentations and line breaks. [Google.Apis.Util.RequestParameterAttribute("prettyPrint", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable PrettyPrint { get; set; } /// /// Available to use for quota purposes for server-side applications. Can be any arbitrary string /// assigned to a user, but should not exceed 40 characters. /// [Google.Apis.Util.RequestParameterAttribute("quotaUser", Google.Apis.Util.RequestParameterType.Query)] public virtual string QuotaUser { get; set; } /// Legacy upload protocol for media (e.g. "media", "multipart"). [Google.Apis.Util.RequestParameterAttribute("uploadType", Google.Apis.Util.RequestParameterType.Query)] public virtual string UploadType { get; set; } /// Upload protocol for media (e.g. "raw", "multipart"). [Google.Apis.Util.RequestParameterAttribute("upload_protocol", Google.Apis.Util.RequestParameterType.Query)] public virtual string UploadProtocol { get; set; } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Identifier of the edit. [Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)] public virtual string EditId { get; private set; } /// Constructs a new Upload media upload instance. /// /// Considerations regarding : /// /// /// /// If is seekable, then the stream position will be reset to 0 before /// reading commences. If is not seekable, then it will be read from its /// current position /// /// /// /// /// Caller is responsible for maintaining the open until the upload is /// completed /// /// /// /// Caller is responsible for closing the /// /// /// public UploadMediaUpload(Google.Apis.Services.IClientService service, string packageName, string editId, System.IO.Stream stream, string contentType) : base(service, string.Format("/{0}/{1}{2}", "upload", service.BasePath, "androidpublisher/v3/applications/{packageName}/edits/{editId}/apks"), "POST", stream, contentType) { PackageName = packageName; EditId = editId; } } } /// Gets the Bundles resource. public virtual BundlesResource Bundles { get; } /// The "bundles" collection of methods. public class BundlesResource { private const string Resource = "bundles"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. public BundlesResource(Google.Apis.Services.IClientService service) { this.service = service; } /// Lists all current Android App Bundles of the app and edit. /// Package name of the app. /// Identifier of the edit. public virtual ListRequest List(string packageName, string editId) { return new ListRequest(this.service, packageName, editId); } /// Lists all current Android App Bundles of the app and edit. public class ListRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new List request. public ListRequest(Google.Apis.Services.IClientService service, string packageName, string editId) : base(service) { PackageName = packageName; EditId = editId; InitParameters(); } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Identifier of the edit. [Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)] public virtual string EditId { get; private set; } /// Gets the method name. public override string MethodName => "list"; /// Gets the HTTP method. public override string HttpMethod => "GET"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/bundles"; /// Initializes List parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter { Name = "editId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// /// Uploads a new Android App Bundle to this edit. If you are using the Google API client libraries, please /// increase the timeout of the http request before calling this endpoint (a timeout of 2 minutes is /// recommended). See [Timeouts and /// Errors](https://developers.google.com/api-client-library/java/google-api-java-client/errors) for an /// example in java. /// /// Package name of the app. /// Identifier of the edit. public virtual UploadRequest Upload(string packageName, string editId) { return new UploadRequest(this.service, packageName, editId); } /// /// Uploads a new Android App Bundle to this edit. If you are using the Google API client libraries, please /// increase the timeout of the http request before calling this endpoint (a timeout of 2 minutes is /// recommended). See [Timeouts and /// Errors](https://developers.google.com/api-client-library/java/google-api-java-client/errors) for an /// example in java. /// public class UploadRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Upload request. public UploadRequest(Google.Apis.Services.IClientService service, string packageName, string editId) : base(service) { PackageName = packageName; EditId = editId; InitParameters(); } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Identifier of the edit. [Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)] public virtual string EditId { get; private set; } /// /// Deprecated. The installation warning has been removed, it's not necessary to set this field anymore. /// [Google.Apis.Util.RequestParameterAttribute("ackBundleInstallationWarning", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable AckBundleInstallationWarning { get; set; } /// /// Device tier config (DTC) to be used for generating deliverables (APKs). Contains id of the DTC or /// "LATEST" for last uploaded DTC. /// [Google.Apis.Util.RequestParameterAttribute("deviceTierConfigId", Google.Apis.Util.RequestParameterType.Query)] public virtual string DeviceTierConfigId { get; set; } /// Gets the method name. public override string MethodName => "upload"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/bundles"; /// Initializes Upload parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter { Name = "editId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("ackBundleInstallationWarning", new Google.Apis.Discovery.Parameter { Name = "ackBundleInstallationWarning", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("deviceTierConfigId", new Google.Apis.Discovery.Parameter { Name = "deviceTierConfigId", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// /// Uploads a new Android App Bundle to this edit. If you are using the Google API client libraries, please /// increase the timeout of the http request before calling this endpoint (a timeout of 2 minutes is /// recommended). See [Timeouts and /// Errors](https://developers.google.com/api-client-library/java/google-api-java-client/errors) for an /// example in java. /// /// /// Considerations regarding : /// /// /// /// If is seekable, then the stream position will be reset to 0 before /// reading commences. If is not seekable, then it will be read from its current /// position /// /// /// /// /// Caller is responsible for maintaining the open until the upload is completed /// /// /// Caller is responsible for closing the /// /// /// Package name of the app. /// Identifier of the edit. /// The stream to upload. See remarks for further information. /// The content type of the stream to upload. public virtual UploadMediaUpload Upload(string packageName, string editId, System.IO.Stream stream, string contentType) { return new UploadMediaUpload(service, packageName, editId, stream, contentType); } /// Upload media upload which supports resumable upload. public class UploadMediaUpload : Google.Apis.Upload.ResumableUpload { /// V1 error format. [Google.Apis.Util.RequestParameterAttribute("$.xgafv", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable Xgafv { get; set; } /// V1 error format. public enum XgafvEnum { /// v1 error format [Google.Apis.Util.StringValueAttribute("1")] Value1 = 0, /// v2 error format [Google.Apis.Util.StringValueAttribute("2")] Value2 = 1, } /// OAuth access token. [Google.Apis.Util.RequestParameterAttribute("access_token", Google.Apis.Util.RequestParameterType.Query)] public virtual string AccessToken { get; set; } /// Data format for response. [Google.Apis.Util.RequestParameterAttribute("alt", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable Alt { get; set; } /// Data format for response. public enum AltEnum { /// Responses with Content-Type of application/json [Google.Apis.Util.StringValueAttribute("json")] Json = 0, /// Media download with context-dependent Content-Type [Google.Apis.Util.StringValueAttribute("media")] Media = 1, /// Responses with Content-Type of application/x-protobuf [Google.Apis.Util.StringValueAttribute("proto")] Proto = 2, } /// JSONP [Google.Apis.Util.RequestParameterAttribute("callback", Google.Apis.Util.RequestParameterType.Query)] public virtual string Callback { get; set; } /// Selector specifying which fields to include in a partial response. [Google.Apis.Util.RequestParameterAttribute("fields", Google.Apis.Util.RequestParameterType.Query)] public virtual string Fields { get; set; } /// /// API key. Your API key identifies your project and provides you with API access, quota, and reports. /// Required unless you provide an OAuth 2.0 token. /// [Google.Apis.Util.RequestParameterAttribute("key", Google.Apis.Util.RequestParameterType.Query)] public virtual string Key { get; set; } /// OAuth 2.0 token for the current user. [Google.Apis.Util.RequestParameterAttribute("oauth_token", Google.Apis.Util.RequestParameterType.Query)] public virtual string OauthToken { get; set; } /// Returns response with indentations and line breaks. [Google.Apis.Util.RequestParameterAttribute("prettyPrint", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable PrettyPrint { get; set; } /// /// Available to use for quota purposes for server-side applications. Can be any arbitrary string /// assigned to a user, but should not exceed 40 characters. /// [Google.Apis.Util.RequestParameterAttribute("quotaUser", Google.Apis.Util.RequestParameterType.Query)] public virtual string QuotaUser { get; set; } /// Legacy upload protocol for media (e.g. "media", "multipart"). [Google.Apis.Util.RequestParameterAttribute("uploadType", Google.Apis.Util.RequestParameterType.Query)] public virtual string UploadType { get; set; } /// Upload protocol for media (e.g. "raw", "multipart"). [Google.Apis.Util.RequestParameterAttribute("upload_protocol", Google.Apis.Util.RequestParameterType.Query)] public virtual string UploadProtocol { get; set; } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Identifier of the edit. [Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)] public virtual string EditId { get; private set; } /// /// Deprecated. The installation warning has been removed, it's not necessary to set this field anymore. /// [Google.Apis.Util.RequestParameterAttribute("ackBundleInstallationWarning", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable AckBundleInstallationWarning { get; set; } /// /// Device tier config (DTC) to be used for generating deliverables (APKs). Contains id of the DTC or /// "LATEST" for last uploaded DTC. /// [Google.Apis.Util.RequestParameterAttribute("deviceTierConfigId", Google.Apis.Util.RequestParameterType.Query)] public virtual string DeviceTierConfigId { get; set; } /// Constructs a new Upload media upload instance. /// /// Considerations regarding : /// /// /// /// If is seekable, then the stream position will be reset to 0 before /// reading commences. If is not seekable, then it will be read from its /// current position /// /// /// /// /// Caller is responsible for maintaining the open until the upload is /// completed /// /// /// /// Caller is responsible for closing the /// /// /// public UploadMediaUpload(Google.Apis.Services.IClientService service, string packageName, string editId, System.IO.Stream stream, string contentType) : base(service, string.Format("/{0}/{1}{2}", "upload", service.BasePath, "androidpublisher/v3/applications/{packageName}/edits/{editId}/bundles"), "POST", stream, contentType) { PackageName = packageName; EditId = editId; } } } /// Gets the Countryavailability resource. public virtual CountryavailabilityResource Countryavailability { get; } /// The "countryavailability" collection of methods. public class CountryavailabilityResource { private const string Resource = "countryavailability"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. public CountryavailabilityResource(Google.Apis.Services.IClientService service) { this.service = service; } /// Gets country availability. /// Package name of the app. /// Identifier of the edit. /// The track to read from. public virtual GetRequest Get(string packageName, string editId, string track) { return new GetRequest(this.service, packageName, editId, track); } /// Gets country availability. public class GetRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Get request. public GetRequest(Google.Apis.Services.IClientService service, string packageName, string editId, string track) : base(service) { PackageName = packageName; EditId = editId; Track = track; InitParameters(); } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Identifier of the edit. [Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)] public virtual string EditId { get; private set; } /// The track to read from. [Google.Apis.Util.RequestParameterAttribute("track", Google.Apis.Util.RequestParameterType.Path)] public virtual string Track { get; private set; } /// Gets the method name. public override string MethodName => "get"; /// Gets the HTTP method. public override string HttpMethod => "GET"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/countryAvailability/{track}"; /// Initializes Get parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter { Name = "editId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("track", new Google.Apis.Discovery.Parameter { Name = "track", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } } /// Gets the Deobfuscationfiles resource. public virtual DeobfuscationfilesResource Deobfuscationfiles { get; } /// The "deobfuscationfiles" collection of methods. public class DeobfuscationfilesResource { private const string Resource = "deobfuscationfiles"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. public DeobfuscationfilesResource(Google.Apis.Services.IClientService service) { this.service = service; } /// Uploads a new deobfuscation file and attaches to the specified APK. /// Unique identifier for the Android app. /// Unique identifier for this edit. /// /// The version code of the APK whose Deobfuscation File is being uploaded. /// /// The type of the deobfuscation file. public virtual UploadRequest Upload(string packageName, string editId, int apkVersionCode, UploadRequest.DeobfuscationFileTypeEnum deobfuscationFileType) { return new UploadRequest(this.service, packageName, editId, apkVersionCode, deobfuscationFileType); } /// Uploads a new deobfuscation file and attaches to the specified APK. public class UploadRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Upload request. public UploadRequest(Google.Apis.Services.IClientService service, string packageName, string editId, int apkVersionCode, DeobfuscationFileTypeEnum deobfuscationFileType) : base(service) { PackageName = packageName; EditId = editId; ApkVersionCode = apkVersionCode; DeobfuscationFileType = deobfuscationFileType; InitParameters(); } /// Unique identifier for the Android app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Unique identifier for this edit. [Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)] public virtual string EditId { get; private set; } /// The version code of the APK whose Deobfuscation File is being uploaded. [Google.Apis.Util.RequestParameterAttribute("apkVersionCode", Google.Apis.Util.RequestParameterType.Path)] public virtual int ApkVersionCode { get; private set; } /// The type of the deobfuscation file. [Google.Apis.Util.RequestParameterAttribute("deobfuscationFileType", Google.Apis.Util.RequestParameterType.Path)] public virtual DeobfuscationFileTypeEnum DeobfuscationFileType { get; private set; } /// The type of the deobfuscation file. public enum DeobfuscationFileTypeEnum { /// Unspecified deobfuscation file type. [Google.Apis.Util.StringValueAttribute("deobfuscationFileTypeUnspecified")] DeobfuscationFileTypeUnspecified = 0, /// Proguard deobfuscation file type. [Google.Apis.Util.StringValueAttribute("proguard")] Proguard = 1, /// Native debugging symbols file type. [Google.Apis.Util.StringValueAttribute("nativeCode")] NativeCode = 2, } /// Gets the method name. public override string MethodName => "upload"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/deobfuscationFiles/{deobfuscationFileType}"; /// Initializes Upload parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter { Name = "editId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("apkVersionCode", new Google.Apis.Discovery.Parameter { Name = "apkVersionCode", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("deobfuscationFileType", new Google.Apis.Discovery.Parameter { Name = "deobfuscationFileType", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// Uploads a new deobfuscation file and attaches to the specified APK. /// /// Considerations regarding : /// /// /// /// If is seekable, then the stream position will be reset to 0 before /// reading commences. If is not seekable, then it will be read from its current /// position /// /// /// /// /// Caller is responsible for maintaining the open until the upload is completed /// /// /// Caller is responsible for closing the /// /// /// Unique identifier for the Android app. /// Unique identifier for this edit. /// /// The version code of the APK whose Deobfuscation File is being uploaded. /// /// The type of the deobfuscation file. /// The stream to upload. See remarks for further information. /// The content type of the stream to upload. public virtual UploadMediaUpload Upload(string packageName, string editId, int apkVersionCode, UploadMediaUpload.DeobfuscationFileTypeEnum deobfuscationFileType, System.IO.Stream stream, string contentType) { return new UploadMediaUpload(service, packageName, editId, apkVersionCode, deobfuscationFileType, stream, contentType); } /// Upload media upload which supports resumable upload. public class UploadMediaUpload : Google.Apis.Upload.ResumableUpload { /// V1 error format. [Google.Apis.Util.RequestParameterAttribute("$.xgafv", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable Xgafv { get; set; } /// V1 error format. public enum XgafvEnum { /// v1 error format [Google.Apis.Util.StringValueAttribute("1")] Value1 = 0, /// v2 error format [Google.Apis.Util.StringValueAttribute("2")] Value2 = 1, } /// OAuth access token. [Google.Apis.Util.RequestParameterAttribute("access_token", Google.Apis.Util.RequestParameterType.Query)] public virtual string AccessToken { get; set; } /// Data format for response. [Google.Apis.Util.RequestParameterAttribute("alt", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable Alt { get; set; } /// Data format for response. public enum AltEnum { /// Responses with Content-Type of application/json [Google.Apis.Util.StringValueAttribute("json")] Json = 0, /// Media download with context-dependent Content-Type [Google.Apis.Util.StringValueAttribute("media")] Media = 1, /// Responses with Content-Type of application/x-protobuf [Google.Apis.Util.StringValueAttribute("proto")] Proto = 2, } /// JSONP [Google.Apis.Util.RequestParameterAttribute("callback", Google.Apis.Util.RequestParameterType.Query)] public virtual string Callback { get; set; } /// Selector specifying which fields to include in a partial response. [Google.Apis.Util.RequestParameterAttribute("fields", Google.Apis.Util.RequestParameterType.Query)] public virtual string Fields { get; set; } /// /// API key. Your API key identifies your project and provides you with API access, quota, and reports. /// Required unless you provide an OAuth 2.0 token. /// [Google.Apis.Util.RequestParameterAttribute("key", Google.Apis.Util.RequestParameterType.Query)] public virtual string Key { get; set; } /// OAuth 2.0 token for the current user. [Google.Apis.Util.RequestParameterAttribute("oauth_token", Google.Apis.Util.RequestParameterType.Query)] public virtual string OauthToken { get; set; } /// Returns response with indentations and line breaks. [Google.Apis.Util.RequestParameterAttribute("prettyPrint", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable PrettyPrint { get; set; } /// /// Available to use for quota purposes for server-side applications. Can be any arbitrary string /// assigned to a user, but should not exceed 40 characters. /// [Google.Apis.Util.RequestParameterAttribute("quotaUser", Google.Apis.Util.RequestParameterType.Query)] public virtual string QuotaUser { get; set; } /// Legacy upload protocol for media (e.g. "media", "multipart"). [Google.Apis.Util.RequestParameterAttribute("uploadType", Google.Apis.Util.RequestParameterType.Query)] public virtual string UploadType { get; set; } /// Upload protocol for media (e.g. "raw", "multipart"). [Google.Apis.Util.RequestParameterAttribute("upload_protocol", Google.Apis.Util.RequestParameterType.Query)] public virtual string UploadProtocol { get; set; } /// Unique identifier for the Android app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Unique identifier for this edit. [Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)] public virtual string EditId { get; private set; } /// The version code of the APK whose Deobfuscation File is being uploaded. [Google.Apis.Util.RequestParameterAttribute("apkVersionCode", Google.Apis.Util.RequestParameterType.Path)] public virtual int ApkVersionCode { get; private set; } /// The type of the deobfuscation file. [Google.Apis.Util.RequestParameterAttribute("deobfuscationFileType", Google.Apis.Util.RequestParameterType.Path)] public virtual DeobfuscationFileTypeEnum DeobfuscationFileType { get; private set; } /// The type of the deobfuscation file. public enum DeobfuscationFileTypeEnum { /// Unspecified deobfuscation file type. [Google.Apis.Util.StringValueAttribute("deobfuscationFileTypeUnspecified")] DeobfuscationFileTypeUnspecified = 0, /// Proguard deobfuscation file type. [Google.Apis.Util.StringValueAttribute("proguard")] Proguard = 1, /// Native debugging symbols file type. [Google.Apis.Util.StringValueAttribute("nativeCode")] NativeCode = 2, } /// Constructs a new Upload media upload instance. /// /// Considerations regarding : /// /// /// /// If is seekable, then the stream position will be reset to 0 before /// reading commences. If is not seekable, then it will be read from its /// current position /// /// /// /// /// Caller is responsible for maintaining the open until the upload is /// completed /// /// /// /// Caller is responsible for closing the /// /// /// public UploadMediaUpload(Google.Apis.Services.IClientService service, string packageName, string editId, int apkVersionCode, UploadMediaUpload.DeobfuscationFileTypeEnum deobfuscationFileType, System.IO.Stream stream, string contentType) : base(service, string.Format("/{0}/{1}{2}", "upload", service.BasePath, "androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/deobfuscationFiles/{deobfuscationFileType}"), "POST", stream, contentType) { PackageName = packageName; EditId = editId; ApkVersionCode = apkVersionCode; DeobfuscationFileType = deobfuscationFileType; } } } /// Gets the Details resource. public virtual DetailsResource Details { get; } /// The "details" collection of methods. public class DetailsResource { private const string Resource = "details"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. public DetailsResource(Google.Apis.Services.IClientService service) { this.service = service; } /// Gets details of an app. /// Package name of the app. /// Identifier of the edit. public virtual GetRequest Get(string packageName, string editId) { return new GetRequest(this.service, packageName, editId); } /// Gets details of an app. public class GetRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Get request. public GetRequest(Google.Apis.Services.IClientService service, string packageName, string editId) : base(service) { PackageName = packageName; EditId = editId; InitParameters(); } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Identifier of the edit. [Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)] public virtual string EditId { get; private set; } /// Gets the method name. public override string MethodName => "get"; /// Gets the HTTP method. public override string HttpMethod => "GET"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/details"; /// Initializes Get parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter { Name = "editId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// Patches details of an app. /// The body of the request. /// Package name of the app. /// Identifier of the edit. public virtual PatchRequest Patch(Google.Apis.AndroidPublisher.v3.Data.AppDetails body, string packageName, string editId) { return new PatchRequest(this.service, body, packageName, editId); } /// Patches details of an app. public class PatchRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Patch request. public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.AppDetails body, string packageName, string editId) : base(service) { PackageName = packageName; EditId = editId; Body = body; InitParameters(); } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Identifier of the edit. [Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)] public virtual string EditId { get; private set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.AppDetails Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "patch"; /// Gets the HTTP method. public override string HttpMethod => "PATCH"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/details"; /// Initializes Patch parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter { Name = "editId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// Updates details of an app. /// The body of the request. /// Package name of the app. /// Identifier of the edit. public virtual UpdateRequest Update(Google.Apis.AndroidPublisher.v3.Data.AppDetails body, string packageName, string editId) { return new UpdateRequest(this.service, body, packageName, editId); } /// Updates details of an app. public class UpdateRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Update request. public UpdateRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.AppDetails body, string packageName, string editId) : base(service) { PackageName = packageName; EditId = editId; Body = body; InitParameters(); } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Identifier of the edit. [Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)] public virtual string EditId { get; private set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.AppDetails Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "update"; /// Gets the HTTP method. public override string HttpMethod => "PUT"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/details"; /// Initializes Update parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter { Name = "editId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } } /// Gets the Expansionfiles resource. public virtual ExpansionfilesResource Expansionfiles { get; } /// The "expansionfiles" collection of methods. public class ExpansionfilesResource { private const string Resource = "expansionfiles"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. public ExpansionfilesResource(Google.Apis.Services.IClientService service) { this.service = service; } /// Fetches the expansion file configuration for the specified APK. /// Package name of the app. /// Identifier of the edit. /// /// The version code of the APK whose expansion file configuration is being read or modified. /// /// /// The file type of the file configuration which is being read or modified. /// public virtual GetRequest Get(string packageName, string editId, int apkVersionCode, GetRequest.ExpansionFileTypeEnum expansionFileType) { return new GetRequest(this.service, packageName, editId, apkVersionCode, expansionFileType); } /// Fetches the expansion file configuration for the specified APK. public class GetRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Get request. public GetRequest(Google.Apis.Services.IClientService service, string packageName, string editId, int apkVersionCode, ExpansionFileTypeEnum expansionFileType) : base(service) { PackageName = packageName; EditId = editId; ApkVersionCode = apkVersionCode; ExpansionFileType = expansionFileType; InitParameters(); } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Identifier of the edit. [Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)] public virtual string EditId { get; private set; } /// /// The version code of the APK whose expansion file configuration is being read or modified. /// [Google.Apis.Util.RequestParameterAttribute("apkVersionCode", Google.Apis.Util.RequestParameterType.Path)] public virtual int ApkVersionCode { get; private set; } /// The file type of the file configuration which is being read or modified. [Google.Apis.Util.RequestParameterAttribute("expansionFileType", Google.Apis.Util.RequestParameterType.Path)] public virtual ExpansionFileTypeEnum ExpansionFileType { get; private set; } /// The file type of the file configuration which is being read or modified. public enum ExpansionFileTypeEnum { /// Unspecified expansion file type. [Google.Apis.Util.StringValueAttribute("expansionFileTypeUnspecified")] ExpansionFileTypeUnspecified = 0, /// Main expansion file. [Google.Apis.Util.StringValueAttribute("main")] Main = 1, /// Patch expansion file. [Google.Apis.Util.StringValueAttribute("patch")] Patch = 2, } /// Gets the method name. public override string MethodName => "get"; /// Gets the HTTP method. public override string HttpMethod => "GET"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}"; /// Initializes Get parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter { Name = "editId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("apkVersionCode", new Google.Apis.Discovery.Parameter { Name = "apkVersionCode", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("expansionFileType", new Google.Apis.Discovery.Parameter { Name = "expansionFileType", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// /// Patches the APK's expansion file configuration to reference another APK's expansion file. To add a new /// expansion file use the Upload method. /// /// The body of the request. /// Package name of the app. /// Identifier of the edit. /// /// The version code of the APK whose expansion file configuration is being read or modified. /// /// /// The file type of the expansion file configuration which is being updated. /// public virtual PatchRequest Patch(Google.Apis.AndroidPublisher.v3.Data.ExpansionFile body, string packageName, string editId, int apkVersionCode, PatchRequest.ExpansionFileTypeEnum expansionFileType) { return new PatchRequest(this.service, body, packageName, editId, apkVersionCode, expansionFileType); } /// /// Patches the APK's expansion file configuration to reference another APK's expansion file. To add a new /// expansion file use the Upload method. /// public class PatchRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Patch request. public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.ExpansionFile body, string packageName, string editId, int apkVersionCode, ExpansionFileTypeEnum expansionFileType) : base(service) { PackageName = packageName; EditId = editId; ApkVersionCode = apkVersionCode; ExpansionFileType = expansionFileType; Body = body; InitParameters(); } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Identifier of the edit. [Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)] public virtual string EditId { get; private set; } /// /// The version code of the APK whose expansion file configuration is being read or modified. /// [Google.Apis.Util.RequestParameterAttribute("apkVersionCode", Google.Apis.Util.RequestParameterType.Path)] public virtual int ApkVersionCode { get; private set; } /// The file type of the expansion file configuration which is being updated. [Google.Apis.Util.RequestParameterAttribute("expansionFileType", Google.Apis.Util.RequestParameterType.Path)] public virtual ExpansionFileTypeEnum ExpansionFileType { get; private set; } /// The file type of the expansion file configuration which is being updated. public enum ExpansionFileTypeEnum { /// Unspecified expansion file type. [Google.Apis.Util.StringValueAttribute("expansionFileTypeUnspecified")] ExpansionFileTypeUnspecified = 0, /// Main expansion file. [Google.Apis.Util.StringValueAttribute("main")] Main = 1, /// Patch expansion file. [Google.Apis.Util.StringValueAttribute("patch")] Patch = 2, } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.ExpansionFile Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "patch"; /// Gets the HTTP method. public override string HttpMethod => "PATCH"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}"; /// Initializes Patch parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter { Name = "editId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("apkVersionCode", new Google.Apis.Discovery.Parameter { Name = "apkVersionCode", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("expansionFileType", new Google.Apis.Discovery.Parameter { Name = "expansionFileType", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// /// Updates the APK's expansion file configuration to reference another APK's expansion file. To add a new /// expansion file use the Upload method. /// /// The body of the request. /// Package name of the app. /// Identifier of the edit. /// /// The version code of the APK whose expansion file configuration is being read or modified. /// /// /// The file type of the file configuration which is being read or modified. /// public virtual UpdateRequest Update(Google.Apis.AndroidPublisher.v3.Data.ExpansionFile body, string packageName, string editId, int apkVersionCode, UpdateRequest.ExpansionFileTypeEnum expansionFileType) { return new UpdateRequest(this.service, body, packageName, editId, apkVersionCode, expansionFileType); } /// /// Updates the APK's expansion file configuration to reference another APK's expansion file. To add a new /// expansion file use the Upload method. /// public class UpdateRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Update request. public UpdateRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.ExpansionFile body, string packageName, string editId, int apkVersionCode, ExpansionFileTypeEnum expansionFileType) : base(service) { PackageName = packageName; EditId = editId; ApkVersionCode = apkVersionCode; ExpansionFileType = expansionFileType; Body = body; InitParameters(); } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Identifier of the edit. [Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)] public virtual string EditId { get; private set; } /// /// The version code of the APK whose expansion file configuration is being read or modified. /// [Google.Apis.Util.RequestParameterAttribute("apkVersionCode", Google.Apis.Util.RequestParameterType.Path)] public virtual int ApkVersionCode { get; private set; } /// The file type of the file configuration which is being read or modified. [Google.Apis.Util.RequestParameterAttribute("expansionFileType", Google.Apis.Util.RequestParameterType.Path)] public virtual ExpansionFileTypeEnum ExpansionFileType { get; private set; } /// The file type of the file configuration which is being read or modified. public enum ExpansionFileTypeEnum { /// Unspecified expansion file type. [Google.Apis.Util.StringValueAttribute("expansionFileTypeUnspecified")] ExpansionFileTypeUnspecified = 0, /// Main expansion file. [Google.Apis.Util.StringValueAttribute("main")] Main = 1, /// Patch expansion file. [Google.Apis.Util.StringValueAttribute("patch")] Patch = 2, } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.ExpansionFile Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "update"; /// Gets the HTTP method. public override string HttpMethod => "PUT"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}"; /// Initializes Update parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter { Name = "editId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("apkVersionCode", new Google.Apis.Discovery.Parameter { Name = "apkVersionCode", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("expansionFileType", new Google.Apis.Discovery.Parameter { Name = "expansionFileType", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// Uploads a new expansion file and attaches to the specified APK. /// Package name of the app. /// Identifier of the edit. /// /// The version code of the APK whose expansion file configuration is being read or modified. /// /// /// The file type of the expansion file configuration which is being updated. /// public virtual UploadRequest Upload(string packageName, string editId, int apkVersionCode, UploadRequest.ExpansionFileTypeEnum expansionFileType) { return new UploadRequest(this.service, packageName, editId, apkVersionCode, expansionFileType); } /// Uploads a new expansion file and attaches to the specified APK. public class UploadRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Upload request. public UploadRequest(Google.Apis.Services.IClientService service, string packageName, string editId, int apkVersionCode, ExpansionFileTypeEnum expansionFileType) : base(service) { PackageName = packageName; EditId = editId; ApkVersionCode = apkVersionCode; ExpansionFileType = expansionFileType; InitParameters(); } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Identifier of the edit. [Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)] public virtual string EditId { get; private set; } /// /// The version code of the APK whose expansion file configuration is being read or modified. /// [Google.Apis.Util.RequestParameterAttribute("apkVersionCode", Google.Apis.Util.RequestParameterType.Path)] public virtual int ApkVersionCode { get; private set; } /// The file type of the expansion file configuration which is being updated. [Google.Apis.Util.RequestParameterAttribute("expansionFileType", Google.Apis.Util.RequestParameterType.Path)] public virtual ExpansionFileTypeEnum ExpansionFileType { get; private set; } /// The file type of the expansion file configuration which is being updated. public enum ExpansionFileTypeEnum { /// Unspecified expansion file type. [Google.Apis.Util.StringValueAttribute("expansionFileTypeUnspecified")] ExpansionFileTypeUnspecified = 0, /// Main expansion file. [Google.Apis.Util.StringValueAttribute("main")] Main = 1, /// Patch expansion file. [Google.Apis.Util.StringValueAttribute("patch")] Patch = 2, } /// Gets the method name. public override string MethodName => "upload"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}"; /// Initializes Upload parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter { Name = "editId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("apkVersionCode", new Google.Apis.Discovery.Parameter { Name = "apkVersionCode", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("expansionFileType", new Google.Apis.Discovery.Parameter { Name = "expansionFileType", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// Uploads a new expansion file and attaches to the specified APK. /// /// Considerations regarding : /// /// /// /// If is seekable, then the stream position will be reset to 0 before /// reading commences. If is not seekable, then it will be read from its current /// position /// /// /// /// /// Caller is responsible for maintaining the open until the upload is completed /// /// /// Caller is responsible for closing the /// /// /// Package name of the app. /// Identifier of the edit. /// /// The version code of the APK whose expansion file configuration is being read or modified. /// /// /// The file type of the expansion file configuration which is being updated. /// /// The stream to upload. See remarks for further information. /// The content type of the stream to upload. public virtual UploadMediaUpload Upload(string packageName, string editId, int apkVersionCode, UploadMediaUpload.ExpansionFileTypeEnum expansionFileType, System.IO.Stream stream, string contentType) { return new UploadMediaUpload(service, packageName, editId, apkVersionCode, expansionFileType, stream, contentType); } /// Upload media upload which supports resumable upload. public class UploadMediaUpload : Google.Apis.Upload.ResumableUpload { /// V1 error format. [Google.Apis.Util.RequestParameterAttribute("$.xgafv", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable Xgafv { get; set; } /// V1 error format. public enum XgafvEnum { /// v1 error format [Google.Apis.Util.StringValueAttribute("1")] Value1 = 0, /// v2 error format [Google.Apis.Util.StringValueAttribute("2")] Value2 = 1, } /// OAuth access token. [Google.Apis.Util.RequestParameterAttribute("access_token", Google.Apis.Util.RequestParameterType.Query)] public virtual string AccessToken { get; set; } /// Data format for response. [Google.Apis.Util.RequestParameterAttribute("alt", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable Alt { get; set; } /// Data format for response. public enum AltEnum { /// Responses with Content-Type of application/json [Google.Apis.Util.StringValueAttribute("json")] Json = 0, /// Media download with context-dependent Content-Type [Google.Apis.Util.StringValueAttribute("media")] Media = 1, /// Responses with Content-Type of application/x-protobuf [Google.Apis.Util.StringValueAttribute("proto")] Proto = 2, } /// JSONP [Google.Apis.Util.RequestParameterAttribute("callback", Google.Apis.Util.RequestParameterType.Query)] public virtual string Callback { get; set; } /// Selector specifying which fields to include in a partial response. [Google.Apis.Util.RequestParameterAttribute("fields", Google.Apis.Util.RequestParameterType.Query)] public virtual string Fields { get; set; } /// /// API key. Your API key identifies your project and provides you with API access, quota, and reports. /// Required unless you provide an OAuth 2.0 token. /// [Google.Apis.Util.RequestParameterAttribute("key", Google.Apis.Util.RequestParameterType.Query)] public virtual string Key { get; set; } /// OAuth 2.0 token for the current user. [Google.Apis.Util.RequestParameterAttribute("oauth_token", Google.Apis.Util.RequestParameterType.Query)] public virtual string OauthToken { get; set; } /// Returns response with indentations and line breaks. [Google.Apis.Util.RequestParameterAttribute("prettyPrint", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable PrettyPrint { get; set; } /// /// Available to use for quota purposes for server-side applications. Can be any arbitrary string /// assigned to a user, but should not exceed 40 characters. /// [Google.Apis.Util.RequestParameterAttribute("quotaUser", Google.Apis.Util.RequestParameterType.Query)] public virtual string QuotaUser { get; set; } /// Legacy upload protocol for media (e.g. "media", "multipart"). [Google.Apis.Util.RequestParameterAttribute("uploadType", Google.Apis.Util.RequestParameterType.Query)] public virtual string UploadType { get; set; } /// Upload protocol for media (e.g. "raw", "multipart"). [Google.Apis.Util.RequestParameterAttribute("upload_protocol", Google.Apis.Util.RequestParameterType.Query)] public virtual string UploadProtocol { get; set; } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Identifier of the edit. [Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)] public virtual string EditId { get; private set; } /// /// The version code of the APK whose expansion file configuration is being read or modified. /// [Google.Apis.Util.RequestParameterAttribute("apkVersionCode", Google.Apis.Util.RequestParameterType.Path)] public virtual int ApkVersionCode { get; private set; } /// The file type of the expansion file configuration which is being updated. [Google.Apis.Util.RequestParameterAttribute("expansionFileType", Google.Apis.Util.RequestParameterType.Path)] public virtual ExpansionFileTypeEnum ExpansionFileType { get; private set; } /// The file type of the expansion file configuration which is being updated. public enum ExpansionFileTypeEnum { /// Unspecified expansion file type. [Google.Apis.Util.StringValueAttribute("expansionFileTypeUnspecified")] ExpansionFileTypeUnspecified = 0, /// Main expansion file. [Google.Apis.Util.StringValueAttribute("main")] Main = 1, /// Patch expansion file. [Google.Apis.Util.StringValueAttribute("patch")] Patch = 2, } /// Constructs a new Upload media upload instance. /// /// Considerations regarding : /// /// /// /// If is seekable, then the stream position will be reset to 0 before /// reading commences. If is not seekable, then it will be read from its /// current position /// /// /// /// /// Caller is responsible for maintaining the open until the upload is /// completed /// /// /// /// Caller is responsible for closing the /// /// /// public UploadMediaUpload(Google.Apis.Services.IClientService service, string packageName, string editId, int apkVersionCode, UploadMediaUpload.ExpansionFileTypeEnum expansionFileType, System.IO.Stream stream, string contentType) : base(service, string.Format("/{0}/{1}{2}", "upload", service.BasePath, "androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}"), "POST", stream, contentType) { PackageName = packageName; EditId = editId; ApkVersionCode = apkVersionCode; ExpansionFileType = expansionFileType; } } } /// Gets the Images resource. public virtual ImagesResource Images { get; } /// The "images" collection of methods. public class ImagesResource { private const string Resource = "images"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. public ImagesResource(Google.Apis.Services.IClientService service) { this.service = service; } /// Deletes the image (specified by id) from the edit. /// Package name of the app. /// Identifier of the edit. /// /// Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). /// /// Type of the Image. /// Unique identifier an image within the set of images attached to this edit. public virtual DeleteRequest Delete(string packageName, string editId, string language, DeleteRequest.ImageTypeEnum imageType, string imageId) { return new DeleteRequest(this.service, packageName, editId, language, imageType, imageId); } /// Deletes the image (specified by id) from the edit. public class DeleteRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Delete request. public DeleteRequest(Google.Apis.Services.IClientService service, string packageName, string editId, string language, ImageTypeEnum imageType, string imageId) : base(service) { PackageName = packageName; EditId = editId; Language = language; ImageType = imageType; ImageId = imageId; InitParameters(); } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Identifier of the edit. [Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)] public virtual string EditId { get; private set; } /// /// Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). /// [Google.Apis.Util.RequestParameterAttribute("language", Google.Apis.Util.RequestParameterType.Path)] public virtual string Language { get; private set; } /// Type of the Image. [Google.Apis.Util.RequestParameterAttribute("imageType", Google.Apis.Util.RequestParameterType.Path)] public virtual ImageTypeEnum ImageType { get; private set; } /// Type of the Image. public enum ImageTypeEnum { /// Unspecified type. Do not use. [Google.Apis.Util.StringValueAttribute("appImageTypeUnspecified")] AppImageTypeUnspecified = 0, /// Phone screenshot. [Google.Apis.Util.StringValueAttribute("phoneScreenshots")] PhoneScreenshots = 1, /// Seven inch screenshot. [Google.Apis.Util.StringValueAttribute("sevenInchScreenshots")] SevenInchScreenshots = 2, /// Ten inch screenshot. [Google.Apis.Util.StringValueAttribute("tenInchScreenshots")] TenInchScreenshots = 3, /// TV screenshot. [Google.Apis.Util.StringValueAttribute("tvScreenshots")] TvScreenshots = 4, /// Wear screenshot. [Google.Apis.Util.StringValueAttribute("wearScreenshots")] WearScreenshots = 5, /// Icon. [Google.Apis.Util.StringValueAttribute("icon")] Icon = 6, /// Feature graphic. [Google.Apis.Util.StringValueAttribute("featureGraphic")] FeatureGraphic = 7, /// TV banner. [Google.Apis.Util.StringValueAttribute("tvBanner")] TvBanner = 8, } /// Unique identifier an image within the set of images attached to this edit. [Google.Apis.Util.RequestParameterAttribute("imageId", Google.Apis.Util.RequestParameterType.Path)] public virtual string ImageId { get; private set; } /// Gets the method name. public override string MethodName => "delete"; /// Gets the HTTP method. public override string HttpMethod => "DELETE"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}/{imageId}"; /// Initializes Delete parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter { Name = "editId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("language", new Google.Apis.Discovery.Parameter { Name = "language", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("imageType", new Google.Apis.Discovery.Parameter { Name = "imageType", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("imageId", new Google.Apis.Discovery.Parameter { Name = "imageId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// /// Deletes all images for the specified language and image type. Returns an empty response if no images are /// found. /// /// Package name of the app. /// Identifier of the edit. /// /// Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). Providing /// a language that is not supported by the App is a no-op. /// /// /// Type of the Image. Providing an image type that refers to no images is a no-op. /// public virtual DeleteallRequest Deleteall(string packageName, string editId, string language, DeleteallRequest.ImageTypeEnum imageType) { return new DeleteallRequest(this.service, packageName, editId, language, imageType); } /// /// Deletes all images for the specified language and image type. Returns an empty response if no images are /// found. /// public class DeleteallRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Deleteall request. public DeleteallRequest(Google.Apis.Services.IClientService service, string packageName, string editId, string language, ImageTypeEnum imageType) : base(service) { PackageName = packageName; EditId = editId; Language = language; ImageType = imageType; InitParameters(); } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Identifier of the edit. [Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)] public virtual string EditId { get; private set; } /// /// Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). /// Providing a language that is not supported by the App is a no-op. /// [Google.Apis.Util.RequestParameterAttribute("language", Google.Apis.Util.RequestParameterType.Path)] public virtual string Language { get; private set; } /// Type of the Image. Providing an image type that refers to no images is a no-op. [Google.Apis.Util.RequestParameterAttribute("imageType", Google.Apis.Util.RequestParameterType.Path)] public virtual ImageTypeEnum ImageType { get; private set; } /// Type of the Image. Providing an image type that refers to no images is a no-op. public enum ImageTypeEnum { /// Unspecified type. Do not use. [Google.Apis.Util.StringValueAttribute("appImageTypeUnspecified")] AppImageTypeUnspecified = 0, /// Phone screenshot. [Google.Apis.Util.StringValueAttribute("phoneScreenshots")] PhoneScreenshots = 1, /// Seven inch screenshot. [Google.Apis.Util.StringValueAttribute("sevenInchScreenshots")] SevenInchScreenshots = 2, /// Ten inch screenshot. [Google.Apis.Util.StringValueAttribute("tenInchScreenshots")] TenInchScreenshots = 3, /// TV screenshot. [Google.Apis.Util.StringValueAttribute("tvScreenshots")] TvScreenshots = 4, /// Wear screenshot. [Google.Apis.Util.StringValueAttribute("wearScreenshots")] WearScreenshots = 5, /// Icon. [Google.Apis.Util.StringValueAttribute("icon")] Icon = 6, /// Feature graphic. [Google.Apis.Util.StringValueAttribute("featureGraphic")] FeatureGraphic = 7, /// TV banner. [Google.Apis.Util.StringValueAttribute("tvBanner")] TvBanner = 8, } /// Gets the method name. public override string MethodName => "deleteall"; /// Gets the HTTP method. public override string HttpMethod => "DELETE"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}"; /// Initializes Deleteall parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter { Name = "editId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("language", new Google.Apis.Discovery.Parameter { Name = "language", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("imageType", new Google.Apis.Discovery.Parameter { Name = "imageType", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// Lists all images. The response may be empty. /// Package name of the app. /// Identifier of the edit. /// /// Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). There must /// be a store listing for the specified language. /// /// /// Type of the Image. Providing an image type that refers to no images will return an empty response. /// public virtual ListRequest List(string packageName, string editId, string language, ListRequest.ImageTypeEnum imageType) { return new ListRequest(this.service, packageName, editId, language, imageType); } /// Lists all images. The response may be empty. public class ListRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new List request. public ListRequest(Google.Apis.Services.IClientService service, string packageName, string editId, string language, ImageTypeEnum imageType) : base(service) { PackageName = packageName; EditId = editId; Language = language; ImageType = imageType; InitParameters(); } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Identifier of the edit. [Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)] public virtual string EditId { get; private set; } /// /// Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). There /// must be a store listing for the specified language. /// [Google.Apis.Util.RequestParameterAttribute("language", Google.Apis.Util.RequestParameterType.Path)] public virtual string Language { get; private set; } /// /// Type of the Image. Providing an image type that refers to no images will return an empty response. /// [Google.Apis.Util.RequestParameterAttribute("imageType", Google.Apis.Util.RequestParameterType.Path)] public virtual ImageTypeEnum ImageType { get; private set; } /// /// Type of the Image. Providing an image type that refers to no images will return an empty response. /// public enum ImageTypeEnum { /// Unspecified type. Do not use. [Google.Apis.Util.StringValueAttribute("appImageTypeUnspecified")] AppImageTypeUnspecified = 0, /// Phone screenshot. [Google.Apis.Util.StringValueAttribute("phoneScreenshots")] PhoneScreenshots = 1, /// Seven inch screenshot. [Google.Apis.Util.StringValueAttribute("sevenInchScreenshots")] SevenInchScreenshots = 2, /// Ten inch screenshot. [Google.Apis.Util.StringValueAttribute("tenInchScreenshots")] TenInchScreenshots = 3, /// TV screenshot. [Google.Apis.Util.StringValueAttribute("tvScreenshots")] TvScreenshots = 4, /// Wear screenshot. [Google.Apis.Util.StringValueAttribute("wearScreenshots")] WearScreenshots = 5, /// Icon. [Google.Apis.Util.StringValueAttribute("icon")] Icon = 6, /// Feature graphic. [Google.Apis.Util.StringValueAttribute("featureGraphic")] FeatureGraphic = 7, /// TV banner. [Google.Apis.Util.StringValueAttribute("tvBanner")] TvBanner = 8, } /// Gets the method name. public override string MethodName => "list"; /// Gets the HTTP method. public override string HttpMethod => "GET"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}"; /// Initializes List parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter { Name = "editId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("language", new Google.Apis.Discovery.Parameter { Name = "language", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("imageType", new Google.Apis.Discovery.Parameter { Name = "imageType", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// Uploads an image of the specified language and image type, and adds to the edit. /// Package name of the app. /// Identifier of the edit. /// /// Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). Providing /// a language that is not supported by the App is a no-op. /// /// Type of the Image. public virtual UploadRequest Upload(string packageName, string editId, string language, UploadRequest.ImageTypeEnum imageType) { return new UploadRequest(this.service, packageName, editId, language, imageType); } /// Uploads an image of the specified language and image type, and adds to the edit. public class UploadRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Upload request. public UploadRequest(Google.Apis.Services.IClientService service, string packageName, string editId, string language, ImageTypeEnum imageType) : base(service) { PackageName = packageName; EditId = editId; Language = language; ImageType = imageType; InitParameters(); } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Identifier of the edit. [Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)] public virtual string EditId { get; private set; } /// /// Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). /// Providing a language that is not supported by the App is a no-op. /// [Google.Apis.Util.RequestParameterAttribute("language", Google.Apis.Util.RequestParameterType.Path)] public virtual string Language { get; private set; } /// Type of the Image. [Google.Apis.Util.RequestParameterAttribute("imageType", Google.Apis.Util.RequestParameterType.Path)] public virtual ImageTypeEnum ImageType { get; private set; } /// Type of the Image. public enum ImageTypeEnum { /// Unspecified type. Do not use. [Google.Apis.Util.StringValueAttribute("appImageTypeUnspecified")] AppImageTypeUnspecified = 0, /// Phone screenshot. [Google.Apis.Util.StringValueAttribute("phoneScreenshots")] PhoneScreenshots = 1, /// Seven inch screenshot. [Google.Apis.Util.StringValueAttribute("sevenInchScreenshots")] SevenInchScreenshots = 2, /// Ten inch screenshot. [Google.Apis.Util.StringValueAttribute("tenInchScreenshots")] TenInchScreenshots = 3, /// TV screenshot. [Google.Apis.Util.StringValueAttribute("tvScreenshots")] TvScreenshots = 4, /// Wear screenshot. [Google.Apis.Util.StringValueAttribute("wearScreenshots")] WearScreenshots = 5, /// Icon. [Google.Apis.Util.StringValueAttribute("icon")] Icon = 6, /// Feature graphic. [Google.Apis.Util.StringValueAttribute("featureGraphic")] FeatureGraphic = 7, /// TV banner. [Google.Apis.Util.StringValueAttribute("tvBanner")] TvBanner = 8, } /// Gets the method name. public override string MethodName => "upload"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}"; /// Initializes Upload parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter { Name = "editId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("language", new Google.Apis.Discovery.Parameter { Name = "language", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("imageType", new Google.Apis.Discovery.Parameter { Name = "imageType", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// Uploads an image of the specified language and image type, and adds to the edit. /// /// Considerations regarding : /// /// /// /// If is seekable, then the stream position will be reset to 0 before /// reading commences. If is not seekable, then it will be read from its current /// position /// /// /// /// /// Caller is responsible for maintaining the open until the upload is completed /// /// /// Caller is responsible for closing the /// /// /// Package name of the app. /// Identifier of the edit. /// /// Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). Providing /// a language that is not supported by the App is a no-op. /// /// Type of the Image. /// The stream to upload. See remarks for further information. /// The content type of the stream to upload. public virtual UploadMediaUpload Upload(string packageName, string editId, string language, UploadMediaUpload.ImageTypeEnum imageType, System.IO.Stream stream, string contentType) { return new UploadMediaUpload(service, packageName, editId, language, imageType, stream, contentType); } /// Upload media upload which supports resumable upload. public class UploadMediaUpload : Google.Apis.Upload.ResumableUpload { /// V1 error format. [Google.Apis.Util.RequestParameterAttribute("$.xgafv", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable Xgafv { get; set; } /// V1 error format. public enum XgafvEnum { /// v1 error format [Google.Apis.Util.StringValueAttribute("1")] Value1 = 0, /// v2 error format [Google.Apis.Util.StringValueAttribute("2")] Value2 = 1, } /// OAuth access token. [Google.Apis.Util.RequestParameterAttribute("access_token", Google.Apis.Util.RequestParameterType.Query)] public virtual string AccessToken { get; set; } /// Data format for response. [Google.Apis.Util.RequestParameterAttribute("alt", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable Alt { get; set; } /// Data format for response. public enum AltEnum { /// Responses with Content-Type of application/json [Google.Apis.Util.StringValueAttribute("json")] Json = 0, /// Media download with context-dependent Content-Type [Google.Apis.Util.StringValueAttribute("media")] Media = 1, /// Responses with Content-Type of application/x-protobuf [Google.Apis.Util.StringValueAttribute("proto")] Proto = 2, } /// JSONP [Google.Apis.Util.RequestParameterAttribute("callback", Google.Apis.Util.RequestParameterType.Query)] public virtual string Callback { get; set; } /// Selector specifying which fields to include in a partial response. [Google.Apis.Util.RequestParameterAttribute("fields", Google.Apis.Util.RequestParameterType.Query)] public virtual string Fields { get; set; } /// /// API key. Your API key identifies your project and provides you with API access, quota, and reports. /// Required unless you provide an OAuth 2.0 token. /// [Google.Apis.Util.RequestParameterAttribute("key", Google.Apis.Util.RequestParameterType.Query)] public virtual string Key { get; set; } /// OAuth 2.0 token for the current user. [Google.Apis.Util.RequestParameterAttribute("oauth_token", Google.Apis.Util.RequestParameterType.Query)] public virtual string OauthToken { get; set; } /// Returns response with indentations and line breaks. [Google.Apis.Util.RequestParameterAttribute("prettyPrint", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable PrettyPrint { get; set; } /// /// Available to use for quota purposes for server-side applications. Can be any arbitrary string /// assigned to a user, but should not exceed 40 characters. /// [Google.Apis.Util.RequestParameterAttribute("quotaUser", Google.Apis.Util.RequestParameterType.Query)] public virtual string QuotaUser { get; set; } /// Legacy upload protocol for media (e.g. "media", "multipart"). [Google.Apis.Util.RequestParameterAttribute("uploadType", Google.Apis.Util.RequestParameterType.Query)] public virtual string UploadType { get; set; } /// Upload protocol for media (e.g. "raw", "multipart"). [Google.Apis.Util.RequestParameterAttribute("upload_protocol", Google.Apis.Util.RequestParameterType.Query)] public virtual string UploadProtocol { get; set; } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Identifier of the edit. [Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)] public virtual string EditId { get; private set; } /// /// Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). /// Providing a language that is not supported by the App is a no-op. /// [Google.Apis.Util.RequestParameterAttribute("language", Google.Apis.Util.RequestParameterType.Path)] public virtual string Language { get; private set; } /// Type of the Image. [Google.Apis.Util.RequestParameterAttribute("imageType", Google.Apis.Util.RequestParameterType.Path)] public virtual ImageTypeEnum ImageType { get; private set; } /// Type of the Image. public enum ImageTypeEnum { /// Unspecified type. Do not use. [Google.Apis.Util.StringValueAttribute("appImageTypeUnspecified")] AppImageTypeUnspecified = 0, /// Phone screenshot. [Google.Apis.Util.StringValueAttribute("phoneScreenshots")] PhoneScreenshots = 1, /// Seven inch screenshot. [Google.Apis.Util.StringValueAttribute("sevenInchScreenshots")] SevenInchScreenshots = 2, /// Ten inch screenshot. [Google.Apis.Util.StringValueAttribute("tenInchScreenshots")] TenInchScreenshots = 3, /// TV screenshot. [Google.Apis.Util.StringValueAttribute("tvScreenshots")] TvScreenshots = 4, /// Wear screenshot. [Google.Apis.Util.StringValueAttribute("wearScreenshots")] WearScreenshots = 5, /// Icon. [Google.Apis.Util.StringValueAttribute("icon")] Icon = 6, /// Feature graphic. [Google.Apis.Util.StringValueAttribute("featureGraphic")] FeatureGraphic = 7, /// TV banner. [Google.Apis.Util.StringValueAttribute("tvBanner")] TvBanner = 8, } /// Constructs a new Upload media upload instance. /// /// Considerations regarding : /// /// /// /// If is seekable, then the stream position will be reset to 0 before /// reading commences. If is not seekable, then it will be read from its /// current position /// /// /// /// /// Caller is responsible for maintaining the open until the upload is /// completed /// /// /// /// Caller is responsible for closing the /// /// /// public UploadMediaUpload(Google.Apis.Services.IClientService service, string packageName, string editId, string language, UploadMediaUpload.ImageTypeEnum imageType, System.IO.Stream stream, string contentType) : base(service, string.Format("/{0}/{1}{2}", "upload", service.BasePath, "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}"), "POST", stream, contentType) { PackageName = packageName; EditId = editId; Language = language; ImageType = imageType; } } } /// Gets the Listings resource. public virtual ListingsResource Listings { get; } /// The "listings" collection of methods. public class ListingsResource { private const string Resource = "listings"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. public ListingsResource(Google.Apis.Services.IClientService service) { this.service = service; } /// Deletes a localized store listing. /// Package name of the app. /// Identifier of the edit. /// /// Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). /// public virtual DeleteRequest Delete(string packageName, string editId, string language) { return new DeleteRequest(this.service, packageName, editId, language); } /// Deletes a localized store listing. public class DeleteRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Delete request. public DeleteRequest(Google.Apis.Services.IClientService service, string packageName, string editId, string language) : base(service) { PackageName = packageName; EditId = editId; Language = language; InitParameters(); } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Identifier of the edit. [Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)] public virtual string EditId { get; private set; } /// /// Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). /// [Google.Apis.Util.RequestParameterAttribute("language", Google.Apis.Util.RequestParameterType.Path)] public virtual string Language { get; private set; } /// Gets the method name. public override string MethodName => "delete"; /// Gets the HTTP method. public override string HttpMethod => "DELETE"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}"; /// Initializes Delete parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter { Name = "editId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("language", new Google.Apis.Discovery.Parameter { Name = "language", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// Deletes all store listings. /// Package name of the app. /// Identifier of the edit. public virtual DeleteallRequest Deleteall(string packageName, string editId) { return new DeleteallRequest(this.service, packageName, editId); } /// Deletes all store listings. public class DeleteallRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Deleteall request. public DeleteallRequest(Google.Apis.Services.IClientService service, string packageName, string editId) : base(service) { PackageName = packageName; EditId = editId; InitParameters(); } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Identifier of the edit. [Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)] public virtual string EditId { get; private set; } /// Gets the method name. public override string MethodName => "deleteall"; /// Gets the HTTP method. public override string HttpMethod => "DELETE"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings"; /// Initializes Deleteall parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter { Name = "editId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// Gets a localized store listing. /// Package name of the app. /// Identifier of the edit. /// /// Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). /// public virtual GetRequest Get(string packageName, string editId, string language) { return new GetRequest(this.service, packageName, editId, language); } /// Gets a localized store listing. public class GetRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Get request. public GetRequest(Google.Apis.Services.IClientService service, string packageName, string editId, string language) : base(service) { PackageName = packageName; EditId = editId; Language = language; InitParameters(); } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Identifier of the edit. [Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)] public virtual string EditId { get; private set; } /// /// Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). /// [Google.Apis.Util.RequestParameterAttribute("language", Google.Apis.Util.RequestParameterType.Path)] public virtual string Language { get; private set; } /// Gets the method name. public override string MethodName => "get"; /// Gets the HTTP method. public override string HttpMethod => "GET"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}"; /// Initializes Get parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter { Name = "editId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("language", new Google.Apis.Discovery.Parameter { Name = "language", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// Lists all localized store listings. /// Package name of the app. /// Identifier of the edit. public virtual ListRequest List(string packageName, string editId) { return new ListRequest(this.service, packageName, editId); } /// Lists all localized store listings. public class ListRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new List request. public ListRequest(Google.Apis.Services.IClientService service, string packageName, string editId) : base(service) { PackageName = packageName; EditId = editId; InitParameters(); } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Identifier of the edit. [Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)] public virtual string EditId { get; private set; } /// Gets the method name. public override string MethodName => "list"; /// Gets the HTTP method. public override string HttpMethod => "GET"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings"; /// Initializes List parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter { Name = "editId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// Patches a localized store listing. /// The body of the request. /// Package name of the app. /// Identifier of the edit. /// /// Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). /// public virtual PatchRequest Patch(Google.Apis.AndroidPublisher.v3.Data.Listing body, string packageName, string editId, string language) { return new PatchRequest(this.service, body, packageName, editId, language); } /// Patches a localized store listing. public class PatchRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Patch request. public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.Listing body, string packageName, string editId, string language) : base(service) { PackageName = packageName; EditId = editId; Language = language; Body = body; InitParameters(); } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Identifier of the edit. [Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)] public virtual string EditId { get; private set; } /// /// Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). /// [Google.Apis.Util.RequestParameterAttribute("language", Google.Apis.Util.RequestParameterType.Path)] public virtual string Language { get; private set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.Listing Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "patch"; /// Gets the HTTP method. public override string HttpMethod => "PATCH"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}"; /// Initializes Patch parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter { Name = "editId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("language", new Google.Apis.Discovery.Parameter { Name = "language", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// Creates or updates a localized store listing. /// The body of the request. /// Package name of the app. /// Identifier of the edit. /// /// Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). /// public virtual UpdateRequest Update(Google.Apis.AndroidPublisher.v3.Data.Listing body, string packageName, string editId, string language) { return new UpdateRequest(this.service, body, packageName, editId, language); } /// Creates or updates a localized store listing. public class UpdateRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Update request. public UpdateRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.Listing body, string packageName, string editId, string language) : base(service) { PackageName = packageName; EditId = editId; Language = language; Body = body; InitParameters(); } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Identifier of the edit. [Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)] public virtual string EditId { get; private set; } /// /// Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). /// [Google.Apis.Util.RequestParameterAttribute("language", Google.Apis.Util.RequestParameterType.Path)] public virtual string Language { get; private set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.Listing Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "update"; /// Gets the HTTP method. public override string HttpMethod => "PUT"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}"; /// Initializes Update parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter { Name = "editId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("language", new Google.Apis.Discovery.Parameter { Name = "language", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } } /// Gets the Testers resource. public virtual TestersResource Testers { get; } /// The "testers" collection of methods. public class TestersResource { private const string Resource = "testers"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. public TestersResource(Google.Apis.Services.IClientService service) { this.service = service; } /// Gets testers. Note: Testers resource does not support email lists. /// Package name of the app. /// Identifier of the edit. /// The track to read from. public virtual GetRequest Get(string packageName, string editId, string track) { return new GetRequest(this.service, packageName, editId, track); } /// Gets testers. Note: Testers resource does not support email lists. public class GetRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Get request. public GetRequest(Google.Apis.Services.IClientService service, string packageName, string editId, string track) : base(service) { PackageName = packageName; EditId = editId; Track = track; InitParameters(); } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Identifier of the edit. [Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)] public virtual string EditId { get; private set; } /// The track to read from. [Google.Apis.Util.RequestParameterAttribute("track", Google.Apis.Util.RequestParameterType.Path)] public virtual string Track { get; private set; } /// Gets the method name. public override string MethodName => "get"; /// Gets the HTTP method. public override string HttpMethod => "GET"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/testers/{track}"; /// Initializes Get parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter { Name = "editId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("track", new Google.Apis.Discovery.Parameter { Name = "track", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// Patches testers. Note: Testers resource does not support email lists. /// The body of the request. /// Package name of the app. /// Identifier of the edit. /// The track to update. public virtual PatchRequest Patch(Google.Apis.AndroidPublisher.v3.Data.Testers body, string packageName, string editId, string track) { return new PatchRequest(this.service, body, packageName, editId, track); } /// Patches testers. Note: Testers resource does not support email lists. public class PatchRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Patch request. public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.Testers body, string packageName, string editId, string track) : base(service) { PackageName = packageName; EditId = editId; Track = track; Body = body; InitParameters(); } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Identifier of the edit. [Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)] public virtual string EditId { get; private set; } /// The track to update. [Google.Apis.Util.RequestParameterAttribute("track", Google.Apis.Util.RequestParameterType.Path)] public virtual string Track { get; private set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.Testers Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "patch"; /// Gets the HTTP method. public override string HttpMethod => "PATCH"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/testers/{track}"; /// Initializes Patch parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter { Name = "editId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("track", new Google.Apis.Discovery.Parameter { Name = "track", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// Updates testers. Note: Testers resource does not support email lists. /// The body of the request. /// Package name of the app. /// Identifier of the edit. /// The track to update. public virtual UpdateRequest Update(Google.Apis.AndroidPublisher.v3.Data.Testers body, string packageName, string editId, string track) { return new UpdateRequest(this.service, body, packageName, editId, track); } /// Updates testers. Note: Testers resource does not support email lists. public class UpdateRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Update request. public UpdateRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.Testers body, string packageName, string editId, string track) : base(service) { PackageName = packageName; EditId = editId; Track = track; Body = body; InitParameters(); } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Identifier of the edit. [Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)] public virtual string EditId { get; private set; } /// The track to update. [Google.Apis.Util.RequestParameterAttribute("track", Google.Apis.Util.RequestParameterType.Path)] public virtual string Track { get; private set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.Testers Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "update"; /// Gets the HTTP method. public override string HttpMethod => "PUT"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/testers/{track}"; /// Initializes Update parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter { Name = "editId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("track", new Google.Apis.Discovery.Parameter { Name = "track", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } } /// Gets the Tracks resource. public virtual TracksResource Tracks { get; } /// The "tracks" collection of methods. public class TracksResource { private const string Resource = "tracks"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. public TracksResource(Google.Apis.Services.IClientService service) { this.service = service; } /// Creates a new track. /// The body of the request. /// Required. Package name of the app. /// Required. Identifier of the edit. public virtual CreateRequest Create(Google.Apis.AndroidPublisher.v3.Data.TrackConfig body, string packageName, string editId) { return new CreateRequest(this.service, body, packageName, editId); } /// Creates a new track. public class CreateRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Create request. public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.TrackConfig body, string packageName, string editId) : base(service) { PackageName = packageName; EditId = editId; Body = body; InitParameters(); } /// Required. Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Required. Identifier of the edit. [Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)] public virtual string EditId { get; private set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.TrackConfig Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "create"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks"; /// Initializes Create parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter { Name = "editId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// Gets a track. /// Package name of the app. /// Identifier of the edit. /// /// Identifier of the track. [More on track /// name](https://developers.google.com/android-publisher/tracks#ff-track-name) /// public virtual GetRequest Get(string packageName, string editId, string track) { return new GetRequest(this.service, packageName, editId, track); } /// Gets a track. public class GetRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Get request. public GetRequest(Google.Apis.Services.IClientService service, string packageName, string editId, string track) : base(service) { PackageName = packageName; EditId = editId; Track = track; InitParameters(); } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Identifier of the edit. [Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)] public virtual string EditId { get; private set; } /// /// Identifier of the track. [More on track /// name](https://developers.google.com/android-publisher/tracks#ff-track-name) /// [Google.Apis.Util.RequestParameterAttribute("track", Google.Apis.Util.RequestParameterType.Path)] public virtual string Track { get; private set; } /// Gets the method name. public override string MethodName => "get"; /// Gets the HTTP method. public override string HttpMethod => "GET"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks/{track}"; /// Initializes Get parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter { Name = "editId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("track", new Google.Apis.Discovery.Parameter { Name = "track", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// Lists all tracks. /// Package name of the app. /// Identifier of the edit. public virtual ListRequest List(string packageName, string editId) { return new ListRequest(this.service, packageName, editId); } /// Lists all tracks. public class ListRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new List request. public ListRequest(Google.Apis.Services.IClientService service, string packageName, string editId) : base(service) { PackageName = packageName; EditId = editId; InitParameters(); } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Identifier of the edit. [Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)] public virtual string EditId { get; private set; } /// Gets the method name. public override string MethodName => "list"; /// Gets the HTTP method. public override string HttpMethod => "GET"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks"; /// Initializes List parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter { Name = "editId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// Patches a track. /// The body of the request. /// Package name of the app. /// Identifier of the edit. /// /// Identifier of the track. [More on track /// name](https://developers.google.com/android-publisher/tracks#ff-track-name) /// public virtual PatchRequest Patch(Google.Apis.AndroidPublisher.v3.Data.Track body, string packageName, string editId, string track) { return new PatchRequest(this.service, body, packageName, editId, track); } /// Patches a track. public class PatchRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Patch request. public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.Track body, string packageName, string editId, string track) : base(service) { PackageName = packageName; EditId = editId; Track = track; Body = body; InitParameters(); } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Identifier of the edit. [Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)] public virtual string EditId { get; private set; } /// /// Identifier of the track. [More on track /// name](https://developers.google.com/android-publisher/tracks#ff-track-name) /// [Google.Apis.Util.RequestParameterAttribute("track", Google.Apis.Util.RequestParameterType.Path)] public virtual string Track { get; private set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.Track Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "patch"; /// Gets the HTTP method. public override string HttpMethod => "PATCH"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks/{track}"; /// Initializes Patch parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter { Name = "editId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("track", new Google.Apis.Discovery.Parameter { Name = "track", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// Updates a track. /// The body of the request. /// Package name of the app. /// Identifier of the edit. /// /// Identifier of the track. [More on track /// name](https://developers.google.com/android-publisher/tracks#ff-track-name) /// public virtual UpdateRequest Update(Google.Apis.AndroidPublisher.v3.Data.Track body, string packageName, string editId, string track) { return new UpdateRequest(this.service, body, packageName, editId, track); } /// Updates a track. public class UpdateRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Update request. public UpdateRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.Track body, string packageName, string editId, string track) : base(service) { PackageName = packageName; EditId = editId; Track = track; Body = body; InitParameters(); } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Identifier of the edit. [Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)] public virtual string EditId { get; private set; } /// /// Identifier of the track. [More on track /// name](https://developers.google.com/android-publisher/tracks#ff-track-name) /// [Google.Apis.Util.RequestParameterAttribute("track", Google.Apis.Util.RequestParameterType.Path)] public virtual string Track { get; private set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.Track Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "update"; /// Gets the HTTP method. public override string HttpMethod => "PUT"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks/{track}"; /// Initializes Update parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter { Name = "editId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("track", new Google.Apis.Discovery.Parameter { Name = "track", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } } /// Commits an app edit. /// Package name of the app. /// Identifier of the edit. public virtual CommitRequest Commit(string packageName, string editId) { return new CommitRequest(this.service, packageName, editId); } /// Commits an app edit. public class CommitRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Commit request. public CommitRequest(Google.Apis.Services.IClientService service, string packageName, string editId) : base(service) { PackageName = packageName; EditId = editId; InitParameters(); } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Identifier of the edit. [Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)] public virtual string EditId { get; private set; } /// /// When a rejection happens, the parameter will make sure that the changes in this edit won't be reviewed /// until they are explicitly sent for review from within the Google Play Console UI. These changes will be /// added to any other changes that are not yet sent for review. /// [Google.Apis.Util.RequestParameterAttribute("changesNotSentForReview", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable ChangesNotSentForReview { get; set; } /// Gets the method name. public override string MethodName => "commit"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}:commit"; /// Initializes Commit parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter { Name = "editId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("changesNotSentForReview", new Google.Apis.Discovery.Parameter { Name = "changesNotSentForReview", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// Deletes an app edit. /// Package name of the app. /// Identifier of the edit. public virtual DeleteRequest Delete(string packageName, string editId) { return new DeleteRequest(this.service, packageName, editId); } /// Deletes an app edit. public class DeleteRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Delete request. public DeleteRequest(Google.Apis.Services.IClientService service, string packageName, string editId) : base(service) { PackageName = packageName; EditId = editId; InitParameters(); } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Identifier of the edit. [Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)] public virtual string EditId { get; private set; } /// Gets the method name. public override string MethodName => "delete"; /// Gets the HTTP method. public override string HttpMethod => "DELETE"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}"; /// Initializes Delete parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter { Name = "editId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// Gets an app edit. /// Package name of the app. /// Identifier of the edit. public virtual GetRequest Get(string packageName, string editId) { return new GetRequest(this.service, packageName, editId); } /// Gets an app edit. public class GetRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Get request. public GetRequest(Google.Apis.Services.IClientService service, string packageName, string editId) : base(service) { PackageName = packageName; EditId = editId; InitParameters(); } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Identifier of the edit. [Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)] public virtual string EditId { get; private set; } /// Gets the method name. public override string MethodName => "get"; /// Gets the HTTP method. public override string HttpMethod => "GET"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}"; /// Initializes Get parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter { Name = "editId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// Creates a new edit for an app. /// The body of the request. /// Package name of the app. public virtual InsertRequest Insert(Google.Apis.AndroidPublisher.v3.Data.AppEdit body, string packageName) { return new InsertRequest(this.service, body, packageName); } /// Creates a new edit for an app. public class InsertRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Insert request. public InsertRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.AppEdit body, string packageName) : base(service) { PackageName = packageName; Body = body; InitParameters(); } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.AppEdit Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "insert"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits"; /// Initializes Insert parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// Validates an app edit. /// Package name of the app. /// Identifier of the edit. public virtual ValidateRequest Validate(string packageName, string editId) { return new ValidateRequest(this.service, packageName, editId); } /// Validates an app edit. public class ValidateRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Validate request. public ValidateRequest(Google.Apis.Services.IClientService service, string packageName, string editId) : base(service) { PackageName = packageName; EditId = editId; InitParameters(); } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Identifier of the edit. [Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)] public virtual string EditId { get; private set; } /// Gets the method name. public override string MethodName => "validate"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}:validate"; /// Initializes Validate parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter { Name = "editId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } } /// The "externaltransactions" collection of methods. public class ExternaltransactionsResource { private const string Resource = "externaltransactions"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. public ExternaltransactionsResource(Google.Apis.Services.IClientService service) { this.service = service; } /// Creates a new external transaction. /// The body of the request. /// /// Required. The parent resource where this external transaction will be created. Format: /// applications/{package_name} /// public virtual CreateexternaltransactionRequest Createexternaltransaction(Google.Apis.AndroidPublisher.v3.Data.ExternalTransaction body, string parent) { return new CreateexternaltransactionRequest(this.service, body, parent); } /// Creates a new external transaction. public class CreateexternaltransactionRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Createexternaltransaction request. public CreateexternaltransactionRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.ExternalTransaction body, string parent) : base(service) { Parent = parent; Body = body; InitParameters(); } /// /// Required. The parent resource where this external transaction will be created. Format: /// applications/{package_name} /// [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] public virtual string Parent { get; private set; } /// /// Required. The id to use for the external transaction. Must be unique across all other transactions for /// the app. This value should be 1-63 characters and valid characters are /a-zA-Z0-9_-/. Do not use this /// field to store any Personally Identifiable Information (PII) such as emails. Attempting to store PII in /// this field may result in requests being blocked. /// [Google.Apis.Util.RequestParameterAttribute("externalTransactionId", Google.Apis.Util.RequestParameterType.Query)] public virtual string ExternalTransactionId { get; set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.ExternalTransaction Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "createexternaltransaction"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/{+parent}/externalTransactions"; /// Initializes Createexternaltransaction parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { Name = "parent", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^applications/[^/]+$", }); RequestParameters.Add("externalTransactionId", new Google.Apis.Discovery.Parameter { Name = "externalTransactionId", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// Gets an existing external transaction. /// /// Required. The name of the external transaction to retrieve. Format: /// applications/{package_name}/externalTransactions/{external_transaction} /// public virtual GetexternaltransactionRequest Getexternaltransaction(string name) { return new GetexternaltransactionRequest(this.service, name); } /// Gets an existing external transaction. public class GetexternaltransactionRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Getexternaltransaction request. public GetexternaltransactionRequest(Google.Apis.Services.IClientService service, string name) : base(service) { Name = name; InitParameters(); } /// /// Required. The name of the external transaction to retrieve. Format: /// applications/{package_name}/externalTransactions/{external_transaction} /// [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } /// Gets the method name. public override string MethodName => "getexternaltransaction"; /// Gets the HTTP method. public override string HttpMethod => "GET"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/{+name}"; /// Initializes Getexternaltransaction parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^applications/[^/]+/externalTransactions/[^/]+$", }); } } /// Refunds or partially refunds an existing external transaction. /// The body of the request. /// /// Required. The name of the external transaction that will be refunded. Format: /// applications/{package_name}/externalTransactions/{external_transaction} /// public virtual RefundexternaltransactionRequest Refundexternaltransaction(Google.Apis.AndroidPublisher.v3.Data.RefundExternalTransactionRequest body, string name) { return new RefundexternaltransactionRequest(this.service, body, name); } /// Refunds or partially refunds an existing external transaction. public class RefundexternaltransactionRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Refundexternaltransaction request. public RefundexternaltransactionRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.RefundExternalTransactionRequest body, string name) : base(service) { Name = name; Body = body; InitParameters(); } /// /// Required. The name of the external transaction that will be refunded. Format: /// applications/{package_name}/externalTransactions/{external_transaction} /// [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.RefundExternalTransactionRequest Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "refundexternaltransaction"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/{+name}:refund"; /// Initializes Refundexternaltransaction parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^applications/[^/]+/externalTransactions/[^/]+$", }); } } } /// The "generatedapks" collection of methods. public class GeneratedapksResource { private const string Resource = "generatedapks"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. public GeneratedapksResource(Google.Apis.Services.IClientService service) { this.service = service; } /// Downloads a single signed APK generated from an app bundle. /// Package name of the app. /// Version code of the app bundle. /// /// Download ID, which uniquely identifies the APK to download. Can be obtained from the response of /// `generatedapks.list` method. /// public virtual DownloadRequest Download(string packageName, int versionCode, string downloadId) { return new DownloadRequest(this.service, packageName, versionCode, downloadId); } /// Downloads a single signed APK generated from an app bundle. public class DownloadRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Download request. public DownloadRequest(Google.Apis.Services.IClientService service, string packageName, int versionCode, string downloadId) : base(service) { PackageName = packageName; VersionCode = versionCode; DownloadId = downloadId; MediaDownloader = new Google.Apis.Download.MediaDownloader(service); InitParameters(); } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Version code of the app bundle. [Google.Apis.Util.RequestParameterAttribute("versionCode", Google.Apis.Util.RequestParameterType.Path)] public virtual int VersionCode { get; private set; } /// /// Download ID, which uniquely identifies the APK to download. Can be obtained from the response of /// `generatedapks.list` method. /// [Google.Apis.Util.RequestParameterAttribute("downloadId", Google.Apis.Util.RequestParameterType.Path)] public virtual string DownloadId { get; private set; } /// Gets the method name. public override string MethodName => "download"; /// Gets the HTTP method. public override string HttpMethod => "GET"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/generatedApks/{versionCode}/downloads/{downloadId}:download"; /// Initializes Download parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("versionCode", new Google.Apis.Discovery.Parameter { Name = "versionCode", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("downloadId", new Google.Apis.Discovery.Parameter { Name = "downloadId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } /// Gets the media downloader. public Google.Apis.Download.IMediaDownloader MediaDownloader { get; private set; } /// /// Synchronously download the media into the given stream. /// /// Warning: This method hides download errors; use /// instead. /// /// /// /// This method uses the property to perform the download. Progress event /// handlers and other configuration may be performed using that property prior to calling this method. /// public virtual void Download(System.IO.Stream stream) { var mediaDownloader = (Google.Apis.Download.MediaDownloader)MediaDownloader; mediaDownloader.Range = null; mediaDownloader.Download(this.GenerateRequestUri(), stream); } /// Synchronously download the media into the given stream. /// /// This method uses the property to perform the download. Progress event /// handlers and other configuration may be performed using that property prior to calling this method. /// /// The final status of the download; including whether the download succeeded or failed. public virtual Google.Apis.Download.IDownloadProgress DownloadWithStatus(System.IO.Stream stream) { var mediaDownloader = (Google.Apis.Download.MediaDownloader)MediaDownloader; mediaDownloader.Range = null; return mediaDownloader.Download(this.GenerateRequestUri(), stream); } /// Asynchronously download the media into the given stream. /// /// This method uses the property to perform the download. Progress event /// handlers and other configuration may be performed using that property prior to calling this method. /// public virtual System.Threading.Tasks.Task DownloadAsync(System.IO.Stream stream) { var mediaDownloader = (Google.Apis.Download.MediaDownloader)MediaDownloader; mediaDownloader.Range = null; return mediaDownloader.DownloadAsync(this.GenerateRequestUri(), stream); } /// Asynchronously download the media into the given stream. /// /// This method uses the property to perform the download. Progress event /// handlers and other configuration may be performed using that property prior to calling this method. /// public virtual System.Threading.Tasks.Task DownloadAsync(System.IO.Stream stream, System.Threading.CancellationToken cancellationToken) { var mediaDownloader = (Google.Apis.Download.MediaDownloader)MediaDownloader; mediaDownloader.Range = null; return mediaDownloader.DownloadAsync(this.GenerateRequestUri(), stream, cancellationToken); } /// Synchronously download a range of the media into the given stream. /// /// This method uses the property to perform the download. Progress event /// handlers and other configuration may be performed using that property prior to calling this method. /// public virtual Google.Apis.Download.IDownloadProgress DownloadRange(System.IO.Stream stream, System.Net.Http.Headers.RangeHeaderValue range) { var mediaDownloader = (Google.Apis.Download.MediaDownloader)MediaDownloader; mediaDownloader.Range = range; return mediaDownloader.Download(this.GenerateRequestUri(), stream); } /// Asynchronously download a range of the media into the given stream. /// /// This method uses the property to perform the download. Progress event /// handlers and other configuration may be performed using that property prior to calling this method. /// public virtual System.Threading.Tasks.Task DownloadRangeAsync(System.IO.Stream stream, System.Net.Http.Headers.RangeHeaderValue range, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { var mediaDownloader = (Google.Apis.Download.MediaDownloader)MediaDownloader; mediaDownloader.Range = range; return mediaDownloader.DownloadAsync(this.GenerateRequestUri(), stream, cancellationToken); } } /// Returns download metadata for all APKs that were generated from a given app bundle. /// Package name of the app. /// Version code of the app bundle. public virtual ListRequest List(string packageName, int versionCode) { return new ListRequest(this.service, packageName, versionCode); } /// Returns download metadata for all APKs that were generated from a given app bundle. public class ListRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new List request. public ListRequest(Google.Apis.Services.IClientService service, string packageName, int versionCode) : base(service) { PackageName = packageName; VersionCode = versionCode; InitParameters(); } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Version code of the app bundle. [Google.Apis.Util.RequestParameterAttribute("versionCode", Google.Apis.Util.RequestParameterType.Path)] public virtual int VersionCode { get; private set; } /// Gets the method name. public override string MethodName => "list"; /// Gets the HTTP method. public override string HttpMethod => "GET"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/generatedApks/{versionCode}"; /// Initializes List parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("versionCode", new Google.Apis.Discovery.Parameter { Name = "versionCode", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } } /// The "grants" collection of methods. public class GrantsResource { private const string Resource = "grants"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. public GrantsResource(Google.Apis.Services.IClientService service) { this.service = service; } /// Grant access for a user to the given package. /// The body of the request. /// /// Required. The user which needs permission. Format: developers/{developer}/users/{user} /// public virtual CreateRequest Create(Google.Apis.AndroidPublisher.v3.Data.Grant body, string parent) { return new CreateRequest(this.service, body, parent); } /// Grant access for a user to the given package. public class CreateRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Create request. public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.Grant body, string parent) : base(service) { Parent = parent; Body = body; InitParameters(); } /// /// Required. The user which needs permission. Format: developers/{developer}/users/{user} /// [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] public virtual string Parent { get; private set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.Grant Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "create"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/{+parent}/grants"; /// Initializes Create parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { Name = "parent", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^developers/[^/]+/users/[^/]+$", }); } } /// Removes all access for the user to the given package or developer account. /// /// Required. The name of the grant to delete. Format: /// developers/{developer}/users/{email}/grants/{package_name} /// public virtual DeleteRequest Delete(string name) { return new DeleteRequest(this.service, name); } /// Removes all access for the user to the given package or developer account. public class DeleteRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Delete request. public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) { Name = name; InitParameters(); } /// /// Required. The name of the grant to delete. Format: /// developers/{developer}/users/{email}/grants/{package_name} /// [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } /// Gets the method name. public override string MethodName => "delete"; /// Gets the HTTP method. public override string HttpMethod => "DELETE"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/{+name}"; /// Initializes Delete parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^developers/[^/]+/users/[^/]+/grants/[^/]+$", }); } } /// Updates access for the user to the given package. /// The body of the request. /// /// Required. Resource name for this grant, following the pattern /// "developers/{developer}/users/{email}/grants/{package_name}". If this grant is for a draft app, the app ID /// will be used in this resource name instead of the package name. /// public virtual PatchRequest Patch(Google.Apis.AndroidPublisher.v3.Data.Grant body, string name) { return new PatchRequest(this.service, body, name); } /// Updates access for the user to the given package. public class PatchRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Patch request. public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.Grant body, string name) : base(service) { Name = name; Body = body; InitParameters(); } /// /// Required. Resource name for this grant, following the pattern /// "developers/{developer}/users/{email}/grants/{package_name}". If this grant is for a draft app, the app /// ID will be used in this resource name instead of the package name. /// [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } /// Optional. The list of fields to be updated. [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] public virtual object UpdateMask { get; set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.Grant Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "patch"; /// Gets the HTTP method. public override string HttpMethod => "PATCH"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/{+name}"; /// Initializes Patch parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^developers/[^/]+/users/[^/]+/grants/[^/]+$", }); RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter { Name = "updateMask", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } } /// The "inappproducts" collection of methods. public class InappproductsResource { private const string Resource = "inappproducts"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. public InappproductsResource(Google.Apis.Services.IClientService service) { this.service = service; } /// /// Deletes in-app products (managed products or subscriptions). Set the latencyTolerance field on nested /// requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update throughput. This /// method should not be used to delete subscriptions. See [this /// article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) /// for more information. /// /// The body of the request. /// Package name of the app. public virtual BatchDeleteRequest BatchDelete(Google.Apis.AndroidPublisher.v3.Data.InappproductsBatchDeleteRequest body, string packageName) { return new BatchDeleteRequest(this.service, body, packageName); } /// /// Deletes in-app products (managed products or subscriptions). Set the latencyTolerance field on nested /// requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update throughput. This /// method should not be used to delete subscriptions. See [this /// article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) /// for more information. /// public class BatchDeleteRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new BatchDelete request. public BatchDeleteRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.InappproductsBatchDeleteRequest body, string packageName) : base(service) { PackageName = packageName; Body = body; InitParameters(); } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.InappproductsBatchDeleteRequest Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "batchDelete"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/inappproducts:batchDelete"; /// Initializes BatchDelete parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// /// Reads multiple in-app products, which can be managed products or subscriptions. This method should not be /// used to retrieve subscriptions. See [this /// article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) /// for more information. /// /// Package name of the app. public virtual BatchGetRequest BatchGet(string packageName) { return new BatchGetRequest(this.service, packageName); } /// /// Reads multiple in-app products, which can be managed products or subscriptions. This method should not be /// used to retrieve subscriptions. See [this /// article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) /// for more information. /// public class BatchGetRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new BatchGet request. public BatchGetRequest(Google.Apis.Services.IClientService service, string packageName) : base(service) { PackageName = packageName; InitParameters(); } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Unique identifier for the in-app products. [Google.Apis.Util.RequestParameterAttribute("sku", Google.Apis.Util.RequestParameterType.Query)] public virtual Google.Apis.Util.Repeatable Sku { get; set; } /// Gets the method name. public override string MethodName => "batchGet"; /// Gets the HTTP method. public override string HttpMethod => "GET"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/inappproducts:batchGet"; /// Initializes BatchGet parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("sku", new Google.Apis.Discovery.Parameter { Name = "sku", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// /// Updates or inserts one or more in-app products (managed products or subscriptions). Set the latencyTolerance /// field on nested requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update /// throughput. This method should no longer be used to update subscriptions. See [this /// article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) /// for more information. /// /// The body of the request. /// Package name of the app. public virtual BatchUpdateRequest BatchUpdate(Google.Apis.AndroidPublisher.v3.Data.InappproductsBatchUpdateRequest body, string packageName) { return new BatchUpdateRequest(this.service, body, packageName); } /// /// Updates or inserts one or more in-app products (managed products or subscriptions). Set the latencyTolerance /// field on nested requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update /// throughput. This method should no longer be used to update subscriptions. See [this /// article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) /// for more information. /// public class BatchUpdateRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new BatchUpdate request. public BatchUpdateRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.InappproductsBatchUpdateRequest body, string packageName) : base(service) { PackageName = packageName; Body = body; InitParameters(); } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.InappproductsBatchUpdateRequest Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "batchUpdate"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/inappproducts:batchUpdate"; /// Initializes BatchUpdate parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// /// Deletes an in-app product (a managed product or a subscription). This method should no longer be used to /// delete subscriptions. See [this /// article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) /// for more information. /// /// Package name of the app. /// Unique identifier for the in-app product. public virtual DeleteRequest Delete(string packageName, string sku) { return new DeleteRequest(this.service, packageName, sku); } /// /// Deletes an in-app product (a managed product or a subscription). This method should no longer be used to /// delete subscriptions. See [this /// article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) /// for more information. /// public class DeleteRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Delete request. public DeleteRequest(Google.Apis.Services.IClientService service, string packageName, string sku) : base(service) { PackageName = packageName; Sku = sku; InitParameters(); } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Unique identifier for the in-app product. [Google.Apis.Util.RequestParameterAttribute("sku", Google.Apis.Util.RequestParameterType.Path)] public virtual string Sku { get; private set; } /// /// Optional. The latency tolerance for the propagation of this product update. Defaults to /// latency-sensitive. /// [Google.Apis.Util.RequestParameterAttribute("latencyTolerance", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable LatencyTolerance { get; set; } /// /// Optional. The latency tolerance for the propagation of this product update. Defaults to /// latency-sensitive. /// public enum LatencyToleranceEnum { /// Defaults to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE. [Google.Apis.Util.StringValueAttribute("PRODUCT_UPDATE_LATENCY_TOLERANCE_UNSPECIFIED")] PRODUCTUPDATELATENCYTOLERANCEUNSPECIFIED = 0, /// /// The update will propagate to clients within several minutes on average and up to a few hours in rare /// cases. Throughput is limited to 7,200 updates per app per hour. /// [Google.Apis.Util.StringValueAttribute("PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE")] PRODUCTUPDATELATENCYTOLERANCELATENCYSENSITIVE = 1, /// /// The update will propagate to clients within 24 hours. Supports high throughput of up to 720,000 /// updates per app per hour using batch modification methods. /// [Google.Apis.Util.StringValueAttribute("PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT")] PRODUCTUPDATELATENCYTOLERANCELATENCYTOLERANT = 2, } /// Gets the method name. public override string MethodName => "delete"; /// Gets the HTTP method. public override string HttpMethod => "DELETE"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/inappproducts/{sku}"; /// Initializes Delete parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("sku", new Google.Apis.Discovery.Parameter { Name = "sku", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("latencyTolerance", new Google.Apis.Discovery.Parameter { Name = "latencyTolerance", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// /// Gets an in-app product, which can be a managed product or a subscription. This method should no longer be /// used to retrieve subscriptions. See [this /// article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) /// for more information. /// /// Package name of the app. /// Unique identifier for the in-app product. public virtual GetRequest Get(string packageName, string sku) { return new GetRequest(this.service, packageName, sku); } /// /// Gets an in-app product, which can be a managed product or a subscription. This method should no longer be /// used to retrieve subscriptions. See [this /// article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) /// for more information. /// public class GetRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Get request. public GetRequest(Google.Apis.Services.IClientService service, string packageName, string sku) : base(service) { PackageName = packageName; Sku = sku; InitParameters(); } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Unique identifier for the in-app product. [Google.Apis.Util.RequestParameterAttribute("sku", Google.Apis.Util.RequestParameterType.Path)] public virtual string Sku { get; private set; } /// Gets the method name. public override string MethodName => "get"; /// Gets the HTTP method. public override string HttpMethod => "GET"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/inappproducts/{sku}"; /// Initializes Get parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("sku", new Google.Apis.Discovery.Parameter { Name = "sku", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// /// Creates an in-app product (a managed product or a subscription). This method should no longer be used to /// create subscriptions. See [this /// article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) /// for more information. /// /// The body of the request. /// Package name of the app. public virtual InsertRequest Insert(Google.Apis.AndroidPublisher.v3.Data.InAppProduct body, string packageName) { return new InsertRequest(this.service, body, packageName); } /// /// Creates an in-app product (a managed product or a subscription). This method should no longer be used to /// create subscriptions. See [this /// article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) /// for more information. /// public class InsertRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Insert request. public InsertRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.InAppProduct body, string packageName) : base(service) { PackageName = packageName; Body = body; InitParameters(); } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// /// If true the prices for all regions targeted by the parent app that don't have a price specified for this /// in-app product will be auto converted to the target currency based on the default price. Defaults to /// false. /// [Google.Apis.Util.RequestParameterAttribute("autoConvertMissingPrices", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable AutoConvertMissingPrices { get; set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.InAppProduct Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "insert"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/inappproducts"; /// Initializes Insert parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("autoConvertMissingPrices", new Google.Apis.Discovery.Parameter { Name = "autoConvertMissingPrices", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// /// Lists all in-app products - both managed products and subscriptions. If an app has a large number of in-app /// products, the response may be paginated. In this case the response field `tokenPagination.nextPageToken` /// will be set and the caller should provide its value as a `token` request parameter to retrieve the next /// page. This method should no longer be used to retrieve subscriptions. See [this /// article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) /// for more information. /// /// Package name of the app. public virtual ListRequest List(string packageName) { return new ListRequest(this.service, packageName); } /// /// Lists all in-app products - both managed products and subscriptions. If an app has a large number of in-app /// products, the response may be paginated. In this case the response field `tokenPagination.nextPageToken` /// will be set and the caller should provide its value as a `token` request parameter to retrieve the next /// page. This method should no longer be used to retrieve subscriptions. See [this /// article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) /// for more information. /// public class ListRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new List request. public ListRequest(Google.Apis.Services.IClientService service, string packageName) : base(service) { PackageName = packageName; InitParameters(); } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Deprecated and ignored. The page size is determined by the server. [Google.Apis.Util.RequestParameterAttribute("maxResults", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable MaxResults { get; set; } /// Deprecated and ignored. Set the `token` parameter to retrieve the next page. [Google.Apis.Util.RequestParameterAttribute("startIndex", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable StartIndex { get; set; } /// Pagination token. If empty, list starts at the first product. [Google.Apis.Util.RequestParameterAttribute("token", Google.Apis.Util.RequestParameterType.Query)] public virtual string Token { get; set; } /// Gets the method name. public override string MethodName => "list"; /// Gets the HTTP method. public override string HttpMethod => "GET"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/inappproducts"; /// Initializes List parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("maxResults", new Google.Apis.Discovery.Parameter { Name = "maxResults", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("startIndex", new Google.Apis.Discovery.Parameter { Name = "startIndex", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("token", new Google.Apis.Discovery.Parameter { Name = "token", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// /// Patches an in-app product (a managed product or a subscription). This method should no longer be used to /// update subscriptions. See [this /// article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) /// for more information. /// /// The body of the request. /// Package name of the app. /// Unique identifier for the in-app product. public virtual PatchRequest Patch(Google.Apis.AndroidPublisher.v3.Data.InAppProduct body, string packageName, string sku) { return new PatchRequest(this.service, body, packageName, sku); } /// /// Patches an in-app product (a managed product or a subscription). This method should no longer be used to /// update subscriptions. See [this /// article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) /// for more information. /// public class PatchRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Patch request. public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.InAppProduct body, string packageName, string sku) : base(service) { PackageName = packageName; Sku = sku; Body = body; InitParameters(); } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Unique identifier for the in-app product. [Google.Apis.Util.RequestParameterAttribute("sku", Google.Apis.Util.RequestParameterType.Path)] public virtual string Sku { get; private set; } /// /// If true the prices for all regions targeted by the parent app that don't have a price specified for this /// in-app product will be auto converted to the target currency based on the default price. Defaults to /// false. /// [Google.Apis.Util.RequestParameterAttribute("autoConvertMissingPrices", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable AutoConvertMissingPrices { get; set; } /// /// Optional. The latency tolerance for the propagation of this product update. Defaults to /// latency-sensitive. /// [Google.Apis.Util.RequestParameterAttribute("latencyTolerance", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable LatencyTolerance { get; set; } /// /// Optional. The latency tolerance for the propagation of this product update. Defaults to /// latency-sensitive. /// public enum LatencyToleranceEnum { /// Defaults to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE. [Google.Apis.Util.StringValueAttribute("PRODUCT_UPDATE_LATENCY_TOLERANCE_UNSPECIFIED")] PRODUCTUPDATELATENCYTOLERANCEUNSPECIFIED = 0, /// /// The update will propagate to clients within several minutes on average and up to a few hours in rare /// cases. Throughput is limited to 7,200 updates per app per hour. /// [Google.Apis.Util.StringValueAttribute("PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE")] PRODUCTUPDATELATENCYTOLERANCELATENCYSENSITIVE = 1, /// /// The update will propagate to clients within 24 hours. Supports high throughput of up to 720,000 /// updates per app per hour using batch modification methods. /// [Google.Apis.Util.StringValueAttribute("PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT")] PRODUCTUPDATELATENCYTOLERANCELATENCYTOLERANT = 2, } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.InAppProduct Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "patch"; /// Gets the HTTP method. public override string HttpMethod => "PATCH"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/inappproducts/{sku}"; /// Initializes Patch parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("sku", new Google.Apis.Discovery.Parameter { Name = "sku", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("autoConvertMissingPrices", new Google.Apis.Discovery.Parameter { Name = "autoConvertMissingPrices", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("latencyTolerance", new Google.Apis.Discovery.Parameter { Name = "latencyTolerance", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// /// Updates an in-app product (a managed product or a subscription). This method should no longer be used to /// update subscriptions. See [this /// article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) /// for more information. /// /// The body of the request. /// Package name of the app. /// Unique identifier for the in-app product. public virtual UpdateRequest Update(Google.Apis.AndroidPublisher.v3.Data.InAppProduct body, string packageName, string sku) { return new UpdateRequest(this.service, body, packageName, sku); } /// /// Updates an in-app product (a managed product or a subscription). This method should no longer be used to /// update subscriptions. See [this /// article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) /// for more information. /// public class UpdateRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Update request. public UpdateRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.InAppProduct body, string packageName, string sku) : base(service) { PackageName = packageName; Sku = sku; Body = body; InitParameters(); } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Unique identifier for the in-app product. [Google.Apis.Util.RequestParameterAttribute("sku", Google.Apis.Util.RequestParameterType.Path)] public virtual string Sku { get; private set; } /// /// If set to true, and the in-app product with the given package_name and sku doesn't exist, the in-app /// product will be created. /// [Google.Apis.Util.RequestParameterAttribute("allowMissing", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable AllowMissing { get; set; } /// /// If true the prices for all regions targeted by the parent app that don't have a price specified for this /// in-app product will be auto converted to the target currency based on the default price. Defaults to /// false. /// [Google.Apis.Util.RequestParameterAttribute("autoConvertMissingPrices", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable AutoConvertMissingPrices { get; set; } /// /// Optional. The latency tolerance for the propagation of this product update. Defaults to /// latency-sensitive. /// [Google.Apis.Util.RequestParameterAttribute("latencyTolerance", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable LatencyTolerance { get; set; } /// /// Optional. The latency tolerance for the propagation of this product update. Defaults to /// latency-sensitive. /// public enum LatencyToleranceEnum { /// Defaults to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE. [Google.Apis.Util.StringValueAttribute("PRODUCT_UPDATE_LATENCY_TOLERANCE_UNSPECIFIED")] PRODUCTUPDATELATENCYTOLERANCEUNSPECIFIED = 0, /// /// The update will propagate to clients within several minutes on average and up to a few hours in rare /// cases. Throughput is limited to 7,200 updates per app per hour. /// [Google.Apis.Util.StringValueAttribute("PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE")] PRODUCTUPDATELATENCYTOLERANCELATENCYSENSITIVE = 1, /// /// The update will propagate to clients within 24 hours. Supports high throughput of up to 720,000 /// updates per app per hour using batch modification methods. /// [Google.Apis.Util.StringValueAttribute("PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT")] PRODUCTUPDATELATENCYTOLERANCELATENCYTOLERANT = 2, } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.InAppProduct Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "update"; /// Gets the HTTP method. public override string HttpMethod => "PUT"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/inappproducts/{sku}"; /// Initializes Update parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("sku", new Google.Apis.Discovery.Parameter { Name = "sku", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("allowMissing", new Google.Apis.Discovery.Parameter { Name = "allowMissing", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("autoConvertMissingPrices", new Google.Apis.Discovery.Parameter { Name = "autoConvertMissingPrices", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("latencyTolerance", new Google.Apis.Discovery.Parameter { Name = "latencyTolerance", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } } /// The "internalappsharingartifacts" collection of methods. public class InternalappsharingartifactsResource { private const string Resource = "internalappsharingartifacts"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. public InternalappsharingartifactsResource(Google.Apis.Services.IClientService service) { this.service = service; } /// /// Uploads an APK to internal app sharing. If you are using the Google API client libraries, please increase /// the timeout of the http request before calling this endpoint (a timeout of 2 minutes is recommended). See /// [Timeouts and Errors](https://developers.google.com/api-client-library/java/google-api-java-client/errors) /// for an example in java. /// /// Package name of the app. public virtual UploadapkRequest Uploadapk(string packageName) { return new UploadapkRequest(this.service, packageName); } /// /// Uploads an APK to internal app sharing. If you are using the Google API client libraries, please increase /// the timeout of the http request before calling this endpoint (a timeout of 2 minutes is recommended). See /// [Timeouts and Errors](https://developers.google.com/api-client-library/java/google-api-java-client/errors) /// for an example in java. /// public class UploadapkRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Uploadapk request. public UploadapkRequest(Google.Apis.Services.IClientService service, string packageName) : base(service) { PackageName = packageName; InitParameters(); } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Gets the method name. public override string MethodName => "uploadapk"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/apk"; /// Initializes Uploadapk parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// /// Uploads an APK to internal app sharing. If you are using the Google API client libraries, please increase /// the timeout of the http request before calling this endpoint (a timeout of 2 minutes is recommended). See /// [Timeouts and Errors](https://developers.google.com/api-client-library/java/google-api-java-client/errors) /// for an example in java. /// /// /// Considerations regarding : /// /// /// /// If is seekable, then the stream position will be reset to 0 before reading /// commences. If is not seekable, then it will be read from its current position /// /// /// /// /// Caller is responsible for maintaining the open until the upload is completed /// /// /// Caller is responsible for closing the /// /// /// Package name of the app. /// The stream to upload. See remarks for further information. /// The content type of the stream to upload. public virtual UploadapkMediaUpload Uploadapk(string packageName, System.IO.Stream stream, string contentType) { return new UploadapkMediaUpload(service, packageName, stream, contentType); } /// Uploadapk media upload which supports resumable upload. public class UploadapkMediaUpload : Google.Apis.Upload.ResumableUpload { /// V1 error format. [Google.Apis.Util.RequestParameterAttribute("$.xgafv", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable Xgafv { get; set; } /// V1 error format. public enum XgafvEnum { /// v1 error format [Google.Apis.Util.StringValueAttribute("1")] Value1 = 0, /// v2 error format [Google.Apis.Util.StringValueAttribute("2")] Value2 = 1, } /// OAuth access token. [Google.Apis.Util.RequestParameterAttribute("access_token", Google.Apis.Util.RequestParameterType.Query)] public virtual string AccessToken { get; set; } /// Data format for response. [Google.Apis.Util.RequestParameterAttribute("alt", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable Alt { get; set; } /// Data format for response. public enum AltEnum { /// Responses with Content-Type of application/json [Google.Apis.Util.StringValueAttribute("json")] Json = 0, /// Media download with context-dependent Content-Type [Google.Apis.Util.StringValueAttribute("media")] Media = 1, /// Responses with Content-Type of application/x-protobuf [Google.Apis.Util.StringValueAttribute("proto")] Proto = 2, } /// JSONP [Google.Apis.Util.RequestParameterAttribute("callback", Google.Apis.Util.RequestParameterType.Query)] public virtual string Callback { get; set; } /// Selector specifying which fields to include in a partial response. [Google.Apis.Util.RequestParameterAttribute("fields", Google.Apis.Util.RequestParameterType.Query)] public virtual string Fields { get; set; } /// /// API key. Your API key identifies your project and provides you with API access, quota, and reports. /// Required unless you provide an OAuth 2.0 token. /// [Google.Apis.Util.RequestParameterAttribute("key", Google.Apis.Util.RequestParameterType.Query)] public virtual string Key { get; set; } /// OAuth 2.0 token for the current user. [Google.Apis.Util.RequestParameterAttribute("oauth_token", Google.Apis.Util.RequestParameterType.Query)] public virtual string OauthToken { get; set; } /// Returns response with indentations and line breaks. [Google.Apis.Util.RequestParameterAttribute("prettyPrint", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable PrettyPrint { get; set; } /// /// Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned /// to a user, but should not exceed 40 characters. /// [Google.Apis.Util.RequestParameterAttribute("quotaUser", Google.Apis.Util.RequestParameterType.Query)] public virtual string QuotaUser { get; set; } /// Legacy upload protocol for media (e.g. "media", "multipart"). [Google.Apis.Util.RequestParameterAttribute("uploadType", Google.Apis.Util.RequestParameterType.Query)] public virtual string UploadType { get; set; } /// Upload protocol for media (e.g. "raw", "multipart"). [Google.Apis.Util.RequestParameterAttribute("upload_protocol", Google.Apis.Util.RequestParameterType.Query)] public virtual string UploadProtocol { get; set; } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Constructs a new Uploadapk media upload instance. /// /// Considerations regarding : /// /// /// /// If is seekable, then the stream position will be reset to 0 before /// reading commences. If is not seekable, then it will be read from its current /// position /// /// /// /// /// Caller is responsible for maintaining the open until the upload is completed /// /// /// Caller is responsible for closing the /// /// public UploadapkMediaUpload(Google.Apis.Services.IClientService service, string packageName, System.IO.Stream stream, string contentType) : base(service, string.Format("/{0}/{1}{2}", "upload", service.BasePath, "androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/apk"), "POST", stream, contentType) { PackageName = packageName; } } /// /// Uploads an app bundle to internal app sharing. If you are using the Google API client libraries, please /// increase the timeout of the http request before calling this endpoint (a timeout of 2 minutes is /// recommended). See [Timeouts and /// Errors](https://developers.google.com/api-client-library/java/google-api-java-client/errors) for an example /// in java. /// /// Package name of the app. public virtual UploadbundleRequest Uploadbundle(string packageName) { return new UploadbundleRequest(this.service, packageName); } /// /// Uploads an app bundle to internal app sharing. If you are using the Google API client libraries, please /// increase the timeout of the http request before calling this endpoint (a timeout of 2 minutes is /// recommended). See [Timeouts and /// Errors](https://developers.google.com/api-client-library/java/google-api-java-client/errors) for an example /// in java. /// public class UploadbundleRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Uploadbundle request. public UploadbundleRequest(Google.Apis.Services.IClientService service, string packageName) : base(service) { PackageName = packageName; InitParameters(); } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Gets the method name. public override string MethodName => "uploadbundle"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/bundle"; /// Initializes Uploadbundle parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// /// Uploads an app bundle to internal app sharing. If you are using the Google API client libraries, please /// increase the timeout of the http request before calling this endpoint (a timeout of 2 minutes is /// recommended). See [Timeouts and /// Errors](https://developers.google.com/api-client-library/java/google-api-java-client/errors) for an example /// in java. /// /// /// Considerations regarding : /// /// /// /// If is seekable, then the stream position will be reset to 0 before reading /// commences. If is not seekable, then it will be read from its current position /// /// /// /// /// Caller is responsible for maintaining the open until the upload is completed /// /// /// Caller is responsible for closing the /// /// /// Package name of the app. /// The stream to upload. See remarks for further information. /// The content type of the stream to upload. public virtual UploadbundleMediaUpload Uploadbundle(string packageName, System.IO.Stream stream, string contentType) { return new UploadbundleMediaUpload(service, packageName, stream, contentType); } /// Uploadbundle media upload which supports resumable upload. public class UploadbundleMediaUpload : Google.Apis.Upload.ResumableUpload { /// V1 error format. [Google.Apis.Util.RequestParameterAttribute("$.xgafv", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable Xgafv { get; set; } /// V1 error format. public enum XgafvEnum { /// v1 error format [Google.Apis.Util.StringValueAttribute("1")] Value1 = 0, /// v2 error format [Google.Apis.Util.StringValueAttribute("2")] Value2 = 1, } /// OAuth access token. [Google.Apis.Util.RequestParameterAttribute("access_token", Google.Apis.Util.RequestParameterType.Query)] public virtual string AccessToken { get; set; } /// Data format for response. [Google.Apis.Util.RequestParameterAttribute("alt", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable Alt { get; set; } /// Data format for response. public enum AltEnum { /// Responses with Content-Type of application/json [Google.Apis.Util.StringValueAttribute("json")] Json = 0, /// Media download with context-dependent Content-Type [Google.Apis.Util.StringValueAttribute("media")] Media = 1, /// Responses with Content-Type of application/x-protobuf [Google.Apis.Util.StringValueAttribute("proto")] Proto = 2, } /// JSONP [Google.Apis.Util.RequestParameterAttribute("callback", Google.Apis.Util.RequestParameterType.Query)] public virtual string Callback { get; set; } /// Selector specifying which fields to include in a partial response. [Google.Apis.Util.RequestParameterAttribute("fields", Google.Apis.Util.RequestParameterType.Query)] public virtual string Fields { get; set; } /// /// API key. Your API key identifies your project and provides you with API access, quota, and reports. /// Required unless you provide an OAuth 2.0 token. /// [Google.Apis.Util.RequestParameterAttribute("key", Google.Apis.Util.RequestParameterType.Query)] public virtual string Key { get; set; } /// OAuth 2.0 token for the current user. [Google.Apis.Util.RequestParameterAttribute("oauth_token", Google.Apis.Util.RequestParameterType.Query)] public virtual string OauthToken { get; set; } /// Returns response with indentations and line breaks. [Google.Apis.Util.RequestParameterAttribute("prettyPrint", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable PrettyPrint { get; set; } /// /// Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned /// to a user, but should not exceed 40 characters. /// [Google.Apis.Util.RequestParameterAttribute("quotaUser", Google.Apis.Util.RequestParameterType.Query)] public virtual string QuotaUser { get; set; } /// Legacy upload protocol for media (e.g. "media", "multipart"). [Google.Apis.Util.RequestParameterAttribute("uploadType", Google.Apis.Util.RequestParameterType.Query)] public virtual string UploadType { get; set; } /// Upload protocol for media (e.g. "raw", "multipart"). [Google.Apis.Util.RequestParameterAttribute("upload_protocol", Google.Apis.Util.RequestParameterType.Query)] public virtual string UploadProtocol { get; set; } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Constructs a new Uploadbundle media upload instance. /// /// Considerations regarding : /// /// /// /// If is seekable, then the stream position will be reset to 0 before /// reading commences. If is not seekable, then it will be read from its current /// position /// /// /// /// /// Caller is responsible for maintaining the open until the upload is completed /// /// /// Caller is responsible for closing the /// /// public UploadbundleMediaUpload(Google.Apis.Services.IClientService service, string packageName, System.IO.Stream stream, string contentType) : base(service, string.Format("/{0}/{1}{2}", "upload", service.BasePath, "androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/bundle"), "POST", stream, contentType) { PackageName = packageName; } } } /// The "monetization" collection of methods. public class MonetizationResource { private const string Resource = "monetization"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. public MonetizationResource(Google.Apis.Services.IClientService service) { this.service = service; Onetimeproducts = new OnetimeproductsResource(service); Subscriptions = new SubscriptionsResource(service); } /// Gets the Onetimeproducts resource. public virtual OnetimeproductsResource Onetimeproducts { get; } /// The "onetimeproducts" collection of methods. public class OnetimeproductsResource { private const string Resource = "onetimeproducts"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. public OnetimeproductsResource(Google.Apis.Services.IClientService service) { this.service = service; PurchaseOptions = new PurchaseOptionsResource(service); } /// Gets the PurchaseOptions resource. public virtual PurchaseOptionsResource PurchaseOptions { get; } /// The "purchaseOptions" collection of methods. public class PurchaseOptionsResource { private const string Resource = "purchaseOptions"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. public PurchaseOptionsResource(Google.Apis.Services.IClientService service) { this.service = service; Offers = new OffersResource(service); } /// Gets the Offers resource. public virtual OffersResource Offers { get; } /// The "offers" collection of methods. public class OffersResource { private const string Resource = "offers"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. public OffersResource(Google.Apis.Services.IClientService service) { this.service = service; } /// Activates a one-time product offer. /// The body of the request. /// /// Required. The parent app (package name) of the offer to activate. /// /// /// Required. The parent one-time product (ID) of the offer to activate. /// /// /// Required. The parent purchase option (ID) of the offer to activate. /// /// Required. The offer ID of the offer to activate. public virtual ActivateRequest Activate(Google.Apis.AndroidPublisher.v3.Data.ActivateOneTimeProductOfferRequest body, string packageName, string productId, string purchaseOptionId, string offerId) { return new ActivateRequest(this.service, body, packageName, productId, purchaseOptionId, offerId); } /// Activates a one-time product offer. public class ActivateRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Activate request. public ActivateRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.ActivateOneTimeProductOfferRequest body, string packageName, string productId, string purchaseOptionId, string offerId) : base(service) { PackageName = packageName; ProductId = productId; PurchaseOptionId = purchaseOptionId; OfferId = offerId; Body = body; InitParameters(); } /// Required. The parent app (package name) of the offer to activate. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Required. The parent one-time product (ID) of the offer to activate. [Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)] public virtual string ProductId { get; private set; } /// Required. The parent purchase option (ID) of the offer to activate. [Google.Apis.Util.RequestParameterAttribute("purchaseOptionId", Google.Apis.Util.RequestParameterType.Path)] public virtual string PurchaseOptionId { get; private set; } /// Required. The offer ID of the offer to activate. [Google.Apis.Util.RequestParameterAttribute("offerId", Google.Apis.Util.RequestParameterType.Path)] public virtual string OfferId { get; private set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.ActivateOneTimeProductOfferRequest Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "activate"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers/{offerId}:activate"; /// Initializes Activate parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter { Name = "productId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("purchaseOptionId", new Google.Apis.Discovery.Parameter { Name = "purchaseOptionId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("offerId", new Google.Apis.Discovery.Parameter { Name = "offerId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// Deletes one or more one-time product offers. /// The body of the request. /// /// Required. The parent app (package name) of the offers to delete. Must be equal to the /// package_name field on all the OneTimeProductOffer resources. /// /// /// Required. The product ID of the parent one-time product, if all offers to delete belong to the /// same product. If this request spans multiple one-time products, set this field to "-". /// /// /// Required. The parent purchase option (ID) for which the offers should be deleted. May be /// specified as '-' to update offers from multiple purchase options. /// public virtual BatchDeleteRequest BatchDelete(Google.Apis.AndroidPublisher.v3.Data.BatchDeleteOneTimeProductOffersRequest body, string packageName, string productId, string purchaseOptionId) { return new BatchDeleteRequest(this.service, body, packageName, productId, purchaseOptionId); } /// Deletes one or more one-time product offers. public class BatchDeleteRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new BatchDelete request. public BatchDeleteRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.BatchDeleteOneTimeProductOffersRequest body, string packageName, string productId, string purchaseOptionId) : base(service) { PackageName = packageName; ProductId = productId; PurchaseOptionId = purchaseOptionId; Body = body; InitParameters(); } /// /// Required. The parent app (package name) of the offers to delete. Must be equal to the /// package_name field on all the OneTimeProductOffer resources. /// [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// /// Required. The product ID of the parent one-time product, if all offers to delete belong to /// the same product. If this request spans multiple one-time products, set this field to "-". /// [Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)] public virtual string ProductId { get; private set; } /// /// Required. The parent purchase option (ID) for which the offers should be deleted. May be /// specified as '-' to update offers from multiple purchase options. /// [Google.Apis.Util.RequestParameterAttribute("purchaseOptionId", Google.Apis.Util.RequestParameterType.Path)] public virtual string PurchaseOptionId { get; private set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.BatchDeleteOneTimeProductOffersRequest Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "batchDelete"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers:batchDelete"; /// Initializes BatchDelete parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter { Name = "productId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("purchaseOptionId", new Google.Apis.Discovery.Parameter { Name = "purchaseOptionId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// Reads one or more one-time product offers. /// The body of the request. /// /// Required. The parent app (package name) of the updated offers. Must be equal to the package_name /// field on all the updated OneTimeProductOffer resources. /// /// /// Required. The product ID of the parent one-time product, if all updated offers belong to the /// same product. If this request spans multiple one-time products, set this field to "-". /// /// /// Required. The parent purchase option (ID) for which the offers should be updated. May be /// specified as '-' to update offers from multiple purchase options. /// public virtual BatchGetRequest BatchGet(Google.Apis.AndroidPublisher.v3.Data.BatchGetOneTimeProductOffersRequest body, string packageName, string productId, string purchaseOptionId) { return new BatchGetRequest(this.service, body, packageName, productId, purchaseOptionId); } /// Reads one or more one-time product offers. public class BatchGetRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new BatchGet request. public BatchGetRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.BatchGetOneTimeProductOffersRequest body, string packageName, string productId, string purchaseOptionId) : base(service) { PackageName = packageName; ProductId = productId; PurchaseOptionId = purchaseOptionId; Body = body; InitParameters(); } /// /// Required. The parent app (package name) of the updated offers. Must be equal to the /// package_name field on all the updated OneTimeProductOffer resources. /// [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// /// Required. The product ID of the parent one-time product, if all updated offers belong to the /// same product. If this request spans multiple one-time products, set this field to "-". /// [Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)] public virtual string ProductId { get; private set; } /// /// Required. The parent purchase option (ID) for which the offers should be updated. May be /// specified as '-' to update offers from multiple purchase options. /// [Google.Apis.Util.RequestParameterAttribute("purchaseOptionId", Google.Apis.Util.RequestParameterType.Path)] public virtual string PurchaseOptionId { get; private set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.BatchGetOneTimeProductOffersRequest Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "batchGet"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers:batchGet"; /// Initializes BatchGet parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter { Name = "productId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("purchaseOptionId", new Google.Apis.Discovery.Parameter { Name = "purchaseOptionId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// Creates or updates one or more one-time product offers. /// The body of the request. /// /// Required. The parent app (package name) of the updated offers. Must be equal to the package_name /// field on all the updated OneTimeProductOffer resources. /// /// /// Required. The product ID of the parent one-time product, if all updated offers belong to the /// same product. If this request spans multiple one-time products, set this field to "-". /// /// /// Required. The parent purchase option (ID) for which the offers should be updated. May be /// specified as '-' to update offers from multiple purchase options. /// public virtual BatchUpdateRequest BatchUpdate(Google.Apis.AndroidPublisher.v3.Data.BatchUpdateOneTimeProductOffersRequest body, string packageName, string productId, string purchaseOptionId) { return new BatchUpdateRequest(this.service, body, packageName, productId, purchaseOptionId); } /// Creates or updates one or more one-time product offers. public class BatchUpdateRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new BatchUpdate request. public BatchUpdateRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.BatchUpdateOneTimeProductOffersRequest body, string packageName, string productId, string purchaseOptionId) : base(service) { PackageName = packageName; ProductId = productId; PurchaseOptionId = purchaseOptionId; Body = body; InitParameters(); } /// /// Required. The parent app (package name) of the updated offers. Must be equal to the /// package_name field on all the updated OneTimeProductOffer resources. /// [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// /// Required. The product ID of the parent one-time product, if all updated offers belong to the /// same product. If this request spans multiple one-time products, set this field to "-". /// [Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)] public virtual string ProductId { get; private set; } /// /// Required. The parent purchase option (ID) for which the offers should be updated. May be /// specified as '-' to update offers from multiple purchase options. /// [Google.Apis.Util.RequestParameterAttribute("purchaseOptionId", Google.Apis.Util.RequestParameterType.Path)] public virtual string PurchaseOptionId { get; private set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.BatchUpdateOneTimeProductOffersRequest Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "batchUpdate"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers:batchUpdate"; /// Initializes BatchUpdate parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter { Name = "productId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("purchaseOptionId", new Google.Apis.Discovery.Parameter { Name = "purchaseOptionId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// Updates a batch of one-time product offer states. /// The body of the request. /// /// Required. The parent app (package name) of the updated one-time product offers. /// /// /// Required. The product ID of the parent one-time product, if all updated offers belong to the /// same one-time product. If this batch update spans multiple one-time products, set this field to /// "-". /// /// /// Required. The purchase option ID of the parent purchase option, if all updated offers belong to /// the same purchase option. If this batch update spans multiple purchase options, set this field /// to "-". /// public virtual BatchUpdateStatesRequest BatchUpdateStates(Google.Apis.AndroidPublisher.v3.Data.BatchUpdateOneTimeProductOfferStatesRequest body, string packageName, string productId, string purchaseOptionId) { return new BatchUpdateStatesRequest(this.service, body, packageName, productId, purchaseOptionId); } /// Updates a batch of one-time product offer states. public class BatchUpdateStatesRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new BatchUpdateStates request. public BatchUpdateStatesRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.BatchUpdateOneTimeProductOfferStatesRequest body, string packageName, string productId, string purchaseOptionId) : base(service) { PackageName = packageName; ProductId = productId; PurchaseOptionId = purchaseOptionId; Body = body; InitParameters(); } /// /// Required. The parent app (package name) of the updated one-time product offers. /// [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// /// Required. The product ID of the parent one-time product, if all updated offers belong to the /// same one-time product. If this batch update spans multiple one-time products, set this field /// to "-". /// [Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)] public virtual string ProductId { get; private set; } /// /// Required. The purchase option ID of the parent purchase option, if all updated offers belong /// to the same purchase option. If this batch update spans multiple purchase options, set this /// field to "-". /// [Google.Apis.Util.RequestParameterAttribute("purchaseOptionId", Google.Apis.Util.RequestParameterType.Path)] public virtual string PurchaseOptionId { get; private set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.BatchUpdateOneTimeProductOfferStatesRequest Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "batchUpdateStates"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers:batchUpdateStates"; /// Initializes BatchUpdateStates parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter { Name = "productId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("purchaseOptionId", new Google.Apis.Discovery.Parameter { Name = "purchaseOptionId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// Cancels a one-time product offer. /// The body of the request. /// /// Required. The parent app (package name) of the offer to cancel. /// /// /// Required. The parent one-time product (ID) of the offer to cancel. /// /// /// Required. The parent purchase option (ID) of the offer to cancel. /// /// Required. The offer ID of the offer to cancel. public virtual CancelRequest Cancel(Google.Apis.AndroidPublisher.v3.Data.CancelOneTimeProductOfferRequest body, string packageName, string productId, string purchaseOptionId, string offerId) { return new CancelRequest(this.service, body, packageName, productId, purchaseOptionId, offerId); } /// Cancels a one-time product offer. public class CancelRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Cancel request. public CancelRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.CancelOneTimeProductOfferRequest body, string packageName, string productId, string purchaseOptionId, string offerId) : base(service) { PackageName = packageName; ProductId = productId; PurchaseOptionId = purchaseOptionId; OfferId = offerId; Body = body; InitParameters(); } /// Required. The parent app (package name) of the offer to cancel. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Required. The parent one-time product (ID) of the offer to cancel. [Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)] public virtual string ProductId { get; private set; } /// Required. The parent purchase option (ID) of the offer to cancel. [Google.Apis.Util.RequestParameterAttribute("purchaseOptionId", Google.Apis.Util.RequestParameterType.Path)] public virtual string PurchaseOptionId { get; private set; } /// Required. The offer ID of the offer to cancel. [Google.Apis.Util.RequestParameterAttribute("offerId", Google.Apis.Util.RequestParameterType.Path)] public virtual string OfferId { get; private set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.CancelOneTimeProductOfferRequest Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "cancel"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers/{offerId}:cancel"; /// Initializes Cancel parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter { Name = "productId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("purchaseOptionId", new Google.Apis.Discovery.Parameter { Name = "purchaseOptionId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("offerId", new Google.Apis.Discovery.Parameter { Name = "offerId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// Deactivates a one-time product offer. /// The body of the request. /// /// Required. The parent app (package name) of the offer to deactivate. /// /// /// Required. The parent one-time product (ID) of the offer to deactivate. /// /// /// Required. The parent purchase option (ID) of the offer to deactivate. /// /// Required. The offer ID of the offer to deactivate. public virtual DeactivateRequest Deactivate(Google.Apis.AndroidPublisher.v3.Data.DeactivateOneTimeProductOfferRequest body, string packageName, string productId, string purchaseOptionId, string offerId) { return new DeactivateRequest(this.service, body, packageName, productId, purchaseOptionId, offerId); } /// Deactivates a one-time product offer. public class DeactivateRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Deactivate request. public DeactivateRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.DeactivateOneTimeProductOfferRequest body, string packageName, string productId, string purchaseOptionId, string offerId) : base(service) { PackageName = packageName; ProductId = productId; PurchaseOptionId = purchaseOptionId; OfferId = offerId; Body = body; InitParameters(); } /// Required. The parent app (package name) of the offer to deactivate. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Required. The parent one-time product (ID) of the offer to deactivate. [Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)] public virtual string ProductId { get; private set; } /// Required. The parent purchase option (ID) of the offer to deactivate. [Google.Apis.Util.RequestParameterAttribute("purchaseOptionId", Google.Apis.Util.RequestParameterType.Path)] public virtual string PurchaseOptionId { get; private set; } /// Required. The offer ID of the offer to deactivate. [Google.Apis.Util.RequestParameterAttribute("offerId", Google.Apis.Util.RequestParameterType.Path)] public virtual string OfferId { get; private set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.DeactivateOneTimeProductOfferRequest Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "deactivate"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers/{offerId}:deactivate"; /// Initializes Deactivate parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter { Name = "productId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("purchaseOptionId", new Google.Apis.Discovery.Parameter { Name = "purchaseOptionId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("offerId", new Google.Apis.Discovery.Parameter { Name = "offerId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// Lists all offers under a given app, product, or purchase option. /// /// Required. The parent app (package name) for which the offers should be read. /// /// /// Required. The parent one-time product (ID) for which the offers should be read. May be specified /// as '-' to read all offers under an app. /// /// /// Required. The parent purchase option (ID) for which the offers should be read. May be specified /// as '-' to read all offers under a one-time product or an app. Must be specified as '-' if /// product_id is specified as '-'. /// public virtual ListRequest List(string packageName, string productId, string purchaseOptionId) { return new ListRequest(this.service, packageName, productId, purchaseOptionId); } /// Lists all offers under a given app, product, or purchase option. public class ListRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new List request. public ListRequest(Google.Apis.Services.IClientService service, string packageName, string productId, string purchaseOptionId) : base(service) { PackageName = packageName; ProductId = productId; PurchaseOptionId = purchaseOptionId; InitParameters(); } /// /// Required. The parent app (package name) for which the offers should be read. /// [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// /// Required. The parent one-time product (ID) for which the offers should be read. May be /// specified as '-' to read all offers under an app. /// [Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)] public virtual string ProductId { get; private set; } /// /// Required. The parent purchase option (ID) for which the offers should be read. May be /// specified as '-' to read all offers under a one-time product or an app. Must be specified as /// '-' if product_id is specified as '-'. /// [Google.Apis.Util.RequestParameterAttribute("purchaseOptionId", Google.Apis.Util.RequestParameterType.Path)] public virtual string PurchaseOptionId { get; private set; } /// /// Optional. The maximum number of offers to return. The service may return fewer than this /// value. If unspecified, at most 50 offers will be returned. The maximum value is 1000; values /// above 1000 will be coerced to 1000. /// [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable PageSize { get; set; } /// /// Optional. A page token, received from a previous `ListOneTimeProductsOffers` call. Provide /// this to retrieve the subsequent page. When paginating, product_id, package_name and /// purchase_option_id provided to `ListOneTimeProductsOffersRequest` must match the call that /// provided the page token. /// [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } /// Gets the method name. public override string MethodName => "list"; /// Gets the HTTP method. public override string HttpMethod => "GET"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers"; /// Initializes List parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter { Name = "productId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("purchaseOptionId", new Google.Apis.Discovery.Parameter { Name = "purchaseOptionId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter { Name = "pageSize", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter { Name = "pageToken", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } } /// /// Deletes purchase options across one or multiple one-time products. By default this operation will /// fail if there are any existing offers under the deleted purchase options. Use the force parameter to /// override the default behavior. /// /// The body of the request. /// /// Required. The parent app (package name) of the purchase options to delete. /// /// /// Required. The product ID of the parent one-time product, if all purchase options to delete belong to /// the same one-time product. If this batch delete spans multiple one-time products, set this field to /// "-". /// public virtual BatchDeleteRequest BatchDelete(Google.Apis.AndroidPublisher.v3.Data.BatchDeletePurchaseOptionsRequest body, string packageName, string productId) { return new BatchDeleteRequest(this.service, body, packageName, productId); } /// /// Deletes purchase options across one or multiple one-time products. By default this operation will /// fail if there are any existing offers under the deleted purchase options. Use the force parameter to /// override the default behavior. /// public class BatchDeleteRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new BatchDelete request. public BatchDeleteRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.BatchDeletePurchaseOptionsRequest body, string packageName, string productId) : base(service) { PackageName = packageName; ProductId = productId; Body = body; InitParameters(); } /// Required. The parent app (package name) of the purchase options to delete. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// /// Required. The product ID of the parent one-time product, if all purchase options to delete /// belong to the same one-time product. If this batch delete spans multiple one-time products, set /// this field to "-". /// [Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)] public virtual string ProductId { get; private set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.BatchDeletePurchaseOptionsRequest Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "batchDelete"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions:batchDelete"; /// Initializes BatchDelete parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter { Name = "productId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// /// Activates or deactivates purchase options across one or multiple one-time products. /// /// The body of the request. /// /// Required. The parent app (package name) of the updated purchase options. /// /// /// Required. The product ID of the parent one-time product, if all updated purchase options belong to /// the same one-time product. If this batch update spans multiple one-time products, set this field to /// "-". /// public virtual BatchUpdateStatesRequest BatchUpdateStates(Google.Apis.AndroidPublisher.v3.Data.BatchUpdatePurchaseOptionStatesRequest body, string packageName, string productId) { return new BatchUpdateStatesRequest(this.service, body, packageName, productId); } /// /// Activates or deactivates purchase options across one or multiple one-time products. /// public class BatchUpdateStatesRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new BatchUpdateStates request. public BatchUpdateStatesRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.BatchUpdatePurchaseOptionStatesRequest body, string packageName, string productId) : base(service) { PackageName = packageName; ProductId = productId; Body = body; InitParameters(); } /// Required. The parent app (package name) of the updated purchase options. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// /// Required. The product ID of the parent one-time product, if all updated purchase options belong /// to the same one-time product. If this batch update spans multiple one-time products, set this /// field to "-". /// [Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)] public virtual string ProductId { get; private set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.BatchUpdatePurchaseOptionStatesRequest Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "batchUpdateStates"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions:batchUpdateStates"; /// Initializes BatchUpdateStates parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter { Name = "productId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } } /// Deletes one or more one-time products. /// The body of the request. /// /// Required. The parent app (package name) for which the one-time products should be deleted. Must be equal /// to the package_name field on all the OneTimeProduct resources. /// public virtual BatchDeleteRequest BatchDelete(Google.Apis.AndroidPublisher.v3.Data.BatchDeleteOneTimeProductsRequest body, string packageName) { return new BatchDeleteRequest(this.service, body, packageName); } /// Deletes one or more one-time products. public class BatchDeleteRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new BatchDelete request. public BatchDeleteRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.BatchDeleteOneTimeProductsRequest body, string packageName) : base(service) { PackageName = packageName; Body = body; InitParameters(); } /// /// Required. The parent app (package name) for which the one-time products should be deleted. Must be /// equal to the package_name field on all the OneTimeProduct resources. /// [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.BatchDeleteOneTimeProductsRequest Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "batchDelete"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/oneTimeProducts:batchDelete"; /// Initializes BatchDelete parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// Reads one or more one-time products. /// /// Required. The parent app (package name) for which the products should be retrieved. Must be equal to the /// package_name field on all requests. /// public virtual BatchGetRequest BatchGet(string packageName) { return new BatchGetRequest(this.service, packageName); } /// Reads one or more one-time products. public class BatchGetRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new BatchGet request. public BatchGetRequest(Google.Apis.Services.IClientService service, string packageName) : base(service) { PackageName = packageName; InitParameters(); } /// /// Required. The parent app (package name) for which the products should be retrieved. Must be equal to /// the package_name field on all requests. /// [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Required. A list of up to 100 product IDs to retrieve. All IDs must be different. [Google.Apis.Util.RequestParameterAttribute("productIds", Google.Apis.Util.RequestParameterType.Query)] public virtual Google.Apis.Util.Repeatable ProductIds { get; set; } /// Gets the method name. public override string MethodName => "batchGet"; /// Gets the HTTP method. public override string HttpMethod => "GET"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/oneTimeProducts:batchGet"; /// Initializes BatchGet parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("productIds", new Google.Apis.Discovery.Parameter { Name = "productIds", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// Creates or updates one or more one-time products. /// The body of the request. /// /// Required. The parent app (package name) for which the one-time products should be updated. Must be equal /// to the package_name field on all the OneTimeProduct resources. /// public virtual BatchUpdateRequest BatchUpdate(Google.Apis.AndroidPublisher.v3.Data.BatchUpdateOneTimeProductsRequest body, string packageName) { return new BatchUpdateRequest(this.service, body, packageName); } /// Creates or updates one or more one-time products. public class BatchUpdateRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new BatchUpdate request. public BatchUpdateRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.BatchUpdateOneTimeProductsRequest body, string packageName) : base(service) { PackageName = packageName; Body = body; InitParameters(); } /// /// Required. The parent app (package name) for which the one-time products should be updated. Must be /// equal to the package_name field on all the OneTimeProduct resources. /// [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.BatchUpdateOneTimeProductsRequest Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "batchUpdate"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/oneTimeProducts:batchUpdate"; /// Initializes BatchUpdate parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// Deletes a one-time product. /// /// Required. The parent app (package name) of the one-time product to delete. /// /// Required. The one-time product ID of the one-time product to delete. public virtual DeleteRequest Delete(string packageName, string productId) { return new DeleteRequest(this.service, packageName, productId); } /// Deletes a one-time product. public class DeleteRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Delete request. public DeleteRequest(Google.Apis.Services.IClientService service, string packageName, string productId) : base(service) { PackageName = packageName; ProductId = productId; InitParameters(); } /// Required. The parent app (package name) of the one-time product to delete. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Required. The one-time product ID of the one-time product to delete. [Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)] public virtual string ProductId { get; private set; } /// /// Optional. The latency tolerance for the propagation of this product update. Defaults to /// latency-sensitive. /// [Google.Apis.Util.RequestParameterAttribute("latencyTolerance", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable LatencyTolerance { get; set; } /// /// Optional. The latency tolerance for the propagation of this product update. Defaults to /// latency-sensitive. /// public enum LatencyToleranceEnum { /// Defaults to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE. [Google.Apis.Util.StringValueAttribute("PRODUCT_UPDATE_LATENCY_TOLERANCE_UNSPECIFIED")] PRODUCTUPDATELATENCYTOLERANCEUNSPECIFIED = 0, /// /// The update will propagate to clients within several minutes on average and up to a few hours in /// rare cases. Throughput is limited to 7,200 updates per app per hour. /// [Google.Apis.Util.StringValueAttribute("PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE")] PRODUCTUPDATELATENCYTOLERANCELATENCYSENSITIVE = 1, /// /// The update will propagate to clients within 24 hours. Supports high throughput of up to 720,000 /// updates per app per hour using batch modification methods. /// [Google.Apis.Util.StringValueAttribute("PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT")] PRODUCTUPDATELATENCYTOLERANCELATENCYTOLERANT = 2, } /// Gets the method name. public override string MethodName => "delete"; /// Gets the HTTP method. public override string HttpMethod => "DELETE"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}"; /// Initializes Delete parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter { Name = "productId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("latencyTolerance", new Google.Apis.Discovery.Parameter { Name = "latencyTolerance", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// Reads a single one-time product. /// Required. The parent app (package name) of the product to retrieve. /// Required. The product ID of the product to retrieve. public virtual GetRequest Get(string packageName, string productId) { return new GetRequest(this.service, packageName, productId); } /// Reads a single one-time product. public class GetRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Get request. public GetRequest(Google.Apis.Services.IClientService service, string packageName, string productId) : base(service) { PackageName = packageName; ProductId = productId; InitParameters(); } /// Required. The parent app (package name) of the product to retrieve. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Required. The product ID of the product to retrieve. [Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)] public virtual string ProductId { get; private set; } /// Gets the method name. public override string MethodName => "get"; /// Gets the HTTP method. public override string HttpMethod => "GET"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}"; /// Initializes Get parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter { Name = "productId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// Lists all one-time products under a given app. /// /// Required. The parent app (package name) for which the one-time product should be read. /// public virtual ListRequest List(string packageName) { return new ListRequest(this.service, packageName); } /// Lists all one-time products under a given app. public class ListRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new List request. public ListRequest(Google.Apis.Services.IClientService service, string packageName) : base(service) { PackageName = packageName; InitParameters(); } /// /// Required. The parent app (package name) for which the one-time product should be read. /// [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// /// Optional. The maximum number of one-time product to return. The service may return fewer than this /// value. If unspecified, at most 50 one-time products will be returned. The maximum value is 1000; /// values above 1000 will be coerced to 1000. /// [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable PageSize { get; set; } /// /// Optional. A page token, received from a previous `ListOneTimeProducts` call. Provide this to /// retrieve the subsequent page. When paginating, all other parameters provided to /// `ListOneTimeProducts` must match the call that provided the page token. /// [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } /// Gets the method name. public override string MethodName => "list"; /// Gets the HTTP method. public override string HttpMethod => "GET"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/oneTimeProducts"; /// Initializes List parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter { Name = "pageSize", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter { Name = "pageToken", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// Creates or updates a one-time product. /// The body of the request. /// Required. Immutable. Package name of the parent app. /// /// Required. Immutable. Unique product ID of the product. Unique within the parent app. Product IDs must /// start with a number or lowercase letter, and can contain numbers (0-9), lowercase letters (a-z), /// underscores (_), and periods (.). /// public virtual PatchRequest Patch(Google.Apis.AndroidPublisher.v3.Data.OneTimeProduct body, string packageName, string productId) { return new PatchRequest(this.service, body, packageName, productId); } /// Creates or updates a one-time product. public class PatchRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Patch request. public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.OneTimeProduct body, string packageName, string productId) : base(service) { PackageName = packageName; ProductId = productId; Body = body; InitParameters(); } /// Required. Immutable. Package name of the parent app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// /// Required. Immutable. Unique product ID of the product. Unique within the parent app. Product IDs /// must start with a number or lowercase letter, and can contain numbers (0-9), lowercase letters /// (a-z), underscores (_), and periods (.). /// [Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)] public virtual string ProductId { get; private set; } /// /// Optional. If set to true, and the one-time product with the given package_name and product_id /// doesn't exist, the one-time product will be created. If a new one-time product is created, /// update_mask is ignored. /// [Google.Apis.Util.RequestParameterAttribute("allowMissing", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable AllowMissing { get; set; } /// /// Optional. The latency tolerance for the propagation of this product upsert. Defaults to /// latency-sensitive. /// [Google.Apis.Util.RequestParameterAttribute("latencyTolerance", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable LatencyTolerance { get; set; } /// /// Optional. The latency tolerance for the propagation of this product upsert. Defaults to /// latency-sensitive. /// public enum LatencyToleranceEnum { /// Defaults to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE. [Google.Apis.Util.StringValueAttribute("PRODUCT_UPDATE_LATENCY_TOLERANCE_UNSPECIFIED")] PRODUCTUPDATELATENCYTOLERANCEUNSPECIFIED = 0, /// /// The update will propagate to clients within several minutes on average and up to a few hours in /// rare cases. Throughput is limited to 7,200 updates per app per hour. /// [Google.Apis.Util.StringValueAttribute("PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE")] PRODUCTUPDATELATENCYTOLERANCELATENCYSENSITIVE = 1, /// /// The update will propagate to clients within 24 hours. Supports high throughput of up to 720,000 /// updates per app per hour using batch modification methods. /// [Google.Apis.Util.StringValueAttribute("PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT")] PRODUCTUPDATELATENCYTOLERANCELATENCYTOLERANT = 2, } /// /// Required. A string representing the version of available regions being used for the specified /// resource. Regional prices and latest supported version for the resource have to be specified /// according to the information published in [this /// article](https://support.google.com/googleplay/android-developer/answer/10532353). Each time the /// supported locations substantially change, the version will be incremented. Using this field will /// ensure that creating and updating the resource with an older region's version and set of regional /// prices and currencies will succeed even though a new version is available. /// [Google.Apis.Util.RequestParameterAttribute("regionsVersion.version", Google.Apis.Util.RequestParameterType.Query)] public virtual string RegionsVersionVersion { get; set; } /// Required. The list of fields to be updated. [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] public virtual object UpdateMask { get; set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.OneTimeProduct Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "patch"; /// Gets the HTTP method. public override string HttpMethod => "PATCH"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/onetimeproducts/{productId}"; /// Initializes Patch parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter { Name = "productId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("allowMissing", new Google.Apis.Discovery.Parameter { Name = "allowMissing", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("latencyTolerance", new Google.Apis.Discovery.Parameter { Name = "latencyTolerance", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("regionsVersion.version", new Google.Apis.Discovery.Parameter { Name = "regionsVersion.version", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter { Name = "updateMask", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } } /// Gets the Subscriptions resource. public virtual SubscriptionsResource Subscriptions { get; } /// The "subscriptions" collection of methods. public class SubscriptionsResource { private const string Resource = "subscriptions"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. public SubscriptionsResource(Google.Apis.Services.IClientService service) { this.service = service; BasePlans = new BasePlansResource(service); } /// Gets the BasePlans resource. public virtual BasePlansResource BasePlans { get; } /// The "basePlans" collection of methods. public class BasePlansResource { private const string Resource = "basePlans"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. public BasePlansResource(Google.Apis.Services.IClientService service) { this.service = service; Offers = new OffersResource(service); } /// Gets the Offers resource. public virtual OffersResource Offers { get; } /// The "offers" collection of methods. public class OffersResource { private const string Resource = "offers"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. public OffersResource(Google.Apis.Services.IClientService service) { this.service = service; } /// /// Activates a subscription offer. Once activated, subscription offers will be available to new /// subscribers. /// /// The body of the request. /// /// Required. The parent app (package name) of the offer to activate. /// /// Required. The parent subscription (ID) of the offer to activate. /// Required. The parent base plan (ID) of the offer to activate. /// Required. The unique offer ID of the offer to activate. public virtual ActivateRequest Activate(Google.Apis.AndroidPublisher.v3.Data.ActivateSubscriptionOfferRequest body, string packageName, string productId, string basePlanId, string offerId) { return new ActivateRequest(this.service, body, packageName, productId, basePlanId, offerId); } /// /// Activates a subscription offer. Once activated, subscription offers will be available to new /// subscribers. /// public class ActivateRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Activate request. public ActivateRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.ActivateSubscriptionOfferRequest body, string packageName, string productId, string basePlanId, string offerId) : base(service) { PackageName = packageName; ProductId = productId; BasePlanId = basePlanId; OfferId = offerId; Body = body; InitParameters(); } /// Required. The parent app (package name) of the offer to activate. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Required. The parent subscription (ID) of the offer to activate. [Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)] public virtual string ProductId { get; private set; } /// Required. The parent base plan (ID) of the offer to activate. [Google.Apis.Util.RequestParameterAttribute("basePlanId", Google.Apis.Util.RequestParameterType.Path)] public virtual string BasePlanId { get; private set; } /// Required. The unique offer ID of the offer to activate. [Google.Apis.Util.RequestParameterAttribute("offerId", Google.Apis.Util.RequestParameterType.Path)] public virtual string OfferId { get; private set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.ActivateSubscriptionOfferRequest Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "activate"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}:activate"; /// Initializes Activate parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter { Name = "productId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("basePlanId", new Google.Apis.Discovery.Parameter { Name = "basePlanId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("offerId", new Google.Apis.Discovery.Parameter { Name = "offerId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// Reads one or more subscription offers. /// The body of the request. /// /// Required. The parent app (package name) for which the subscriptions should be created or /// updated. Must be equal to the package_name field on all the requests. /// /// /// Required. The product ID of the parent subscription, if all updated offers belong to the same /// subscription. If this request spans multiple subscriptions, set this field to "-". Must be set. /// /// /// Required. The parent base plan (ID) for which the offers should be read. May be specified as '-' /// to read offers from multiple base plans. /// public virtual BatchGetRequest BatchGet(Google.Apis.AndroidPublisher.v3.Data.BatchGetSubscriptionOffersRequest body, string packageName, string productId, string basePlanId) { return new BatchGetRequest(this.service, body, packageName, productId, basePlanId); } /// Reads one or more subscription offers. public class BatchGetRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new BatchGet request. public BatchGetRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.BatchGetSubscriptionOffersRequest body, string packageName, string productId, string basePlanId) : base(service) { PackageName = packageName; ProductId = productId; BasePlanId = basePlanId; Body = body; InitParameters(); } /// /// Required. The parent app (package name) for which the subscriptions should be created or /// updated. Must be equal to the package_name field on all the requests. /// [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// /// Required. The product ID of the parent subscription, if all updated offers belong to the /// same subscription. If this request spans multiple subscriptions, set this field to "-". Must /// be set. /// [Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)] public virtual string ProductId { get; private set; } /// /// Required. The parent base plan (ID) for which the offers should be read. May be specified as /// '-' to read offers from multiple base plans. /// [Google.Apis.Util.RequestParameterAttribute("basePlanId", Google.Apis.Util.RequestParameterType.Path)] public virtual string BasePlanId { get; private set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.BatchGetSubscriptionOffersRequest Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "batchGet"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers:batchGet"; /// Initializes BatchGet parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter { Name = "productId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("basePlanId", new Google.Apis.Discovery.Parameter { Name = "basePlanId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// /// Updates a batch of subscription offers. Set the latencyTolerance field on nested requests to /// PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update throughput. /// /// The body of the request. /// /// Required. The parent app (package name) of the updated subscription offers. Must be equal to the /// package_name field on all the updated SubscriptionOffer resources. /// /// /// Required. The product ID of the parent subscription, if all updated offers belong to the same /// subscription. If this request spans multiple subscriptions, set this field to "-". Must be set. /// /// /// Required. The parent base plan (ID) for which the offers should be updated. May be specified as /// '-' to update offers from multiple base plans. /// public virtual BatchUpdateRequest BatchUpdate(Google.Apis.AndroidPublisher.v3.Data.BatchUpdateSubscriptionOffersRequest body, string packageName, string productId, string basePlanId) { return new BatchUpdateRequest(this.service, body, packageName, productId, basePlanId); } /// /// Updates a batch of subscription offers. Set the latencyTolerance field on nested requests to /// PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update throughput. /// public class BatchUpdateRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new BatchUpdate request. public BatchUpdateRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.BatchUpdateSubscriptionOffersRequest body, string packageName, string productId, string basePlanId) : base(service) { PackageName = packageName; ProductId = productId; BasePlanId = basePlanId; Body = body; InitParameters(); } /// /// Required. The parent app (package name) of the updated subscription offers. Must be equal to /// the package_name field on all the updated SubscriptionOffer resources. /// [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// /// Required. The product ID of the parent subscription, if all updated offers belong to the /// same subscription. If this request spans multiple subscriptions, set this field to "-". Must /// be set. /// [Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)] public virtual string ProductId { get; private set; } /// /// Required. The parent base plan (ID) for which the offers should be updated. May be specified /// as '-' to update offers from multiple base plans. /// [Google.Apis.Util.RequestParameterAttribute("basePlanId", Google.Apis.Util.RequestParameterType.Path)] public virtual string BasePlanId { get; private set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.BatchUpdateSubscriptionOffersRequest Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "batchUpdate"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers:batchUpdate"; /// Initializes BatchUpdate parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter { Name = "productId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("basePlanId", new Google.Apis.Discovery.Parameter { Name = "basePlanId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// /// Updates a batch of subscription offer states. Set the latencyTolerance field on nested requests /// to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update throughput. /// /// The body of the request. /// /// Required. The parent app (package name) of the updated subscription offers. Must be equal to the /// package_name field on all the updated SubscriptionOffer resources. /// /// /// Required. The product ID of the parent subscription, if all updated offers belong to the same /// subscription. If this request spans multiple subscriptions, set this field to "-". Must be set. /// /// /// Required. The parent base plan (ID) for which the offers should be updated. May be specified as /// '-' to update offers from multiple base plans. /// public virtual BatchUpdateStatesRequest BatchUpdateStates(Google.Apis.AndroidPublisher.v3.Data.BatchUpdateSubscriptionOfferStatesRequest body, string packageName, string productId, string basePlanId) { return new BatchUpdateStatesRequest(this.service, body, packageName, productId, basePlanId); } /// /// Updates a batch of subscription offer states. Set the latencyTolerance field on nested requests /// to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update throughput. /// public class BatchUpdateStatesRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new BatchUpdateStates request. public BatchUpdateStatesRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.BatchUpdateSubscriptionOfferStatesRequest body, string packageName, string productId, string basePlanId) : base(service) { PackageName = packageName; ProductId = productId; BasePlanId = basePlanId; Body = body; InitParameters(); } /// /// Required. The parent app (package name) of the updated subscription offers. Must be equal to /// the package_name field on all the updated SubscriptionOffer resources. /// [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// /// Required. The product ID of the parent subscription, if all updated offers belong to the /// same subscription. If this request spans multiple subscriptions, set this field to "-". Must /// be set. /// [Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)] public virtual string ProductId { get; private set; } /// /// Required. The parent base plan (ID) for which the offers should be updated. May be specified /// as '-' to update offers from multiple base plans. /// [Google.Apis.Util.RequestParameterAttribute("basePlanId", Google.Apis.Util.RequestParameterType.Path)] public virtual string BasePlanId { get; private set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.BatchUpdateSubscriptionOfferStatesRequest Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "batchUpdateStates"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers:batchUpdateStates"; /// Initializes BatchUpdateStates parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter { Name = "productId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("basePlanId", new Google.Apis.Discovery.Parameter { Name = "basePlanId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// /// Creates a new subscription offer. Only auto-renewing base plans can have subscription offers. /// The offer state will be DRAFT until it is activated. /// /// The body of the request. /// /// Required. The parent app (package name) for which the offer should be created. Must be equal to /// the package_name field on the Subscription resource. /// /// /// Required. The parent subscription (ID) for which the offer should be created. Must be equal to /// the product_id field on the SubscriptionOffer resource. /// /// /// Required. The parent base plan (ID) for which the offer should be created. Must be equal to the /// base_plan_id field on the SubscriptionOffer resource. /// public virtual CreateRequest Create(Google.Apis.AndroidPublisher.v3.Data.SubscriptionOffer body, string packageName, string productId, string basePlanId) { return new CreateRequest(this.service, body, packageName, productId, basePlanId); } /// /// Creates a new subscription offer. Only auto-renewing base plans can have subscription offers. /// The offer state will be DRAFT until it is activated. /// public class CreateRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Create request. public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.SubscriptionOffer body, string packageName, string productId, string basePlanId) : base(service) { PackageName = packageName; ProductId = productId; BasePlanId = basePlanId; Body = body; InitParameters(); } /// /// Required. The parent app (package name) for which the offer should be created. Must be equal /// to the package_name field on the Subscription resource. /// [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// /// Required. The parent subscription (ID) for which the offer should be created. Must be equal /// to the product_id field on the SubscriptionOffer resource. /// [Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)] public virtual string ProductId { get; private set; } /// /// Required. The parent base plan (ID) for which the offer should be created. Must be equal to /// the base_plan_id field on the SubscriptionOffer resource. /// [Google.Apis.Util.RequestParameterAttribute("basePlanId", Google.Apis.Util.RequestParameterType.Path)] public virtual string BasePlanId { get; private set; } /// /// Required. The ID to use for the offer. For the requirements on this format, see the /// documentation of the offer_id field on the SubscriptionOffer resource. /// [Google.Apis.Util.RequestParameterAttribute("offerId", Google.Apis.Util.RequestParameterType.Query)] public virtual string OfferId { get; set; } /// /// Required. A string representing the version of available regions being used for the /// specified resource. Regional prices and latest supported version for the resource have to be /// specified according to the information published in [this /// article](https://support.google.com/googleplay/android-developer/answer/10532353). Each time /// the supported locations substantially change, the version will be incremented. Using this /// field will ensure that creating and updating the resource with an older region's version and /// set of regional prices and currencies will succeed even though a new version is available. /// [Google.Apis.Util.RequestParameterAttribute("regionsVersion.version", Google.Apis.Util.RequestParameterType.Query)] public virtual string RegionsVersionVersion { get; set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.SubscriptionOffer Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "create"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers"; /// Initializes Create parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter { Name = "productId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("basePlanId", new Google.Apis.Discovery.Parameter { Name = "basePlanId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("offerId", new Google.Apis.Discovery.Parameter { Name = "offerId", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("regionsVersion.version", new Google.Apis.Discovery.Parameter { Name = "regionsVersion.version", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// /// Deactivates a subscription offer. Once deactivated, existing subscribers will maintain their /// subscription, but the offer will become unavailable to new subscribers. /// /// The body of the request. /// /// Required. The parent app (package name) of the offer to deactivate. /// /// /// Required. The parent subscription (ID) of the offer to deactivate. /// /// Required. The parent base plan (ID) of the offer to deactivate. /// Required. The unique offer ID of the offer to deactivate. public virtual DeactivateRequest Deactivate(Google.Apis.AndroidPublisher.v3.Data.DeactivateSubscriptionOfferRequest body, string packageName, string productId, string basePlanId, string offerId) { return new DeactivateRequest(this.service, body, packageName, productId, basePlanId, offerId); } /// /// Deactivates a subscription offer. Once deactivated, existing subscribers will maintain their /// subscription, but the offer will become unavailable to new subscribers. /// public class DeactivateRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Deactivate request. public DeactivateRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.DeactivateSubscriptionOfferRequest body, string packageName, string productId, string basePlanId, string offerId) : base(service) { PackageName = packageName; ProductId = productId; BasePlanId = basePlanId; OfferId = offerId; Body = body; InitParameters(); } /// Required. The parent app (package name) of the offer to deactivate. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Required. The parent subscription (ID) of the offer to deactivate. [Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)] public virtual string ProductId { get; private set; } /// Required. The parent base plan (ID) of the offer to deactivate. [Google.Apis.Util.RequestParameterAttribute("basePlanId", Google.Apis.Util.RequestParameterType.Path)] public virtual string BasePlanId { get; private set; } /// Required. The unique offer ID of the offer to deactivate. [Google.Apis.Util.RequestParameterAttribute("offerId", Google.Apis.Util.RequestParameterType.Path)] public virtual string OfferId { get; private set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.DeactivateSubscriptionOfferRequest Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "deactivate"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}:deactivate"; /// Initializes Deactivate parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter { Name = "productId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("basePlanId", new Google.Apis.Discovery.Parameter { Name = "basePlanId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("offerId", new Google.Apis.Discovery.Parameter { Name = "offerId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// /// Deletes a subscription offer. Can only be done for draft offers. This action is irreversible. /// /// /// Required. The parent app (package name) of the offer to delete. /// /// Required. The parent subscription (ID) of the offer to delete. /// Required. The parent base plan (ID) of the offer to delete. /// Required. The unique offer ID of the offer to delete. public virtual DeleteRequest Delete(string packageName, string productId, string basePlanId, string offerId) { return new DeleteRequest(this.service, packageName, productId, basePlanId, offerId); } /// /// Deletes a subscription offer. Can only be done for draft offers. This action is irreversible. /// public class DeleteRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Delete request. public DeleteRequest(Google.Apis.Services.IClientService service, string packageName, string productId, string basePlanId, string offerId) : base(service) { PackageName = packageName; ProductId = productId; BasePlanId = basePlanId; OfferId = offerId; InitParameters(); } /// Required. The parent app (package name) of the offer to delete. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Required. The parent subscription (ID) of the offer to delete. [Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)] public virtual string ProductId { get; private set; } /// Required. The parent base plan (ID) of the offer to delete. [Google.Apis.Util.RequestParameterAttribute("basePlanId", Google.Apis.Util.RequestParameterType.Path)] public virtual string BasePlanId { get; private set; } /// Required. The unique offer ID of the offer to delete. [Google.Apis.Util.RequestParameterAttribute("offerId", Google.Apis.Util.RequestParameterType.Path)] public virtual string OfferId { get; private set; } /// Gets the method name. public override string MethodName => "delete"; /// Gets the HTTP method. public override string HttpMethod => "DELETE"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}"; /// Initializes Delete parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter { Name = "productId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("basePlanId", new Google.Apis.Discovery.Parameter { Name = "basePlanId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("offerId", new Google.Apis.Discovery.Parameter { Name = "offerId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// Reads a single offer /// Required. The parent app (package name) of the offer to get. /// Required. The parent subscription (ID) of the offer to get. /// Required. The parent base plan (ID) of the offer to get. /// Required. The unique offer ID of the offer to get. public virtual GetRequest Get(string packageName, string productId, string basePlanId, string offerId) { return new GetRequest(this.service, packageName, productId, basePlanId, offerId); } /// Reads a single offer public class GetRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Get request. public GetRequest(Google.Apis.Services.IClientService service, string packageName, string productId, string basePlanId, string offerId) : base(service) { PackageName = packageName; ProductId = productId; BasePlanId = basePlanId; OfferId = offerId; InitParameters(); } /// Required. The parent app (package name) of the offer to get. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Required. The parent subscription (ID) of the offer to get. [Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)] public virtual string ProductId { get; private set; } /// Required. The parent base plan (ID) of the offer to get. [Google.Apis.Util.RequestParameterAttribute("basePlanId", Google.Apis.Util.RequestParameterType.Path)] public virtual string BasePlanId { get; private set; } /// Required. The unique offer ID of the offer to get. [Google.Apis.Util.RequestParameterAttribute("offerId", Google.Apis.Util.RequestParameterType.Path)] public virtual string OfferId { get; private set; } /// Gets the method name. public override string MethodName => "get"; /// Gets the HTTP method. public override string HttpMethod => "GET"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}"; /// Initializes Get parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter { Name = "productId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("basePlanId", new Google.Apis.Discovery.Parameter { Name = "basePlanId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("offerId", new Google.Apis.Discovery.Parameter { Name = "offerId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// Lists all offers under a given subscription. /// /// Required. The parent app (package name) for which the subscriptions should be read. /// /// /// Required. The parent subscription (ID) for which the offers should be read. May be specified as /// '-' to read all offers under an app. /// /// /// Required. The parent base plan (ID) for which the offers should be read. May be specified as '-' /// to read all offers under a subscription or an app. Must be specified as '-' if product_id is /// specified as '-'. /// public virtual ListRequest List(string packageName, string productId, string basePlanId) { return new ListRequest(this.service, packageName, productId, basePlanId); } /// Lists all offers under a given subscription. public class ListRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new List request. public ListRequest(Google.Apis.Services.IClientService service, string packageName, string productId, string basePlanId) : base(service) { PackageName = packageName; ProductId = productId; BasePlanId = basePlanId; InitParameters(); } /// /// Required. The parent app (package name) for which the subscriptions should be read. /// [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// /// Required. The parent subscription (ID) for which the offers should be read. May be specified /// as '-' to read all offers under an app. /// [Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)] public virtual string ProductId { get; private set; } /// /// Required. The parent base plan (ID) for which the offers should be read. May be specified as /// '-' to read all offers under a subscription or an app. Must be specified as '-' if /// product_id is specified as '-'. /// [Google.Apis.Util.RequestParameterAttribute("basePlanId", Google.Apis.Util.RequestParameterType.Path)] public virtual string BasePlanId { get; private set; } /// /// The maximum number of subscriptions to return. The service may return fewer than this value. /// If unspecified, at most 50 subscriptions will be returned. The maximum value is 1000; values /// above 1000 will be coerced to 1000. /// [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable PageSize { get; set; } /// /// A page token, received from a previous `ListSubscriptionsOffers` call. Provide this to /// retrieve the subsequent page. When paginating, all other parameters provided to /// `ListSubscriptionOffers` must match the call that provided the page token. /// [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } /// Gets the method name. public override string MethodName => "list"; /// Gets the HTTP method. public override string HttpMethod => "GET"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers"; /// Initializes List parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter { Name = "productId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("basePlanId", new Google.Apis.Discovery.Parameter { Name = "basePlanId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter { Name = "pageSize", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter { Name = "pageToken", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// Updates an existing subscription offer. /// The body of the request. /// /// Required. Immutable. The package name of the app the parent subscription belongs to. /// /// /// Required. Immutable. The ID of the parent subscription this offer belongs to. /// /// /// Required. Immutable. The ID of the base plan to which this offer is an extension. /// /// /// Required. Immutable. Unique ID of this subscription offer. Must be unique within the base plan. /// public virtual PatchRequest Patch(Google.Apis.AndroidPublisher.v3.Data.SubscriptionOffer body, string packageName, string productId, string basePlanId, string offerId) { return new PatchRequest(this.service, body, packageName, productId, basePlanId, offerId); } /// Updates an existing subscription offer. public class PatchRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Patch request. public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.SubscriptionOffer body, string packageName, string productId, string basePlanId, string offerId) : base(service) { PackageName = packageName; ProductId = productId; BasePlanId = basePlanId; OfferId = offerId; Body = body; InitParameters(); } /// /// Required. Immutable. The package name of the app the parent subscription belongs to. /// [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// /// Required. Immutable. The ID of the parent subscription this offer belongs to. /// [Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)] public virtual string ProductId { get; private set; } /// /// Required. Immutable. The ID of the base plan to which this offer is an extension. /// [Google.Apis.Util.RequestParameterAttribute("basePlanId", Google.Apis.Util.RequestParameterType.Path)] public virtual string BasePlanId { get; private set; } /// /// Required. Immutable. Unique ID of this subscription offer. Must be unique within the base /// plan. /// [Google.Apis.Util.RequestParameterAttribute("offerId", Google.Apis.Util.RequestParameterType.Path)] public virtual string OfferId { get; private set; } /// /// Optional. If set to true, and the subscription offer with the given package_name, /// product_id, base_plan_id and offer_id doesn't exist, an offer will be created. If a new /// offer is created, update_mask is ignored. /// [Google.Apis.Util.RequestParameterAttribute("allowMissing", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable AllowMissing { get; set; } /// /// Optional. The latency tolerance for the propagation of this product update. Defaults to /// latency-sensitive. /// [Google.Apis.Util.RequestParameterAttribute("latencyTolerance", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable LatencyTolerance { get; set; } /// /// Optional. The latency tolerance for the propagation of this product update. Defaults to /// latency-sensitive. /// public enum LatencyToleranceEnum { /// Defaults to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE. [Google.Apis.Util.StringValueAttribute("PRODUCT_UPDATE_LATENCY_TOLERANCE_UNSPECIFIED")] PRODUCTUPDATELATENCYTOLERANCEUNSPECIFIED = 0, /// /// The update will propagate to clients within several minutes on average and up to a few /// hours in rare cases. Throughput is limited to 7,200 updates per app per hour. /// [Google.Apis.Util.StringValueAttribute("PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE")] PRODUCTUPDATELATENCYTOLERANCELATENCYSENSITIVE = 1, /// /// The update will propagate to clients within 24 hours. Supports high throughput of up to /// 720,000 updates per app per hour using batch modification methods. /// [Google.Apis.Util.StringValueAttribute("PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT")] PRODUCTUPDATELATENCYTOLERANCELATENCYTOLERANT = 2, } /// /// Required. A string representing the version of available regions being used for the /// specified resource. Regional prices and latest supported version for the resource have to be /// specified according to the information published in [this /// article](https://support.google.com/googleplay/android-developer/answer/10532353). Each time /// the supported locations substantially change, the version will be incremented. Using this /// field will ensure that creating and updating the resource with an older region's version and /// set of regional prices and currencies will succeed even though a new version is available. /// [Google.Apis.Util.RequestParameterAttribute("regionsVersion.version", Google.Apis.Util.RequestParameterType.Query)] public virtual string RegionsVersionVersion { get; set; } /// Required. The list of fields to be updated. [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] public virtual object UpdateMask { get; set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.SubscriptionOffer Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "patch"; /// Gets the HTTP method. public override string HttpMethod => "PATCH"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}"; /// Initializes Patch parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter { Name = "productId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("basePlanId", new Google.Apis.Discovery.Parameter { Name = "basePlanId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("offerId", new Google.Apis.Discovery.Parameter { Name = "offerId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("allowMissing", new Google.Apis.Discovery.Parameter { Name = "allowMissing", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("latencyTolerance", new Google.Apis.Discovery.Parameter { Name = "latencyTolerance", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("regionsVersion.version", new Google.Apis.Discovery.Parameter { Name = "regionsVersion.version", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter { Name = "updateMask", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } } /// /// Activates a base plan. Once activated, base plans will be available to new subscribers. /// /// The body of the request. /// /// Required. The parent app (package name) of the base plan to activate. /// /// Required. The parent subscription (ID) of the base plan to activate. /// Required. The unique base plan ID of the base plan to activate. public virtual ActivateRequest Activate(Google.Apis.AndroidPublisher.v3.Data.ActivateBasePlanRequest body, string packageName, string productId, string basePlanId) { return new ActivateRequest(this.service, body, packageName, productId, basePlanId); } /// /// Activates a base plan. Once activated, base plans will be available to new subscribers. /// public class ActivateRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Activate request. public ActivateRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.ActivateBasePlanRequest body, string packageName, string productId, string basePlanId) : base(service) { PackageName = packageName; ProductId = productId; BasePlanId = basePlanId; Body = body; InitParameters(); } /// Required. The parent app (package name) of the base plan to activate. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Required. The parent subscription (ID) of the base plan to activate. [Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)] public virtual string ProductId { get; private set; } /// Required. The unique base plan ID of the base plan to activate. [Google.Apis.Util.RequestParameterAttribute("basePlanId", Google.Apis.Util.RequestParameterType.Path)] public virtual string BasePlanId { get; private set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.ActivateBasePlanRequest Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "activate"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}:activate"; /// Initializes Activate parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter { Name = "productId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("basePlanId", new Google.Apis.Discovery.Parameter { Name = "basePlanId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// /// Batch variant of the MigrateBasePlanPrices endpoint. Set the latencyTolerance field on nested /// requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update throughput. /// /// The body of the request. /// /// Required. The parent app (package name) for which the subscriptions should be created or updated. /// Must be equal to the package_name field on all the Subscription resources. /// /// /// Required. The product ID of the parent subscription, if all updated offers belong to the same /// subscription. If this batch update spans multiple subscriptions, set this field to "-". Must be set. /// public virtual BatchMigratePricesRequest BatchMigratePrices(Google.Apis.AndroidPublisher.v3.Data.BatchMigrateBasePlanPricesRequest body, string packageName, string productId) { return new BatchMigratePricesRequest(this.service, body, packageName, productId); } /// /// Batch variant of the MigrateBasePlanPrices endpoint. Set the latencyTolerance field on nested /// requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update throughput. /// public class BatchMigratePricesRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new BatchMigratePrices request. public BatchMigratePricesRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.BatchMigrateBasePlanPricesRequest body, string packageName, string productId) : base(service) { PackageName = packageName; ProductId = productId; Body = body; InitParameters(); } /// /// Required. The parent app (package name) for which the subscriptions should be created or /// updated. Must be equal to the package_name field on all the Subscription resources. /// [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// /// Required. The product ID of the parent subscription, if all updated offers belong to the same /// subscription. If this batch update spans multiple subscriptions, set this field to "-". Must be /// set. /// [Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)] public virtual string ProductId { get; private set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.BatchMigrateBasePlanPricesRequest Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "batchMigratePrices"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans:batchMigratePrices"; /// Initializes BatchMigratePrices parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter { Name = "productId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// /// Activates or deactivates base plans across one or multiple subscriptions. Set the latencyTolerance /// field on nested requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum /// update throughput. /// /// The body of the request. /// Required. The parent app (package name) of the updated base plans. /// /// Required. The product ID of the parent subscription, if all updated base plans belong to the same /// subscription. If this batch update spans multiple subscriptions, set this field to "-". Must be set. /// public virtual BatchUpdateStatesRequest BatchUpdateStates(Google.Apis.AndroidPublisher.v3.Data.BatchUpdateBasePlanStatesRequest body, string packageName, string productId) { return new BatchUpdateStatesRequest(this.service, body, packageName, productId); } /// /// Activates or deactivates base plans across one or multiple subscriptions. Set the latencyTolerance /// field on nested requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum /// update throughput. /// public class BatchUpdateStatesRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new BatchUpdateStates request. public BatchUpdateStatesRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.BatchUpdateBasePlanStatesRequest body, string packageName, string productId) : base(service) { PackageName = packageName; ProductId = productId; Body = body; InitParameters(); } /// Required. The parent app (package name) of the updated base plans. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// /// Required. The product ID of the parent subscription, if all updated base plans belong to the /// same subscription. If this batch update spans multiple subscriptions, set this field to "-". /// Must be set. /// [Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)] public virtual string ProductId { get; private set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.BatchUpdateBasePlanStatesRequest Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "batchUpdateStates"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans:batchUpdateStates"; /// Initializes BatchUpdateStates parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter { Name = "productId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// /// Deactivates a base plan. Once deactivated, the base plan will become unavailable to new subscribers, /// but existing subscribers will maintain their subscription /// /// The body of the request. /// /// Required. The parent app (package name) of the base plan to deactivate. /// /// /// Required. The parent subscription (ID) of the base plan to deactivate. /// /// Required. The unique base plan ID of the base plan to deactivate. public virtual DeactivateRequest Deactivate(Google.Apis.AndroidPublisher.v3.Data.DeactivateBasePlanRequest body, string packageName, string productId, string basePlanId) { return new DeactivateRequest(this.service, body, packageName, productId, basePlanId); } /// /// Deactivates a base plan. Once deactivated, the base plan will become unavailable to new subscribers, /// but existing subscribers will maintain their subscription /// public class DeactivateRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Deactivate request. public DeactivateRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.DeactivateBasePlanRequest body, string packageName, string productId, string basePlanId) : base(service) { PackageName = packageName; ProductId = productId; BasePlanId = basePlanId; Body = body; InitParameters(); } /// Required. The parent app (package name) of the base plan to deactivate. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Required. The parent subscription (ID) of the base plan to deactivate. [Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)] public virtual string ProductId { get; private set; } /// Required. The unique base plan ID of the base plan to deactivate. [Google.Apis.Util.RequestParameterAttribute("basePlanId", Google.Apis.Util.RequestParameterType.Path)] public virtual string BasePlanId { get; private set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.DeactivateBasePlanRequest Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "deactivate"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}:deactivate"; /// Initializes Deactivate parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter { Name = "productId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("basePlanId", new Google.Apis.Discovery.Parameter { Name = "basePlanId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// /// Deletes a base plan. Can only be done for draft base plans. This action is irreversible. /// /// /// Required. The parent app (package name) of the base plan to delete. /// /// Required. The parent subscription (ID) of the base plan to delete. /// Required. The unique offer ID of the base plan to delete. public virtual DeleteRequest Delete(string packageName, string productId, string basePlanId) { return new DeleteRequest(this.service, packageName, productId, basePlanId); } /// /// Deletes a base plan. Can only be done for draft base plans. This action is irreversible. /// public class DeleteRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Delete request. public DeleteRequest(Google.Apis.Services.IClientService service, string packageName, string productId, string basePlanId) : base(service) { PackageName = packageName; ProductId = productId; BasePlanId = basePlanId; InitParameters(); } /// Required. The parent app (package name) of the base plan to delete. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Required. The parent subscription (ID) of the base plan to delete. [Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)] public virtual string ProductId { get; private set; } /// Required. The unique offer ID of the base plan to delete. [Google.Apis.Util.RequestParameterAttribute("basePlanId", Google.Apis.Util.RequestParameterType.Path)] public virtual string BasePlanId { get; private set; } /// Gets the method name. public override string MethodName => "delete"; /// Gets the HTTP method. public override string HttpMethod => "DELETE"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}"; /// Initializes Delete parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter { Name = "productId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("basePlanId", new Google.Apis.Discovery.Parameter { Name = "basePlanId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// /// Migrates subscribers from one or more legacy price cohorts to the current price. Requests result in /// Google Play notifying affected subscribers. Only up to 250 simultaneous legacy price cohorts are /// supported. /// /// The body of the request. /// /// Required. Package name of the parent app. Must be equal to the package_name field on the /// Subscription resource. /// /// /// Required. The ID of the subscription to update. Must be equal to the product_id field on the /// Subscription resource. /// /// /// Required. The unique base plan ID of the base plan to update prices on. /// public virtual MigratePricesRequest MigratePrices(Google.Apis.AndroidPublisher.v3.Data.MigrateBasePlanPricesRequest body, string packageName, string productId, string basePlanId) { return new MigratePricesRequest(this.service, body, packageName, productId, basePlanId); } /// /// Migrates subscribers from one or more legacy price cohorts to the current price. Requests result in /// Google Play notifying affected subscribers. Only up to 250 simultaneous legacy price cohorts are /// supported. /// public class MigratePricesRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new MigratePrices request. public MigratePricesRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.MigrateBasePlanPricesRequest body, string packageName, string productId, string basePlanId) : base(service) { PackageName = packageName; ProductId = productId; BasePlanId = basePlanId; Body = body; InitParameters(); } /// /// Required. Package name of the parent app. Must be equal to the package_name field on the /// Subscription resource. /// [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// /// Required. The ID of the subscription to update. Must be equal to the product_id field on the /// Subscription resource. /// [Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)] public virtual string ProductId { get; private set; } /// Required. The unique base plan ID of the base plan to update prices on. [Google.Apis.Util.RequestParameterAttribute("basePlanId", Google.Apis.Util.RequestParameterType.Path)] public virtual string BasePlanId { get; private set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.MigrateBasePlanPricesRequest Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "migratePrices"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}:migratePrices"; /// Initializes MigratePrices parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter { Name = "productId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("basePlanId", new Google.Apis.Discovery.Parameter { Name = "basePlanId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } } /// Deprecated: subscription archiving is not supported. /// The body of the request. /// /// Required. The parent app (package name) of the app of the subscription to delete. /// /// Required. The unique product ID of the subscription to delete. public virtual ArchiveRequest Archive(Google.Apis.AndroidPublisher.v3.Data.ArchiveSubscriptionRequest body, string packageName, string productId) { return new ArchiveRequest(this.service, body, packageName, productId); } /// Deprecated: subscription archiving is not supported. public class ArchiveRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Archive request. public ArchiveRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.ArchiveSubscriptionRequest body, string packageName, string productId) : base(service) { PackageName = packageName; ProductId = productId; Body = body; InitParameters(); } /// Required. The parent app (package name) of the app of the subscription to delete. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Required. The unique product ID of the subscription to delete. [Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)] public virtual string ProductId { get; private set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.ArchiveSubscriptionRequest Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "archive"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}:archive"; /// Initializes Archive parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter { Name = "productId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// Reads one or more subscriptions. /// /// Required. The parent app (package name) for which the subscriptions should be retrieved. Must be equal /// to the package_name field on all the requests. /// public virtual BatchGetRequest BatchGet(string packageName) { return new BatchGetRequest(this.service, packageName); } /// Reads one or more subscriptions. public class BatchGetRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new BatchGet request. public BatchGetRequest(Google.Apis.Services.IClientService service, string packageName) : base(service) { PackageName = packageName; InitParameters(); } /// /// Required. The parent app (package name) for which the subscriptions should be retrieved. Must be /// equal to the package_name field on all the requests. /// [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// /// Required. A list of up to 100 subscription product IDs to retrieve. All the IDs must be different. /// [Google.Apis.Util.RequestParameterAttribute("productIds", Google.Apis.Util.RequestParameterType.Query)] public virtual Google.Apis.Util.Repeatable ProductIds { get; set; } /// Gets the method name. public override string MethodName => "batchGet"; /// Gets the HTTP method. public override string HttpMethod => "GET"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/subscriptions:batchGet"; /// Initializes BatchGet parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("productIds", new Google.Apis.Discovery.Parameter { Name = "productIds", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// /// Updates a batch of subscriptions. Set the latencyTolerance field on nested requests to /// PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update throughput. /// /// The body of the request. /// /// Required. The parent app (package name) for which the subscriptions should be updated. Must be equal to /// the package_name field on all the Subscription resources. /// public virtual BatchUpdateRequest BatchUpdate(Google.Apis.AndroidPublisher.v3.Data.BatchUpdateSubscriptionsRequest body, string packageName) { return new BatchUpdateRequest(this.service, body, packageName); } /// /// Updates a batch of subscriptions. Set the latencyTolerance field on nested requests to /// PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update throughput. /// public class BatchUpdateRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new BatchUpdate request. public BatchUpdateRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.BatchUpdateSubscriptionsRequest body, string packageName) : base(service) { PackageName = packageName; Body = body; InitParameters(); } /// /// Required. The parent app (package name) for which the subscriptions should be updated. Must be equal /// to the package_name field on all the Subscription resources. /// [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.BatchUpdateSubscriptionsRequest Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "batchUpdate"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/subscriptions:batchUpdate"; /// Initializes BatchUpdate parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// /// Creates a new subscription. Newly added base plans will remain in draft state until activated. /// /// The body of the request. /// /// Required. The parent app (package name) for which the subscription should be created. Must be equal to /// the package_name field on the Subscription resource. /// public virtual CreateRequest Create(Google.Apis.AndroidPublisher.v3.Data.Subscription body, string packageName) { return new CreateRequest(this.service, body, packageName); } /// /// Creates a new subscription. Newly added base plans will remain in draft state until activated. /// public class CreateRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Create request. public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.Subscription body, string packageName) : base(service) { PackageName = packageName; Body = body; InitParameters(); } /// /// Required. The parent app (package name) for which the subscription should be created. Must be equal /// to the package_name field on the Subscription resource. /// [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// /// Required. The ID to use for the subscription. For the requirements on this format, see the /// documentation of the product_id field on the Subscription resource. /// [Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Query)] public virtual string ProductId { get; set; } /// /// Required. A string representing the version of available regions being used for the specified /// resource. Regional prices and latest supported version for the resource have to be specified /// according to the information published in [this /// article](https://support.google.com/googleplay/android-developer/answer/10532353). Each time the /// supported locations substantially change, the version will be incremented. Using this field will /// ensure that creating and updating the resource with an older region's version and set of regional /// prices and currencies will succeed even though a new version is available. /// [Google.Apis.Util.RequestParameterAttribute("regionsVersion.version", Google.Apis.Util.RequestParameterType.Query)] public virtual string RegionsVersionVersion { get; set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.Subscription Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "create"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/subscriptions"; /// Initializes Create parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter { Name = "productId", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("regionsVersion.version", new Google.Apis.Discovery.Parameter { Name = "regionsVersion.version", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// /// Deletes a subscription. A subscription can only be deleted if it has never had a base plan published. /// /// /// Required. The parent app (package name) of the app of the subscription to delete. /// /// Required. The unique product ID of the subscription to delete. public virtual DeleteRequest Delete(string packageName, string productId) { return new DeleteRequest(this.service, packageName, productId); } /// /// Deletes a subscription. A subscription can only be deleted if it has never had a base plan published. /// public class DeleteRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Delete request. public DeleteRequest(Google.Apis.Services.IClientService service, string packageName, string productId) : base(service) { PackageName = packageName; ProductId = productId; InitParameters(); } /// Required. The parent app (package name) of the app of the subscription to delete. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Required. The unique product ID of the subscription to delete. [Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)] public virtual string ProductId { get; private set; } /// Gets the method name. public override string MethodName => "delete"; /// Gets the HTTP method. public override string HttpMethod => "DELETE"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}"; /// Initializes Delete parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter { Name = "productId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// Reads a single subscription. /// Required. The parent app (package name) of the subscription to get. /// Required. The unique product ID of the subscription to get. public virtual GetRequest Get(string packageName, string productId) { return new GetRequest(this.service, packageName, productId); } /// Reads a single subscription. public class GetRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Get request. public GetRequest(Google.Apis.Services.IClientService service, string packageName, string productId) : base(service) { PackageName = packageName; ProductId = productId; InitParameters(); } /// Required. The parent app (package name) of the subscription to get. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Required. The unique product ID of the subscription to get. [Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)] public virtual string ProductId { get; private set; } /// Gets the method name. public override string MethodName => "get"; /// Gets the HTTP method. public override string HttpMethod => "GET"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}"; /// Initializes Get parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter { Name = "productId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// Lists all subscriptions under a given app. /// /// Required. The parent app (package name) for which the subscriptions should be read. /// public virtual ListRequest List(string packageName) { return new ListRequest(this.service, packageName); } /// Lists all subscriptions under a given app. public class ListRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new List request. public ListRequest(Google.Apis.Services.IClientService service, string packageName) : base(service) { PackageName = packageName; InitParameters(); } /// /// Required. The parent app (package name) for which the subscriptions should be read. /// [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// /// The maximum number of subscriptions to return. The service may return fewer than this value. If /// unspecified, at most 50 subscriptions will be returned. The maximum value is 1000; values above 1000 /// will be coerced to 1000. /// [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable PageSize { get; set; } /// /// A page token, received from a previous `ListSubscriptions` call. Provide this to retrieve the /// subsequent page. When paginating, all other parameters provided to `ListSubscriptions` must match /// the call that provided the page token. /// [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } /// Deprecated: subscription archiving is not supported. [Google.Apis.Util.RequestParameterAttribute("showArchived", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable ShowArchived { get; set; } /// Gets the method name. public override string MethodName => "list"; /// Gets the HTTP method. public override string HttpMethod => "GET"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/subscriptions"; /// Initializes List parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter { Name = "pageSize", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter { Name = "pageToken", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("showArchived", new Google.Apis.Discovery.Parameter { Name = "showArchived", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// Updates an existing subscription. /// The body of the request. /// Immutable. Package name of the parent app. /// /// Immutable. Unique product ID of the product. Unique within the parent app. Product IDs must be composed /// of lower-case letters (a-z), numbers (0-9), underscores (_) and dots (.). It must start with a /// lower-case letter or number, and be between 1 and 40 (inclusive) characters in length. /// public virtual PatchRequest Patch(Google.Apis.AndroidPublisher.v3.Data.Subscription body, string packageName, string productId) { return new PatchRequest(this.service, body, packageName, productId); } /// Updates an existing subscription. public class PatchRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Patch request. public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.Subscription body, string packageName, string productId) : base(service) { PackageName = packageName; ProductId = productId; Body = body; InitParameters(); } /// Immutable. Package name of the parent app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// /// Immutable. Unique product ID of the product. Unique within the parent app. Product IDs must be /// composed of lower-case letters (a-z), numbers (0-9), underscores (_) and dots (.). It must start /// with a lower-case letter or number, and be between 1 and 40 (inclusive) characters in length. /// [Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)] public virtual string ProductId { get; private set; } /// /// Optional. If set to true, and the subscription with the given package_name and product_id doesn't /// exist, the subscription will be created. If a new subscription is created, update_mask is ignored. /// [Google.Apis.Util.RequestParameterAttribute("allowMissing", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable AllowMissing { get; set; } /// /// Optional. The latency tolerance for the propagation of this product update. Defaults to /// latency-sensitive. /// [Google.Apis.Util.RequestParameterAttribute("latencyTolerance", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable LatencyTolerance { get; set; } /// /// Optional. The latency tolerance for the propagation of this product update. Defaults to /// latency-sensitive. /// public enum LatencyToleranceEnum { /// Defaults to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE. [Google.Apis.Util.StringValueAttribute("PRODUCT_UPDATE_LATENCY_TOLERANCE_UNSPECIFIED")] PRODUCTUPDATELATENCYTOLERANCEUNSPECIFIED = 0, /// /// The update will propagate to clients within several minutes on average and up to a few hours in /// rare cases. Throughput is limited to 7,200 updates per app per hour. /// [Google.Apis.Util.StringValueAttribute("PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE")] PRODUCTUPDATELATENCYTOLERANCELATENCYSENSITIVE = 1, /// /// The update will propagate to clients within 24 hours. Supports high throughput of up to 720,000 /// updates per app per hour using batch modification methods. /// [Google.Apis.Util.StringValueAttribute("PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT")] PRODUCTUPDATELATENCYTOLERANCELATENCYTOLERANT = 2, } /// /// Required. A string representing the version of available regions being used for the specified /// resource. Regional prices and latest supported version for the resource have to be specified /// according to the information published in [this /// article](https://support.google.com/googleplay/android-developer/answer/10532353). Each time the /// supported locations substantially change, the version will be incremented. Using this field will /// ensure that creating and updating the resource with an older region's version and set of regional /// prices and currencies will succeed even though a new version is available. /// [Google.Apis.Util.RequestParameterAttribute("regionsVersion.version", Google.Apis.Util.RequestParameterType.Query)] public virtual string RegionsVersionVersion { get; set; } /// Required. The list of fields to be updated. [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] public virtual object UpdateMask { get; set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.Subscription Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "patch"; /// Gets the HTTP method. public override string HttpMethod => "PATCH"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}"; /// Initializes Patch parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter { Name = "productId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("allowMissing", new Google.Apis.Discovery.Parameter { Name = "allowMissing", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("latencyTolerance", new Google.Apis.Discovery.Parameter { Name = "latencyTolerance", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("regionsVersion.version", new Google.Apis.Discovery.Parameter { Name = "regionsVersion.version", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter { Name = "updateMask", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } } /// /// Calculates the region prices, using today's exchange rate and country-specific pricing patterns, based on /// the price in the request for a set of regions. /// /// The body of the request. /// Required. The app package name. public virtual ConvertRegionPricesRequest ConvertRegionPrices(Google.Apis.AndroidPublisher.v3.Data.ConvertRegionPricesRequest body, string packageName) { return new ConvertRegionPricesRequest(this.service, body, packageName); } /// /// Calculates the region prices, using today's exchange rate and country-specific pricing patterns, based on /// the price in the request for a set of regions. /// public class ConvertRegionPricesRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new ConvertRegionPrices request. public ConvertRegionPricesRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.ConvertRegionPricesRequest body, string packageName) : base(service) { PackageName = packageName; Body = body; InitParameters(); } /// Required. The app package name. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.ConvertRegionPricesRequest Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "convertRegionPrices"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/pricing:convertRegionPrices"; /// Initializes ConvertRegionPrices parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } } /// The "orders" collection of methods. public class OrdersResource { private const string Resource = "orders"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. public OrdersResource(Google.Apis.Services.IClientService service) { this.service = service; } /// Get order details for a list of orders. /// /// Required. The package name of the application for which this subscription or in-app item was purchased (for /// example, 'com.some.thing'). /// public virtual BatchgetRequest Batchget(string packageName) { return new BatchgetRequest(this.service, packageName); } /// Get order details for a list of orders. public class BatchgetRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Batchget request. public BatchgetRequest(Google.Apis.Services.IClientService service, string packageName) : base(service) { PackageName = packageName; InitParameters(); } /// /// Required. The package name of the application for which this subscription or in-app item was purchased /// (for example, 'com.some.thing'). /// [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// /// Required. The list of order IDs to retrieve order details for. There must be between 1 and 1000 /// (inclusive) order IDs per request. If any order ID is not found or does not match the provided package, /// the entire request will fail with an error. The order IDs must be distinct. /// [Google.Apis.Util.RequestParameterAttribute("orderIds", Google.Apis.Util.RequestParameterType.Query)] public virtual Google.Apis.Util.Repeatable OrderIds { get; set; } /// Gets the method name. public override string MethodName => "batchget"; /// Gets the HTTP method. public override string HttpMethod => "GET"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/orders:batchGet"; /// Initializes Batchget parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("orderIds", new Google.Apis.Discovery.Parameter { Name = "orderIds", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// Get order details for a single order. /// /// Required. The package name of the application for which this subscription or in-app item was purchased (for /// example, 'com.some.thing'). /// /// /// Required. The order ID provided to the user when the subscription or in-app order was purchased. /// public virtual GetRequest Get(string packageName, string orderId) { return new GetRequest(this.service, packageName, orderId); } /// Get order details for a single order. public class GetRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Get request. public GetRequest(Google.Apis.Services.IClientService service, string packageName, string orderId) : base(service) { PackageName = packageName; OrderId = orderId; InitParameters(); } /// /// Required. The package name of the application for which this subscription or in-app item was purchased /// (for example, 'com.some.thing'). /// [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// /// Required. The order ID provided to the user when the subscription or in-app order was purchased. /// [Google.Apis.Util.RequestParameterAttribute("orderId", Google.Apis.Util.RequestParameterType.Path)] public virtual string OrderId { get; private set; } /// Gets the method name. public override string MethodName => "get"; /// Gets the HTTP method. public override string HttpMethod => "GET"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/orders/{orderId}"; /// Initializes Get parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("orderId", new Google.Apis.Discovery.Parameter { Name = "orderId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// /// Refunds a user's subscription or in-app purchase order. Orders older than 3 years cannot be refunded. /// /// /// The package name of the application for which this subscription or in-app item was purchased (for example, /// 'com.some.thing'). /// /// /// The order ID provided to the user when the subscription or in-app order was purchased. /// public virtual RefundRequest Refund(string packageName, string orderId) { return new RefundRequest(this.service, packageName, orderId); } /// /// Refunds a user's subscription or in-app purchase order. Orders older than 3 years cannot be refunded. /// public class RefundRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Refund request. public RefundRequest(Google.Apis.Services.IClientService service, string packageName, string orderId) : base(service) { PackageName = packageName; OrderId = orderId; InitParameters(); } /// /// The package name of the application for which this subscription or in-app item was purchased (for /// example, 'com.some.thing'). /// [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// /// The order ID provided to the user when the subscription or in-app order was purchased. /// [Google.Apis.Util.RequestParameterAttribute("orderId", Google.Apis.Util.RequestParameterType.Path)] public virtual string OrderId { get; private set; } /// /// Whether to revoke the purchased item. If set to true, access to the subscription or in-app item will be /// terminated immediately. If the item is a recurring subscription, all future payments will also be /// terminated. Consumed in-app items need to be handled by developer's app. (optional). /// [Google.Apis.Util.RequestParameterAttribute("revoke", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable Revoke { get; set; } /// Gets the method name. public override string MethodName => "refund"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/orders/{orderId}:refund"; /// Initializes Refund parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("orderId", new Google.Apis.Discovery.Parameter { Name = "orderId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("revoke", new Google.Apis.Discovery.Parameter { Name = "revoke", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } } /// The "purchases" collection of methods. public class PurchasesResource { private const string Resource = "purchases"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. public PurchasesResource(Google.Apis.Services.IClientService service) { this.service = service; Products = new ProductsResource(service); Productsv2 = new Productsv2Resource(service); Subscriptions = new SubscriptionsResource(service); Subscriptionsv2 = new Subscriptionsv2Resource(service); Voidedpurchases = new VoidedpurchasesResource(service); } /// Gets the Products resource. public virtual ProductsResource Products { get; } /// The "products" collection of methods. public class ProductsResource { private const string Resource = "products"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. public ProductsResource(Google.Apis.Services.IClientService service) { this.service = service; } /// Acknowledges a purchase of an inapp item. /// The body of the request. /// /// The package name of the application the inapp product was sold in (for example, 'com.some.thing'). /// /// The inapp product SKU (for example, 'com.some.thing.inapp1'). /// /// The token provided to the user's device when the inapp product was purchased. /// public virtual AcknowledgeRequest Acknowledge(Google.Apis.AndroidPublisher.v3.Data.ProductPurchasesAcknowledgeRequest body, string packageName, string productId, string token) { return new AcknowledgeRequest(this.service, body, packageName, productId, token); } /// Acknowledges a purchase of an inapp item. public class AcknowledgeRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Acknowledge request. public AcknowledgeRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.ProductPurchasesAcknowledgeRequest body, string packageName, string productId, string token) : base(service) { PackageName = packageName; ProductId = productId; Token = token; Body = body; InitParameters(); } /// /// The package name of the application the inapp product was sold in (for example, 'com.some.thing'). /// [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// The inapp product SKU (for example, 'com.some.thing.inapp1'). [Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)] public virtual string ProductId { get; private set; } /// The token provided to the user's device when the inapp product was purchased. [Google.Apis.Util.RequestParameterAttribute("token", Google.Apis.Util.RequestParameterType.Path)] public virtual string Token { get; private set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.ProductPurchasesAcknowledgeRequest Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "acknowledge"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/purchases/products/{productId}/tokens/{token}:acknowledge"; /// Initializes Acknowledge parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter { Name = "productId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("token", new Google.Apis.Discovery.Parameter { Name = "token", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// Consumes a purchase for an inapp item. /// /// The package name of the application the inapp product was sold in (for example, 'com.some.thing'). /// /// The inapp product SKU (for example, 'com.some.thing.inapp1'). /// /// The token provided to the user's device when the inapp product was purchased. /// public virtual ConsumeRequest Consume(string packageName, string productId, string token) { return new ConsumeRequest(this.service, packageName, productId, token); } /// Consumes a purchase for an inapp item. public class ConsumeRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Consume request. public ConsumeRequest(Google.Apis.Services.IClientService service, string packageName, string productId, string token) : base(service) { PackageName = packageName; ProductId = productId; Token = token; InitParameters(); } /// /// The package name of the application the inapp product was sold in (for example, 'com.some.thing'). /// [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// The inapp product SKU (for example, 'com.some.thing.inapp1'). [Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)] public virtual string ProductId { get; private set; } /// The token provided to the user's device when the inapp product was purchased. [Google.Apis.Util.RequestParameterAttribute("token", Google.Apis.Util.RequestParameterType.Path)] public virtual string Token { get; private set; } /// Gets the method name. public override string MethodName => "consume"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/purchases/products/{productId}/tokens/{token}:consume"; /// Initializes Consume parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter { Name = "productId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("token", new Google.Apis.Discovery.Parameter { Name = "token", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// Checks the purchase and consumption status of an inapp item. /// /// The package name of the application the inapp product was sold in (for example, 'com.some.thing'). /// /// The inapp product SKU (for example, 'com.some.thing.inapp1'). /// /// The token provided to the user's device when the inapp product was purchased. /// public virtual GetRequest Get(string packageName, string productId, string token) { return new GetRequest(this.service, packageName, productId, token); } /// Checks the purchase and consumption status of an inapp item. public class GetRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Get request. public GetRequest(Google.Apis.Services.IClientService service, string packageName, string productId, string token) : base(service) { PackageName = packageName; ProductId = productId; Token = token; InitParameters(); } /// /// The package name of the application the inapp product was sold in (for example, 'com.some.thing'). /// [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// The inapp product SKU (for example, 'com.some.thing.inapp1'). [Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)] public virtual string ProductId { get; private set; } /// The token provided to the user's device when the inapp product was purchased. [Google.Apis.Util.RequestParameterAttribute("token", Google.Apis.Util.RequestParameterType.Path)] public virtual string Token { get; private set; } /// Gets the method name. public override string MethodName => "get"; /// Gets the HTTP method. public override string HttpMethod => "GET"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/purchases/products/{productId}/tokens/{token}"; /// Initializes Get parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter { Name = "productId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("token", new Google.Apis.Discovery.Parameter { Name = "token", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } } /// Gets the Productsv2 resource. public virtual Productsv2Resource Productsv2 { get; } /// The "productsv2" collection of methods. public class Productsv2Resource { private const string Resource = "productsv2"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. public Productsv2Resource(Google.Apis.Services.IClientService service) { this.service = service; } /// Checks the purchase and consumption status of an inapp item. /// /// The package name of the application the inapp product was sold in (for example, 'com.some.thing'). /// /// /// The token provided to the user's device when the inapp product was purchased. /// public virtual Getproductpurchasev2Request Getproductpurchasev2(string packageName, string token) { return new Getproductpurchasev2Request(this.service, packageName, token); } /// Checks the purchase and consumption status of an inapp item. public class Getproductpurchasev2Request : AndroidPublisherBaseServiceRequest { /// Constructs a new Getproductpurchasev2 request. public Getproductpurchasev2Request(Google.Apis.Services.IClientService service, string packageName, string token) : base(service) { PackageName = packageName; Token = token; InitParameters(); } /// /// The package name of the application the inapp product was sold in (for example, 'com.some.thing'). /// [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// The token provided to the user's device when the inapp product was purchased. [Google.Apis.Util.RequestParameterAttribute("token", Google.Apis.Util.RequestParameterType.Path)] public virtual string Token { get; private set; } /// Gets the method name. public override string MethodName => "getproductpurchasev2"; /// Gets the HTTP method. public override string HttpMethod => "GET"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/purchases/productsv2/tokens/{token}"; /// Initializes Getproductpurchasev2 parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("token", new Google.Apis.Discovery.Parameter { Name = "token", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } } /// Gets the Subscriptions resource. public virtual SubscriptionsResource Subscriptions { get; } /// The "subscriptions" collection of methods. public class SubscriptionsResource { private const string Resource = "subscriptions"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. public SubscriptionsResource(Google.Apis.Services.IClientService service) { this.service = service; } /// Acknowledges a subscription purchase. /// The body of the request. /// /// The package name of the application for which this subscription was purchased (for example, /// 'com.some.thing'). /// /// /// Note: Since May 21, 2025, subscription_id is not required, and not recommended for subscription with /// add-ons. The purchased subscription ID (for example, 'monthly001'). /// /// The token provided to the user's device when the subscription was purchased. public virtual AcknowledgeRequest Acknowledge(Google.Apis.AndroidPublisher.v3.Data.SubscriptionPurchasesAcknowledgeRequest body, string packageName, string subscriptionId, string token) { return new AcknowledgeRequest(this.service, body, packageName, subscriptionId, token); } /// Acknowledges a subscription purchase. public class AcknowledgeRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Acknowledge request. public AcknowledgeRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.SubscriptionPurchasesAcknowledgeRequest body, string packageName, string subscriptionId, string token) : base(service) { PackageName = packageName; SubscriptionId = subscriptionId; Token = token; Body = body; InitParameters(); } /// /// The package name of the application for which this subscription was purchased (for example, /// 'com.some.thing'). /// [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// /// Note: Since May 21, 2025, subscription_id is not required, and not recommended for subscription with /// add-ons. The purchased subscription ID (for example, 'monthly001'). /// [Google.Apis.Util.RequestParameterAttribute("subscriptionId", Google.Apis.Util.RequestParameterType.Path)] public virtual string SubscriptionId { get; private set; } /// The token provided to the user's device when the subscription was purchased. [Google.Apis.Util.RequestParameterAttribute("token", Google.Apis.Util.RequestParameterType.Path)] public virtual string Token { get; private set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.SubscriptionPurchasesAcknowledgeRequest Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "acknowledge"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:acknowledge"; /// Initializes Acknowledge parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("subscriptionId", new Google.Apis.Discovery.Parameter { Name = "subscriptionId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("token", new Google.Apis.Discovery.Parameter { Name = "token", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// /// Cancels a user's subscription purchase. The subscription remains valid until its expiration time. Newer /// version is available at purchases.subscriptionsv2.cancel for better client library support. /// /// /// The package name of the application for which this subscription was purchased (for example, /// 'com.some.thing'). /// /// /// Note: Since May 21, 2025, subscription_id is not required, and not recommended for subscription with /// add-ons. The purchased subscription ID (for example, 'monthly001'). /// /// The token provided to the user's device when the subscription was purchased. public virtual CancelRequest Cancel(string packageName, string subscriptionId, string token) { return new CancelRequest(this.service, packageName, subscriptionId, token); } /// /// Cancels a user's subscription purchase. The subscription remains valid until its expiration time. Newer /// version is available at purchases.subscriptionsv2.cancel for better client library support. /// public class CancelRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Cancel request. public CancelRequest(Google.Apis.Services.IClientService service, string packageName, string subscriptionId, string token) : base(service) { PackageName = packageName; SubscriptionId = subscriptionId; Token = token; InitParameters(); } /// /// The package name of the application for which this subscription was purchased (for example, /// 'com.some.thing'). /// [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// /// Note: Since May 21, 2025, subscription_id is not required, and not recommended for subscription with /// add-ons. The purchased subscription ID (for example, 'monthly001'). /// [Google.Apis.Util.RequestParameterAttribute("subscriptionId", Google.Apis.Util.RequestParameterType.Path)] public virtual string SubscriptionId { get; private set; } /// The token provided to the user's device when the subscription was purchased. [Google.Apis.Util.RequestParameterAttribute("token", Google.Apis.Util.RequestParameterType.Path)] public virtual string Token { get; private set; } /// Gets the method name. public override string MethodName => "cancel"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:cancel"; /// Initializes Cancel parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("subscriptionId", new Google.Apis.Discovery.Parameter { Name = "subscriptionId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("token", new Google.Apis.Discovery.Parameter { Name = "token", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// Defers a user's subscription purchase until a specified future expiration time. /// The body of the request. /// /// The package name of the application for which this subscription was purchased (for example, /// 'com.some.thing'). /// /// The purchased subscription ID (for example, 'monthly001'). /// The token provided to the user's device when the subscription was purchased. public virtual DeferRequest Defer(Google.Apis.AndroidPublisher.v3.Data.SubscriptionPurchasesDeferRequest body, string packageName, string subscriptionId, string token) { return new DeferRequest(this.service, body, packageName, subscriptionId, token); } /// Defers a user's subscription purchase until a specified future expiration time. public class DeferRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Defer request. public DeferRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.SubscriptionPurchasesDeferRequest body, string packageName, string subscriptionId, string token) : base(service) { PackageName = packageName; SubscriptionId = subscriptionId; Token = token; Body = body; InitParameters(); } /// /// The package name of the application for which this subscription was purchased (for example, /// 'com.some.thing'). /// [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// The purchased subscription ID (for example, 'monthly001'). [Google.Apis.Util.RequestParameterAttribute("subscriptionId", Google.Apis.Util.RequestParameterType.Path)] public virtual string SubscriptionId { get; private set; } /// The token provided to the user's device when the subscription was purchased. [Google.Apis.Util.RequestParameterAttribute("token", Google.Apis.Util.RequestParameterType.Path)] public virtual string Token { get; private set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.SubscriptionPurchasesDeferRequest Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "defer"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:defer"; /// Initializes Defer parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("subscriptionId", new Google.Apis.Discovery.Parameter { Name = "subscriptionId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("token", new Google.Apis.Discovery.Parameter { Name = "token", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// /// Deprecated: Use purchases.subscriptionsv2.get instead. Checks whether a user's subscription purchase is /// valid and returns its expiry time. /// /// /// The package name of the application for which this subscription was purchased (for example, /// 'com.some.thing'). /// /// The purchased subscription ID (for example, 'monthly001'). /// The token provided to the user's device when the subscription was purchased. public virtual GetRequest Get(string packageName, string subscriptionId, string token) { return new GetRequest(this.service, packageName, subscriptionId, token); } /// /// Deprecated: Use purchases.subscriptionsv2.get instead. Checks whether a user's subscription purchase is /// valid and returns its expiry time. /// public class GetRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Get request. public GetRequest(Google.Apis.Services.IClientService service, string packageName, string subscriptionId, string token) : base(service) { PackageName = packageName; SubscriptionId = subscriptionId; Token = token; InitParameters(); } /// /// The package name of the application for which this subscription was purchased (for example, /// 'com.some.thing'). /// [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// The purchased subscription ID (for example, 'monthly001'). [Google.Apis.Util.RequestParameterAttribute("subscriptionId", Google.Apis.Util.RequestParameterType.Path)] public virtual string SubscriptionId { get; private set; } /// The token provided to the user's device when the subscription was purchased. [Google.Apis.Util.RequestParameterAttribute("token", Google.Apis.Util.RequestParameterType.Path)] public virtual string Token { get; private set; } /// Gets the method name. public override string MethodName => "get"; /// Gets the HTTP method. public override string HttpMethod => "GET"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}"; /// Initializes Get parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("subscriptionId", new Google.Apis.Discovery.Parameter { Name = "subscriptionId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("token", new Google.Apis.Discovery.Parameter { Name = "token", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// /// Deprecated: Use orders.refund instead. Refunds a user's subscription purchase, but the subscription /// remains valid until its expiration time and it will continue to recur. /// /// /// The package name of the application for which this subscription was purchased (for example, /// 'com.some.thing'). /// /// "The purchased subscription ID (for example, 'monthly001'). /// The token provided to the user's device when the subscription was purchased. public virtual RefundRequest Refund(string packageName, string subscriptionId, string token) { return new RefundRequest(this.service, packageName, subscriptionId, token); } /// /// Deprecated: Use orders.refund instead. Refunds a user's subscription purchase, but the subscription /// remains valid until its expiration time and it will continue to recur. /// public class RefundRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Refund request. public RefundRequest(Google.Apis.Services.IClientService service, string packageName, string subscriptionId, string token) : base(service) { PackageName = packageName; SubscriptionId = subscriptionId; Token = token; InitParameters(); } /// /// The package name of the application for which this subscription was purchased (for example, /// 'com.some.thing'). /// [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// "The purchased subscription ID (for example, 'monthly001'). [Google.Apis.Util.RequestParameterAttribute("subscriptionId", Google.Apis.Util.RequestParameterType.Path)] public virtual string SubscriptionId { get; private set; } /// The token provided to the user's device when the subscription was purchased. [Google.Apis.Util.RequestParameterAttribute("token", Google.Apis.Util.RequestParameterType.Path)] public virtual string Token { get; private set; } /// Gets the method name. public override string MethodName => "refund"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:refund"; /// Initializes Refund parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("subscriptionId", new Google.Apis.Discovery.Parameter { Name = "subscriptionId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("token", new Google.Apis.Discovery.Parameter { Name = "token", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// /// Deprecated: Use purchases.subscriptionsv2.revoke instead. Refunds and immediately revokes a user's /// subscription purchase. Access to the subscription will be terminated immediately and it will stop /// recurring. /// /// /// The package name of the application for which this subscription was purchased (for example, /// 'com.some.thing'). /// /// The purchased subscription ID (for example, 'monthly001'). /// The token provided to the user's device when the subscription was purchased. public virtual RevokeRequest Revoke(string packageName, string subscriptionId, string token) { return new RevokeRequest(this.service, packageName, subscriptionId, token); } /// /// Deprecated: Use purchases.subscriptionsv2.revoke instead. Refunds and immediately revokes a user's /// subscription purchase. Access to the subscription will be terminated immediately and it will stop /// recurring. /// public class RevokeRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Revoke request. public RevokeRequest(Google.Apis.Services.IClientService service, string packageName, string subscriptionId, string token) : base(service) { PackageName = packageName; SubscriptionId = subscriptionId; Token = token; InitParameters(); } /// /// The package name of the application for which this subscription was purchased (for example, /// 'com.some.thing'). /// [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// The purchased subscription ID (for example, 'monthly001'). [Google.Apis.Util.RequestParameterAttribute("subscriptionId", Google.Apis.Util.RequestParameterType.Path)] public virtual string SubscriptionId { get; private set; } /// The token provided to the user's device when the subscription was purchased. [Google.Apis.Util.RequestParameterAttribute("token", Google.Apis.Util.RequestParameterType.Path)] public virtual string Token { get; private set; } /// Gets the method name. public override string MethodName => "revoke"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:revoke"; /// Initializes Revoke parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("subscriptionId", new Google.Apis.Discovery.Parameter { Name = "subscriptionId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("token", new Google.Apis.Discovery.Parameter { Name = "token", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } } /// Gets the Subscriptionsv2 resource. public virtual Subscriptionsv2Resource Subscriptionsv2 { get; } /// The "subscriptionsv2" collection of methods. public class Subscriptionsv2Resource { private const string Resource = "subscriptionsv2"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. public Subscriptionsv2Resource(Google.Apis.Services.IClientService service) { this.service = service; } /// Cancel a subscription purchase for the user. /// The body of the request. /// /// Required. The package of the application for which this subscription was purchased (for example, /// 'com.some.thing'). /// /// /// Required. The token provided to the user's device when the subscription was purchased. /// public virtual CancelRequest Cancel(Google.Apis.AndroidPublisher.v3.Data.CancelSubscriptionPurchaseRequest body, string packageName, string token) { return new CancelRequest(this.service, body, packageName, token); } /// Cancel a subscription purchase for the user. public class CancelRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Cancel request. public CancelRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.CancelSubscriptionPurchaseRequest body, string packageName, string token) : base(service) { PackageName = packageName; Token = token; Body = body; InitParameters(); } /// /// Required. The package of the application for which this subscription was purchased (for example, /// 'com.some.thing'). /// [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// /// Required. The token provided to the user's device when the subscription was purchased. /// [Google.Apis.Util.RequestParameterAttribute("token", Google.Apis.Util.RequestParameterType.Path)] public virtual string Token { get; private set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.CancelSubscriptionPurchaseRequest Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "cancel"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/purchases/subscriptionsv2/tokens/{token}:cancel"; /// Initializes Cancel parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("token", new Google.Apis.Discovery.Parameter { Name = "token", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// Get metadata about a subscription /// /// The package of the application for which this subscription was purchased (for example, /// 'com.some.thing'). /// /// /// Required. The token provided to the user's device when the subscription was purchased. /// public virtual GetRequest Get(string packageName, string token) { return new GetRequest(this.service, packageName, token); } /// Get metadata about a subscription public class GetRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Get request. public GetRequest(Google.Apis.Services.IClientService service, string packageName, string token) : base(service) { PackageName = packageName; Token = token; InitParameters(); } /// /// The package of the application for which this subscription was purchased (for example, /// 'com.some.thing'). /// [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// /// Required. The token provided to the user's device when the subscription was purchased. /// [Google.Apis.Util.RequestParameterAttribute("token", Google.Apis.Util.RequestParameterType.Path)] public virtual string Token { get; private set; } /// Gets the method name. public override string MethodName => "get"; /// Gets the HTTP method. public override string HttpMethod => "GET"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/purchases/subscriptionsv2/tokens/{token}"; /// Initializes Get parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("token", new Google.Apis.Discovery.Parameter { Name = "token", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// Revoke a subscription purchase for the user. /// The body of the request. /// /// Required. The package of the application for which this subscription was purchased (for example, /// 'com.some.thing'). /// /// /// Required. The token provided to the user's device when the subscription was purchased. /// public virtual RevokeRequest Revoke(Google.Apis.AndroidPublisher.v3.Data.RevokeSubscriptionPurchaseRequest body, string packageName, string token) { return new RevokeRequest(this.service, body, packageName, token); } /// Revoke a subscription purchase for the user. public class RevokeRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Revoke request. public RevokeRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.RevokeSubscriptionPurchaseRequest body, string packageName, string token) : base(service) { PackageName = packageName; Token = token; Body = body; InitParameters(); } /// /// Required. The package of the application for which this subscription was purchased (for example, /// 'com.some.thing'). /// [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// /// Required. The token provided to the user's device when the subscription was purchased. /// [Google.Apis.Util.RequestParameterAttribute("token", Google.Apis.Util.RequestParameterType.Path)] public virtual string Token { get; private set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.RevokeSubscriptionPurchaseRequest Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "revoke"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/purchases/subscriptionsv2/tokens/{token}:revoke"; /// Initializes Revoke parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("token", new Google.Apis.Discovery.Parameter { Name = "token", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } } /// Gets the Voidedpurchases resource. public virtual VoidedpurchasesResource Voidedpurchases { get; } /// The "voidedpurchases" collection of methods. public class VoidedpurchasesResource { private const string Resource = "voidedpurchases"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. public VoidedpurchasesResource(Google.Apis.Services.IClientService service) { this.service = service; } /// Lists the purchases that were canceled, refunded or charged-back. /// /// The package name of the application for which voided purchases need to be returned (for example, /// 'com.some.thing'). /// public virtual ListRequest List(string packageName) { return new ListRequest(this.service, packageName); } /// Lists the purchases that were canceled, refunded or charged-back. public class ListRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new List request. public ListRequest(Google.Apis.Services.IClientService service, string packageName) : base(service) { PackageName = packageName; InitParameters(); } /// /// The package name of the application for which voided purchases need to be returned (for example, /// 'com.some.thing'). /// [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// /// The time, in milliseconds since the Epoch, of the newest voided purchase that you want to see in the /// response. The value of this parameter cannot be greater than the current time and is ignored if a /// pagination token is set. Default value is current time. Note: This filter is applied on the time at /// which the record is seen as voided by our systems and not the actual voided time returned in the /// response. /// [Google.Apis.Util.RequestParameterAttribute("endTime", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable EndTime { get; set; } /// /// Optional. Whether to include voided purchases of quantity-based partial refunds, which are /// applicable only to multi-quantity purchases. If true, additional voided purchases may be returned /// with voidedQuantity that indicates the refund quantity of a quantity-based partial refund. The /// default value is false. /// [Google.Apis.Util.RequestParameterAttribute("includeQuantityBasedPartialRefund", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable IncludeQuantityBasedPartialRefund { get; set; } /// /// Defines how many results the list operation should return. The default number depends on the /// resource collection. /// [Google.Apis.Util.RequestParameterAttribute("maxResults", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable MaxResults { get; set; } /// /// Defines the index of the first element to return. This can only be used if indexed paging is /// enabled. /// [Google.Apis.Util.RequestParameterAttribute("startIndex", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable StartIndex { get; set; } /// /// The time, in milliseconds since the Epoch, of the oldest voided purchase that you want to see in the /// response. The value of this parameter cannot be older than 30 days and is ignored if a pagination /// token is set. Default value is current time minus 30 days. Note: This filter is applied on the time /// at which the record is seen as voided by our systems and not the actual voided time returned in the /// response. /// [Google.Apis.Util.RequestParameterAttribute("startTime", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable StartTime { get; set; } /// /// Defines the token of the page to return, usually taken from TokenPagination. This can only be used /// if token paging is enabled. /// [Google.Apis.Util.RequestParameterAttribute("token", Google.Apis.Util.RequestParameterType.Query)] public virtual string Token { get; set; } /// /// The type of voided purchases that you want to see in the response. Possible values are: 0. Only /// voided in-app product purchases will be returned in the response. This is the default value. 1. Both /// voided in-app purchases and voided subscription purchases will be returned in the response. Note: /// Before requesting to receive voided subscription purchases, you must switch to use orderId in the /// response which uniquely identifies one-time purchases and subscriptions. Otherwise, you will receive /// multiple subscription orders with the same PurchaseToken, because subscription renewal orders share /// the same PurchaseToken. /// [Google.Apis.Util.RequestParameterAttribute("type", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable Type { get; set; } /// Gets the method name. public override string MethodName => "list"; /// Gets the HTTP method. public override string HttpMethod => "GET"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/purchases/voidedpurchases"; /// Initializes List parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("endTime", new Google.Apis.Discovery.Parameter { Name = "endTime", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("includeQuantityBasedPartialRefund", new Google.Apis.Discovery.Parameter { Name = "includeQuantityBasedPartialRefund", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("maxResults", new Google.Apis.Discovery.Parameter { Name = "maxResults", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("startIndex", new Google.Apis.Discovery.Parameter { Name = "startIndex", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("startTime", new Google.Apis.Discovery.Parameter { Name = "startTime", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("token", new Google.Apis.Discovery.Parameter { Name = "token", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("type", new Google.Apis.Discovery.Parameter { Name = "type", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } } } /// The "reviews" collection of methods. public class ReviewsResource { private const string Resource = "reviews"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. public ReviewsResource(Google.Apis.Services.IClientService service) { this.service = service; } /// Gets a single review. /// Package name of the app. /// Unique identifier for a review. public virtual GetRequest Get(string packageName, string reviewId) { return new GetRequest(this.service, packageName, reviewId); } /// Gets a single review. public class GetRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Get request. public GetRequest(Google.Apis.Services.IClientService service, string packageName, string reviewId) : base(service) { PackageName = packageName; ReviewId = reviewId; InitParameters(); } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Unique identifier for a review. [Google.Apis.Util.RequestParameterAttribute("reviewId", Google.Apis.Util.RequestParameterType.Path)] public virtual string ReviewId { get; private set; } /// Language localization code. [Google.Apis.Util.RequestParameterAttribute("translationLanguage", Google.Apis.Util.RequestParameterType.Query)] public virtual string TranslationLanguage { get; set; } /// Gets the method name. public override string MethodName => "get"; /// Gets the HTTP method. public override string HttpMethod => "GET"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/reviews/{reviewId}"; /// Initializes Get parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("reviewId", new Google.Apis.Discovery.Parameter { Name = "reviewId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("translationLanguage", new Google.Apis.Discovery.Parameter { Name = "translationLanguage", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// Lists all reviews. /// Package name of the app. public virtual ListRequest List(string packageName) { return new ListRequest(this.service, packageName); } /// Lists all reviews. public class ListRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new List request. public ListRequest(Google.Apis.Services.IClientService service, string packageName) : base(service) { PackageName = packageName; InitParameters(); } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// How many results the list operation should return. [Google.Apis.Util.RequestParameterAttribute("maxResults", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable MaxResults { get; set; } /// The index of the first element to return. [Google.Apis.Util.RequestParameterAttribute("startIndex", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable StartIndex { get; set; } /// Pagination token. If empty, list starts at the first review. [Google.Apis.Util.RequestParameterAttribute("token", Google.Apis.Util.RequestParameterType.Query)] public virtual string Token { get; set; } /// Language localization code. [Google.Apis.Util.RequestParameterAttribute("translationLanguage", Google.Apis.Util.RequestParameterType.Query)] public virtual string TranslationLanguage { get; set; } /// Gets the method name. public override string MethodName => "list"; /// Gets the HTTP method. public override string HttpMethod => "GET"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/reviews"; /// Initializes List parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("maxResults", new Google.Apis.Discovery.Parameter { Name = "maxResults", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("startIndex", new Google.Apis.Discovery.Parameter { Name = "startIndex", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("token", new Google.Apis.Discovery.Parameter { Name = "token", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("translationLanguage", new Google.Apis.Discovery.Parameter { Name = "translationLanguage", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// Replies to a single review, or updates an existing reply. /// The body of the request. /// Package name of the app. /// Unique identifier for a review. public virtual ReplyRequest Reply(Google.Apis.AndroidPublisher.v3.Data.ReviewsReplyRequest body, string packageName, string reviewId) { return new ReplyRequest(this.service, body, packageName, reviewId); } /// Replies to a single review, or updates an existing reply. public class ReplyRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Reply request. public ReplyRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.ReviewsReplyRequest body, string packageName, string reviewId) : base(service) { PackageName = packageName; ReviewId = reviewId; Body = body; InitParameters(); } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// Unique identifier for a review. [Google.Apis.Util.RequestParameterAttribute("reviewId", Google.Apis.Util.RequestParameterType.Path)] public virtual string ReviewId { get; private set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.ReviewsReplyRequest Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "reply"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/reviews/{reviewId}:reply"; /// Initializes Reply parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("reviewId", new Google.Apis.Discovery.Parameter { Name = "reviewId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } } /// The "systemapks" collection of methods. public class SystemapksResource { private const string Resource = "systemapks"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. public SystemapksResource(Google.Apis.Services.IClientService service) { this.service = service; Variants = new VariantsResource(service); } /// Gets the Variants resource. public virtual VariantsResource Variants { get; } /// The "variants" collection of methods. public class VariantsResource { private const string Resource = "variants"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. public VariantsResource(Google.Apis.Services.IClientService service) { this.service = service; } /// /// Creates an APK which is suitable for inclusion in a system image from an already uploaded Android App /// Bundle. /// /// The body of the request. /// Package name of the app. /// The version code of the App Bundle. public virtual CreateRequest Create(Google.Apis.AndroidPublisher.v3.Data.Variant body, string packageName, long versionCode) { return new CreateRequest(this.service, body, packageName, versionCode); } /// /// Creates an APK which is suitable for inclusion in a system image from an already uploaded Android App /// Bundle. /// public class CreateRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Create request. public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.Variant body, string packageName, long versionCode) : base(service) { PackageName = packageName; VersionCode = versionCode; Body = body; InitParameters(); } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// The version code of the App Bundle. [Google.Apis.Util.RequestParameterAttribute("versionCode", Google.Apis.Util.RequestParameterType.Path)] public virtual long VersionCode { get; private set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.Variant Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "create"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants"; /// Initializes Create parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("versionCode", new Google.Apis.Discovery.Parameter { Name = "versionCode", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// /// Downloads a previously created system APK which is suitable for inclusion in a system image. /// /// Package name of the app. /// The version code of the App Bundle. /// The ID of a previously created system APK variant. public virtual DownloadRequest Download(string packageName, long versionCode, long variantId) { return new DownloadRequest(this.service, packageName, versionCode, variantId); } /// /// Downloads a previously created system APK which is suitable for inclusion in a system image. /// public class DownloadRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Download request. public DownloadRequest(Google.Apis.Services.IClientService service, string packageName, long versionCode, long variantId) : base(service) { PackageName = packageName; VersionCode = versionCode; VariantId = variantId; MediaDownloader = new Google.Apis.Download.MediaDownloader(service); InitParameters(); } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// The version code of the App Bundle. [Google.Apis.Util.RequestParameterAttribute("versionCode", Google.Apis.Util.RequestParameterType.Path)] public virtual long VersionCode { get; private set; } /// The ID of a previously created system APK variant. [Google.Apis.Util.RequestParameterAttribute("variantId", Google.Apis.Util.RequestParameterType.Path)] public virtual long VariantId { get; private set; } /// Gets the method name. public override string MethodName => "download"; /// Gets the HTTP method. public override string HttpMethod => "GET"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants/{variantId}:download"; /// Initializes Download parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("versionCode", new Google.Apis.Discovery.Parameter { Name = "versionCode", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("variantId", new Google.Apis.Discovery.Parameter { Name = "variantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } /// Gets the media downloader. public Google.Apis.Download.IMediaDownloader MediaDownloader { get; private set; } /// /// Synchronously download the media into the given stream. /// /// Warning: This method hides download errors; use /// instead. /// /// /// /// This method uses the property to perform the download. Progress event /// handlers and other configuration may be performed using that property prior to calling this method. /// public virtual void Download(System.IO.Stream stream) { var mediaDownloader = (Google.Apis.Download.MediaDownloader)MediaDownloader; mediaDownloader.Range = null; mediaDownloader.Download(this.GenerateRequestUri(), stream); } /// Synchronously download the media into the given stream. /// /// This method uses the property to perform the download. Progress event /// handlers and other configuration may be performed using that property prior to calling this method. /// /// /// The final status of the download; including whether the download succeeded or failed. /// public virtual Google.Apis.Download.IDownloadProgress DownloadWithStatus(System.IO.Stream stream) { var mediaDownloader = (Google.Apis.Download.MediaDownloader)MediaDownloader; mediaDownloader.Range = null; return mediaDownloader.Download(this.GenerateRequestUri(), stream); } /// Asynchronously download the media into the given stream. /// /// This method uses the property to perform the download. Progress event /// handlers and other configuration may be performed using that property prior to calling this method. /// public virtual System.Threading.Tasks.Task DownloadAsync(System.IO.Stream stream) { var mediaDownloader = (Google.Apis.Download.MediaDownloader)MediaDownloader; mediaDownloader.Range = null; return mediaDownloader.DownloadAsync(this.GenerateRequestUri(), stream); } /// Asynchronously download the media into the given stream. /// /// This method uses the property to perform the download. Progress event /// handlers and other configuration may be performed using that property prior to calling this method. /// public virtual System.Threading.Tasks.Task DownloadAsync(System.IO.Stream stream, System.Threading.CancellationToken cancellationToken) { var mediaDownloader = (Google.Apis.Download.MediaDownloader)MediaDownloader; mediaDownloader.Range = null; return mediaDownloader.DownloadAsync(this.GenerateRequestUri(), stream, cancellationToken); } /// Synchronously download a range of the media into the given stream. /// /// This method uses the property to perform the download. Progress event /// handlers and other configuration may be performed using that property prior to calling this method. /// public virtual Google.Apis.Download.IDownloadProgress DownloadRange(System.IO.Stream stream, System.Net.Http.Headers.RangeHeaderValue range) { var mediaDownloader = (Google.Apis.Download.MediaDownloader)MediaDownloader; mediaDownloader.Range = range; return mediaDownloader.Download(this.GenerateRequestUri(), stream); } /// Asynchronously download a range of the media into the given stream. /// /// This method uses the property to perform the download. Progress event /// handlers and other configuration may be performed using that property prior to calling this method. /// public virtual System.Threading.Tasks.Task DownloadRangeAsync(System.IO.Stream stream, System.Net.Http.Headers.RangeHeaderValue range, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { var mediaDownloader = (Google.Apis.Download.MediaDownloader)MediaDownloader; mediaDownloader.Range = range; return mediaDownloader.DownloadAsync(this.GenerateRequestUri(), stream, cancellationToken); } } /// Returns a previously created system APK variant. /// Package name of the app. /// The version code of the App Bundle. /// The ID of a previously created system APK variant. public virtual GetRequest Get(string packageName, long versionCode, long variantId) { return new GetRequest(this.service, packageName, versionCode, variantId); } /// Returns a previously created system APK variant. public class GetRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Get request. public GetRequest(Google.Apis.Services.IClientService service, string packageName, long versionCode, long variantId) : base(service) { PackageName = packageName; VersionCode = versionCode; VariantId = variantId; InitParameters(); } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// The version code of the App Bundle. [Google.Apis.Util.RequestParameterAttribute("versionCode", Google.Apis.Util.RequestParameterType.Path)] public virtual long VersionCode { get; private set; } /// The ID of a previously created system APK variant. [Google.Apis.Util.RequestParameterAttribute("variantId", Google.Apis.Util.RequestParameterType.Path)] public virtual long VariantId { get; private set; } /// Gets the method name. public override string MethodName => "get"; /// Gets the HTTP method. public override string HttpMethod => "GET"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants/{variantId}"; /// Initializes Get parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("versionCode", new Google.Apis.Discovery.Parameter { Name = "versionCode", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("variantId", new Google.Apis.Discovery.Parameter { Name = "variantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// Returns the list of previously created system APK variants. /// Package name of the app. /// The version code of the App Bundle. public virtual ListRequest List(string packageName, long versionCode) { return new ListRequest(this.service, packageName, versionCode); } /// Returns the list of previously created system APK variants. public class ListRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new List request. public ListRequest(Google.Apis.Services.IClientService service, string packageName, long versionCode) : base(service) { PackageName = packageName; VersionCode = versionCode; InitParameters(); } /// Package name of the app. [Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)] public virtual string PackageName { get; private set; } /// The version code of the App Bundle. [Google.Apis.Util.RequestParameterAttribute("versionCode", Google.Apis.Util.RequestParameterType.Path)] public virtual long VersionCode { get; private set; } /// Gets the method name. public override string MethodName => "list"; /// Gets the HTTP method. public override string HttpMethod => "GET"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants"; /// Initializes List parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter { Name = "packageName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add("versionCode", new Google.Apis.Discovery.Parameter { Name = "versionCode", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } } } /// The "users" collection of methods. public class UsersResource { private const string Resource = "users"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. public UsersResource(Google.Apis.Services.IClientService service) { this.service = service; } /// Grant access for a user to the given developer account. /// The body of the request. /// /// Required. The developer account to add the user to. Format: developers/{developer} /// public virtual CreateRequest Create(Google.Apis.AndroidPublisher.v3.Data.User body, string parent) { return new CreateRequest(this.service, body, parent); } /// Grant access for a user to the given developer account. public class CreateRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Create request. public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.User body, string parent) : base(service) { Parent = parent; Body = body; InitParameters(); } /// Required. The developer account to add the user to. Format: developers/{developer} [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] public virtual string Parent { get; private set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.User Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "create"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/{+parent}/users"; /// Initializes Create parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { Name = "parent", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^developers/[^/]+$", }); } } /// Removes all access for the user to the given developer account. /// /// Required. The name of the user to delete. Format: developers/{developer}/users/{email} /// public virtual DeleteRequest Delete(string name) { return new DeleteRequest(this.service, name); } /// Removes all access for the user to the given developer account. public class DeleteRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Delete request. public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) { Name = name; InitParameters(); } /// /// Required. The name of the user to delete. Format: developers/{developer}/users/{email} /// [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } /// Gets the method name. public override string MethodName => "delete"; /// Gets the HTTP method. public override string HttpMethod => "DELETE"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/{+name}"; /// Initializes Delete parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^developers/[^/]+/users/[^/]+$", }); } } /// Lists all users with access to a developer account. /// /// Required. The developer account to fetch users from. Format: developers/{developer} /// public virtual ListRequest List(string parent) { return new ListRequest(this.service, parent); } /// Lists all users with access to a developer account. public class ListRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new List request. public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) { Parent = parent; InitParameters(); } /// Required. The developer account to fetch users from. Format: developers/{developer} [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] public virtual string Parent { get; private set; } /// /// The maximum number of results to return. This must be set to -1 to disable pagination. /// [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable PageSize { get; set; } /// /// A token received from a previous call to this method, in order to retrieve further results. /// [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } /// Gets the method name. public override string MethodName => "list"; /// Gets the HTTP method. public override string HttpMethod => "GET"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/{+parent}/users"; /// Initializes List parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { Name = "parent", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^developers/[^/]+$", }); RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter { Name = "pageSize", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter { Name = "pageToken", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// Updates access for the user to the developer account. /// The body of the request. /// /// Required. Resource name for this user, following the pattern "developers/{developer}/users/{email}". /// public virtual PatchRequest Patch(Google.Apis.AndroidPublisher.v3.Data.User body, string name) { return new PatchRequest(this.service, body, name); } /// Updates access for the user to the developer account. public class PatchRequest : AndroidPublisherBaseServiceRequest { /// Constructs a new Patch request. public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.User body, string name) : base(service) { Name = name; Body = body; InitParameters(); } /// /// Required. Resource name for this user, following the pattern "developers/{developer}/users/{email}". /// [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } /// Optional. The list of fields to be updated. [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] public virtual object UpdateMask { get; set; } /// Gets or sets the body of this request. Google.Apis.AndroidPublisher.v3.Data.User Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. public override string MethodName => "patch"; /// Gets the HTTP method. public override string HttpMethod => "PATCH"; /// Gets the REST path. public override string RestPath => "androidpublisher/v3/{+name}"; /// Initializes Patch parameter list. protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^developers/[^/]+/users/[^/]+$", }); RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter { Name = "updateMask", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } } } namespace Google.Apis.AndroidPublisher.v3.Data { /// Represents an Abi. public class Abi : Google.Apis.Requests.IDirectResponseSchema { /// Alias for an abi. [Newtonsoft.Json.JsonPropertyAttribute("alias")] public virtual string Alias { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Targeting based on Abi. public class AbiTargeting : Google.Apis.Requests.IDirectResponseSchema { /// /// Targeting of other sibling directories that were in the Bundle. For main splits this is targeting of other /// main splits. /// [Newtonsoft.Json.JsonPropertyAttribute("alternatives")] public virtual System.Collections.Generic.IList Alternatives { get; set; } /// Value of an abi. [Newtonsoft.Json.JsonPropertyAttribute("value")] public virtual System.Collections.Generic.IList Value { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Represents a targeting rule of the form: User never had {scope} before. public class AcquisitionTargetingRule : Google.Apis.Requests.IDirectResponseSchema { /// /// Required. The scope of subscriptions this rule considers. Only allows "this subscription" and "any /// subscription in app". /// [Newtonsoft.Json.JsonPropertyAttribute("scope")] public virtual TargetingRuleScope Scope { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Request message for ActivateBasePlan. public class ActivateBasePlanRequest : Google.Apis.Requests.IDirectResponseSchema { /// Required. The unique base plan ID of the base plan to activate. [Newtonsoft.Json.JsonPropertyAttribute("basePlanId")] public virtual string BasePlanId { get; set; } /// /// Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive. /// [Newtonsoft.Json.JsonPropertyAttribute("latencyTolerance")] public virtual string LatencyTolerance { get; set; } /// Required. The parent app (package name) of the base plan to activate. [Newtonsoft.Json.JsonPropertyAttribute("packageName")] public virtual string PackageName { get; set; } /// Required. The parent subscription (ID) of the base plan to activate. [Newtonsoft.Json.JsonPropertyAttribute("productId")] public virtual string ProductId { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Request message for ActivateOneTimeProductOffer. public class ActivateOneTimeProductOfferRequest : Google.Apis.Requests.IDirectResponseSchema { /// /// Optional. The latency tolerance for the propagation of this update. Defaults to latency-sensitive. /// [Newtonsoft.Json.JsonPropertyAttribute("latencyTolerance")] public virtual string LatencyTolerance { get; set; } /// Required. The offer ID of the offer to activate. [Newtonsoft.Json.JsonPropertyAttribute("offerId")] public virtual string OfferId { get; set; } /// Required. The parent app (package name) of the offer to activate. [Newtonsoft.Json.JsonPropertyAttribute("packageName")] public virtual string PackageName { get; set; } /// Required. The parent one-time product (ID) of the offer to activate. [Newtonsoft.Json.JsonPropertyAttribute("productId")] public virtual string ProductId { get; set; } /// Required. The parent purchase option (ID) of the offer to activate. [Newtonsoft.Json.JsonPropertyAttribute("purchaseOptionId")] public virtual string PurchaseOptionId { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Request message for UpdatePurchaseOptionState. public class ActivatePurchaseOptionRequest : Google.Apis.Requests.IDirectResponseSchema { /// /// Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive. /// [Newtonsoft.Json.JsonPropertyAttribute("latencyTolerance")] public virtual string LatencyTolerance { get; set; } /// Required. The parent app (package name) of the purchase option to activate. [Newtonsoft.Json.JsonPropertyAttribute("packageName")] public virtual string PackageName { get; set; } /// Required. The parent one-time product (ID) of the purchase option to activate. [Newtonsoft.Json.JsonPropertyAttribute("productId")] public virtual string ProductId { get; set; } /// Required. The purchase option ID of the purchase option to activate. [Newtonsoft.Json.JsonPropertyAttribute("purchaseOptionId")] public virtual string PurchaseOptionId { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Request message for ActivateSubscriptionOffer. public class ActivateSubscriptionOfferRequest : Google.Apis.Requests.IDirectResponseSchema { /// Required. The parent base plan (ID) of the offer to activate. [Newtonsoft.Json.JsonPropertyAttribute("basePlanId")] public virtual string BasePlanId { get; set; } /// /// Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive. /// [Newtonsoft.Json.JsonPropertyAttribute("latencyTolerance")] public virtual string LatencyTolerance { get; set; } /// Required. The unique offer ID of the offer to activate. [Newtonsoft.Json.JsonPropertyAttribute("offerId")] public virtual string OfferId { get; set; } /// Required. The parent app (package name) of the offer to activate. [Newtonsoft.Json.JsonPropertyAttribute("packageName")] public virtual string PackageName { get; set; } /// Required. The parent subscription (ID) of the offer to activate. [Newtonsoft.Json.JsonPropertyAttribute("productId")] public virtual string ProductId { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Request message for AddTargeting. public class AddTargetingRequest : Google.Apis.Requests.IDirectResponseSchema { /// Specifies targeting updates such as regions, android sdk versions etc. [Newtonsoft.Json.JsonPropertyAttribute("targetingUpdate")] public virtual TargetingUpdate TargetingUpdate { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Response message for AddTargeting. public class AddTargetingResponse : Google.Apis.Requests.IDirectResponseSchema { /// The ETag of the item. public virtual string ETag { get; set; } } /// Object representation to describe all set of users. public class AllUsers : Google.Apis.Requests.IDirectResponseSchema { /// Required. Set to true if all set of users are needed. [Newtonsoft.Json.JsonPropertyAttribute("isAllUsersRequested")] public virtual System.Nullable IsAllUsersRequested { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Android api level targeting data for app recovery action targeting. public class AndroidSdks : Google.Apis.Requests.IDirectResponseSchema { /// /// Android api levels of devices targeted by recovery action. See /// https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels for different api levels in /// android. /// [Newtonsoft.Json.JsonPropertyAttribute("sdkLevels")] public virtual System.Collections.Generic.IList> SdkLevels { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Information about an APK. The resource for ApksService. public class Apk : Google.Apis.Requests.IDirectResponseSchema { /// Information about the binary payload of this APK. [Newtonsoft.Json.JsonPropertyAttribute("binary")] public virtual ApkBinary Binary { get; set; } /// The version code of the APK, as specified in the manifest file. [Newtonsoft.Json.JsonPropertyAttribute("versionCode")] public virtual System.Nullable VersionCode { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Represents the binary payload of an APK. public class ApkBinary : Google.Apis.Requests.IDirectResponseSchema { /// /// A sha1 hash of the APK payload, encoded as a hex string and matching the output of the sha1sum command. /// [Newtonsoft.Json.JsonPropertyAttribute("sha1")] public virtual string Sha1 { get; set; } /// /// A sha256 hash of the APK payload, encoded as a hex string and matching the output of the sha256sum command. /// [Newtonsoft.Json.JsonPropertyAttribute("sha256")] public virtual string Sha256 { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Description of the created apks. public class ApkDescription : Google.Apis.Requests.IDirectResponseSchema { /// Set only for asset slices. [Newtonsoft.Json.JsonPropertyAttribute("assetSliceMetadata")] public virtual SplitApkMetadata AssetSliceMetadata { get; set; } /// Set only for Instant split APKs. [Newtonsoft.Json.JsonPropertyAttribute("instantApkMetadata")] public virtual SplitApkMetadata InstantApkMetadata { get; set; } /// /// Path of the Apk, will be in the following format: .apk where DownloadId is the ID used to download the apk /// using GeneratedApks.Download API. /// [Newtonsoft.Json.JsonPropertyAttribute("path")] public virtual string Path { get; set; } /// Set only for Split APKs. [Newtonsoft.Json.JsonPropertyAttribute("splitApkMetadata")] public virtual SplitApkMetadata SplitApkMetadata { get; set; } /// Set only for standalone APKs. [Newtonsoft.Json.JsonPropertyAttribute("standaloneApkMetadata")] public virtual StandaloneApkMetadata StandaloneApkMetadata { get; set; } /// Apk-level targeting. [Newtonsoft.Json.JsonPropertyAttribute("targeting")] public virtual ApkTargeting Targeting { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// A set of apks representing a module. public class ApkSet : Google.Apis.Requests.IDirectResponseSchema { /// Description of the generated apks. [Newtonsoft.Json.JsonPropertyAttribute("apkDescription")] public virtual System.Collections.Generic.IList ApkDescription { get; set; } /// Metadata about the module represented by this ApkSet [Newtonsoft.Json.JsonPropertyAttribute("moduleMetadata")] public virtual ModuleMetadata ModuleMetadata { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Represents a set of apk-level targetings. public class ApkTargeting : Google.Apis.Requests.IDirectResponseSchema { /// The abi that the apk targets [Newtonsoft.Json.JsonPropertyAttribute("abiTargeting")] public virtual AbiTargeting AbiTargeting { get; set; } /// The language that the apk targets [Newtonsoft.Json.JsonPropertyAttribute("languageTargeting")] public virtual LanguageTargeting LanguageTargeting { get; set; } /// Multi-api-level targeting. [Newtonsoft.Json.JsonPropertyAttribute("multiAbiTargeting")] public virtual MultiAbiTargeting MultiAbiTargeting { get; set; } /// The screen density that this apk supports. [Newtonsoft.Json.JsonPropertyAttribute("screenDensityTargeting")] public virtual ScreenDensityTargeting ScreenDensityTargeting { get; set; } /// The sdk version that the apk targets [Newtonsoft.Json.JsonPropertyAttribute("sdkVersionTargeting")] public virtual SdkVersionTargeting SdkVersionTargeting { get; set; } /// Texture-compression-format-level targeting [Newtonsoft.Json.JsonPropertyAttribute("textureCompressionFormatTargeting")] public virtual TextureCompressionFormatTargeting TextureCompressionFormatTargeting { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Request to create a new externally hosted APK. public class ApksAddExternallyHostedRequest : Google.Apis.Requests.IDirectResponseSchema { /// The definition of the externally-hosted APK and where it is located. [Newtonsoft.Json.JsonPropertyAttribute("externallyHostedApk")] public virtual ExternallyHostedApk ExternallyHostedApk { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Response for creating a new externally hosted APK. public class ApksAddExternallyHostedResponse : Google.Apis.Requests.IDirectResponseSchema { /// The definition of the externally-hosted APK and where it is located. [Newtonsoft.Json.JsonPropertyAttribute("externallyHostedApk")] public virtual ExternallyHostedApk ExternallyHostedApk { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Response listing all APKs. public class ApksListResponse : Google.Apis.Requests.IDirectResponseSchema { /// All APKs. [Newtonsoft.Json.JsonPropertyAttribute("apks")] public virtual System.Collections.Generic.IList Apks { get; set; } /// The kind of this response ("androidpublisher#apksListResponse"). [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// The app details. The resource for DetailsService. public class AppDetails : Google.Apis.Requests.IDirectResponseSchema { /// The user-visible support email for this app. [Newtonsoft.Json.JsonPropertyAttribute("contactEmail")] public virtual string ContactEmail { get; set; } /// The user-visible support telephone number for this app. [Newtonsoft.Json.JsonPropertyAttribute("contactPhone")] public virtual string ContactPhone { get; set; } /// The user-visible website for this app. [Newtonsoft.Json.JsonPropertyAttribute("contactWebsite")] public virtual string ContactWebsite { get; set; } /// Default language code, in BCP 47 format (eg "en-US"). [Newtonsoft.Json.JsonPropertyAttribute("defaultLanguage")] public virtual string DefaultLanguage { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// An app edit. The resource for EditsService. public class AppEdit : Google.Apis.Requests.IDirectResponseSchema { /// /// Output only. The time (as seconds since Epoch) at which the edit will expire and will be no longer valid for /// use. /// [Newtonsoft.Json.JsonPropertyAttribute("expiryTimeSeconds")] public virtual string ExpiryTimeSeconds { get; set; } /// Output only. Identifier of the edit. Can be used in subsequent API calls. [Newtonsoft.Json.JsonPropertyAttribute("id")] public virtual string Id { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Information about an app recovery action. public class AppRecoveryAction : Google.Apis.Requests.IDirectResponseSchema { /// ID corresponding to the app recovery action. [Newtonsoft.Json.JsonPropertyAttribute("appRecoveryId")] public virtual System.Nullable AppRecoveryId { get; set; } private string _cancelTimeRaw; private object _cancelTime; /// /// Timestamp of when the app recovery action is canceled by the developer. Only set if the recovery action has /// been canceled. /// [Newtonsoft.Json.JsonPropertyAttribute("cancelTime")] public virtual string CancelTimeRaw { get => _cancelTimeRaw; set { _cancelTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); _cancelTimeRaw = value; } } /// representation of . [Newtonsoft.Json.JsonIgnoreAttribute] [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use CancelTimeDateTimeOffset instead.")] public virtual object CancelTime { get => _cancelTime; set { _cancelTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); _cancelTime = value; } } /// representation of . [Newtonsoft.Json.JsonIgnoreAttribute] public virtual System.DateTimeOffset? CancelTimeDateTimeOffset { get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(CancelTimeRaw); set => CancelTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); } private string _createTimeRaw; private object _createTime; /// /// Timestamp of when the app recovery action is created by the developer. It is always set after creation of /// the recovery action. /// [Newtonsoft.Json.JsonPropertyAttribute("createTime")] public virtual string CreateTimeRaw { get => _createTimeRaw; set { _createTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); _createTimeRaw = value; } } /// representation of . [Newtonsoft.Json.JsonIgnoreAttribute] [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")] public virtual object CreateTime { get => _createTime; set { _createTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); _createTime = value; } } /// representation of . [Newtonsoft.Json.JsonIgnoreAttribute] public virtual System.DateTimeOffset? CreateTimeDateTimeOffset { get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(CreateTimeRaw); set => CreateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); } private string _deployTimeRaw; private object _deployTime; /// /// Timestamp of when the app recovery action is deployed to the users. Only set if the recovery action has been /// deployed. /// [Newtonsoft.Json.JsonPropertyAttribute("deployTime")] public virtual string DeployTimeRaw { get => _deployTimeRaw; set { _deployTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); _deployTimeRaw = value; } } /// representation of . [Newtonsoft.Json.JsonIgnoreAttribute] [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use DeployTimeDateTimeOffset instead.")] public virtual object DeployTime { get => _deployTime; set { _deployTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); _deployTime = value; } } /// representation of . [Newtonsoft.Json.JsonIgnoreAttribute] public virtual System.DateTimeOffset? DeployTimeDateTimeOffset { get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(DeployTimeRaw); set => DeployTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); } private string _lastUpdateTimeRaw; private object _lastUpdateTime; /// /// Timestamp of when the developer last updated recovery action. In case the action is cancelled, it /// corresponds to cancellation time. It is always set after creation of the recovery action. /// [Newtonsoft.Json.JsonPropertyAttribute("lastUpdateTime")] public virtual string LastUpdateTimeRaw { get => _lastUpdateTimeRaw; set { _lastUpdateTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); _lastUpdateTimeRaw = value; } } /// representation of . [Newtonsoft.Json.JsonIgnoreAttribute] [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use LastUpdateTimeDateTimeOffset instead.")] public virtual object LastUpdateTime { get => _lastUpdateTime; set { _lastUpdateTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); _lastUpdateTime = value; } } /// /// representation of . /// [Newtonsoft.Json.JsonIgnoreAttribute] public virtual System.DateTimeOffset? LastUpdateTimeDateTimeOffset { get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(LastUpdateTimeRaw); set => LastUpdateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); } /// /// Data about the remote in-app update action such as such as recovered user base, recoverable user base etc. /// Set only if the recovery action type is Remote In-App Update. /// [Newtonsoft.Json.JsonPropertyAttribute("remoteInAppUpdateData")] public virtual RemoteInAppUpdateData RemoteInAppUpdateData { get; set; } /// The status of the recovery action. [Newtonsoft.Json.JsonPropertyAttribute("status")] public virtual string Status { get; set; } /// /// Specifies targeting criteria for the recovery action such as regions, android sdk versions, app versions /// etc. /// [Newtonsoft.Json.JsonPropertyAttribute("targeting")] public virtual Targeting Targeting { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Data format for a list of app versions. public class AppVersionList : Google.Apis.Requests.IDirectResponseSchema { /// List of app version codes. [Newtonsoft.Json.JsonPropertyAttribute("versionCodes")] public virtual System.Collections.Generic.IList> VersionCodes { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Data format for a continuous range of app versions. public class AppVersionRange : Google.Apis.Requests.IDirectResponseSchema { /// Highest app version in the range, inclusive. [Newtonsoft.Json.JsonPropertyAttribute("versionCodeEnd")] public virtual System.Nullable VersionCodeEnd { get; set; } /// Lowest app version in the range, inclusive. [Newtonsoft.Json.JsonPropertyAttribute("versionCodeStart")] public virtual System.Nullable VersionCodeStart { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Deprecated: subscription archiving is not supported. public class ArchiveSubscriptionRequest : Google.Apis.Requests.IDirectResponseSchema { /// The ETag of the item. public virtual string ETag { get; set; } } /// Metadata of an asset module. public class AssetModuleMetadata : Google.Apis.Requests.IDirectResponseSchema { /// Indicates the delivery type for persistent install. [Newtonsoft.Json.JsonPropertyAttribute("deliveryType")] public virtual string DeliveryType { get; set; } /// Module name. [Newtonsoft.Json.JsonPropertyAttribute("name")] public virtual string Name { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Set of asset slices belonging to a single asset module. public class AssetSliceSet : Google.Apis.Requests.IDirectResponseSchema { /// Asset slices. [Newtonsoft.Json.JsonPropertyAttribute("apkDescription")] public virtual System.Collections.Generic.IList ApkDescription { get; set; } /// Module level metadata. [Newtonsoft.Json.JsonPropertyAttribute("assetModuleMetadata")] public virtual AssetModuleMetadata AssetModuleMetadata { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Represents a base plan that automatically renews at the end of its subscription period. public class AutoRenewingBasePlanType : Google.Apis.Requests.IDirectResponseSchema { /// /// Optional. Custom account hold period of the subscription, specified in ISO 8601 format. Acceptable values /// must be in days and between P0D and P60D. An empty field represents a recommended account hold, calculated /// as 60 days minus grace period. The sum of gracePeriodDuration and accountHoldDuration must be between P30D /// and P60D days, inclusive. /// [Newtonsoft.Json.JsonPropertyAttribute("accountHoldDuration")] public virtual string AccountHoldDuration { get; set; } /// /// Required. Immutable. Subscription period, specified in ISO 8601 format. For a list of acceptable billing /// periods, refer to the help center. The duration is immutable after the base plan is created. /// [Newtonsoft.Json.JsonPropertyAttribute("billingPeriodDuration")] public virtual string BillingPeriodDuration { get; set; } /// /// Grace period of the subscription, specified in ISO 8601 format. Acceptable values must be in days and /// between P0D and the lesser of 30D and base plan billing period. If not specified, a default value will be /// used based on the billing period. The sum of gracePeriodDuration and accountHoldDuration must be between /// P30D and P60D days, inclusive. /// [Newtonsoft.Json.JsonPropertyAttribute("gracePeriodDuration")] public virtual string GracePeriodDuration { get; set; } /// /// Whether the renewing base plan is backward compatible. The backward compatible base plan is returned by the /// Google Play Billing Library deprecated method querySkuDetailsAsync(). Only one renewing base plan can be /// marked as legacy compatible for a given subscription. /// [Newtonsoft.Json.JsonPropertyAttribute("legacyCompatible")] public virtual System.Nullable LegacyCompatible { get; set; } /// /// Subscription offer id which is legacy compatible. The backward compatible subscription offer is returned by /// the Google Play Billing Library deprecated method querySkuDetailsAsync(). Only one subscription offer can be /// marked as legacy compatible for a given renewing base plan. To have no Subscription offer as legacy /// compatible set this field as empty string. /// [Newtonsoft.Json.JsonPropertyAttribute("legacyCompatibleSubscriptionOfferId")] public virtual string LegacyCompatibleSubscriptionOfferId { get; set; } /// /// The proration mode for the base plan determines what happens when a user switches to this plan from another /// base plan. If unspecified, defaults to CHARGE_ON_NEXT_BILLING_DATE. /// [Newtonsoft.Json.JsonPropertyAttribute("prorationMode")] public virtual string ProrationMode { get; set; } /// /// Whether users should be able to resubscribe to this base plan in Google Play surfaces. Defaults to /// RESUBSCRIBE_STATE_ACTIVE if not specified. /// [Newtonsoft.Json.JsonPropertyAttribute("resubscribeState")] public virtual string ResubscribeState { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Information related to an auto renewing plan. public class AutoRenewingPlan : Google.Apis.Requests.IDirectResponseSchema { /// /// If the subscription is currently set to auto-renew, e.g. the user has not canceled the subscription /// [Newtonsoft.Json.JsonPropertyAttribute("autoRenewEnabled")] public virtual System.Nullable AutoRenewEnabled { get; set; } /// The installment plan commitment and state related info for the auto renewing plan. [Newtonsoft.Json.JsonPropertyAttribute("installmentDetails")] public virtual InstallmentPlan InstallmentDetails { get; set; } /// The information of the last price change for the item since subscription signup. [Newtonsoft.Json.JsonPropertyAttribute("priceChangeDetails")] public virtual SubscriptionItemPriceChangeDetails PriceChangeDetails { get; set; } /// The information of the latest price step-up consent. [Newtonsoft.Json.JsonPropertyAttribute("priceStepUpConsentDetails")] public virtual PriceStepUpConsentDetails PriceStepUpConsentDetails { get; set; } /// /// The current recurring price of the auto renewing plan. Note that the price does not take into account /// discounts and does not include taxes for tax-exclusive pricing, please call orders.get API instead if /// transaction details are needed. /// [Newtonsoft.Json.JsonPropertyAttribute("recurringPrice")] public virtual Money RecurringPrice { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Details of a base price pricing phase. public class BaseDetails : Google.Apis.Requests.IDirectResponseSchema { /// The ETag of the item. public virtual string ETag { get; set; } } /// A single base plan for a subscription. public class BasePlan : Google.Apis.Requests.IDirectResponseSchema { /// Set when the base plan automatically renews at a regular interval. [Newtonsoft.Json.JsonPropertyAttribute("autoRenewingBasePlanType")] public virtual AutoRenewingBasePlanType AutoRenewingBasePlanType { get; set; } /// /// Required. Immutable. The unique identifier of this base plan. Must be unique within the subscription, and /// conform with RFC-1034. That is, this ID can only contain lower-case letters (a-z), numbers (0-9), and /// hyphens (-), and be at most 63 characters. /// [Newtonsoft.Json.JsonPropertyAttribute("basePlanId")] public virtual string BasePlanId { get; set; } /// /// Set for installments base plans where a user is committed to a specified number of payments. /// [Newtonsoft.Json.JsonPropertyAttribute("installmentsBasePlanType")] public virtual InstallmentsBasePlanType InstallmentsBasePlanType { get; set; } /// /// List of up to 20 custom tags specified for this base plan, and returned to the app through the billing /// library. Subscription offers for this base plan will also receive these offer tags in the billing library. /// [Newtonsoft.Json.JsonPropertyAttribute("offerTags")] public virtual System.Collections.Generic.IList OfferTags { get; set; } /// /// Pricing information for any new locations Play may launch in the future. If omitted, the BasePlan will not /// be automatically available any new locations Play may launch in the future. /// [Newtonsoft.Json.JsonPropertyAttribute("otherRegionsConfig")] public virtual OtherRegionsBasePlanConfig OtherRegionsConfig { get; set; } /// Set when the base plan does not automatically renew at the end of the billing period. [Newtonsoft.Json.JsonPropertyAttribute("prepaidBasePlanType")] public virtual PrepaidBasePlanType PrepaidBasePlanType { get; set; } /// Region-specific information for this base plan. [Newtonsoft.Json.JsonPropertyAttribute("regionalConfigs")] public virtual System.Collections.Generic.IList RegionalConfigs { get; set; } /// /// Output only. The state of the base plan, i.e. whether it's active. Draft and inactive base plans can be /// activated or deleted. Active base plans can be made inactive. Inactive base plans can be canceled. This /// field cannot be changed by updating the resource. Use the dedicated endpoints instead. /// [Newtonsoft.Json.JsonPropertyAttribute("state")] public virtual string State { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Request message for BatchDeleteOneTimeProductOffers. public class BatchDeleteOneTimeProductOffersRequest : Google.Apis.Requests.IDirectResponseSchema { /// /// Required. A list of update requests of up to 100 elements. All requests must correspond to different offers. /// [Newtonsoft.Json.JsonPropertyAttribute("requests")] public virtual System.Collections.Generic.IList Requests { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Request message for BatchDeleteOneTimeProduct. public class BatchDeleteOneTimeProductsRequest : Google.Apis.Requests.IDirectResponseSchema { /// /// Required. A list of delete requests of up to 100 elements. All requests must delete different one-time /// products. /// [Newtonsoft.Json.JsonPropertyAttribute("requests")] public virtual System.Collections.Generic.IList Requests { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Request message for BatchDeletePurchaseOption. public class BatchDeletePurchaseOptionsRequest : Google.Apis.Requests.IDirectResponseSchema { /// /// Required. A list of delete requests of up to 100 elements. All requests must delete purchase options from /// different one-time products. /// [Newtonsoft.Json.JsonPropertyAttribute("requests")] public virtual System.Collections.Generic.IList Requests { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Request message for the BatchGetOneTimeProductOffers endpoint. public class BatchGetOneTimeProductOffersRequest : Google.Apis.Requests.IDirectResponseSchema { /// /// Required. A list of get requests of up to 100 elements. All requests must retrieve different offers. /// [Newtonsoft.Json.JsonPropertyAttribute("requests")] public virtual System.Collections.Generic.IList Requests { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Response message for the BatchGetOneTimeProductOffers endpoint. public class BatchGetOneTimeProductOffersResponse : Google.Apis.Requests.IDirectResponseSchema { /// The list of updated one-time product offers, in the same order as the request. [Newtonsoft.Json.JsonPropertyAttribute("oneTimeProductOffers")] public virtual System.Collections.Generic.IList OneTimeProductOffers { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Response message for the BatchGetOneTimeProducts endpoint. public class BatchGetOneTimeProductsResponse : Google.Apis.Requests.IDirectResponseSchema { /// The list of requested one-time products, in the same order as the request. [Newtonsoft.Json.JsonPropertyAttribute("oneTimeProducts")] public virtual System.Collections.Generic.IList OneTimeProducts { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Response for the orders.batchGet API. public class BatchGetOrdersResponse : Google.Apis.Requests.IDirectResponseSchema { /// Details for the requested order IDs. [Newtonsoft.Json.JsonPropertyAttribute("orders")] public virtual System.Collections.Generic.IList Orders { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Request message for BatchGetSubscriptionOffers endpoint. public class BatchGetSubscriptionOffersRequest : Google.Apis.Requests.IDirectResponseSchema { /// /// Required. A list of update requests of up to 100 elements. All requests must update different subscriptions. /// [Newtonsoft.Json.JsonPropertyAttribute("requests")] public virtual System.Collections.Generic.IList Requests { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Response message for BatchGetSubscriptionOffers endpoint. public class BatchGetSubscriptionOffersResponse : Google.Apis.Requests.IDirectResponseSchema { [Newtonsoft.Json.JsonPropertyAttribute("subscriptionOffers")] public virtual System.Collections.Generic.IList SubscriptionOffers { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Response message for BatchGetSubscriptions endpoint. public class BatchGetSubscriptionsResponse : Google.Apis.Requests.IDirectResponseSchema { /// The list of requested subscriptions, in the same order as the request. [Newtonsoft.Json.JsonPropertyAttribute("subscriptions")] public virtual System.Collections.Generic.IList Subscriptions { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Request message for BatchMigrateBasePlanPrices. public class BatchMigrateBasePlanPricesRequest : Google.Apis.Requests.IDirectResponseSchema { /// /// Required. Up to 100 price migration requests. All requests must update different base plans. /// [Newtonsoft.Json.JsonPropertyAttribute("requests")] public virtual System.Collections.Generic.IList Requests { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Response message for BatchMigrateBasePlanPrices. public class BatchMigrateBasePlanPricesResponse : Google.Apis.Requests.IDirectResponseSchema { /// Contains one response per requested price migration, in the same order as the request. [Newtonsoft.Json.JsonPropertyAttribute("responses")] public virtual System.Collections.Generic.IList Responses { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Request message for BatchUpdateBasePlanStates. public class BatchUpdateBasePlanStatesRequest : Google.Apis.Requests.IDirectResponseSchema { /// /// Required. The update request list of up to 100 elements. All requests must update different base plans. /// [Newtonsoft.Json.JsonPropertyAttribute("requests")] public virtual System.Collections.Generic.IList Requests { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Response message for BatchUpdateBasePlanStates. public class BatchUpdateBasePlanStatesResponse : Google.Apis.Requests.IDirectResponseSchema { /// /// The list of updated subscriptions. This list will match the requests one to one, in the same order. /// [Newtonsoft.Json.JsonPropertyAttribute("subscriptions")] public virtual System.Collections.Generic.IList Subscriptions { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Request message for BatchUpdateOneTimeProductOfferStates. public class BatchUpdateOneTimeProductOfferStatesRequest : Google.Apis.Requests.IDirectResponseSchema { /// /// Required. The update request list of up to 100 elements. All requests must update different offers. /// [Newtonsoft.Json.JsonPropertyAttribute("requests")] public virtual System.Collections.Generic.IList Requests { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Response message for BatchUpdateOneTimeProductOfferStates. public class BatchUpdateOneTimeProductOfferStatesResponse : Google.Apis.Requests.IDirectResponseSchema { /// The updated one-time product offers list, in the same order as the request. [Newtonsoft.Json.JsonPropertyAttribute("oneTimeProductOffers")] public virtual System.Collections.Generic.IList OneTimeProductOffers { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Request message for BatchUpdateOneTimeProductOffers. public class BatchUpdateOneTimeProductOffersRequest : Google.Apis.Requests.IDirectResponseSchema { /// /// Required. A list of update requests of up to 100 elements. All requests must update different offers. /// [Newtonsoft.Json.JsonPropertyAttribute("requests")] public virtual System.Collections.Generic.IList Requests { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Response message for BatchUpdateOneTimeProductOffers. public class BatchUpdateOneTimeProductOffersResponse : Google.Apis.Requests.IDirectResponseSchema { /// The list of updated one-time product offers, in the same order as the request. [Newtonsoft.Json.JsonPropertyAttribute("oneTimeProductOffers")] public virtual System.Collections.Generic.IList OneTimeProductOffers { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Request message for BatchUpdateOneTimeProduct. public class BatchUpdateOneTimeProductsRequest : Google.Apis.Requests.IDirectResponseSchema { /// /// Required. A list of update requests of up to 100 elements. All requests must update different one-time /// products. /// [Newtonsoft.Json.JsonPropertyAttribute("requests")] public virtual System.Collections.Generic.IList Requests { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Response message for BatchUpdateOneTimeProduct. public class BatchUpdateOneTimeProductsResponse : Google.Apis.Requests.IDirectResponseSchema { /// The list of updated one-time products list, in the same order as the request. [Newtonsoft.Json.JsonPropertyAttribute("oneTimeProducts")] public virtual System.Collections.Generic.IList OneTimeProducts { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Request message for BatchUpdatePurchaseOptionStates. public class BatchUpdatePurchaseOptionStatesRequest : Google.Apis.Requests.IDirectResponseSchema { /// /// Required. The update request list of up to 100 elements. All requests must update different purchase /// options. /// [Newtonsoft.Json.JsonPropertyAttribute("requests")] public virtual System.Collections.Generic.IList Requests { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Response message for BatchUpdatePurchaseOptionStates. public class BatchUpdatePurchaseOptionStatesResponse : Google.Apis.Requests.IDirectResponseSchema { /// /// The list of updated one-time products. This list will match the requests one to one, in the same order. /// [Newtonsoft.Json.JsonPropertyAttribute("oneTimeProducts")] public virtual System.Collections.Generic.IList OneTimeProducts { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Request message for BatchUpdateSubscriptionOfferStates. public class BatchUpdateSubscriptionOfferStatesRequest : Google.Apis.Requests.IDirectResponseSchema { /// /// Required. The update request list of up to 100 elements. All requests must update different offers. /// [Newtonsoft.Json.JsonPropertyAttribute("requests")] public virtual System.Collections.Generic.IList Requests { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Response message for BatchUpdateSubscriptionOfferStates. public class BatchUpdateSubscriptionOfferStatesResponse : Google.Apis.Requests.IDirectResponseSchema { /// The updated subscription offers list. [Newtonsoft.Json.JsonPropertyAttribute("subscriptionOffers")] public virtual System.Collections.Generic.IList SubscriptionOffers { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Request message for BatchUpdateSubscriptionOffers. public class BatchUpdateSubscriptionOffersRequest : Google.Apis.Requests.IDirectResponseSchema { /// /// Required. A list of update requests of up to 100 elements. All requests must update different subscription /// offers. /// [Newtonsoft.Json.JsonPropertyAttribute("requests")] public virtual System.Collections.Generic.IList Requests { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Response message for BatchUpdateSubscriptionOffers. public class BatchUpdateSubscriptionOffersResponse : Google.Apis.Requests.IDirectResponseSchema { /// The updated subscription offers list. [Newtonsoft.Json.JsonPropertyAttribute("subscriptionOffers")] public virtual System.Collections.Generic.IList SubscriptionOffers { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Request message for BatchUpdateSubscription. public class BatchUpdateSubscriptionsRequest : Google.Apis.Requests.IDirectResponseSchema { /// /// Required. A list of update requests of up to 100 elements. All requests must update different subscriptions. /// [Newtonsoft.Json.JsonPropertyAttribute("requests")] public virtual System.Collections.Generic.IList Requests { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Response message for BatchUpdateSubscription. public class BatchUpdateSubscriptionsResponse : Google.Apis.Requests.IDirectResponseSchema { /// The updated subscriptions list. [Newtonsoft.Json.JsonPropertyAttribute("subscriptions")] public virtual System.Collections.Generic.IList Subscriptions { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Information about an app bundle. The resource for BundlesService. public class Bundle : Google.Apis.Requests.IDirectResponseSchema { /// /// A sha1 hash of the upload payload, encoded as a hex string and matching the output of the sha1sum command. /// [Newtonsoft.Json.JsonPropertyAttribute("sha1")] public virtual string Sha1 { get; set; } /// /// A sha256 hash of the upload payload, encoded as a hex string and matching the output of the sha256sum /// command. /// [Newtonsoft.Json.JsonPropertyAttribute("sha256")] public virtual string Sha256 { get; set; } /// /// The version code of the Android App Bundle, as specified in the Android App Bundle's base module APK /// manifest file. /// [Newtonsoft.Json.JsonPropertyAttribute("versionCode")] public virtual System.Nullable VersionCode { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Response listing all app bundles. public class BundlesListResponse : Google.Apis.Requests.IDirectResponseSchema { /// All app bundles. [Newtonsoft.Json.JsonPropertyAttribute("bundles")] public virtual System.Collections.Generic.IList Bundles { get; set; } /// The kind of this response ("androidpublisher#bundlesListResponse"). [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Address information for the customer, for use in tax computation. public class BuyerAddress : Google.Apis.Requests.IDirectResponseSchema { /// Two letter country code based on ISO-3166-1 Alpha-2 (UN country codes). [Newtonsoft.Json.JsonPropertyAttribute("buyerCountry")] public virtual string BuyerCountry { get; set; } /// /// Postal code of an address. When Google is the Merchant of Record for the order, this information is not /// included. /// [Newtonsoft.Json.JsonPropertyAttribute("buyerPostcode")] public virtual string BuyerPostcode { get; set; } /// /// Top-level administrative subdivision of the buyer address country. When Google is the Merchant of Record for /// the order, this information is not included. /// [Newtonsoft.Json.JsonPropertyAttribute("buyerState")] public virtual string BuyerState { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Request message for CancelAppRecovery. public class CancelAppRecoveryRequest : Google.Apis.Requests.IDirectResponseSchema { /// The ETag of the item. public virtual string ETag { get; set; } } /// Response message for CancelAppRecovery. public class CancelAppRecoveryResponse : Google.Apis.Requests.IDirectResponseSchema { /// The ETag of the item. public virtual string ETag { get; set; } } /// Request message for CancelOneTimeProductOffer. public class CancelOneTimeProductOfferRequest : Google.Apis.Requests.IDirectResponseSchema { /// /// Optional. The latency tolerance for the propagation of this update. Defaults to latency-sensitive. /// [Newtonsoft.Json.JsonPropertyAttribute("latencyTolerance")] public virtual string LatencyTolerance { get; set; } /// Required. The offer ID of the offer to cancel. [Newtonsoft.Json.JsonPropertyAttribute("offerId")] public virtual string OfferId { get; set; } /// Required. The parent app (package name) of the offer to cancel. [Newtonsoft.Json.JsonPropertyAttribute("packageName")] public virtual string PackageName { get; set; } /// Required. The parent one-time product (ID) of the offer to cancel. [Newtonsoft.Json.JsonPropertyAttribute("productId")] public virtual string ProductId { get; set; } /// Required. The parent purchase option (ID) of the offer to cancel. [Newtonsoft.Json.JsonPropertyAttribute("purchaseOptionId")] public virtual string PurchaseOptionId { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Request for the purchases.subscriptionsv2.cancel API. public class CancelSubscriptionPurchaseRequest : Google.Apis.Requests.IDirectResponseSchema { /// Required. Additional details around the subscription revocation. [Newtonsoft.Json.JsonPropertyAttribute("cancellationContext")] public virtual CancellationContext CancellationContext { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Response for the purchases.subscriptionsv2.cancel API. public class CancelSubscriptionPurchaseResponse : Google.Apis.Requests.IDirectResponseSchema { /// The ETag of the item. public virtual string ETag { get; set; } } /// Result of the cancel survey when the subscription was canceled by the user. public class CancelSurveyResult : Google.Apis.Requests.IDirectResponseSchema { /// The reason the user selected in the cancel survey. [Newtonsoft.Json.JsonPropertyAttribute("reason")] public virtual string Reason { get; set; } /// /// Only set for CANCEL_SURVEY_REASON_OTHERS. This is the user's freeform response to the survey. /// [Newtonsoft.Json.JsonPropertyAttribute("reasonUserInput")] public virtual string ReasonUserInput { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// /// Information specific to a subscription in the SUBSCRIPTION_STATE_CANCELED or SUBSCRIPTION_STATE_EXPIRED state. /// public class CanceledStateContext : Google.Apis.Requests.IDirectResponseSchema { /// Subscription was canceled by the developer. [Newtonsoft.Json.JsonPropertyAttribute("developerInitiatedCancellation")] public virtual DeveloperInitiatedCancellation DeveloperInitiatedCancellation { get; set; } /// Subscription was replaced by a new subscription. [Newtonsoft.Json.JsonPropertyAttribute("replacementCancellation")] public virtual ReplacementCancellation ReplacementCancellation { get; set; } /// Subscription was canceled by the system, for example because of a billing problem. [Newtonsoft.Json.JsonPropertyAttribute("systemInitiatedCancellation")] public virtual SystemInitiatedCancellation SystemInitiatedCancellation { get; set; } /// Subscription was canceled by user. [Newtonsoft.Json.JsonPropertyAttribute("userInitiatedCancellation")] public virtual UserInitiatedCancellation UserInitiatedCancellation { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Cancellation context of the purchases.subscriptionsv2.cancel API. public class CancellationContext : Google.Apis.Requests.IDirectResponseSchema { /// Required. The type of cancellation for the purchased subscription. [Newtonsoft.Json.JsonPropertyAttribute("cancellationType")] public virtual string CancellationType { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Details of when the order was canceled. public class CancellationEvent : Google.Apis.Requests.IDirectResponseSchema { private string _eventTimeRaw; private object _eventTime; /// The time when the order was canceled. [Newtonsoft.Json.JsonPropertyAttribute("eventTime")] public virtual string EventTimeRaw { get => _eventTimeRaw; set { _eventTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); _eventTimeRaw = value; } } /// representation of . [Newtonsoft.Json.JsonIgnoreAttribute] [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use EventTimeDateTimeOffset instead.")] public virtual object EventTime { get => _eventTime; set { _eventTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); _eventTime = value; } } /// representation of . [Newtonsoft.Json.JsonIgnoreAttribute] public virtual System.DateTimeOffset? EventTimeDateTimeOffset { get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(EventTimeRaw); set => EventTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); } /// The ETag of the item. public virtual string ETag { get; set; } } /// An entry of conversation between user and developer. public class Comment : Google.Apis.Requests.IDirectResponseSchema { /// A comment from a developer. [Newtonsoft.Json.JsonPropertyAttribute("developerComment")] public virtual DeveloperComment DeveloperComment { get; set; } /// A comment from a user. [Newtonsoft.Json.JsonPropertyAttribute("userComment")] public virtual UserComment UserComment { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Request message for ConvertRegionPrices. public class ConvertRegionPricesRequest : Google.Apis.Requests.IDirectResponseSchema { /// The intital price to convert other regions from. Tax exclusive. [Newtonsoft.Json.JsonPropertyAttribute("price")] public virtual Money Price { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Response message for ConvertRegionPrices. public class ConvertRegionPricesResponse : Google.Apis.Requests.IDirectResponseSchema { /// /// Converted other regions prices in USD and EUR, to use for countries where Play doesn't support a country's /// local currency. /// [Newtonsoft.Json.JsonPropertyAttribute("convertedOtherRegionsPrice")] public virtual ConvertedOtherRegionsPrice ConvertedOtherRegionsPrice { get; set; } /// Map from region code to converted region price. [Newtonsoft.Json.JsonPropertyAttribute("convertedRegionPrices")] public virtual System.Collections.Generic.IDictionary ConvertedRegionPrices { get; set; } /// The region version at which the prices were generated. [Newtonsoft.Json.JsonPropertyAttribute("regionVersion")] public virtual RegionsVersion RegionVersion { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Converted other regions prices. public class ConvertedOtherRegionsPrice : Google.Apis.Requests.IDirectResponseSchema { /// Price in EUR to use for the "Other regions" location exclusive of taxes. [Newtonsoft.Json.JsonPropertyAttribute("eurPrice")] public virtual Money EurPrice { get; set; } /// Price in USD to use for the "Other regions" location exclusive of taxes. [Newtonsoft.Json.JsonPropertyAttribute("usdPrice")] public virtual Money UsdPrice { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// A converted region price. public class ConvertedRegionPrice : Google.Apis.Requests.IDirectResponseSchema { /// The converted price tax inclusive. [Newtonsoft.Json.JsonPropertyAttribute("price")] public virtual Money Price { get; set; } /// The region code of the region. [Newtonsoft.Json.JsonPropertyAttribute("regionCode")] public virtual string RegionCode { get; set; } /// The tax amount of the converted price. [Newtonsoft.Json.JsonPropertyAttribute("taxAmount")] public virtual Money TaxAmount { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Country targeting specification. public class CountryTargeting : Google.Apis.Requests.IDirectResponseSchema { /// /// Countries to target, specified as two letter [CLDR /// codes](https://unicode.org/cldr/charts/latest/supplemental/territory_containment_un_m_49.html). /// [Newtonsoft.Json.JsonPropertyAttribute("countries")] public virtual System.Collections.Generic.IList Countries { get; set; } /// Include "rest of world" as well as explicitly targeted countries. [Newtonsoft.Json.JsonPropertyAttribute("includeRestOfWorld")] public virtual System.Nullable IncludeRestOfWorld { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Request message for CreateDraftAppRecovery. public class CreateDraftAppRecoveryRequest : Google.Apis.Requests.IDirectResponseSchema { /// /// Action type is remote in-app update. As a consequence of this action, a downloadable recovery module is also /// created for testing purposes. /// [Newtonsoft.Json.JsonPropertyAttribute("remoteInAppUpdate")] public virtual RemoteInAppUpdate RemoteInAppUpdate { get; set; } /// /// Specifies targeting criteria for the recovery action such as regions, android sdk versions, app versions /// etc. /// [Newtonsoft.Json.JsonPropertyAttribute("targeting")] public virtual Targeting Targeting { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Request message for DeactivateBasePlan. public class DeactivateBasePlanRequest : Google.Apis.Requests.IDirectResponseSchema { /// Required. The unique base plan ID of the base plan to deactivate. [Newtonsoft.Json.JsonPropertyAttribute("basePlanId")] public virtual string BasePlanId { get; set; } /// /// Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive. /// [Newtonsoft.Json.JsonPropertyAttribute("latencyTolerance")] public virtual string LatencyTolerance { get; set; } /// Required. The parent app (package name) of the base plan to deactivate. [Newtonsoft.Json.JsonPropertyAttribute("packageName")] public virtual string PackageName { get; set; } /// Required. The parent subscription (ID) of the base plan to deactivate. [Newtonsoft.Json.JsonPropertyAttribute("productId")] public virtual string ProductId { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Request message for DeactivateOneTimeProductOffer. public class DeactivateOneTimeProductOfferRequest : Google.Apis.Requests.IDirectResponseSchema { /// /// Optional. The latency tolerance for the propagation of this update. Defaults to latency-sensitive. /// [Newtonsoft.Json.JsonPropertyAttribute("latencyTolerance")] public virtual string LatencyTolerance { get; set; } /// Required. The offer ID of the offer to deactivate. [Newtonsoft.Json.JsonPropertyAttribute("offerId")] public virtual string OfferId { get; set; } /// Required. The parent app (package name) of the offer to deactivate. [Newtonsoft.Json.JsonPropertyAttribute("packageName")] public virtual string PackageName { get; set; } /// Required. The parent one-time product (ID) of the offer to deactivate. [Newtonsoft.Json.JsonPropertyAttribute("productId")] public virtual string ProductId { get; set; } /// Required. The parent purchase option (ID) of the offer to deactivate. [Newtonsoft.Json.JsonPropertyAttribute("purchaseOptionId")] public virtual string PurchaseOptionId { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Request message for UpdatePurchaseOptionState. public class DeactivatePurchaseOptionRequest : Google.Apis.Requests.IDirectResponseSchema { /// /// Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive. /// [Newtonsoft.Json.JsonPropertyAttribute("latencyTolerance")] public virtual string LatencyTolerance { get; set; } /// Required. The parent app (package name) of the purchase option to deactivate. [Newtonsoft.Json.JsonPropertyAttribute("packageName")] public virtual string PackageName { get; set; } /// Required. The parent one-time product (ID) of the purchase option to deactivate. [Newtonsoft.Json.JsonPropertyAttribute("productId")] public virtual string ProductId { get; set; } /// Required. The purchase option ID of the purchase option to deactivate. [Newtonsoft.Json.JsonPropertyAttribute("purchaseOptionId")] public virtual string PurchaseOptionId { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Request message for DeactivateSubscriptionOffer. public class DeactivateSubscriptionOfferRequest : Google.Apis.Requests.IDirectResponseSchema { /// Required. The parent base plan (ID) of the offer to deactivate. [Newtonsoft.Json.JsonPropertyAttribute("basePlanId")] public virtual string BasePlanId { get; set; } /// /// Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive. /// [Newtonsoft.Json.JsonPropertyAttribute("latencyTolerance")] public virtual string LatencyTolerance { get; set; } /// Required. The unique offer ID of the offer to deactivate. [Newtonsoft.Json.JsonPropertyAttribute("offerId")] public virtual string OfferId { get; set; } /// Required. The parent app (package name) of the offer to deactivate. [Newtonsoft.Json.JsonPropertyAttribute("packageName")] public virtual string PackageName { get; set; } /// Required. The parent subscription (ID) of the offer to deactivate. [Newtonsoft.Json.JsonPropertyAttribute("productId")] public virtual string ProductId { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Information related to deferred item replacement. public class DeferredItemRemoval : Google.Apis.Requests.IDirectResponseSchema { /// The ETag of the item. public virtual string ETag { get; set; } } /// Information related to deferred item replacement. public class DeferredItemReplacement : Google.Apis.Requests.IDirectResponseSchema { /// The product_id going to replace the existing product_id. [Newtonsoft.Json.JsonPropertyAttribute("productId")] public virtual string ProductId { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Request message for deleting an one-time product offer. public class DeleteOneTimeProductOfferRequest : Google.Apis.Requests.IDirectResponseSchema { /// /// Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive. /// [Newtonsoft.Json.JsonPropertyAttribute("latencyTolerance")] public virtual string LatencyTolerance { get; set; } /// Required. The unique offer ID of the offer to delete. [Newtonsoft.Json.JsonPropertyAttribute("offerId")] public virtual string OfferId { get; set; } /// Required. The parent app (package name) of the offer to delete. [Newtonsoft.Json.JsonPropertyAttribute("packageName")] public virtual string PackageName { get; set; } /// Required. The parent one-time product (ID) of the offer to delete. [Newtonsoft.Json.JsonPropertyAttribute("productId")] public virtual string ProductId { get; set; } /// Required. The parent purchase option (ID) of the offer to delete. [Newtonsoft.Json.JsonPropertyAttribute("purchaseOptionId")] public virtual string PurchaseOptionId { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Request message for deleting a one-time product. public class DeleteOneTimeProductRequest : Google.Apis.Requests.IDirectResponseSchema { /// /// Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive. /// [Newtonsoft.Json.JsonPropertyAttribute("latencyTolerance")] public virtual string LatencyTolerance { get; set; } /// Required. The parent app (package name) of the one-time product to delete. [Newtonsoft.Json.JsonPropertyAttribute("packageName")] public virtual string PackageName { get; set; } /// Required. The one-time product ID of the one-time product to delete. [Newtonsoft.Json.JsonPropertyAttribute("productId")] public virtual string ProductId { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Request message for deleting a purchase option. public class DeletePurchaseOptionRequest : Google.Apis.Requests.IDirectResponseSchema { /// /// Optional. This field has no effect for purchase options with no offers under them. For purchase options with /// associated offers: * If `force` is set to false (default), an error will be returned. * If `force` is set to /// true, any associated offers under the purchase option will be deleted. /// [Newtonsoft.Json.JsonPropertyAttribute("force")] public virtual System.Nullable Force { get; set; } /// /// Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive. /// [Newtonsoft.Json.JsonPropertyAttribute("latencyTolerance")] public virtual string LatencyTolerance { get; set; } /// Required. The parent app (package name) of the purchase option to delete. [Newtonsoft.Json.JsonPropertyAttribute("packageName")] public virtual string PackageName { get; set; } /// Required. The parent one-time product (ID) of the purchase option to delete. [Newtonsoft.Json.JsonPropertyAttribute("productId")] public virtual string ProductId { get; set; } /// Required. The purchase option ID of the purchase option to delete. [Newtonsoft.Json.JsonPropertyAttribute("purchaseOptionId")] public virtual string PurchaseOptionId { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Represents a deobfuscation file. public class DeobfuscationFile : Google.Apis.Requests.IDirectResponseSchema { /// The type of the deobfuscation file. [Newtonsoft.Json.JsonPropertyAttribute("symbolType")] public virtual string SymbolType { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Responses for the upload. public class DeobfuscationFilesUploadResponse : Google.Apis.Requests.IDirectResponseSchema { /// The uploaded Deobfuscation File configuration. [Newtonsoft.Json.JsonPropertyAttribute("deobfuscationFile")] public virtual DeobfuscationFile DeobfuscationFile { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Request message for DeployAppRecovery. public class DeployAppRecoveryRequest : Google.Apis.Requests.IDirectResponseSchema { /// The ETag of the item. public virtual string ETag { get; set; } } /// Response message for DeployAppRecovery. public class DeployAppRecoveryResponse : Google.Apis.Requests.IDirectResponseSchema { /// The ETag of the item. public virtual string ETag { get; set; } } /// Developer entry from conversation between user and developer. public class DeveloperComment : Google.Apis.Requests.IDirectResponseSchema { /// The last time at which this comment was updated. [Newtonsoft.Json.JsonPropertyAttribute("lastModified")] public virtual Timestamp LastModified { get; set; } /// The content of the comment, i.e. reply body. [Newtonsoft.Json.JsonPropertyAttribute("text")] public virtual string Text { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Information specific to cancellations initiated by developers. public class DeveloperInitiatedCancellation : Google.Apis.Requests.IDirectResponseSchema { /// The ETag of the item. public virtual string ETag { get; set; } } /// Represents a device feature. public class DeviceFeature : Google.Apis.Requests.IDirectResponseSchema { /// Name of the feature. [Newtonsoft.Json.JsonPropertyAttribute("featureName")] public virtual string FeatureName { get; set; } /// /// The feature version specified by android:glEsVersion or android:version in in the AndroidManifest. /// [Newtonsoft.Json.JsonPropertyAttribute("featureVersion")] public virtual System.Nullable FeatureVersion { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Targeting for a device feature. public class DeviceFeatureTargeting : Google.Apis.Requests.IDirectResponseSchema { /// Feature of the device. [Newtonsoft.Json.JsonPropertyAttribute("requiredFeature")] public virtual DeviceFeature RequiredFeature { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// /// A group of devices. A group is defined by a set of device selectors. A device belongs to the group if it matches /// any selector (logical OR). /// public class DeviceGroup : Google.Apis.Requests.IDirectResponseSchema { /// /// Device selectors for this group. A device matching any of the selectors is included in this group. /// [Newtonsoft.Json.JsonPropertyAttribute("deviceSelectors")] public virtual System.Collections.Generic.IList DeviceSelectors { get; set; } /// The name of the group. [Newtonsoft.Json.JsonPropertyAttribute("name")] public virtual string Name { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Identifier of a device. public class DeviceId : Google.Apis.Requests.IDirectResponseSchema { /// Value of Build.BRAND. [Newtonsoft.Json.JsonPropertyAttribute("buildBrand")] public virtual string BuildBrand { get; set; } /// Value of Build.DEVICE. [Newtonsoft.Json.JsonPropertyAttribute("buildDevice")] public virtual string BuildDevice { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Characteristics of the user's device. public class DeviceMetadata : Google.Apis.Requests.IDirectResponseSchema { /// Device CPU make, e.g. "Qualcomm" [Newtonsoft.Json.JsonPropertyAttribute("cpuMake")] public virtual string CpuMake { get; set; } /// Device CPU model, e.g. "MSM8974" [Newtonsoft.Json.JsonPropertyAttribute("cpuModel")] public virtual string CpuModel { get; set; } /// Device class (e.g. tablet) [Newtonsoft.Json.JsonPropertyAttribute("deviceClass")] public virtual string DeviceClass { get; set; } /// OpenGL version [Newtonsoft.Json.JsonPropertyAttribute("glEsVersion")] public virtual System.Nullable GlEsVersion { get; set; } /// Device manufacturer (e.g. Motorola) [Newtonsoft.Json.JsonPropertyAttribute("manufacturer")] public virtual string Manufacturer { get; set; } /// Comma separated list of native platforms (e.g. "arm", "arm7") [Newtonsoft.Json.JsonPropertyAttribute("nativePlatform")] public virtual string NativePlatform { get; set; } /// Device model name (e.g. Droid) [Newtonsoft.Json.JsonPropertyAttribute("productName")] public virtual string ProductName { get; set; } /// Device RAM in Megabytes, e.g. "2048" [Newtonsoft.Json.JsonPropertyAttribute("ramMb")] public virtual System.Nullable RamMb { get; set; } /// Screen density in DPI [Newtonsoft.Json.JsonPropertyAttribute("screenDensityDpi")] public virtual System.Nullable ScreenDensityDpi { get; set; } /// Screen height in pixels [Newtonsoft.Json.JsonPropertyAttribute("screenHeightPx")] public virtual System.Nullable ScreenHeightPx { get; set; } /// Screen width in pixels [Newtonsoft.Json.JsonPropertyAttribute("screenWidthPx")] public virtual System.Nullable ScreenWidthPx { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Conditions about a device's RAM capabilities. public class DeviceRam : Google.Apis.Requests.IDirectResponseSchema { /// Maximum RAM in bytes (bound excluded). [Newtonsoft.Json.JsonPropertyAttribute("maxBytes")] public virtual System.Nullable MaxBytes { get; set; } /// Minimum RAM in bytes (bound included). [Newtonsoft.Json.JsonPropertyAttribute("minBytes")] public virtual System.Nullable MinBytes { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// /// Selector for a device group. A selector consists of a set of conditions on the device that should all match /// (logical AND) to determine a device group eligibility. For instance, if a selector specifies RAM conditions, /// device model inclusion and device model exclusion, a device is considered to match if: device matches RAM /// conditions AND device matches one of the included device models AND device doesn't match excluded device models /// public class DeviceSelector : Google.Apis.Requests.IDirectResponseSchema { /// Conditions on the device's RAM. [Newtonsoft.Json.JsonPropertyAttribute("deviceRam")] public virtual DeviceRam DeviceRam { get; set; } /// Device models excluded by this selector, even if they match all other conditions. [Newtonsoft.Json.JsonPropertyAttribute("excludedDeviceIds")] public virtual System.Collections.Generic.IList ExcludedDeviceIds { get; set; } /// /// A device that has any of these system features is excluded by this selector, even if it matches all other /// conditions. /// [Newtonsoft.Json.JsonPropertyAttribute("forbiddenSystemFeatures")] public virtual System.Collections.Generic.IList ForbiddenSystemFeatures { get; set; } /// Device models included by this selector. [Newtonsoft.Json.JsonPropertyAttribute("includedDeviceIds")] public virtual System.Collections.Generic.IList IncludedDeviceIds { get; set; } /// A device needs to have all these system features to be included by the selector. [Newtonsoft.Json.JsonPropertyAttribute("requiredSystemFeatures")] public virtual System.Collections.Generic.IList RequiredSystemFeatures { get; set; } /// Optional. The SoCs included by this selector. Only works for Android S+ devices. [Newtonsoft.Json.JsonPropertyAttribute("systemOnChips")] public virtual System.Collections.Generic.IList SystemOnChips { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// The device spec used to generate a system APK. public class DeviceSpec : Google.Apis.Requests.IDirectResponseSchema { /// Screen dpi. [Newtonsoft.Json.JsonPropertyAttribute("screenDensity")] public virtual System.Nullable ScreenDensity { get; set; } /// /// Supported ABI architectures in the order of preference. The values should be the string as reported by the /// platform, e.g. "armeabi-v7a", "x86_64". /// [Newtonsoft.Json.JsonPropertyAttribute("supportedAbis")] public virtual System.Collections.Generic.IList SupportedAbis { get; set; } /// All installed locales represented as BCP-47 strings, e.g. "en-US". [Newtonsoft.Json.JsonPropertyAttribute("supportedLocales")] public virtual System.Collections.Generic.IList SupportedLocales { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// /// A single device tier. Devices matching any of the device groups in device_group_names are considered to match /// the tier. /// public class DeviceTier : Google.Apis.Requests.IDirectResponseSchema { /// /// Groups of devices included in this tier. These groups must be defined explicitly under device_groups in this /// configuration. /// [Newtonsoft.Json.JsonPropertyAttribute("deviceGroupNames")] public virtual System.Collections.Generic.IList DeviceGroupNames { get; set; } /// /// The priority level of the tier. Tiers are evaluated in descending order of level: the highest level tier has /// the highest priority. The highest tier matching a given device is selected for that device. You should use a /// contiguous range of levels for your tiers in a tier set; tier levels in a tier set must be unique. For /// instance, if your tier set has 4 tiers (including the global fallback), you should define tiers 1, 2 and 3 /// in this configuration. Note: tier 0 is implicitly defined as a global fallback and selected for devices that /// don't match any of the tiers explicitly defined here. You mustn't define level 0 explicitly in this /// configuration. /// [Newtonsoft.Json.JsonPropertyAttribute("level")] public virtual System.Nullable Level { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Configuration describing device targeting criteria for the content of an app. public class DeviceTierConfig : Google.Apis.Requests.IDirectResponseSchema { /// Definition of device groups for the app. [Newtonsoft.Json.JsonPropertyAttribute("deviceGroups")] public virtual System.Collections.Generic.IList DeviceGroups { get; set; } /// Output only. The device tier config ID. [Newtonsoft.Json.JsonPropertyAttribute("deviceTierConfigId")] public virtual System.Nullable DeviceTierConfigId { get; set; } /// Definition of the set of device tiers for the app. [Newtonsoft.Json.JsonPropertyAttribute("deviceTierSet")] public virtual DeviceTierSet DeviceTierSet { get; set; } /// Definition of user country sets for the app. [Newtonsoft.Json.JsonPropertyAttribute("userCountrySets")] public virtual System.Collections.Generic.IList UserCountrySets { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// /// A set of device tiers. A tier set determines what variation of app content gets served to a specific device, for /// device-targeted content. You should assign a priority level to each tier, which determines the ordering by which /// they are evaluated by Play. See the documentation of DeviceTier.level for more details. /// public class DeviceTierSet : Google.Apis.Requests.IDirectResponseSchema { /// Device tiers belonging to the set. [Newtonsoft.Json.JsonPropertyAttribute("deviceTiers")] public virtual System.Collections.Generic.IList DeviceTiers { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// An expansion file. The resource for ExpansionFilesService. public class ExpansionFile : Google.Apis.Requests.IDirectResponseSchema { /// /// If set, this field indicates that this APK has an expansion file uploaded to it: this APK does not reference /// another APK's expansion file. The field's value is the size of the uploaded expansion file in bytes. /// [Newtonsoft.Json.JsonPropertyAttribute("fileSize")] public virtual System.Nullable FileSize { get; set; } /// /// If set, this APK's expansion file references another APK's expansion file. The file_size field will not be /// set. /// [Newtonsoft.Json.JsonPropertyAttribute("referencesVersion")] public virtual System.Nullable ReferencesVersion { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Response for uploading an expansion file. public class ExpansionFilesUploadResponse : Google.Apis.Requests.IDirectResponseSchema { /// The uploaded expansion file configuration. [Newtonsoft.Json.JsonPropertyAttribute("expansionFile")] public virtual ExpansionFile ExpansionFile { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// User account identifier in the third-party service. public class ExternalAccountIdentifiers : Google.Apis.Requests.IDirectResponseSchema { /// /// User account identifier in the third-party service. Only present if account linking happened as part of the /// subscription purchase flow. /// [Newtonsoft.Json.JsonPropertyAttribute("externalAccountId")] public virtual string ExternalAccountId { get; set; } /// /// An obfuscated version of the id that is uniquely associated with the user's account in your app. Present for /// the following purchases: * If account linking happened as part of the subscription purchase flow. * It was /// specified using /// https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.Builder#setobfuscatedaccountid /// when the purchase was made. /// [Newtonsoft.Json.JsonPropertyAttribute("obfuscatedExternalAccountId")] public virtual string ObfuscatedExternalAccountId { get; set; } /// /// An obfuscated version of the id that is uniquely associated with the user's profile in your app. Only /// present if specified using /// https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.Builder#setobfuscatedprofileid /// when the purchase was made. /// [Newtonsoft.Json.JsonPropertyAttribute("obfuscatedExternalProfileId")] public virtual string ObfuscatedExternalProfileId { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// User account identifier in your app. public class ExternalAccountIds : Google.Apis.Requests.IDirectResponseSchema { /// /// Optional. Specifies an optional obfuscated string that is uniquely associated with the purchaser's user /// account in your app. If you pass this value, Google Play can use it to detect irregular activity. Do not use /// this field to store any Personally Identifiable Information (PII) such as emails in cleartext. Attempting to /// store PII in this field will result in purchases being blocked. Google Play recommends that you use either /// encryption or a one-way hash to generate an obfuscated identifier to send to Google Play. This identifier is /// limited to 64 characters. This field can only be set for resubscription purchases. See /// https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.Builder#setobfuscatedaccountid /// to set this field for purchases made using the standard in-app billing flow. /// [Newtonsoft.Json.JsonPropertyAttribute("obfuscatedAccountId")] public virtual string ObfuscatedAccountId { get; set; } /// /// Optional. Specifies an optional obfuscated string that is uniquely associated with the purchaser's user /// profile in your app. If you pass this value, Google Play can use it to detect irregular activity. Do not use /// this field to store any Personally Identifiable Information (PII) such as emails in cleartext. Attempting to /// store PII in this field will result in purchases being blocked. Google Play recommends that you use either /// encryption or a one-way hash to generate an obfuscated identifier to send to Google Play. This identifier is /// limited to 64 characters. This field can only be set for resubscription purchases. See /// https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.Builder#setobfuscatedprofileid /// to set this field for purchases made using the standard in-app billing flow. /// [Newtonsoft.Json.JsonPropertyAttribute("obfuscatedProfileId")] public virtual string ObfuscatedProfileId { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Reporting details unique to the external offers program. public class ExternalOfferDetails : Google.Apis.Requests.IDirectResponseSchema { /// /// Optional. The external transaction id associated with the app download event through an external link. /// Required when reporting transactions made in externally installed apps. /// [Newtonsoft.Json.JsonPropertyAttribute("appDownloadEventExternalTransactionId")] public virtual string AppDownloadEventExternalTransactionId { get; set; } /// /// Optional. The category of the downloaded app though this transaction. This must match the category provided /// in Play Console during the external app verification process. Only required for app downloads. /// [Newtonsoft.Json.JsonPropertyAttribute("installedAppCategory")] public virtual string InstalledAppCategory { get; set; } /// /// Optional. The package name of the app downloaded through this transaction. Required when link_type is /// LINK_TO_APP_DOWNLOAD. /// [Newtonsoft.Json.JsonPropertyAttribute("installedAppPackage")] public virtual string InstalledAppPackage { get; set; } /// /// Optional. The type of content being reported by this transaction. Required when reporting app downloads or /// purchased digital content offers made in app installed through Google Play. /// [Newtonsoft.Json.JsonPropertyAttribute("linkType")] public virtual string LinkType { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Details of an external subscription. public class ExternalSubscription : Google.Apis.Requests.IDirectResponseSchema { /// Required. The type of the external subscription. [Newtonsoft.Json.JsonPropertyAttribute("subscriptionType")] public virtual string SubscriptionType { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// The details of an external transaction. public class ExternalTransaction : Google.Apis.Requests.IDirectResponseSchema { private string _createTimeRaw; private object _createTime; /// /// Output only. The time when this transaction was created. This is the time when Google was notified of the /// transaction. /// [Newtonsoft.Json.JsonPropertyAttribute("createTime")] public virtual string CreateTimeRaw { get => _createTimeRaw; set { _createTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); _createTimeRaw = value; } } /// representation of . [Newtonsoft.Json.JsonIgnoreAttribute] [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")] public virtual object CreateTime { get => _createTime; set { _createTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); _createTime = value; } } /// representation of . [Newtonsoft.Json.JsonIgnoreAttribute] public virtual System.DateTimeOffset? CreateTimeDateTimeOffset { get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(CreateTimeRaw); set => CreateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); } /// /// Output only. The current transaction amount before tax. This represents the current pre-tax amount including /// any refunds that may have been applied to this transaction. /// [Newtonsoft.Json.JsonPropertyAttribute("currentPreTaxAmount")] public virtual Price CurrentPreTaxAmount { get; set; } /// /// Output only. The current tax amount. This represents the current tax amount including any refunds that may /// have been applied to this transaction. /// [Newtonsoft.Json.JsonPropertyAttribute("currentTaxAmount")] public virtual Price CurrentTaxAmount { get; set; } /// Optional. Details necessary to accurately report external offers transactions. [Newtonsoft.Json.JsonPropertyAttribute("externalOfferDetails")] public virtual ExternalOfferDetails ExternalOfferDetails { get; set; } /// /// Output only. The id of this transaction. All transaction ids under the same package name must be unique. Set /// when creating the external transaction. /// [Newtonsoft.Json.JsonPropertyAttribute("externalTransactionId")] public virtual string ExternalTransactionId { get; set; } /// This is a one-time transaction and not part of a subscription. [Newtonsoft.Json.JsonPropertyAttribute("oneTimeTransaction")] public virtual OneTimeExternalTransaction OneTimeTransaction { get; set; } /// /// Required. The original transaction amount before taxes. This represents the pre-tax amount originally /// notified to Google before any refunds were applied. /// [Newtonsoft.Json.JsonPropertyAttribute("originalPreTaxAmount")] public virtual Price OriginalPreTaxAmount { get; set; } /// /// Required. The original tax amount. This represents the tax amount originally notified to Google before any /// refunds were applied. /// [Newtonsoft.Json.JsonPropertyAttribute("originalTaxAmount")] public virtual Price OriginalTaxAmount { get; set; } /// /// Output only. The resource name of the external transaction. The package name of the application the inapp /// products were sold (for example, 'com.some.app'). /// [Newtonsoft.Json.JsonPropertyAttribute("packageName")] public virtual string PackageName { get; set; } /// This transaction is part of a recurring series of transactions. [Newtonsoft.Json.JsonPropertyAttribute("recurringTransaction")] public virtual RecurringExternalTransaction RecurringTransaction { get; set; } /// /// Output only. If set, this transaction was a test purchase. Google will not charge for a test transaction. /// [Newtonsoft.Json.JsonPropertyAttribute("testPurchase")] public virtual ExternalTransactionTestPurchase TestPurchase { get; set; } /// /// Optional. The transaction program code, used to help determine service fee for eligible apps participating /// in partner programs. Developers participating in the Play Media Experience Program /// (https://play.google.com/console/about/programs/mediaprogram/) must provide the program code when reporting /// alternative billing transactions. If you are an eligible developer, please contact your BDM for more /// information on how to set this field. Note: this field can not be used for external offers transactions. /// [Newtonsoft.Json.JsonPropertyAttribute("transactionProgramCode")] public virtual System.Nullable TransactionProgramCode { get; set; } /// Output only. The current state of the transaction. [Newtonsoft.Json.JsonPropertyAttribute("transactionState")] public virtual string TransactionState { get; set; } private string _transactionTimeRaw; private object _transactionTime; /// Required. The time when the transaction was completed. [Newtonsoft.Json.JsonPropertyAttribute("transactionTime")] public virtual string TransactionTimeRaw { get => _transactionTimeRaw; set { _transactionTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); _transactionTimeRaw = value; } } /// representation of . [Newtonsoft.Json.JsonIgnoreAttribute] [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use TransactionTimeDateTimeOffset instead.")] public virtual object TransactionTime { get => _transactionTime; set { _transactionTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); _transactionTime = value; } } /// /// representation of . /// [Newtonsoft.Json.JsonIgnoreAttribute] public virtual System.DateTimeOffset? TransactionTimeDateTimeOffset { get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(TransactionTimeRaw); set => TransactionTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); } /// Required. User address for tax computation. [Newtonsoft.Json.JsonPropertyAttribute("userTaxAddress")] public virtual ExternalTransactionAddress UserTaxAddress { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// User's address for the external transaction. public class ExternalTransactionAddress : Google.Apis.Requests.IDirectResponseSchema { /// /// Optional. Top-level administrative subdivision of the country/region. Only required for transactions in /// India. Valid values are "ANDAMAN AND NICOBAR ISLANDS", "ANDHRA PRADESH", "ARUNACHAL PRADESH", "ASSAM", /// "BIHAR", "CHANDIGARH", "CHHATTISGARH", "DADRA AND NAGAR HAVELI", "DADRA AND NAGAR HAVELI AND DAMAN AND DIU", /// "DAMAN AND DIU", "DELHI", "GOA", "GUJARAT", "HARYANA", "HIMACHAL PRADESH", "JAMMU AND KASHMIR", "JHARKHAND", /// "KARNATAKA", "KERALA", "LADAKH", "LAKSHADWEEP", "MADHYA PRADESH", "MAHARASHTRA", "MANIPUR", "MEGHALAYA", /// "MIZORAM", "NAGALAND", "ODISHA", "PUDUCHERRY", "PUNJAB", "RAJASTHAN", "SIKKIM", "TAMIL NADU", "TELANGANA", /// "TRIPURA", "UTTAR PRADESH", "UTTARAKHAND", and "WEST BENGAL". /// [Newtonsoft.Json.JsonPropertyAttribute("administrativeArea")] public virtual string AdministrativeArea { get; set; } /// Required. Two letter region code based on ISO-3166-1 Alpha-2 (UN region codes). [Newtonsoft.Json.JsonPropertyAttribute("regionCode")] public virtual string RegionCode { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// /// Represents a transaction performed using a test account. These transactions will not be charged by Google. /// public class ExternalTransactionTestPurchase : Google.Apis.Requests.IDirectResponseSchema { /// The ETag of the item. public virtual string ETag { get; set; } } /// /// Defines an APK available for this application that is hosted externally and not uploaded to Google Play. This /// function is only available to organizations using Managed Play whose application is configured to restrict /// distribution to the organizations. /// public class ExternallyHostedApk : Google.Apis.Requests.IDirectResponseSchema { /// The application label. [Newtonsoft.Json.JsonPropertyAttribute("applicationLabel")] public virtual string ApplicationLabel { get; set; } /// /// A certificate (or array of certificates if a certificate-chain is used) used to sign this APK, represented /// as a base64 encoded byte array. /// [Newtonsoft.Json.JsonPropertyAttribute("certificateBase64s")] public virtual System.Collections.Generic.IList CertificateBase64s { get; set; } /// The URL at which the APK is hosted. This must be an https URL. [Newtonsoft.Json.JsonPropertyAttribute("externallyHostedUrl")] public virtual string ExternallyHostedUrl { get; set; } /// The sha1 checksum of this APK, represented as a base64 encoded byte array. [Newtonsoft.Json.JsonPropertyAttribute("fileSha1Base64")] public virtual string FileSha1Base64 { get; set; } /// The sha256 checksum of this APK, represented as a base64 encoded byte array. [Newtonsoft.Json.JsonPropertyAttribute("fileSha256Base64")] public virtual string FileSha256Base64 { get; set; } /// The file size in bytes of this APK. [Newtonsoft.Json.JsonPropertyAttribute("fileSize")] public virtual System.Nullable FileSize { get; set; } /// The icon image from the APK, as a base64 encoded byte array. [Newtonsoft.Json.JsonPropertyAttribute("iconBase64")] public virtual string IconBase64 { get; set; } /// The maximum SDK supported by this APK (optional). [Newtonsoft.Json.JsonPropertyAttribute("maximumSdk")] public virtual System.Nullable MaximumSdk { get; set; } /// The minimum SDK targeted by this APK. [Newtonsoft.Json.JsonPropertyAttribute("minimumSdk")] public virtual System.Nullable MinimumSdk { get; set; } /// The native code environments supported by this APK (optional). [Newtonsoft.Json.JsonPropertyAttribute("nativeCodes")] public virtual System.Collections.Generic.IList NativeCodes { get; set; } /// The package name. [Newtonsoft.Json.JsonPropertyAttribute("packageName")] public virtual string PackageName { get; set; } /// The features required by this APK (optional). [Newtonsoft.Json.JsonPropertyAttribute("usesFeatures")] public virtual System.Collections.Generic.IList UsesFeatures { get; set; } /// The permissions requested by this APK. [Newtonsoft.Json.JsonPropertyAttribute("usesPermissions")] public virtual System.Collections.Generic.IList UsesPermissions { get; set; } /// The version code of this APK. [Newtonsoft.Json.JsonPropertyAttribute("versionCode")] public virtual System.Nullable VersionCode { get; set; } /// The version name of this APK. [Newtonsoft.Json.JsonPropertyAttribute("versionName")] public virtual string VersionName { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Details of a free trial pricing phase. public class FreeTrialDetails : Google.Apis.Requests.IDirectResponseSchema { /// The ETag of the item. public virtual string ETag { get; set; } } /// A full refund of the remaining amount of a transaction. public class FullRefund : Google.Apis.Requests.IDirectResponseSchema { /// The ETag of the item. public virtual string ETag { get; set; } } /// Response to list generated APKs. public class GeneratedApksListResponse : Google.Apis.Requests.IDirectResponseSchema { /// All generated APKs, grouped by the APK signing key. [Newtonsoft.Json.JsonPropertyAttribute("generatedApks")] public virtual System.Collections.Generic.IList GeneratedApks { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// /// Download metadata for split, standalone and universal APKs, as well as asset pack slices, signed with a given /// key. /// public class GeneratedApksPerSigningKey : Google.Apis.Requests.IDirectResponseSchema { /// SHA256 hash of the APK signing public key certificate. [Newtonsoft.Json.JsonPropertyAttribute("certificateSha256Hash")] public virtual string CertificateSha256Hash { get; set; } /// /// List of asset pack slices which will be served for this app bundle, signed with a key corresponding to /// certificate_sha256_hash. /// [Newtonsoft.Json.JsonPropertyAttribute("generatedAssetPackSlices")] public virtual System.Collections.Generic.IList GeneratedAssetPackSlices { get; set; } /// /// Generated recovery apks for recovery actions signed with a key corresponding to certificate_sha256_hash. /// This includes all generated recovery APKs, also those in draft or cancelled state. This field is not set if /// no recovery actions were created for this signing key. /// [Newtonsoft.Json.JsonPropertyAttribute("generatedRecoveryModules")] public virtual System.Collections.Generic.IList GeneratedRecoveryModules { get; set; } /// List of generated split APKs, signed with a key corresponding to certificate_sha256_hash. [Newtonsoft.Json.JsonPropertyAttribute("generatedSplitApks")] public virtual System.Collections.Generic.IList GeneratedSplitApks { get; set; } /// /// List of generated standalone APKs, signed with a key corresponding to certificate_sha256_hash. /// [Newtonsoft.Json.JsonPropertyAttribute("generatedStandaloneApks")] public virtual System.Collections.Generic.IList GeneratedStandaloneApks { get; set; } /// /// Generated universal APK, signed with a key corresponding to certificate_sha256_hash. This field is not set /// if no universal APK was generated for this signing key. /// [Newtonsoft.Json.JsonPropertyAttribute("generatedUniversalApk")] public virtual GeneratedUniversalApk GeneratedUniversalApk { get; set; } /// Contains targeting information about the generated apks. [Newtonsoft.Json.JsonPropertyAttribute("targetingInfo")] public virtual TargetingInfo TargetingInfo { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Download metadata for an asset pack slice. public class GeneratedAssetPackSlice : Google.Apis.Requests.IDirectResponseSchema { /// /// Download ID, which uniquely identifies the APK to download. Should be supplied to `generatedapks.download` /// method. /// [Newtonsoft.Json.JsonPropertyAttribute("downloadId")] public virtual string DownloadId { get; set; } /// Name of the module that this asset slice belongs to. [Newtonsoft.Json.JsonPropertyAttribute("moduleName")] public virtual string ModuleName { get; set; } /// Asset slice ID. [Newtonsoft.Json.JsonPropertyAttribute("sliceId")] public virtual string SliceId { get; set; } /// Asset module version. [Newtonsoft.Json.JsonPropertyAttribute("version")] public virtual System.Nullable Version { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Download metadata for an app recovery module. public class GeneratedRecoveryApk : Google.Apis.Requests.IDirectResponseSchema { /// /// Download ID, which uniquely identifies the APK to download. Should be supplied to `generatedapks.download` /// method. /// [Newtonsoft.Json.JsonPropertyAttribute("downloadId")] public virtual string DownloadId { get; set; } /// Name of the module which recovery apk belongs to. [Newtonsoft.Json.JsonPropertyAttribute("moduleName")] public virtual string ModuleName { get; set; } /// ID of the recovery action. [Newtonsoft.Json.JsonPropertyAttribute("recoveryId")] public virtual System.Nullable RecoveryId { get; set; } /// The status of the recovery action corresponding to the recovery apk. [Newtonsoft.Json.JsonPropertyAttribute("recoveryStatus")] public virtual string RecoveryStatus { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Download metadata for a split APK. public class GeneratedSplitApk : Google.Apis.Requests.IDirectResponseSchema { /// /// Download ID, which uniquely identifies the APK to download. Should be supplied to `generatedapks.download` /// method. /// [Newtonsoft.Json.JsonPropertyAttribute("downloadId")] public virtual string DownloadId { get; set; } /// Name of the module that this APK belongs to. [Newtonsoft.Json.JsonPropertyAttribute("moduleName")] public virtual string ModuleName { get; set; } /// Split ID. Empty for the main split of the base module. [Newtonsoft.Json.JsonPropertyAttribute("splitId")] public virtual string SplitId { get; set; } /// ID of the generated variant. [Newtonsoft.Json.JsonPropertyAttribute("variantId")] public virtual System.Nullable VariantId { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Download metadata for a standalone APK. public class GeneratedStandaloneApk : Google.Apis.Requests.IDirectResponseSchema { /// /// Download ID, which uniquely identifies the APK to download. Should be supplied to `generatedapks.download` /// method. /// [Newtonsoft.Json.JsonPropertyAttribute("downloadId")] public virtual string DownloadId { get; set; } /// ID of the generated variant. [Newtonsoft.Json.JsonPropertyAttribute("variantId")] public virtual System.Nullable VariantId { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Download metadata for a universal APK. public class GeneratedUniversalApk : Google.Apis.Requests.IDirectResponseSchema { /// /// Download ID, which uniquely identifies the APK to download. Should be supplied to `generatedapks.download` /// method. /// [Newtonsoft.Json.JsonPropertyAttribute("downloadId")] public virtual string DownloadId { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Request message for GetOneTimeProductOffers. public class GetOneTimeProductOfferRequest : Google.Apis.Requests.IDirectResponseSchema { /// Required. The unique offer ID of the offer to get. [Newtonsoft.Json.JsonPropertyAttribute("offerId")] public virtual string OfferId { get; set; } /// Required. The parent app (package name) of the offer to get. [Newtonsoft.Json.JsonPropertyAttribute("packageName")] public virtual string PackageName { get; set; } /// Required. The parent one-time product (ID) of the offer to get. [Newtonsoft.Json.JsonPropertyAttribute("productId")] public virtual string ProductId { get; set; } /// Required. The parent purchase option (ID) of the offer to get. [Newtonsoft.Json.JsonPropertyAttribute("purchaseOptionId")] public virtual string PurchaseOptionId { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Request message for GetSubscriptionOffer. public class GetSubscriptionOfferRequest : Google.Apis.Requests.IDirectResponseSchema { /// Required. The parent base plan (ID) of the offer to get. [Newtonsoft.Json.JsonPropertyAttribute("basePlanId")] public virtual string BasePlanId { get; set; } /// Required. The unique offer ID of the offer to get. [Newtonsoft.Json.JsonPropertyAttribute("offerId")] public virtual string OfferId { get; set; } /// Required. The parent app (package name) of the offer to get. [Newtonsoft.Json.JsonPropertyAttribute("packageName")] public virtual string PackageName { get; set; } /// Required. The parent subscription (ID) of the offer to get. [Newtonsoft.Json.JsonPropertyAttribute("productId")] public virtual string ProductId { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// An access grant resource. public class Grant : Google.Apis.Requests.IDirectResponseSchema { /// The permissions granted to the user for this app. [Newtonsoft.Json.JsonPropertyAttribute("appLevelPermissions")] public virtual System.Collections.Generic.IList AppLevelPermissions { get; set; } /// /// Required. Resource name for this grant, following the pattern /// "developers/{developer}/users/{email}/grants/{package_name}". If this grant is for a draft app, the app ID /// will be used in this resource name instead of the package name. /// [Newtonsoft.Json.JsonPropertyAttribute("name")] public virtual string Name { get; set; } /// Immutable. The package name of the app. This will be empty for draft apps. [Newtonsoft.Json.JsonPropertyAttribute("packageName")] public virtual string PackageName { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// An uploaded image. The resource for ImagesService. public class Image : Google.Apis.Requests.IDirectResponseSchema { /// A unique id representing this image. [Newtonsoft.Json.JsonPropertyAttribute("id")] public virtual string Id { get; set; } /// A sha1 hash of the image. [Newtonsoft.Json.JsonPropertyAttribute("sha1")] public virtual string Sha1 { get; set; } /// A sha256 hash of the image. [Newtonsoft.Json.JsonPropertyAttribute("sha256")] public virtual string Sha256 { get; set; } /// A URL that will serve a preview of the image. [Newtonsoft.Json.JsonPropertyAttribute("url")] public virtual string Url { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Response for deleting all images. public class ImagesDeleteAllResponse : Google.Apis.Requests.IDirectResponseSchema { /// The deleted images. [Newtonsoft.Json.JsonPropertyAttribute("deleted")] public virtual System.Collections.Generic.IList Deleted { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Response listing all images. public class ImagesListResponse : Google.Apis.Requests.IDirectResponseSchema { /// All listed Images. [Newtonsoft.Json.JsonPropertyAttribute("images")] public virtual System.Collections.Generic.IList Images { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Response for uploading an image. public class ImagesUploadResponse : Google.Apis.Requests.IDirectResponseSchema { /// The uploaded image. [Newtonsoft.Json.JsonPropertyAttribute("image")] public virtual Image Image { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// An in-app product. The resource for InappproductsService. public class InAppProduct : Google.Apis.Requests.IDirectResponseSchema { /// Default language of the localized data, as defined by BCP-47. e.g. "en-US". [Newtonsoft.Json.JsonPropertyAttribute("defaultLanguage")] public virtual string DefaultLanguage { get; set; } /// /// Default price. Cannot be zero, as in-app products are never free. Always in the developer's Checkout /// merchant currency. /// [Newtonsoft.Json.JsonPropertyAttribute("defaultPrice")] public virtual Price DefaultPrice { get; set; } /// /// Grace period of the subscription, specified in ISO 8601 format. Allows developers to give their subscribers /// a grace period when the payment for the new recurrence period is declined. Acceptable values are P0D (zero /// days), P3D (three days), P7D (seven days), P14D (14 days), and P30D (30 days). /// [Newtonsoft.Json.JsonPropertyAttribute("gracePeriod")] public virtual string GracePeriod { get; set; } /// /// List of localized title and description data. Map key is the language of the localized data, as defined by /// BCP-47, e.g. "en-US". /// [Newtonsoft.Json.JsonPropertyAttribute("listings")] public virtual System.Collections.Generic.IDictionary Listings { get; set; } /// Details about taxes and legal compliance. Only applicable to managed products. [Newtonsoft.Json.JsonPropertyAttribute("managedProductTaxesAndComplianceSettings")] public virtual ManagedProductTaxAndComplianceSettings ManagedProductTaxesAndComplianceSettings { get; set; } /// Package name of the parent app. [Newtonsoft.Json.JsonPropertyAttribute("packageName")] public virtual string PackageName { get; set; } /// /// Prices per buyer region. None of these can be zero, as in-app products are never free. Map key is region /// code, as defined by ISO 3166-2. /// [Newtonsoft.Json.JsonPropertyAttribute("prices")] public virtual System.Collections.Generic.IDictionary Prices { get; set; } /// The type of the product, e.g. a recurring subscription. [Newtonsoft.Json.JsonPropertyAttribute("purchaseType")] public virtual string PurchaseType { get; set; } /// Stock-keeping-unit (SKU) of the product, unique within an app. [Newtonsoft.Json.JsonPropertyAttribute("sku")] public virtual string Sku { get; set; } /// The status of the product, e.g. whether it's active. [Newtonsoft.Json.JsonPropertyAttribute("status")] public virtual string Status { get; set; } /// /// Subscription period, specified in ISO 8601 format. Acceptable values are P1W (one week), P1M (one month), /// P3M (three months), P6M (six months), and P1Y (one year). /// [Newtonsoft.Json.JsonPropertyAttribute("subscriptionPeriod")] public virtual string SubscriptionPeriod { get; set; } /// Details about taxes and legal compliance. Only applicable to subscription products. [Newtonsoft.Json.JsonPropertyAttribute("subscriptionTaxesAndComplianceSettings")] public virtual SubscriptionTaxAndComplianceSettings SubscriptionTaxesAndComplianceSettings { get; set; } /// /// Trial period, specified in ISO 8601 format. Acceptable values are anything between P7D (seven days) and /// P999D (999 days). /// [Newtonsoft.Json.JsonPropertyAttribute("trialPeriod")] public virtual string TrialPeriod { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Store listing of a single in-app product. public class InAppProductListing : Google.Apis.Requests.IDirectResponseSchema { /// Localized entitlement benefits for a subscription. [Newtonsoft.Json.JsonPropertyAttribute("benefits")] public virtual System.Collections.Generic.IList Benefits { get; set; } /// Description for the store listing. [Newtonsoft.Json.JsonPropertyAttribute("description")] public virtual string Description { get; set; } /// Title for the store listing. [Newtonsoft.Json.JsonPropertyAttribute("title")] public virtual string Title { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Request to delete multiple in-app products. public class InappproductsBatchDeleteRequest : Google.Apis.Requests.IDirectResponseSchema { /// /// Individual delete requests. At least one request is required. Can contain up to 100 requests. All requests /// must correspond to different in-app products. /// [Newtonsoft.Json.JsonPropertyAttribute("requests")] public virtual System.Collections.Generic.IList Requests { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Response message for BatchGetSubscriptions endpoint. public class InappproductsBatchGetResponse : Google.Apis.Requests.IDirectResponseSchema { /// The list of requested in-app products, in the same order as the request. [Newtonsoft.Json.JsonPropertyAttribute("inappproduct")] public virtual System.Collections.Generic.IList Inappproduct { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Request to update or insert one or more in-app products. public class InappproductsBatchUpdateRequest : Google.Apis.Requests.IDirectResponseSchema { /// /// Required. Individual update requests. At least one request is required. Can contain up to 100 requests. All /// requests must correspond to different in-app products. /// [Newtonsoft.Json.JsonPropertyAttribute("requests")] public virtual System.Collections.Generic.IList Requests { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Response for a batch in-app product update. public class InappproductsBatchUpdateResponse : Google.Apis.Requests.IDirectResponseSchema { /// The updated or inserted in-app products. [Newtonsoft.Json.JsonPropertyAttribute("inappproducts")] public virtual System.Collections.Generic.IList Inappproducts { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Request to delete an in-app product. public class InappproductsDeleteRequest : Google.Apis.Requests.IDirectResponseSchema { /// /// Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive. /// [Newtonsoft.Json.JsonPropertyAttribute("latencyTolerance")] public virtual string LatencyTolerance { get; set; } /// Package name of the app. [Newtonsoft.Json.JsonPropertyAttribute("packageName")] public virtual string PackageName { get; set; } /// Unique identifier for the in-app product. [Newtonsoft.Json.JsonPropertyAttribute("sku")] public virtual string Sku { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Response listing all in-app products. public class InappproductsListResponse : Google.Apis.Requests.IDirectResponseSchema { /// All in-app products. [Newtonsoft.Json.JsonPropertyAttribute("inappproduct")] public virtual System.Collections.Generic.IList Inappproduct { get; set; } /// The kind of this response ("androidpublisher#inappproductsListResponse"). [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// Deprecated and unset. [Newtonsoft.Json.JsonPropertyAttribute("pageInfo")] public virtual PageInfo PageInfo { get; set; } /// Pagination token, to handle a number of products that is over one page. [Newtonsoft.Json.JsonPropertyAttribute("tokenPagination")] public virtual TokenPagination TokenPagination { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Request to update an in-app product. public class InappproductsUpdateRequest : Google.Apis.Requests.IDirectResponseSchema { /// /// If set to true, and the in-app product with the given package_name and sku doesn't exist, the in-app product /// will be created. /// [Newtonsoft.Json.JsonPropertyAttribute("allowMissing")] public virtual System.Nullable AllowMissing { get; set; } /// /// If true the prices for all regions targeted by the parent app that don't have a price specified for this /// in-app product will be auto converted to the target currency based on the default price. Defaults to false. /// [Newtonsoft.Json.JsonPropertyAttribute("autoConvertMissingPrices")] public virtual System.Nullable AutoConvertMissingPrices { get; set; } /// The new in-app product. [Newtonsoft.Json.JsonPropertyAttribute("inappproduct")] public virtual InAppProduct Inappproduct { get; set; } /// /// Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive. /// [Newtonsoft.Json.JsonPropertyAttribute("latencyTolerance")] public virtual string LatencyTolerance { get; set; } /// Package name of the app. [Newtonsoft.Json.JsonPropertyAttribute("packageName")] public virtual string PackageName { get; set; } /// Unique identifier for the in-app product. [Newtonsoft.Json.JsonPropertyAttribute("sku")] public virtual string Sku { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Information to a installment plan. public class InstallmentPlan : Google.Apis.Requests.IDirectResponseSchema { /// Total number of payments the user is initially committed for. [Newtonsoft.Json.JsonPropertyAttribute("initialCommittedPaymentsCount")] public virtual System.Nullable InitialCommittedPaymentsCount { get; set; } /// /// If present, this installment plan is pending to be canceled. The cancellation will happen only after the /// user finished all committed payments. /// [Newtonsoft.Json.JsonPropertyAttribute("pendingCancellation")] public virtual PendingCancellation PendingCancellation { get; set; } /// Total number of committed payments remaining to be paid for in this renewal cycle. [Newtonsoft.Json.JsonPropertyAttribute("remainingCommittedPaymentsCount")] public virtual System.Nullable RemainingCommittedPaymentsCount { get; set; } /// /// Total number of payments the user will be committed for after each commitment period. Empty means the /// installment plan will fall back to a normal auto-renew subscription after initial commitment. /// [Newtonsoft.Json.JsonPropertyAttribute("subsequentCommittedPaymentsCount")] public virtual System.Nullable SubsequentCommittedPaymentsCount { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Represents an installments base plan where a user commits to a specified number of payments. public class InstallmentsBasePlanType : Google.Apis.Requests.IDirectResponseSchema { /// /// Optional. Custom account hold period of the subscription, specified in ISO 8601 format. Acceptable values /// must be in days and between P0D and P60D. An empty field represents a recommended account hold, calculated /// as 60 days minus grace period. The sum of gracePeriodDuration and accountHoldDuration must be between P30D /// and P60D days, inclusive. /// [Newtonsoft.Json.JsonPropertyAttribute("accountHoldDuration")] public virtual string AccountHoldDuration { get; set; } /// /// Required. Immutable. Subscription period, specified in ISO 8601 format. For a list of acceptable billing /// periods, refer to the help center. The duration is immutable after the base plan is created. /// [Newtonsoft.Json.JsonPropertyAttribute("billingPeriodDuration")] public virtual string BillingPeriodDuration { get; set; } /// /// Required. Immutable. The number of payments the user is committed to. It is immutable after the base plan is /// created. /// [Newtonsoft.Json.JsonPropertyAttribute("committedPaymentsCount")] public virtual System.Nullable CommittedPaymentsCount { get; set; } /// /// Grace period of the subscription, specified in ISO 8601 format. Acceptable values must be in days and /// between P0D and the lesser of 30D and base plan billing period. If not specified, a default value will be /// used based on the billing period. The sum of gracePeriodDuration and accountHoldDuration must be between /// P30D and P60D days, inclusive. /// [Newtonsoft.Json.JsonPropertyAttribute("gracePeriodDuration")] public virtual string GracePeriodDuration { get; set; } /// /// The proration mode for the base plan determines what happens when a user switches to this plan from another /// base plan. If unspecified, defaults to CHARGE_ON_NEXT_BILLING_DATE. /// [Newtonsoft.Json.JsonPropertyAttribute("prorationMode")] public virtual string ProrationMode { get; set; } /// /// Required. Immutable. Installments base plan renewal type. Determines the behavior at the end of the initial /// commitment. The renewal type is immutable after the base plan is created. /// [Newtonsoft.Json.JsonPropertyAttribute("renewalType")] public virtual string RenewalType { get; set; } /// /// Whether users should be able to resubscribe to this base plan in Google Play surfaces. Defaults to /// RESUBSCRIBE_STATE_ACTIVE if not specified. /// [Newtonsoft.Json.JsonPropertyAttribute("resubscribeState")] public virtual string ResubscribeState { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// /// An artifact resource which gets created when uploading an APK or Android App Bundle through internal app /// sharing. /// public class InternalAppSharingArtifact : Google.Apis.Requests.IDirectResponseSchema { /// The sha256 fingerprint of the certificate used to sign the generated artifact. [Newtonsoft.Json.JsonPropertyAttribute("certificateFingerprint")] public virtual string CertificateFingerprint { get; set; } /// /// The download URL generated for the uploaded artifact. Users that are authorized to download can follow the /// link to the Play Store app to install it. /// [Newtonsoft.Json.JsonPropertyAttribute("downloadUrl")] public virtual string DownloadUrl { get; set; } /// /// The sha256 hash of the artifact represented as a lowercase hexadecimal number, matching the output of the /// sha256sum command. /// [Newtonsoft.Json.JsonPropertyAttribute("sha256")] public virtual string Sha256 { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Details of an introductory price pricing phase. public class IntroductoryPriceDetails : Google.Apis.Requests.IDirectResponseSchema { /// The ETag of the item. public virtual string ETag { get; set; } } /// Contains the introductory price information for a subscription. public class IntroductoryPriceInfo : Google.Apis.Requests.IDirectResponseSchema { /// /// Introductory price of the subscription, not including tax. The currency is the same as price_currency_code. /// Price is expressed in micro-units, where 1,000,000 micro-units represents one unit of the currency. For /// example, if the subscription price is €1.99, price_amount_micros is 1990000. /// [Newtonsoft.Json.JsonPropertyAttribute("introductoryPriceAmountMicros")] public virtual System.Nullable IntroductoryPriceAmountMicros { get; set; } /// /// ISO 4217 currency code for the introductory subscription price. For example, if the price is specified in /// British pounds sterling, price_currency_code is "GBP". /// [Newtonsoft.Json.JsonPropertyAttribute("introductoryPriceCurrencyCode")] public virtual string IntroductoryPriceCurrencyCode { get; set; } /// The number of billing period to offer introductory pricing. [Newtonsoft.Json.JsonPropertyAttribute("introductoryPriceCycles")] public virtual System.Nullable IntroductoryPriceCycles { get; set; } /// /// Introductory price period, specified in ISO 8601 format. Common values are (but not limited to) "P1W" (one /// week), "P1M" (one month), "P3M" (three months), "P6M" (six months), and "P1Y" (one year). /// [Newtonsoft.Json.JsonPropertyAttribute("introductoryPricePeriod")] public virtual string IntroductoryPricePeriod { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Details about a subscription line item that is being replaced. public class ItemReplacement : Google.Apis.Requests.IDirectResponseSchema { /// The base plan ID of the subscription line item being replaced. [Newtonsoft.Json.JsonPropertyAttribute("basePlanId")] public virtual string BasePlanId { get; set; } /// The offer ID of the subscription line item being replaced, if applicable. [Newtonsoft.Json.JsonPropertyAttribute("offerId")] public virtual string OfferId { get; set; } /// The product ID of the subscription line item being replaced. [Newtonsoft.Json.JsonPropertyAttribute("productId")] public virtual string ProductId { get; set; } /// The replacement mode applied during the purchase. [Newtonsoft.Json.JsonPropertyAttribute("replacementMode")] public virtual string ReplacementMode { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Targeting based on language. public class LanguageTargeting : Google.Apis.Requests.IDirectResponseSchema { /// Alternative languages. [Newtonsoft.Json.JsonPropertyAttribute("alternatives")] public virtual System.Collections.Generic.IList Alternatives { get; set; } /// ISO-639: 2 or 3 letter language code. [Newtonsoft.Json.JsonPropertyAttribute("value")] public virtual System.Collections.Generic.IList Value { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Details of a line item. public class LineItem : Google.Apis.Requests.IDirectResponseSchema { /// /// Item's listed price on Play Store, this may or may not include tax. Excludes any discounts or promotions. /// [Newtonsoft.Json.JsonPropertyAttribute("listingPrice")] public virtual Money ListingPrice { get; set; } /// Details of a one-time purchase. [Newtonsoft.Json.JsonPropertyAttribute("oneTimePurchaseDetails")] public virtual OneTimePurchaseDetails OneTimePurchaseDetails { get; set; } /// Details of a paid app purchase. [Newtonsoft.Json.JsonPropertyAttribute("paidAppDetails")] public virtual PaidAppDetails PaidAppDetails { get; set; } /// /// The purchased product ID or in-app SKU (for example, 'monthly001' or 'com.some.thing.inapp1'). /// [Newtonsoft.Json.JsonPropertyAttribute("productId")] public virtual string ProductId { get; set; } /// /// Developer-specified name of the product. Displayed in buyer's locale. Example: coins, monthly subscription, /// etc. /// [Newtonsoft.Json.JsonPropertyAttribute("productTitle")] public virtual string ProductTitle { get; set; } /// Details of a subscription purchase. [Newtonsoft.Json.JsonPropertyAttribute("subscriptionDetails")] public virtual SubscriptionDetails SubscriptionDetails { get; set; } /// The tax paid for this line item. [Newtonsoft.Json.JsonPropertyAttribute("tax")] public virtual Money Tax { get; set; } /// /// The total amount paid by the user for this line item, taking into account discounts and tax. /// [Newtonsoft.Json.JsonPropertyAttribute("total")] public virtual Money Total { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// /// Response message for ListAppRecoveries. -- api-linter: core::0158::response-next-page-token-field=disabled /// public class ListAppRecoveriesResponse : Google.Apis.Requests.IDirectResponseSchema { /// List of recovery actions associated with the requested package name. [Newtonsoft.Json.JsonPropertyAttribute("recoveryActions")] public virtual System.Collections.Generic.IList RecoveryActions { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Response listing existing device tier configs. public class ListDeviceTierConfigsResponse : Google.Apis.Requests.IDirectResponseSchema { /// Device tier configs created by the developer. [Newtonsoft.Json.JsonPropertyAttribute("deviceTierConfigs")] public virtual System.Collections.Generic.IList DeviceTierConfigs { get; set; } /// /// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no /// subsequent pages. /// [Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")] public virtual string NextPageToken { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Response message for ListOneTimeProductOffers. public class ListOneTimeProductOffersResponse : Google.Apis.Requests.IDirectResponseSchema { /// /// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no /// subsequent pages. /// [Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")] public virtual string NextPageToken { get; set; } /// The one_time_product offers from the specified request. [Newtonsoft.Json.JsonPropertyAttribute("oneTimeProductOffers")] public virtual System.Collections.Generic.IList OneTimeProductOffers { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Response message for ListOneTimeProducts. public class ListOneTimeProductsResponse : Google.Apis.Requests.IDirectResponseSchema { /// /// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no /// subsequent pages. /// [Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")] public virtual string NextPageToken { get; set; } /// The one-time products from the specified app. [Newtonsoft.Json.JsonPropertyAttribute("oneTimeProducts")] public virtual System.Collections.Generic.IList OneTimeProducts { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Response message for ListSubscriptionOffers. public class ListSubscriptionOffersResponse : Google.Apis.Requests.IDirectResponseSchema { /// /// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no /// subsequent pages. /// [Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")] public virtual string NextPageToken { get; set; } /// The subscription offers from the specified subscription. [Newtonsoft.Json.JsonPropertyAttribute("subscriptionOffers")] public virtual System.Collections.Generic.IList SubscriptionOffers { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Response message for ListSubscriptions. public class ListSubscriptionsResponse : Google.Apis.Requests.IDirectResponseSchema { /// /// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no /// subsequent pages. /// [Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")] public virtual string NextPageToken { get; set; } /// The subscriptions from the specified app. [Newtonsoft.Json.JsonPropertyAttribute("subscriptions")] public virtual System.Collections.Generic.IList Subscriptions { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// A response containing one or more users with access to an account. public class ListUsersResponse : Google.Apis.Requests.IDirectResponseSchema { /// /// A token to pass to subsequent calls in order to retrieve subsequent results. This will not be set if there /// are no more results to return. /// [Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")] public virtual string NextPageToken { get; set; } /// The resulting users. [Newtonsoft.Json.JsonPropertyAttribute("users")] public virtual System.Collections.Generic.IList Users { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// A localized store listing. The resource for ListingsService. public class Listing : Google.Apis.Requests.IDirectResponseSchema { /// Full description of the app. [Newtonsoft.Json.JsonPropertyAttribute("fullDescription")] public virtual string FullDescription { get; set; } /// /// Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). /// [Newtonsoft.Json.JsonPropertyAttribute("language")] public virtual string Language { get; set; } /// Short description of the app. [Newtonsoft.Json.JsonPropertyAttribute("shortDescription")] public virtual string ShortDescription { get; set; } /// Localized title of the app. [Newtonsoft.Json.JsonPropertyAttribute("title")] public virtual string Title { get; set; } /// URL of a promotional YouTube video for the app. [Newtonsoft.Json.JsonPropertyAttribute("video")] public virtual string Video { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Response listing all localized listings. public class ListingsListResponse : Google.Apis.Requests.IDirectResponseSchema { /// The kind of this response ("androidpublisher#listingsListResponse"). [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// All localized listings. [Newtonsoft.Json.JsonPropertyAttribute("listings")] public virtual System.Collections.Generic.IList Listings { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Localized text in given language. public class LocalizedText : Google.Apis.Requests.IDirectResponseSchema { /// /// Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). /// [Newtonsoft.Json.JsonPropertyAttribute("language")] public virtual string Language { get; set; } /// The text in the given language. [Newtonsoft.Json.JsonPropertyAttribute("text")] public virtual string Text { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Details about taxation and legal compliance for managed products. public class ManagedProductTaxAndComplianceSettings : Google.Apis.Requests.IDirectResponseSchema { /// /// Digital content or service classification for products distributed to users in the European Economic Area /// (EEA). The withdrawal regime under EEA consumer laws depends on this classification. Refer to the [Help /// Center article](https://support.google.com/googleplay/android-developer/answer/10463498) for more /// information. /// [Newtonsoft.Json.JsonPropertyAttribute("eeaWithdrawalRightType")] public virtual string EeaWithdrawalRightType { get; set; } /// /// Whether this in-app product is declared as a product representing a tokenized digital asset. /// [Newtonsoft.Json.JsonPropertyAttribute("isTokenizedDigitalAsset")] public virtual System.Nullable IsTokenizedDigitalAsset { get; set; } /// /// Product tax category code to assign to the in-app product. Product tax category determines the transaction /// tax rates applied to the product. Refer to the [Help Center /// article](https://support.google.com/googleplay/android-developer/answer/16408159) for more information. /// [Newtonsoft.Json.JsonPropertyAttribute("productTaxCategoryCode")] public virtual string ProductTaxCategoryCode { get; set; } /// /// A mapping from region code to tax rate details. The keys are region codes as defined by Unicode's "CLDR". /// [Newtonsoft.Json.JsonPropertyAttribute("taxRateInfoByRegionCode")] public virtual System.Collections.Generic.IDictionary TaxRateInfoByRegionCode { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Request message for MigrateBasePlanPrices. public class MigrateBasePlanPricesRequest : Google.Apis.Requests.IDirectResponseSchema { /// Required. The unique base plan ID of the base plan to update prices on. [Newtonsoft.Json.JsonPropertyAttribute("basePlanId")] public virtual string BasePlanId { get; set; } /// /// Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive. /// [Newtonsoft.Json.JsonPropertyAttribute("latencyTolerance")] public virtual string LatencyTolerance { get; set; } /// /// Required. Package name of the parent app. Must be equal to the package_name field on the Subscription /// resource. /// [Newtonsoft.Json.JsonPropertyAttribute("packageName")] public virtual string PackageName { get; set; } /// /// Required. The ID of the subscription to update. Must be equal to the product_id field on the Subscription /// resource. /// [Newtonsoft.Json.JsonPropertyAttribute("productId")] public virtual string ProductId { get; set; } /// Required. The regional prices to update. [Newtonsoft.Json.JsonPropertyAttribute("regionalPriceMigrations")] public virtual System.Collections.Generic.IList RegionalPriceMigrations { get; set; } /// /// Required. The version of the available regions being used for the regional_price_migrations. /// [Newtonsoft.Json.JsonPropertyAttribute("regionsVersion")] public virtual RegionsVersion RegionsVersion { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Response message for MigrateBasePlanPrices. public class MigrateBasePlanPricesResponse : Google.Apis.Requests.IDirectResponseSchema { /// The ETag of the item. public virtual string ETag { get; set; } } /// Metadata of a module. public class ModuleMetadata : Google.Apis.Requests.IDirectResponseSchema { /// Indicates the delivery type (e.g. on-demand) of the module. [Newtonsoft.Json.JsonPropertyAttribute("deliveryType")] public virtual string DeliveryType { get; set; } /// /// Names of the modules that this module directly depends on. Each module implicitly depends on the base /// module. /// [Newtonsoft.Json.JsonPropertyAttribute("dependencies")] public virtual System.Collections.Generic.IList Dependencies { get; set; } /// Indicates the type of this feature module. [Newtonsoft.Json.JsonPropertyAttribute("moduleType")] public virtual string ModuleType { get; set; } /// Module name. [Newtonsoft.Json.JsonPropertyAttribute("name")] public virtual string Name { get; set; } /// The targeting that makes a conditional module installed. Relevant only for Split APKs. [Newtonsoft.Json.JsonPropertyAttribute("targeting")] public virtual ModuleTargeting Targeting { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Targeting on the module level. public class ModuleTargeting : Google.Apis.Requests.IDirectResponseSchema { /// Targeting for device features. [Newtonsoft.Json.JsonPropertyAttribute("deviceFeatureTargeting")] public virtual System.Collections.Generic.IList DeviceFeatureTargeting { get; set; } /// The sdk version that the variant targets [Newtonsoft.Json.JsonPropertyAttribute("sdkVersionTargeting")] public virtual SdkVersionTargeting SdkVersionTargeting { get; set; } /// Countries-level targeting [Newtonsoft.Json.JsonPropertyAttribute("userCountriesTargeting")] public virtual UserCountriesTargeting UserCountriesTargeting { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Represents an amount of money with its currency type. public class Money : Google.Apis.Requests.IDirectResponseSchema { /// The three-letter currency code defined in ISO 4217. [Newtonsoft.Json.JsonPropertyAttribute("currencyCode")] public virtual string CurrencyCode { get; set; } /// /// Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 /// inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be /// positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is /// represented as `units`=-1 and `nanos`=-750,000,000. /// [Newtonsoft.Json.JsonPropertyAttribute("nanos")] public virtual System.Nullable Nanos { get; set; } /// /// The whole units of the amount. For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. /// [Newtonsoft.Json.JsonPropertyAttribute("units")] public virtual System.Nullable Units { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Represents a list of ABIs. public class MultiAbi : Google.Apis.Requests.IDirectResponseSchema { /// A list of targeted ABIs, as represented by the Android Platform [Newtonsoft.Json.JsonPropertyAttribute("abi")] public virtual System.Collections.Generic.IList Abi { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Targeting based on multiple abis. public class MultiAbiTargeting : Google.Apis.Requests.IDirectResponseSchema { /// /// Targeting of other sibling directories that were in the Bundle. For main splits this is targeting of other /// main splits. /// [Newtonsoft.Json.JsonPropertyAttribute("alternatives")] public virtual System.Collections.Generic.IList Alternatives { get; set; } /// Value of a multi abi. [Newtonsoft.Json.JsonPropertyAttribute("value")] public virtual System.Collections.Generic.IList Value { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Offer details information related to a purchase line item. public class OfferDetails : Google.Apis.Requests.IDirectResponseSchema { /// The base plan ID. Present for all base plan and offers. [Newtonsoft.Json.JsonPropertyAttribute("basePlanId")] public virtual string BasePlanId { get; set; } /// The offer ID. Only present for discounted offers. [Newtonsoft.Json.JsonPropertyAttribute("offerId")] public virtual string OfferId { get; set; } /// /// The latest offer tags associated with the offer. It includes tags inherited from the base plan. /// [Newtonsoft.Json.JsonPropertyAttribute("offerTags")] public virtual System.Collections.Generic.IList OfferTags { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Details of a pricing phase for the entitlement period funded by this order. public class OfferPhaseDetails : Google.Apis.Requests.IDirectResponseSchema { /// The order funds a base price period. [Newtonsoft.Json.JsonPropertyAttribute("baseDetails")] public virtual BaseDetails BaseDetails { get; set; } /// The order funds a free trial period. [Newtonsoft.Json.JsonPropertyAttribute("freeTrialDetails")] public virtual FreeTrialDetails FreeTrialDetails { get; set; } /// The order funds an introductory pricing period. [Newtonsoft.Json.JsonPropertyAttribute("introductoryPriceDetails")] public virtual IntroductoryPriceDetails IntroductoryPriceDetails { get; set; } /// The order funds a proration period. [Newtonsoft.Json.JsonPropertyAttribute("prorationPeriodDetails")] public virtual ProrationPeriodDetails ProrationPeriodDetails { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Represents a custom tag specified for a product offer. public class OfferTag : Google.Apis.Requests.IDirectResponseSchema { /// /// Must conform with RFC-1034. That is, this string can only contain lower-case letters (a-z), numbers (0-9), /// and hyphens (-), and be at most 20 characters. /// [Newtonsoft.Json.JsonPropertyAttribute("tag")] public virtual string Tag { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// A single use promotion code. public class OneTimeCode : Google.Apis.Requests.IDirectResponseSchema { /// The ETag of the item. public virtual string ETag { get; set; } } /// Represents a one-time transaction. public class OneTimeExternalTransaction : Google.Apis.Requests.IDirectResponseSchema { /// /// Input only. Provided during the call to Create. Retrieved from the client when the alternative billing flow /// is launched. /// [Newtonsoft.Json.JsonPropertyAttribute("externalTransactionToken")] public virtual string ExternalTransactionToken { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// A single one-time product for an app. public class OneTimeProduct : Google.Apis.Requests.IDirectResponseSchema { /// /// Required. Set of localized title and description data. Must not have duplicate entries with the same /// language_code. /// [Newtonsoft.Json.JsonPropertyAttribute("listings")] public virtual System.Collections.Generic.IList Listings { get; set; } /// /// Optional. List of up to 20 custom tags specified for this one-time product, and returned to the app through /// the billing library. Purchase options and offers for this product will also receive these tags in the /// billing library. /// [Newtonsoft.Json.JsonPropertyAttribute("offerTags")] public virtual System.Collections.Generic.IList OfferTags { get; set; } /// Required. Immutable. Package name of the parent app. [Newtonsoft.Json.JsonPropertyAttribute("packageName")] public virtual string PackageName { get; set; } /// /// Required. Immutable. Unique product ID of the product. Unique within the parent app. Product IDs must start /// with a number or lowercase letter, and can contain numbers (0-9), lowercase letters (a-z), underscores (_), /// and periods (.). /// [Newtonsoft.Json.JsonPropertyAttribute("productId")] public virtual string ProductId { get; set; } /// Required. The set of purchase options for this one-time product. [Newtonsoft.Json.JsonPropertyAttribute("purchaseOptions")] public virtual System.Collections.Generic.IList PurchaseOptions { get; set; } /// /// Output only. The version of the regions configuration that was used to generate the one-time product. /// [Newtonsoft.Json.JsonPropertyAttribute("regionsVersion")] public virtual RegionsVersion RegionsVersion { get; set; } /// /// Optional. Countries where the purchase of this one-time product is restricted to payment methods registered /// in the same country. If empty, no payment location restrictions are imposed. /// [Newtonsoft.Json.JsonPropertyAttribute("restrictedPaymentCountries")] public virtual RestrictedPaymentCountries RestrictedPaymentCountries { get; set; } /// Details about taxes and legal compliance. [Newtonsoft.Json.JsonPropertyAttribute("taxAndComplianceSettings")] public virtual OneTimeProductTaxAndComplianceSettings TaxAndComplianceSettings { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// A purchase option that can be bought. public class OneTimeProductBuyPurchaseOption : Google.Apis.Requests.IDirectResponseSchema { /// /// Optional. Whether this purchase option will be available in legacy PBL flows that do not support one-time /// products model. Up to one "buy" purchase option can be marked as backwards compatible. /// [Newtonsoft.Json.JsonPropertyAttribute("legacyCompatible")] public virtual System.Nullable LegacyCompatible { get; set; } /// /// Optional. Whether this purchase option allows multi-quantity. Multi-quantity allows buyer to purchase more /// than one item in a single checkout. /// [Newtonsoft.Json.JsonPropertyAttribute("multiQuantityEnabled")] public virtual System.Nullable MultiQuantityEnabled { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Configuration specific to discounted offers. public class OneTimeProductDiscountedOffer : Google.Apis.Requests.IDirectResponseSchema { private string _endTimeRaw; private object _endTime; /// Time when the offer will stop being available. [Newtonsoft.Json.JsonPropertyAttribute("endTime")] public virtual string EndTimeRaw { get => _endTimeRaw; set { _endTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); _endTimeRaw = value; } } /// representation of . [Newtonsoft.Json.JsonIgnoreAttribute] [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use EndTimeDateTimeOffset instead.")] public virtual object EndTime { get => _endTime; set { _endTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); _endTime = value; } } /// representation of . [Newtonsoft.Json.JsonIgnoreAttribute] public virtual System.DateTimeOffset? EndTimeDateTimeOffset { get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(EndTimeRaw); set => EndTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); } /// /// Optional. The number of times this offer can be redeemed. If unset or set to 0, allows for unlimited offer /// redemptions. Otherwise must be a number between 1 and 50 inclusive. /// [Newtonsoft.Json.JsonPropertyAttribute("redemptionLimit")] public virtual System.Nullable RedemptionLimit { get; set; } private string _startTimeRaw; private object _startTime; /// Time when the offer will start being available. [Newtonsoft.Json.JsonPropertyAttribute("startTime")] public virtual string StartTimeRaw { get => _startTimeRaw; set { _startTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); _startTimeRaw = value; } } /// representation of . [Newtonsoft.Json.JsonIgnoreAttribute] [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use StartTimeDateTimeOffset instead.")] public virtual object StartTime { get => _startTime; set { _startTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); _startTime = value; } } /// representation of . [Newtonsoft.Json.JsonIgnoreAttribute] public virtual System.DateTimeOffset? StartTimeDateTimeOffset { get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(StartTimeRaw); set => StartTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); } /// The ETag of the item. public virtual string ETag { get; set; } } /// Regional store listing for a one-time product. public class OneTimeProductListing : Google.Apis.Requests.IDirectResponseSchema { /// /// Required. The description of this product in the language of this listing. The maximum length is 200 /// characters. /// [Newtonsoft.Json.JsonPropertyAttribute("description")] public virtual string Description { get; set; } /// Required. The language of this listing, as defined by BCP-47, e.g., "en-US". [Newtonsoft.Json.JsonPropertyAttribute("languageCode")] public virtual string LanguageCode { get; set; } /// /// Required. The title of this product in the language of this listing. The maximum length is 55 characters. /// [Newtonsoft.Json.JsonPropertyAttribute("title")] public virtual string Title { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// A single offer for a one-time product. public class OneTimeProductOffer : Google.Apis.Requests.IDirectResponseSchema { /// A discounted offer. [Newtonsoft.Json.JsonPropertyAttribute("discountedOffer")] public virtual OneTimeProductDiscountedOffer DiscountedOffer { get; set; } /// /// Required. Immutable. The ID of this product offer. Must be unique within the purchase option. It must start /// with a number or lower-case letter, and can only contain lower-case letters (a-z), numbers (0-9), and /// hyphens (-). The maximum length is 63 characters. /// [Newtonsoft.Json.JsonPropertyAttribute("offerId")] public virtual string OfferId { get; set; } /// /// Optional. List of up to 20 custom tags specified for this offer, and returned to the app through the billing /// library. /// [Newtonsoft.Json.JsonPropertyAttribute("offerTags")] public virtual System.Collections.Generic.IList OfferTags { get; set; } /// Required. Immutable. The package name of the app the parent product belongs to. [Newtonsoft.Json.JsonPropertyAttribute("packageName")] public virtual string PackageName { get; set; } /// A pre-order offer. [Newtonsoft.Json.JsonPropertyAttribute("preOrderOffer")] public virtual OneTimeProductPreOrderOffer PreOrderOffer { get; set; } /// Required. Immutable. The ID of the parent product this offer belongs to. [Newtonsoft.Json.JsonPropertyAttribute("productId")] public virtual string ProductId { get; set; } /// Required. Immutable. The ID of the purchase option to which this offer is an extension. [Newtonsoft.Json.JsonPropertyAttribute("purchaseOptionId")] public virtual string PurchaseOptionId { get; set; } /// /// Set of regional pricing and availability information for this offer. Must not have duplicate entries with /// the same region_code. /// [Newtonsoft.Json.JsonPropertyAttribute("regionalPricingAndAvailabilityConfigs")] public virtual System.Collections.Generic.IList RegionalPricingAndAvailabilityConfigs { get; set; } /// /// Output only. The version of the regions configuration that was used to generate the one-time product offer. /// [Newtonsoft.Json.JsonPropertyAttribute("regionsVersion")] public virtual RegionsVersion RegionsVersion { get; set; } /// /// Output only. The current state of this offer. This field cannot be changed by updating the resource. Use the /// dedicated endpoints instead. /// [Newtonsoft.Json.JsonPropertyAttribute("state")] public virtual string State { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Options for one-time product offers without a regional price override. public class OneTimeProductOfferNoPriceOverrideOptions : Google.Apis.Requests.IDirectResponseSchema { /// The ETag of the item. public virtual string ETag { get; set; } } /// Regional pricing and availability configuration for a one-time product offer. public class OneTimeProductOfferRegionalPricingAndAvailabilityConfig : Google.Apis.Requests.IDirectResponseSchema { /// /// The absolute value of the discount that is subtracted from the purchase option price. It should be between 0 /// and the purchase option price. /// [Newtonsoft.Json.JsonPropertyAttribute("absoluteDiscount")] public virtual Money AbsoluteDiscount { get; set; } /// Required. The availability for this region. [Newtonsoft.Json.JsonPropertyAttribute("availability")] public virtual string Availability { get; set; } /// The price defined in the purchase option for this region will be used. [Newtonsoft.Json.JsonPropertyAttribute("noOverride")] public virtual OneTimeProductOfferNoPriceOverrideOptions NoOverride { get; set; } /// /// Required. Region code this configuration applies to, as defined by ISO 3166-2, e.g., "US". /// [Newtonsoft.Json.JsonPropertyAttribute("regionCode")] public virtual string RegionCode { get; set; } /// /// The fraction of the purchase option price that the user pays for this offer. For example, if the purchase /// option price for this region is $12, then a 50% discount would correspond to a price of $6. The discount /// must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will /// be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if /// the discounted price ends up being smaller than the minimum price allowed in this region. /// [Newtonsoft.Json.JsonPropertyAttribute("relativeDiscount")] public virtual System.Nullable RelativeDiscount { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Configuration specific to pre-order offers. public class OneTimeProductPreOrderOffer : Google.Apis.Requests.IDirectResponseSchema { private string _endTimeRaw; private object _endTime; /// Required. Time when the pre-order will stop being available. [Newtonsoft.Json.JsonPropertyAttribute("endTime")] public virtual string EndTimeRaw { get => _endTimeRaw; set { _endTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); _endTimeRaw = value; } } /// representation of . [Newtonsoft.Json.JsonIgnoreAttribute] [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use EndTimeDateTimeOffset instead.")] public virtual object EndTime { get => _endTime; set { _endTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); _endTime = value; } } /// representation of . [Newtonsoft.Json.JsonIgnoreAttribute] public virtual System.DateTimeOffset? EndTimeDateTimeOffset { get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(EndTimeRaw); set => EndTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); } /// Required. Immutable. Specifies how price changes affect pre-existing pre-orders. [Newtonsoft.Json.JsonPropertyAttribute("priceChangeBehavior")] public virtual string PriceChangeBehavior { get; set; } private string _releaseTimeRaw; private object _releaseTime; /// /// Required. Time on which the product associated with the pre-order will be released and the pre-order orders /// fulfilled. /// [Newtonsoft.Json.JsonPropertyAttribute("releaseTime")] public virtual string ReleaseTimeRaw { get => _releaseTimeRaw; set { _releaseTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); _releaseTimeRaw = value; } } /// representation of . [Newtonsoft.Json.JsonIgnoreAttribute] [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use ReleaseTimeDateTimeOffset instead.")] public virtual object ReleaseTime { get => _releaseTime; set { _releaseTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); _releaseTime = value; } } /// representation of . [Newtonsoft.Json.JsonIgnoreAttribute] public virtual System.DateTimeOffset? ReleaseTimeDateTimeOffset { get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(ReleaseTimeRaw); set => ReleaseTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); } private string _startTimeRaw; private object _startTime; /// Required. Time when the pre-order will start being available. [Newtonsoft.Json.JsonPropertyAttribute("startTime")] public virtual string StartTimeRaw { get => _startTimeRaw; set { _startTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); _startTimeRaw = value; } } /// representation of . [Newtonsoft.Json.JsonIgnoreAttribute] [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use StartTimeDateTimeOffset instead.")] public virtual object StartTime { get => _startTime; set { _startTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); _startTime = value; } } /// representation of . [Newtonsoft.Json.JsonIgnoreAttribute] public virtual System.DateTimeOffset? StartTimeDateTimeOffset { get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(StartTimeRaw); set => StartTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); } /// The ETag of the item. public virtual string ETag { get; set; } } /// A single purchase option for a one-time product. public class OneTimeProductPurchaseOption : Google.Apis.Requests.IDirectResponseSchema { /// A purchase option that can be bought. [Newtonsoft.Json.JsonPropertyAttribute("buyOption")] public virtual OneTimeProductBuyPurchaseOption BuyOption { get; set; } /// /// Pricing information for any new locations Play may launch in the future. If omitted, the purchase option /// will not be automatically available in any new locations Play may launch in the future. /// [Newtonsoft.Json.JsonPropertyAttribute("newRegionsConfig")] public virtual OneTimeProductPurchaseOptionNewRegionsConfig NewRegionsConfig { get; set; } /// /// Optional. List of up to 20 custom tags specified for this purchase option, and returned to the app through /// the billing library. Offers for this purchase option will also receive these tags in the billing library. /// [Newtonsoft.Json.JsonPropertyAttribute("offerTags")] public virtual System.Collections.Generic.IList OfferTags { get; set; } /// /// Required. Immutable. The unique identifier of this purchase option. Must be unique within the one-time /// product. It must start with a number or lower-case letter, and can only contain lower-case letters (a-z), /// numbers (0-9), and hyphens (-). The maximum length is 63 characters. /// [Newtonsoft.Json.JsonPropertyAttribute("purchaseOptionId")] public virtual string PurchaseOptionId { get; set; } /// Regional pricing and availability information for this purchase option. [Newtonsoft.Json.JsonPropertyAttribute("regionalPricingAndAvailabilityConfigs")] public virtual System.Collections.Generic.IList RegionalPricingAndAvailabilityConfigs { get; set; } /// A purchase option that can be rented. [Newtonsoft.Json.JsonPropertyAttribute("rentOption")] public virtual OneTimeProductRentPurchaseOption RentOption { get; set; } /// /// Output only. The state of the purchase option, i.e., whether it's active. This field cannot be changed by /// updating the resource. Use the dedicated endpoints instead. /// [Newtonsoft.Json.JsonPropertyAttribute("state")] public virtual string State { get; set; } /// Optional. Details about taxes and legal compliance. [Newtonsoft.Json.JsonPropertyAttribute("taxAndComplianceSettings")] public virtual PurchaseOptionTaxAndComplianceSettings TaxAndComplianceSettings { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Pricing information for any new regions Play may launch in the future. public class OneTimeProductPurchaseOptionNewRegionsConfig : Google.Apis.Requests.IDirectResponseSchema { /// /// Required. The regional availability for the new regions config. When set to AVAILABLE, the pricing /// information will be used for any new regions Play may launch in the future. /// [Newtonsoft.Json.JsonPropertyAttribute("availability")] public virtual string Availability { get; set; } /// Required. Price in EUR to use for any new regions Play may launch in. [Newtonsoft.Json.JsonPropertyAttribute("eurPrice")] public virtual Money EurPrice { get; set; } /// Required. Price in USD to use for any new regions Play may launch in. [Newtonsoft.Json.JsonPropertyAttribute("usdPrice")] public virtual Money UsdPrice { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Regional pricing and availability configuration for a purchase option. public class OneTimeProductPurchaseOptionRegionalPricingAndAvailabilityConfig : Google.Apis.Requests.IDirectResponseSchema { /// The availability of the purchase option. [Newtonsoft.Json.JsonPropertyAttribute("availability")] public virtual string Availability { get; set; } /// /// The price of the purchase option in the specified region. Must be set in the currency that is linked to the /// specified region. /// [Newtonsoft.Json.JsonPropertyAttribute("price")] public virtual Money Price { get; set; } /// /// Required. Region code this configuration applies to, as defined by ISO 3166-2, e.g., "US". /// [Newtonsoft.Json.JsonPropertyAttribute("regionCode")] public virtual string RegionCode { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// A purchase option that can be rented. public class OneTimeProductRentPurchaseOption : Google.Apis.Requests.IDirectResponseSchema { /// /// Optional. The amount of time the user has after starting consuming the entitlement before it is revoked. /// Specified in ISO 8601 format. /// [Newtonsoft.Json.JsonPropertyAttribute("expirationPeriod")] public virtual string ExpirationPeriod { get; set; } /// /// Required. The amount of time a user has the entitlement for. Starts at purchase flow completion. Specified /// in ISO 8601 format. /// [Newtonsoft.Json.JsonPropertyAttribute("rentalPeriod")] public virtual string RentalPeriod { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Details about taxation, Google Play policy and legal compliance for one-time products. public class OneTimeProductTaxAndComplianceSettings : Google.Apis.Requests.IDirectResponseSchema { /// /// Whether this one-time product is declared as a product representing a tokenized digital asset. /// [Newtonsoft.Json.JsonPropertyAttribute("isTokenizedDigitalAsset")] public virtual System.Nullable IsTokenizedDigitalAsset { get; set; } /// /// Product tax category code to assign to the one-time product. Product tax category determines the transaction /// tax rates applied to the product. Refer to the [Help Center /// article](https://support.google.com/googleplay/android-developer/answer/16408159) for more information. /// [Newtonsoft.Json.JsonPropertyAttribute("productTaxCategoryCode")] public virtual string ProductTaxCategoryCode { get; set; } /// Regional tax configuration. [Newtonsoft.Json.JsonPropertyAttribute("regionalTaxConfigs")] public virtual System.Collections.Generic.IList RegionalTaxConfigs { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Details of a one-time purchase. public class OneTimePurchaseDetails : Google.Apis.Requests.IDirectResponseSchema { /// The offer ID of the one-time purchase offer. [Newtonsoft.Json.JsonPropertyAttribute("offerId")] public virtual string OfferId { get; set; } /// /// The details of a pre-order purchase. Only set if it is a pre-order purchase. Note that this field will be /// set even after pre-order is fulfilled. /// [Newtonsoft.Json.JsonPropertyAttribute("preorderDetails")] public virtual PreorderDetails PreorderDetails { get; set; } /// /// ID of the purchase option. This field is set for both purchase options and variant offers. For purchase /// options, this ID identifies the purchase option itself. For variant offers, this ID refers to the associated /// purchase option, and in conjunction with offer_id it identifies the variant offer. /// [Newtonsoft.Json.JsonPropertyAttribute("purchaseOptionId")] public virtual string PurchaseOptionId { get; set; } /// The number of items purchased (for multi-quantity item purchases). [Newtonsoft.Json.JsonPropertyAttribute("quantity")] public virtual System.Nullable Quantity { get; set; } /// The details of a rent purchase. Only set if it is a rent purchase. [Newtonsoft.Json.JsonPropertyAttribute("rentalDetails")] public virtual RentalDetails RentalDetails { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// /// The Order resource encapsulates comprehensive information about a transaction made on Google Play. It includes a /// variety of attributes that provide details about the order itself, the products purchased, and the history of /// events related to the order. The Orders APIs provide real-time access to your order data within the Google Play /// ecosystem. You can retrieve detailed information and metadata for both one-time and recurring orders, including /// transaction details like charges, taxes, and refunds, as well as metadata such as pricing phases for /// subscriptions. The Orders APIs let you automate tasks related to order management, reducing the need for manual /// checks via the Play Developer Console. The following are some of the use cases for this API: + Real-time order /// data retrieval - Get order details and metadata immediately after a purchase using an order ID. + Order update /// synchronization - Periodically sync order updates to maintain an up-to-date record of order information. Note: + /// The Orders API calls count towards your Play Developer API quota, which defaults to 200K daily, and may be /// insufficient to sync extensive order histories. + A maximum of 1000 orders can be retrieved per call. Using /// larger page sizes is recommended to minimize quota usage. Check your quota in the Cloud Console and request more /// if required. /// public class Order : Google.Apis.Requests.IDirectResponseSchema { /// /// Address information for the customer, for use in tax computation. When Google is the Merchant of Record for /// the order, only country is shown. /// [Newtonsoft.Json.JsonPropertyAttribute("buyerAddress")] public virtual BuyerAddress BuyerAddress { get; set; } private string _createTimeRaw; private object _createTime; /// The time when the order was created. [Newtonsoft.Json.JsonPropertyAttribute("createTime")] public virtual string CreateTimeRaw { get => _createTimeRaw; set { _createTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); _createTimeRaw = value; } } /// representation of . [Newtonsoft.Json.JsonIgnoreAttribute] [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")] public virtual object CreateTime { get => _createTime; set { _createTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); _createTime = value; } } /// representation of . [Newtonsoft.Json.JsonIgnoreAttribute] public virtual System.DateTimeOffset? CreateTimeDateTimeOffset { get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(CreateTimeRaw); set => CreateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); } /// /// Your revenue for this order in the buyer's currency, including deductions of partial refunds, taxes and /// fees. Google deducts standard transaction and third party fees from each sale, including VAT in some /// regions. /// [Newtonsoft.Json.JsonPropertyAttribute("developerRevenueInBuyerCurrency")] public virtual Money DeveloperRevenueInBuyerCurrency { get; set; } private string _lastEventTimeRaw; private object _lastEventTime; /// The time of the last event that occurred on the order. [Newtonsoft.Json.JsonPropertyAttribute("lastEventTime")] public virtual string LastEventTimeRaw { get => _lastEventTimeRaw; set { _lastEventTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); _lastEventTimeRaw = value; } } /// representation of . [Newtonsoft.Json.JsonIgnoreAttribute] [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use LastEventTimeDateTimeOffset instead.")] public virtual object LastEventTime { get => _lastEventTime; set { _lastEventTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); _lastEventTime = value; } } /// representation of . [Newtonsoft.Json.JsonIgnoreAttribute] public virtual System.DateTimeOffset? LastEventTimeDateTimeOffset { get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(LastEventTimeRaw); set => LastEventTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); } /// The individual line items making up this order. [Newtonsoft.Json.JsonPropertyAttribute("lineItems")] public virtual System.Collections.Generic.IList LineItems { get; set; } /// Detailed information about the order at creation time. [Newtonsoft.Json.JsonPropertyAttribute("orderDetails")] public virtual OrderDetails OrderDetails { get; set; } /// Details about events which modified the order. [Newtonsoft.Json.JsonPropertyAttribute("orderHistory")] public virtual OrderHistory OrderHistory { get; set; } /// The order ID. [Newtonsoft.Json.JsonPropertyAttribute("orderId")] public virtual string OrderId { get; set; } /// /// Play points applied to the order, including offer information, discount rate and point values. /// [Newtonsoft.Json.JsonPropertyAttribute("pointsDetails")] public virtual PointsDetails PointsDetails { get; set; } /// The token provided to the user's device when the subscription or item was purchased. [Newtonsoft.Json.JsonPropertyAttribute("purchaseToken")] public virtual string PurchaseToken { get; set; } /// The originating sales channel of the order. [Newtonsoft.Json.JsonPropertyAttribute("salesChannel")] public virtual string SalesChannel { get; set; } /// The state of the order. [Newtonsoft.Json.JsonPropertyAttribute("state")] public virtual string State { get; set; } /// The total tax paid as a part of this order. [Newtonsoft.Json.JsonPropertyAttribute("tax")] public virtual Money Tax { get; set; } /// The final amount paid by the customer, taking into account discounts and taxes. [Newtonsoft.Json.JsonPropertyAttribute("total")] public virtual Money Total { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Detailed information about the order at creation time. public class OrderDetails : Google.Apis.Requests.IDirectResponseSchema { /// Indicates whether the listed price was tax inclusive or not. [Newtonsoft.Json.JsonPropertyAttribute("taxInclusive")] public virtual System.Nullable TaxInclusive { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Details about events which modified the order. public class OrderHistory : Google.Apis.Requests.IDirectResponseSchema { /// Details of when the order was canceled. [Newtonsoft.Json.JsonPropertyAttribute("cancellationEvent")] public virtual CancellationEvent CancellationEvent { get; set; } /// Details of the partial refund events for this order. [Newtonsoft.Json.JsonPropertyAttribute("partialRefundEvents")] public virtual System.Collections.Generic.IList PartialRefundEvents { get; set; } /// Details of when the order was processed. [Newtonsoft.Json.JsonPropertyAttribute("processedEvent")] public virtual ProcessedEvent ProcessedEvent { get; set; } /// Details of when the order was fully refunded. [Newtonsoft.Json.JsonPropertyAttribute("refundEvent")] public virtual RefundEvent RefundEvent { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// /// Details of a recurring external transaction product which doesn't belong to any other more specific category. /// public class OtherRecurringProduct : Google.Apis.Requests.IDirectResponseSchema { /// The ETag of the item. public virtual string ETag { get; set; } } /// Pricing information for any new locations Play may launch in. public class OtherRegionsBasePlanConfig : Google.Apis.Requests.IDirectResponseSchema { /// Required. Price in EUR to use for any new locations Play may launch in. [Newtonsoft.Json.JsonPropertyAttribute("eurPrice")] public virtual Money EurPrice { get; set; } /// /// Whether the base plan is available for new subscribers in any new locations Play may launch in. If not /// specified, this will default to false. /// [Newtonsoft.Json.JsonPropertyAttribute("newSubscriberAvailability")] public virtual System.Nullable NewSubscriberAvailability { get; set; } /// Required. Price in USD to use for any new locations Play may launch in. [Newtonsoft.Json.JsonPropertyAttribute("usdPrice")] public virtual Money UsdPrice { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Configuration for any new locations Play may launch in specified on a subscription offer. public class OtherRegionsSubscriptionOfferConfig : Google.Apis.Requests.IDirectResponseSchema { /// /// Whether the subscription offer in any new locations Play may launch in the future. If not specified, this /// will default to false. /// [Newtonsoft.Json.JsonPropertyAttribute("otherRegionsNewSubscriberAvailability")] public virtual System.Nullable OtherRegionsNewSubscriberAvailability { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Configuration for any new locations Play may launch in for a single offer phase. public class OtherRegionsSubscriptionOfferPhaseConfig : Google.Apis.Requests.IDirectResponseSchema { /// /// The absolute amount of money subtracted from the base plan price prorated over the phase duration that the /// user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 /// year, then a $1 absolute discount for a phase of a duration of 3 months would correspond to a price of $2. /// The resulting price may not be smaller than the minimum price allowed for any new locations Play may launch /// in. /// [Newtonsoft.Json.JsonPropertyAttribute("absoluteDiscounts")] public virtual OtherRegionsSubscriptionOfferPhasePrices AbsoluteDiscounts { get; set; } /// Set to specify this offer is free to obtain. [Newtonsoft.Json.JsonPropertyAttribute("free")] public virtual OtherRegionsSubscriptionOfferPhaseFreePriceOverride Free { get; set; } /// /// The absolute price the user pays for this offer phase. The price must not be smaller than the minimum price /// allowed for any new locations Play may launch in. /// [Newtonsoft.Json.JsonPropertyAttribute("otherRegionsPrices")] public virtual OtherRegionsSubscriptionOfferPhasePrices OtherRegionsPrices { get; set; } /// /// The fraction of the base plan price prorated over the phase duration that the user pays for this offer /// phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a 50% /// discount for a phase of a duration of 3 months would correspond to a price of $1.50. The discount must be /// specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be /// rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if /// the discounted price ends up being smaller than the minimum price allowed in any new locations Play may /// launch in. /// [Newtonsoft.Json.JsonPropertyAttribute("relativeDiscount")] public virtual System.Nullable RelativeDiscount { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// /// Represents the free price override configuration for any new locations Play may launch for a single offer phase. /// public class OtherRegionsSubscriptionOfferPhaseFreePriceOverride : Google.Apis.Requests.IDirectResponseSchema { /// The ETag of the item. public virtual string ETag { get; set; } } /// Pricing information for any new locations Play may launch in. public class OtherRegionsSubscriptionOfferPhasePrices : Google.Apis.Requests.IDirectResponseSchema { /// Required. Price in EUR to use for any new locations Play may launch in. [Newtonsoft.Json.JsonPropertyAttribute("eurPrice")] public virtual Money EurPrice { get; set; } /// Required. Price in USD to use for any new locations Play may launch in. [Newtonsoft.Json.JsonPropertyAttribute("usdPrice")] public virtual Money UsdPrice { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Information specific to an out of app purchase. public class OutOfAppPurchaseContext : Google.Apis.Requests.IDirectResponseSchema { /// User account identifier from the last expired subscription for this SKU. [Newtonsoft.Json.JsonPropertyAttribute("expiredExternalAccountIdentifiers")] public virtual ExternalAccountIdentifiers ExpiredExternalAccountIdentifiers { get; set; } /// /// The purchase token of the last expired subscription. This purchase token must only be used to help identify /// the user if the link between the purchaseToken and user is stored in your database. This cannot be used to /// call the Google Developer API if it has been more than 60 days since expiry. /// [Newtonsoft.Json.JsonPropertyAttribute("expiredPurchaseToken")] public virtual string ExpiredPurchaseToken { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// /// Information about the current page. List operations that supports paging return only one "page" of results. This /// protocol buffer message describes the page that has been returned. /// public class PageInfo : Google.Apis.Requests.IDirectResponseSchema { /// /// Maximum number of results returned in one page. ! The number of results included in the API response. /// [Newtonsoft.Json.JsonPropertyAttribute("resultPerPage")] public virtual System.Nullable ResultPerPage { get; set; } /// Index of the first result returned in the current page. [Newtonsoft.Json.JsonPropertyAttribute("startIndex")] public virtual System.Nullable StartIndex { get; set; } /// /// Total number of results available on the backend ! The total number of results in the result set. /// [Newtonsoft.Json.JsonPropertyAttribute("totalResults")] public virtual System.Nullable TotalResults { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Details of a paid app purchase. public class PaidAppDetails : Google.Apis.Requests.IDirectResponseSchema { /// The ETag of the item. public virtual string ETag { get; set; } } /// A partial refund of a transaction. public class PartialRefund : Google.Apis.Requests.IDirectResponseSchema { /// /// Required. A unique id distinguishing this partial refund. If the refund is successful, subsequent refunds /// with the same id will fail. Must be unique across refunds for one individual transaction. /// [Newtonsoft.Json.JsonPropertyAttribute("refundId")] public virtual string RefundId { get; set; } /// /// Required. The pre-tax amount of the partial refund. Should be less than the remaining pre-tax amount of the /// transaction. /// [Newtonsoft.Json.JsonPropertyAttribute("refundPreTaxAmount")] public virtual Price RefundPreTaxAmount { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Details of the partial refund events for this order. public class PartialRefundEvent : Google.Apis.Requests.IDirectResponseSchema { private string _createTimeRaw; private object _createTime; /// The time when the partial refund was created. [Newtonsoft.Json.JsonPropertyAttribute("createTime")] public virtual string CreateTimeRaw { get => _createTimeRaw; set { _createTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); _createTimeRaw = value; } } /// representation of . [Newtonsoft.Json.JsonIgnoreAttribute] [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")] public virtual object CreateTime { get => _createTime; set { _createTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); _createTime = value; } } /// representation of . [Newtonsoft.Json.JsonIgnoreAttribute] public virtual System.DateTimeOffset? CreateTimeDateTimeOffset { get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(CreateTimeRaw); set => CreateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); } private string _processTimeRaw; private object _processTime; /// The time when the partial refund was processed. [Newtonsoft.Json.JsonPropertyAttribute("processTime")] public virtual string ProcessTimeRaw { get => _processTimeRaw; set { _processTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); _processTimeRaw = value; } } /// representation of . [Newtonsoft.Json.JsonIgnoreAttribute] [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use ProcessTimeDateTimeOffset instead.")] public virtual object ProcessTime { get => _processTime; set { _processTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); _processTime = value; } } /// representation of . [Newtonsoft.Json.JsonIgnoreAttribute] public virtual System.DateTimeOffset? ProcessTimeDateTimeOffset { get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(ProcessTimeRaw); set => ProcessTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); } /// Details for the partial refund. [Newtonsoft.Json.JsonPropertyAttribute("refundDetails")] public virtual RefundDetails RefundDetails { get; set; } /// The state of the partial refund. [Newtonsoft.Json.JsonPropertyAttribute("state")] public virtual string State { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Information specific to a subscription in paused state. public class PausedStateContext : Google.Apis.Requests.IDirectResponseSchema { private string _autoResumeTimeRaw; private object _autoResumeTime; /// Time at which the subscription will be automatically resumed. [Newtonsoft.Json.JsonPropertyAttribute("autoResumeTime")] public virtual string AutoResumeTimeRaw { get => _autoResumeTimeRaw; set { _autoResumeTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); _autoResumeTimeRaw = value; } } /// representation of . [Newtonsoft.Json.JsonIgnoreAttribute] [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use AutoResumeTimeDateTimeOffset instead.")] public virtual object AutoResumeTime { get => _autoResumeTime; set { _autoResumeTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); _autoResumeTime = value; } } /// /// representation of . /// [Newtonsoft.Json.JsonIgnoreAttribute] public virtual System.DateTimeOffset? AutoResumeTimeDateTimeOffset { get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(AutoResumeTimeRaw); set => AutoResumeTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); } /// The ETag of the item. public virtual string ETag { get; set; } } /// /// This is an indicator of whether there is a pending cancellation on the virtual installment plan. The /// cancellation will happen only after the user finished all committed payments. /// public class PendingCancellation : Google.Apis.Requests.IDirectResponseSchema { /// The ETag of the item. public virtual string ETag { get; set; } } /// Details relating to any Play Points applied to an order. public class PointsDetails : Google.Apis.Requests.IDirectResponseSchema { /// /// The monetary value of a Play Points coupon. This is the discount the coupon provides, which may not be the /// total amount. Only set when Play Points coupons have been used. E.g. for a 100 points for $2 coupon, this is /// $2. /// [Newtonsoft.Json.JsonPropertyAttribute("pointsCouponValue")] public virtual Money PointsCouponValue { get; set; } /// /// The percentage rate which the Play Points promotion reduces the cost by. E.g. for a 100 points for $2 /// coupon, this is 500,000. Since $2 has an estimate of 200 points, but the actual Points required, 100, is 50% /// of this, and 50% in micros is 500,000. Between 0 and 1,000,000. /// [Newtonsoft.Json.JsonPropertyAttribute("pointsDiscountRateMicros")] public virtual System.Nullable PointsDiscountRateMicros { get; set; } /// ID unique to the play points offer in use for this order. [Newtonsoft.Json.JsonPropertyAttribute("pointsOfferId")] public virtual string PointsOfferId { get; set; } /// /// The number of Play Points applied in this order. E.g. for a 100 points for $2 coupon, this is 100. For /// coupon stacked with base offer, this is the total points spent across both. /// [Newtonsoft.Json.JsonPropertyAttribute("pointsSpent")] public virtual System.Nullable PointsSpent { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Details of a pre-order purchase. public class PreorderDetails : Google.Apis.Requests.IDirectResponseSchema { /// The ETag of the item. public virtual string ETag { get; set; } } /// Offer details information related to a preorder line item. public class PreorderOfferDetails : Google.Apis.Requests.IDirectResponseSchema { private string _preorderReleaseTimeRaw; private object _preorderReleaseTime; /// The time when a preordered item is released for a preorder purchase. [Newtonsoft.Json.JsonPropertyAttribute("preorderReleaseTime")] public virtual string PreorderReleaseTimeRaw { get => _preorderReleaseTimeRaw; set { _preorderReleaseTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); _preorderReleaseTimeRaw = value; } } /// representation of . [Newtonsoft.Json.JsonIgnoreAttribute] [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use PreorderReleaseTimeDateTimeOffset instead.")] public virtual object PreorderReleaseTime { get => _preorderReleaseTime; set { _preorderReleaseTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); _preorderReleaseTime = value; } } /// /// representation of . /// [Newtonsoft.Json.JsonIgnoreAttribute] public virtual System.DateTimeOffset? PreorderReleaseTimeDateTimeOffset { get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(PreorderReleaseTimeRaw); set => PreorderReleaseTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); } /// The ETag of the item. public virtual string ETag { get; set; } } /// /// Represents a base plan that does not automatically renew at the end of the base plan, and must be manually /// renewed by the user. /// public class PrepaidBasePlanType : Google.Apis.Requests.IDirectResponseSchema { /// /// Required. Immutable. Subscription period, specified in ISO 8601 format. For a list of acceptable billing /// periods, refer to the help center. The duration is immutable after the base plan is created. /// [Newtonsoft.Json.JsonPropertyAttribute("billingPeriodDuration")] public virtual string BillingPeriodDuration { get; set; } /// /// Whether users should be able to extend this prepaid base plan in Google Play surfaces. Defaults to /// TIME_EXTENSION_ACTIVE if not specified. /// [Newtonsoft.Json.JsonPropertyAttribute("timeExtension")] public virtual string TimeExtension { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Information related to a prepaid plan. public class PrepaidPlan : Google.Apis.Requests.IDirectResponseSchema { private string _allowExtendAfterTimeRaw; private object _allowExtendAfterTime; /// /// If present, this is the time after which top up purchases are allowed for the prepaid plan. Will not be /// present for expired prepaid plans. /// [Newtonsoft.Json.JsonPropertyAttribute("allowExtendAfterTime")] public virtual string AllowExtendAfterTimeRaw { get => _allowExtendAfterTimeRaw; set { _allowExtendAfterTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); _allowExtendAfterTimeRaw = value; } } /// representation of . [Newtonsoft.Json.JsonIgnoreAttribute] [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use AllowExtendAfterTimeDateTimeOffset instead.")] public virtual object AllowExtendAfterTime { get => _allowExtendAfterTime; set { _allowExtendAfterTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); _allowExtendAfterTime = value; } } /// /// representation of . /// [Newtonsoft.Json.JsonIgnoreAttribute] public virtual System.DateTimeOffset? AllowExtendAfterTimeDateTimeOffset { get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(AllowExtendAfterTimeRaw); set => AllowExtendAfterTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); } /// The ETag of the item. public virtual string ETag { get; set; } } /// Definition of a price, i.e. currency and units. public class Price : Google.Apis.Requests.IDirectResponseSchema { /// /// 3 letter Currency code, as defined by ISO 4217. See java/com/google/common/money/CurrencyCode.java /// [Newtonsoft.Json.JsonPropertyAttribute("currency")] public virtual string Currency { get; set; } /// Price in 1/million of the currency base unit, represented as a string. [Newtonsoft.Json.JsonPropertyAttribute("priceMicros")] public virtual string PriceMicros { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Information related to a price step-up that requires user consent. public class PriceStepUpConsentDetails : Google.Apis.Requests.IDirectResponseSchema { private string _consentDeadlineTimeRaw; private object _consentDeadlineTime; /// /// The deadline by which the user must provide consent. If consent is not provided by this time, the /// subscription will be canceled. /// [Newtonsoft.Json.JsonPropertyAttribute("consentDeadlineTime")] public virtual string ConsentDeadlineTimeRaw { get => _consentDeadlineTimeRaw; set { _consentDeadlineTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); _consentDeadlineTimeRaw = value; } } /// representation of . [Newtonsoft.Json.JsonIgnoreAttribute] [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use ConsentDeadlineTimeDateTimeOffset instead.")] public virtual object ConsentDeadlineTime { get => _consentDeadlineTime; set { _consentDeadlineTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); _consentDeadlineTime = value; } } /// /// representation of . /// [Newtonsoft.Json.JsonIgnoreAttribute] public virtual System.DateTimeOffset? ConsentDeadlineTimeDateTimeOffset { get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(ConsentDeadlineTimeRaw); set => ConsentDeadlineTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); } /// The new price which requires user consent. [Newtonsoft.Json.JsonPropertyAttribute("newPrice")] public virtual Money NewPrice { get; set; } /// Output only. The state of the price step-up consent. [Newtonsoft.Json.JsonPropertyAttribute("state")] public virtual string State { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Details of when the order was processed. public class ProcessedEvent : Google.Apis.Requests.IDirectResponseSchema { private string _eventTimeRaw; private object _eventTime; /// The time when the order was processed. [Newtonsoft.Json.JsonPropertyAttribute("eventTime")] public virtual string EventTimeRaw { get => _eventTimeRaw; set { _eventTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); _eventTimeRaw = value; } } /// representation of . [Newtonsoft.Json.JsonIgnoreAttribute] [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use EventTimeDateTimeOffset instead.")] public virtual object EventTime { get => _eventTime; set { _eventTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); _eventTime = value; } } /// representation of . [Newtonsoft.Json.JsonIgnoreAttribute] public virtual System.DateTimeOffset? EventTimeDateTimeOffset { get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(EventTimeRaw); set => EventTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); } /// The ETag of the item. public virtual string ETag { get; set; } } /// Contains item-level info for a ProductPurchaseV2. public class ProductLineItem : Google.Apis.Requests.IDirectResponseSchema { /// The purchased product ID (for example, 'monthly001'). [Newtonsoft.Json.JsonPropertyAttribute("productId")] public virtual string ProductId { get; set; } /// The offer details for this item. [Newtonsoft.Json.JsonPropertyAttribute("productOfferDetails")] public virtual ProductOfferDetails ProductOfferDetails { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Offer details information related to a purchase line item. public class ProductOfferDetails : Google.Apis.Requests.IDirectResponseSchema { /// Output only. The consumption state of the purchase. [Newtonsoft.Json.JsonPropertyAttribute("consumptionState")] public virtual string ConsumptionState { get; set; } /// The offer ID. Only present for offers. [Newtonsoft.Json.JsonPropertyAttribute("offerId")] public virtual string OfferId { get; set; } /// /// The latest offer tags associated with the offer. It includes tags inherited from the purchase option. /// [Newtonsoft.Json.JsonPropertyAttribute("offerTags")] public virtual System.Collections.Generic.IList OfferTags { get; set; } /// The per-transaction offer token used to make this purchase line item. [Newtonsoft.Json.JsonPropertyAttribute("offerToken")] public virtual string OfferToken { get; set; } /// Offer details for a preorder offer. This will only be set for preorders. [Newtonsoft.Json.JsonPropertyAttribute("preorderOfferDetails")] public virtual PreorderOfferDetails PreorderOfferDetails { get; set; } /// The purchase option ID. [Newtonsoft.Json.JsonPropertyAttribute("purchaseOptionId")] public virtual string PurchaseOptionId { get; set; } /// The quantity associated with the purchase of the inapp product. [Newtonsoft.Json.JsonPropertyAttribute("quantity")] public virtual System.Nullable Quantity { get; set; } /// /// The quantity eligible for refund, i.e. quantity that hasn't been refunded. The value reflects quantity-based /// partial refunds and full refunds. /// [Newtonsoft.Json.JsonPropertyAttribute("refundableQuantity")] public virtual System.Nullable RefundableQuantity { get; set; } /// Offer details about rent offers. This will only be set for rental line items. [Newtonsoft.Json.JsonPropertyAttribute("rentOfferDetails")] public virtual RentOfferDetails RentOfferDetails { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// A ProductPurchase resource indicates the status of a user's inapp product purchase. public class ProductPurchase : Google.Apis.Requests.IDirectResponseSchema { /// /// The acknowledgement state of the inapp product. Possible values are: 0. Yet to be acknowledged 1. /// Acknowledged /// [Newtonsoft.Json.JsonPropertyAttribute("acknowledgementState")] public virtual System.Nullable AcknowledgementState { get; set; } /// /// The consumption state of the inapp product. Possible values are: 0. Yet to be consumed 1. Consumed /// [Newtonsoft.Json.JsonPropertyAttribute("consumptionState")] public virtual System.Nullable ConsumptionState { get; set; } /// A developer-specified string that contains supplemental information about an order. [Newtonsoft.Json.JsonPropertyAttribute("developerPayload")] public virtual string DeveloperPayload { get; set; } /// This kind represents an inappPurchase object in the androidpublisher service. [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// /// An obfuscated version of the id that is uniquely associated with the user's account in your app. Only /// present if specified using /// https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.Builder#setobfuscatedaccountid /// when the purchase was made. /// [Newtonsoft.Json.JsonPropertyAttribute("obfuscatedExternalAccountId")] public virtual string ObfuscatedExternalAccountId { get; set; } /// /// An obfuscated version of the id that is uniquely associated with the user's profile in your app. Only /// present if specified using /// https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.Builder#setobfuscatedprofileid /// when the purchase was made. /// [Newtonsoft.Json.JsonPropertyAttribute("obfuscatedExternalProfileId")] public virtual string ObfuscatedExternalProfileId { get; set; } /// The order id associated with the purchase of the inapp product. [Newtonsoft.Json.JsonPropertyAttribute("orderId")] public virtual string OrderId { get; set; } /// The inapp product SKU. May not be present. [Newtonsoft.Json.JsonPropertyAttribute("productId")] public virtual string ProductId { get; set; } /// The purchase state of the order. Possible values are: 0. Purchased 1. Canceled 2. Pending [Newtonsoft.Json.JsonPropertyAttribute("purchaseState")] public virtual System.Nullable PurchaseState { get; set; } /// The time the product was purchased, in milliseconds since the epoch (Jan 1, 1970). [Newtonsoft.Json.JsonPropertyAttribute("purchaseTimeMillis")] public virtual System.Nullable PurchaseTimeMillis { get; set; } /// The purchase token generated to identify this purchase. May not be present. [Newtonsoft.Json.JsonPropertyAttribute("purchaseToken")] public virtual string PurchaseToken { get; set; } /// /// The type of purchase of the inapp product. This field is only set if this purchase was not made using the /// standard in-app billing flow. Possible values are: 0. Test (i.e. purchased from a license testing account) /// 1. Promo (i.e. purchased using a promo code). Does not include Play Points purchases. 2. Rewarded (i.e. from /// watching a video ad instead of paying) /// [Newtonsoft.Json.JsonPropertyAttribute("purchaseType")] public virtual System.Nullable PurchaseType { get; set; } /// /// The quantity associated with the purchase of the inapp product. If not present, the quantity is 1. /// [Newtonsoft.Json.JsonPropertyAttribute("quantity")] public virtual System.Nullable Quantity { get; set; } /// /// The quantity eligible for refund, i.e. quantity that hasn't been refunded. The value reflects quantity-based /// partial refunds and full refunds. /// [Newtonsoft.Json.JsonPropertyAttribute("refundableQuantity")] public virtual System.Nullable RefundableQuantity { get; set; } /// ISO 3166-1 alpha-2 billing region code of the user at the time the product was granted. [Newtonsoft.Json.JsonPropertyAttribute("regionCode")] public virtual string RegionCode { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// A ProductPurchaseV2 resource indicates the status of a user's inapp product purchase. public class ProductPurchaseV2 : Google.Apis.Requests.IDirectResponseSchema { /// Output only. The acknowledgement state of the purchase. [Newtonsoft.Json.JsonPropertyAttribute("acknowledgementState")] public virtual string AcknowledgementState { get; set; } /// This kind represents a ProductPurchaseV2 object in the androidpublisher service. [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// /// An obfuscated version of the id that is uniquely associated with the user's account in your app. Only /// present if specified using /// https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.Builder#setobfuscatedaccountid /// when the purchase was made. /// [Newtonsoft.Json.JsonPropertyAttribute("obfuscatedExternalAccountId")] public virtual string ObfuscatedExternalAccountId { get; set; } /// /// An obfuscated version of the id that is uniquely associated with the user's profile in your app. Only /// present if specified using /// https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.Builder#setobfuscatedprofileid /// when the purchase was made. /// [Newtonsoft.Json.JsonPropertyAttribute("obfuscatedExternalProfileId")] public virtual string ObfuscatedExternalProfileId { get; set; } /// /// The order id associated with the purchase of the inapp product. May not be set if there is no order /// associated with the purchase. /// [Newtonsoft.Json.JsonPropertyAttribute("orderId")] public virtual string OrderId { get; set; } /// Contains item-level info for a ProductPurchaseV2. [Newtonsoft.Json.JsonPropertyAttribute("productLineItem")] public virtual System.Collections.Generic.IList ProductLineItem { get; set; } private string _purchaseCompletionTimeRaw; private object _purchaseCompletionTime; /// /// The time when the purchase was successful, i.e., when the PurchaseState has changed to PURCHASED. This field /// will not be present until the payment is complete. For example, if the user initiated a pending transaction /// (https://developer.android.com/google/play/billing/integrate#pending), this field will not be populated /// until the user successfully completes the steps required to complete the transaction. /// [Newtonsoft.Json.JsonPropertyAttribute("purchaseCompletionTime")] public virtual string PurchaseCompletionTimeRaw { get => _purchaseCompletionTimeRaw; set { _purchaseCompletionTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); _purchaseCompletionTimeRaw = value; } } /// representation of . [Newtonsoft.Json.JsonIgnoreAttribute] [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use PurchaseCompletionTimeDateTimeOffset instead.")] public virtual object PurchaseCompletionTime { get => _purchaseCompletionTime; set { _purchaseCompletionTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); _purchaseCompletionTime = value; } } /// /// representation of . /// [Newtonsoft.Json.JsonIgnoreAttribute] public virtual System.DateTimeOffset? PurchaseCompletionTimeDateTimeOffset { get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(PurchaseCompletionTimeRaw); set => PurchaseCompletionTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); } /// Information about the purchase state of the purchase. [Newtonsoft.Json.JsonPropertyAttribute("purchaseStateContext")] public virtual PurchaseStateContext PurchaseStateContext { get; set; } /// ISO 3166-1 alpha-2 billing region code of the user at the time the product was granted. [Newtonsoft.Json.JsonPropertyAttribute("regionCode")] public virtual string RegionCode { get; set; } /// Information related to test purchases. This will only be set for test purchases. [Newtonsoft.Json.JsonPropertyAttribute("testPurchaseContext")] public virtual TestPurchaseContext TestPurchaseContext { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Request for the product.purchases.acknowledge API. public class ProductPurchasesAcknowledgeRequest : Google.Apis.Requests.IDirectResponseSchema { /// Payload to attach to the purchase. [Newtonsoft.Json.JsonPropertyAttribute("developerPayload")] public virtual string DeveloperPayload { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// /// Details of a proration period. A proration period can be a period calculated during a plan change to cover /// existing entitlements (For more information, see [Allow users to upgrade, downgrade, or change their /// subscription](https://developer.android.com/google/play/billing/subscriptions#allow-users-change), or a prorated /// period to align add-on renewal dates with the base (For more information, see [Rules applicable for items in the /// purchase](https://developer.android.com/google/play/billing/subscription-with-addons#rules-base-addons)). /// public class ProrationPeriodDetails : Google.Apis.Requests.IDirectResponseSchema { /// /// Represent the original offer phase from the purchased the line item if the proration period contains any of /// them. For example, a proration period from CHARGE_FULL_PRICE plan change may merge the 1st offer phase of /// the subscription offer of the new product user purchased. In this case, the original offer phase will be set /// here. /// [Newtonsoft.Json.JsonPropertyAttribute("originalOfferPhase")] public virtual string OriginalOfferPhase { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// /// Details about taxation, Google Play policy and legal compliance for one-time product purchase options. /// public class PurchaseOptionTaxAndComplianceSettings : Google.Apis.Requests.IDirectResponseSchema { /// /// Optional. Digital content or service classification for products distributed to users in eligible regions. /// If unset, it defaults to `WITHDRAWAL_RIGHT_DIGITAL_CONTENT`. Refer to the [Help Center /// article](https://support.google.com/googleplay/android-developer/answer/10463498) for more information. /// [Newtonsoft.Json.JsonPropertyAttribute("withdrawalRightType")] public virtual string WithdrawalRightType { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Context about the purchase state. public class PurchaseStateContext : Google.Apis.Requests.IDirectResponseSchema { /// Output only. The purchase state of the purchase. [Newtonsoft.Json.JsonPropertyAttribute("purchaseState")] public virtual string PurchaseState { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// /// Represents a transaction that is part of a recurring series of payments. This can be a subscription or a /// one-time product with multiple payments (such as preorder). /// public class RecurringExternalTransaction : Google.Apis.Requests.IDirectResponseSchema { /// Details of an external subscription. [Newtonsoft.Json.JsonPropertyAttribute("externalSubscription")] public virtual ExternalSubscription ExternalSubscription { get; set; } /// /// Input only. Provided during the call to Create. Retrieved from the client when the alternative billing flow /// is launched. Required only for the initial purchase. /// [Newtonsoft.Json.JsonPropertyAttribute("externalTransactionToken")] public virtual string ExternalTransactionToken { get; set; } /// /// The external transaction id of the first transaction of this recurring series of transactions. For example, /// for a subscription this would be the transaction id of the first payment. Required when creating recurring /// external transactions. /// [Newtonsoft.Json.JsonPropertyAttribute("initialExternalTransactionId")] public virtual string InitialExternalTransactionId { get; set; } /// /// Input only. Provided during the call to Create. Must only be used when migrating a subscription from manual /// monthly reporting to automated reporting. /// [Newtonsoft.Json.JsonPropertyAttribute("migratedTransactionProgram")] public virtual string MigratedTransactionProgram { get; set; } /// /// Details of a recurring external transaction product which doesn't belong to any other specific category. /// [Newtonsoft.Json.JsonPropertyAttribute("otherRecurringProduct")] public virtual OtherRecurringProduct OtherRecurringProduct { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Details for a partial or full refund. public class RefundDetails : Google.Apis.Requests.IDirectResponseSchema { /// The amount of tax refunded. [Newtonsoft.Json.JsonPropertyAttribute("tax")] public virtual Money Tax { get; set; } /// The total amount refunded, including tax. [Newtonsoft.Json.JsonPropertyAttribute("total")] public virtual Money Total { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Details of when the order was fully refunded. public class RefundEvent : Google.Apis.Requests.IDirectResponseSchema { private string _eventTimeRaw; private object _eventTime; /// The time when the order was fully refunded. [Newtonsoft.Json.JsonPropertyAttribute("eventTime")] public virtual string EventTimeRaw { get => _eventTimeRaw; set { _eventTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); _eventTimeRaw = value; } } /// representation of . [Newtonsoft.Json.JsonIgnoreAttribute] [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use EventTimeDateTimeOffset instead.")] public virtual object EventTime { get => _eventTime; set { _eventTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); _eventTime = value; } } /// representation of . [Newtonsoft.Json.JsonIgnoreAttribute] public virtual System.DateTimeOffset? EventTimeDateTimeOffset { get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(EventTimeRaw); set => EventTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); } /// Details for the full refund. [Newtonsoft.Json.JsonPropertyAttribute("refundDetails")] public virtual RefundDetails RefundDetails { get; set; } /// The reason the order was refunded. [Newtonsoft.Json.JsonPropertyAttribute("refundReason")] public virtual string RefundReason { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// A request to refund an existing external transaction. public class RefundExternalTransactionRequest : Google.Apis.Requests.IDirectResponseSchema { /// A full-amount refund. [Newtonsoft.Json.JsonPropertyAttribute("fullRefund")] public virtual FullRefund FullRefund { get; set; } /// A partial refund. [Newtonsoft.Json.JsonPropertyAttribute("partialRefund")] public virtual PartialRefund PartialRefund { get; set; } private string _refundTimeRaw; private object _refundTime; /// Required. The time that the transaction was refunded. [Newtonsoft.Json.JsonPropertyAttribute("refundTime")] public virtual string RefundTimeRaw { get => _refundTimeRaw; set { _refundTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); _refundTimeRaw = value; } } /// representation of . [Newtonsoft.Json.JsonIgnoreAttribute] [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use RefundTimeDateTimeOffset instead.")] public virtual object RefundTime { get => _refundTime; set { _refundTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); _refundTime = value; } } /// representation of . [Newtonsoft.Json.JsonIgnoreAttribute] public virtual System.DateTimeOffset? RefundTimeDateTimeOffset { get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(RefundTimeRaw); set => RefundTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); } /// The ETag of the item. public virtual string ETag { get; set; } } /// Configuration for a base plan specific to a region. public class RegionalBasePlanConfig : Google.Apis.Requests.IDirectResponseSchema { /// /// Whether the base plan in the specified region is available for new subscribers. Existing subscribers will /// not have their subscription canceled if this value is set to false. If not specified, this will default to /// false. /// [Newtonsoft.Json.JsonPropertyAttribute("newSubscriberAvailability")] public virtual System.Nullable NewSubscriberAvailability { get; set; } /// /// The price of the base plan in the specified region. Must be set if the base plan is available to new /// subscribers. Must be set in the currency that is linked to the specified region. /// [Newtonsoft.Json.JsonPropertyAttribute("price")] public virtual Money Price { get; set; } /// Required. Region code this configuration applies to, as defined by ISO 3166-2, e.g. "US". [Newtonsoft.Json.JsonPropertyAttribute("regionCode")] public virtual string RegionCode { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Configuration for migration of a legacy price cohort. public class RegionalPriceMigrationConfig : Google.Apis.Requests.IDirectResponseSchema { private string _oldestAllowedPriceVersionTimeRaw; private object _oldestAllowedPriceVersionTime; /// /// Required. Subscribers in all legacy price cohorts before this time will be migrated to the current price. /// Subscribers in any newer price cohorts are unaffected. Affected subscribers will receive one or more /// notifications from Google Play about the price change. Price decreases occur at the subscriber's next /// billing date. Price increases occur at the subscriber's next billing date following a notification period /// that varies by region and price increase type. /// [Newtonsoft.Json.JsonPropertyAttribute("oldestAllowedPriceVersionTime")] public virtual string OldestAllowedPriceVersionTimeRaw { get => _oldestAllowedPriceVersionTimeRaw; set { _oldestAllowedPriceVersionTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); _oldestAllowedPriceVersionTimeRaw = value; } } /// /// representation of . /// [Newtonsoft.Json.JsonIgnoreAttribute] [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use OldestAllowedPriceVersionTimeDateTimeOffset instead.")] public virtual object OldestAllowedPriceVersionTime { get => _oldestAllowedPriceVersionTime; set { _oldestAllowedPriceVersionTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); _oldestAllowedPriceVersionTime = value; } } /// /// representation of . /// [Newtonsoft.Json.JsonIgnoreAttribute] public virtual System.DateTimeOffset? OldestAllowedPriceVersionTimeDateTimeOffset { get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(OldestAllowedPriceVersionTimeRaw); set => OldestAllowedPriceVersionTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); } /// Optional. The requested type of price increase [Newtonsoft.Json.JsonPropertyAttribute("priceIncreaseType")] public virtual string PriceIncreaseType { get; set; } /// Required. Region code this configuration applies to, as defined by ISO 3166-2, e.g. "US". [Newtonsoft.Json.JsonPropertyAttribute("regionCode")] public virtual string RegionCode { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Configuration for a subscription offer in a single region. public class RegionalSubscriptionOfferConfig : Google.Apis.Requests.IDirectResponseSchema { /// /// Whether the subscription offer in the specified region is available for new subscribers. Existing /// subscribers will not have their subscription cancelled if this value is set to false. If not specified, this /// will default to false. /// [Newtonsoft.Json.JsonPropertyAttribute("newSubscriberAvailability")] public virtual System.Nullable NewSubscriberAvailability { get; set; } /// /// Required. Immutable. Region code this configuration applies to, as defined by ISO 3166-2, e.g. "US". /// [Newtonsoft.Json.JsonPropertyAttribute("regionCode")] public virtual string RegionCode { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Configuration for a single phase of a subscription offer in a single region. public class RegionalSubscriptionOfferPhaseConfig : Google.Apis.Requests.IDirectResponseSchema { /// /// The absolute amount of money subtracted from the base plan price prorated over the phase duration that the /// user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 /// year, then a $1 absolute discount for a phase of a duration of 3 months would correspond to a price of $2. /// The resulting price may not be smaller than the minimum price allowed for this region. /// [Newtonsoft.Json.JsonPropertyAttribute("absoluteDiscount")] public virtual Money AbsoluteDiscount { get; set; } /// Set to specify this offer is free to obtain. [Newtonsoft.Json.JsonPropertyAttribute("free")] public virtual RegionalSubscriptionOfferPhaseFreePriceOverride Free { get; set; } /// /// The absolute price the user pays for this offer phase. The price must not be smaller than the minimum price /// allowed for this region. /// [Newtonsoft.Json.JsonPropertyAttribute("price")] public virtual Money Price { get; set; } /// Required. Immutable. The region to which this config applies. [Newtonsoft.Json.JsonPropertyAttribute("regionCode")] public virtual string RegionCode { get; set; } /// /// The fraction of the base plan price prorated over the phase duration that the user pays for this offer /// phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a 50% /// discount for a phase of a duration of 3 months would correspond to a price of $1.50. The discount must be /// specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be /// rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if /// the discounted price ends up being smaller than the minimum price allowed in this region. /// [Newtonsoft.Json.JsonPropertyAttribute("relativeDiscount")] public virtual System.Nullable RelativeDiscount { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Represents the free price override configuration for a single phase of a subscription offer public class RegionalSubscriptionOfferPhaseFreePriceOverride : Google.Apis.Requests.IDirectResponseSchema { /// The ETag of the item. public virtual string ETag { get; set; } } /// Details about taxation in a given geographical region. public class RegionalTaxConfig : Google.Apis.Requests.IDirectResponseSchema { /// /// You must tell us if your app contains streaming products to correctly charge US state and local sales tax. /// Field only supported in the United States. /// [Newtonsoft.Json.JsonPropertyAttribute("eligibleForStreamingServiceTaxRate")] public virtual System.Nullable EligibleForStreamingServiceTaxRate { get; set; } /// Required. Region code this configuration applies to, as defined by ISO 3166-2, e.g. "US". [Newtonsoft.Json.JsonPropertyAttribute("regionCode")] public virtual string RegionCode { get; set; } /// /// To collect communications or amusement taxes in the United States, choose the appropriate tax category. /// [Learn more](https://support.google.com/googleplay/android-developer/answer/10463498#streaming_tax). /// [Newtonsoft.Json.JsonPropertyAttribute("streamingTaxType")] public virtual string StreamingTaxType { get; set; } /// /// Tax tier to specify reduced tax rate. Developers who sell digital news, magazines, newspapers, books, or /// audiobooks in various regions may be eligible for reduced tax rates. [Learn /// more](https://support.google.com/googleplay/android-developer/answer/10463498). /// [Newtonsoft.Json.JsonPropertyAttribute("taxTier")] public virtual string TaxTier { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Specified details about taxation in a given geographical region. public class RegionalTaxRateInfo : Google.Apis.Requests.IDirectResponseSchema { /// /// You must tell us if your app contains streaming products to correctly charge US state and local sales tax. /// Field only supported in the United States. /// [Newtonsoft.Json.JsonPropertyAttribute("eligibleForStreamingServiceTaxRate")] public virtual System.Nullable EligibleForStreamingServiceTaxRate { get; set; } /// /// To collect communications or amusement taxes in the United States, choose the appropriate tax category. /// [Learn more](https://support.google.com/googleplay/android-developer/answer/10463498#streaming_tax). /// [Newtonsoft.Json.JsonPropertyAttribute("streamingTaxType")] public virtual string StreamingTaxType { get; set; } /// /// Tax tier to specify reduced tax rate. Developers who sell digital news, magazines, newspapers, books, or /// audiobooks in various regions may be eligible for reduced tax rates. [Learn /// more](https://support.google.com/googleplay/android-developer/answer/10463498). /// [Newtonsoft.Json.JsonPropertyAttribute("taxTier")] public virtual string TaxTier { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Region targeting data for app recovery action targeting. public class Regions : Google.Apis.Requests.IDirectResponseSchema { /// /// Regions targeted by the recovery action. Region codes are ISO 3166 Alpha-2 country codes. For example, US /// stands for United States of America. See https://www.iso.org/iso-3166-country-codes.html for the complete /// list of country codes. /// [Newtonsoft.Json.JsonPropertyAttribute("regionCode")] public virtual System.Collections.Generic.IList RegionCode { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// The version of the available regions being used for the specified resource. public class RegionsVersion : Google.Apis.Requests.IDirectResponseSchema { /// /// Required. A string representing the version of available regions being used for the specified resource. /// Regional prices and latest supported version for the resource have to be specified according to the /// information published in [this /// article](https://support.google.com/googleplay/android-developer/answer/10532353). Each time the supported /// locations substantially change, the version will be incremented. Using this field will ensure that creating /// and updating the resource with an older region's version and set of regional prices and currencies will /// succeed even though a new version is available. /// [Newtonsoft.Json.JsonPropertyAttribute("version")] public virtual string Version { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Object representation for Remote in-app update action type. public class RemoteInAppUpdate : Google.Apis.Requests.IDirectResponseSchema { /// Required. Set to true if Remote In-App Update action type is needed. [Newtonsoft.Json.JsonPropertyAttribute("isRemoteInAppUpdateRequested")] public virtual System.Nullable IsRemoteInAppUpdateRequested { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// /// Data related to Remote In-App Update action such as recovered user count, affected user count etc. /// public class RemoteInAppUpdateData : Google.Apis.Requests.IDirectResponseSchema { /// Data related to the recovery action at bundle level. [Newtonsoft.Json.JsonPropertyAttribute("remoteAppUpdateDataPerBundle")] public virtual System.Collections.Generic.IList RemoteAppUpdateDataPerBundle { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Data related to the recovery action at bundle level. public class RemoteInAppUpdateDataPerBundle : Google.Apis.Requests.IDirectResponseSchema { /// Total number of devices which have been rescued. [Newtonsoft.Json.JsonPropertyAttribute("recoveredDeviceCount")] public virtual System.Nullable RecoveredDeviceCount { get; set; } /// /// Total number of devices affected by this recovery action associated with bundle of the app. /// [Newtonsoft.Json.JsonPropertyAttribute("totalDeviceCount")] public virtual System.Nullable TotalDeviceCount { get; set; } /// Version Code corresponding to the target bundle. [Newtonsoft.Json.JsonPropertyAttribute("versionCode")] public virtual System.Nullable VersionCode { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Offer details information related to a rental line item. public class RentOfferDetails : Google.Apis.Requests.IDirectResponseSchema { /// The ETag of the item. public virtual string ETag { get; set; } } /// Details of a rental purchase. public class RentalDetails : Google.Apis.Requests.IDirectResponseSchema { /// The ETag of the item. public virtual string ETag { get; set; } } /// Information specific to cancellations caused by subscription replacement. public class ReplacementCancellation : Google.Apis.Requests.IDirectResponseSchema { /// The ETag of the item. public virtual string ETag { get; set; } } /// /// Countries where the purchase of this product is restricted to payment methods registered in the same country. If /// empty, no payment location restrictions are imposed. /// public class RestrictedPaymentCountries : Google.Apis.Requests.IDirectResponseSchema { /// /// Required. Region codes to impose payment restrictions on, as defined by ISO 3166-2, e.g. "US". /// [Newtonsoft.Json.JsonPropertyAttribute("regionCodes")] public virtual System.Collections.Generic.IList RegionCodes { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// An Android app review. public class Review : Google.Apis.Requests.IDirectResponseSchema { /// The name of the user who wrote the review. [Newtonsoft.Json.JsonPropertyAttribute("authorName")] public virtual string AuthorName { get; set; } /// A repeated field containing comments for the review. [Newtonsoft.Json.JsonPropertyAttribute("comments")] public virtual System.Collections.Generic.IList Comments { get; set; } /// Unique identifier for this review. [Newtonsoft.Json.JsonPropertyAttribute("reviewId")] public virtual string ReviewId { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// The result of replying/updating a reply to review. public class ReviewReplyResult : Google.Apis.Requests.IDirectResponseSchema { /// The time at which the reply took effect. [Newtonsoft.Json.JsonPropertyAttribute("lastEdited")] public virtual Timestamp LastEdited { get; set; } /// The reply text that was applied. [Newtonsoft.Json.JsonPropertyAttribute("replyText")] public virtual string ReplyText { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Response listing reviews. public class ReviewsListResponse : Google.Apis.Requests.IDirectResponseSchema { /// Information about the current page. [Newtonsoft.Json.JsonPropertyAttribute("pageInfo")] public virtual PageInfo PageInfo { get; set; } /// List of reviews. [Newtonsoft.Json.JsonPropertyAttribute("reviews")] public virtual System.Collections.Generic.IList Reviews { get; set; } /// Pagination token, to handle a number of products that is over one page. [Newtonsoft.Json.JsonPropertyAttribute("tokenPagination")] public virtual TokenPagination TokenPagination { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Request to reply to review or update existing reply. public class ReviewsReplyRequest : Google.Apis.Requests.IDirectResponseSchema { /// /// The text to set as the reply. Replies of more than approximately 350 characters will be rejected. HTML tags /// will be stripped. /// [Newtonsoft.Json.JsonPropertyAttribute("replyText")] public virtual string ReplyText { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Response on status of replying to a review. public class ReviewsReplyResponse : Google.Apis.Requests.IDirectResponseSchema { /// The result of replying/updating a reply to review. [Newtonsoft.Json.JsonPropertyAttribute("result")] public virtual ReviewReplyResult Result { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Revocation context of the purchases.subscriptionsv2.revoke API. public class RevocationContext : Google.Apis.Requests.IDirectResponseSchema { /// /// Optional. Used when users should be refunded the full amount of latest charge on each item in the /// subscription. /// [Newtonsoft.Json.JsonPropertyAttribute("fullRefund")] public virtual RevocationContextFullRefund FullRefund { get; set; } /// /// Optional. Used when a specific item should be refunded in a subscription with add-on items. /// [Newtonsoft.Json.JsonPropertyAttribute("itemBasedRefund")] public virtual RevocationContextItemBasedRefund ItemBasedRefund { get; set; } /// /// Optional. Used when users should be refunded a prorated amount they paid for their subscription based on the /// amount of time remaining in a subscription. /// [Newtonsoft.Json.JsonPropertyAttribute("proratedRefund")] public virtual RevocationContextProratedRefund ProratedRefund { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Used to determine if the refund type in the RevocationContext is a full refund. public class RevocationContextFullRefund : Google.Apis.Requests.IDirectResponseSchema { /// The ETag of the item. public virtual string ETag { get; set; } } /// Used to determine what specific item to revoke in a subscription with multiple items. public class RevocationContextItemBasedRefund : Google.Apis.Requests.IDirectResponseSchema { /// /// Required. If the subscription is a subscription with add-ons, the product id of the subscription item to /// revoke. /// [Newtonsoft.Json.JsonPropertyAttribute("productId")] public virtual string ProductId { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Used to determine if the refund type in the RevocationContext is a prorated refund. public class RevocationContextProratedRefund : Google.Apis.Requests.IDirectResponseSchema { /// The ETag of the item. public virtual string ETag { get; set; } } /// Request for the purchases.subscriptionsv2.revoke API. public class RevokeSubscriptionPurchaseRequest : Google.Apis.Requests.IDirectResponseSchema { /// Required. Additional details around the subscription revocation. [Newtonsoft.Json.JsonPropertyAttribute("revocationContext")] public virtual RevocationContext RevocationContext { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Response for the purchases.subscriptionsv2.revoke API. public class RevokeSubscriptionPurchaseResponse : Google.Apis.Requests.IDirectResponseSchema { /// The ETag of the item. public virtual string ETag { get; set; } } /// Request to update Safety Labels of an app. public class SafetyLabelsUpdateRequest : Google.Apis.Requests.IDirectResponseSchema { /// /// Required. Contents of the CSV file containing Data Safety responses. For the format of this file, see the /// Help Center documentation at /// https://support.google.com/googleplay/android-developer/answer/10787469?#zippy=%2Cunderstand-the-csv-format /// To download an up to date template, follow the steps at /// https://support.google.com/googleplay/android-developer/answer/10787469?#zippy=%2Cexport-to-a-csv-file /// [Newtonsoft.Json.JsonPropertyAttribute("safetyLabels")] public virtual string SafetyLabels { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Response for SafetyLabelsUpdate rpc. public class SafetyLabelsUpdateResponse : Google.Apis.Requests.IDirectResponseSchema { /// The ETag of the item. public virtual string ETag { get; set; } } /// Represents a screen density. public class ScreenDensity : Google.Apis.Requests.IDirectResponseSchema { /// Alias for a screen density. [Newtonsoft.Json.JsonPropertyAttribute("densityAlias")] public virtual string DensityAlias { get; set; } /// Value for density dpi. [Newtonsoft.Json.JsonPropertyAttribute("densityDpi")] public virtual System.Nullable DensityDpi { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Targeting based on screen density. public class ScreenDensityTargeting : Google.Apis.Requests.IDirectResponseSchema { /// /// Targeting of other sibling directories that were in the Bundle. For main splits this is targeting of other /// main splits. /// [Newtonsoft.Json.JsonPropertyAttribute("alternatives")] public virtual System.Collections.Generic.IList Alternatives { get; set; } /// Value of a screen density. [Newtonsoft.Json.JsonPropertyAttribute("value")] public virtual System.Collections.Generic.IList Value { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Represents an sdk version. public class SdkVersion : Google.Apis.Requests.IDirectResponseSchema { /// Inclusive minimum value of an sdk version. [Newtonsoft.Json.JsonPropertyAttribute("min")] public virtual System.Nullable Min { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Targeting based on sdk version. public class SdkVersionTargeting : Google.Apis.Requests.IDirectResponseSchema { /// /// Targeting of other sibling directories that were in the Bundle. For main splits this is targeting of other /// main splits. /// [Newtonsoft.Json.JsonPropertyAttribute("alternatives")] public virtual System.Collections.Generic.IList Alternatives { get; set; } /// Value of an sdk version. [Newtonsoft.Json.JsonPropertyAttribute("value")] public virtual System.Collections.Generic.IList Value { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// The promotion applied on this item when purchased. public class SignupPromotion : Google.Apis.Requests.IDirectResponseSchema { /// A one-time code was applied. [Newtonsoft.Json.JsonPropertyAttribute("oneTimeCode")] public virtual OneTimeCode OneTimeCode { get; set; } /// A vanity code was applied. [Newtonsoft.Json.JsonPropertyAttribute("vanityCode")] public virtual VanityCode VanityCode { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Holds data specific to Split APKs. public class SplitApkMetadata : Google.Apis.Requests.IDirectResponseSchema { /// Indicates whether this APK is the main split of the module. [Newtonsoft.Json.JsonPropertyAttribute("isMasterSplit")] public virtual System.Nullable IsMasterSplit { get; set; } /// Id of the split. [Newtonsoft.Json.JsonPropertyAttribute("splitId")] public virtual string SplitId { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// /// Variant is a group of APKs that covers a part of the device configuration space. APKs from multiple variants are /// never combined on one device. /// public class SplitApkVariant : Google.Apis.Requests.IDirectResponseSchema { /// Set of APKs, one set per module. [Newtonsoft.Json.JsonPropertyAttribute("apkSet")] public virtual System.Collections.Generic.IList ApkSet { get; set; } /// Variant-level targeting. [Newtonsoft.Json.JsonPropertyAttribute("targeting")] public virtual VariantTargeting Targeting { get; set; } /// /// Number of the variant, starting at 0 (unless overridden). A device will receive APKs from the first variant /// that matches the device configuration, with higher variant numbers having priority over lower variant /// numbers. /// [Newtonsoft.Json.JsonPropertyAttribute("variantNumber")] public virtual System.Nullable VariantNumber { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Holds data specific to Standalone APKs. public class StandaloneApkMetadata : Google.Apis.Requests.IDirectResponseSchema { /// Names of the modules fused in this standalone APK. [Newtonsoft.Json.JsonPropertyAttribute("fusedModuleName")] public virtual System.Collections.Generic.IList FusedModuleName { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Information associated with purchases made with 'Subscribe with Google'. public class SubscribeWithGoogleInfo : Google.Apis.Requests.IDirectResponseSchema { /// The email address of the user when the subscription was purchased. [Newtonsoft.Json.JsonPropertyAttribute("emailAddress")] public virtual string EmailAddress { get; set; } /// The family name of the user when the subscription was purchased. [Newtonsoft.Json.JsonPropertyAttribute("familyName")] public virtual string FamilyName { get; set; } /// The given name of the user when the subscription was purchased. [Newtonsoft.Json.JsonPropertyAttribute("givenName")] public virtual string GivenName { get; set; } /// The Google profile id of the user when the subscription was purchased. [Newtonsoft.Json.JsonPropertyAttribute("profileId")] public virtual string ProfileId { get; set; } /// The profile name of the user when the subscription was purchased. [Newtonsoft.Json.JsonPropertyAttribute("profileName")] public virtual string ProfileName { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// A single subscription for an app. public class Subscription : Google.Apis.Requests.IDirectResponseSchema { /// Output only. Deprecated: subscription archiving is not supported. [Newtonsoft.Json.JsonPropertyAttribute("archived")] public virtual System.Nullable Archived { get; set; } /// /// The set of base plans for this subscription. Represents the prices and duration of the subscription if no /// other offers apply. /// [Newtonsoft.Json.JsonPropertyAttribute("basePlans")] public virtual System.Collections.Generic.IList BasePlans { get; set; } /// /// Required. List of localized listings for this subscription. Must contain at least an entry for the default /// language of the parent app. /// [Newtonsoft.Json.JsonPropertyAttribute("listings")] public virtual System.Collections.Generic.IList Listings { get; set; } /// Immutable. Package name of the parent app. [Newtonsoft.Json.JsonPropertyAttribute("packageName")] public virtual string PackageName { get; set; } /// /// Immutable. Unique product ID of the product. Unique within the parent app. Product IDs must be composed of /// lower-case letters (a-z), numbers (0-9), underscores (_) and dots (.). It must start with a lower-case /// letter or number, and be between 1 and 40 (inclusive) characters in length. /// [Newtonsoft.Json.JsonPropertyAttribute("productId")] public virtual string ProductId { get; set; } /// /// Optional. Countries where the purchase of this subscription is restricted to payment methods registered in /// the same country. If empty, no payment location restrictions are imposed. /// [Newtonsoft.Json.JsonPropertyAttribute("restrictedPaymentCountries")] public virtual RestrictedPaymentCountries RestrictedPaymentCountries { get; set; } /// Details about taxes and legal compliance. [Newtonsoft.Json.JsonPropertyAttribute("taxAndComplianceSettings")] public virtual SubscriptionTaxAndComplianceSettings TaxAndComplianceSettings { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// /// Information provided by the user when they complete the subscription cancellation flow (cancellation reason /// survey). /// public class SubscriptionCancelSurveyResult : Google.Apis.Requests.IDirectResponseSchema { /// /// The cancellation reason the user chose in the survey. Possible values are: 0. Other 1. I don't use this /// service enough 2. Technical issues 3. Cost-related reasons 4. I found a better app /// [Newtonsoft.Json.JsonPropertyAttribute("cancelSurveyReason")] public virtual System.Nullable CancelSurveyReason { get; set; } /// The customized input cancel reason from the user. Only present when cancelReason is 0. [Newtonsoft.Json.JsonPropertyAttribute("userInputCancelReason")] public virtual string UserInputCancelReason { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// /// A SubscriptionDeferralInfo contains the data needed to defer a subscription purchase to a future expiry time. /// public class SubscriptionDeferralInfo : Google.Apis.Requests.IDirectResponseSchema { /// /// The desired next expiry time to assign to the subscription, in milliseconds since the Epoch. The given time /// must be later/greater than the current expiry time for the subscription. /// [Newtonsoft.Json.JsonPropertyAttribute("desiredExpiryTimeMillis")] public virtual System.Nullable DesiredExpiryTimeMillis { get; set; } /// /// The expected expiry time for the subscription. If the current expiry time for the subscription is not the /// value specified here, the deferral will not occur. /// [Newtonsoft.Json.JsonPropertyAttribute("expectedExpiryTimeMillis")] public virtual System.Nullable ExpectedExpiryTimeMillis { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Details of a subscription purchase. public class SubscriptionDetails : Google.Apis.Requests.IDirectResponseSchema { /// The base plan ID of the subscription. [Newtonsoft.Json.JsonPropertyAttribute("basePlanId")] public virtual string BasePlanId { get; set; } /// The offer ID for the current subscription offer. [Newtonsoft.Json.JsonPropertyAttribute("offerId")] public virtual string OfferId { get; set; } /// /// The pricing phase for the billing period funded by this order. Deprecated. Use offer_phase_details instead. /// [Newtonsoft.Json.JsonPropertyAttribute("offerPhase")] public virtual string OfferPhase { get; set; } /// The pricing phase details for the entitlement period funded by this order. [Newtonsoft.Json.JsonPropertyAttribute("offerPhaseDetails")] public virtual OfferPhaseDetails OfferPhaseDetails { get; set; } private string _servicePeriodEndTimeRaw; private object _servicePeriodEndTime; /// /// The end of the billing period funded by this order. This is a snapshot of the billing/service period end /// time at the moment the order was processed, and should be used only for accounting. To get the current end /// time of the subscription service period, use purchases.subscriptionsv2.get. /// [Newtonsoft.Json.JsonPropertyAttribute("servicePeriodEndTime")] public virtual string ServicePeriodEndTimeRaw { get => _servicePeriodEndTimeRaw; set { _servicePeriodEndTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); _servicePeriodEndTimeRaw = value; } } /// representation of . [Newtonsoft.Json.JsonIgnoreAttribute] [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use ServicePeriodEndTimeDateTimeOffset instead.")] public virtual object ServicePeriodEndTime { get => _servicePeriodEndTime; set { _servicePeriodEndTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); _servicePeriodEndTime = value; } } /// /// representation of . /// [Newtonsoft.Json.JsonIgnoreAttribute] public virtual System.DateTimeOffset? ServicePeriodEndTimeDateTimeOffset { get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(ServicePeriodEndTimeRaw); set => ServicePeriodEndTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); } private string _servicePeriodStartTimeRaw; private object _servicePeriodStartTime; /// /// The start of the billing period funded by this order. This is a snapshot of the billing/service period start /// time at the moment the order was processed, and should be used only for accounting. /// [Newtonsoft.Json.JsonPropertyAttribute("servicePeriodStartTime")] public virtual string ServicePeriodStartTimeRaw { get => _servicePeriodStartTimeRaw; set { _servicePeriodStartTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); _servicePeriodStartTimeRaw = value; } } /// representation of . [Newtonsoft.Json.JsonIgnoreAttribute] [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use ServicePeriodStartTimeDateTimeOffset instead.")] public virtual object ServicePeriodStartTime { get => _servicePeriodStartTime; set { _servicePeriodStartTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); _servicePeriodStartTime = value; } } /// /// representation of . /// [Newtonsoft.Json.JsonIgnoreAttribute] public virtual System.DateTimeOffset? ServicePeriodStartTimeDateTimeOffset { get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(ServicePeriodStartTimeRaw); set => ServicePeriodStartTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); } /// The ETag of the item. public virtual string ETag { get; set; } } /// Price change related information of a subscription item. public class SubscriptionItemPriceChangeDetails : Google.Apis.Requests.IDirectResponseSchema { private string _expectedNewPriceChargeTimeRaw; private object _expectedNewPriceChargeTime; /// /// The renewal time at which the price change will become effective for the user. This is subject to change(to /// a future time) due to cases where the renewal time shifts like pause. This field is only populated if the /// price change has not taken effect. /// [Newtonsoft.Json.JsonPropertyAttribute("expectedNewPriceChargeTime")] public virtual string ExpectedNewPriceChargeTimeRaw { get => _expectedNewPriceChargeTimeRaw; set { _expectedNewPriceChargeTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); _expectedNewPriceChargeTimeRaw = value; } } /// representation of . [Newtonsoft.Json.JsonIgnoreAttribute] [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use ExpectedNewPriceChargeTimeDateTimeOffset instead.")] public virtual object ExpectedNewPriceChargeTime { get => _expectedNewPriceChargeTime; set { _expectedNewPriceChargeTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); _expectedNewPriceChargeTime = value; } } /// /// representation of . /// [Newtonsoft.Json.JsonIgnoreAttribute] public virtual System.DateTimeOffset? ExpectedNewPriceChargeTimeDateTimeOffset { get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(ExpectedNewPriceChargeTimeRaw); set => ExpectedNewPriceChargeTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); } /// New recurring price for the subscription item. [Newtonsoft.Json.JsonPropertyAttribute("newPrice")] public virtual Money NewPrice { get; set; } /// Price change mode specifies how the subscription item price is changing. [Newtonsoft.Json.JsonPropertyAttribute("priceChangeMode")] public virtual string PriceChangeMode { get; set; } /// State the price change is currently in. [Newtonsoft.Json.JsonPropertyAttribute("priceChangeState")] public virtual string PriceChangeState { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// The consumer-visible metadata of a subscription. public class SubscriptionListing : Google.Apis.Requests.IDirectResponseSchema { /// /// A list of benefits shown to the user on platforms such as the Play Store and in restoration flows in the /// language of this listing. Plain text. Ordered list of at most four benefits. /// [Newtonsoft.Json.JsonPropertyAttribute("benefits")] public virtual System.Collections.Generic.IList Benefits { get; set; } /// /// The description of this subscription in the language of this listing. Maximum length - 80 characters. Plain /// text. /// [Newtonsoft.Json.JsonPropertyAttribute("description")] public virtual string Description { get; set; } /// Required. The language of this listing, as defined by BCP-47, e.g. "en-US". [Newtonsoft.Json.JsonPropertyAttribute("languageCode")] public virtual string LanguageCode { get; set; } /// Required. The title of this subscription in the language of this listing. Plain text. [Newtonsoft.Json.JsonPropertyAttribute("title")] public virtual string Title { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// A single, temporary offer public class SubscriptionOffer : Google.Apis.Requests.IDirectResponseSchema { /// Required. Immutable. The ID of the base plan to which this offer is an extension. [Newtonsoft.Json.JsonPropertyAttribute("basePlanId")] public virtual string BasePlanId { get; set; } /// /// Required. Immutable. Unique ID of this subscription offer. Must be unique within the base plan. /// [Newtonsoft.Json.JsonPropertyAttribute("offerId")] public virtual string OfferId { get; set; } /// /// List of up to 20 custom tags specified for this offer, and returned to the app through the billing library. /// [Newtonsoft.Json.JsonPropertyAttribute("offerTags")] public virtual System.Collections.Generic.IList OfferTags { get; set; } /// The configuration for any new locations Play may launch in the future. [Newtonsoft.Json.JsonPropertyAttribute("otherRegionsConfig")] public virtual OtherRegionsSubscriptionOfferConfig OtherRegionsConfig { get; set; } /// Required. Immutable. The package name of the app the parent subscription belongs to. [Newtonsoft.Json.JsonPropertyAttribute("packageName")] public virtual string PackageName { get; set; } /// /// Required. The phases of this subscription offer. Must contain at least one and at most two entries. Users /// will always receive all these phases in the specified order. /// [Newtonsoft.Json.JsonPropertyAttribute("phases")] public virtual System.Collections.Generic.IList Phases { get; set; } /// Required. Immutable. The ID of the parent subscription this offer belongs to. [Newtonsoft.Json.JsonPropertyAttribute("productId")] public virtual string ProductId { get; set; } /// /// Required. The region-specific configuration of this offer. Must contain at least one entry. /// [Newtonsoft.Json.JsonPropertyAttribute("regionalConfigs")] public virtual System.Collections.Generic.IList RegionalConfigs { get; set; } /// /// Output only. The current state of this offer. Can be changed using Activate and Deactivate actions. NB: the /// base plan state supersedes this state, so an active offer may not be available if the base plan is not /// active. /// [Newtonsoft.Json.JsonPropertyAttribute("state")] public virtual string State { get; set; } /// /// The requirements that users need to fulfil to be eligible for this offer. Represents the requirements that /// Play will evaluate to decide whether an offer should be returned. Developers may further filter these offers /// themselves. /// [Newtonsoft.Json.JsonPropertyAttribute("targeting")] public virtual SubscriptionOfferTargeting Targeting { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// A single phase of a subscription offer. public class SubscriptionOfferPhase : Google.Apis.Requests.IDirectResponseSchema { /// /// Required. The duration of a single recurrence of this phase. Specified in ISO 8601 format. /// [Newtonsoft.Json.JsonPropertyAttribute("duration")] public virtual string Duration { get; set; } /// Pricing information for any new locations Play may launch in. [Newtonsoft.Json.JsonPropertyAttribute("otherRegionsConfig")] public virtual OtherRegionsSubscriptionOfferPhaseConfig OtherRegionsConfig { get; set; } /// /// Required. The number of times this phase repeats. If this offer phase is not free, each recurrence charges /// the user the price of this offer phase. /// [Newtonsoft.Json.JsonPropertyAttribute("recurrenceCount")] public virtual System.Nullable RecurrenceCount { get; set; } /// /// Required. The region-specific configuration of this offer phase. This list must contain exactly one entry /// for each region for which the subscription offer has a regional config. /// [Newtonsoft.Json.JsonPropertyAttribute("regionalConfigs")] public virtual System.Collections.Generic.IList RegionalConfigs { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Defines the rule a user needs to satisfy to receive this offer. public class SubscriptionOfferTargeting : Google.Apis.Requests.IDirectResponseSchema { /// Offer targeting rule for new user acquisition. [Newtonsoft.Json.JsonPropertyAttribute("acquisitionRule")] public virtual AcquisitionTargetingRule AcquisitionRule { get; set; } /// Offer targeting rule for upgrading users' existing plans. [Newtonsoft.Json.JsonPropertyAttribute("upgradeRule")] public virtual UpgradeTargetingRule UpgradeRule { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// /// Contains the price change information for a subscription that can be used to control the user journey for the /// price change in the app. This can be in the form of seeking confirmation from the user or tailoring the /// experience for a successful conversion. /// public class SubscriptionPriceChange : Google.Apis.Requests.IDirectResponseSchema { /// /// The new price the subscription will renew with if the price change is accepted by the user. /// [Newtonsoft.Json.JsonPropertyAttribute("newPrice")] public virtual Price NewPrice { get; set; } /// /// The current state of the price change. Possible values are: 0. Outstanding: State for a pending price change /// waiting for the user to agree. In this state, you can optionally seek confirmation from the user using the /// In-App API. 1. Accepted: State for an accepted price change that the subscription will renew with unless /// it's canceled. The price change takes effect on a future date when the subscription renews. Note that the /// change might not occur when the subscription is renewed next. /// [Newtonsoft.Json.JsonPropertyAttribute("state")] public virtual System.Nullable State { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// A SubscriptionPurchase resource indicates the status of a user's subscription purchase. public class SubscriptionPurchase : Google.Apis.Requests.IDirectResponseSchema { /// /// The acknowledgement state of the subscription product. Possible values are: 0. Yet to be acknowledged 1. /// Acknowledged /// [Newtonsoft.Json.JsonPropertyAttribute("acknowledgementState")] public virtual System.Nullable AcknowledgementState { get; set; } /// /// Whether the subscription will automatically be renewed when it reaches its current expiry time. /// [Newtonsoft.Json.JsonPropertyAttribute("autoRenewing")] public virtual System.Nullable AutoRenewing { get; set; } /// /// Time at which the subscription will be automatically resumed, in milliseconds since the Epoch. Only present /// if the user has requested to pause the subscription. /// [Newtonsoft.Json.JsonPropertyAttribute("autoResumeTimeMillis")] public virtual System.Nullable AutoResumeTimeMillis { get; set; } /// /// The reason why a subscription was canceled or is not auto-renewing. Possible values are: 0. User canceled /// the subscription 1. Subscription was canceled by the system, for example because of a billing problem 2. /// Subscription was replaced with a new subscription 3. Subscription was canceled by the developer /// [Newtonsoft.Json.JsonPropertyAttribute("cancelReason")] public virtual System.Nullable CancelReason { get; set; } /// /// Information provided by the user when they complete the subscription cancellation flow (cancellation reason /// survey). /// [Newtonsoft.Json.JsonPropertyAttribute("cancelSurveyResult")] public virtual SubscriptionCancelSurveyResult CancelSurveyResult { get; set; } /// /// ISO 3166-1 alpha-2 billing country/region code of the user at the time the subscription was granted. /// [Newtonsoft.Json.JsonPropertyAttribute("countryCode")] public virtual string CountryCode { get; set; } /// A developer-specified string that contains supplemental information about an order. [Newtonsoft.Json.JsonPropertyAttribute("developerPayload")] public virtual string DeveloperPayload { get; set; } /// /// The email address of the user when the subscription was purchased. Only present for purchases made with /// 'Subscribe with Google'. /// [Newtonsoft.Json.JsonPropertyAttribute("emailAddress")] public virtual string EmailAddress { get; set; } /// Time at which the subscription will expire, in milliseconds since the Epoch. [Newtonsoft.Json.JsonPropertyAttribute("expiryTimeMillis")] public virtual System.Nullable ExpiryTimeMillis { get; set; } /// /// User account identifier in the third-party service. Only present if account linking happened as part of the /// subscription purchase flow. /// [Newtonsoft.Json.JsonPropertyAttribute("externalAccountId")] public virtual string ExternalAccountId { get; set; } /// /// The family name of the user when the subscription was purchased. Only present for purchases made with /// 'Subscribe with Google'. /// [Newtonsoft.Json.JsonPropertyAttribute("familyName")] public virtual string FamilyName { get; set; } /// /// The given name of the user when the subscription was purchased. Only present for purchases made with /// 'Subscribe with Google'. /// [Newtonsoft.Json.JsonPropertyAttribute("givenName")] public virtual string GivenName { get; set; } /// /// Introductory price information of the subscription. This is only present when the subscription was purchased /// with an introductory price. This field does not indicate the subscription is currently in introductory price /// period. /// [Newtonsoft.Json.JsonPropertyAttribute("introductoryPriceInfo")] public virtual IntroductoryPriceInfo IntroductoryPriceInfo { get; set; } /// This kind represents a subscriptionPurchase object in the androidpublisher service. [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// /// The purchase token of the originating purchase if this subscription is one of the following: 0. Re-signup of /// a canceled but non-lapsed subscription 1. Upgrade/downgrade from a previous subscription For example, /// suppose a user originally signs up and you receive purchase token X, then the user cancels and goes through /// the resignup flow (before their subscription lapses) and you receive purchase token Y, and finally the user /// upgrades their subscription and you receive purchase token Z. If you call this API with purchase token Z, /// this field will be set to Y. If you call this API with purchase token Y, this field will be set to X. If you /// call this API with purchase token X, this field will not be set. /// [Newtonsoft.Json.JsonPropertyAttribute("linkedPurchaseToken")] public virtual string LinkedPurchaseToken { get; set; } /// /// An obfuscated version of the id that is uniquely associated with the user's account in your app. Present for /// the following purchases: * If account linking happened as part of the subscription purchase flow. * It was /// specified using /// https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.Builder#setobfuscatedaccountid /// when the purchase was made. /// [Newtonsoft.Json.JsonPropertyAttribute("obfuscatedExternalAccountId")] public virtual string ObfuscatedExternalAccountId { get; set; } /// /// An obfuscated version of the id that is uniquely associated with the user's profile in your app. Only /// present if specified using /// https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.Builder#setobfuscatedprofileid /// when the purchase was made. /// [Newtonsoft.Json.JsonPropertyAttribute("obfuscatedExternalProfileId")] public virtual string ObfuscatedExternalProfileId { get; set; } /// /// The order id of the latest recurring order associated with the purchase of the subscription. If the /// subscription was canceled because payment was declined, this will be the order id from the payment declined /// order. /// [Newtonsoft.Json.JsonPropertyAttribute("orderId")] public virtual string OrderId { get; set; } /// /// The payment state of the subscription. Possible values are: 0. Payment pending 1. Payment received 2. Free /// trial 3. Pending deferred upgrade/downgrade Not present for canceled, expired subscriptions. /// [Newtonsoft.Json.JsonPropertyAttribute("paymentState")] public virtual System.Nullable PaymentState { get; set; } /// /// Price of the subscription, For tax exclusive countries, the price doesn't include tax. For tax inclusive /// countries, the price includes tax. Price is expressed in micro-units, where 1,000,000 micro-units represents /// one unit of the currency. For example, if the subscription price is €1.99, price_amount_micros is 1990000. /// [Newtonsoft.Json.JsonPropertyAttribute("priceAmountMicros")] public virtual System.Nullable PriceAmountMicros { get; set; } /// /// The latest price change information available. This is present only when there is an upcoming price change /// for the subscription yet to be applied. Once the subscription renews with the new price or the subscription /// is canceled, no price change information will be returned. /// [Newtonsoft.Json.JsonPropertyAttribute("priceChange")] public virtual SubscriptionPriceChange PriceChange { get; set; } /// /// ISO 4217 currency code for the subscription price. For example, if the price is specified in British pounds /// sterling, price_currency_code is "GBP". /// [Newtonsoft.Json.JsonPropertyAttribute("priceCurrencyCode")] public virtual string PriceCurrencyCode { get; set; } /// /// The Google profile id of the user when the subscription was purchased. Only present for purchases made with /// 'Subscribe with Google'. /// [Newtonsoft.Json.JsonPropertyAttribute("profileId")] public virtual string ProfileId { get; set; } /// /// The profile name of the user when the subscription was purchased. Only present for purchases made with /// 'Subscribe with Google'. /// [Newtonsoft.Json.JsonPropertyAttribute("profileName")] public virtual string ProfileName { get; set; } /// /// The promotion code applied on this purchase. This field is only set if a vanity code promotion is applied /// when the subscription was purchased. /// [Newtonsoft.Json.JsonPropertyAttribute("promotionCode")] public virtual string PromotionCode { get; set; } /// /// The type of promotion applied on this purchase. This field is only set if a promotion is applied when the /// subscription was purchased. Possible values are: 0. One time code 1. Vanity code /// [Newtonsoft.Json.JsonPropertyAttribute("promotionType")] public virtual System.Nullable PromotionType { get; set; } /// /// The type of purchase of the subscription. This field is only set if this purchase was not made using the /// standard in-app billing flow. Possible values are: 0. Test (i.e. purchased from a license testing account) /// 1. Promo (i.e. purchased using a promo code) /// [Newtonsoft.Json.JsonPropertyAttribute("purchaseType")] public virtual System.Nullable PurchaseType { get; set; } /// Time at which the subscription was granted, in milliseconds since the Epoch. [Newtonsoft.Json.JsonPropertyAttribute("startTimeMillis")] public virtual System.Nullable StartTimeMillis { get; set; } /// /// The time at which the subscription was canceled by the user, in milliseconds since the epoch. Only present /// if cancelReason is 0. /// [Newtonsoft.Json.JsonPropertyAttribute("userCancellationTimeMillis")] public virtual System.Nullable UserCancellationTimeMillis { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Item-level info for a subscription purchase. public class SubscriptionPurchaseLineItem : Google.Apis.Requests.IDirectResponseSchema { /// The item is auto renewing. [Newtonsoft.Json.JsonPropertyAttribute("autoRenewingPlan")] public virtual AutoRenewingPlan AutoRenewingPlan { get; set; } /// Information for deferred item removal. [Newtonsoft.Json.JsonPropertyAttribute("deferredItemRemoval")] public virtual DeferredItemRemoval DeferredItemRemoval { get; set; } /// Information for deferred item replacement. [Newtonsoft.Json.JsonPropertyAttribute("deferredItemReplacement")] public virtual DeferredItemReplacement DeferredItemReplacement { get; set; } private string _expiryTimeRaw; private object _expiryTime; /// /// Time at which the subscription expired or will expire unless the access is extended (ex. renews). /// [Newtonsoft.Json.JsonPropertyAttribute("expiryTime")] public virtual string ExpiryTimeRaw { get => _expiryTimeRaw; set { _expiryTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); _expiryTimeRaw = value; } } /// representation of . [Newtonsoft.Json.JsonIgnoreAttribute] [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use ExpiryTimeDateTimeOffset instead.")] public virtual object ExpiryTime { get => _expiryTime; set { _expiryTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); _expiryTime = value; } } /// representation of . [Newtonsoft.Json.JsonIgnoreAttribute] public virtual System.DateTimeOffset? ExpiryTimeDateTimeOffset { get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(ExpiryTimeRaw); set => ExpiryTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); } /// /// Details of the item being replaced. This field is only populated if this item replaced another item in a /// previous subscription and is only available for 60 days after the purchase time. /// [Newtonsoft.Json.JsonPropertyAttribute("itemReplacement")] public virtual ItemReplacement ItemReplacement { get; set; } /// /// The order id of the latest successful order associated with this item. Not present if the item is not owned /// by the user yet (e.g. the item being deferred replaced to). /// [Newtonsoft.Json.JsonPropertyAttribute("latestSuccessfulOrderId")] public virtual string LatestSuccessfulOrderId { get; set; } /// The offer details for this item. [Newtonsoft.Json.JsonPropertyAttribute("offerDetails")] public virtual OfferDetails OfferDetails { get; set; } /// The item is prepaid. [Newtonsoft.Json.JsonPropertyAttribute("prepaidPlan")] public virtual PrepaidPlan PrepaidPlan { get; set; } /// The purchased product ID (for example, 'monthly001'). [Newtonsoft.Json.JsonPropertyAttribute("productId")] public virtual string ProductId { get; set; } /// Promotion details about this item. Only set if a promotion was applied during signup. [Newtonsoft.Json.JsonPropertyAttribute("signupPromotion")] public virtual SignupPromotion SignupPromotion { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Indicates the status of a user's subscription purchase. public class SubscriptionPurchaseV2 : Google.Apis.Requests.IDirectResponseSchema { /// The acknowledgement state of the subscription. [Newtonsoft.Json.JsonPropertyAttribute("acknowledgementState")] public virtual string AcknowledgementState { get; set; } /// /// Additional context around canceled subscriptions. Only present if the subscription currently has /// subscription_state SUBSCRIPTION_STATE_CANCELED or SUBSCRIPTION_STATE_EXPIRED. /// [Newtonsoft.Json.JsonPropertyAttribute("canceledStateContext")] public virtual CanceledStateContext CanceledStateContext { get; set; } /// User account identifier in the third-party service. [Newtonsoft.Json.JsonPropertyAttribute("externalAccountIdentifiers")] public virtual ExternalAccountIdentifiers ExternalAccountIdentifiers { get; set; } /// This kind represents a SubscriptionPurchaseV2 object in the androidpublisher service. [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// /// Deprecated: Use line_items.latest_successful_order_id instead. The order id of the latest order associated /// with the purchase of the subscription. For autoRenewing subscription, this is the order id of signup order /// if it is not renewed yet, or the last recurring order id (success, pending, or declined order). For prepaid /// subscription, this is the order id associated with the queried purchase token. /// [Newtonsoft.Json.JsonPropertyAttribute("latestOrderId")] public virtual string LatestOrderId { get; set; } /// /// Item-level info for a subscription purchase. The items in the same purchase should be either all with /// AutoRenewingPlan or all with PrepaidPlan. /// [Newtonsoft.Json.JsonPropertyAttribute("lineItems")] public virtual System.Collections.Generic.IList LineItems { get; set; } /// /// The purchase token of the old subscription if this subscription is one of the following: * Re-signup of a /// canceled but non-lapsed subscription * Upgrade/downgrade from a previous subscription. * Convert from /// prepaid to auto renewing subscription. * Convert from an auto renewing subscription to prepaid. * Topup a /// prepaid subscription. /// [Newtonsoft.Json.JsonPropertyAttribute("linkedPurchaseToken")] public virtual string LinkedPurchaseToken { get; set; } /// /// Additional context for out of app purchases. This information is only present for re-subscription purchases /// (subscription purchases made after the previous subscription of the same product has expired) made through /// the Google Play subscriptions center. This field will be removed after you acknowledge the subscription. /// [Newtonsoft.Json.JsonPropertyAttribute("outOfAppPurchaseContext")] public virtual OutOfAppPurchaseContext OutOfAppPurchaseContext { get; set; } /// /// Additional context around paused subscriptions. Only present if the subscription currently has /// subscription_state SUBSCRIPTION_STATE_PAUSED. /// [Newtonsoft.Json.JsonPropertyAttribute("pausedStateContext")] public virtual PausedStateContext PausedStateContext { get; set; } /// /// ISO 3166-1 alpha-2 billing country/region code of the user at the time the subscription was granted. /// [Newtonsoft.Json.JsonPropertyAttribute("regionCode")] public virtual string RegionCode { get; set; } private string _startTimeRaw; private object _startTime; /// /// Time at which the subscription was granted. Not set for pending subscriptions (subscription was created but /// awaiting payment during signup). /// [Newtonsoft.Json.JsonPropertyAttribute("startTime")] public virtual string StartTimeRaw { get => _startTimeRaw; set { _startTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); _startTimeRaw = value; } } /// representation of . [Newtonsoft.Json.JsonIgnoreAttribute] [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use StartTimeDateTimeOffset instead.")] public virtual object StartTime { get => _startTime; set { _startTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); _startTime = value; } } /// representation of . [Newtonsoft.Json.JsonIgnoreAttribute] public virtual System.DateTimeOffset? StartTimeDateTimeOffset { get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(StartTimeRaw); set => StartTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); } /// User profile associated with purchases made with 'Subscribe with Google'. [Newtonsoft.Json.JsonPropertyAttribute("subscribeWithGoogleInfo")] public virtual SubscribeWithGoogleInfo SubscribeWithGoogleInfo { get; set; } /// The current state of the subscription. [Newtonsoft.Json.JsonPropertyAttribute("subscriptionState")] public virtual string SubscriptionState { get; set; } /// Only present if this subscription purchase is a test purchase. [Newtonsoft.Json.JsonPropertyAttribute("testPurchase")] public virtual TestPurchase TestPurchase { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Request for the purchases.subscriptions.acknowledge API. public class SubscriptionPurchasesAcknowledgeRequest : Google.Apis.Requests.IDirectResponseSchema { /// Payload to attach to the purchase. [Newtonsoft.Json.JsonPropertyAttribute("developerPayload")] public virtual string DeveloperPayload { get; set; } /// Optional. User account identifier in your app. [Newtonsoft.Json.JsonPropertyAttribute("externalAccountIds")] public virtual ExternalAccountIds ExternalAccountIds { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Request for the purchases.subscriptions.defer API. public class SubscriptionPurchasesDeferRequest : Google.Apis.Requests.IDirectResponseSchema { /// The information about the new desired expiry time for the subscription. [Newtonsoft.Json.JsonPropertyAttribute("deferralInfo")] public virtual SubscriptionDeferralInfo DeferralInfo { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Response for the purchases.subscriptions.defer API. public class SubscriptionPurchasesDeferResponse : Google.Apis.Requests.IDirectResponseSchema { /// The new expiry time for the subscription in milliseconds since the Epoch. [Newtonsoft.Json.JsonPropertyAttribute("newExpiryTimeMillis")] public virtual System.Nullable NewExpiryTimeMillis { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Details about taxation, Google Play policy, and legal compliance for subscription products. public class SubscriptionTaxAndComplianceSettings : Google.Apis.Requests.IDirectResponseSchema { /// /// Digital content or service classification for products distributed to users in the European Economic Area /// (EEA). The withdrawal regime under EEA consumer laws depends on this classification. Refer to the [Help /// Center article](https://support.google.com/googleplay/android-developer/answer/10463498) for more /// information. /// [Newtonsoft.Json.JsonPropertyAttribute("eeaWithdrawalRightType")] public virtual string EeaWithdrawalRightType { get; set; } /// /// Whether this subscription is declared as a product representing a tokenized digital asset. /// [Newtonsoft.Json.JsonPropertyAttribute("isTokenizedDigitalAsset")] public virtual System.Nullable IsTokenizedDigitalAsset { get; set; } /// /// Product tax category code to assign to the subscription. Product tax category determines the transaction tax /// rates applied to the subscription. Refer to the [Help Center /// article](https://support.google.com/googleplay/android-developer/answer/16408159) for more information. /// [Newtonsoft.Json.JsonPropertyAttribute("productTaxCategoryCode")] public virtual string ProductTaxCategoryCode { get; set; } /// /// A mapping from region code to tax rate details. The keys are region codes as defined by Unicode's "CLDR". /// [Newtonsoft.Json.JsonPropertyAttribute("taxRateInfoByRegionCode")] public virtual System.Collections.Generic.IDictionary TaxRateInfoByRegionCode { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Options for system APKs. public class SystemApkOptions : Google.Apis.Requests.IDirectResponseSchema { /// Whether to use the rotated key for signing the system APK. [Newtonsoft.Json.JsonPropertyAttribute("rotated")] public virtual System.Nullable Rotated { get; set; } /// Whether system APK was generated with uncompressed dex files. [Newtonsoft.Json.JsonPropertyAttribute("uncompressedDexFiles")] public virtual System.Nullable UncompressedDexFiles { get; set; } /// Whether system APK was generated with uncompressed native libraries. [Newtonsoft.Json.JsonPropertyAttribute("uncompressedNativeLibraries")] public virtual System.Nullable UncompressedNativeLibraries { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Response to list previously created system APK variants. public class SystemApksListResponse : Google.Apis.Requests.IDirectResponseSchema { /// All system APK variants created. [Newtonsoft.Json.JsonPropertyAttribute("variants")] public virtual System.Collections.Generic.IList Variants { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Representation of a system feature. public class SystemFeature : Google.Apis.Requests.IDirectResponseSchema { /// The name of the feature. [Newtonsoft.Json.JsonPropertyAttribute("name")] public virtual string Name { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Information specific to cancellations initiated by Google system. public class SystemInitiatedCancellation : Google.Apis.Requests.IDirectResponseSchema { /// The ETag of the item. public virtual string ETag { get; set; } } /// /// Representation of a System-on-Chip (SoC) of an Android device. Can be used to target S+ devices. /// public class SystemOnChip : Google.Apis.Requests.IDirectResponseSchema { /// /// Required. The designer of the SoC, eg. "Google" Value of build property "ro.soc.manufacturer" /// https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER Required. /// [Newtonsoft.Json.JsonPropertyAttribute("manufacturer")] public virtual string Manufacturer { get; set; } /// /// Required. The model of the SoC, eg. "Tensor" Value of build property "ro.soc.model" /// https://developer.android.com/reference/android/os/Build#SOC_MODEL Required. /// [Newtonsoft.Json.JsonPropertyAttribute("model")] public virtual string Model { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// /// Targeting details for a recovery action such as regions, android sdk levels, app versions etc. /// public class Targeting : Google.Apis.Requests.IDirectResponseSchema { /// All users are targeted. [Newtonsoft.Json.JsonPropertyAttribute("allUsers")] public virtual AllUsers AllUsers { get; set; } /// Targeting is based on android api levels of devices. [Newtonsoft.Json.JsonPropertyAttribute("androidSdks")] public virtual AndroidSdks AndroidSdks { get; set; } /// Targeting is based on the user account region. [Newtonsoft.Json.JsonPropertyAttribute("regions")] public virtual Regions Regions { get; set; } /// Target version codes as a list. [Newtonsoft.Json.JsonPropertyAttribute("versionList")] public virtual AppVersionList VersionList { get; set; } /// Target version codes as a range. [Newtonsoft.Json.JsonPropertyAttribute("versionRange")] public virtual AppVersionRange VersionRange { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Targeting information about the generated apks. public class TargetingInfo : Google.Apis.Requests.IDirectResponseSchema { /// List of created asset slices. [Newtonsoft.Json.JsonPropertyAttribute("assetSliceSet")] public virtual System.Collections.Generic.IList AssetSliceSet { get; set; } /// The package name of this app. [Newtonsoft.Json.JsonPropertyAttribute("packageName")] public virtual string PackageName { get; set; } /// List of the created variants. [Newtonsoft.Json.JsonPropertyAttribute("variant")] public virtual System.Collections.Generic.IList Variant { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// /// Defines the scope of subscriptions which a targeting rule can match to target offers to users based on past or /// current entitlement. /// public class TargetingRuleScope : Google.Apis.Requests.IDirectResponseSchema { /// The scope of the current targeting rule is any subscription in the parent app. [Newtonsoft.Json.JsonPropertyAttribute("anySubscriptionInApp")] public virtual TargetingRuleScopeAnySubscriptionInApp AnySubscriptionInApp { get; set; } /// /// The scope of the current targeting rule is the subscription with the specified subscription ID. Must be a /// subscription within the same parent app. /// [Newtonsoft.Json.JsonPropertyAttribute("specificSubscriptionInApp")] public virtual string SpecificSubscriptionInApp { get; set; } /// /// The scope of the current targeting rule is the subscription in which this offer is defined. /// [Newtonsoft.Json.JsonPropertyAttribute("thisSubscription")] public virtual TargetingRuleScopeThisSubscription ThisSubscription { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Represents the targeting rule scope corresponding to any subscription in the parent app. public class TargetingRuleScopeAnySubscriptionInApp : Google.Apis.Requests.IDirectResponseSchema { /// The ETag of the item. public virtual string ETag { get; set; } } /// /// Represents the targeting rule scope corresponding to the subscriptions in which this offer is defined. /// public class TargetingRuleScopeThisSubscription : Google.Apis.Requests.IDirectResponseSchema { /// The ETag of the item. public virtual string ETag { get; set; } } /// Update type for targeting. Note it is always a subset Targeting. public class TargetingUpdate : Google.Apis.Requests.IDirectResponseSchema { /// All users are targeted. [Newtonsoft.Json.JsonPropertyAttribute("allUsers")] public virtual AllUsers AllUsers { get; set; } /// Additional android sdk levels are targeted by the recovery action. [Newtonsoft.Json.JsonPropertyAttribute("androidSdks")] public virtual AndroidSdks AndroidSdks { get; set; } /// Additional regions are targeted by the recovery action. [Newtonsoft.Json.JsonPropertyAttribute("regions")] public virtual Regions Regions { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Whether this subscription purchase is a test purchase. public class TestPurchase : Google.Apis.Requests.IDirectResponseSchema { /// The ETag of the item. public virtual string ETag { get; set; } } /// Context about a test purchase. public class TestPurchaseContext : Google.Apis.Requests.IDirectResponseSchema { /// The fop type of the test purchase. [Newtonsoft.Json.JsonPropertyAttribute("fopType")] public virtual string FopType { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// /// The testers of an app. The resource for TestersService. Note: while it is possible in the Play Console UI to add /// testers via email lists, email lists are not supported by this resource. /// public class Testers : Google.Apis.Requests.IDirectResponseSchema { /// All testing Google Groups, as email addresses. [Newtonsoft.Json.JsonPropertyAttribute("googleGroups")] public virtual System.Collections.Generic.IList GoogleGroups { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Represents texture compression format. public class TextureCompressionFormat : Google.Apis.Requests.IDirectResponseSchema { /// Alias for texture compression format. [Newtonsoft.Json.JsonPropertyAttribute("alias")] public virtual string Alias { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Targeting by a texture compression format. public class TextureCompressionFormatTargeting : Google.Apis.Requests.IDirectResponseSchema { /// List of alternative TCFs (TCFs targeted by the sibling splits). [Newtonsoft.Json.JsonPropertyAttribute("alternatives")] public virtual System.Collections.Generic.IList Alternatives { get; set; } /// The list of targeted TCFs. Should not be empty. [Newtonsoft.Json.JsonPropertyAttribute("value")] public virtual System.Collections.Generic.IList Value { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// /// A Timestamp represents a point in time independent of any time zone or local calendar, encoded as a count of /// seconds and fractions of seconds at nanosecond resolution. The count is relative to an epoch at UTC midnight on /// January 1, 1970. /// public class Timestamp : Google.Apis.Requests.IDirectResponseSchema { /// /// Non-negative fractions of a second at nanosecond resolution. Must be from 0 to 999,999,999 inclusive. /// [Newtonsoft.Json.JsonPropertyAttribute("nanos")] public virtual System.Nullable Nanos { get; set; } /// Represents seconds of UTC time since Unix epoch. [Newtonsoft.Json.JsonPropertyAttribute("seconds")] public virtual System.Nullable Seconds { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// /// Pagination information returned by a List operation when token pagination is enabled. List operations that /// supports paging return only one "page" of results. This protocol buffer message describes the page that has been /// returned. When using token pagination, clients should use the next/previous token to get another page of the /// result. The presence or absence of next/previous token indicates whether a next/previous page is available and /// provides a mean of accessing this page. ListRequest.page_token should be set to either next_page_token or /// previous_page_token to access another page. /// public class TokenPagination : Google.Apis.Requests.IDirectResponseSchema { /// /// Tokens to pass to the standard list field 'page_token'. Whenever available, tokens are preferred over /// manipulating start_index. /// [Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")] public virtual string NextPageToken { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("previousPageToken")] public virtual string PreviousPageToken { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// A track configuration. The resource for TracksService. public class Track : Google.Apis.Requests.IDirectResponseSchema { /// /// In a read request, represents all active releases in the track. In an update request, represents desired /// changes. /// [Newtonsoft.Json.JsonPropertyAttribute("releases")] public virtual System.Collections.Generic.IList Releases { get; set; } /// /// Identifier of the track. Form factor tracks have a special prefix as an identifier, for example /// `wear:production`, `automotive:production`. [More on track /// name](https://developers.google.com/android-publisher/tracks#ff-track-name) /// [Newtonsoft.Json.JsonPropertyAttribute("track")] public virtual string TrackValue { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Configurations of the new track. public class TrackConfig : Google.Apis.Requests.IDirectResponseSchema { /// Required. Form factor of the new track. Defaults to the default track. [Newtonsoft.Json.JsonPropertyAttribute("formFactor")] public virtual string FormFactor { get; set; } /// /// Required. Identifier of the new track. For default tracks, this field consists of the track alias only. Form /// factor tracks have a special prefix as an identifier, for example `wear:production`, /// `automotive:production`. This prefix must match the value of the `form_factor` field, if it is not a default /// track. [More on track name](https://developers.google.com/android-publisher/tracks#ff-track-name) /// [Newtonsoft.Json.JsonPropertyAttribute("track")] public virtual string Track { get; set; } /// Required. Type of the new track. Currently, the only supported value is closedTesting. [Newtonsoft.Json.JsonPropertyAttribute("type")] public virtual string Type { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Resource for per-track country availability information. public class TrackCountryAvailability : Google.Apis.Requests.IDirectResponseSchema { /// /// A list of one or more countries where artifacts in this track are available. This list includes all /// countries that are targeted by the track, even if only specific carriers are targeted in that country. /// [Newtonsoft.Json.JsonPropertyAttribute("countries")] public virtual System.Collections.Generic.IList Countries { get; set; } /// Whether artifacts in this track are available to "rest of the world" countries. [Newtonsoft.Json.JsonPropertyAttribute("restOfWorld")] public virtual System.Nullable RestOfWorld { get; set; } /// /// Whether this track's availability is synced with the default production track. See /// https://support.google.com/googleplay/android-developer/answer/7550024 for more information on syncing /// country availability with production. Note that if this is true, the returned "countries" and /// "rest_of_world" fields will reflect the values for the default production track. /// [Newtonsoft.Json.JsonPropertyAttribute("syncWithProduction")] public virtual System.Nullable SyncWithProduction { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// A release within a track. public class TrackRelease : Google.Apis.Requests.IDirectResponseSchema { /// /// Restricts a release to a specific set of countries. Note this is only allowed to be set for inProgress /// releases in the production track. /// [Newtonsoft.Json.JsonPropertyAttribute("countryTargeting")] public virtual CountryTargeting CountryTargeting { get; set; } /// /// In-app update priority of the release. All newly added APKs in the release will be considered at this /// priority. Can take values in the range [0, 5], with 5 the highest priority. Defaults to 0. /// in_app_update_priority can not be updated once the release is rolled out. See /// https://developer.android.com/guide/playcore/in-app-updates. /// [Newtonsoft.Json.JsonPropertyAttribute("inAppUpdatePriority")] public virtual System.Nullable InAppUpdatePriority { get; set; } /// /// The release name. Not required to be unique. If not set, the name is generated from the APK's version_name. /// If the release contains multiple APKs, the name is generated from the date. /// [Newtonsoft.Json.JsonPropertyAttribute("name")] public virtual string Name { get; set; } /// A description of what is new in this release. [Newtonsoft.Json.JsonPropertyAttribute("releaseNotes")] public virtual System.Collections.Generic.IList ReleaseNotes { get; set; } /// The status of the release. [Newtonsoft.Json.JsonPropertyAttribute("status")] public virtual string Status { get; set; } /// /// Fraction of users who are eligible for a staged release. 0 < fraction < 1. Can only be set /// when status is "inProgress" or "halted". /// [Newtonsoft.Json.JsonPropertyAttribute("userFraction")] public virtual System.Nullable UserFraction { get; set; } /// /// Version codes of all APKs in the release. Must include version codes to retain from previous releases. /// [Newtonsoft.Json.JsonPropertyAttribute("versionCodes")] public virtual System.Collections.Generic.IList> VersionCodes { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Representation of a single country where the contents of a track are available. public class TrackTargetedCountry : Google.Apis.Requests.IDirectResponseSchema { /// The country to target, as a two-letter CLDR code. [Newtonsoft.Json.JsonPropertyAttribute("countryCode")] public virtual string CountryCode { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Response listing all tracks. public class TracksListResponse : Google.Apis.Requests.IDirectResponseSchema { /// The kind of this response ("androidpublisher#tracksListResponse"). [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// All tracks (including tracks with no releases). [Newtonsoft.Json.JsonPropertyAttribute("tracks")] public virtual System.Collections.Generic.IList Tracks { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Request message to update the state of a subscription base plan. public class UpdateBasePlanStateRequest : Google.Apis.Requests.IDirectResponseSchema { /// Activates a base plan. Once activated, base plans will be available to new subscribers. [Newtonsoft.Json.JsonPropertyAttribute("activateBasePlanRequest")] public virtual ActivateBasePlanRequest ActivateBasePlanRequest { get; set; } /// /// Deactivates a base plan. Once deactivated, the base plan will become unavailable to new subscribers, but /// existing subscribers will maintain their subscription /// [Newtonsoft.Json.JsonPropertyAttribute("deactivateBasePlanRequest")] public virtual DeactivateBasePlanRequest DeactivateBasePlanRequest { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Request message for UpdateOneTimeProductOffer. public class UpdateOneTimeProductOfferRequest : Google.Apis.Requests.IDirectResponseSchema { /// /// Optional. If set to true, and the offer with the given package_name, product_id, purchase_option_id and /// offer_id doesn't exist, an offer will be created. If a new offer is created, the update_mask is ignored. /// [Newtonsoft.Json.JsonPropertyAttribute("allowMissing")] public virtual System.Nullable AllowMissing { get; set; } /// /// Optional. The latency tolerance for the propagation of this offer update. Defaults to latency-sensitive. /// [Newtonsoft.Json.JsonPropertyAttribute("latencyTolerance")] public virtual string LatencyTolerance { get; set; } /// Required. The one-time product offer to update. [Newtonsoft.Json.JsonPropertyAttribute("oneTimeProductOffer")] public virtual OneTimeProductOffer OneTimeProductOffer { get; set; } /// Required. The version of the available regions being used for the offer. [Newtonsoft.Json.JsonPropertyAttribute("regionsVersion")] public virtual RegionsVersion RegionsVersion { get; set; } /// Required. The list of fields to be updated. [Newtonsoft.Json.JsonPropertyAttribute("updateMask")] public virtual object UpdateMask { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Request message to update the state of a one-time product offer. public class UpdateOneTimeProductOfferStateRequest : Google.Apis.Requests.IDirectResponseSchema { /// /// Activates an offer. Once activated, the offer is available to users, as long as its conditions are met. /// [Newtonsoft.Json.JsonPropertyAttribute("activateOneTimeProductOfferRequest")] public virtual ActivateOneTimeProductOfferRequest ActivateOneTimeProductOfferRequest { get; set; } /// /// Cancels an offer. Once cancelled, the offer is not available to users. Any pending orders related to this /// offer will be cancelled. This state transition is specific to pre-orders. /// [Newtonsoft.Json.JsonPropertyAttribute("cancelOneTimeProductOfferRequest")] public virtual CancelOneTimeProductOfferRequest CancelOneTimeProductOfferRequest { get; set; } /// /// Deactivates an offer. Once deactivated, the offer is no longer available to users. This state transition is /// specific to discounted offers. /// [Newtonsoft.Json.JsonPropertyAttribute("deactivateOneTimeProductOfferRequest")] public virtual DeactivateOneTimeProductOfferRequest DeactivateOneTimeProductOfferRequest { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Request message for UpdateOneTimeProduct. public class UpdateOneTimeProductRequest : Google.Apis.Requests.IDirectResponseSchema { /// /// Optional. If set to true, and the one-time product with the given package_name and product_id doesn't exist, /// the one-time product will be created. If a new one-time product is created, update_mask is ignored. /// [Newtonsoft.Json.JsonPropertyAttribute("allowMissing")] public virtual System.Nullable AllowMissing { get; set; } /// /// Optional. The latency tolerance for the propagation of this product upsert. Defaults to latency-sensitive. /// [Newtonsoft.Json.JsonPropertyAttribute("latencyTolerance")] public virtual string LatencyTolerance { get; set; } /// Required. The one-time product to upsert. [Newtonsoft.Json.JsonPropertyAttribute("oneTimeProduct")] public virtual OneTimeProduct OneTimeProduct { get; set; } /// Required. The version of the available regions being used for the one-time product. [Newtonsoft.Json.JsonPropertyAttribute("regionsVersion")] public virtual RegionsVersion RegionsVersion { get; set; } /// Required. The list of fields to be updated. [Newtonsoft.Json.JsonPropertyAttribute("updateMask")] public virtual object UpdateMask { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Request message to update the state of a one-time product purchase option. public class UpdatePurchaseOptionStateRequest : Google.Apis.Requests.IDirectResponseSchema { /// Activates a purchase option. Once activated, the purchase option will be available. [Newtonsoft.Json.JsonPropertyAttribute("activatePurchaseOptionRequest")] public virtual ActivatePurchaseOptionRequest ActivatePurchaseOptionRequest { get; set; } /// /// Deactivates a purchase option. Once deactivated, the purchase option will become unavailable. /// [Newtonsoft.Json.JsonPropertyAttribute("deactivatePurchaseOptionRequest")] public virtual DeactivatePurchaseOptionRequest DeactivatePurchaseOptionRequest { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Request message for UpdateSubscriptionOffer. public class UpdateSubscriptionOfferRequest : Google.Apis.Requests.IDirectResponseSchema { /// /// Optional. If set to true, and the subscription offer with the given package_name, product_id, base_plan_id /// and offer_id doesn't exist, an offer will be created. If a new offer is created, update_mask is ignored. /// [Newtonsoft.Json.JsonPropertyAttribute("allowMissing")] public virtual System.Nullable AllowMissing { get; set; } /// /// Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive. /// [Newtonsoft.Json.JsonPropertyAttribute("latencyTolerance")] public virtual string LatencyTolerance { get; set; } /// Required. The version of the available regions being used for the subscription_offer. [Newtonsoft.Json.JsonPropertyAttribute("regionsVersion")] public virtual RegionsVersion RegionsVersion { get; set; } /// Required. The subscription offer to update. [Newtonsoft.Json.JsonPropertyAttribute("subscriptionOffer")] public virtual SubscriptionOffer SubscriptionOffer { get; set; } /// Required. The list of fields to be updated. [Newtonsoft.Json.JsonPropertyAttribute("updateMask")] public virtual object UpdateMask { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Request message to update the state of a subscription offer. public class UpdateSubscriptionOfferStateRequest : Google.Apis.Requests.IDirectResponseSchema { /// Activates an offer. Once activated, the offer will be available to new subscribers. [Newtonsoft.Json.JsonPropertyAttribute("activateSubscriptionOfferRequest")] public virtual ActivateSubscriptionOfferRequest ActivateSubscriptionOfferRequest { get; set; } /// /// Deactivates an offer. Once deactivated, the offer will become unavailable to new subscribers, but existing /// subscribers will maintain their subscription /// [Newtonsoft.Json.JsonPropertyAttribute("deactivateSubscriptionOfferRequest")] public virtual DeactivateSubscriptionOfferRequest DeactivateSubscriptionOfferRequest { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Request message for UpdateSubscription. public class UpdateSubscriptionRequest : Google.Apis.Requests.IDirectResponseSchema { /// /// Optional. If set to true, and the subscription with the given package_name and product_id doesn't exist, the /// subscription will be created. If a new subscription is created, update_mask is ignored. /// [Newtonsoft.Json.JsonPropertyAttribute("allowMissing")] public virtual System.Nullable AllowMissing { get; set; } /// /// Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive. /// [Newtonsoft.Json.JsonPropertyAttribute("latencyTolerance")] public virtual string LatencyTolerance { get; set; } /// Required. The version of the available regions being used for the subscription. [Newtonsoft.Json.JsonPropertyAttribute("regionsVersion")] public virtual RegionsVersion RegionsVersion { get; set; } /// Required. The subscription to update. [Newtonsoft.Json.JsonPropertyAttribute("subscription")] public virtual Subscription Subscription { get; set; } /// Required. The list of fields to be updated. [Newtonsoft.Json.JsonPropertyAttribute("updateMask")] public virtual object UpdateMask { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// /// Represents a targeting rule of the form: User currently has {scope} [with billing period {billing_period}]. /// public class UpgradeTargetingRule : Google.Apis.Requests.IDirectResponseSchema { /// /// The specific billing period duration, specified in ISO 8601 format, that a user must be currently subscribed /// to to be eligible for this rule. If not specified, users subscribed to any billing period are matched. /// [Newtonsoft.Json.JsonPropertyAttribute("billingPeriodDuration")] public virtual string BillingPeriodDuration { get; set; } /// /// Limit this offer to only once per user. If set to true, a user can never be eligible for this offer again if /// they ever subscribed to this offer. /// [Newtonsoft.Json.JsonPropertyAttribute("oncePerUser")] public virtual System.Nullable OncePerUser { get; set; } /// /// Required. The scope of subscriptions this rule considers. Only allows "this subscription" and "specific /// subscription in app". /// [Newtonsoft.Json.JsonPropertyAttribute("scope")] public virtual TargetingRuleScope Scope { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// A user resource. public class User : Google.Apis.Requests.IDirectResponseSchema { /// Output only. The state of the user's access to the Play Console. [Newtonsoft.Json.JsonPropertyAttribute("accessState")] public virtual string AccessState { get; set; } /// Permissions for the user which apply across the developer account. [Newtonsoft.Json.JsonPropertyAttribute("developerAccountPermissions")] public virtual System.Collections.Generic.IList DeveloperAccountPermissions { get; set; } /// Immutable. The user's email address. [Newtonsoft.Json.JsonPropertyAttribute("email")] public virtual string Email { get; set; } private string _expirationTimeRaw; private object _expirationTime; /// /// The time at which the user's access expires, if set. When setting this value, it must always be in the /// future. /// [Newtonsoft.Json.JsonPropertyAttribute("expirationTime")] public virtual string ExpirationTimeRaw { get => _expirationTimeRaw; set { _expirationTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); _expirationTimeRaw = value; } } /// representation of . [Newtonsoft.Json.JsonIgnoreAttribute] [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use ExpirationTimeDateTimeOffset instead.")] public virtual object ExpirationTime { get => _expirationTime; set { _expirationTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); _expirationTime = value; } } /// /// representation of . /// [Newtonsoft.Json.JsonIgnoreAttribute] public virtual System.DateTimeOffset? ExpirationTimeDateTimeOffset { get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(ExpirationTimeRaw); set => ExpirationTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); } /// Output only. Per-app permissions for the user. [Newtonsoft.Json.JsonPropertyAttribute("grants")] public virtual System.Collections.Generic.IList Grants { get; set; } /// /// Required. Resource name for this user, following the pattern "developers/{developer}/users/{email}". /// [Newtonsoft.Json.JsonPropertyAttribute("name")] public virtual string Name { get; set; } /// /// Output only. Whether there are more permissions for the user that are not represented here. This can happen /// if the caller does not have permission to manage all apps in the account. This is also `true` if this user /// is the account owner. If this field is `true`, it should be taken as a signal that this user cannot be fully /// managed via the API. That is, the API caller is not be able to manage all of the permissions this user /// holds, either because it doesn't know about them or because the user is the account owner. /// [Newtonsoft.Json.JsonPropertyAttribute("partial")] public virtual System.Nullable Partial { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// User entry from conversation between user and developer. public class UserComment : Google.Apis.Requests.IDirectResponseSchema { /// /// Integer Android SDK version of the user's device at the time the review was written, e.g. 23 is Marshmallow. /// May be absent. /// [Newtonsoft.Json.JsonPropertyAttribute("androidOsVersion")] public virtual System.Nullable AndroidOsVersion { get; set; } /// /// Integer version code of the app as installed at the time the review was written. May be absent. /// [Newtonsoft.Json.JsonPropertyAttribute("appVersionCode")] public virtual System.Nullable AppVersionCode { get; set; } /// /// String version name of the app as installed at the time the review was written. May be absent. /// [Newtonsoft.Json.JsonPropertyAttribute("appVersionName")] public virtual string AppVersionName { get; set; } /// Codename for the reviewer's device, e.g. klte, flounder. May be absent. [Newtonsoft.Json.JsonPropertyAttribute("device")] public virtual string Device { get; set; } /// Information about the characteristics of the user's device. [Newtonsoft.Json.JsonPropertyAttribute("deviceMetadata")] public virtual DeviceMetadata DeviceMetadata { get; set; } /// The last time at which this comment was updated. [Newtonsoft.Json.JsonPropertyAttribute("lastModified")] public virtual Timestamp LastModified { get; set; } /// /// Untranslated text of the review, where the review was translated. If the review was not translated this is /// left blank. /// [Newtonsoft.Json.JsonPropertyAttribute("originalText")] public virtual string OriginalText { get; set; } /// /// Language code for the reviewer. This is taken from the device settings so is not guaranteed to match the /// language the review is written in. May be absent. /// [Newtonsoft.Json.JsonPropertyAttribute("reviewerLanguage")] public virtual string ReviewerLanguage { get; set; } /// The star rating associated with the review, from 1 to 5. [Newtonsoft.Json.JsonPropertyAttribute("starRating")] public virtual System.Nullable StarRating { get; set; } /// /// The content of the comment, i.e. review body. In some cases users have been able to write a review with /// separate title and body; in those cases the title and body are concatenated and separated by a tab /// character. /// [Newtonsoft.Json.JsonPropertyAttribute("text")] public virtual string Text { get; set; } /// Number of users who have given this review a thumbs down. [Newtonsoft.Json.JsonPropertyAttribute("thumbsDownCount")] public virtual System.Nullable ThumbsDownCount { get; set; } /// Number of users who have given this review a thumbs up. [Newtonsoft.Json.JsonPropertyAttribute("thumbsUpCount")] public virtual System.Nullable ThumbsUpCount { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Describes an inclusive/exclusive list of country codes that module targets. public class UserCountriesTargeting : Google.Apis.Requests.IDirectResponseSchema { /// List of country codes in the two-letter CLDR territory format. [Newtonsoft.Json.JsonPropertyAttribute("countryCodes")] public virtual System.Collections.Generic.IList CountryCodes { get; set; } /// Indicates if the list above is exclusive. [Newtonsoft.Json.JsonPropertyAttribute("exclude")] public virtual System.Nullable Exclude { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// /// A set of user countries. A country set determines what variation of app content gets served to a specific /// location. /// public class UserCountrySet : Google.Apis.Requests.IDirectResponseSchema { /// /// List of country codes representing countries. A Country code is represented in ISO 3166 alpha-2 format. For /// Example:- "IT" for Italy, "GE" for Georgia. /// [Newtonsoft.Json.JsonPropertyAttribute("countryCodes")] public virtual System.Collections.Generic.IList CountryCodes { get; set; } /// Country set name. [Newtonsoft.Json.JsonPropertyAttribute("name")] public virtual string Name { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Information specific to cancellations initiated by users. public class UserInitiatedCancellation : Google.Apis.Requests.IDirectResponseSchema { /// /// Information provided by the user when they complete the subscription cancellation flow (cancellation reason /// survey). /// [Newtonsoft.Json.JsonPropertyAttribute("cancelSurveyResult")] public virtual CancelSurveyResult CancelSurveyResult { get; set; } private string _cancelTimeRaw; private object _cancelTime; /// /// The time at which the subscription was canceled by the user. The user might still have access to the /// subscription after this time. Use line_items.expiry_time to determine if a user still has access. /// [Newtonsoft.Json.JsonPropertyAttribute("cancelTime")] public virtual string CancelTimeRaw { get => _cancelTimeRaw; set { _cancelTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); _cancelTimeRaw = value; } } /// representation of . [Newtonsoft.Json.JsonIgnoreAttribute] [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use CancelTimeDateTimeOffset instead.")] public virtual object CancelTime { get => _cancelTime; set { _cancelTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); _cancelTime = value; } } /// representation of . [Newtonsoft.Json.JsonIgnoreAttribute] public virtual System.DateTimeOffset? CancelTimeDateTimeOffset { get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(CancelTimeRaw); set => CancelTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); } /// The ETag of the item. public virtual string ETag { get; set; } } /// A permission used by this APK. public class UsesPermission : Google.Apis.Requests.IDirectResponseSchema { /// Optionally, the maximum SDK version for which the permission is required. [Newtonsoft.Json.JsonPropertyAttribute("maxSdkVersion")] public virtual System.Nullable MaxSdkVersion { get; set; } /// The name of the permission requested. [Newtonsoft.Json.JsonPropertyAttribute("name")] public virtual string Name { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// A multiple use, predefined promotion code. public class VanityCode : Google.Apis.Requests.IDirectResponseSchema { /// The promotion code. [Newtonsoft.Json.JsonPropertyAttribute("promotionCode")] public virtual string PromotionCode { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// APK that is suitable for inclusion in a system image. The resource of SystemApksService. public class Variant : Google.Apis.Requests.IDirectResponseSchema { /// The device spec used to generate the APK. [Newtonsoft.Json.JsonPropertyAttribute("deviceSpec")] public virtual DeviceSpec DeviceSpec { get; set; } /// Optional. Options applied to the generated APK. [Newtonsoft.Json.JsonPropertyAttribute("options")] public virtual SystemApkOptions Options { get; set; } /// Output only. The ID of a previously created system APK variant. [Newtonsoft.Json.JsonPropertyAttribute("variantId")] public virtual System.Nullable VariantId { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Targeting on the level of variants. public class VariantTargeting : Google.Apis.Requests.IDirectResponseSchema { /// The abi that the variant targets [Newtonsoft.Json.JsonPropertyAttribute("abiTargeting")] public virtual AbiTargeting AbiTargeting { get; set; } /// Multi-api-level targeting [Newtonsoft.Json.JsonPropertyAttribute("multiAbiTargeting")] public virtual MultiAbiTargeting MultiAbiTargeting { get; set; } /// The screen densities that this variant supports [Newtonsoft.Json.JsonPropertyAttribute("screenDensityTargeting")] public virtual ScreenDensityTargeting ScreenDensityTargeting { get; set; } /// The sdk version that the variant targets [Newtonsoft.Json.JsonPropertyAttribute("sdkVersionTargeting")] public virtual SdkVersionTargeting SdkVersionTargeting { get; set; } /// Texture-compression-format-level targeting [Newtonsoft.Json.JsonPropertyAttribute("textureCompressionFormatTargeting")] public virtual TextureCompressionFormatTargeting TextureCompressionFormatTargeting { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// /// A VoidedPurchase resource indicates a purchase that was either canceled/refunded/charged-back. /// public class VoidedPurchase : Google.Apis.Requests.IDirectResponseSchema { /// This kind represents a voided purchase object in the androidpublisher service. [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// /// The order id which uniquely identifies a one-time purchase, subscription purchase, or subscription renewal. /// [Newtonsoft.Json.JsonPropertyAttribute("orderId")] public virtual string OrderId { get; set; } /// The time at which the purchase was made, in milliseconds since the epoch (Jan 1, 1970). [Newtonsoft.Json.JsonPropertyAttribute("purchaseTimeMillis")] public virtual System.Nullable PurchaseTimeMillis { get; set; } /// /// The token which uniquely identifies a one-time purchase or subscription. To uniquely identify subscription /// renewals use order_id (available starting from version 3 of the API). /// [Newtonsoft.Json.JsonPropertyAttribute("purchaseToken")] public virtual string PurchaseToken { get; set; } /// /// The voided quantity as the result of a quantity-based partial refund. Voided purchases of quantity-based /// partial refunds may only be returned when includeQuantityBasedPartialRefund is set to true. /// [Newtonsoft.Json.JsonPropertyAttribute("voidedQuantity")] public virtual System.Nullable VoidedQuantity { get; set; } /// /// The reason why the purchase was voided, possible values are: 0. Other 1. Remorse 2. Not_received 3. /// Defective 4. Accidental_purchase 5. Fraud 6. Friendly_fraud 7. Chargeback 8. Unacknowledged_purchase /// [Newtonsoft.Json.JsonPropertyAttribute("voidedReason")] public virtual System.Nullable VoidedReason { get; set; } /// The initiator of voided purchase, possible values are: 0. User 1. Developer 2. Google [Newtonsoft.Json.JsonPropertyAttribute("voidedSource")] public virtual System.Nullable VoidedSource { get; set; } /// /// The time at which the purchase was canceled/refunded/charged-back, in milliseconds since the epoch (Jan 1, /// 1970). /// [Newtonsoft.Json.JsonPropertyAttribute("voidedTimeMillis")] public virtual System.Nullable VoidedTimeMillis { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// Response for the voidedpurchases.list API. public class VoidedPurchasesListResponse : Google.Apis.Requests.IDirectResponseSchema { /// General pagination information. [Newtonsoft.Json.JsonPropertyAttribute("pageInfo")] public virtual PageInfo PageInfo { get; set; } /// Pagination information for token pagination. [Newtonsoft.Json.JsonPropertyAttribute("tokenPagination")] public virtual TokenPagination TokenPagination { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("voidedPurchases")] public virtual System.Collections.Generic.IList VoidedPurchases { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } }