Initial commit

This commit is contained in:
Local Administrator
2025-04-18 10:32:42 +02:00
commit b83134aca3
29643 changed files with 3045897 additions and 0 deletions

View File

@@ -0,0 +1,62 @@
<?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\PaymentsResellerSubscription;
class GoogleCloudPaymentsResellerSubscriptionV1Amount extends \Google\Model
{
/**
* @var string
*/
public $amountMicros;
/**
* @var string
*/
public $currencyCode;
/**
* @param string
*/
public function setAmountMicros($amountMicros)
{
$this->amountMicros = $amountMicros;
}
/**
* @return string
*/
public function getAmountMicros()
{
return $this->amountMicros;
}
/**
* @param string
*/
public function setCurrencyCode($currencyCode)
{
$this->currencyCode = $currencyCode;
}
/**
* @return string
*/
public function getCurrencyCode()
{
return $this->currencyCode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPaymentsResellerSubscriptionV1Amount::class, 'Google_Service_PaymentsResellerSubscription_GoogleCloudPaymentsResellerSubscriptionV1Amount');

View File

@@ -0,0 +1,62 @@
<?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\PaymentsResellerSubscription;
class GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest extends \Google\Model
{
/**
* @var bool
*/
public $cancelImmediately;
/**
* @var string
*/
public $cancellationReason;
/**
* @param bool
*/
public function setCancelImmediately($cancelImmediately)
{
$this->cancelImmediately = $cancelImmediately;
}
/**
* @return bool
*/
public function getCancelImmediately()
{
return $this->cancelImmediately;
}
/**
* @param string
*/
public function setCancellationReason($cancellationReason)
{
$this->cancellationReason = $cancellationReason;
}
/**
* @return string
*/
public function getCancellationReason()
{
return $this->cancellationReason;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest::class, 'Google_Service_PaymentsResellerSubscription_GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest');

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\Service\PaymentsResellerSubscription;
class GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionResponse extends \Google\Model
{
protected $subscriptionType = GoogleCloudPaymentsResellerSubscriptionV1Subscription::class;
protected $subscriptionDataType = '';
/**
* @param GoogleCloudPaymentsResellerSubscriptionV1Subscription
*/
public function setSubscription(GoogleCloudPaymentsResellerSubscriptionV1Subscription $subscription)
{
$this->subscription = $subscription;
}
/**
* @return GoogleCloudPaymentsResellerSubscriptionV1Subscription
*/
public function getSubscription()
{
return $this->subscription;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionResponse::class, 'Google_Service_PaymentsResellerSubscription_GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionResponse');

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\Service\PaymentsResellerSubscription;
class GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent extends \Google\Model
{
/**
* @var string
*/
public $parent;
protected $subscriptionType = GoogleCloudPaymentsResellerSubscriptionV1Subscription::class;
protected $subscriptionDataType = '';
/**
* @var string
*/
public $subscriptionId;
/**
* @param string
*/
public function setParent($parent)
{
$this->parent = $parent;
}
/**
* @return string
*/
public function getParent()
{
return $this->parent;
}
/**
* @param GoogleCloudPaymentsResellerSubscriptionV1Subscription
*/
public function setSubscription(GoogleCloudPaymentsResellerSubscriptionV1Subscription $subscription)
{
$this->subscription = $subscription;
}
/**
* @return GoogleCloudPaymentsResellerSubscriptionV1Subscription
*/
public function getSubscription()
{
return $this->subscription;
}
/**
* @param string
*/
public function setSubscriptionId($subscriptionId)
{
$this->subscriptionId = $subscriptionId;
}
/**
* @return string
*/
public function getSubscriptionId()
{
return $this->subscriptionId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent::class, 'Google_Service_PaymentsResellerSubscription_GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent');

View File

@@ -0,0 +1,62 @@
<?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\PaymentsResellerSubscription;
class GoogleCloudPaymentsResellerSubscriptionV1Duration extends \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(GoogleCloudPaymentsResellerSubscriptionV1Duration::class, 'Google_Service_PaymentsResellerSubscription_GoogleCloudPaymentsResellerSubscriptionV1Duration');

View File

@@ -0,0 +1,44 @@
<?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\PaymentsResellerSubscription;
class GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent extends \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(GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent::class, 'Google_Service_PaymentsResellerSubscription_GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent');

View File

@@ -0,0 +1,43 @@
<?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\PaymentsResellerSubscription;
class GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequest extends \Google\Collection
{
protected $collection_key = 'lineItemEntitlementDetails';
protected $lineItemEntitlementDetailsType = GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequestLineItemEntitlementDetails::class;
protected $lineItemEntitlementDetailsDataType = 'array';
/**
* @param GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequestLineItemEntitlementDetails[]
*/
public function setLineItemEntitlementDetails($lineItemEntitlementDetails)
{
$this->lineItemEntitlementDetails = $lineItemEntitlementDetails;
}
/**
* @return GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequestLineItemEntitlementDetails[]
*/
public function getLineItemEntitlementDetails()
{
return $this->lineItemEntitlementDetails;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequest::class, 'Google_Service_PaymentsResellerSubscription_GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequest');

View File

@@ -0,0 +1,63 @@
<?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\PaymentsResellerSubscription;
class GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequestLineItemEntitlementDetails extends \Google\Collection
{
protected $collection_key = 'products';
/**
* @var int
*/
public $lineItemIndex;
/**
* @var string[]
*/
public $products;
/**
* @param int
*/
public function setLineItemIndex($lineItemIndex)
{
$this->lineItemIndex = $lineItemIndex;
}
/**
* @return int
*/
public function getLineItemIndex()
{
return $this->lineItemIndex;
}
/**
* @param string[]
*/
public function setProducts($products)
{
$this->products = $products;
}
/**
* @return string[]
*/
public function getProducts()
{
return $this->products;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequestLineItemEntitlementDetails::class, 'Google_Service_PaymentsResellerSubscription_GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequestLineItemEntitlementDetails');

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\Service\PaymentsResellerSubscription;
class GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionResponse extends \Google\Model
{
protected $subscriptionType = GoogleCloudPaymentsResellerSubscriptionV1Subscription::class;
protected $subscriptionDataType = '';
/**
* @param GoogleCloudPaymentsResellerSubscriptionV1Subscription
*/
public function setSubscription(GoogleCloudPaymentsResellerSubscriptionV1Subscription $subscription)
{
$this->subscription = $subscription;
}
/**
* @return GoogleCloudPaymentsResellerSubscriptionV1Subscription
*/
public function getSubscription()
{
return $this->subscription;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionResponse::class, 'Google_Service_PaymentsResellerSubscription_GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionResponse');

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\Service\PaymentsResellerSubscription;
class GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionRequest extends \Google\Model
{
protected $extensionType = GoogleCloudPaymentsResellerSubscriptionV1Extension::class;
protected $extensionDataType = '';
/**
* @var string
*/
public $requestId;
/**
* @param GoogleCloudPaymentsResellerSubscriptionV1Extension
*/
public function setExtension(GoogleCloudPaymentsResellerSubscriptionV1Extension $extension)
{
$this->extension = $extension;
}
/**
* @return GoogleCloudPaymentsResellerSubscriptionV1Extension
*/
public function getExtension()
{
return $this->extension;
}
/**
* @param string
*/
public function setRequestId($requestId)
{
$this->requestId = $requestId;
}
/**
* @return string
*/
public function getRequestId()
{
return $this->requestId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionRequest::class, 'Google_Service_PaymentsResellerSubscription_GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionRequest');

View File

@@ -0,0 +1,80 @@
<?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\PaymentsResellerSubscription;
class GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionResponse extends \Google\Model
{
/**
* @var string
*/
public $cycleEndTime;
/**
* @var string
*/
public $freeTrialEndTime;
/**
* @var string
*/
public $renewalTime;
/**
* @param string
*/
public function setCycleEndTime($cycleEndTime)
{
$this->cycleEndTime = $cycleEndTime;
}
/**
* @return string
*/
public function getCycleEndTime()
{
return $this->cycleEndTime;
}
/**
* @param string
*/
public function setFreeTrialEndTime($freeTrialEndTime)
{
$this->freeTrialEndTime = $freeTrialEndTime;
}
/**
* @return string
*/
public function getFreeTrialEndTime()
{
return $this->freeTrialEndTime;
}
/**
* @param string
*/
public function setRenewalTime($renewalTime)
{
$this->renewalTime = $renewalTime;
}
/**
* @return string
*/
public function getRenewalTime()
{
return $this->renewalTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionResponse::class, 'Google_Service_PaymentsResellerSubscription_GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionResponse');

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\Service\PaymentsResellerSubscription;
class GoogleCloudPaymentsResellerSubscriptionV1Extension extends \Google\Model
{
protected $durationType = GoogleCloudPaymentsResellerSubscriptionV1Duration::class;
protected $durationDataType = '';
/**
* @var string
*/
public $partnerUserToken;
/**
* @param GoogleCloudPaymentsResellerSubscriptionV1Duration
*/
public function setDuration(GoogleCloudPaymentsResellerSubscriptionV1Duration $duration)
{
$this->duration = $duration;
}
/**
* @return GoogleCloudPaymentsResellerSubscriptionV1Duration
*/
public function getDuration()
{
return $this->duration;
}
/**
* @param string
*/
public function setPartnerUserToken($partnerUserToken)
{
$this->partnerUserToken = $partnerUserToken;
}
/**
* @return string
*/
public function getPartnerUserToken()
{
return $this->partnerUserToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPaymentsResellerSubscriptionV1Extension::class, 'Google_Service_PaymentsResellerSubscription_GoogleCloudPaymentsResellerSubscriptionV1Extension');

View File

@@ -0,0 +1,80 @@
<?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\PaymentsResellerSubscription;
class GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsRequest extends \Google\Model
{
/**
* @var string
*/
public $filter;
/**
* @var int
*/
public $pageSize;
/**
* @var string
*/
public $pageToken;
/**
* @param string
*/
public function setFilter($filter)
{
$this->filter = $filter;
}
/**
* @return string
*/
public function getFilter()
{
return $this->filter;
}
/**
* @param int
*/
public function setPageSize($pageSize)
{
$this->pageSize = $pageSize;
}
/**
* @return int
*/
public function getPageSize()
{
return $this->pageSize;
}
/**
* @param string
*/
public function setPageToken($pageToken)
{
$this->pageToken = $pageToken;
}
/**
* @return string
*/
public function getPageToken()
{
return $this->pageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsRequest::class, 'Google_Service_PaymentsResellerSubscription_GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsRequest');

View File

@@ -0,0 +1,61 @@
<?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\PaymentsResellerSubscription;
class GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsResponse extends \Google\Collection
{
protected $collection_key = 'promotions';
/**
* @var string
*/
public $nextPageToken;
protected $promotionsType = GoogleCloudPaymentsResellerSubscriptionV1Promotion::class;
protected $promotionsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param GoogleCloudPaymentsResellerSubscriptionV1Promotion[]
*/
public function setPromotions($promotions)
{
$this->promotions = $promotions;
}
/**
* @return GoogleCloudPaymentsResellerSubscriptionV1Promotion[]
*/
public function getPromotions()
{
return $this->promotions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsResponse::class, 'Google_Service_PaymentsResellerSubscription_GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsResponse');

View File

@@ -0,0 +1,44 @@
<?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\PaymentsResellerSubscription;
class GoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails extends \Google\Model
{
/**
* @var string
*/
public $billingCycleCountLimit;
/**
* @param string
*/
public function setBillingCycleCountLimit($billingCycleCountLimit)
{
$this->billingCycleCountLimit = $billingCycleCountLimit;
}
/**
* @return string
*/
public function getBillingCycleCountLimit()
{
return $this->billingCycleCountLimit;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails::class, 'Google_Service_PaymentsResellerSubscription_GoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails');

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\Service\PaymentsResellerSubscription;
class GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest extends \Google\Model
{
protected $intentPayloadType = GoogleCloudPaymentsResellerSubscriptionV1IntentPayload::class;
protected $intentPayloadDataType = '';
/**
* @param GoogleCloudPaymentsResellerSubscriptionV1IntentPayload
*/
public function setIntentPayload(GoogleCloudPaymentsResellerSubscriptionV1IntentPayload $intentPayload)
{
$this->intentPayload = $intentPayload;
}
/**
* @return GoogleCloudPaymentsResellerSubscriptionV1IntentPayload
*/
public function getIntentPayload()
{
return $this->intentPayload;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest::class, 'Google_Service_PaymentsResellerSubscription_GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest');

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\Service\PaymentsResellerSubscription;
class GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse extends \Google\Model
{
protected $userSessionType = GoogleCloudPaymentsResellerSubscriptionV1UserSession::class;
protected $userSessionDataType = '';
/**
* @param GoogleCloudPaymentsResellerSubscriptionV1UserSession
*/
public function setUserSession(GoogleCloudPaymentsResellerSubscriptionV1UserSession $userSession)
{
$this->userSession = $userSession;
}
/**
* @return GoogleCloudPaymentsResellerSubscriptionV1UserSession
*/
public function getUserSession()
{
return $this->userSession;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse::class, 'Google_Service_PaymentsResellerSubscription_GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse');

View File

@@ -0,0 +1,99 @@
<?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\PaymentsResellerSubscription;
class GoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload extends \Google\Collection
{
protected $collection_key = 'campaigns';
/**
* @var string[]
*/
public $campaigns;
/**
* @var string
*/
public $offering;
/**
* @var string
*/
public $salesChannel;
/**
* @var string
*/
public $storeId;
/**
* @param string[]
*/
public function setCampaigns($campaigns)
{
$this->campaigns = $campaigns;
}
/**
* @return string[]
*/
public function getCampaigns()
{
return $this->campaigns;
}
/**
* @param string
*/
public function setOffering($offering)
{
$this->offering = $offering;
}
/**
* @return string
*/
public function getOffering()
{
return $this->offering;
}
/**
* @param string
*/
public function setSalesChannel($salesChannel)
{
$this->salesChannel = $salesChannel;
}
/**
* @return string
*/
public function getSalesChannel()
{
return $this->salesChannel;
}
/**
* @param string
*/
public function setStoreId($storeId)
{
$this->storeId = $storeId;
}
/**
* @return string
*/
public function getStoreId()
{
return $this->storeId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload::class, 'Google_Service_PaymentsResellerSubscription_GoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload');

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\Service\PaymentsResellerSubscription;
class GoogleCloudPaymentsResellerSubscriptionV1IntentPayload extends \Google\Model
{
protected $createIntentType = GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent::class;
protected $createIntentDataType = '';
protected $entitleIntentType = GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent::class;
protected $entitleIntentDataType = '';
/**
* @param GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent
*/
public function setCreateIntent(GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent $createIntent)
{
$this->createIntent = $createIntent;
}
/**
* @return GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent
*/
public function getCreateIntent()
{
return $this->createIntent;
}
/**
* @param GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent
*/
public function setEntitleIntent(GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent $entitleIntent)
{
$this->entitleIntent = $entitleIntent;
}
/**
* @return GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent
*/
public function getEntitleIntent()
{
return $this->entitleIntent;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPaymentsResellerSubscriptionV1IntentPayload::class, 'Google_Service_PaymentsResellerSubscription_GoogleCloudPaymentsResellerSubscriptionV1IntentPayload');

View File

@@ -0,0 +1,61 @@
<?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\PaymentsResellerSubscription;
class GoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse extends \Google\Collection
{
protected $collection_key = 'products';
/**
* @var string
*/
public $nextPageToken;
protected $productsType = GoogleCloudPaymentsResellerSubscriptionV1Product::class;
protected $productsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param GoogleCloudPaymentsResellerSubscriptionV1Product[]
*/
public function setProducts($products)
{
$this->products = $products;
}
/**
* @return GoogleCloudPaymentsResellerSubscriptionV1Product[]
*/
public function getProducts()
{
return $this->products;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse::class, 'Google_Service_PaymentsResellerSubscription_GoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse');

View File

@@ -0,0 +1,61 @@
<?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\PaymentsResellerSubscription;
class GoogleCloudPaymentsResellerSubscriptionV1ListPromotionsResponse extends \Google\Collection
{
protected $collection_key = 'promotions';
/**
* @var string
*/
public $nextPageToken;
protected $promotionsType = GoogleCloudPaymentsResellerSubscriptionV1Promotion::class;
protected $promotionsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param GoogleCloudPaymentsResellerSubscriptionV1Promotion[]
*/
public function setPromotions($promotions)
{
$this->promotions = $promotions;
}
/**
* @return GoogleCloudPaymentsResellerSubscriptionV1Promotion[]
*/
public function getPromotions()
{
return $this->promotions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPaymentsResellerSubscriptionV1ListPromotionsResponse::class, 'Google_Service_PaymentsResellerSubscription_GoogleCloudPaymentsResellerSubscriptionV1ListPromotionsResponse');

View File

@@ -0,0 +1,62 @@
<?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\PaymentsResellerSubscription;
class GoogleCloudPaymentsResellerSubscriptionV1Location extends \Google\Model
{
/**
* @var string
*/
public $postalCode;
/**
* @var string
*/
public $regionCode;
/**
* @param string
*/
public function setPostalCode($postalCode)
{
$this->postalCode = $postalCode;
}
/**
* @return string
*/
public function getPostalCode()
{
return $this->postalCode;
}
/**
* @param string
*/
public function setRegionCode($regionCode)
{
$this->regionCode = $regionCode;
}
/**
* @return string
*/
public function getRegionCode()
{
return $this->regionCode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPaymentsResellerSubscriptionV1Location::class, 'Google_Service_PaymentsResellerSubscription_GoogleCloudPaymentsResellerSubscriptionV1Location');

View File

@@ -0,0 +1,161 @@
<?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\PaymentsResellerSubscription;
class GoogleCloudPaymentsResellerSubscriptionV1Product extends \Google\Collection
{
protected $collection_key = 'titles';
protected $bundleDetailsType = ProductBundleDetails::class;
protected $bundleDetailsDataType = '';
protected $finiteBillingCycleDetailsType = GoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails::class;
protected $finiteBillingCycleDetailsDataType = '';
/**
* @var string
*/
public $name;
protected $priceConfigsType = GoogleCloudPaymentsResellerSubscriptionV1ProductPriceConfig::class;
protected $priceConfigsDataType = 'array';
/**
* @var string
*/
public $productType;
/**
* @var string[]
*/
public $regionCodes;
protected $subscriptionBillingCycleDurationType = GoogleCloudPaymentsResellerSubscriptionV1Duration::class;
protected $subscriptionBillingCycleDurationDataType = '';
protected $titlesType = GoogleTypeLocalizedText::class;
protected $titlesDataType = 'array';
/**
* @param ProductBundleDetails
*/
public function setBundleDetails(ProductBundleDetails $bundleDetails)
{
$this->bundleDetails = $bundleDetails;
}
/**
* @return ProductBundleDetails
*/
public function getBundleDetails()
{
return $this->bundleDetails;
}
/**
* @param GoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails
*/
public function setFiniteBillingCycleDetails(GoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails $finiteBillingCycleDetails)
{
$this->finiteBillingCycleDetails = $finiteBillingCycleDetails;
}
/**
* @return GoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails
*/
public function getFiniteBillingCycleDetails()
{
return $this->finiteBillingCycleDetails;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param GoogleCloudPaymentsResellerSubscriptionV1ProductPriceConfig[]
*/
public function setPriceConfigs($priceConfigs)
{
$this->priceConfigs = $priceConfigs;
}
/**
* @return GoogleCloudPaymentsResellerSubscriptionV1ProductPriceConfig[]
*/
public function getPriceConfigs()
{
return $this->priceConfigs;
}
/**
* @param string
*/
public function setProductType($productType)
{
$this->productType = $productType;
}
/**
* @return string
*/
public function getProductType()
{
return $this->productType;
}
/**
* @param string[]
*/
public function setRegionCodes($regionCodes)
{
$this->regionCodes = $regionCodes;
}
/**
* @return string[]
*/
public function getRegionCodes()
{
return $this->regionCodes;
}
/**
* @param GoogleCloudPaymentsResellerSubscriptionV1Duration
*/
public function setSubscriptionBillingCycleDuration(GoogleCloudPaymentsResellerSubscriptionV1Duration $subscriptionBillingCycleDuration)
{
$this->subscriptionBillingCycleDuration = $subscriptionBillingCycleDuration;
}
/**
* @return GoogleCloudPaymentsResellerSubscriptionV1Duration
*/
public function getSubscriptionBillingCycleDuration()
{
return $this->subscriptionBillingCycleDuration;
}
/**
* @param GoogleTypeLocalizedText[]
*/
public function setTitles($titles)
{
$this->titles = $titles;
}
/**
* @return GoogleTypeLocalizedText[]
*/
public function getTitles()
{
return $this->titles;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPaymentsResellerSubscriptionV1Product::class, 'Google_Service_PaymentsResellerSubscription_GoogleCloudPaymentsResellerSubscriptionV1Product');

View File

@@ -0,0 +1,61 @@
<?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\PaymentsResellerSubscription;
class GoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetails extends \Google\Collection
{
protected $collection_key = 'bundleElements';
protected $bundleElementsType = GoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetailsBundleElement::class;
protected $bundleElementsDataType = 'array';
/**
* @var string
*/
public $entitlementMode;
/**
* @param GoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetailsBundleElement[]
*/
public function setBundleElements($bundleElements)
{
$this->bundleElements = $bundleElements;
}
/**
* @return GoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetailsBundleElement[]
*/
public function getBundleElements()
{
return $this->bundleElements;
}
/**
* @param string
*/
public function setEntitlementMode($entitlementMode)
{
$this->entitlementMode = $entitlementMode;
}
/**
* @return string
*/
public function getEntitlementMode()
{
return $this->entitlementMode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetails::class, 'Google_Service_PaymentsResellerSubscription_GoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetails');

View File

@@ -0,0 +1,44 @@
<?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\PaymentsResellerSubscription;
class GoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetailsBundleElement extends \Google\Model
{
/**
* @var string
*/
public $product;
/**
* @param string
*/
public function setProduct($product)
{
$this->product = $product;
}
/**
* @return string
*/
public function getProduct()
{
return $this->product;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetailsBundleElement::class, 'Google_Service_PaymentsResellerSubscription_GoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetailsBundleElement');

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\Service\PaymentsResellerSubscription;
class GoogleCloudPaymentsResellerSubscriptionV1ProductPayload extends \Google\Model
{
protected $googleOnePayloadType = GoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload::class;
protected $googleOnePayloadDataType = '';
protected $youtubePayloadType = GoogleCloudPaymentsResellerSubscriptionV1YoutubePayload::class;
protected $youtubePayloadDataType = '';
/**
* @param GoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload
*/
public function setGoogleOnePayload(GoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload $googleOnePayload)
{
$this->googleOnePayload = $googleOnePayload;
}
/**
* @return GoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload
*/
public function getGoogleOnePayload()
{
return $this->googleOnePayload;
}
/**
* @param GoogleCloudPaymentsResellerSubscriptionV1YoutubePayload
*/
public function setYoutubePayload(GoogleCloudPaymentsResellerSubscriptionV1YoutubePayload $youtubePayload)
{
$this->youtubePayload = $youtubePayload;
}
/**
* @return GoogleCloudPaymentsResellerSubscriptionV1YoutubePayload
*/
public function getYoutubePayload()
{
return $this->youtubePayload;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPaymentsResellerSubscriptionV1ProductPayload::class, 'Google_Service_PaymentsResellerSubscription_GoogleCloudPaymentsResellerSubscriptionV1ProductPayload');

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\Service\PaymentsResellerSubscription;
class GoogleCloudPaymentsResellerSubscriptionV1ProductPriceConfig extends \Google\Model
{
protected $amountType = GoogleCloudPaymentsResellerSubscriptionV1Amount::class;
protected $amountDataType = '';
/**
* @var string
*/
public $regionCode;
/**
* @param GoogleCloudPaymentsResellerSubscriptionV1Amount
*/
public function setAmount(GoogleCloudPaymentsResellerSubscriptionV1Amount $amount)
{
$this->amount = $amount;
}
/**
* @return GoogleCloudPaymentsResellerSubscriptionV1Amount
*/
public function getAmount()
{
return $this->amount;
}
/**
* @param string
*/
public function setRegionCode($regionCode)
{
$this->regionCode = $regionCode;
}
/**
* @return string
*/
public function getRegionCode()
{
return $this->regionCode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPaymentsResellerSubscriptionV1ProductPriceConfig::class, 'Google_Service_PaymentsResellerSubscription_GoogleCloudPaymentsResellerSubscriptionV1ProductPriceConfig');

View File

@@ -0,0 +1,183 @@
<?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\PaymentsResellerSubscription;
class GoogleCloudPaymentsResellerSubscriptionV1Promotion extends \Google\Collection
{
protected $collection_key = 'titles';
/**
* @var string[]
*/
public $applicableProducts;
/**
* @var string
*/
public $endTime;
protected $freeTrialDurationType = GoogleCloudPaymentsResellerSubscriptionV1Duration::class;
protected $freeTrialDurationDataType = '';
protected $introductoryPricingDetailsType = GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetails::class;
protected $introductoryPricingDetailsDataType = '';
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $promotionType;
/**
* @var string[]
*/
public $regionCodes;
/**
* @var string
*/
public $startTime;
protected $titlesType = GoogleTypeLocalizedText::class;
protected $titlesDataType = 'array';
/**
* @param string[]
*/
public function setApplicableProducts($applicableProducts)
{
$this->applicableProducts = $applicableProducts;
}
/**
* @return string[]
*/
public function getApplicableProducts()
{
return $this->applicableProducts;
}
/**
* @param string
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* @param GoogleCloudPaymentsResellerSubscriptionV1Duration
*/
public function setFreeTrialDuration(GoogleCloudPaymentsResellerSubscriptionV1Duration $freeTrialDuration)
{
$this->freeTrialDuration = $freeTrialDuration;
}
/**
* @return GoogleCloudPaymentsResellerSubscriptionV1Duration
*/
public function getFreeTrialDuration()
{
return $this->freeTrialDuration;
}
/**
* @param GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetails
*/
public function setIntroductoryPricingDetails(GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetails $introductoryPricingDetails)
{
$this->introductoryPricingDetails = $introductoryPricingDetails;
}
/**
* @return GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetails
*/
public function getIntroductoryPricingDetails()
{
return $this->introductoryPricingDetails;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setPromotionType($promotionType)
{
$this->promotionType = $promotionType;
}
/**
* @return string
*/
public function getPromotionType()
{
return $this->promotionType;
}
/**
* @param string[]
*/
public function setRegionCodes($regionCodes)
{
$this->regionCodes = $regionCodes;
}
/**
* @return string[]
*/
public function getRegionCodes()
{
return $this->regionCodes;
}
/**
* @param string
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
/**
* @param GoogleTypeLocalizedText[]
*/
public function setTitles($titles)
{
$this->titles = $titles;
}
/**
* @return GoogleTypeLocalizedText[]
*/
public function getTitles()
{
return $this->titles;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPaymentsResellerSubscriptionV1Promotion::class, 'Google_Service_PaymentsResellerSubscription_GoogleCloudPaymentsResellerSubscriptionV1Promotion');

View File

@@ -0,0 +1,43 @@
<?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\PaymentsResellerSubscription;
class GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetails extends \Google\Collection
{
protected $collection_key = 'introductoryPricingSpecs';
protected $introductoryPricingSpecsType = GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec::class;
protected $introductoryPricingSpecsDataType = 'array';
/**
* @param GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec[]
*/
public function setIntroductoryPricingSpecs($introductoryPricingSpecs)
{
$this->introductoryPricingSpecs = $introductoryPricingSpecs;
}
/**
* @return GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec[]
*/
public function getIntroductoryPricingSpecs()
{
return $this->introductoryPricingSpecs;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetails::class, 'Google_Service_PaymentsResellerSubscription_GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetails');

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\Service\PaymentsResellerSubscription;
class GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec extends \Google\Model
{
protected $discountAmountType = GoogleCloudPaymentsResellerSubscriptionV1Amount::class;
protected $discountAmountDataType = '';
/**
* @var string
*/
public $discountRatioMicros;
/**
* @var int
*/
public $recurrenceCount;
/**
* @var string
*/
public $regionCode;
/**
* @param GoogleCloudPaymentsResellerSubscriptionV1Amount
*/
public function setDiscountAmount(GoogleCloudPaymentsResellerSubscriptionV1Amount $discountAmount)
{
$this->discountAmount = $discountAmount;
}
/**
* @return GoogleCloudPaymentsResellerSubscriptionV1Amount
*/
public function getDiscountAmount()
{
return $this->discountAmount;
}
/**
* @param string
*/
public function setDiscountRatioMicros($discountRatioMicros)
{
$this->discountRatioMicros = $discountRatioMicros;
}
/**
* @return string
*/
public function getDiscountRatioMicros()
{
return $this->discountRatioMicros;
}
/**
* @param int
*/
public function setRecurrenceCount($recurrenceCount)
{
$this->recurrenceCount = $recurrenceCount;
}
/**
* @return int
*/
public function getRecurrenceCount()
{
return $this->recurrenceCount;
}
/**
* @param string
*/
public function setRegionCode($regionCode)
{
$this->regionCode = $regionCode;
}
/**
* @return string
*/
public function getRegionCode()
{
return $this->regionCode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec::class, 'Google_Service_PaymentsResellerSubscription_GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec');

View File

@@ -0,0 +1,62 @@
<?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\PaymentsResellerSubscription;
class GoogleCloudPaymentsResellerSubscriptionV1ServicePeriod extends \Google\Model
{
/**
* @var string
*/
public $endTime;
/**
* @var string
*/
public $startTime;
/**
* @param string
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* @param string
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPaymentsResellerSubscriptionV1ServicePeriod::class, 'Google_Service_PaymentsResellerSubscription_GoogleCloudPaymentsResellerSubscriptionV1ServicePeriod');

View File

@@ -0,0 +1,375 @@
<?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\PaymentsResellerSubscription;
class GoogleCloudPaymentsResellerSubscriptionV1Subscription extends \Google\Collection
{
protected $collection_key = 'promotions';
protected $cancellationDetailsType = GoogleCloudPaymentsResellerSubscriptionV1SubscriptionCancellationDetails::class;
protected $cancellationDetailsDataType = '';
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $cycleEndTime;
/**
* @var bool
*/
public $endUserEntitled;
/**
* @var string
*/
public $freeTrialEndTime;
protected $lineItemsType = GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem::class;
protected $lineItemsDataType = 'array';
protected $migrationDetailsType = GoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails::class;
protected $migrationDetailsDataType = '';
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $partnerUserToken;
/**
* @var string
*/
public $processingState;
/**
* @var string[]
*/
public $products;
protected $promotionSpecsType = GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec::class;
protected $promotionSpecsDataType = 'array';
/**
* @var string[]
*/
public $promotions;
/**
* @var string
*/
public $purchaseTime;
/**
* @var string
*/
public $redirectUri;
/**
* @var string
*/
public $renewalTime;
protected $serviceLocationType = GoogleCloudPaymentsResellerSubscriptionV1Location::class;
protected $serviceLocationDataType = '';
/**
* @var string
*/
public $state;
/**
* @var string
*/
public $updateTime;
protected $upgradeDowngradeDetailsType = GoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngradeDetails::class;
protected $upgradeDowngradeDetailsDataType = '';
/**
* @param GoogleCloudPaymentsResellerSubscriptionV1SubscriptionCancellationDetails
*/
public function setCancellationDetails(GoogleCloudPaymentsResellerSubscriptionV1SubscriptionCancellationDetails $cancellationDetails)
{
$this->cancellationDetails = $cancellationDetails;
}
/**
* @return GoogleCloudPaymentsResellerSubscriptionV1SubscriptionCancellationDetails
*/
public function getCancellationDetails()
{
return $this->cancellationDetails;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setCycleEndTime($cycleEndTime)
{
$this->cycleEndTime = $cycleEndTime;
}
/**
* @return string
*/
public function getCycleEndTime()
{
return $this->cycleEndTime;
}
/**
* @param bool
*/
public function setEndUserEntitled($endUserEntitled)
{
$this->endUserEntitled = $endUserEntitled;
}
/**
* @return bool
*/
public function getEndUserEntitled()
{
return $this->endUserEntitled;
}
/**
* @param string
*/
public function setFreeTrialEndTime($freeTrialEndTime)
{
$this->freeTrialEndTime = $freeTrialEndTime;
}
/**
* @return string
*/
public function getFreeTrialEndTime()
{
return $this->freeTrialEndTime;
}
/**
* @param GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem[]
*/
public function setLineItems($lineItems)
{
$this->lineItems = $lineItems;
}
/**
* @return GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem[]
*/
public function getLineItems()
{
return $this->lineItems;
}
/**
* @param GoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails
*/
public function setMigrationDetails(GoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails $migrationDetails)
{
$this->migrationDetails = $migrationDetails;
}
/**
* @return GoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails
*/
public function getMigrationDetails()
{
return $this->migrationDetails;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setPartnerUserToken($partnerUserToken)
{
$this->partnerUserToken = $partnerUserToken;
}
/**
* @return string
*/
public function getPartnerUserToken()
{
return $this->partnerUserToken;
}
/**
* @param string
*/
public function setProcessingState($processingState)
{
$this->processingState = $processingState;
}
/**
* @return string
*/
public function getProcessingState()
{
return $this->processingState;
}
/**
* @param string[]
*/
public function setProducts($products)
{
$this->products = $products;
}
/**
* @return string[]
*/
public function getProducts()
{
return $this->products;
}
/**
* @param GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec[]
*/
public function setPromotionSpecs($promotionSpecs)
{
$this->promotionSpecs = $promotionSpecs;
}
/**
* @return GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec[]
*/
public function getPromotionSpecs()
{
return $this->promotionSpecs;
}
/**
* @param string[]
*/
public function setPromotions($promotions)
{
$this->promotions = $promotions;
}
/**
* @return string[]
*/
public function getPromotions()
{
return $this->promotions;
}
/**
* @param string
*/
public function setPurchaseTime($purchaseTime)
{
$this->purchaseTime = $purchaseTime;
}
/**
* @return string
*/
public function getPurchaseTime()
{
return $this->purchaseTime;
}
/**
* @param string
*/
public function setRedirectUri($redirectUri)
{
$this->redirectUri = $redirectUri;
}
/**
* @return string
*/
public function getRedirectUri()
{
return $this->redirectUri;
}
/**
* @param string
*/
public function setRenewalTime($renewalTime)
{
$this->renewalTime = $renewalTime;
}
/**
* @return string
*/
public function getRenewalTime()
{
return $this->renewalTime;
}
/**
* @param GoogleCloudPaymentsResellerSubscriptionV1Location
*/
public function setServiceLocation(GoogleCloudPaymentsResellerSubscriptionV1Location $serviceLocation)
{
$this->serviceLocation = $serviceLocation;
}
/**
* @return GoogleCloudPaymentsResellerSubscriptionV1Location
*/
public function getServiceLocation()
{
return $this->serviceLocation;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* @param GoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngradeDetails
*/
public function setUpgradeDowngradeDetails(GoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngradeDetails $upgradeDowngradeDetails)
{
$this->upgradeDowngradeDetails = $upgradeDowngradeDetails;
}
/**
* @return GoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngradeDetails
*/
public function getUpgradeDowngradeDetails()
{
return $this->upgradeDowngradeDetails;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPaymentsResellerSubscriptionV1Subscription::class, 'Google_Service_PaymentsResellerSubscription_GoogleCloudPaymentsResellerSubscriptionV1Subscription');

View File

@@ -0,0 +1,44 @@
<?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\PaymentsResellerSubscription;
class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionCancellationDetails extends \Google\Model
{
/**
* @var string
*/
public $reason;
/**
* @param string
*/
public function setReason($reason)
{
$this->reason = $reason;
}
/**
* @return string
*/
public function getReason()
{
return $this->reason;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPaymentsResellerSubscriptionV1SubscriptionCancellationDetails::class, 'Google_Service_PaymentsResellerSubscription_GoogleCloudPaymentsResellerSubscriptionV1SubscriptionCancellationDetails');

View File

@@ -0,0 +1,231 @@
<?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\PaymentsResellerSubscription;
class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem extends \Google\Collection
{
protected $collection_key = 'lineItemPromotionSpecs';
protected $amountType = GoogleCloudPaymentsResellerSubscriptionV1Amount::class;
protected $amountDataType = '';
protected $bundleDetailsType = SubscriptionLineItemBundleDetails::class;
protected $bundleDetailsDataType = '';
/**
* @var string
*/
public $description;
protected $finiteBillingCycleDetailsType = GoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails::class;
protected $finiteBillingCycleDetailsDataType = '';
/**
* @var string
*/
public $lineItemFreeTrialEndTime;
/**
* @var int
*/
public $lineItemIndex;
protected $lineItemPromotionSpecsType = GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec::class;
protected $lineItemPromotionSpecsDataType = 'array';
protected $oneTimeRecurrenceDetailsType = GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails::class;
protected $oneTimeRecurrenceDetailsDataType = '';
/**
* @var string
*/
public $product;
protected $productPayloadType = GoogleCloudPaymentsResellerSubscriptionV1ProductPayload::class;
protected $productPayloadDataType = '';
/**
* @var string
*/
public $recurrenceType;
/**
* @var string
*/
public $state;
/**
* @param GoogleCloudPaymentsResellerSubscriptionV1Amount
*/
public function setAmount(GoogleCloudPaymentsResellerSubscriptionV1Amount $amount)
{
$this->amount = $amount;
}
/**
* @return GoogleCloudPaymentsResellerSubscriptionV1Amount
*/
public function getAmount()
{
return $this->amount;
}
/**
* @param SubscriptionLineItemBundleDetails
*/
public function setBundleDetails(SubscriptionLineItemBundleDetails $bundleDetails)
{
$this->bundleDetails = $bundleDetails;
}
/**
* @return SubscriptionLineItemBundleDetails
*/
public function getBundleDetails()
{
return $this->bundleDetails;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param GoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails
*/
public function setFiniteBillingCycleDetails(GoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails $finiteBillingCycleDetails)
{
$this->finiteBillingCycleDetails = $finiteBillingCycleDetails;
}
/**
* @return GoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails
*/
public function getFiniteBillingCycleDetails()
{
return $this->finiteBillingCycleDetails;
}
/**
* @param string
*/
public function setLineItemFreeTrialEndTime($lineItemFreeTrialEndTime)
{
$this->lineItemFreeTrialEndTime = $lineItemFreeTrialEndTime;
}
/**
* @return string
*/
public function getLineItemFreeTrialEndTime()
{
return $this->lineItemFreeTrialEndTime;
}
/**
* @param int
*/
public function setLineItemIndex($lineItemIndex)
{
$this->lineItemIndex = $lineItemIndex;
}
/**
* @return int
*/
public function getLineItemIndex()
{
return $this->lineItemIndex;
}
/**
* @param GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec[]
*/
public function setLineItemPromotionSpecs($lineItemPromotionSpecs)
{
$this->lineItemPromotionSpecs = $lineItemPromotionSpecs;
}
/**
* @return GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec[]
*/
public function getLineItemPromotionSpecs()
{
return $this->lineItemPromotionSpecs;
}
/**
* @param GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails
*/
public function setOneTimeRecurrenceDetails(GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails $oneTimeRecurrenceDetails)
{
$this->oneTimeRecurrenceDetails = $oneTimeRecurrenceDetails;
}
/**
* @return GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails
*/
public function getOneTimeRecurrenceDetails()
{
return $this->oneTimeRecurrenceDetails;
}
/**
* @param string
*/
public function setProduct($product)
{
$this->product = $product;
}
/**
* @return string
*/
public function getProduct()
{
return $this->product;
}
/**
* @param GoogleCloudPaymentsResellerSubscriptionV1ProductPayload
*/
public function setProductPayload(GoogleCloudPaymentsResellerSubscriptionV1ProductPayload $productPayload)
{
$this->productPayload = $productPayload;
}
/**
* @return GoogleCloudPaymentsResellerSubscriptionV1ProductPayload
*/
public function getProductPayload()
{
return $this->productPayload;
}
/**
* @param string
*/
public function setRecurrenceType($recurrenceType)
{
$this->recurrenceType = $recurrenceType;
}
/**
* @return string
*/
public function getRecurrenceType()
{
return $this->recurrenceType;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem::class, 'Google_Service_PaymentsResellerSubscription_GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem');

View File

@@ -0,0 +1,62 @@
<?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\PaymentsResellerSubscription;
class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemBundleDetailsBundleElementDetails extends \Google\Model
{
/**
* @var string
*/
public $product;
/**
* @var string
*/
public $userAccountLinkedTime;
/**
* @param string
*/
public function setProduct($product)
{
$this->product = $product;
}
/**
* @return string
*/
public function getProduct()
{
return $this->product;
}
/**
* @param string
*/
public function setUserAccountLinkedTime($userAccountLinkedTime)
{
$this->userAccountLinkedTime = $userAccountLinkedTime;
}
/**
* @return string
*/
public function getUserAccountLinkedTime()
{
return $this->userAccountLinkedTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemBundleDetailsBundleElementDetails::class, 'Google_Service_PaymentsResellerSubscription_GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemBundleDetailsBundleElementDetails');

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\Service\PaymentsResellerSubscription;
class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails extends \Google\Model
{
protected $servicePeriodType = GoogleCloudPaymentsResellerSubscriptionV1ServicePeriod::class;
protected $servicePeriodDataType = '';
/**
* @param GoogleCloudPaymentsResellerSubscriptionV1ServicePeriod
*/
public function setServicePeriod(GoogleCloudPaymentsResellerSubscriptionV1ServicePeriod $servicePeriod)
{
$this->servicePeriod = $servicePeriod;
}
/**
* @return GoogleCloudPaymentsResellerSubscriptionV1ServicePeriod
*/
public function getServicePeriod()
{
return $this->servicePeriod;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails::class, 'Google_Service_PaymentsResellerSubscription_GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails');

View File

@@ -0,0 +1,44 @@
<?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\PaymentsResellerSubscription;
class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails extends \Google\Model
{
/**
* @var string
*/
public $migratedSubscriptionId;
/**
* @param string
*/
public function setMigratedSubscriptionId($migratedSubscriptionId)
{
$this->migratedSubscriptionId = $migratedSubscriptionId;
}
/**
* @return string
*/
public function getMigratedSubscriptionId()
{
return $this->migratedSubscriptionId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails::class, 'Google_Service_PaymentsResellerSubscription_GoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails');

View File

@@ -0,0 +1,94 @@
<?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\PaymentsResellerSubscription;
class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec extends \Google\Model
{
protected $freeTrialDurationType = GoogleCloudPaymentsResellerSubscriptionV1Duration::class;
protected $freeTrialDurationDataType = '';
protected $introductoryPricingDetailsType = GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetails::class;
protected $introductoryPricingDetailsDataType = '';
/**
* @var string
*/
public $promotion;
/**
* @var string
*/
public $type;
/**
* @param GoogleCloudPaymentsResellerSubscriptionV1Duration
*/
public function setFreeTrialDuration(GoogleCloudPaymentsResellerSubscriptionV1Duration $freeTrialDuration)
{
$this->freeTrialDuration = $freeTrialDuration;
}
/**
* @return GoogleCloudPaymentsResellerSubscriptionV1Duration
*/
public function getFreeTrialDuration()
{
return $this->freeTrialDuration;
}
/**
* @param GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetails
*/
public function setIntroductoryPricingDetails(GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetails $introductoryPricingDetails)
{
$this->introductoryPricingDetails = $introductoryPricingDetails;
}
/**
* @return GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetails
*/
public function getIntroductoryPricingDetails()
{
return $this->introductoryPricingDetails;
}
/**
* @param string
*/
public function setPromotion($promotion)
{
$this->promotion = $promotion;
}
/**
* @return string
*/
public function getPromotion()
{
return $this->promotion;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec::class, 'Google_Service_PaymentsResellerSubscription_GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec');

View File

@@ -0,0 +1,62 @@
<?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\PaymentsResellerSubscription;
class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngradeDetails extends \Google\Model
{
/**
* @var string
*/
public $billingCycleSpec;
/**
* @var string
*/
public $previousSubscriptionId;
/**
* @param string
*/
public function setBillingCycleSpec($billingCycleSpec)
{
$this->billingCycleSpec = $billingCycleSpec;
}
/**
* @return string
*/
public function getBillingCycleSpec()
{
return $this->billingCycleSpec;
}
/**
* @param string
*/
public function setPreviousSubscriptionId($previousSubscriptionId)
{
$this->previousSubscriptionId = $previousSubscriptionId;
}
/**
* @return string
*/
public function getPreviousSubscriptionId()
{
return $this->previousSubscriptionId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngradeDetails::class, 'Google_Service_PaymentsResellerSubscription_GoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngradeDetails');

View File

@@ -0,0 +1,25 @@
<?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\PaymentsResellerSubscription;
class GoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionRequest::class, 'Google_Service_PaymentsResellerSubscription_GoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionRequest');

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\Service\PaymentsResellerSubscription;
class GoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionResponse extends \Google\Model
{
protected $subscriptionType = GoogleCloudPaymentsResellerSubscriptionV1Subscription::class;
protected $subscriptionDataType = '';
/**
* @param GoogleCloudPaymentsResellerSubscriptionV1Subscription
*/
public function setSubscription(GoogleCloudPaymentsResellerSubscriptionV1Subscription $subscription)
{
$this->subscription = $subscription;
}
/**
* @return GoogleCloudPaymentsResellerSubscriptionV1Subscription
*/
public function getSubscription()
{
return $this->subscription;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionResponse::class, 'Google_Service_PaymentsResellerSubscription_GoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionResponse');

View File

@@ -0,0 +1,62 @@
<?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\PaymentsResellerSubscription;
class GoogleCloudPaymentsResellerSubscriptionV1UserSession extends \Google\Model
{
/**
* @var string
*/
public $expireTime;
/**
* @var string
*/
public $token;
/**
* @param string
*/
public function setExpireTime($expireTime)
{
$this->expireTime = $expireTime;
}
/**
* @return string
*/
public function getExpireTime()
{
return $this->expireTime;
}
/**
* @param string
*/
public function setToken($token)
{
$this->token = $token;
}
/**
* @return string
*/
public function getToken()
{
return $this->token;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPaymentsResellerSubscriptionV1UserSession::class, 'Google_Service_PaymentsResellerSubscription_GoogleCloudPaymentsResellerSubscriptionV1UserSession');

View File

@@ -0,0 +1,81 @@
<?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\PaymentsResellerSubscription;
class GoogleCloudPaymentsResellerSubscriptionV1YoutubePayload extends \Google\Collection
{
protected $collection_key = 'partnerEligibilityIds';
/**
* @var string
*/
public $accessEndTime;
/**
* @var string[]
*/
public $partnerEligibilityIds;
/**
* @var string
*/
public $partnerPlanType;
/**
* @param string
*/
public function setAccessEndTime($accessEndTime)
{
$this->accessEndTime = $accessEndTime;
}
/**
* @return string
*/
public function getAccessEndTime()
{
return $this->accessEndTime;
}
/**
* @param string[]
*/
public function setPartnerEligibilityIds($partnerEligibilityIds)
{
$this->partnerEligibilityIds = $partnerEligibilityIds;
}
/**
* @return string[]
*/
public function getPartnerEligibilityIds()
{
return $this->partnerEligibilityIds;
}
/**
* @param string
*/
public function setPartnerPlanType($partnerPlanType)
{
$this->partnerPlanType = $partnerPlanType;
}
/**
* @return string
*/
public function getPartnerPlanType()
{
return $this->partnerPlanType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPaymentsResellerSubscriptionV1YoutubePayload::class, 'Google_Service_PaymentsResellerSubscription_GoogleCloudPaymentsResellerSubscriptionV1YoutubePayload');

View File

@@ -0,0 +1,62 @@
<?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\PaymentsResellerSubscription;
class GoogleTypeLocalizedText extends \Google\Model
{
/**
* @var string
*/
public $languageCode;
/**
* @var string
*/
public $text;
/**
* @param string
*/
public function setLanguageCode($languageCode)
{
$this->languageCode = $languageCode;
}
/**
* @return string
*/
public function getLanguageCode()
{
return $this->languageCode;
}
/**
* @param string
*/
public function setText($text)
{
$this->text = $text;
}
/**
* @return string
*/
public function getText()
{
return $this->text;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleTypeLocalizedText::class, 'Google_Service_PaymentsResellerSubscription_GoogleTypeLocalizedText');

View File

@@ -0,0 +1,61 @@
<?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\PaymentsResellerSubscription;
class ProductBundleDetails extends \Google\Collection
{
protected $collection_key = 'bundleElements';
protected $bundleElementsType = GoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetailsBundleElement::class;
protected $bundleElementsDataType = 'array';
/**
* @var string
*/
public $entitlementMode;
/**
* @param GoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetailsBundleElement[]
*/
public function setBundleElements($bundleElements)
{
$this->bundleElements = $bundleElements;
}
/**
* @return GoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetailsBundleElement[]
*/
public function getBundleElements()
{
return $this->bundleElements;
}
/**
* @param string
*/
public function setEntitlementMode($entitlementMode)
{
$this->entitlementMode = $entitlementMode;
}
/**
* @return string
*/
public function getEntitlementMode()
{
return $this->entitlementMode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProductBundleDetails::class, 'Google_Service_PaymentsResellerSubscription_ProductBundleDetails');

View File

@@ -0,0 +1,33 @@
<?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\PaymentsResellerSubscription\Resource;
/**
* The "partners" collection of methods.
* Typical usage is:
* <code>
* $paymentsresellersubscriptionService = new Google\Service\PaymentsResellerSubscription(...);
* $partners = $paymentsresellersubscriptionService->partners;
* </code>
*/
class Partners extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Partners::class, 'Google_Service_PaymentsResellerSubscription_Resource_Partners');

View File

@@ -0,0 +1,71 @@
<?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\PaymentsResellerSubscription\Resource;
use Google\Service\PaymentsResellerSubscription\GoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse;
/**
* The "products" collection of methods.
* Typical usage is:
* <code>
* $paymentsresellersubscriptionService = new Google\Service\PaymentsResellerSubscription(...);
* $products = $paymentsresellersubscriptionService->partners_products;
* </code>
*/
class PartnersProducts extends \Google\Service\Resource
{
/**
* To retrieve the products that can be resold by the partner. It should be
* autenticated with a service account. - This API doesn't apply to YouTube
* products currently. (products.listPartnersProducts)
*
* @param string $parent Required. The parent, the partner that can resell.
* Format: partners/{partner}
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Specifies the filters for the product
* results. The syntax is defined in https://google.aip.dev/160 with the
* following caveats: 1. Only the following features are supported: - Logical
* operator `AND` - Comparison operator `=` (no wildcards `*`) - Traversal
* operator `.` - Has operator `:` (no wildcards `*`) 2. Only the following
* fields are supported: - `regionCodes` - `youtubePayload.partnerEligibilityId`
* - `youtubePayload.postalCode` 3. Unless explicitly mentioned above, other
* features are not supported. Example: `regionCodes:US AND
* youtubePayload.postalCode=94043 AND
* youtubePayload.partnerEligibilityId=eligibility-id`
* @opt_param int pageSize Optional. The maximum number of products to return.
* The service may return fewer than this value. If unspecified, at most 50
* products will be returned. The maximum value is 1000; values above 1000 will
* be coerced to 1000.
* @opt_param string pageToken Optional. A page token, received from a previous
* `ListProducts` call. Provide this to retrieve the subsequent page. When
* paginating, all other parameters provided to `ListProducts` must match the
* call that provided the page token.
* @return GoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse
* @throws \Google\Service\Exception
*/
public function listPartnersProducts($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PartnersProducts::class, 'Google_Service_PaymentsResellerSubscription_Resource_PartnersProducts');

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\Service\PaymentsResellerSubscription\Resource;
use Google\Service\PaymentsResellerSubscription\GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsRequest;
use Google\Service\PaymentsResellerSubscription\GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsResponse;
use Google\Service\PaymentsResellerSubscription\GoogleCloudPaymentsResellerSubscriptionV1ListPromotionsResponse;
/**
* The "promotions" collection of methods.
* Typical usage is:
* <code>
* $paymentsresellersubscriptionService = new Google\Service\PaymentsResellerSubscription(...);
* $promotions = $paymentsresellersubscriptionService->partners_promotions;
* </code>
*/
class PartnersPromotions extends \Google\Service\Resource
{
/**
* To find eligible promotions for the current user. The API requires user
* authorization via OAuth. The bare minimum oauth scope `openid` is sufficient,
* which will skip the consent screen. (promotions.findEligible)
*
* @param string $parent Required. The parent, the partner that can resell.
* Format: partners/{partner}
* @param GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsResponse
* @throws \Google\Service\Exception
*/
public function findEligible($parent, GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('findEligible', [$params], GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsResponse::class);
}
/**
* Retrieves the promotions, such as free trial, that can be used by the
* partner. - This API doesn't apply to YouTube promotions currently. It should
* be autenticated with a service account. (promotions.listPartnersPromotions)
*
* @param string $parent Required. The parent, the partner that can resell.
* Format: partners/{partner}
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Specifies the filters for the promotion
* results. The syntax is defined in https://google.aip.dev/160 with the
* following caveats: 1. Only the following features are supported: - Logical
* operator `AND` - Comparison operator `=` (no wildcards `*`) - Traversal
* operator `.` - Has operator `:` (no wildcards `*`) 2. Only the following
* fields are supported: - `applicableProducts` - `regionCodes` -
* `youtubePayload.partnerEligibilityId` - `youtubePayload.postalCode` 3. Unless
* explicitly mentioned above, other features are not supported. Example:
* `applicableProducts:partners/partner1/products/product1 AND regionCodes:US
* AND youtubePayload.postalCode=94043 AND
* youtubePayload.partnerEligibilityId=eligibility-id`
* @opt_param int pageSize Optional. The maximum number of promotions to return.
* The service may return fewer than this value. If unspecified, at most 50
* products will be returned. The maximum value is 1000; values above 1000 will
* be coerced to 1000.
* @opt_param string pageToken Optional. A page token, received from a previous
* `ListPromotions` call. Provide this to retrieve the subsequent page. When
* paginating, all other parameters provided to `ListPromotions` must match the
* call that provided the page token.
* @return GoogleCloudPaymentsResellerSubscriptionV1ListPromotionsResponse
* @throws \Google\Service\Exception
*/
public function listPartnersPromotions($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudPaymentsResellerSubscriptionV1ListPromotionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PartnersPromotions::class, 'Google_Service_PaymentsResellerSubscription_Resource_PartnersPromotions');

View File

@@ -0,0 +1,191 @@
<?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\PaymentsResellerSubscription\Resource;
use Google\Service\PaymentsResellerSubscription\GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest;
use Google\Service\PaymentsResellerSubscription\GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionResponse;
use Google\Service\PaymentsResellerSubscription\GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequest;
use Google\Service\PaymentsResellerSubscription\GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionResponse;
use Google\Service\PaymentsResellerSubscription\GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionRequest;
use Google\Service\PaymentsResellerSubscription\GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionResponse;
use Google\Service\PaymentsResellerSubscription\GoogleCloudPaymentsResellerSubscriptionV1Subscription;
use Google\Service\PaymentsResellerSubscription\GoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionRequest;
use Google\Service\PaymentsResellerSubscription\GoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionResponse;
/**
* The "subscriptions" collection of methods.
* Typical usage is:
* <code>
* $paymentsresellersubscriptionService = new Google\Service\PaymentsResellerSubscription(...);
* $subscriptions = $paymentsresellersubscriptionService->partners_subscriptions;
* </code>
*/
class PartnersSubscriptions extends \Google\Service\Resource
{
/**
* Used by partners to cancel a subscription service either immediately or by
* the end of the current billing cycle for their customers. It should be called
* directly by the partner using service accounts. (subscriptions.cancel)
*
* @param string $name Required. The name of the subscription resource to be
* cancelled. It will have the format of
* "partners/{partner_id}/subscriptions/{subscription_id}"
* @param GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionResponse
* @throws \Google\Service\Exception
*/
public function cancel($name, GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('cancel', [$params], GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionResponse::class);
}
/**
* Used by partners to create a subscription for their customers. The created
* subscription is associated with the end user inferred from the end user
* credentials. This API must be authorized by the end user using OAuth.
* (subscriptions.create)
*
* @param string $parent Required. The parent resource name, which is the
* identifier of the partner. It will have the format of
* "partners/{partner_id}".
* @param GoogleCloudPaymentsResellerSubscriptionV1Subscription $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string subscriptionId Required. Identifies the subscription
* resource on the Partner side. The value is restricted to 63 ASCII characters
* at the maximum. If a subscription was previously created with the same
* subscription_id, we will directly return that one.
* @return GoogleCloudPaymentsResellerSubscriptionV1Subscription
* @throws \Google\Service\Exception
*/
public function create($parent, GoogleCloudPaymentsResellerSubscriptionV1Subscription $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], GoogleCloudPaymentsResellerSubscriptionV1Subscription::class);
}
/**
* Used by partners to entitle a previously provisioned subscription to the
* current end user. The end user identity is inferred from the authorized
* credential of the request. This API must be authorized by the end user using
* OAuth. (subscriptions.entitle)
*
* @param string $name Required. The name of the subscription resource that is
* entitled to the current end user. It will have the format of
* "partners/{partner_id}/subscriptions/{subscription_id}"
* @param GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionResponse
* @throws \Google\Service\Exception
*/
public function entitle($name, GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('entitle', [$params], GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionResponse::class);
}
/**
* [Opt-in only] Most partners should be on auto-extend by default. Used by
* partners to extend a subscription service for their customers on an ongoing
* basis for the subscription to remain active and renewable. It should be
* called directly by the partner using service accounts. (subscriptions.extend)
*
* @param string $name Required. The name of the subscription resource to be
* extended. It will have the format of
* "partners/{partner_id}/subscriptions/{subscription_id}".
* @param GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionResponse
* @throws \Google\Service\Exception
*/
public function extend($name, GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('extend', [$params], GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionResponse::class);
}
/**
* Used by partners to get a subscription by id. It should be called directly by
* the partner using service accounts. (subscriptions.get)
*
* @param string $name Required. The name of the subscription resource to
* retrieve. It will have the format of
* "partners/{partner_id}/subscriptions/{subscription_id}"
* @param array $optParams Optional parameters.
* @return GoogleCloudPaymentsResellerSubscriptionV1Subscription
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleCloudPaymentsResellerSubscriptionV1Subscription::class);
}
/**
* Used by partners to provision a subscription for their customers. This
* creates a subscription without associating it with the end user account.
* EntitleSubscription must be called separately using OAuth in order for the
* end user account to be associated with the subscription. It should be called
* directly by the partner using service accounts. (subscriptions.provision)
*
* @param string $parent Required. The parent resource name, which is the
* identifier of the partner. It will have the format of
* "partners/{partner_id}".
* @param GoogleCloudPaymentsResellerSubscriptionV1Subscription $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string subscriptionId Required. Identifies the subscription
* resource on the Partner side. The value is restricted to 63 ASCII characters
* at the maximum. If a subscription was previously created with the same
* subscription_id, we will directly return that one.
* @return GoogleCloudPaymentsResellerSubscriptionV1Subscription
* @throws \Google\Service\Exception
*/
public function provision($parent, GoogleCloudPaymentsResellerSubscriptionV1Subscription $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('provision', [$params], GoogleCloudPaymentsResellerSubscriptionV1Subscription::class);
}
/**
* Revokes the pending cancellation of a subscription, which is currently in
* `STATE_CANCEL_AT_END_OF_CYCLE` state. If the subscription is already
* cancelled, the request will fail. - **This API doesn't apply to YouTube
* subscriptions.** It should be called directly by the partner using service
* accounts. (subscriptions.undoCancel)
*
* @param string $name Required. The name of the subscription resource whose
* pending cancellation needs to be undone. It will have the format of
* "partners/{partner_id}/subscriptions/{subscription_id}"
* @param GoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionResponse
* @throws \Google\Service\Exception
*/
public function undoCancel($name, GoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('undoCancel', [$params], GoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PartnersSubscriptions::class, 'Google_Service_PaymentsResellerSubscription_Resource_PartnersSubscriptions');

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\Service\PaymentsResellerSubscription\Resource;
use Google\Service\PaymentsResellerSubscription\GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest;
use Google\Service\PaymentsResellerSubscription\GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse;
/**
* The "userSessions" collection of methods.
* Typical usage is:
* <code>
* $paymentsresellersubscriptionService = new Google\Service\PaymentsResellerSubscription(...);
* $userSessions = $paymentsresellersubscriptionService->partners_userSessions;
* </code>
*/
class PartnersUserSessions extends \Google\Service\Resource
{
/**
* This API replaces user authorized OAuth consent based APIs (Create, Entitle).
* Generates a short-lived token for a user session based on the user intent.
* You can use the session token to redirect the user to Google to finish the
* signup flow. You can re-generate new session token repeatedly for the same
* request if necessary, regardless of the previous tokens being expired or not.
* (userSessions.generate)
*
* @param string $parent Required. The parent, the partner that can resell.
* Format: partners/{partner}
* @param GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse
* @throws \Google\Service\Exception
*/
public function generate($parent, GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('generate', [$params], GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PartnersUserSessions::class, 'Google_Service_PaymentsResellerSubscription_Resource_PartnersUserSessions');

View File

@@ -0,0 +1,43 @@
<?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\PaymentsResellerSubscription;
class SubscriptionLineItemBundleDetails extends \Google\Collection
{
protected $collection_key = 'bundleElementDetails';
protected $bundleElementDetailsType = GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemBundleDetailsBundleElementDetails::class;
protected $bundleElementDetailsDataType = 'array';
/**
* @param GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemBundleDetailsBundleElementDetails[]
*/
public function setBundleElementDetails($bundleElementDetails)
{
$this->bundleElementDetails = $bundleElementDetails;
}
/**
* @return GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemBundleDetailsBundleElementDetails[]
*/
public function getBundleElementDetails()
{
return $this->bundleElementDetails;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SubscriptionLineItemBundleDetails::class, 'Google_Service_PaymentsResellerSubscription_SubscriptionLineItemBundleDetails');