Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-androidpublisher</artifactId>
<version>v3-rev20260511-2.0.0</version>
<version>v3-rev20260519-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-androidpublisher:v3-rev20260511-2.0.0'
implementation 'com.google.apis:google-api-services-androidpublisher:v3-rev20260519-2.0.0'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20253,8 +20253,9 @@ public Acknowledge set(String parameterName, Object value) {
}
}
/**
* 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.
* Deprecated: Use purchases.subscriptionsv2.cancel instead. 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.
*
* Create a request for the method "subscriptions.cancel".
*
Expand All @@ -20279,9 +20280,9 @@ public class Cancel extends AndroidPublisherRequest<Void> {
private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:cancel";

/**
* 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.
* Deprecated: Use purchases.subscriptionsv2.cancel instead. 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.
*
* Create a request for the method "subscriptions.cancel".
*
Expand Down Expand Up @@ -20428,7 +20429,8 @@ public Cancel set(String parameterName, Object value) {
}
}
/**
* Defers a user's subscription purchase until a specified future expiration time.
* Deprecated: Use purchases.subscriptionsv2.defer instead. Defers a user's subscription purchase
* until a specified future expiration time.
*
* Create a request for the method "subscriptions.defer".
*
Expand All @@ -20453,7 +20455,8 @@ public class Defer extends AndroidPublisherRequest<com.google.api.services.andro
private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:defer";

/**
* Defers a user's subscription purchase until a specified future expiration time.
* Deprecated: Use purchases.subscriptionsv2.defer instead. Defers a user's subscription purchase
* until a specified future expiration time.
*
* Create a request for the method "subscriptions.defer".
*
Expand Down
Original file line number Diff line number Diff line change
@@ -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;

/**
* Additional context around subscriptions in IN_GRACE_PERIOD state.
*
* <p> 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:
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class InGracePeriodStateContext extends com.google.api.client.json.GenericJson {

/**
* Optional. The payment for the renewal was declined.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private RenewalDeclinedContext renewalDeclined;

/**
* Optional. The payment for the renewal was declined.
* @return value or {@code null} for none
*/
public RenewalDeclinedContext getRenewalDeclined() {
return renewalDeclined;
}

/**
* Optional. The payment for the renewal was declined.
* @param renewalDeclined renewalDeclined or {@code null} for none
*/
public InGracePeriodStateContext setRenewalDeclined(RenewalDeclinedContext renewalDeclined) {
this.renewalDeclined = renewalDeclined;
return this;
}

@Override
public InGracePeriodStateContext set(String fieldName, Object value) {
return (InGracePeriodStateContext) super.set(fieldName, value);
}

@Override
public InGracePeriodStateContext clone() {
return (InGracePeriodStateContext) super.clone();
}

}
Original file line number Diff line number Diff line change
@@ -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;

/**
* Additional context around subscriptions in ON_HOLD state.
*
* <p> 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:
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class OnHoldStateContext extends com.google.api.client.json.GenericJson {

/**
* Optional. The payment for the renewal was declined.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private RenewalDeclinedContext renewalDeclined;

/**
* Optional. The payment for the renewal was declined.
* @return value or {@code null} for none
*/
public RenewalDeclinedContext getRenewalDeclined() {
return renewalDeclined;
}

/**
* Optional. The payment for the renewal was declined.
* @param renewalDeclined renewalDeclined or {@code null} for none
*/
public OnHoldStateContext setRenewalDeclined(RenewalDeclinedContext renewalDeclined) {
this.renewalDeclined = renewalDeclined;
return this;
}

@Override
public OnHoldStateContext set(String fieldName, Object value) {
return (OnHoldStateContext) super.set(fieldName, value);
}

@Override
public OnHoldStateContext clone() {
return (OnHoldStateContext) super.clone();
}

}
Original file line number Diff line number Diff line change
@@ -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;

/**
* Context related to renewal declined scenario.
*
* <p> 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:
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class RenewalDeclinedContext extends com.google.api.client.json.GenericJson {

/**
* Required. The ID of the pending or failed order causing the state.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String pendingOrderId;

/**
* Required. The ID of the pending or failed order causing the state.
* @return value or {@code null} for none
*/
public java.lang.String getPendingOrderId() {
return pendingOrderId;
}

/**
* Required. The ID of the pending or failed order causing the state.
* @param pendingOrderId pendingOrderId or {@code null} for none
*/
public RenewalDeclinedContext setPendingOrderId(java.lang.String pendingOrderId) {
this.pendingOrderId = pendingOrderId;
return this;
}

@Override
public RenewalDeclinedContext set(String fieldName, Object value) {
return (RenewalDeclinedContext) super.set(fieldName, value);
}

@Override
public RenewalDeclinedContext clone() {
return (RenewalDeclinedContext) super.clone();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ public final class SubscriptionDetails extends com.google.api.client.json.Generi
private java.lang.String offerId;

/**
* The pricing phase for the billing period funded by this order. Deprecated. Use
* offer_phase_details instead.
* Deprecated: Use offer_phase_details instead. The pricing phase for the billing period funded by
* this order.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
Expand Down Expand Up @@ -113,17 +113,17 @@ public SubscriptionDetails setOfferId(java.lang.String offerId) {
}

/**
* The pricing phase for the billing period funded by this order. Deprecated. Use
* offer_phase_details instead.
* Deprecated: Use offer_phase_details instead. The pricing phase for the billing period funded by
* this order.
* @return value or {@code null} for none
*/
public java.lang.String getOfferPhase() {
return offerPhase;
}

/**
* The pricing phase for the billing period funded by this order. Deprecated. Use
* offer_phase_details instead.
* Deprecated: Use offer_phase_details instead. The pricing phase for the billing period funded by
* this order.
* @param offerPhase offerPhase or {@code null} for none
*/
public SubscriptionDetails setOfferPhase(java.lang.String offerPhase) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
package com.google.api.services.androidpublisher.model;

/**
* A SubscriptionPurchase resource indicates the status of a user's subscription purchase.
* Deprecated: Use SubscriptionPurchaseV2 instead. A SubscriptionPurchase resource indicates the
* status of a user's subscription purchase.
*
* <p> 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,14 @@ public final class SubscriptionPurchaseV2 extends com.google.api.client.json.Gen
@com.google.api.client.util.Key
private ExternalAccountIdentifiers externalAccountIdentifiers;

/**
* Optional. Additional context around subscriptions in IN_GRACE_PERIOD state. Only present if the
* subscription currently has subscription_state SUBSCRIPTION_STATE_IN_GRACE_PERIOD.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private InGracePeriodStateContext inGracePeriodStateContext;

/**
* This kind represents a SubscriptionPurchaseV2 object in the androidpublisher service.
* The value may be {@code null}.
Expand Down Expand Up @@ -103,6 +111,14 @@ public final class SubscriptionPurchaseV2 extends com.google.api.client.json.Gen
@com.google.api.client.util.Key
private java.lang.String linkedPurchaseToken;

/**
* Optional. Additional context around subscriptions in ON_HOLD state. Only present if the
* subscription currently has subscription_state SUBSCRIPTION_STATE_ON_HOLD.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private OnHoldStateContext onHoldStateContext;

/**
* 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
Expand Down Expand Up @@ -232,6 +248,25 @@ public SubscriptionPurchaseV2 setExternalAccountIdentifiers(ExternalAccountIdent
return this;
}

/**
* Optional. Additional context around subscriptions in IN_GRACE_PERIOD state. Only present if the
* subscription currently has subscription_state SUBSCRIPTION_STATE_IN_GRACE_PERIOD.
* @return value or {@code null} for none
*/
public InGracePeriodStateContext getInGracePeriodStateContext() {
return inGracePeriodStateContext;
}

/**
* Optional. Additional context around subscriptions in IN_GRACE_PERIOD state. Only present if the
* subscription currently has subscription_state SUBSCRIPTION_STATE_IN_GRACE_PERIOD.
* @param inGracePeriodStateContext inGracePeriodStateContext or {@code null} for none
*/
public SubscriptionPurchaseV2 setInGracePeriodStateContext(InGracePeriodStateContext inGracePeriodStateContext) {
this.inGracePeriodStateContext = inGracePeriodStateContext;
return this;
}

/**
* This kind represents a SubscriptionPurchaseV2 object in the androidpublisher service.
* @return value or {@code null} for none
Expand Down Expand Up @@ -316,6 +351,25 @@ public SubscriptionPurchaseV2 setLinkedPurchaseToken(java.lang.String linkedPurc
return this;
}

/**
* Optional. Additional context around subscriptions in ON_HOLD state. Only present if the
* subscription currently has subscription_state SUBSCRIPTION_STATE_ON_HOLD.
* @return value or {@code null} for none
*/
public OnHoldStateContext getOnHoldStateContext() {
return onHoldStateContext;
}

/**
* Optional. Additional context around subscriptions in ON_HOLD state. Only present if the
* subscription currently has subscription_state SUBSCRIPTION_STATE_ON_HOLD.
* @param onHoldStateContext onHoldStateContext or {@code null} for none
*/
public SubscriptionPurchaseV2 setOnHoldStateContext(OnHoldStateContext onHoldStateContext) {
this.onHoldStateContext = onHoldStateContext;
return this;
}

/**
* 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
Expand Down
Loading