Skip to content

Commit a664687

Browse files
1 parent 996c4bb commit a664687

10 files changed

Lines changed: 279 additions & 20 deletions

File tree

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

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

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20253,8 +20253,9 @@ public Acknowledge set(String parameterName, Object value) {
2025320253
}
2025420254
}
2025520255
/**
20256-
* Cancels a user's subscription purchase. The subscription remains valid until its expiration time.
20257-
* Newer version is available at purchases.subscriptionsv2.cancel for better client library support.
20256+
* Deprecated: Use purchases.subscriptionsv2.cancel instead. Cancels a user's subscription purchase.
20257+
* The subscription remains valid until its expiration time. Newer version is available at
20258+
* purchases.subscriptionsv2.cancel for better client library support.
2025820259
*
2025920260
* Create a request for the method "subscriptions.cancel".
2026020261
*
@@ -20279,9 +20280,9 @@ public class Cancel extends AndroidPublisherRequest<Void> {
2027920280
private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:cancel";
2028020281

2028120282
/**
20282-
* Cancels a user's subscription purchase. The subscription remains valid until its expiration
20283-
* time. Newer version is available at purchases.subscriptionsv2.cancel for better client library
20284-
* support.
20283+
* Deprecated: Use purchases.subscriptionsv2.cancel instead. Cancels a user's subscription
20284+
* purchase. The subscription remains valid until its expiration time. Newer version is available
20285+
* at purchases.subscriptionsv2.cancel for better client library support.
2028520286
*
2028620287
* Create a request for the method "subscriptions.cancel".
2028720288
*
@@ -20428,7 +20429,8 @@ public Cancel set(String parameterName, Object value) {
2042820429
}
2042920430
}
2043020431
/**
20431-
* Defers a user's subscription purchase until a specified future expiration time.
20432+
* Deprecated: Use purchases.subscriptionsv2.defer instead. Defers a user's subscription purchase
20433+
* until a specified future expiration time.
2043220434
*
2043320435
* Create a request for the method "subscriptions.defer".
2043420436
*
@@ -20453,7 +20455,8 @@ public class Defer extends AndroidPublisherRequest<com.google.api.services.andro
2045320455
private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:defer";
2045420456

2045520457
/**
20456-
* Defers a user's subscription purchase until a specified future expiration time.
20458+
* Deprecated: Use purchases.subscriptionsv2.defer instead. Defers a user's subscription purchase
20459+
* until a specified future expiration time.
2045720460
*
2045820461
* Create a request for the method "subscriptions.defer".
2045920462
*
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+
* Additional context around subscriptions in IN_GRACE_PERIOD state.
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 InGracePeriodStateContext extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Optional. The payment for the renewal was declined.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private RenewalDeclinedContext renewalDeclined;
39+
40+
/**
41+
* Optional. The payment for the renewal was declined.
42+
* @return value or {@code null} for none
43+
*/
44+
public RenewalDeclinedContext getRenewalDeclined() {
45+
return renewalDeclined;
46+
}
47+
48+
/**
49+
* Optional. The payment for the renewal was declined.
50+
* @param renewalDeclined renewalDeclined or {@code null} for none
51+
*/
52+
public InGracePeriodStateContext setRenewalDeclined(RenewalDeclinedContext renewalDeclined) {
53+
this.renewalDeclined = renewalDeclined;
54+
return this;
55+
}
56+
57+
@Override
58+
public InGracePeriodStateContext set(String fieldName, Object value) {
59+
return (InGracePeriodStateContext) super.set(fieldName, value);
60+
}
61+
62+
@Override
63+
public InGracePeriodStateContext clone() {
64+
return (InGracePeriodStateContext) 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+
* Additional context around subscriptions in ON_HOLD state.
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 OnHoldStateContext extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Optional. The payment for the renewal was declined.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private RenewalDeclinedContext renewalDeclined;
39+
40+
/**
41+
* Optional. The payment for the renewal was declined.
42+
* @return value or {@code null} for none
43+
*/
44+
public RenewalDeclinedContext getRenewalDeclined() {
45+
return renewalDeclined;
46+
}
47+
48+
/**
49+
* Optional. The payment for the renewal was declined.
50+
* @param renewalDeclined renewalDeclined or {@code null} for none
51+
*/
52+
public OnHoldStateContext setRenewalDeclined(RenewalDeclinedContext renewalDeclined) {
53+
this.renewalDeclined = renewalDeclined;
54+
return this;
55+
}
56+
57+
@Override
58+
public OnHoldStateContext set(String fieldName, Object value) {
59+
return (OnHoldStateContext) super.set(fieldName, value);
60+
}
61+
62+
@Override
63+
public OnHoldStateContext clone() {
64+
return (OnHoldStateContext) 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+
* Context related to renewal declined scenario.
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 RenewalDeclinedContext extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Required. The ID of the pending or failed order causing the state.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.lang.String pendingOrderId;
39+
40+
/**
41+
* Required. The ID of the pending or failed order causing the state.
42+
* @return value or {@code null} for none
43+
*/
44+
public java.lang.String getPendingOrderId() {
45+
return pendingOrderId;
46+
}
47+
48+
/**
49+
* Required. The ID of the pending or failed order causing the state.
50+
* @param pendingOrderId pendingOrderId or {@code null} for none
51+
*/
52+
public RenewalDeclinedContext setPendingOrderId(java.lang.String pendingOrderId) {
53+
this.pendingOrderId = pendingOrderId;
54+
return this;
55+
}
56+
57+
@Override
58+
public RenewalDeclinedContext set(String fieldName, Object value) {
59+
return (RenewalDeclinedContext) super.set(fieldName, value);
60+
}
61+
62+
@Override
63+
public RenewalDeclinedContext clone() {
64+
return (RenewalDeclinedContext) super.clone();
65+
}
66+
67+
}

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ public final class SubscriptionDetails extends com.google.api.client.json.Generi
4545
private java.lang.String offerId;
4646

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

115115
/**
116-
* The pricing phase for the billing period funded by this order. Deprecated. Use
117-
* offer_phase_details instead.
116+
* Deprecated: Use offer_phase_details instead. The pricing phase for the billing period funded by
117+
* this order.
118118
* @return value or {@code null} for none
119119
*/
120120
public java.lang.String getOfferPhase() {
121121
return offerPhase;
122122
}
123123

124124
/**
125-
* The pricing phase for the billing period funded by this order. Deprecated. Use
126-
* offer_phase_details instead.
125+
* Deprecated: Use offer_phase_details instead. The pricing phase for the billing period funded by
126+
* this order.
127127
* @param offerPhase offerPhase or {@code null} for none
128128
*/
129129
public SubscriptionDetails setOfferPhase(java.lang.String offerPhase) {

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
package com.google.api.services.androidpublisher.model;
1818

1919
/**
20-
* A SubscriptionPurchase resource indicates the status of a user's subscription purchase.
20+
* Deprecated: Use SubscriptionPurchaseV2 instead. A SubscriptionPurchase resource indicates the
21+
* status of a user's subscription purchase.
2122
*
2223
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
2324
* transmitted over HTTP when working with the Google Play Android Developer API. For a detailed

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

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,14 @@ public final class SubscriptionPurchaseV2 extends com.google.api.client.json.Gen
6161
@com.google.api.client.util.Key
6262
private ExternalAccountIdentifiers externalAccountIdentifiers;
6363

64+
/**
65+
* Optional. Additional context around subscriptions in IN_GRACE_PERIOD state. Only present if the
66+
* subscription currently has subscription_state SUBSCRIPTION_STATE_IN_GRACE_PERIOD.
67+
* The value may be {@code null}.
68+
*/
69+
@com.google.api.client.util.Key
70+
private InGracePeriodStateContext inGracePeriodStateContext;
71+
6472
/**
6573
* This kind represents a SubscriptionPurchaseV2 object in the androidpublisher service.
6674
* The value may be {@code null}.
@@ -103,6 +111,14 @@ public final class SubscriptionPurchaseV2 extends com.google.api.client.json.Gen
103111
@com.google.api.client.util.Key
104112
private java.lang.String linkedPurchaseToken;
105113

114+
/**
115+
* Optional. Additional context around subscriptions in ON_HOLD state. Only present if the
116+
* subscription currently has subscription_state SUBSCRIPTION_STATE_ON_HOLD.
117+
* The value may be {@code null}.
118+
*/
119+
@com.google.api.client.util.Key
120+
private OnHoldStateContext onHoldStateContext;
121+
106122
/**
107123
* Additional context for out of app purchases. This information is only present for re-
108124
* subscription purchases (subscription purchases made after the previous subscription of the same
@@ -232,6 +248,25 @@ public SubscriptionPurchaseV2 setExternalAccountIdentifiers(ExternalAccountIdent
232248
return this;
233249
}
234250

251+
/**
252+
* Optional. Additional context around subscriptions in IN_GRACE_PERIOD state. Only present if the
253+
* subscription currently has subscription_state SUBSCRIPTION_STATE_IN_GRACE_PERIOD.
254+
* @return value or {@code null} for none
255+
*/
256+
public InGracePeriodStateContext getInGracePeriodStateContext() {
257+
return inGracePeriodStateContext;
258+
}
259+
260+
/**
261+
* Optional. Additional context around subscriptions in IN_GRACE_PERIOD state. Only present if the
262+
* subscription currently has subscription_state SUBSCRIPTION_STATE_IN_GRACE_PERIOD.
263+
* @param inGracePeriodStateContext inGracePeriodStateContext or {@code null} for none
264+
*/
265+
public SubscriptionPurchaseV2 setInGracePeriodStateContext(InGracePeriodStateContext inGracePeriodStateContext) {
266+
this.inGracePeriodStateContext = inGracePeriodStateContext;
267+
return this;
268+
}
269+
235270
/**
236271
* This kind represents a SubscriptionPurchaseV2 object in the androidpublisher service.
237272
* @return value or {@code null} for none
@@ -316,6 +351,25 @@ public SubscriptionPurchaseV2 setLinkedPurchaseToken(java.lang.String linkedPurc
316351
return this;
317352
}
318353

354+
/**
355+
* Optional. Additional context around subscriptions in ON_HOLD state. Only present if the
356+
* subscription currently has subscription_state SUBSCRIPTION_STATE_ON_HOLD.
357+
* @return value or {@code null} for none
358+
*/
359+
public OnHoldStateContext getOnHoldStateContext() {
360+
return onHoldStateContext;
361+
}
362+
363+
/**
364+
* Optional. Additional context around subscriptions in ON_HOLD state. Only present if the
365+
* subscription currently has subscription_state SUBSCRIPTION_STATE_ON_HOLD.
366+
* @param onHoldStateContext onHoldStateContext or {@code null} for none
367+
*/
368+
public SubscriptionPurchaseV2 setOnHoldStateContext(OnHoldStateContext onHoldStateContext) {
369+
this.onHoldStateContext = onHoldStateContext;
370+
return this;
371+
}
372+
319373
/**
320374
* Additional context for out of app purchases. This information is only present for re-
321375
* subscription purchases (subscription purchases made after the previous subscription of the same

0 commit comments

Comments
 (0)