class Transitobject extends Resource (View source)

The "transitobject" collection of methods.

Typical usage is:

 $walletobjectsService = new Google\Service\Walletobjects(...);
 $transitobject = $walletobjectsService->transitobject;

Methods

addmessage(string $resourceId, AddMessageRequest $postBody, array $optParams = [])

Adds a message to the transit object referenced by the given object ID.

get(string $resourceId, array $optParams = [])

Returns the transit object with the given object ID. (transitobject.get)

insert(TransitObject $postBody, array $optParams = [])

Inserts an transit object with the given ID and properties.

listTransitobject(array $optParams = [])

Returns a list of all transit objects for a given issuer ID.

patch(string $resourceId, TransitObject $postBody, array $optParams = [])

Updates the transit object referenced by the given object ID. This method supports patch semantics. (transitobject.patch)

update(string $resourceId, TransitObject $postBody, array $optParams = [])

Updates the transit object referenced by the given object ID.

Details

TransitObjectAddMessageResponse addmessage(string $resourceId, AddMessageRequest $postBody, array $optParams = [])

Adds a message to the transit object referenced by the given object ID.

(transitobject.addmessage)

Parameters

string $resourceId

The unique identifier for an object. This ID must be unique across all objects from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.

AddMessageRequest $postBody
array $optParams

Optional parameters.

Return Value

TransitObjectAddMessageResponse

Exceptions

Exception

TransitObject get(string $resourceId, array $optParams = [])

Returns the transit object with the given object ID. (transitobject.get)

Parameters

string $resourceId

The unique identifier for an object. This ID must be unique across all objects from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.

array $optParams

Optional parameters.

Return Value

TransitObject

Exceptions

Exception

TransitObject insert(TransitObject $postBody, array $optParams = [])

Inserts an transit object with the given ID and properties.

(transitobject.insert)

Parameters

TransitObject $postBody
array $optParams

Optional parameters.

Return Value

TransitObject

Exceptions

Exception

TransitObjectListResponse listTransitobject(array $optParams = [])

Returns a list of all transit objects for a given issuer ID.

(transitobject.listTransitobject)

Parameters

array $optParams

Optional parameters.

Return Value

TransitObjectListResponse

Exceptions

Exception

TransitObject patch(string $resourceId, TransitObject $postBody, array $optParams = [])

Updates the transit object referenced by the given object ID. This method supports patch semantics. (transitobject.patch)

Parameters

string $resourceId

The unique identifier for an object. This ID must be unique across all objects from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.

TransitObject $postBody
array $optParams

Optional parameters.

Return Value

TransitObject

Exceptions

Exception

TransitObject update(string $resourceId, TransitObject $postBody, array $optParams = [])

Updates the transit object referenced by the given object ID.

(transitobject.update)

Parameters

string $resourceId

The unique identifier for an object. This ID must be unique across all objects from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.

TransitObject $postBody
array $optParams

Optional parameters.

Return Value

TransitObject

Exceptions

Exception