class Transitclass extends Resource (View source)

The "transitclass" collection of methods.

Typical usage is:

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

Methods

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

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

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

Returns the transit class with the given class ID. (transitclass.get)

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

Inserts a transit class with the given ID and properties.

listTransitclass(array $optParams = [])

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

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

Updates the transit class referenced by the given class ID. This method supports patch semantics. (transitclass.patch)

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

Updates the transit class referenced by the given class ID.

Details

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

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

(transitclass.addmessage)

Parameters

string $resourceId

The unique identifier for a class. This ID must be unique across all classes 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

TransitClassAddMessageResponse

Exceptions

Exception

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

Returns the transit class with the given class ID. (transitclass.get)

Parameters

string $resourceId

The unique identifier for a class. This ID must be unique across all classes 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

TransitClass

Exceptions

Exception

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

Inserts a transit class with the given ID and properties.

(transitclass.insert)

Parameters

TransitClass $postBody
array $optParams

Optional parameters.

Return Value

TransitClass

Exceptions

Exception

TransitClassListResponse listTransitclass(array $optParams = [])

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

(transitclass.listTransitclass)

Parameters

array $optParams

Optional parameters.

Return Value

TransitClassListResponse

Exceptions

Exception

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

Updates the transit class referenced by the given class ID. This method supports patch semantics. (transitclass.patch)

Parameters

string $resourceId

The unique identifier for a class. This ID must be unique across all classes 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 '-'.

TransitClass $postBody
array $optParams

Optional parameters.

Return Value

TransitClass

Exceptions

Exception

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

Updates the transit class referenced by the given class ID.

(transitclass.update)

Parameters

string $resourceId

The unique identifier for a class. This ID must be unique across all classes 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 '-'.

TransitClass $postBody
array $optParams

Optional parameters.

Return Value

TransitClass

Exceptions

Exception