class Offerclass extends Resource (View source)

The "offerclass" collection of methods.

Typical usage is:

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

Methods

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

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

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

Returns the offer class with the given class ID. (offerclass.get)

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

Inserts an offer class with the given ID and properties. (offerclass.insert)

listOfferclass(array $optParams = [])

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

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

Updates the offer class referenced by the given class ID. This method supports patch semantics. (offerclass.patch)

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

Updates the offer class referenced by the given class ID. (offerclass.update)

Details

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

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

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

OfferClassAddMessageResponse

Exceptions

Exception

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

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

OfferClass

Exceptions

Exception

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

Inserts an offer class with the given ID and properties. (offerclass.insert)

Parameters

OfferClass $postBody
array $optParams

Optional parameters.

Return Value

OfferClass

Exceptions

Exception

OfferClassListResponse listOfferclass(array $optParams = [])

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

(offerclass.listOfferclass)

Parameters

array $optParams

Optional parameters.

Return Value

OfferClassListResponse

Exceptions

Exception

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

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

OfferClass $postBody
array $optParams

Optional parameters.

Return Value

OfferClass

Exceptions

Exception

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

Updates the offer class referenced by the given class ID. (offerclass.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 '-'.

OfferClass $postBody
array $optParams

Optional parameters.

Return Value

OfferClass

Exceptions

Exception