class Pos extends Resource (View source)

The "pos" collection of methods.

Typical usage is:

 $contentService = new Google\Service\ShoppingContent(...);
 $pos = $contentService->pos;

Methods

custombatch(PosCustomBatchRequest $postBody, array $optParams = [])

Batches multiple POS-related calls in a single request. (pos.custombatch)

delete(string $merchantId, string $targetMerchantId, string $storeCode, array $optParams = [])

Deletes a store for the given merchant. (pos.delete)

get(string $merchantId, string $targetMerchantId, string $storeCode, array $optParams = [])

Retrieves information about the given store. (pos.get)

insert(string $merchantId, string $targetMerchantId, PosStore $postBody, array $optParams = [])

Creates a store for the given merchant. (pos.insert)

inventory(string $merchantId, string $targetMerchantId, PosInventoryRequest $postBody, array $optParams = [])

Submit inventory for the given merchant. (pos.inventory)

listPos(string $merchantId, string $targetMerchantId, array $optParams = [])

Lists the stores of the target merchant. (pos.listPos)

sale(string $merchantId, string $targetMerchantId, PosSaleRequest $postBody, array $optParams = [])

Submit a sale event for the given merchant. (pos.sale)

Details

PosCustomBatchResponse custombatch(PosCustomBatchRequest $postBody, array $optParams = [])

Batches multiple POS-related calls in a single request. (pos.custombatch)

Parameters

PosCustomBatchRequest $postBody
array $optParams

Optional parameters.

Return Value

PosCustomBatchResponse

Exceptions

Exception

delete(string $merchantId, string $targetMerchantId, string $storeCode, array $optParams = [])

Deletes a store for the given merchant. (pos.delete)

Parameters

string $merchantId

The ID of the POS or inventory data provider.

string $targetMerchantId

The ID of the target merchant.

string $storeCode

A store code that is unique per merchant.

array $optParams

Optional parameters.

Exceptions

Exception

PosStore get(string $merchantId, string $targetMerchantId, string $storeCode, array $optParams = [])

Retrieves information about the given store. (pos.get)

Parameters

string $merchantId

The ID of the POS or inventory data provider.

string $targetMerchantId

The ID of the target merchant.

string $storeCode

A store code that is unique per merchant.

array $optParams

Optional parameters.

Return Value

PosStore

Exceptions

Exception

PosStore insert(string $merchantId, string $targetMerchantId, PosStore $postBody, array $optParams = [])

Creates a store for the given merchant. (pos.insert)

Parameters

string $merchantId

The ID of the POS or inventory data provider.

string $targetMerchantId

The ID of the target merchant.

PosStore $postBody
array $optParams

Optional parameters.

Return Value

PosStore

Exceptions

Exception

PosInventoryResponse inventory(string $merchantId, string $targetMerchantId, PosInventoryRequest $postBody, array $optParams = [])

Submit inventory for the given merchant. (pos.inventory)

Parameters

string $merchantId

The ID of the POS or inventory data provider.

string $targetMerchantId

The ID of the target merchant.

PosInventoryRequest $postBody
array $optParams

Optional parameters.

Return Value

PosInventoryResponse

Exceptions

Exception

PosListResponse listPos(string $merchantId, string $targetMerchantId, array $optParams = [])

Lists the stores of the target merchant. (pos.listPos)

Parameters

string $merchantId

The ID of the POS or inventory data provider.

string $targetMerchantId

The ID of the target merchant.

array $optParams

Optional parameters.

Return Value

PosListResponse

Exceptions

Exception

PosSaleResponse sale(string $merchantId, string $targetMerchantId, PosSaleRequest $postBody, array $optParams = [])

Submit a sale event for the given merchant. (pos.sale)

Parameters

string $merchantId

The ID of the POS or inventory data provider.

string $targetMerchantId

The ID of the target merchant.

PosSaleRequest $postBody
array $optParams

Optional parameters.

Return Value

PosSaleResponse

Exceptions

Exception