Skip to content

Commit 5fe5027

Browse files
feat(walletobjects): update the API
#### walletobjects:v1 The following keys were added: - resources.walletobjects.resources.v1.resources.privateContent.methods.setPassUpdateNotice.description - resources.walletobjects.resources.v1.resources.privateContent.methods.setPassUpdateNotice.flatPath - resources.walletobjects.resources.v1.resources.privateContent.methods.setPassUpdateNotice.httpMethod - resources.walletobjects.resources.v1.resources.privateContent.methods.setPassUpdateNotice.id - resources.walletobjects.resources.v1.resources.privateContent.methods.setPassUpdateNotice.parameterOrder - resources.walletobjects.resources.v1.resources.privateContent.methods.setPassUpdateNotice.path - resources.walletobjects.resources.v1.resources.privateContent.methods.setPassUpdateNotice.request.$ref - resources.walletobjects.resources.v1.resources.privateContent.methods.setPassUpdateNotice.response.$ref - resources.walletobjects.resources.v1.resources.privateContent.methods.setPassUpdateNotice.scopes - schemas.SetPassUpdateNoticeRequest.description - schemas.SetPassUpdateNoticeRequest.id - schemas.SetPassUpdateNoticeRequest.properties.externalPassId.description - schemas.SetPassUpdateNoticeRequest.properties.externalPassId.type - schemas.SetPassUpdateNoticeRequest.properties.updateUri.description - schemas.SetPassUpdateNoticeRequest.properties.updateUri.type - schemas.SetPassUpdateNoticeRequest.properties.updatedPassJwtSignature.description - schemas.SetPassUpdateNoticeRequest.properties.updatedPassJwtSignature.type - schemas.SetPassUpdateNoticeRequest.type - schemas.SetPassUpdateNoticeResponse.description - schemas.SetPassUpdateNoticeResponse.id - schemas.SetPassUpdateNoticeResponse.type The following keys were changed: - schemas.Image.description
1 parent 75b4b0e commit 5fe5027

File tree

2 files changed

+212
-3
lines changed

2 files changed

+212
-3
lines changed

discovery/walletobjects-v1.json

Lines changed: 57 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2679,9 +2679,39 @@
26792679
]
26802680
}
26812681
}
2682+
},
2683+
"walletobjects": {
2684+
"resources": {
2685+
"v1": {
2686+
"resources": {
2687+
"privateContent": {
2688+
"methods": {
2689+
"setPassUpdateNotice": {
2690+
"description": "Provide Google with information about awaiting private pass update. This will allow Google to provide the update notification to the device that currently holds this pass.",
2691+
"flatPath": "walletobjects/v1/privateContent/setPassUpdateNotice",
2692+
"httpMethod": "POST",
2693+
"id": "walletobjects.walletobjects.v1.privateContent.setPassUpdateNotice",
2694+
"parameterOrder": [],
2695+
"parameters": {},
2696+
"path": "walletobjects/v1/privateContent/setPassUpdateNotice",
2697+
"request": {
2698+
"$ref": "SetPassUpdateNoticeRequest"
2699+
},
2700+
"response": {
2701+
"$ref": "SetPassUpdateNoticeResponse"
2702+
},
2703+
"scopes": [
2704+
"https://www.googleapis.com/auth/wallet_object.issuer"
2705+
]
2706+
}
2707+
}
2708+
}
2709+
}
2710+
}
2711+
}
26822712
}
26832713
},
2684-
"revision": "20241203",
2714+
"revision": "20250312",
26852715
"rootUrl": "https://walletobjects.googleapis.com/",
26862716
"schemas": {
26872717
"ActivationOptions": {
@@ -6164,7 +6194,7 @@
61646194
"type": "object"
61656195
},
61666196
"Image": {
6167-
"description": "Wrapping type for Google hosted images. Next ID: 7",
6197+
"description": "Wrapping type for Google hosted images.",
61686198
"id": "Image",
61696199
"properties": {
61706200
"contentDescription": {
@@ -8572,6 +8602,31 @@
85728602
},
85738603
"type": "object"
85748604
},
8605+
"SetPassUpdateNoticeRequest": {
8606+
"description": "Request to send a private pass update notice information to Google, so that devices can then fetch the notice prompting the user to update a pass.",
8607+
"id": "SetPassUpdateNoticeRequest",
8608+
"properties": {
8609+
"externalPassId": {
8610+
"description": "Required. A fully qualified identifier of the pass that the issuer wants to notify the pass holder(s) about. Formatted as .",
8611+
"type": "string"
8612+
},
8613+
"updateUri": {
8614+
"description": "Required. The issuer endpoint URI the pass holder needs to follow in order to receive an updated pass JWT. It can not contain any sensitive information. The endpoint needs to authenticate the user before giving the user the updated JWT. Example update URI https://someissuer.com/update/passId=someExternalPassId",
8615+
"type": "string"
8616+
},
8617+
"updatedPassJwtSignature": {
8618+
"description": "Required. The JWT signature of the updated pass that the issuer wants to notify Google about. Only devices that report a different JWT signature than this JWT signature will receive the update notification.",
8619+
"type": "string"
8620+
}
8621+
},
8622+
"type": "object"
8623+
},
8624+
"SetPassUpdateNoticeResponse": {
8625+
"description": "A response to a request to notify Google of an awaiting update to a private pass.",
8626+
"id": "SetPassUpdateNoticeResponse",
8627+
"properties": {},
8628+
"type": "object"
8629+
},
85758630
"SignUpInfo": {
85768631
"id": "SignUpInfo",
85778632
"properties": {

src/apis/walletobjects/v1.ts

Lines changed: 155 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ export namespace walletobjects_v1 {
131131
smarttap: Resource$Smarttap;
132132
transitclass: Resource$Transitclass;
133133
transitobject: Resource$Transitobject;
134+
walletobjects: Resource$Walletobjects;
134135

135136
constructor(options: GlobalOptions, google?: GoogleConfigurable) {
136137
this.context = {
@@ -157,6 +158,7 @@ export namespace walletobjects_v1 {
157158
this.smarttap = new Resource$Smarttap(this.context);
158159
this.transitclass = new Resource$Transitclass(this.context);
159160
this.transitobject = new Resource$Transitobject(this.context);
161+
this.walletobjects = new Resource$Walletobjects(this.context);
160162
}
161163
}
162164

@@ -2147,7 +2149,7 @@ export namespace walletobjects_v1 {
21472149
sortIndex?: number | null;
21482150
}
21492151
/**
2150-
* Wrapping type for Google hosted images. Next ID: 7
2152+
* Wrapping type for Google hosted images.
21512153
*/
21522154
export interface Schema$Image {
21532155
/**
@@ -3584,6 +3586,27 @@ export namespace walletobjects_v1 {
35843586
*/
35853587
animationType?: string | null;
35863588
}
3589+
/**
3590+
* Request to send a private pass update notice information to Google, so that devices can then fetch the notice prompting the user to update a pass.
3591+
*/
3592+
export interface Schema$SetPassUpdateNoticeRequest {
3593+
/**
3594+
* Required. A fully qualified identifier of the pass that the issuer wants to notify the pass holder(s) about. Formatted as .
3595+
*/
3596+
externalPassId?: string | null;
3597+
/**
3598+
* Required. The JWT signature of the updated pass that the issuer wants to notify Google about. Only devices that report a different JWT signature than this JWT signature will receive the update notification.
3599+
*/
3600+
updatedPassJwtSignature?: string | null;
3601+
/**
3602+
* Required. The issuer endpoint URI the pass holder needs to follow in order to receive an updated pass JWT. It can not contain any sensitive information. The endpoint needs to authenticate the user before giving the user the updated JWT. Example update URI https://someissuer.com/update/passId=someExternalPassId
3603+
*/
3604+
updateUri?: string | null;
3605+
}
3606+
/**
3607+
* A response to a request to notify Google of an awaiting update to a private pass.
3608+
*/
3609+
export interface Schema$SetPassUpdateNoticeResponse {}
35873610
export interface Schema$SignUpInfo {
35883611
/**
35893612
* ID of the class the user can sign up for.
@@ -14292,4 +14315,135 @@ export namespace walletobjects_v1 {
1429214315
*/
1429314316
requestBody?: Schema$TransitObject;
1429414317
}
14318+
14319+
export class Resource$Walletobjects {
14320+
context: APIRequestContext;
14321+
v1: Resource$Walletobjects$V1;
14322+
constructor(context: APIRequestContext) {
14323+
this.context = context;
14324+
this.v1 = new Resource$Walletobjects$V1(this.context);
14325+
}
14326+
}
14327+
14328+
export class Resource$Walletobjects$V1 {
14329+
context: APIRequestContext;
14330+
privateContent: Resource$Walletobjects$V1$Privatecontent;
14331+
constructor(context: APIRequestContext) {
14332+
this.context = context;
14333+
this.privateContent = new Resource$Walletobjects$V1$Privatecontent(
14334+
this.context
14335+
);
14336+
}
14337+
}
14338+
14339+
export class Resource$Walletobjects$V1$Privatecontent {
14340+
context: APIRequestContext;
14341+
constructor(context: APIRequestContext) {
14342+
this.context = context;
14343+
}
14344+
14345+
/**
14346+
* Provide Google with information about awaiting private pass update. This will allow Google to provide the update notification to the device that currently holds this pass.
14347+
*
14348+
* @param params - Parameters for request
14349+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
14350+
* @param callback - Optional callback that handles the response.
14351+
* @returns A promise if used with async/await, or void if used with a callback.
14352+
*/
14353+
setPassUpdateNotice(
14354+
params: Params$Resource$Walletobjects$V1$Privatecontent$Setpassupdatenotice,
14355+
options: StreamMethodOptions
14356+
): GaxiosPromise<Readable>;
14357+
setPassUpdateNotice(
14358+
params?: Params$Resource$Walletobjects$V1$Privatecontent$Setpassupdatenotice,
14359+
options?: MethodOptions
14360+
): GaxiosPromise<Schema$SetPassUpdateNoticeResponse>;
14361+
setPassUpdateNotice(
14362+
params: Params$Resource$Walletobjects$V1$Privatecontent$Setpassupdatenotice,
14363+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
14364+
callback: BodyResponseCallback<Readable>
14365+
): void;
14366+
setPassUpdateNotice(
14367+
params: Params$Resource$Walletobjects$V1$Privatecontent$Setpassupdatenotice,
14368+
options:
14369+
| MethodOptions
14370+
| BodyResponseCallback<Schema$SetPassUpdateNoticeResponse>,
14371+
callback: BodyResponseCallback<Schema$SetPassUpdateNoticeResponse>
14372+
): void;
14373+
setPassUpdateNotice(
14374+
params: Params$Resource$Walletobjects$V1$Privatecontent$Setpassupdatenotice,
14375+
callback: BodyResponseCallback<Schema$SetPassUpdateNoticeResponse>
14376+
): void;
14377+
setPassUpdateNotice(
14378+
callback: BodyResponseCallback<Schema$SetPassUpdateNoticeResponse>
14379+
): void;
14380+
setPassUpdateNotice(
14381+
paramsOrCallback?:
14382+
| Params$Resource$Walletobjects$V1$Privatecontent$Setpassupdatenotice
14383+
| BodyResponseCallback<Schema$SetPassUpdateNoticeResponse>
14384+
| BodyResponseCallback<Readable>,
14385+
optionsOrCallback?:
14386+
| MethodOptions
14387+
| StreamMethodOptions
14388+
| BodyResponseCallback<Schema$SetPassUpdateNoticeResponse>
14389+
| BodyResponseCallback<Readable>,
14390+
callback?:
14391+
| BodyResponseCallback<Schema$SetPassUpdateNoticeResponse>
14392+
| BodyResponseCallback<Readable>
14393+
):
14394+
| void
14395+
| GaxiosPromise<Schema$SetPassUpdateNoticeResponse>
14396+
| GaxiosPromise<Readable> {
14397+
let params = (paramsOrCallback ||
14398+
{}) as Params$Resource$Walletobjects$V1$Privatecontent$Setpassupdatenotice;
14399+
let options = (optionsOrCallback || {}) as MethodOptions;
14400+
14401+
if (typeof paramsOrCallback === 'function') {
14402+
callback = paramsOrCallback;
14403+
params =
14404+
{} as Params$Resource$Walletobjects$V1$Privatecontent$Setpassupdatenotice;
14405+
options = {};
14406+
}
14407+
14408+
if (typeof optionsOrCallback === 'function') {
14409+
callback = optionsOrCallback;
14410+
options = {};
14411+
}
14412+
14413+
const rootUrl =
14414+
options.rootUrl || 'https://walletobjects.googleapis.com/';
14415+
const parameters = {
14416+
options: Object.assign(
14417+
{
14418+
url: (
14419+
rootUrl + '/walletobjects/v1/privateContent/setPassUpdateNotice'
14420+
).replace(/([^:]\/)\/+/g, '$1'),
14421+
method: 'POST',
14422+
apiVersion: '',
14423+
},
14424+
options
14425+
),
14426+
params,
14427+
requiredParams: [],
14428+
pathParams: [],
14429+
context: this.context,
14430+
};
14431+
if (callback) {
14432+
createAPIRequest<Schema$SetPassUpdateNoticeResponse>(
14433+
parameters,
14434+
callback as BodyResponseCallback<unknown>
14435+
);
14436+
} else {
14437+
return createAPIRequest<Schema$SetPassUpdateNoticeResponse>(parameters);
14438+
}
14439+
}
14440+
}
14441+
14442+
export interface Params$Resource$Walletobjects$V1$Privatecontent$Setpassupdatenotice
14443+
extends StandardParameters {
14444+
/**
14445+
* Request body metadata
14446+
*/
14447+
requestBody?: Schema$SetPassUpdateNoticeRequest;
14448+
}
1429514449
}

0 commit comments

Comments
 (0)