Skip to content

Commit 07d2535

Browse files
1 parent 9cd9d52 commit 07d2535

File tree

7 files changed

+333
-6
lines changed

7 files changed

+333
-6
lines changed

clients/google-api-services-androidpublisher/v3/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-androidpublisher</artifactId>
25-
<version>v3-rev20250828-2.0.0</version>
25+
<version>v3-rev20250903-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-androidpublisher:v3-rev20250828-2.0.0'
38+
implementation 'com.google.apis:google-api-services-androidpublisher:v3-rev20250903-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/AndroidPublisher.java

Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20905,6 +20905,156 @@ public Subscriptionsv2 subscriptionsv2() {
2090520905
*/
2090620906
public class Subscriptionsv2 {
2090720907

20908+
/**
20909+
* Cancel a subscription purchase for the user.
20910+
*
20911+
* Create a request for the method "subscriptionsv2.cancel".
20912+
*
20913+
* This request holds the parameters needed by the androidpublisher server. After setting any
20914+
* optional parameters, call the {@link Cancel#execute()} method to invoke the remote operation.
20915+
*
20916+
* @param packageName Required. The package of the application for which this subscription was purchased (for example,
20917+
* 'com.some.thing').
20918+
* @param token Required. The token provided to the user's device when the subscription was purchased.
20919+
* @param content the {@link com.google.api.services.androidpublisher.model.CancelSubscriptionPurchaseRequest}
20920+
* @return the request
20921+
*/
20922+
public Cancel cancel(java.lang.String packageName, java.lang.String token, com.google.api.services.androidpublisher.model.CancelSubscriptionPurchaseRequest content) throws java.io.IOException {
20923+
Cancel result = new Cancel(packageName, token, content);
20924+
initialize(result);
20925+
return result;
20926+
}
20927+
20928+
public class Cancel extends AndroidPublisherRequest<com.google.api.services.androidpublisher.model.CancelSubscriptionPurchaseResponse> {
20929+
20930+
private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/purchases/subscriptionsv2/tokens/{token}:cancel";
20931+
20932+
/**
20933+
* Cancel a subscription purchase for the user.
20934+
*
20935+
* Create a request for the method "subscriptionsv2.cancel".
20936+
*
20937+
* This request holds the parameters needed by the the androidpublisher server. After setting any
20938+
* optional parameters, call the {@link Cancel#execute()} method to invoke the remote operation.
20939+
* <p> {@link
20940+
* Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
20941+
* be called to initialize this instance immediately after invoking the constructor. </p>
20942+
*
20943+
* @param packageName Required. The package of the application for which this subscription was purchased (for example,
20944+
* 'com.some.thing').
20945+
* @param token Required. The token provided to the user's device when the subscription was purchased.
20946+
* @param content the {@link com.google.api.services.androidpublisher.model.CancelSubscriptionPurchaseRequest}
20947+
* @since 1.13
20948+
*/
20949+
protected Cancel(java.lang.String packageName, java.lang.String token, com.google.api.services.androidpublisher.model.CancelSubscriptionPurchaseRequest content) {
20950+
super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.CancelSubscriptionPurchaseResponse.class);
20951+
this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified.");
20952+
this.token = com.google.api.client.util.Preconditions.checkNotNull(token, "Required parameter token must be specified.");
20953+
}
20954+
20955+
@Override
20956+
public Cancel set$Xgafv(java.lang.String $Xgafv) {
20957+
return (Cancel) super.set$Xgafv($Xgafv);
20958+
}
20959+
20960+
@Override
20961+
public Cancel setAccessToken(java.lang.String accessToken) {
20962+
return (Cancel) super.setAccessToken(accessToken);
20963+
}
20964+
20965+
@Override
20966+
public Cancel setAlt(java.lang.String alt) {
20967+
return (Cancel) super.setAlt(alt);
20968+
}
20969+
20970+
@Override
20971+
public Cancel setCallback(java.lang.String callback) {
20972+
return (Cancel) super.setCallback(callback);
20973+
}
20974+
20975+
@Override
20976+
public Cancel setFields(java.lang.String fields) {
20977+
return (Cancel) super.setFields(fields);
20978+
}
20979+
20980+
@Override
20981+
public Cancel setKey(java.lang.String key) {
20982+
return (Cancel) super.setKey(key);
20983+
}
20984+
20985+
@Override
20986+
public Cancel setOauthToken(java.lang.String oauthToken) {
20987+
return (Cancel) super.setOauthToken(oauthToken);
20988+
}
20989+
20990+
@Override
20991+
public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) {
20992+
return (Cancel) super.setPrettyPrint(prettyPrint);
20993+
}
20994+
20995+
@Override
20996+
public Cancel setQuotaUser(java.lang.String quotaUser) {
20997+
return (Cancel) super.setQuotaUser(quotaUser);
20998+
}
20999+
21000+
@Override
21001+
public Cancel setUploadType(java.lang.String uploadType) {
21002+
return (Cancel) super.setUploadType(uploadType);
21003+
}
21004+
21005+
@Override
21006+
public Cancel setUploadProtocol(java.lang.String uploadProtocol) {
21007+
return (Cancel) super.setUploadProtocol(uploadProtocol);
21008+
}
21009+
21010+
/**
21011+
* Required. The package of the application for which this subscription was purchased (for
21012+
* example, 'com.some.thing').
21013+
*/
21014+
@com.google.api.client.util.Key
21015+
private java.lang.String packageName;
21016+
21017+
/** Required. The package of the application for which this subscription was purchased (for example,
21018+
'com.some.thing').
21019+
*/
21020+
public java.lang.String getPackageName() {
21021+
return packageName;
21022+
}
21023+
21024+
/**
21025+
* Required. The package of the application for which this subscription was purchased (for
21026+
* example, 'com.some.thing').
21027+
*/
21028+
public Cancel setPackageName(java.lang.String packageName) {
21029+
this.packageName = packageName;
21030+
return this;
21031+
}
21032+
21033+
/**
21034+
* Required. The token provided to the user's device when the subscription was purchased.
21035+
*/
21036+
@com.google.api.client.util.Key
21037+
private java.lang.String token;
21038+
21039+
/** Required. The token provided to the user's device when the subscription was purchased.
21040+
*/
21041+
public java.lang.String getToken() {
21042+
return token;
21043+
}
21044+
21045+
/**
21046+
* Required. The token provided to the user's device when the subscription was purchased.
21047+
*/
21048+
public Cancel setToken(java.lang.String token) {
21049+
this.token = token;
21050+
return this;
21051+
}
21052+
21053+
@Override
21054+
public Cancel set(String parameterName, Object value) {
21055+
return (Cancel) super.set(parameterName, value);
21056+
}
21057+
}
2090821058
/**
2090921059
* Get metadata about a subscription
2091021060
*
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.androidpublisher.model;
18+
19+
/**
20+
* Request for the purchases.subscriptionsv2.cancel API.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Google Play Android Developer API. For a detailed
24+
* explanation see:
25+
* <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>
26+
* </p>
27+
*
28+
* @author Google, Inc.
29+
*/
30+
@SuppressWarnings("javadoc")
31+
public final class CancelSubscriptionPurchaseRequest extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Required. Additional details around the subscription revocation.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private CancellationContext cancellationContext;
39+
40+
/**
41+
* Required. Additional details around the subscription revocation.
42+
* @return value or {@code null} for none
43+
*/
44+
public CancellationContext getCancellationContext() {
45+
return cancellationContext;
46+
}
47+
48+
/**
49+
* Required. Additional details around the subscription revocation.
50+
* @param cancellationContext cancellationContext or {@code null} for none
51+
*/
52+
public CancelSubscriptionPurchaseRequest setCancellationContext(CancellationContext cancellationContext) {
53+
this.cancellationContext = cancellationContext;
54+
return this;
55+
}
56+
57+
@Override
58+
public CancelSubscriptionPurchaseRequest set(String fieldName, Object value) {
59+
return (CancelSubscriptionPurchaseRequest) super.set(fieldName, value);
60+
}
61+
62+
@Override
63+
public CancelSubscriptionPurchaseRequest clone() {
64+
return (CancelSubscriptionPurchaseRequest) super.clone();
65+
}
66+
67+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.androidpublisher.model;
18+
19+
/**
20+
* Response for the purchases.subscriptionsv2.cancel API.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Google Play Android Developer API. For a detailed
24+
* explanation see:
25+
* <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>
26+
* </p>
27+
*
28+
* @author Google, Inc.
29+
*/
30+
@SuppressWarnings("javadoc")
31+
public final class CancelSubscriptionPurchaseResponse extends com.google.api.client.json.GenericJson {
32+
33+
@Override
34+
public CancelSubscriptionPurchaseResponse set(String fieldName, Object value) {
35+
return (CancelSubscriptionPurchaseResponse) super.set(fieldName, value);
36+
}
37+
38+
@Override
39+
public CancelSubscriptionPurchaseResponse clone() {
40+
return (CancelSubscriptionPurchaseResponse) super.clone();
41+
}
42+
43+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.androidpublisher.model;
18+
19+
/**
20+
* Cancellation context of the purchases.subscriptionsv2.cancel API.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Google Play Android Developer API. For a detailed
24+
* explanation see:
25+
* <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>
26+
* </p>
27+
*
28+
* @author Google, Inc.
29+
*/
30+
@SuppressWarnings("javadoc")
31+
public final class CancellationContext extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Required. The type of cancellation for the purchased subscription.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.lang.String cancellationType;
39+
40+
/**
41+
* Required. The type of cancellation for the purchased subscription.
42+
* @return value or {@code null} for none
43+
*/
44+
public java.lang.String getCancellationType() {
45+
return cancellationType;
46+
}
47+
48+
/**
49+
* Required. The type of cancellation for the purchased subscription.
50+
* @param cancellationType cancellationType or {@code null} for none
51+
*/
52+
public CancellationContext setCancellationType(java.lang.String cancellationType) {
53+
this.cancellationType = cancellationType;
54+
return this;
55+
}
56+
57+
@Override
58+
public CancellationContext set(String fieldName, Object value) {
59+
return (CancellationContext) super.set(fieldName, value);
60+
}
61+
62+
@Override
63+
public CancellationContext clone() {
64+
return (CancellationContext) super.clone();
65+
}
66+
67+
}

clients/google-api-services-androidpublisher/v3/2.0.0/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<groupId>com.google.apis</groupId>
1010
<artifactId>google-api-services-androidpublisher</artifactId>
11-
<version>v3-rev20250828-2.0.0</version>
12-
<name>Google Play Android Developer API v3-rev20250828-2.0.0</name>
11+
<version>v3-rev20250903-2.0.0</version>
12+
<name>Google Play Android Developer API v3-rev20250903-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-androidpublisher/v3/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-androidpublisher</artifactId>
25-
<version>v3-rev20250828-2.0.0</version>
25+
<version>v3-rev20250903-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-androidpublisher:v3-rev20250828-2.0.0'
38+
implementation 'com.google.apis:google-api-services-androidpublisher:v3-rev20250903-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)