Skip to content

Commit 90207a4

Browse files
1 parent 4b64b24 commit 90207a4

3 files changed

Lines changed: 79 additions & 8 deletions

File tree

src/Walletobjects.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ class Walletobjects extends \Google\Service
5757
public $smarttap;
5858
public $transitclass;
5959
public $transitobject;
60+
public $walletobjects_v1_privateContent;
6061
public $rootUrlTemplate;
6162

6263
/**
@@ -1226,6 +1227,20 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
12261227
]
12271228
]
12281229
);
1230+
$this->walletobjects_v1_privateContent = new Walletobjects\Resource\WalletobjectsV1PrivateContent(
1231+
$this,
1232+
$this->serviceName,
1233+
'privateContent',
1234+
[
1235+
'methods' => [
1236+
'setPassUpdateNotice' => [
1237+
'path' => 'walletobjects/v1/privateContent/setPassUpdateNotice',
1238+
'httpMethod' => 'POST',
1239+
'parameters' => [],
1240+
],
1241+
]
1242+
]
1243+
);
12291244
}
12301245
}
12311246

src/Walletobjects/Resource/WalletobjectsV1PrivateContent.php

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717

1818
namespace Google\Service\Walletobjects\Resource;
1919

20-
use Google\Service\Walletobjects\UploadPrivateDataRequest;
21-
use Google\Service\Walletobjects\UploadPrivateDataResponse;
20+
use Google\Service\Walletobjects\SetPassUpdateNoticeRequest;
21+
use Google\Service\Walletobjects\SetPassUpdateNoticeResponse;
2222

2323
/**
2424
* The "privateContent" collection of methods.
@@ -31,19 +31,20 @@
3131
class WalletobjectsV1PrivateContent extends \Google\Service\Resource
3232
{
3333
/**
34-
* Upload private data (text or URI) and returns an Id to be used in its place.
35-
* (privateContent.uploadPrivateData)
34+
* Provide Google with information about awaiting private pass update. This will
35+
* allow Google to provide the update notification to the device that currently
36+
* holds this pass. (privateContent.setPassUpdateNotice)
3637
*
37-
* @param UploadPrivateDataRequest $postBody
38+
* @param SetPassUpdateNoticeRequest $postBody
3839
* @param array $optParams Optional parameters.
39-
* @return UploadPrivateDataResponse
40+
* @return SetPassUpdateNoticeResponse
4041
* @throws \Google\Service\Exception
4142
*/
42-
public function uploadPrivateData(UploadPrivateDataRequest $postBody, $optParams = [])
43+
public function setPassUpdateNotice(SetPassUpdateNoticeRequest $postBody, $optParams = [])
4344
{
4445
$params = ['postBody' => $postBody];
4546
$params = array_merge($params, $optParams);
46-
return $this->call('uploadPrivateData', [$params], UploadPrivateDataResponse::class);
47+
return $this->call('setPassUpdateNotice', [$params], SetPassUpdateNoticeResponse::class);
4748
}
4849
}
4950

src/Walletobjects/SetPassUpdateNoticeRequest.php

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,61 @@
1919

2020
class SetPassUpdateNoticeRequest extends \Google\Model
2121
{
22+
/**
23+
* @var string
24+
*/
25+
public $externalPassId;
26+
/**
27+
* @var string
28+
*/
29+
public $updateUri;
30+
/**
31+
* @var string
32+
*/
33+
public $updatedPassJwtSignature;
34+
35+
/**
36+
* @param string
37+
*/
38+
public function setExternalPassId($externalPassId)
39+
{
40+
$this->externalPassId = $externalPassId;
41+
}
42+
/**
43+
* @return string
44+
*/
45+
public function getExternalPassId()
46+
{
47+
return $this->externalPassId;
48+
}
49+
/**
50+
* @param string
51+
*/
52+
public function setUpdateUri($updateUri)
53+
{
54+
$this->updateUri = $updateUri;
55+
}
56+
/**
57+
* @return string
58+
*/
59+
public function getUpdateUri()
60+
{
61+
return $this->updateUri;
62+
}
63+
/**
64+
* @param string
65+
*/
66+
public function setUpdatedPassJwtSignature($updatedPassJwtSignature)
67+
{
68+
$this->updatedPassJwtSignature = $updatedPassJwtSignature;
69+
}
70+
/**
71+
* @return string
72+
*/
73+
public function getUpdatedPassJwtSignature()
74+
{
75+
return $this->updatedPassJwtSignature;
76+
}
2277
}
2378

2479
// Adding a class alias for backwards compatibility with the previous class name.

0 commit comments

Comments
 (0)