class Giftcardobject extends Resource (View source)

The "giftcardobject" collection of methods.

Typical usage is:

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

Methods

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

Adds a message to the gift card object referenced by the given object ID.

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

Returns the gift card object with the given object ID. (giftcardobject.get)

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

Inserts an gift card object with the given ID and properties.

listGiftcardobject(array $optParams = [])

Returns a list of all gift card objects for a given issuer ID.

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

Updates the gift card object referenced by the given object ID. This method supports patch semantics. (giftcardobject.patch)

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

Updates the gift card object referenced by the given object ID.

Details

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

Adds a message to the gift card object referenced by the given object ID.

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

GiftCardObjectAddMessageResponse

Exceptions

Exception

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

Returns the gift card object with the given object ID. (giftcardobject.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

GiftCardObject

Exceptions

Exception

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

Inserts an gift card object with the given ID and properties.

(giftcardobject.insert)

Parameters

GiftCardObject $postBody
array $optParams

Optional parameters.

Return Value

GiftCardObject

Exceptions

Exception

GiftCardObjectListResponse listGiftcardobject(array $optParams = [])

Returns a list of all gift card objects for a given issuer ID.

(giftcardobject.listGiftcardobject)

Parameters

array $optParams

Optional parameters.

Return Value

GiftCardObjectListResponse

Exceptions

Exception

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

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

GiftCardObject $postBody
array $optParams

Optional parameters.

Return Value

GiftCardObject

Exceptions

Exception

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

Updates the gift card object referenced by the given object ID.

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

GiftCardObject $postBody
array $optParams

Optional parameters.

Return Value

GiftCardObject

Exceptions

Exception