ÿØÿà JPEG ÿþ;
Server IP : 68.65.120.201 / Your IP : 216.73.216.221 Web Server : LiteSpeed System : Linux server179.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64 User : taxhyuvu ( 2294) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/taxhyuvu/www/vendor/google/apiclient-services/src/AndroidPublisher/Resource/ |
Upload File : |
<?php /* * Copyright 2014 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations under * the License. */ namespace Google\Service\AndroidPublisher\Resource; use Google\Service\AndroidPublisher\InAppProduct; use Google\Service\AndroidPublisher\InappproductsListResponse; /** * The "inappproducts" collection of methods. * Typical usage is: * <code> * $androidpublisherService = new Google\Service\AndroidPublisher(...); * $inappproducts = $androidpublisherService->inappproducts; * </code> */ class Inappproducts extends \Google\Service\Resource { /** * Deletes an in-app product (i.e. a managed product or a subscriptions). * (inappproducts.delete) * * @param string $packageName Package name of the app. * @param string $sku Unique identifier for the in-app product. * @param array $optParams Optional parameters. */ public function delete($packageName, $sku, $optParams = []) { $params = ['packageName' => $packageName, 'sku' => $sku]; $params = array_merge($params, $optParams); return $this->call('delete', [$params]); } /** * Gets an in-app product, which can be a managed product or a subscription. * (inappproducts.get) * * @param string $packageName Package name of the app. * @param string $sku Unique identifier for the in-app product. * @param array $optParams Optional parameters. * @return InAppProduct */ public function get($packageName, $sku, $optParams = []) { $params = ['packageName' => $packageName, 'sku' => $sku]; $params = array_merge($params, $optParams); return $this->call('get', [$params], InAppProduct::class); } /** * Creates an in-app product (i.e. a managed product or a subscriptions). * (inappproducts.insert) * * @param string $packageName Package name of the app. * @param InAppProduct $postBody * @param array $optParams Optional parameters. * * @opt_param bool autoConvertMissingPrices If true the prices for all regions * targeted by the parent app that don't have a price specified for this in-app * product will be auto converted to the target currency based on the default * price. Defaults to false. * @return InAppProduct */ public function insert($packageName, InAppProduct $postBody, $optParams = []) { $params = ['packageName' => $packageName, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('insert', [$params], InAppProduct::class); } /** * Lists all in-app products - both managed products and subscriptions. If an * app has a large number of in-app products, the response may be paginated. In * this case the response field `tokenPagination.nextPageToken` will be set and * the caller should provide its value as a `token` request parameter to * retrieve the next page. (inappproducts.listInappproducts) * * @param string $packageName Package name of the app. * @param array $optParams Optional parameters. * * @opt_param string maxResults Deprecated and ignored. The page size is * determined by the server. * @opt_param string startIndex Deprecated and ignored. Set the `token` * parameter to rertieve the next page. * @opt_param string token Pagination token. If empty, list starts at the first * product. * @return InappproductsListResponse */ public function listInappproducts($packageName, $optParams = []) { $params = ['packageName' => $packageName]; $params = array_merge($params, $optParams); return $this->call('list', [$params], InappproductsListResponse::class); } /** * Patches an in-app product (i.e. a managed product or a subscriptions). * (inappproducts.patch) * * @param string $packageName Package name of the app. * @param string $sku Unique identifier for the in-app product. * @param InAppProduct $postBody * @param array $optParams Optional parameters. * * @opt_param bool autoConvertMissingPrices If true the prices for all regions * targeted by the parent app that don't have a price specified for this in-app * product will be auto converted to the target currency based on the default * price. Defaults to false. * @return InAppProduct */ public function patch($packageName, $sku, InAppProduct $postBody, $optParams = []) { $params = ['packageName' => $packageName, 'sku' => $sku, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('patch', [$params], InAppProduct::class); } /** * Updates an in-app product (i.e. a managed product or a subscriptions). * (inappproducts.update) * * @param string $packageName Package name of the app. * @param string $sku Unique identifier for the in-app product. * @param InAppProduct $postBody * @param array $optParams Optional parameters. * * @opt_param bool allowMissing If set to true, and the in-app product with the * given package_name and sku doesn't exist, the in-app product will be created. * @opt_param bool autoConvertMissingPrices If true the prices for all regions * targeted by the parent app that don't have a price specified for this in-app * product will be auto converted to the target currency based on the default * price. Defaults to false. * @return InAppProduct */ public function update($packageName, $sku, InAppProduct $postBody, $optParams = []) { $params = ['packageName' => $packageName, 'sku' => $sku, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('update', [$params], InAppProduct::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Inappproducts::class, 'Google_Service_AndroidPublisher_Resource_Inappproducts');