class Offerobject extends Resource (View source)

The "offerobject" collection of methods.

Typical usage is:

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

Methods

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

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

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

Returns the offer object with the given object ID. (offerobject.get)

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

Inserts an offer object with the given ID and properties.

listOfferobject(array $optParams = [])

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

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

Updates the offer object referenced by the given object ID. This method supports patch semantics. (offerobject.patch)

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

Updates the offer object referenced by the given object ID.

Details

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

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

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

OfferObjectAddMessageResponse

Exceptions

Exception

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

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

OfferObject

Exceptions

Exception

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

Inserts an offer object with the given ID and properties.

(offerobject.insert)

Parameters

OfferObject $postBody
array $optParams

Optional parameters.

Return Value

OfferObject

Exceptions

Exception

OfferObjectListResponse listOfferobject(array $optParams = [])

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

(offerobject.listOfferobject)

Parameters

array $optParams

Optional parameters.

Return Value

OfferObjectListResponse

Exceptions

Exception

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

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

OfferObject $postBody
array $optParams

Optional parameters.

Return Value

OfferObject

Exceptions

Exception

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

Updates the offer object referenced by the given object ID.

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

OfferObject $postBody
array $optParams

Optional parameters.

Return Value

OfferObject

Exceptions

Exception