* $contentService = new Google\Service\ShoppingContent(...); * $customers = $contentService->customers; * */ class Customers extends \Google\Service\Resource { /** * Allows uploading one customer information entry. Adding a customer with * loyalty data enables the customer to see personalized loyalty annotations on * search. Uploading a previously existing customer will overwrite the old * entry. (customers.create) * * @param string $merchantId Required. The ID of the account that owns the * customer information. * @param Customer $postBody * @param array $optParams Optional parameters. * @return Customer */ public function create($merchantId, Customer $postBody, $optParams = []) { $params = ['merchantId' => $merchantId, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('create', [$params], Customer::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Customers::class, 'Google_Service_ShoppingContent_Resource_Customers');