Commit inicial - WordPress Análisis de Precios Unitarios

- WordPress core y plugins
- Tema Twenty Twenty-Four configurado
- Plugin allow-unfiltered-html.php simplificado
- .gitignore configurado para excluir wp-config.php y uploads

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
root
2025-11-03 21:04:30 -06:00
commit a22573bf0b
24068 changed files with 4993111 additions and 0 deletions

View File

@@ -0,0 +1,74 @@
<?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\Site_Kit_Dependencies\Google\Service;
use Google\Site_Kit_Dependencies\Google\Client;
/**
* Service definition for SubscribewithGoogle (v1).
*
* <p>
* The Subscribe with Google Publication APIs enable a publisher to fetch
* information related to their SwG subscriptions, including the entitlement
* status of users who are requesting publisher content, the publications owned
* by the publisher, the entitlements plans of their SwG readers, the readers'
* profile information and purchase order information.</p>
*
* <p>
* For more information about this service, see the API
* <a href="https://developers.google.com/news/subscribe/guides/overview" target="_blank">Documentation</a>
* </p>
*
* @author Google, Inc.
*/
class SubscribewithGoogle extends \Google\Site_Kit_Dependencies\Google\Service
{
/** See and review your subscription information. */
const SUBSCRIBEWITHGOOGLE_PUBLICATIONS_ENTITLEMENTS_READONLY = "https://www.googleapis.com/auth/subscribewithgoogle.publications.entitlements.readonly";
/** See your primary Google Account email address. */
const USERINFO_EMAIL = "https://www.googleapis.com/auth/userinfo.email";
public $publications;
public $publications_entitlements;
public $publications_readers;
public $publications_readers_entitlementsplans;
public $publications_readers_orders;
public $rootUrlTemplate;
/**
* Constructs the internal representation of the SubscribewithGoogle service.
*
* @param Client|array $clientOrConfig The client used to deliver requests, or a
* config array to pass to a new Client instance.
* @param string $rootUrl The root URL used for requests to the service.
*/
public function __construct($clientOrConfig = [], $rootUrl = null)
{
parent::__construct($clientOrConfig);
$this->rootUrl = $rootUrl ?: 'https://subscribewithgoogle.googleapis.com/';
$this->rootUrlTemplate = $rootUrl ?: 'https://subscribewithgoogle.UNIVERSE_DOMAIN/';
$this->servicePath = '';
$this->batchPath = 'batch';
$this->version = 'v1';
$this->serviceName = 'subscribewithgoogle';
$this->publications = new \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Resource\Publications($this, $this->serviceName, 'publications', ['methods' => ['list' => ['path' => 'v1/publications', 'httpMethod' => 'GET', 'parameters' => ['filter' => ['location' => 'query', 'type' => 'string'], 'pageSize' => ['location' => 'query', 'type' => 'integer'], 'pageToken' => ['location' => 'query', 'type' => 'string']]]]]);
$this->publications_entitlements = new \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Resource\PublicationsEntitlements($this, $this->serviceName, 'entitlements', ['methods' => ['list' => ['path' => 'v1/publications/{publicationId}/entitlements', 'httpMethod' => 'GET', 'parameters' => ['publicationId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'pageSize' => ['location' => 'query', 'type' => 'integer'], 'pageToken' => ['location' => 'query', 'type' => 'string']]]]]);
$this->publications_readers = new \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Resource\PublicationsReaders($this, $this->serviceName, 'readers', ['methods' => ['get' => ['path' => 'v1/{+name}', 'httpMethod' => 'GET', 'parameters' => ['name' => ['location' => 'path', 'type' => 'string', 'required' => \true]]]]]);
$this->publications_readers_entitlementsplans = new \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Resource\PublicationsReadersEntitlementsplans($this, $this->serviceName, 'entitlementsplans', ['methods' => ['get' => ['path' => 'v1/{+name}', 'httpMethod' => 'GET', 'parameters' => ['name' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'list' => ['path' => 'v1/{+parent}/entitlementsplans', 'httpMethod' => 'GET', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'pageSize' => ['location' => 'query', 'type' => 'integer'], 'pageToken' => ['location' => 'query', 'type' => 'string']]]]]);
$this->publications_readers_orders = new \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Resource\PublicationsReadersOrders($this, $this->serviceName, 'orders', ['methods' => ['get' => ['path' => 'v1/{+name}', 'httpMethod' => 'GET', 'parameters' => ['name' => ['location' => 'path', 'type' => 'string', 'required' => \true]]]]]);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
\class_alias(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SubscribewithGoogle');

View File

@@ -0,0 +1,60 @@
<?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\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle;
class BusinessPredicates extends \Google\Site_Kit_Dependencies\Google\Model
{
/**
* @var bool
*/
public $canSell;
/**
* @var bool
*/
public $supportsSiteKit;
/**
* @param bool
*/
public function setCanSell($canSell)
{
$this->canSell = $canSell;
}
/**
* @return bool
*/
public function getCanSell()
{
return $this->canSell;
}
/**
* @param bool
*/
public function setSupportsSiteKit($supportsSiteKit)
{
$this->supportsSiteKit = $supportsSiteKit;
}
/**
* @return bool
*/
public function getSupportsSiteKit()
{
return $this->supportsSiteKit;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
\class_alias(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\BusinessPredicates::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SubscribewithGoogle_BusinessPredicates');

View File

@@ -0,0 +1,42 @@
<?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\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle;
class CanceledDetails extends \Google\Site_Kit_Dependencies\Google\Model
{
/**
* @var string
*/
public $cancelReason;
/**
* @param string
*/
public function setCancelReason($cancelReason)
{
$this->cancelReason = $cancelReason;
}
/**
* @return string
*/
public function getCancelReason()
{
return $this->cancelReason;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
\class_alias(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\CanceledDetails::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SubscribewithGoogle_CanceledDetails');

View File

@@ -0,0 +1,133 @@
<?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\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle;
class Entitlement extends \Google\Site_Kit_Dependencies\Google\Collection
{
protected $collection_key = 'products';
/**
* @var string
*/
public $name;
/**
* @var string[]
*/
public $products;
/**
* @var string
*/
public $readerId;
/**
* @var string
*/
public $source;
/**
* @var string
*/
public $subscriptionToken;
/**
* @var string
*/
public $userId;
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string[]
*/
public function setProducts($products)
{
$this->products = $products;
}
/**
* @return string[]
*/
public function getProducts()
{
return $this->products;
}
/**
* @param string
*/
public function setReaderId($readerId)
{
$this->readerId = $readerId;
}
/**
* @return string
*/
public function getReaderId()
{
return $this->readerId;
}
/**
* @param string
*/
public function setSource($source)
{
$this->source = $source;
}
/**
* @return string
*/
public function getSource()
{
return $this->source;
}
/**
* @param string
*/
public function setSubscriptionToken($subscriptionToken)
{
$this->subscriptionToken = $subscriptionToken;
}
/**
* @return string
*/
public function getSubscriptionToken()
{
return $this->subscriptionToken;
}
/**
* @param string
*/
public function setUserId($userId)
{
$this->userId = $userId;
}
/**
* @return string
*/
public function getUserId()
{
return $this->userId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
\class_alias(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Entitlement::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SubscribewithGoogle_Entitlement');

View File

@@ -0,0 +1,59 @@
<?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\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle;
class ListEntitlementsResponse extends \Google\Site_Kit_Dependencies\Google\Collection
{
protected $collection_key = 'entitlements';
protected $entitlementsType = \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Entitlement::class;
protected $entitlementsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param Entitlement[]
*/
public function setEntitlements($entitlements)
{
$this->entitlements = $entitlements;
}
/**
* @return Entitlement[]
*/
public function getEntitlements()
{
return $this->entitlements;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
\class_alias(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\ListEntitlementsResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SubscribewithGoogle_ListEntitlementsResponse');

View File

@@ -0,0 +1,59 @@
<?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\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle;
class ListPublicationsResponse extends \Google\Site_Kit_Dependencies\Google\Collection
{
protected $collection_key = 'publications';
/**
* @var string
*/
public $nextPageToken;
protected $publicationsType = \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Publication::class;
protected $publicationsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Publication[]
*/
public function setPublications($publications)
{
$this->publications = $publications;
}
/**
* @return Publication[]
*/
public function getPublications()
{
return $this->publications;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
\class_alias(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\ListPublicationsResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SubscribewithGoogle_ListPublicationsResponse');

View File

@@ -0,0 +1,59 @@
<?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\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle;
class ListUserEntitlementsPlansResponse extends \Google\Site_Kit_Dependencies\Google\Collection
{
protected $collection_key = 'userEntitlementsPlans';
/**
* @var string
*/
public $nextPageToken;
protected $userEntitlementsPlansType = \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\UserEntitlementsPlan::class;
protected $userEntitlementsPlansDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param UserEntitlementsPlan[]
*/
public function setUserEntitlementsPlans($userEntitlementsPlans)
{
$this->userEntitlementsPlans = $userEntitlementsPlans;
}
/**
* @return UserEntitlementsPlan[]
*/
public function getUserEntitlementsPlans()
{
return $this->userEntitlementsPlans;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
\class_alias(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\ListUserEntitlementsPlansResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SubscribewithGoogle_ListUserEntitlementsPlansResponse');

View File

@@ -0,0 +1,78 @@
<?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\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle;
class Money extends \Google\Site_Kit_Dependencies\Google\Model
{
/**
* @var string
*/
public $currencyCode;
/**
* @var int
*/
public $nanos;
/**
* @var string
*/
public $units;
/**
* @param string
*/
public function setCurrencyCode($currencyCode)
{
$this->currencyCode = $currencyCode;
}
/**
* @return string
*/
public function getCurrencyCode()
{
return $this->currencyCode;
}
/**
* @param int
*/
public function setNanos($nanos)
{
$this->nanos = $nanos;
}
/**
* @return int
*/
public function getNanos()
{
return $this->nanos;
}
/**
* @param string
*/
public function setUnits($units)
{
$this->units = $units;
}
/**
* @return string
*/
public function getUnits()
{
return $this->units;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
\class_alias(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Money::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SubscribewithGoogle_Money');

View File

@@ -0,0 +1,77 @@
<?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\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle;
class Order extends \Google\Site_Kit_Dependencies\Google\Collection
{
protected $collection_key = 'stateDetails';
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $orderId;
protected $stateDetailsType = \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\StateDetails::class;
protected $stateDetailsDataType = 'array';
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setOrderId($orderId)
{
$this->orderId = $orderId;
}
/**
* @return string
*/
public function getOrderId()
{
return $this->orderId;
}
/**
* @param StateDetails[]
*/
public function setStateDetails($stateDetails)
{
$this->stateDetails = $stateDetails;
}
/**
* @return StateDetails[]
*/
public function getStateDetails()
{
return $this->stateDetails;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
\class_alias(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Order::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SubscribewithGoogle_Order');

View File

@@ -0,0 +1,96 @@
<?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\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle;
class PaymentOptions extends \Google\Site_Kit_Dependencies\Google\Model
{
/**
* @var bool
*/
public $contributions;
/**
* @var bool
*/
public $noPayment;
/**
* @var bool
*/
public $subscriptions;
/**
* @var bool
*/
public $thankStickers;
/**
* @param bool
*/
public function setContributions($contributions)
{
$this->contributions = $contributions;
}
/**
* @return bool
*/
public function getContributions()
{
return $this->contributions;
}
/**
* @param bool
*/
public function setNoPayment($noPayment)
{
$this->noPayment = $noPayment;
}
/**
* @return bool
*/
public function getNoPayment()
{
return $this->noPayment;
}
/**
* @param bool
*/
public function setSubscriptions($subscriptions)
{
$this->subscriptions = $subscriptions;
}
/**
* @return bool
*/
public function getSubscriptions()
{
return $this->subscriptions;
}
/**
* @param bool
*/
public function setThankStickers($thankStickers)
{
$this->thankStickers = $thankStickers;
}
/**
* @return bool
*/
public function getThankStickers()
{
return $this->thankStickers;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
\class_alias(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\PaymentOptions::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SubscribewithGoogle_PaymentOptions');

View File

@@ -0,0 +1,97 @@
<?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\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle;
class PlanEntitlement extends \Google\Site_Kit_Dependencies\Google\Collection
{
protected $collection_key = 'productIds';
/**
* @var string
*/
public $expireTime;
/**
* @var string[]
*/
public $productIds;
/**
* @var string
*/
public $source;
/**
* @var string
*/
public $subscriptionToken;
/**
* @param string
*/
public function setExpireTime($expireTime)
{
$this->expireTime = $expireTime;
}
/**
* @return string
*/
public function getExpireTime()
{
return $this->expireTime;
}
/**
* @param string[]
*/
public function setProductIds($productIds)
{
$this->productIds = $productIds;
}
/**
* @return string[]
*/
public function getProductIds()
{
return $this->productIds;
}
/**
* @param string
*/
public function setSource($source)
{
$this->source = $source;
}
/**
* @return string
*/
public function getSource()
{
return $this->source;
}
/**
* @param string
*/
public function setSubscriptionToken($subscriptionToken)
{
$this->subscriptionToken = $subscriptionToken;
}
/**
* @return string
*/
public function getSubscriptionToken()
{
return $this->subscriptionToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
\class_alias(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\PlanEntitlement::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SubscribewithGoogle_PlanEntitlement');

View File

@@ -0,0 +1,42 @@
<?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\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle;
class Product extends \Google\Site_Kit_Dependencies\Google\Model
{
/**
* @var string
*/
public $name;
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
\class_alias(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Product::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SubscribewithGoogle_Product');

View File

@@ -0,0 +1,145 @@
<?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\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle;
class Publication extends \Google\Site_Kit_Dependencies\Google\Collection
{
protected $collection_key = 'verifiedDomains';
/**
* @var string
*/
public $displayName;
/**
* @var string
*/
public $onboardingState;
protected $paymentOptionsType = \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\PaymentOptions::class;
protected $paymentOptionsDataType = '';
protected $productsType = \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Product::class;
protected $productsDataType = 'array';
/**
* @var string
*/
public $publicationId;
protected $publicationPredicatesType = \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\PublicationPredicates::class;
protected $publicationPredicatesDataType = '';
/**
* @var string[]
*/
public $verifiedDomains;
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param string
*/
public function setOnboardingState($onboardingState)
{
$this->onboardingState = $onboardingState;
}
/**
* @return string
*/
public function getOnboardingState()
{
return $this->onboardingState;
}
/**
* @param PaymentOptions
*/
public function setPaymentOptions(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\PaymentOptions $paymentOptions)
{
$this->paymentOptions = $paymentOptions;
}
/**
* @return PaymentOptions
*/
public function getPaymentOptions()
{
return $this->paymentOptions;
}
/**
* @param Product[]
*/
public function setProducts($products)
{
$this->products = $products;
}
/**
* @return Product[]
*/
public function getProducts()
{
return $this->products;
}
/**
* @param string
*/
public function setPublicationId($publicationId)
{
$this->publicationId = $publicationId;
}
/**
* @return string
*/
public function getPublicationId()
{
return $this->publicationId;
}
/**
* @param PublicationPredicates
*/
public function setPublicationPredicates(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\PublicationPredicates $publicationPredicates)
{
$this->publicationPredicates = $publicationPredicates;
}
/**
* @return PublicationPredicates
*/
public function getPublicationPredicates()
{
return $this->publicationPredicates;
}
/**
* @param string[]
*/
public function setVerifiedDomains($verifiedDomains)
{
$this->verifiedDomains = $verifiedDomains;
}
/**
* @return string[]
*/
public function getVerifiedDomains()
{
return $this->verifiedDomains;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
\class_alias(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Publication::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SubscribewithGoogle_Publication');

View File

@@ -0,0 +1,40 @@
<?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\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle;
class PublicationPredicates extends \Google\Site_Kit_Dependencies\Google\Model
{
protected $businessPredicatesType = \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\BusinessPredicates::class;
protected $businessPredicatesDataType = '';
/**
* @param BusinessPredicates
*/
public function setBusinessPredicates(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\BusinessPredicates $businessPredicates)
{
$this->businessPredicates = $businessPredicates;
}
/**
* @return BusinessPredicates
*/
public function getBusinessPredicates()
{
return $this->businessPredicates;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
\class_alias(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\PublicationPredicates::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SubscribewithGoogle_PublicationPredicates');

View File

@@ -0,0 +1,58 @@
<?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\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle;
class PurchaseInfo extends \Google\Site_Kit_Dependencies\Google\Model
{
/**
* @var string
*/
public $latestOrderId;
protected $totalAmountType = \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Money::class;
protected $totalAmountDataType = '';
/**
* @param string
*/
public function setLatestOrderId($latestOrderId)
{
$this->latestOrderId = $latestOrderId;
}
/**
* @return string
*/
public function getLatestOrderId()
{
return $this->latestOrderId;
}
/**
* @param Money
*/
public function setTotalAmount(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Money $totalAmount)
{
$this->totalAmount = $totalAmount;
}
/**
* @return Money
*/
public function getTotalAmount()
{
return $this->totalAmount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
\class_alias(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\PurchaseInfo::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SubscribewithGoogle_PurchaseInfo');

View File

@@ -0,0 +1,150 @@
<?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\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle;
class Reader extends \Google\Site_Kit_Dependencies\Google\Model
{
/**
* @var string
*/
public $displayName;
/**
* @var string
*/
public $emailAddress;
/**
* @var string
*/
public $familyName;
/**
* @var string
*/
public $givenName;
/**
* @var bool
*/
public $isReaderInfoAvailable;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $readerId;
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param string
*/
public function setEmailAddress($emailAddress)
{
$this->emailAddress = $emailAddress;
}
/**
* @return string
*/
public function getEmailAddress()
{
return $this->emailAddress;
}
/**
* @param string
*/
public function setFamilyName($familyName)
{
$this->familyName = $familyName;
}
/**
* @return string
*/
public function getFamilyName()
{
return $this->familyName;
}
/**
* @param string
*/
public function setGivenName($givenName)
{
$this->givenName = $givenName;
}
/**
* @return string
*/
public function getGivenName()
{
return $this->givenName;
}
/**
* @param bool
*/
public function setIsReaderInfoAvailable($isReaderInfoAvailable)
{
$this->isReaderInfoAvailable = $isReaderInfoAvailable;
}
/**
* @return bool
*/
public function getIsReaderInfoAvailable()
{
return $this->isReaderInfoAvailable;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setReaderId($readerId)
{
$this->readerId = $readerId;
}
/**
* @return string
*/
public function getReaderId()
{
return $this->readerId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
\class_alias(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Reader::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SubscribewithGoogle_Reader');

View File

@@ -0,0 +1,60 @@
<?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\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle;
class RecurrenceDuration extends \Google\Site_Kit_Dependencies\Google\Model
{
/**
* @var int
*/
public $count;
/**
* @var string
*/
public $unit;
/**
* @param int
*/
public function setCount($count)
{
$this->count = $count;
}
/**
* @return int
*/
public function getCount()
{
return $this->count;
}
/**
* @param string
*/
public function setUnit($unit)
{
$this->unit = $unit;
}
/**
* @return string
*/
public function getUnit()
{
return $this->unit;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
\class_alias(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\RecurrenceDuration::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SubscribewithGoogle_RecurrenceDuration');

View File

@@ -0,0 +1,92 @@
<?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\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle;
class RecurrenceTerms extends \Google\Site_Kit_Dependencies\Google\Model
{
/**
* @var string
*/
public $accountOnHoldMillis;
protected $freeTrialPeriodType = \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\RecurrenceDuration::class;
protected $freeTrialPeriodDataType = '';
/**
* @var string
*/
public $gracePeriodMillis;
protected $recurrencePeriodType = \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\RecurrenceDuration::class;
protected $recurrencePeriodDataType = '';
/**
* @param string
*/
public function setAccountOnHoldMillis($accountOnHoldMillis)
{
$this->accountOnHoldMillis = $accountOnHoldMillis;
}
/**
* @return string
*/
public function getAccountOnHoldMillis()
{
return $this->accountOnHoldMillis;
}
/**
* @param RecurrenceDuration
*/
public function setFreeTrialPeriod(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\RecurrenceDuration $freeTrialPeriod)
{
$this->freeTrialPeriod = $freeTrialPeriod;
}
/**
* @return RecurrenceDuration
*/
public function getFreeTrialPeriod()
{
return $this->freeTrialPeriod;
}
/**
* @param string
*/
public function setGracePeriodMillis($gracePeriodMillis)
{
$this->gracePeriodMillis = $gracePeriodMillis;
}
/**
* @return string
*/
public function getGracePeriodMillis()
{
return $this->gracePeriodMillis;
}
/**
* @param RecurrenceDuration
*/
public function setRecurrencePeriod(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\RecurrenceDuration $recurrencePeriod)
{
$this->recurrencePeriod = $recurrencePeriod;
}
/**
* @return RecurrenceDuration
*/
public function getRecurrencePeriod()
{
return $this->recurrencePeriod;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
\class_alias(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\RecurrenceTerms::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SubscribewithGoogle_RecurrenceTerms');

View File

@@ -0,0 +1,124 @@
<?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\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle;
class RecurringPlanDetails extends \Google\Site_Kit_Dependencies\Google\Model
{
protected $canceledDetailsType = \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\CanceledDetails::class;
protected $canceledDetailsDataType = '';
protected $recurrenceTermsType = \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\RecurrenceTerms::class;
protected $recurrenceTermsDataType = '';
/**
* @var string
*/
public $recurringPlanState;
protected $suspendedDetailsType = \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\SuspendedDetails::class;
protected $suspendedDetailsDataType = '';
/**
* @var string
*/
public $updateTime;
protected $waitingToRecurDetailsType = \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\WaitingToRecurDetails::class;
protected $waitingToRecurDetailsDataType = '';
/**
* @param CanceledDetails
*/
public function setCanceledDetails(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\CanceledDetails $canceledDetails)
{
$this->canceledDetails = $canceledDetails;
}
/**
* @return CanceledDetails
*/
public function getCanceledDetails()
{
return $this->canceledDetails;
}
/**
* @param RecurrenceTerms
*/
public function setRecurrenceTerms(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\RecurrenceTerms $recurrenceTerms)
{
$this->recurrenceTerms = $recurrenceTerms;
}
/**
* @return RecurrenceTerms
*/
public function getRecurrenceTerms()
{
return $this->recurrenceTerms;
}
/**
* @param string
*/
public function setRecurringPlanState($recurringPlanState)
{
$this->recurringPlanState = $recurringPlanState;
}
/**
* @return string
*/
public function getRecurringPlanState()
{
return $this->recurringPlanState;
}
/**
* @param SuspendedDetails
*/
public function setSuspendedDetails(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\SuspendedDetails $suspendedDetails)
{
$this->suspendedDetails = $suspendedDetails;
}
/**
* @return SuspendedDetails
*/
public function getSuspendedDetails()
{
return $this->suspendedDetails;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* @param WaitingToRecurDetails
*/
public function setWaitingToRecurDetails(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\WaitingToRecurDetails $waitingToRecurDetails)
{
$this->waitingToRecurDetails = $waitingToRecurDetails;
}
/**
* @return WaitingToRecurDetails
*/
public function getWaitingToRecurDetails()
{
return $this->waitingToRecurDetails;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
\class_alias(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\RecurringPlanDetails::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SubscribewithGoogle_RecurringPlanDetails');

View File

@@ -0,0 +1,57 @@
<?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\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Resource;
use Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\ListPublicationsResponse;
/**
* The "publications" collection of methods.
* Typical usage is:
* <code>
* $subscribewithgoogleService = new Google\Service\SubscribewithGoogle(...);
* $publications = $subscribewithgoogleService->publications;
* </code>
*/
class Publications extends \Google\Site_Kit_Dependencies\Google\Service\Resource
{
/**
* List all publications based on the filter, only the publications owned by the
* current user will be returned (publications.listPublications)
*
* @param array $optParams Optional parameters.
*
* @opt_param string filter Filters the publications list. e.g.
* verified_domains: "xyz.com" Grammar defined as https://google.aip.dev/160.
* @opt_param int pageSize LINT.IfChange The maximum number of publications to
* return, the service may return fewer than this value. if unspecified, at most
* 100 publications will be returned. The maximum value is 1000; values above
* 1000 will be coerced to 1000. LINT.ThenChange(//depot/google3/java/com/google
* /subscribewithgoogle/client/opservice/ListPublicationsPromiseGraph.java)
* @opt_param string pageToken A token identifying a page of results the server
* should return.
* @return ListPublicationsResponse
* @throws \Google\Service\Exception
*/
public function listPublications($optParams = [])
{
$params = [];
$params = \array_merge($params, $optParams);
return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\ListPublicationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
\class_alias(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Resource\Publications::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SubscribewithGoogle_Resource_Publications');

View File

@@ -0,0 +1,56 @@
<?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\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Resource;
use Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\ListEntitlementsResponse;
/**
* The "entitlements" collection of methods.
* Typical usage is:
* <code>
* $subscribewithgoogleService = new Google\Service\SubscribewithGoogle(...);
* $entitlements = $subscribewithgoogleService->publications_entitlements;
* </code>
*/
class PublicationsEntitlements extends \Google\Site_Kit_Dependencies\Google\Service\Resource
{
/**
* Gets a set of entitlements for the user for this publication. The publication
* can fetch entitlements on behalf of a user authenticated via OAuth2.
* (entitlements.listPublicationsEntitlements)
*
* @param string $publicationId Mapped to the URL.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Requested page size. If unspecified, server will pick
* an appropriate default.
* @opt_param string pageToken A token identifying a page of results the server
* should return. Typically, this is the value of
* ListEntitlementsResponse.next_page_token returned from the previous call to
* `ListEntitlements` method.
* @return ListEntitlementsResponse
* @throws \Google\Service\Exception
*/
public function listPublicationsEntitlements($publicationId, $optParams = [])
{
$params = ['publicationId' => $publicationId];
$params = \array_merge($params, $optParams);
return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\ListEntitlementsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
\class_alias(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Resource\PublicationsEntitlements::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SubscribewithGoogle_Resource_PublicationsEntitlements');

View File

@@ -0,0 +1,48 @@
<?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\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Resource;
use Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Reader;
/**
* The "readers" collection of methods.
* Typical usage is:
* <code>
* $subscribewithgoogleService = new Google\Service\SubscribewithGoogle(...);
* $readers = $subscribewithgoogleService->publications_readers;
* </code>
*/
class PublicationsReaders extends \Google\Site_Kit_Dependencies\Google\Service\Resource
{
/**
* Gets Reader's Profile information. (readers.get)
*
* @param string $name Required. The resource name of the Reader. Format:
* publications/{publication}/readers/{reader}
* @param array $optParams Optional parameters.
* @return Reader
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = \array_merge($params, $optParams);
return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Reader::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
\class_alias(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Resource\PublicationsReaders::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SubscribewithGoogle_Resource_PublicationsReaders');

View File

@@ -0,0 +1,75 @@
<?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\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Resource;
use Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\ListUserEntitlementsPlansResponse;
use Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\UserEntitlementsPlan;
/**
* The "entitlementsplans" collection of methods.
* Typical usage is:
* <code>
* $subscribewithgoogleService = new Google\Service\SubscribewithGoogle(...);
* $entitlementsplans = $subscribewithgoogleService->publications_readers_entitlementsplans;
* </code>
*/
class PublicationsReadersEntitlementsplans extends \Google\Site_Kit_Dependencies\Google\Service\Resource
{
/**
* Gets the entitlements plan identitfied by plan id for a given user under the
* given publication. (entitlementsplans.get)
*
* @param string $name Required. The resource name of the UserEntitlementsPlan.
* Format: publications/{publication}/readers/{reader}/entitlementsplans/{plan}
* @param array $optParams Optional parameters.
* @return UserEntitlementsPlan
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = \array_merge($params, $optParams);
return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\UserEntitlementsPlan::class);
}
/**
* Lists all the entitlements plans for a given user under a given publication.
* (entitlementsplans.listPublicationsReadersEntitlementsplans)
*
* @param string $parent Required. The parent, which owns this collection of
* UserEntitlementsPlans. Format: publications/{publication}/readers/{reader}
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of UserEntitlementsPlans to
* return. The service may return fewer than this value. If unspecified, at most
* 100 UserEntitlementsPlans will be returned. The maximum value is 1000; values
* above 1000 will be coerced to 1000.
* @opt_param string pageToken A token identifying a page of results the server
* should return. Typically, this is the value of
* ListUserEntitlementsPlansResponse.next_page_token returned from the previous
* call to `ListUserEntitlementsPlans` method.
* @return ListUserEntitlementsPlansResponse
* @throws \Google\Service\Exception
*/
public function listPublicationsReadersEntitlementsplans($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = \array_merge($params, $optParams);
return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\ListUserEntitlementsPlansResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
\class_alias(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Resource\PublicationsReadersEntitlementsplans::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SubscribewithGoogle_Resource_PublicationsReadersEntitlementsplans');

View File

@@ -0,0 +1,48 @@
<?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\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Resource;
use Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Order;
/**
* The "orders" collection of methods.
* Typical usage is:
* <code>
* $subscribewithgoogleService = new Google\Service\SubscribewithGoogle(...);
* $orders = $subscribewithgoogleService->publications_readers_orders;
* </code>
*/
class PublicationsReadersOrders extends \Google\Site_Kit_Dependencies\Google\Service\Resource
{
/**
* Gets order's information. (orders.get)
*
* @param string $name Required. The resource name of the Order. Format:
* publications/{publication}/readers/{reader}/orders/{order}
* @param array $optParams Optional parameters.
* @return Order
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = \array_merge($params, $optParams);
return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Order::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
\class_alias(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Resource\PublicationsReadersOrders::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SubscribewithGoogle_Resource_PublicationsReadersOrders');

View File

@@ -0,0 +1,76 @@
<?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\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle;
class StateDetails extends \Google\Site_Kit_Dependencies\Google\Model
{
protected $amountType = \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Money::class;
protected $amountDataType = '';
/**
* @var string
*/
public $orderState;
/**
* @var string
*/
public $time;
/**
* @param Money
*/
public function setAmount(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Money $amount)
{
$this->amount = $amount;
}
/**
* @return Money
*/
public function getAmount()
{
return $this->amount;
}
/**
* @param string
*/
public function setOrderState($orderState)
{
$this->orderState = $orderState;
}
/**
* @return string
*/
public function getOrderState()
{
return $this->orderState;
}
/**
* @param string
*/
public function setTime($time)
{
$this->time = $time;
}
/**
* @return string
*/
public function getTime()
{
return $this->time;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
\class_alias(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\StateDetails::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SubscribewithGoogle_StateDetails');

View File

@@ -0,0 +1,24 @@
<?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\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle;
class SuspendedDetails extends \Google\Site_Kit_Dependencies\Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
\class_alias(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\SuspendedDetails::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SubscribewithGoogle_SuspendedDetails');

View File

@@ -0,0 +1,181 @@
<?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\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle;
class UserEntitlementsPlan extends \Google\Site_Kit_Dependencies\Google\Collection
{
protected $collection_key = 'planEntitlements';
/**
* @var string
*/
public $name;
protected $planEntitlementsType = \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\PlanEntitlement::class;
protected $planEntitlementsDataType = 'array';
/**
* @var string
*/
public $planId;
/**
* @var string
*/
public $planType;
/**
* @var string
*/
public $publicationId;
protected $purchaseInfoType = \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\PurchaseInfo::class;
protected $purchaseInfoDataType = '';
/**
* @var string
*/
public $readerId;
protected $recurringPlanDetailsType = \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\RecurringPlanDetails::class;
protected $recurringPlanDetailsDataType = '';
/**
* @var string
*/
public $userId;
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param PlanEntitlement[]
*/
public function setPlanEntitlements($planEntitlements)
{
$this->planEntitlements = $planEntitlements;
}
/**
* @return PlanEntitlement[]
*/
public function getPlanEntitlements()
{
return $this->planEntitlements;
}
/**
* @param string
*/
public function setPlanId($planId)
{
$this->planId = $planId;
}
/**
* @return string
*/
public function getPlanId()
{
return $this->planId;
}
/**
* @param string
*/
public function setPlanType($planType)
{
$this->planType = $planType;
}
/**
* @return string
*/
public function getPlanType()
{
return $this->planType;
}
/**
* @param string
*/
public function setPublicationId($publicationId)
{
$this->publicationId = $publicationId;
}
/**
* @return string
*/
public function getPublicationId()
{
return $this->publicationId;
}
/**
* @param PurchaseInfo
*/
public function setPurchaseInfo(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\PurchaseInfo $purchaseInfo)
{
$this->purchaseInfo = $purchaseInfo;
}
/**
* @return PurchaseInfo
*/
public function getPurchaseInfo()
{
return $this->purchaseInfo;
}
/**
* @param string
*/
public function setReaderId($readerId)
{
$this->readerId = $readerId;
}
/**
* @return string
*/
public function getReaderId()
{
return $this->readerId;
}
/**
* @param RecurringPlanDetails
*/
public function setRecurringPlanDetails(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\RecurringPlanDetails $recurringPlanDetails)
{
$this->recurringPlanDetails = $recurringPlanDetails;
}
/**
* @return RecurringPlanDetails
*/
public function getRecurringPlanDetails()
{
return $this->recurringPlanDetails;
}
/**
* @param string
*/
public function setUserId($userId)
{
$this->userId = $userId;
}
/**
* @return string
*/
public function getUserId()
{
return $this->userId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
\class_alias(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\UserEntitlementsPlan::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SubscribewithGoogle_UserEntitlementsPlan');

View File

@@ -0,0 +1,60 @@
<?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\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle;
class WaitingToRecurDetails extends \Google\Site_Kit_Dependencies\Google\Model
{
/**
* @var bool
*/
public $freeTrial;
/**
* @var string
*/
public $nextRecurrenceTime;
/**
* @param bool
*/
public function setFreeTrial($freeTrial)
{
$this->freeTrial = $freeTrial;
}
/**
* @return bool
*/
public function getFreeTrial()
{
return $this->freeTrial;
}
/**
* @param string
*/
public function setNextRecurrenceTime($nextRecurrenceTime)
{
$this->nextRecurrenceTime = $nextRecurrenceTime;
}
/**
* @return string
*/
public function getNextRecurrenceTime()
{
return $this->nextRecurrenceTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
\class_alias(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\WaitingToRecurDetails::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SubscribewithGoogle_WaitingToRecurDetails');