* $walletobjectsService = new Google\Service\Walletobjects(...); * $smarttap = $walletobjectsService->smarttap; * */ class Smarttap extends \Google\Service\Resource { /** * Inserts the smart tap. (smarttap.insert) * * @param SmartTapModel $postBody * @param array $optParams Optional parameters. * @return SmartTapModel * @throws \Google\Service\Exception */ public function insert(SmartTapModel $postBody, $optParams = []) { $params = ['postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('insert', [$params], SmartTapModel::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Smarttap::class, 'Google_Service_Walletobjects_Resource_Smarttap');