class Loyaltyclass extends Resource (View source)

The "loyaltyclass" collection of methods.

Typical usage is:

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

Methods

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

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

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

Returns the loyalty class with the given class ID. (loyaltyclass.get)

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

Inserts an loyalty class with the given ID and properties.

listLoyaltyclass(array $optParams = [])

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

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

Updates the loyalty class referenced by the given class ID. This method supports patch semantics. (loyaltyclass.patch)

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

Updates the loyalty class referenced by the given class ID.

Details

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

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

(loyaltyclass.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

LoyaltyClassAddMessageResponse

Exceptions

Exception

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

Returns the loyalty class with the given class ID. (loyaltyclass.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

LoyaltyClass

Exceptions

Exception

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

Inserts an loyalty class with the given ID and properties.

(loyaltyclass.insert)

Parameters

LoyaltyClass $postBody
array $optParams

Optional parameters.

Return Value

LoyaltyClass

Exceptions

Exception

LoyaltyClassListResponse listLoyaltyclass(array $optParams = [])

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

(loyaltyclass.listLoyaltyclass)

Parameters

array $optParams

Optional parameters.

Return Value

LoyaltyClassListResponse

Exceptions

Exception

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

Updates the loyalty class referenced by the given class ID. This method supports patch semantics. (loyaltyclass.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 '-'.

LoyaltyClass $postBody
array $optParams

Optional parameters.

Return Value

LoyaltyClass

Exceptions

Exception

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

Updates the loyalty class referenced by the given class ID.

(loyaltyclass.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 '-'.

LoyaltyClass $postBody
array $optParams

Optional parameters.

Return Value

LoyaltyClass

Exceptions

Exception