class Giftcardclass extends Resource (View source)

The "giftcardclass" collection of methods.

Typical usage is:

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

Methods

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

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

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

Returns the gift card class with the given class ID. (giftcardclass.get)

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

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

listGiftcardclass(array $optParams = [])

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

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

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

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

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

Details

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

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

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

GiftCardClassAddMessageResponse

Exceptions

Exception

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

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

GiftCardClass

Exceptions

Exception

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

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

(giftcardclass.insert)

Parameters

GiftCardClass $postBody
array $optParams

Optional parameters.

Return Value

GiftCardClass

Exceptions

Exception

GiftCardClassListResponse listGiftcardclass(array $optParams = [])

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

(giftcardclass.listGiftcardclass)

Parameters

array $optParams

Optional parameters.

Return Value

GiftCardClassListResponse

Exceptions

Exception

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

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

GiftCardClass $postBody
array $optParams

Optional parameters.

Return Value

GiftCardClass

Exceptions

Exception

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

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

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

GiftCardClass $postBody
array $optParams

Optional parameters.

Return Value

GiftCardClass

Exceptions

Exception