All checks were successful
Build, Push and Deploy / build-and-push (push) Successful in 3m3s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 16s
Build, Push and Deploy / deploy-staging (push) Successful in 32s
Build, Push and Deploy / deploy-production (push) Has been skipped
Build, Push and Deploy / cleanup (push) Successful in 1s
54 lines
1.1 KiB
PHP
54 lines
1.1 KiB
PHP
<?php
|
|
|
|
/**
|
|
* Stripe Fetch Subscription Request.
|
|
*/
|
|
|
|
namespace Omnipay\Stripe\Message;
|
|
|
|
/**
|
|
* Stripe Fetch Subscription Request.
|
|
*
|
|
* @link https://stripe.com/docs/api/subscription_schedules/retrieve
|
|
*/
|
|
class FetchSubscriptionSchedulesRequest extends AbstractRequest
|
|
{
|
|
/**
|
|
* Get the subscription reference.
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getSubscriptionSchedulesReference()
|
|
{
|
|
return $this->getParameter('subscriptionSchedulesReference');
|
|
}
|
|
|
|
/**
|
|
* Set the subscription reference.
|
|
*
|
|
* @param $value
|
|
* @return \Omnipay\Common\Message\AbstractRequest|FetchSubscriptionRequest
|
|
*/
|
|
public function setSubscriptionSchedulesReference($value)
|
|
{
|
|
return $this->setParameter('subscriptionSchedulesReference', $value);
|
|
}
|
|
|
|
public function getData()
|
|
{
|
|
$this->validate('subscriptionSchedulesReference');
|
|
|
|
return array();
|
|
}
|
|
|
|
public function getEndpoint()
|
|
{
|
|
return $this->endpoint.'/subscription_schedules/'.$this->getSubscriptionSchedulesReference();
|
|
}
|
|
|
|
public function getHttpMethod()
|
|
{
|
|
return 'GET';
|
|
}
|
|
}
|