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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7819,6 +7819,105 @@ public Insert set(String parameterName, Object value) {
return (Insert) super.set(parameterName, value);
}
}
/**
* Checks that the JWT or JSON string in the request represents a valid pass to be saved.
*
* Create a request for the method "jwt.validate".
*
* This request holds the parameters needed by the walletobjects server. After setting any optional
* parameters, call the {@link Validate#execute()} method to invoke the remote operation.
*
* @param content the {@link com.google.api.services.walletobjects.model.JwtValidateRequest}
* @return the request
*/
public Validate validate(com.google.api.services.walletobjects.model.JwtValidateRequest content) throws java.io.IOException {
Validate result = new Validate(content);
initialize(result);
return result;
}

public class Validate extends WalletobjectsRequest<com.google.api.services.walletobjects.model.JwtValidateResponse> {

private static final String REST_PATH = "walletobjects/v1/jwt/validate";

/**
* Checks that the JWT or JSON string in the request represents a valid pass to be saved.
*
* Create a request for the method "jwt.validate".
*
* This request holds the parameters needed by the the walletobjects server. After setting any
* optional parameters, call the {@link Validate#execute()} method to invoke the remote operation.
* <p> {@link
* Validate#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
* must be called to initialize this instance immediately after invoking the constructor. </p>
*
* @param content the {@link com.google.api.services.walletobjects.model.JwtValidateRequest}
* @since 1.13
*/
protected Validate(com.google.api.services.walletobjects.model.JwtValidateRequest content) {
super(Walletobjects.this, "POST", REST_PATH, content, com.google.api.services.walletobjects.model.JwtValidateResponse.class);
}

@Override
public Validate set$Xgafv(java.lang.String $Xgafv) {
return (Validate) super.set$Xgafv($Xgafv);
}

@Override
public Validate setAccessToken(java.lang.String accessToken) {
return (Validate) super.setAccessToken(accessToken);
}

@Override
public Validate setAlt(java.lang.String alt) {
return (Validate) super.setAlt(alt);
}

@Override
public Validate setCallback(java.lang.String callback) {
return (Validate) super.setCallback(callback);
}

@Override
public Validate setFields(java.lang.String fields) {
return (Validate) super.setFields(fields);
}

@Override
public Validate setKey(java.lang.String key) {
return (Validate) super.setKey(key);
}

@Override
public Validate setOauthToken(java.lang.String oauthToken) {
return (Validate) super.setOauthToken(oauthToken);
}

@Override
public Validate setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Validate) super.setPrettyPrint(prettyPrint);
}

@Override
public Validate setQuotaUser(java.lang.String quotaUser) {
return (Validate) super.setQuotaUser(quotaUser);
}

@Override
public Validate setUploadType(java.lang.String uploadType) {
return (Validate) super.setUploadType(uploadType);
}

@Override
public Validate setUploadProtocol(java.lang.String uploadProtocol) {
return (Validate) super.setUploadProtocol(uploadProtocol);
}

@Override
public Validate set(String parameterName, Object value) {
return (Validate) super.set(parameterName, value);
}
}

}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/

package com.google.api.services.walletobjects.model;

/**
* A JSON representation of a pass.
*
* <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 Google Wallet API. For a detailed explanation see:
* <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>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class JsonResource extends com.google.api.client.json.GenericJson {

/**
* Required. A JSON string representing the unencoded JWT payload for a pass of the format
* described at https://developers.google.com/wallet/reference/rest/v1/Jwt. This can be set to
* either the entire JSON representation described at this link or just the contents of the
* payload field holding the relevant classes and objects.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String json;

/**
* Required. A JSON string representing the unencoded JWT payload for a pass of the format
* described at https://developers.google.com/wallet/reference/rest/v1/Jwt. This can be set to
* either the entire JSON representation described at this link or just the contents of the
* payload field holding the relevant classes and objects.
* @return value or {@code null} for none
*/
public java.lang.String getJson() {
return json;
}

/**
* Required. A JSON string representing the unencoded JWT payload for a pass of the format
* described at https://developers.google.com/wallet/reference/rest/v1/Jwt. This can be set to
* either the entire JSON representation described at this link or just the contents of the
* payload field holding the relevant classes and objects.
* @param json json or {@code null} for none
*/
public JsonResource setJson(java.lang.String json) {
this.json = json;
return this;
}

@Override
public JsonResource set(String fieldName, Object value) {
return (JsonResource) super.set(fieldName, value);
}

@Override
public JsonResource clone() {
return (JsonResource) super.clone();
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/

package com.google.api.services.walletobjects.model;

/**
* Request to validate the JWT or JSON representation of a pass.
*
* <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 Google Wallet API. For a detailed explanation see:
* <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>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class JwtValidateRequest extends com.google.api.client.json.GenericJson {

/**
* Optional. A JSON representation of a pass to be validated. Either this or jwt_resource should
* be set. Requests setting both or neither will be rejected.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private JsonResource jsonResource;

/**
* Optional. A JWT representation of a pass to be validated. Either this or json_resource should
* be set. Requests setting both or neither will be rejected.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private JwtResource jwtResource;

/**
* Optional. A JSON representation of a pass to be validated. Either this or jwt_resource should
* be set. Requests setting both or neither will be rejected.
* @return value or {@code null} for none
*/
public JsonResource getJsonResource() {
return jsonResource;
}

/**
* Optional. A JSON representation of a pass to be validated. Either this or jwt_resource should
* be set. Requests setting both or neither will be rejected.
* @param jsonResource jsonResource or {@code null} for none
*/
public JwtValidateRequest setJsonResource(JsonResource jsonResource) {
this.jsonResource = jsonResource;
return this;
}

/**
* Optional. A JWT representation of a pass to be validated. Either this or json_resource should
* be set. Requests setting both or neither will be rejected.
* @return value or {@code null} for none
*/
public JwtResource getJwtResource() {
return jwtResource;
}

/**
* Optional. A JWT representation of a pass to be validated. Either this or json_resource should
* be set. Requests setting both or neither will be rejected.
* @param jwtResource jwtResource or {@code null} for none
*/
public JwtValidateRequest setJwtResource(JwtResource jwtResource) {
this.jwtResource = jwtResource;
return this;
}

@Override
public JwtValidateRequest set(String fieldName, Object value) {
return (JwtValidateRequest) super.set(fieldName, value);
}

@Override
public JwtValidateRequest clone() {
return (JwtValidateRequest) super.clone();
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/

package com.google.api.services.walletobjects.model;

/**
* Empty if the resource in the request is valid. Returns exception if invalid.
*
* <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 Google Wallet API. For a detailed explanation see:
* <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>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class JwtValidateResponse extends com.google.api.client.json.GenericJson {

@Override
public JwtValidateResponse set(String fieldName, Object value) {
return (JwtValidateResponse) super.set(fieldName, value);
}

@Override
public JwtValidateResponse clone() {
return (JwtValidateResponse) super.clone();
}

}
4 changes: 2 additions & 2 deletions clients/google-api-services-walletobjects/v1/2.0.0/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

<groupId>com.google.apis</groupId>
<artifactId>google-api-services-walletobjects</artifactId>
<version>v1-rev20260511-2.0.0</version>
<name>Google Wallet API v1-rev20260511-2.0.0</name>
<version>v1-rev20260806-2.0.0</version>
<name>Google Wallet API v1-rev20260806-2.0.0</name>
<packaging>jar</packaging>

<inceptionYear>2011</inceptionYear>
Expand Down
4 changes: 2 additions & 2 deletions clients/google-api-services-walletobjects/v1/README.md
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-walletobjects</artifactId>
<version>v1-rev20260511-2.0.0</version>
<version>v1-rev20260806-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-walletobjects:v1-rev20260511-2.0.0'
implementation 'com.google.apis:google-api-services-walletobjects:v1-rev20260806-2.0.0'
}
```

Expand Down
Loading