Skip to content
Closed
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-paymentsresellersubscription</artifactId>
<version>v1-rev20251113-2.0.0</version>
<version>v1-rev20260202-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-paymentsresellersubscription:v1-rev20251113-2.0.0'
implementation 'com.google.apis:google-api-services-paymentsresellersubscription:v1-rev20260202-2.0.0'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public class PaymentsResellerSubscription extends com.google.api.client.googleap
* {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport}</li>
* <li>Android: {@code newCompatibleTransport} from
* {@code com.google.api.client.extensions.android.http.AndroidHttp}</li>
* <li>Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()}
* <li>Java: {@code com.google.api.client.http.javanet.NetHttpTransport}</li>
* </li>
* </ul>
* @param jsonFactory JSON factory, which may be:
Expand Down Expand Up @@ -175,7 +175,7 @@ public class Products {

/**
* Currently, it doesn't support **YouTube** products. Retrieves the products that can be resold by
* the partner. It should be autenticated with a service account.
* the partner. It should be authenticated with a service account.
*
* Create a request for the method "products.list".
*
Expand All @@ -201,7 +201,7 @@ public class List extends PaymentsResellerSubscriptionRequest<com.google.api.ser

/**
* Currently, it doesn't support **YouTube** products. Retrieves the products that can be resold
* by the partner. It should be autenticated with a service account.
* by the partner. It should be authenticated with a service account.
*
* Create a request for the method "products.list".
*
Expand Down Expand Up @@ -430,7 +430,7 @@ public Promotions promotions() {
public class Promotions {

/**
* Currently, it is only enabeld for **YouTube**. Finds eligible promotions for the current user.
* Currently, it is only enabled for **YouTube**. Finds eligible promotions for the current user.
* The API requires user authorization via OAuth. The bare minimum oauth scope `openid` is
* sufficient, which will skip the consent screen.
*
Expand Down Expand Up @@ -458,7 +458,7 @@ public class FindEligible extends PaymentsResellerSubscriptionRequest<com.google
java.util.regex.Pattern.compile("^partners/[^/]+$");

/**
* Currently, it is only enabeld for **YouTube**. Finds eligible promotions for the current user.
* Currently, it is only enabled for **YouTube**. Finds eligible promotions for the current user.
* The API requires user authorization via OAuth. The bare minimum oauth scope `openid` is
* sufficient, which will skip the consent screen.
*
Expand Down Expand Up @@ -567,7 +567,7 @@ public FindEligible set(String parameterName, Object value) {
}
/**
* Currently, it doesn't support **YouTube** promotions. Retrieves the promotions, such as free
* trial, that can be used by the partner. It should be autenticated with a service account.
* trial, that can be used by the partner. It should be authenticated with a service account.
*
* Create a request for the method "promotions.list".
*
Expand All @@ -593,7 +593,7 @@ public class List extends PaymentsResellerSubscriptionRequest<com.google.api.ser

/**
* Currently, it doesn't support **YouTube** promotions. Retrieves the promotions, such as free
* trial, that can be used by the partner. It should be autenticated with a service account.
* trial, that can be used by the partner. It should be authenticated with a service account.
*
* Create a request for the method "promotions.list".
*
Expand Down Expand Up @@ -747,23 +747,23 @@ public List setFilter(java.lang.String filter) {

/**
* Optional. The maximum number of promotions to return. The service may return fewer than
* this value. If unspecified, at most 50 products will be returned. The maximum value is
* this value. If unspecified, at most 50 promotions will be returned. The maximum value is
* 1000; values above 1000 will be coerced to 1000.
*/
@com.google.api.client.util.Key
private java.lang.Integer pageSize;

/** Optional. The maximum number of promotions to return. The service may return fewer than this value.
If unspecified, at most 50 products will be returned. The maximum value is 1000; values above 1000
will be coerced to 1000.
If unspecified, at most 50 promotions will be returned. The maximum value is 1000; values above
1000 will be coerced to 1000.
*/
public java.lang.Integer getPageSize() {
return pageSize;
}

/**
* Optional. The maximum number of promotions to return. The service may return fewer than
* this value. If unspecified, at most 50 products will be returned. The maximum value is
* this value. If unspecified, at most 50 promotions will be returned. The maximum value is
* 1000; values above 1000 will be coerced to 1000.
*/
public List setPageSize(java.lang.Integer pageSize) {
Expand Down Expand Up @@ -1109,24 +1109,24 @@ public Create setParent(java.lang.String parent) {

/**
* Required. Identifies the subscription resource on the Partner side. The value is
* restricted to 63 ASCII characters at the maximum. If a subscription was previously
* created with the same subscription_id, we will directly return that one.
* restricted to 63 ASCII characters at the maximum. If a subscription with the same ID
* already exists, the creation fails with an `ALREADY_EXISTS` error.
*/
@com.google.api.client.util.Key
private java.lang.String subscriptionId;

/** Required. Identifies the subscription resource on the Partner side. The value is restricted to 63
ASCII characters at the maximum. If a subscription was previously created with the same
subscription_id, we will directly return that one.
ASCII characters at the maximum. If a subscription with the same ID already exists, the creation
fails with an `ALREADY_EXISTS` error.
*/
public java.lang.String getSubscriptionId() {
return subscriptionId;
}

/**
* Required. Identifies the subscription resource on the Partner side. The value is
* restricted to 63 ASCII characters at the maximum. If a subscription was previously
* created with the same subscription_id, we will directly return that one.
* restricted to 63 ASCII characters at the maximum. If a subscription with the same ID
* already exists, the creation fails with an `ALREADY_EXISTS` error.
*/
public Create setSubscriptionId(java.lang.String subscriptionId) {
this.subscriptionId = subscriptionId;
Expand Down Expand Up @@ -1753,24 +1753,24 @@ public Provision setCycleOptionsInitialCycleDurationUnit(java.lang.String cycleO

/**
* Required. Identifies the subscription resource on the Partner side. The value is
* restricted to 63 ASCII characters at the maximum. If a subscription was previously
* created with the same subscription_id, we will directly return that one.
* restricted to 63 ASCII characters at the maximum. If a subscription with the same ID
* already exists, the creation fails with an `ALREADY_EXISTS` error.
*/
@com.google.api.client.util.Key
private java.lang.String subscriptionId;

/** Required. Identifies the subscription resource on the Partner side. The value is restricted to 63
ASCII characters at the maximum. If a subscription was previously created with the same
subscription_id, we will directly return that one.
ASCII characters at the maximum. If a subscription with the same ID already exists, the creation
fails with an `ALREADY_EXISTS` error.
*/
public java.lang.String getSubscriptionId() {
return subscriptionId;
}

/**
* Required. Identifies the subscription resource on the Partner side. The value is
* restricted to 63 ASCII characters at the maximum. If a subscription was previously
* created with the same subscription_id, we will directly return that one.
* restricted to 63 ASCII characters at the maximum. If a subscription with the same ID
* already exists, the creation fails with an `ALREADY_EXISTS` error.
*/
public Provision setSubscriptionId(java.lang.String subscriptionId) {
this.subscriptionId = subscriptionId;
Expand Down Expand Up @@ -2239,7 +2239,7 @@ public LineItems lineItems() {
public class LineItems {

/**
* Updates a line item of a subscription. It should be autenticated with a service account.
* Updates a line item of a subscription. It should be authenticated with a service account.
*
* Create a request for the method "lineItems.patch".
*
Expand All @@ -2266,7 +2266,7 @@ public class Patch extends PaymentsResellerSubscriptionRequest<com.google.api.se
java.util.regex.Pattern.compile("^partners/[^/]+/subscriptions/[^/]+/lineItems/[^/]+$");

/**
* Updates a line item of a subscription. It should be autenticated with a service account.
* Updates a line item of a subscription. It should be authenticated with a service account.
*
* Create a request for the method "lineItems.patch".
*
Expand Down Expand Up @@ -2603,8 +2603,7 @@ private static String chooseEndpoint(com.google.api.client.http.HttpTransport tr
* {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport}</li>
* <li>Android: {@code newCompatibleTransport} from
* {@code com.google.api.client.extensions.android.http.AndroidHttp}</li>
* <li>Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()}
* </li>
* <li>Java: {@code com.google.api.client.http.javanet.NetHttpTransport}</li>
* </ul>
* @param jsonFactory JSON factory, which may be:
* <ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public final class CancelSubscriptionRequest extends com.google.api.client.json.
/**
* Optional. If true, Google will cancel the subscription immediately, and may or may not (based
* on the contract) issue a prorated refund for the remainder of the billing cycle. Otherwise,
* Google defers the cancelation at renewal_time, and will not issue a refund. - YouTube
* Google defers the cancellation at renewal_time, and will not issue a refund. - YouTube
* subscriptions must use this option currently. However, the user will still have access to the
* subscription until the end of the billing cycle.
* The value may be {@code null}.
Expand All @@ -51,7 +51,7 @@ public final class CancelSubscriptionRequest extends com.google.api.client.json.
/**
* Optional. If true, Google will cancel the subscription immediately, and may or may not (based
* on the contract) issue a prorated refund for the remainder of the billing cycle. Otherwise,
* Google defers the cancelation at renewal_time, and will not issue a refund. - YouTube
* Google defers the cancellation at renewal_time, and will not issue a refund. - YouTube
* subscriptions must use this option currently. However, the user will still have access to the
* subscription until the end of the billing cycle.
* @return value or {@code null} for none
Expand All @@ -63,7 +63,7 @@ public java.lang.Boolean getCancelImmediately() {
/**
* Optional. If true, Google will cancel the subscription immediately, and may or may not (based
* on the contract) issue a prorated refund for the remainder of the billing cycle. Otherwise,
* Google defers the cancelation at renewal_time, and will not issue a refund. - YouTube
* Google defers the cancellation at renewal_time, and will not issue a refund. - YouTube
* subscriptions must use this option currently. However, the user will still have access to the
* subscription until the end of the billing cycle.
* @param cancelImmediately cancelImmediately or {@code null} for none
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,17 @@ public final class FindEligiblePromotionsRequest extends com.google.api.client.j

/**
* Optional. The maximum number of promotions to return. The service may return fewer than this
* value. If unspecified, at most 50 products will be returned. The maximum value is 1000; values
* above 1000 will be coerced to 1000.
* value. If unspecified, at most 50 promotions will be returned. The maximum value is 1000;
* values above 1000 will be coerced to 1000.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Integer pageSize;

/**
* Optional. A page token, received from a previous `ListPromotions` call. Provide this to
* Optional. A page token, received from a previous `FindEligiblePromotions` call. Provide this to
* retrieve the subsequent page. When paginating, all other parameters provided to
* `ListPromotions` must match the call that provided the page token.
* `FindEligiblePromotions` must match the call that provided the page token.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
Expand Down Expand Up @@ -95,8 +95,8 @@ public FindEligiblePromotionsRequest setFilter(java.lang.String filter) {

/**
* Optional. The maximum number of promotions to return. The service may return fewer than this
* value. If unspecified, at most 50 products will be returned. The maximum value is 1000; values
* above 1000 will be coerced to 1000.
* value. If unspecified, at most 50 promotions will be returned. The maximum value is 1000;
* values above 1000 will be coerced to 1000.
* @return value or {@code null} for none
*/
public java.lang.Integer getPageSize() {
Expand All @@ -105,8 +105,8 @@ public java.lang.Integer getPageSize() {

/**
* Optional. The maximum number of promotions to return. The service may return fewer than this
* value. If unspecified, at most 50 products will be returned. The maximum value is 1000; values
* above 1000 will be coerced to 1000.
* value. If unspecified, at most 50 promotions will be returned. The maximum value is 1000;
* values above 1000 will be coerced to 1000.
* @param pageSize pageSize or {@code null} for none
*/
public FindEligiblePromotionsRequest setPageSize(java.lang.Integer pageSize) {
Expand All @@ -115,19 +115,19 @@ public FindEligiblePromotionsRequest setPageSize(java.lang.Integer pageSize) {
}

/**
* Optional. A page token, received from a previous `ListPromotions` call. Provide this to
* Optional. A page token, received from a previous `FindEligiblePromotions` call. Provide this to
* retrieve the subsequent page. When paginating, all other parameters provided to
* `ListPromotions` must match the call that provided the page token.
* `FindEligiblePromotions` must match the call that provided the page token.
* @return value or {@code null} for none
*/
public java.lang.String getPageToken() {
return pageToken;
}

/**
* Optional. A page token, received from a previous `ListPromotions` call. Provide this to
* Optional. A page token, received from a previous `FindEligiblePromotions` call. Provide this to
* retrieve the subsequent page. When paginating, all other parameters provided to
* `ListPromotions` must match the call that provided the page token.
* `FindEligiblePromotions` must match the call that provided the page token.
* @param pageToken pageToken or {@code null} for none
*/
public FindEligiblePromotionsRequest setPageToken(java.lang.String pageToken) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
package com.google.api.services.paymentsresellersubscription.v1.model;

/**
* Details for a subscriptiin line item with finite billing cycles.
* Details for a subscription line item with finite billing cycles.
*
* <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 Payments Reseller Subscription API. For a detailed
Expand All @@ -31,15 +31,15 @@
public final class FiniteBillingCycleDetails extends com.google.api.client.json.GenericJson {

/**
* Required. The number of a subscription line item billing cycles after which billing will stop
* The number of a subscription line item billing cycles after which billing will stop
* automatically.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
private java.lang.Long billingCycleCountLimit;

/**
* Required. The number of a subscription line item billing cycles after which billing will stop
* The number of a subscription line item billing cycles after which billing will stop
* automatically.
* @return value or {@code null} for none
*/
Expand All @@ -48,7 +48,7 @@ public java.lang.Long getBillingCycleCountLimit() {
}

/**
* Required. The number of a subscription line item billing cycles after which billing will stop
* The number of a subscription line item billing cycles after which billing will stop
* automatically.
* @param billingCycleCountLimit billingCycleCountLimit or {@code null} for none
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public final class Product extends com.google.api.client.json.GenericJson {
private java.lang.String productType;

/**
* Output only. 2-letter ISO region code where the product is available in. Ex. "US" Please refers
* Output only. 2-letter ISO region code where the product is available in. Ex. "US" Please refer
* to: https://en.wikipedia.org/wiki/ISO_3166-1
* The value may be {@code null}.
*/
Expand Down Expand Up @@ -185,7 +185,7 @@ public Product setProductType(java.lang.String productType) {
}

/**
* Output only. 2-letter ISO region code where the product is available in. Ex. "US" Please refers
* Output only. 2-letter ISO region code where the product is available in. Ex. "US" Please refer
* to: https://en.wikipedia.org/wiki/ISO_3166-1
* @return value or {@code null} for none
*/
Expand All @@ -194,7 +194,7 @@ public java.util.List<java.lang.String> getRegionCodes() {
}

/**
* Output only. 2-letter ISO region code where the product is available in. Ex. "US" Please refers
* Output only. 2-letter ISO region code where the product is available in. Ex. "US" Please refer
* to: https://en.wikipedia.org/wiki/ISO_3166-1
* @param regionCodes regionCodes or {@code null} for none
*/
Expand Down
Loading
Loading