Skip to content

Commit 6bfe5ea

Browse files
1 parent 310cea3 commit 6bfe5ea

16 files changed

+901
-10
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-rev20260119-2.0.0</version>
25+
<version>v3-rev20260129-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-rev20260119-2.0.0'
38+
implementation 'com.google.apis:google-api-services-androidpublisher:v3-rev20260129-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
@@ -21055,6 +21055,156 @@ public Cancel set(String parameterName, Object value) {
2105521055
return (Cancel) super.set(parameterName, value);
2105621056
}
2105721057
}
21058+
/**
21059+
* Defers the renewal of a subscription.
21060+
*
21061+
* Create a request for the method "subscriptionsv2.defer".
21062+
*
21063+
* This request holds the parameters needed by the androidpublisher server. After setting any
21064+
* optional parameters, call the {@link Defer#execute()} method to invoke the remote operation.
21065+
*
21066+
* @param packageName Required. The package of the application for which this subscription was purchased (for example,
21067+
* 'com.some.thing').
21068+
* @param token Required. The token provided to the user's device when the subscription was purchased.
21069+
* @param content the {@link com.google.api.services.androidpublisher.model.DeferSubscriptionPurchaseRequest}
21070+
* @return the request
21071+
*/
21072+
public Defer defer(java.lang.String packageName, java.lang.String token, com.google.api.services.androidpublisher.model.DeferSubscriptionPurchaseRequest content) throws java.io.IOException {
21073+
Defer result = new Defer(packageName, token, content);
21074+
initialize(result);
21075+
return result;
21076+
}
21077+
21078+
public class Defer extends AndroidPublisherRequest<com.google.api.services.androidpublisher.model.DeferSubscriptionPurchaseResponse> {
21079+
21080+
private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/purchases/subscriptionsv2/tokens/{token}:defer";
21081+
21082+
/**
21083+
* Defers the renewal of a subscription.
21084+
*
21085+
* Create a request for the method "subscriptionsv2.defer".
21086+
*
21087+
* This request holds the parameters needed by the the androidpublisher server. After setting any
21088+
* optional parameters, call the {@link Defer#execute()} method to invoke the remote operation.
21089+
* <p> {@link
21090+
* Defer#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
21091+
* be called to initialize this instance immediately after invoking the constructor. </p>
21092+
*
21093+
* @param packageName Required. The package of the application for which this subscription was purchased (for example,
21094+
* 'com.some.thing').
21095+
* @param token Required. The token provided to the user's device when the subscription was purchased.
21096+
* @param content the {@link com.google.api.services.androidpublisher.model.DeferSubscriptionPurchaseRequest}
21097+
* @since 1.13
21098+
*/
21099+
protected Defer(java.lang.String packageName, java.lang.String token, com.google.api.services.androidpublisher.model.DeferSubscriptionPurchaseRequest content) {
21100+
super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.DeferSubscriptionPurchaseResponse.class);
21101+
this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified.");
21102+
this.token = com.google.api.client.util.Preconditions.checkNotNull(token, "Required parameter token must be specified.");
21103+
}
21104+
21105+
@Override
21106+
public Defer set$Xgafv(java.lang.String $Xgafv) {
21107+
return (Defer) super.set$Xgafv($Xgafv);
21108+
}
21109+
21110+
@Override
21111+
public Defer setAccessToken(java.lang.String accessToken) {
21112+
return (Defer) super.setAccessToken(accessToken);
21113+
}
21114+
21115+
@Override
21116+
public Defer setAlt(java.lang.String alt) {
21117+
return (Defer) super.setAlt(alt);
21118+
}
21119+
21120+
@Override
21121+
public Defer setCallback(java.lang.String callback) {
21122+
return (Defer) super.setCallback(callback);
21123+
}
21124+
21125+
@Override
21126+
public Defer setFields(java.lang.String fields) {
21127+
return (Defer) super.setFields(fields);
21128+
}
21129+
21130+
@Override
21131+
public Defer setKey(java.lang.String key) {
21132+
return (Defer) super.setKey(key);
21133+
}
21134+
21135+
@Override
21136+
public Defer setOauthToken(java.lang.String oauthToken) {
21137+
return (Defer) super.setOauthToken(oauthToken);
21138+
}
21139+
21140+
@Override
21141+
public Defer setPrettyPrint(java.lang.Boolean prettyPrint) {
21142+
return (Defer) super.setPrettyPrint(prettyPrint);
21143+
}
21144+
21145+
@Override
21146+
public Defer setQuotaUser(java.lang.String quotaUser) {
21147+
return (Defer) super.setQuotaUser(quotaUser);
21148+
}
21149+
21150+
@Override
21151+
public Defer setUploadType(java.lang.String uploadType) {
21152+
return (Defer) super.setUploadType(uploadType);
21153+
}
21154+
21155+
@Override
21156+
public Defer setUploadProtocol(java.lang.String uploadProtocol) {
21157+
return (Defer) super.setUploadProtocol(uploadProtocol);
21158+
}
21159+
21160+
/**
21161+
* Required. The package of the application for which this subscription was purchased (for
21162+
* example, 'com.some.thing').
21163+
*/
21164+
@com.google.api.client.util.Key
21165+
private java.lang.String packageName;
21166+
21167+
/** Required. The package of the application for which this subscription was purchased (for example,
21168+
'com.some.thing').
21169+
*/
21170+
public java.lang.String getPackageName() {
21171+
return packageName;
21172+
}
21173+
21174+
/**
21175+
* Required. The package of the application for which this subscription was purchased (for
21176+
* example, 'com.some.thing').
21177+
*/
21178+
public Defer setPackageName(java.lang.String packageName) {
21179+
this.packageName = packageName;
21180+
return this;
21181+
}
21182+
21183+
/**
21184+
* Required. The token provided to the user's device when the subscription was purchased.
21185+
*/
21186+
@com.google.api.client.util.Key
21187+
private java.lang.String token;
21188+
21189+
/** Required. The token provided to the user's device when the subscription was purchased.
21190+
*/
21191+
public java.lang.String getToken() {
21192+
return token;
21193+
}
21194+
21195+
/**
21196+
* Required. The token provided to the user's device when the subscription was purchased.
21197+
*/
21198+
public Defer setToken(java.lang.String token) {
21199+
this.token = token;
21200+
return this;
21201+
}
21202+
21203+
@Override
21204+
public Defer set(String parameterName, Object value) {
21205+
return (Defer) super.set(parameterName, value);
21206+
}
21207+
}
2105821208
/**
2105921209
* Get metadata about a subscription
2106021210
*
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+
* Details about base price offer phase.
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 BasePriceOfferPhase extends com.google.api.client.json.GenericJson {
32+
33+
@Override
34+
public BasePriceOfferPhase set(String fieldName, Object value) {
35+
return (BasePriceOfferPhase) super.set(fieldName, value);
36+
}
37+
38+
@Override
39+
public BasePriceOfferPhase clone() {
40+
return (BasePriceOfferPhase) 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+
* Request for the v2 purchases.subscriptions.defer 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 DeferSubscriptionPurchaseRequest extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Required. Details about the subscription deferral.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private DeferralContext deferralContext;
39+
40+
/**
41+
* Required. Details about the subscription deferral.
42+
* @return value or {@code null} for none
43+
*/
44+
public DeferralContext getDeferralContext() {
45+
return deferralContext;
46+
}
47+
48+
/**
49+
* Required. Details about the subscription deferral.
50+
* @param deferralContext deferralContext or {@code null} for none
51+
*/
52+
public DeferSubscriptionPurchaseRequest setDeferralContext(DeferralContext deferralContext) {
53+
this.deferralContext = deferralContext;
54+
return this;
55+
}
56+
57+
@Override
58+
public DeferSubscriptionPurchaseRequest set(String fieldName, Object value) {
59+
return (DeferSubscriptionPurchaseRequest) super.set(fieldName, value);
60+
}
61+
62+
@Override
63+
public DeferSubscriptionPurchaseRequest clone() {
64+
return (DeferSubscriptionPurchaseRequest) super.clone();
65+
}
66+
67+
}
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+
* Response for the v2 purchases.subscriptions.defer 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 DeferSubscriptionPurchaseResponse extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* The new expiry time for each subscription items.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.util.List<ItemExpiryTimeDetails> itemExpiryTimeDetails;
39+
40+
/**
41+
* The new expiry time for each subscription items.
42+
* @return value or {@code null} for none
43+
*/
44+
public java.util.List<ItemExpiryTimeDetails> getItemExpiryTimeDetails() {
45+
return itemExpiryTimeDetails;
46+
}
47+
48+
/**
49+
* The new expiry time for each subscription items.
50+
* @param itemExpiryTimeDetails itemExpiryTimeDetails or {@code null} for none
51+
*/
52+
public DeferSubscriptionPurchaseResponse setItemExpiryTimeDetails(java.util.List<ItemExpiryTimeDetails> itemExpiryTimeDetails) {
53+
this.itemExpiryTimeDetails = itemExpiryTimeDetails;
54+
return this;
55+
}
56+
57+
@Override
58+
public DeferSubscriptionPurchaseResponse set(String fieldName, Object value) {
59+
return (DeferSubscriptionPurchaseResponse) super.set(fieldName, value);
60+
}
61+
62+
@Override
63+
public DeferSubscriptionPurchaseResponse clone() {
64+
return (DeferSubscriptionPurchaseResponse) super.clone();
65+
}
66+
67+
}

0 commit comments

Comments
 (0)