available. * @param OnboardBuyOnGoogleProgramRequest $postBody * @param array $optParams Optional parameters. * @throws \Google\Service\Exception */ public function onboard($merchantId, $regionCode, OnboardBuyOnGoogleProgramRequest $postBody, $optParams = []) { $params = ['merchantId' => $merchantId, 'regionCode' => $regionCode, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('onboard', [$params]); } /** * Updates the status of the BoG program for your Merchant Center account. * (buyongoogleprograms.patch) * * @param string $merchantId Required. The ID of the account. * @param string $regionCode Required. The program region code [ISO 3166-1 * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). Currently only US * is available. * @param BuyOnGoogleProgramStatus $postBody * @param array $optParams Optional parameters. * * @opt_param string updateMask The list of fields to update. If the update mask * is not provided, then all the fields set in buyOnGoogleProgramStatus will be * updated. Clearing fields is only possible if update mask is provided. * @return BuyOnGoogleProgramStatus * @throws \Google\Service\Exception */ public function patch($merchantId, $regionCode, BuyOnGoogleProgramStatus $postBody, $optParams = []) { $params = ['merchantId' => $merchantId, 'regionCode' => $regionCode, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('patch', [$params], BuyOnGoogleProgramStatus::class); } /** * Pauses the BoG program in your Merchant Center account. This method is only * available to selected merchants. (buyongoogleprograms.pause) * * @param string $merchantId Required. The ID of the account. * @param string $regionCode Required. The program region code [ISO 3166-1 * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). Currently only US * is available. * @param PauseBuyOnGoogleProgramRequest $postBody * @param array $optParams Optional parameters. * @throws \Google\Service\Exception */ public function pause($merchantId, $regionCode, PauseBuyOnGoogleProgramRequest $postBody, $optParams = []) { $params = ['merchantId' => $merchantId, 'regionCode' => $regionCode, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('pause', [$params]); } /** * Requests review and then activates the BoG program in your Merchant Center * account for the first time. Moves the program to the REVIEW_PENDING state. * This method is only available to selected merchants. * (buyongoogleprograms.requestreview) * * @param string $merchantId Required. The ID of the account. * @param string $regionCode Required. The program region code [ISO 3166-1 * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). Currently only US * is available. * @param RequestReviewBuyOnGoogleProgramRequest $postBody * @param array $optParams Optional parameters. * @throws \Google\Service\Exception */ public function requestreview($merchantId, $regionCode, RequestReviewBuyOnGoogleProgramRequest $postBody, $optParams = []) { $params = ['merchantId' => $merchantId, 'regionCode' => $regionCode, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('requestreview', [$params]); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Buyongoogleprograms::class, 'Google_Service_ShoppingContent_Resource_Buyongoogleprograms');