diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/README.md b/clients/google-api-services-androidpublisher/v3/2.0.0/README.md index 897cc7548f2..6441e270ebf 100644 --- a/clients/google-api-services-androidpublisher/v3/2.0.0/README.md +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-androidpublisher - v3-rev20261111-2.9.2 + v3-rev20261112-2.9.2 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-androidpublisher:v3-rev20261111-2.9.2' + implementation 'com.google.apis:google-api-services-androidpublisher:v3-rev20261112-2.9.2' } ``` diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/AndroidPublisher.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/AndroidPublisher.java index 405dbe4ada6..5532b6ac880 100644 --- a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/AndroidPublisher.java +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/AndroidPublisher.java @@ -22605,6 +22605,157 @@ public Cancel set(String parameterName, Object value) { return (Cancel) super.set(parameterName, value); } } + /** + * Cancel a plan transition for a subscription. + * + * Create a request for the method "subscriptionsv2.cancelplantransition". + * + * This request holds the parameters needed by the androidpublisher server. After setting any + * optional parameters, call the {@link Cancelplantransition#execute()} method to invoke the remote + * operation. + * + * @param packageName Required. The package of the application for which this subscription was purchased (for example, + * 'com.some.thing'). + * @param token Required. The token provided to the user's device when the subscription was purchased. + * @param content the {@link com.google.api.services.androidpublisher.model.CancelPlanTransitionRequest} + * @return the request + */ + public Cancelplantransition cancelplantransition(java.lang.String packageName, java.lang.String token, com.google.api.services.androidpublisher.model.CancelPlanTransitionRequest content) throws java.io.IOException { + Cancelplantransition result = new Cancelplantransition(packageName, token, content); + initialize(result); + return result; + } + + public class Cancelplantransition extends AndroidPublisherRequest { + + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/purchases/subscriptionsv2/tokens/{token}:cancelPlanTransition"; + + /** + * Cancel a plan transition for a subscription. + * + * Create a request for the method "subscriptionsv2.cancelplantransition". + * + * This request holds the parameters needed by the the androidpublisher server. After setting any + * optional parameters, call the {@link Cancelplantransition#execute()} method to invoke the + * remote operation.

{@link Cancelplantransition#initialize(com.google.api.client.googleapis.s + * ervices.AbstractGoogleClientRequest)} must be called to initialize this instance immediately + * after invoking the constructor.

+ * + * @param packageName Required. The package of the application for which this subscription was purchased (for example, + * 'com.some.thing'). + * @param token Required. The token provided to the user's device when the subscription was purchased. + * @param content the {@link com.google.api.services.androidpublisher.model.CancelPlanTransitionRequest} + * @since 1.13 + */ + protected Cancelplantransition(java.lang.String packageName, java.lang.String token, com.google.api.services.androidpublisher.model.CancelPlanTransitionRequest content) { + super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.CancelPlanTransitionResponse.class); + this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); + this.token = com.google.api.client.util.Preconditions.checkNotNull(token, "Required parameter token must be specified."); + } + + @Override + public Cancelplantransition set$Xgafv(java.lang.String $Xgafv) { + return (Cancelplantransition) super.set$Xgafv($Xgafv); + } + + @Override + public Cancelplantransition setAccessToken(java.lang.String accessToken) { + return (Cancelplantransition) super.setAccessToken(accessToken); + } + + @Override + public Cancelplantransition setAlt(java.lang.String alt) { + return (Cancelplantransition) super.setAlt(alt); + } + + @Override + public Cancelplantransition setCallback(java.lang.String callback) { + return (Cancelplantransition) super.setCallback(callback); + } + + @Override + public Cancelplantransition setFields(java.lang.String fields) { + return (Cancelplantransition) super.setFields(fields); + } + + @Override + public Cancelplantransition setKey(java.lang.String key) { + return (Cancelplantransition) super.setKey(key); + } + + @Override + public Cancelplantransition setOauthToken(java.lang.String oauthToken) { + return (Cancelplantransition) super.setOauthToken(oauthToken); + } + + @Override + public Cancelplantransition setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancelplantransition) super.setPrettyPrint(prettyPrint); + } + + @Override + public Cancelplantransition setQuotaUser(java.lang.String quotaUser) { + return (Cancelplantransition) super.setQuotaUser(quotaUser); + } + + @Override + public Cancelplantransition setUploadType(java.lang.String uploadType) { + return (Cancelplantransition) super.setUploadType(uploadType); + } + + @Override + public Cancelplantransition setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancelplantransition) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The package of the application for which this subscription was purchased (for + * example, 'com.some.thing'). + */ + @com.google.api.client.util.Key + private java.lang.String packageName; + + /** Required. The package of the application for which this subscription was purchased (for example, + 'com.some.thing'). + */ + public java.lang.String getPackageName() { + return packageName; + } + + /** + * Required. The package of the application for which this subscription was purchased (for + * example, 'com.some.thing'). + */ + public Cancelplantransition setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } + + /** + * Required. The token provided to the user's device when the subscription was purchased. + */ + @com.google.api.client.util.Key + private java.lang.String token; + + /** Required. The token provided to the user's device when the subscription was purchased. + */ + public java.lang.String getToken() { + return token; + } + + /** + * Required. The token provided to the user's device when the subscription was purchased. + */ + public Cancelplantransition setToken(java.lang.String token) { + this.token = token; + return this; + } + + @Override + public Cancelplantransition set(String parameterName, Object value) { + return (Cancelplantransition) super.set(parameterName, value); + } + } /** * Defers the renewal of a subscription. * @@ -23062,6 +23213,157 @@ public Revoke set(String parameterName, Object value) { return (Revoke) super.set(parameterName, value); } } + /** + * Schedule a plan transition for a subscription. + * + * Create a request for the method "subscriptionsv2.scheduleplantransition". + * + * This request holds the parameters needed by the androidpublisher server. After setting any + * optional parameters, call the {@link Scheduleplantransition#execute()} method to invoke the + * remote operation. + * + * @param packageName Required. The package of the application for which this subscription was purchased (for example, + * 'com.some.thing'). + * @param token Required. The token provided to the user's device when the subscription was purchased. + * @param content the {@link com.google.api.services.androidpublisher.model.SchedulePlanTransitionRequest} + * @return the request + */ + public Scheduleplantransition scheduleplantransition(java.lang.String packageName, java.lang.String token, com.google.api.services.androidpublisher.model.SchedulePlanTransitionRequest content) throws java.io.IOException { + Scheduleplantransition result = new Scheduleplantransition(packageName, token, content); + initialize(result); + return result; + } + + public class Scheduleplantransition extends AndroidPublisherRequest { + + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/purchases/subscriptionsv2/tokens/{token}:schedulePlanTransition"; + + /** + * Schedule a plan transition for a subscription. + * + * Create a request for the method "subscriptionsv2.scheduleplantransition". + * + * This request holds the parameters needed by the the androidpublisher server. After setting any + * optional parameters, call the {@link Scheduleplantransition#execute()} method to invoke the + * remote operation.

{@link Scheduleplantransition#initialize(com.google.api.client.googleapis + * .services.AbstractGoogleClientRequest)} must be called to initialize this instance immediately + * after invoking the constructor.

+ * + * @param packageName Required. The package of the application for which this subscription was purchased (for example, + * 'com.some.thing'). + * @param token Required. The token provided to the user's device when the subscription was purchased. + * @param content the {@link com.google.api.services.androidpublisher.model.SchedulePlanTransitionRequest} + * @since 1.13 + */ + protected Scheduleplantransition(java.lang.String packageName, java.lang.String token, com.google.api.services.androidpublisher.model.SchedulePlanTransitionRequest content) { + super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.SchedulePlanTransitionResponse.class); + this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); + this.token = com.google.api.client.util.Preconditions.checkNotNull(token, "Required parameter token must be specified."); + } + + @Override + public Scheduleplantransition set$Xgafv(java.lang.String $Xgafv) { + return (Scheduleplantransition) super.set$Xgafv($Xgafv); + } + + @Override + public Scheduleplantransition setAccessToken(java.lang.String accessToken) { + return (Scheduleplantransition) super.setAccessToken(accessToken); + } + + @Override + public Scheduleplantransition setAlt(java.lang.String alt) { + return (Scheduleplantransition) super.setAlt(alt); + } + + @Override + public Scheduleplantransition setCallback(java.lang.String callback) { + return (Scheduleplantransition) super.setCallback(callback); + } + + @Override + public Scheduleplantransition setFields(java.lang.String fields) { + return (Scheduleplantransition) super.setFields(fields); + } + + @Override + public Scheduleplantransition setKey(java.lang.String key) { + return (Scheduleplantransition) super.setKey(key); + } + + @Override + public Scheduleplantransition setOauthToken(java.lang.String oauthToken) { + return (Scheduleplantransition) super.setOauthToken(oauthToken); + } + + @Override + public Scheduleplantransition setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Scheduleplantransition) super.setPrettyPrint(prettyPrint); + } + + @Override + public Scheduleplantransition setQuotaUser(java.lang.String quotaUser) { + return (Scheduleplantransition) super.setQuotaUser(quotaUser); + } + + @Override + public Scheduleplantransition setUploadType(java.lang.String uploadType) { + return (Scheduleplantransition) super.setUploadType(uploadType); + } + + @Override + public Scheduleplantransition setUploadProtocol(java.lang.String uploadProtocol) { + return (Scheduleplantransition) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The package of the application for which this subscription was purchased (for + * example, 'com.some.thing'). + */ + @com.google.api.client.util.Key + private java.lang.String packageName; + + /** Required. The package of the application for which this subscription was purchased (for example, + 'com.some.thing'). + */ + public java.lang.String getPackageName() { + return packageName; + } + + /** + * Required. The package of the application for which this subscription was purchased (for + * example, 'com.some.thing'). + */ + public Scheduleplantransition setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } + + /** + * Required. The token provided to the user's device when the subscription was purchased. + */ + @com.google.api.client.util.Key + private java.lang.String token; + + /** Required. The token provided to the user's device when the subscription was purchased. + */ + public java.lang.String getToken() { + return token; + } + + /** + * Required. The token provided to the user's device when the subscription was purchased. + */ + public Scheduleplantransition setToken(java.lang.String token) { + this.token = token; + return this; + } + + @Override + public Scheduleplantransition set(String parameterName, Object value) { + return (Scheduleplantransition) super.set(parameterName, value); + } + } } /** diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/AutoRenewingPlan.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/AutoRenewingPlan.java index cf817891094..a85011b48c8 100644 --- a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/AutoRenewingPlan.java +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/AutoRenewingPlan.java @@ -45,6 +45,15 @@ public final class AutoRenewingPlan extends com.google.api.client.json.GenericJs @com.google.api.client.util.Key private InstallmentPlan installmentDetails; + /** + * The information of the associated plan transition. Will be present only if this plan has a + * transition plan associated with it and will only include the latest transition details + * associated with the item. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PlanTransitionDetails planTransitionDetails; + /** * The information of the last price change for the item since subscription signup. * The value may be {@code null}. @@ -104,6 +113,27 @@ public AutoRenewingPlan setInstallmentDetails(InstallmentPlan installmentDetails return this; } + /** + * The information of the associated plan transition. Will be present only if this plan has a + * transition plan associated with it and will only include the latest transition details + * associated with the item. + * @return value or {@code null} for none + */ + public PlanTransitionDetails getPlanTransitionDetails() { + return planTransitionDetails; + } + + /** + * The information of the associated plan transition. Will be present only if this plan has a + * transition plan associated with it and will only include the latest transition details + * associated with the item. + * @param planTransitionDetails planTransitionDetails or {@code null} for none + */ + public AutoRenewingPlan setPlanTransitionDetails(PlanTransitionDetails planTransitionDetails) { + this.planTransitionDetails = planTransitionDetails; + return this; + } + /** * The information of the last price change for the item since subscription signup. * @return value or {@code null} for none diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/BasePlan.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/BasePlan.java index 9fb4df5b5fe..33afce99aac 100644 --- a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/BasePlan.java +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/BasePlan.java @@ -94,6 +94,13 @@ public final class BasePlan extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.String state; + /** + * Transition target base plan information when this base plan has a transition plan. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private TransitionTargetConfig transitionTargetConfig; + /** * Set when the base plan automatically renews at a regular interval. * @return value or {@code null} for none @@ -246,6 +253,23 @@ public BasePlan setState(java.lang.String state) { return this; } + /** + * Transition target base plan information when this base plan has a transition plan. + * @return value or {@code null} for none + */ + public TransitionTargetConfig getTransitionTargetConfig() { + return transitionTargetConfig; + } + + /** + * Transition target base plan information when this base plan has a transition plan. + * @param transitionTargetConfig transitionTargetConfig or {@code null} for none + */ + public BasePlan setTransitionTargetConfig(TransitionTargetConfig transitionTargetConfig) { + this.transitionTargetConfig = transitionTargetConfig; + return this; + } + @Override public BasePlan set(String fieldName, Object value) { return (BasePlan) super.set(fieldName, value); diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/CancelPlanTransitionRequest.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/CancelPlanTransitionRequest.java new file mode 100644 index 00000000000..64d73986f30 --- /dev/null +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/CancelPlanTransitionRequest.java @@ -0,0 +1,100 @@ +/* + * 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 + * + * http://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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.androidpublisher.model; + +/** + * Request for the purchases.subscriptionsv2.cancelplantransition API. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Google Play Android Developer API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class CancelPlanTransitionRequest extends com.google.api.client.json.GenericJson { + + /** + * If set, the API will fail if the etag does not match the latest etag for this subscription. The + * etag is retrieved from purchases.subscriptionsv2.get: https://developers.google.com/android- + * publisher/api-ref/rest/v3/purchases.subscriptionsv2/get + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * Required. The subscription product (for example, 'premium_plan') for which an in process plan + * transition should be canceled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String productId; + + /** + * If set, the API will fail if the etag does not match the latest etag for this subscription. The + * etag is retrieved from purchases.subscriptionsv2.get: https://developers.google.com/android- + * publisher/api-ref/rest/v3/purchases.subscriptionsv2/get + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * If set, the API will fail if the etag does not match the latest etag for this subscription. The + * etag is retrieved from purchases.subscriptionsv2.get: https://developers.google.com/android- + * publisher/api-ref/rest/v3/purchases.subscriptionsv2/get + * @param etag etag or {@code null} for none + */ + public CancelPlanTransitionRequest setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Required. The subscription product (for example, 'premium_plan') for which an in process plan + * transition should be canceled. + * @return value or {@code null} for none + */ + public java.lang.String getProductId() { + return productId; + } + + /** + * Required. The subscription product (for example, 'premium_plan') for which an in process plan + * transition should be canceled. + * @param productId productId or {@code null} for none + */ + public CancelPlanTransitionRequest setProductId(java.lang.String productId) { + this.productId = productId; + return this; + } + + @Override + public CancelPlanTransitionRequest set(String fieldName, Object value) { + return (CancelPlanTransitionRequest) super.set(fieldName, value); + } + + @Override + public CancelPlanTransitionRequest clone() { + return (CancelPlanTransitionRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/CancelPlanTransitionResponse.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/CancelPlanTransitionResponse.java new file mode 100644 index 00000000000..82cac18c3f5 --- /dev/null +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/CancelPlanTransitionResponse.java @@ -0,0 +1,43 @@ +/* + * 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 + * + * http://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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.androidpublisher.model; + +/** + * Response for the purchases.subscriptionsv2.cancelplantransition API. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Google Play Android Developer API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class CancelPlanTransitionResponse extends com.google.api.client.json.GenericJson { + + @Override + public CancelPlanTransitionResponse set(String fieldName, Object value) { + return (CancelPlanTransitionResponse) super.set(fieldName, value); + } + + @Override + public CancelPlanTransitionResponse clone() { + return (CancelPlanTransitionResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/DefiniteTransition.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/DefiniteTransition.java new file mode 100644 index 00000000000..34aa959ad94 --- /dev/null +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/DefiniteTransition.java @@ -0,0 +1,43 @@ +/* + * 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 + * + * http://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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.androidpublisher.model; + +/** + * Used to indicate that the plan transition is definite. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Google Play Android Developer API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DefiniteTransition extends com.google.api.client.json.GenericJson { + + @Override + public DefiniteTransition set(String fieldName, Object value) { + return (DefiniteTransition) super.set(fieldName, value); + } + + @Override + public DefiniteTransition clone() { + return (DefiniteTransition) super.clone(); + } + +} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/PlanTransitionDetails.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/PlanTransitionDetails.java new file mode 100644 index 00000000000..c00a5af8bc8 --- /dev/null +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/PlanTransitionDetails.java @@ -0,0 +1,121 @@ +/* + * 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 + * + * http://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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.androidpublisher.model; + +/** + * Information related to a plan transition. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Google Play Android Developer API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class PlanTransitionDetails extends com.google.api.client.json.GenericJson { + + /** + * [Required] The base plan ID to which this plan would be transitioned. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String basePlanId; + + /** + * [Required] The product ID to which this plan would be transitioned, (for example, + * 'monthly001'). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String productId; + + /** + * Additional info about the scheduled plan transition. Will be present only if a plan transition + * has been scheduled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private TransitionInfo transitionInfo; + + /** + * [Required] The base plan ID to which this plan would be transitioned. + * @return value or {@code null} for none + */ + public java.lang.String getBasePlanId() { + return basePlanId; + } + + /** + * [Required] The base plan ID to which this plan would be transitioned. + * @param basePlanId basePlanId or {@code null} for none + */ + public PlanTransitionDetails setBasePlanId(java.lang.String basePlanId) { + this.basePlanId = basePlanId; + return this; + } + + /** + * [Required] The product ID to which this plan would be transitioned, (for example, + * 'monthly001'). + * @return value or {@code null} for none + */ + public java.lang.String getProductId() { + return productId; + } + + /** + * [Required] The product ID to which this plan would be transitioned, (for example, + * 'monthly001'). + * @param productId productId or {@code null} for none + */ + public PlanTransitionDetails setProductId(java.lang.String productId) { + this.productId = productId; + return this; + } + + /** + * Additional info about the scheduled plan transition. Will be present only if a plan transition + * has been scheduled. + * @return value or {@code null} for none + */ + public TransitionInfo getTransitionInfo() { + return transitionInfo; + } + + /** + * Additional info about the scheduled plan transition. Will be present only if a plan transition + * has been scheduled. + * @param transitionInfo transitionInfo or {@code null} for none + */ + public PlanTransitionDetails setTransitionInfo(TransitionInfo transitionInfo) { + this.transitionInfo = transitionInfo; + return this; + } + + @Override + public PlanTransitionDetails set(String fieldName, Object value) { + return (PlanTransitionDetails) super.set(fieldName, value); + } + + @Override + public PlanTransitionDetails clone() { + return (PlanTransitionDetails) super.clone(); + } + +} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/SchedulePlanTransitionRequest.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/SchedulePlanTransitionRequest.java new file mode 100644 index 00000000000..3de66eb508a --- /dev/null +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/SchedulePlanTransitionRequest.java @@ -0,0 +1,178 @@ +/* + * 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 + * + * http://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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.androidpublisher.model; + +/** + * Request for the purchases.subscriptionsv2.schedulePlanTransition API. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Google Play Android Developer API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class SchedulePlanTransitionRequest extends com.google.api.client.json.GenericJson { + + /** + * When using this mode, the user's transition to the new plan is definite, and cannot be + * canceled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DefiniteTransition definiteTransition; + + /** + * Required. The earliest time at which the plan transition may take effect. The actual transition + * will take place at the time of renewal on or after this time. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String earliestTransitionEffectiveTime; + + /** + * If set, the API will fail if the etag does not match the latest etag for this subscription. The + * etag is retrieved from purchases.subscriptionsv2.get: https://developers.google.com/android- + * publisher/api-ref/rest/v3/purchases.subscriptionsv2/get + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * Required. The subscription product (for example, 'premium_plan') for which the transition must + * be scheduled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String productId; + + /** + * When using this mode, the user's transition to the new plan is tentative, and can be canceled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private TentativeTransition tentativeTransition; + + /** + * When using this mode, the user's transition to the new plan is definite, and cannot be + * canceled. + * @return value or {@code null} for none + */ + public DefiniteTransition getDefiniteTransition() { + return definiteTransition; + } + + /** + * When using this mode, the user's transition to the new plan is definite, and cannot be + * canceled. + * @param definiteTransition definiteTransition or {@code null} for none + */ + public SchedulePlanTransitionRequest setDefiniteTransition(DefiniteTransition definiteTransition) { + this.definiteTransition = definiteTransition; + return this; + } + + /** + * Required. The earliest time at which the plan transition may take effect. The actual transition + * will take place at the time of renewal on or after this time. + * @return value or {@code null} for none + */ + public String getEarliestTransitionEffectiveTime() { + return earliestTransitionEffectiveTime; + } + + /** + * Required. The earliest time at which the plan transition may take effect. The actual transition + * will take place at the time of renewal on or after this time. + * @param earliestTransitionEffectiveTime earliestTransitionEffectiveTime or {@code null} for none + */ + public SchedulePlanTransitionRequest setEarliestTransitionEffectiveTime(String earliestTransitionEffectiveTime) { + this.earliestTransitionEffectiveTime = earliestTransitionEffectiveTime; + return this; + } + + /** + * If set, the API will fail if the etag does not match the latest etag for this subscription. The + * etag is retrieved from purchases.subscriptionsv2.get: https://developers.google.com/android- + * publisher/api-ref/rest/v3/purchases.subscriptionsv2/get + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * If set, the API will fail if the etag does not match the latest etag for this subscription. The + * etag is retrieved from purchases.subscriptionsv2.get: https://developers.google.com/android- + * publisher/api-ref/rest/v3/purchases.subscriptionsv2/get + * @param etag etag or {@code null} for none + */ + public SchedulePlanTransitionRequest setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Required. The subscription product (for example, 'premium_plan') for which the transition must + * be scheduled. + * @return value or {@code null} for none + */ + public java.lang.String getProductId() { + return productId; + } + + /** + * Required. The subscription product (for example, 'premium_plan') for which the transition must + * be scheduled. + * @param productId productId or {@code null} for none + */ + public SchedulePlanTransitionRequest setProductId(java.lang.String productId) { + this.productId = productId; + return this; + } + + /** + * When using this mode, the user's transition to the new plan is tentative, and can be canceled. + * @return value or {@code null} for none + */ + public TentativeTransition getTentativeTransition() { + return tentativeTransition; + } + + /** + * When using this mode, the user's transition to the new plan is tentative, and can be canceled. + * @param tentativeTransition tentativeTransition or {@code null} for none + */ + public SchedulePlanTransitionRequest setTentativeTransition(TentativeTransition tentativeTransition) { + this.tentativeTransition = tentativeTransition; + return this; + } + + @Override + public SchedulePlanTransitionRequest set(String fieldName, Object value) { + return (SchedulePlanTransitionRequest) super.set(fieldName, value); + } + + @Override + public SchedulePlanTransitionRequest clone() { + return (SchedulePlanTransitionRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/SchedulePlanTransitionResponse.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/SchedulePlanTransitionResponse.java new file mode 100644 index 00000000000..e56ac045b2b --- /dev/null +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/SchedulePlanTransitionResponse.java @@ -0,0 +1,67 @@ +/* + * 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 + * + * http://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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.androidpublisher.model; + +/** + * Response for the purchases.subscriptionsv2.schedulePlanTransition API. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Google Play Android Developer API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class SchedulePlanTransitionResponse extends com.google.api.client.json.GenericJson { + + /** + * The plan transition details of the subscription item. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PlanTransitionDetails planTransitionDetails; + + /** + * The plan transition details of the subscription item. + * @return value or {@code null} for none + */ + public PlanTransitionDetails getPlanTransitionDetails() { + return planTransitionDetails; + } + + /** + * The plan transition details of the subscription item. + * @param planTransitionDetails planTransitionDetails or {@code null} for none + */ + public SchedulePlanTransitionResponse setPlanTransitionDetails(PlanTransitionDetails planTransitionDetails) { + this.planTransitionDetails = planTransitionDetails; + return this; + } + + @Override + public SchedulePlanTransitionResponse set(String fieldName, Object value) { + return (SchedulePlanTransitionResponse) super.set(fieldName, value); + } + + @Override + public SchedulePlanTransitionResponse clone() { + return (SchedulePlanTransitionResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/TentativeTransition.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/TentativeTransition.java new file mode 100644 index 00000000000..a563f650c6b --- /dev/null +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/TentativeTransition.java @@ -0,0 +1,43 @@ +/* + * 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 + * + * http://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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.androidpublisher.model; + +/** + * Used to indicate that the plan transition is tentative. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Google Play Android Developer API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class TentativeTransition extends com.google.api.client.json.GenericJson { + + @Override + public TentativeTransition set(String fieldName, Object value) { + return (TentativeTransition) super.set(fieldName, value); + } + + @Override + public TentativeTransition clone() { + return (TentativeTransition) super.clone(); + } + +} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/TransitionInfo.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/TransitionInfo.java new file mode 100644 index 00000000000..32f6c5ede2d --- /dev/null +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/TransitionInfo.java @@ -0,0 +1,118 @@ +/* + * 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 + * + * http://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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.androidpublisher.model; + +/** + * Information related to a scheduled plan transition. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Google Play Android Developer API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class TransitionInfo extends com.google.api.client.json.GenericJson { + + /** + * The current expected time at which the plan may be transitioned. This is subject to change (to + * a future time) due to cases where the renewal time shifts like pause and account hold. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String expectedTransitionTime; + + /** + * The default base plan price to which the plan will be transitioned. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Money price; + + /** + * Output only. [Required] The current state of the transition. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String transitionState; + + /** + * The current expected time at which the plan may be transitioned. This is subject to change (to + * a future time) due to cases where the renewal time shifts like pause and account hold. + * @return value or {@code null} for none + */ + public String getExpectedTransitionTime() { + return expectedTransitionTime; + } + + /** + * The current expected time at which the plan may be transitioned. This is subject to change (to + * a future time) due to cases where the renewal time shifts like pause and account hold. + * @param expectedTransitionTime expectedTransitionTime or {@code null} for none + */ + public TransitionInfo setExpectedTransitionTime(String expectedTransitionTime) { + this.expectedTransitionTime = expectedTransitionTime; + return this; + } + + /** + * The default base plan price to which the plan will be transitioned. + * @return value or {@code null} for none + */ + public Money getPrice() { + return price; + } + + /** + * The default base plan price to which the plan will be transitioned. + * @param price price or {@code null} for none + */ + public TransitionInfo setPrice(Money price) { + this.price = price; + return this; + } + + /** + * Output only. [Required] The current state of the transition. + * @return value or {@code null} for none + */ + public java.lang.String getTransitionState() { + return transitionState; + } + + /** + * Output only. [Required] The current state of the transition. + * @param transitionState transitionState or {@code null} for none + */ + public TransitionInfo setTransitionState(java.lang.String transitionState) { + this.transitionState = transitionState; + return this; + } + + @Override + public TransitionInfo set(String fieldName, Object value) { + return (TransitionInfo) super.set(fieldName, value); + } + + @Override + public TransitionInfo clone() { + return (TransitionInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/TransitionTargetConfig.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/TransitionTargetConfig.java new file mode 100644 index 00000000000..03a4adb2e37 --- /dev/null +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/TransitionTargetConfig.java @@ -0,0 +1,91 @@ +/* + * 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 + * + * http://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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.androidpublisher.model; + +/** + * Configuration for a transition target base plan. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Google Play Android Developer API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class TransitionTargetConfig extends com.google.api.client.json.GenericJson { + + /** + * Required. The ID of the transition target base plan. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String basePlanId; + + /** + * Required. The ID of the parent subscription this transition target base plan belongs to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String productId; + + /** + * Required. The ID of the transition target base plan. + * @return value or {@code null} for none + */ + public java.lang.String getBasePlanId() { + return basePlanId; + } + + /** + * Required. The ID of the transition target base plan. + * @param basePlanId basePlanId or {@code null} for none + */ + public TransitionTargetConfig setBasePlanId(java.lang.String basePlanId) { + this.basePlanId = basePlanId; + return this; + } + + /** + * Required. The ID of the parent subscription this transition target base plan belongs to. + * @return value or {@code null} for none + */ + public java.lang.String getProductId() { + return productId; + } + + /** + * Required. The ID of the parent subscription this transition target base plan belongs to. + * @param productId productId or {@code null} for none + */ + public TransitionTargetConfig setProductId(java.lang.String productId) { + this.productId = productId; + return this; + } + + @Override + public TransitionTargetConfig set(String fieldName, Object value) { + return (TransitionTargetConfig) super.set(fieldName, value); + } + + @Override + public TransitionTargetConfig clone() { + return (TransitionTargetConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/pom.xml b/clients/google-api-services-androidpublisher/v3/2.0.0/pom.xml index f0f4a888d92..9629d802019 100644 --- a/clients/google-api-services-androidpublisher/v3/2.0.0/pom.xml +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-androidpublisher - v3-rev20261111-2.9.2 - Google Play Android Developer API v3-rev20261111-2.9.2 + v3-rev20261112-2.9.2 + Google Play Android Developer API v3-rev20261112-2.9.2 jar 2011 diff --git a/clients/google-api-services-androidpublisher/v3/README.md b/clients/google-api-services-androidpublisher/v3/README.md index 897cc7548f2..6441e270ebf 100644 --- a/clients/google-api-services-androidpublisher/v3/README.md +++ b/clients/google-api-services-androidpublisher/v3/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-androidpublisher - v3-rev20261111-2.9.2 + v3-rev20261112-2.9.2 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-androidpublisher:v3-rev20261111-2.9.2' + implementation 'com.google.apis:google-api-services-androidpublisher:v3-rev20261112-2.9.2' } ```