class Returnpolicy extends Resource (View source)

The "returnpolicy" collection of methods.

Typical usage is:

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

Methods

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

Batches multiple return policy related calls in a single request.

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

Deletes a return policy for the given Merchant Center account.

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

Gets a return policy of the Merchant Center account. (returnpolicy.get)

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

Inserts a return policy for the Merchant Center account.

listReturnpolicy(string $merchantId, array $optParams = [])

Lists the return policies of the Merchant Center account.

Details

ReturnpolicyCustomBatchResponse custombatch(ReturnpolicyCustomBatchRequest $postBody, array $optParams = [])

Batches multiple return policy related calls in a single request.

(returnpolicy.custombatch)

Parameters

ReturnpolicyCustomBatchRequest $postBody
array $optParams

Optional parameters.

Return Value

ReturnpolicyCustomBatchResponse

Exceptions

Exception

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

Deletes a return policy for the given Merchant Center account.

(returnpolicy.delete)

Parameters

string $merchantId

The Merchant Center account from which to delete the given return policy.

string $returnPolicyId

Return policy ID generated by Google.

array $optParams

Optional parameters.

Exceptions

Exception

ReturnPolicy get(string $merchantId, string $returnPolicyId, array $optParams = [])

Gets a return policy of the Merchant Center account. (returnpolicy.get)

Parameters

string $merchantId

The Merchant Center account to get a return policy for.

string $returnPolicyId

Return policy ID generated by Google.

array $optParams

Optional parameters.

Return Value

ReturnPolicy

Exceptions

Exception

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

Inserts a return policy for the Merchant Center account.

(returnpolicy.insert)

Parameters

string $merchantId

The Merchant Center account to insert a return policy for.

ReturnPolicy $postBody
array $optParams

Optional parameters.

Return Value

ReturnPolicy

Exceptions

Exception

ReturnpolicyListResponse listReturnpolicy(string $merchantId, array $optParams = [])

Lists the return policies of the Merchant Center account.

(returnpolicy.listReturnpolicy)

Parameters

string $merchantId

The Merchant Center account to list return policies for.

array $optParams

Optional parameters.

Return Value

ReturnpolicyListResponse

Exceptions

Exception