Skip to content

Commit d5f3c88

Browse files
1 parent 08ff5ac commit d5f3c88

File tree

10 files changed

+1005
-6
lines changed

10 files changed

+1005
-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-rev20250602-2.0.0</version>
25+
<version>v3-rev20250701-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-rev20250602-2.0.0'
38+
implementation 'com.google.apis:google-api-services-androidpublisher:v3-rev20250701-2.0.0'
3939
}
4040
```
4141

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

Lines changed: 174 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16640,6 +16640,180 @@ public Get set(String parameterName, Object value) {
1664016640
}
1664116641
}
1664216642

16643+
}
16644+
/**
16645+
* An accessor for creating requests from the Productsv2 collection.
16646+
*
16647+
* <p>The typical use is:</p>
16648+
* <pre>
16649+
* {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
16650+
* {@code AndroidPublisher.Productsv2.List request = androidpublisher.productsv2().list(parameters ...)}
16651+
* </pre>
16652+
*
16653+
* @return the resource collection
16654+
*/
16655+
public Productsv2 productsv2() {
16656+
return new Productsv2();
16657+
}
16658+
16659+
/**
16660+
* The "productsv2" collection of methods.
16661+
*/
16662+
public class Productsv2 {
16663+
16664+
/**
16665+
* Checks the purchase and consumption status of an inapp item.
16666+
*
16667+
* Create a request for the method "productsv2.getproductpurchasev2".
16668+
*
16669+
* This request holds the parameters needed by the androidpublisher server. After setting any
16670+
* optional parameters, call the {@link Getproductpurchasev2#execute()} method to invoke the remote
16671+
* operation.
16672+
*
16673+
* @param packageName The package name of the application the inapp product was sold in (for example, 'com.some.thing').
16674+
* @param token The token provided to the user's device when the inapp product was purchased.
16675+
* @return the request
16676+
*/
16677+
public Getproductpurchasev2 getproductpurchasev2(java.lang.String packageName, java.lang.String token) throws java.io.IOException {
16678+
Getproductpurchasev2 result = new Getproductpurchasev2(packageName, token);
16679+
initialize(result);
16680+
return result;
16681+
}
16682+
16683+
public class Getproductpurchasev2 extends AndroidPublisherRequest<com.google.api.services.androidpublisher.model.ProductPurchaseV2> {
16684+
16685+
private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/purchases/productsv2/tokens/{token}";
16686+
16687+
/**
16688+
* Checks the purchase and consumption status of an inapp item.
16689+
*
16690+
* Create a request for the method "productsv2.getproductpurchasev2".
16691+
*
16692+
* This request holds the parameters needed by the the androidpublisher server. After setting any
16693+
* optional parameters, call the {@link Getproductpurchasev2#execute()} method to invoke the
16694+
* remote operation. <p> {@link Getproductpurchasev2#initialize(com.google.api.client.googleapis.s
16695+
* ervices.AbstractGoogleClientRequest)} must be called to initialize this instance immediately
16696+
* after invoking the constructor. </p>
16697+
*
16698+
* @param packageName The package name of the application the inapp product was sold in (for example, 'com.some.thing').
16699+
* @param token The token provided to the user's device when the inapp product was purchased.
16700+
* @since 1.13
16701+
*/
16702+
protected Getproductpurchasev2(java.lang.String packageName, java.lang.String token) {
16703+
super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.ProductPurchaseV2.class);
16704+
this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified.");
16705+
this.token = com.google.api.client.util.Preconditions.checkNotNull(token, "Required parameter token must be specified.");
16706+
}
16707+
16708+
@Override
16709+
public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
16710+
return super.executeUsingHead();
16711+
}
16712+
16713+
@Override
16714+
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
16715+
return super.buildHttpRequestUsingHead();
16716+
}
16717+
16718+
@Override
16719+
public Getproductpurchasev2 set$Xgafv(java.lang.String $Xgafv) {
16720+
return (Getproductpurchasev2) super.set$Xgafv($Xgafv);
16721+
}
16722+
16723+
@Override
16724+
public Getproductpurchasev2 setAccessToken(java.lang.String accessToken) {
16725+
return (Getproductpurchasev2) super.setAccessToken(accessToken);
16726+
}
16727+
16728+
@Override
16729+
public Getproductpurchasev2 setAlt(java.lang.String alt) {
16730+
return (Getproductpurchasev2) super.setAlt(alt);
16731+
}
16732+
16733+
@Override
16734+
public Getproductpurchasev2 setCallback(java.lang.String callback) {
16735+
return (Getproductpurchasev2) super.setCallback(callback);
16736+
}
16737+
16738+
@Override
16739+
public Getproductpurchasev2 setFields(java.lang.String fields) {
16740+
return (Getproductpurchasev2) super.setFields(fields);
16741+
}
16742+
16743+
@Override
16744+
public Getproductpurchasev2 setKey(java.lang.String key) {
16745+
return (Getproductpurchasev2) super.setKey(key);
16746+
}
16747+
16748+
@Override
16749+
public Getproductpurchasev2 setOauthToken(java.lang.String oauthToken) {
16750+
return (Getproductpurchasev2) super.setOauthToken(oauthToken);
16751+
}
16752+
16753+
@Override
16754+
public Getproductpurchasev2 setPrettyPrint(java.lang.Boolean prettyPrint) {
16755+
return (Getproductpurchasev2) super.setPrettyPrint(prettyPrint);
16756+
}
16757+
16758+
@Override
16759+
public Getproductpurchasev2 setQuotaUser(java.lang.String quotaUser) {
16760+
return (Getproductpurchasev2) super.setQuotaUser(quotaUser);
16761+
}
16762+
16763+
@Override
16764+
public Getproductpurchasev2 setUploadType(java.lang.String uploadType) {
16765+
return (Getproductpurchasev2) super.setUploadType(uploadType);
16766+
}
16767+
16768+
@Override
16769+
public Getproductpurchasev2 setUploadProtocol(java.lang.String uploadProtocol) {
16770+
return (Getproductpurchasev2) super.setUploadProtocol(uploadProtocol);
16771+
}
16772+
16773+
/**
16774+
* The package name of the application the inapp product was sold in (for example,
16775+
* 'com.some.thing').
16776+
*/
16777+
@com.google.api.client.util.Key
16778+
private java.lang.String packageName;
16779+
16780+
/** The package name of the application the inapp product was sold in (for example, 'com.some.thing').
16781+
*/
16782+
public java.lang.String getPackageName() {
16783+
return packageName;
16784+
}
16785+
16786+
/**
16787+
* The package name of the application the inapp product was sold in (for example,
16788+
* 'com.some.thing').
16789+
*/
16790+
public Getproductpurchasev2 setPackageName(java.lang.String packageName) {
16791+
this.packageName = packageName;
16792+
return this;
16793+
}
16794+
16795+
/** The token provided to the user's device when the inapp product was purchased. */
16796+
@com.google.api.client.util.Key
16797+
private java.lang.String token;
16798+
16799+
/** The token provided to the user's device when the inapp product was purchased.
16800+
*/
16801+
public java.lang.String getToken() {
16802+
return token;
16803+
}
16804+
16805+
/** The token provided to the user's device when the inapp product was purchased. */
16806+
public Getproductpurchasev2 setToken(java.lang.String token) {
16807+
this.token = token;
16808+
return this;
16809+
}
16810+
16811+
@Override
16812+
public Getproductpurchasev2 set(String parameterName, Object value) {
16813+
return (Getproductpurchasev2) super.set(parameterName, value);
16814+
}
16815+
}
16816+
1664316817
}
1664416818
/**
1664516819
* An accessor for creating requests from the Subscriptions collection.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
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+
* Contains item-level info for a ProductPurchaseV2.
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 ProductLineItem extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* The purchased product ID (for example, 'monthly001').
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.lang.String productId;
39+
40+
/**
41+
* The offer details for this item.
42+
* The value may be {@code null}.
43+
*/
44+
@com.google.api.client.util.Key
45+
private ProductOfferDetails productOfferDetails;
46+
47+
/**
48+
* The purchased product ID (for example, 'monthly001').
49+
* @return value or {@code null} for none
50+
*/
51+
public java.lang.String getProductId() {
52+
return productId;
53+
}
54+
55+
/**
56+
* The purchased product ID (for example, 'monthly001').
57+
* @param productId productId or {@code null} for none
58+
*/
59+
public ProductLineItem setProductId(java.lang.String productId) {
60+
this.productId = productId;
61+
return this;
62+
}
63+
64+
/**
65+
* The offer details for this item.
66+
* @return value or {@code null} for none
67+
*/
68+
public ProductOfferDetails getProductOfferDetails() {
69+
return productOfferDetails;
70+
}
71+
72+
/**
73+
* The offer details for this item.
74+
* @param productOfferDetails productOfferDetails or {@code null} for none
75+
*/
76+
public ProductLineItem setProductOfferDetails(ProductOfferDetails productOfferDetails) {
77+
this.productOfferDetails = productOfferDetails;
78+
return this;
79+
}
80+
81+
@Override
82+
public ProductLineItem set(String fieldName, Object value) {
83+
return (ProductLineItem) super.set(fieldName, value);
84+
}
85+
86+
@Override
87+
public ProductLineItem clone() {
88+
return (ProductLineItem) super.clone();
89+
}
90+
91+
}

0 commit comments

Comments
 (0)