class Loyaltyobject extends Resource (View source)

The "loyaltyobject" collection of methods.

Typical usage is:

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

Methods

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

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

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

Returns the loyalty object with the given object ID. (loyaltyobject.get)

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

Inserts an loyalty object with the given ID and properties.

listLoyaltyobject(array $optParams = [])

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

modifylinkedofferobjects(string $resourceId, ModifyLinkedOfferObjectsRequest $postBody, array $optParams = [])

Modifies linked offer objects for the loyalty object with the given ID.

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

Updates the loyalty object referenced by the given object ID. This method supports patch semantics. (loyaltyobject.patch)

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

Updates the loyalty object referenced by the given object ID.

Details

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

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

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

LoyaltyObjectAddMessageResponse

Exceptions

Exception

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

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

LoyaltyObject

Exceptions

Exception

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

Inserts an loyalty object with the given ID and properties.

(loyaltyobject.insert)

Parameters

LoyaltyObject $postBody
array $optParams

Optional parameters.

Return Value

LoyaltyObject

Exceptions

Exception

LoyaltyObjectListResponse listLoyaltyobject(array $optParams = [])

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

(loyaltyobject.listLoyaltyobject)

Parameters

array $optParams

Optional parameters.

Return Value

LoyaltyObjectListResponse

Exceptions

Exception

LoyaltyObject modifylinkedofferobjects(string $resourceId, ModifyLinkedOfferObjectsRequest $postBody, array $optParams = [])

Modifies linked offer objects for the loyalty object with the given ID.

(loyaltyobject.modifylinkedofferobjects)

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

ModifyLinkedOfferObjectsRequest $postBody
array $optParams

Optional parameters.

Return Value

LoyaltyObject

Exceptions

Exception

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

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

LoyaltyObject $postBody
array $optParams

Optional parameters.

Return Value

LoyaltyObject

Exceptions

Exception

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

Updates the loyalty object referenced by the given object ID.

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

LoyaltyObject $postBody
array $optParams

Optional parameters.

Return Value

LoyaltyObject

Exceptions

Exception