allow vendord
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
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
This commit is contained in:
54
vendor/omnipay/stripe/src/Message/FetchSourceRequest.php
vendored
Normal file
54
vendor/omnipay/stripe/src/Message/FetchSourceRequest.php
vendored
Normal file
@@ -0,0 +1,54 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Stripe Fetch Source Request.
|
||||
*/
|
||||
namespace Omnipay\Stripe\Message;
|
||||
|
||||
/**
|
||||
* Stripe Fetch Source Request.
|
||||
*
|
||||
* @link https://stripe.com/docs/api/sources/retrieve
|
||||
*/
|
||||
class FetchSourceRequest extends AbstractRequest
|
||||
{
|
||||
/**
|
||||
* @return string|null
|
||||
*/
|
||||
public function getClientSecret()
|
||||
{
|
||||
return $this->getParameter('clientSecret');
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $value
|
||||
*
|
||||
* @return FetchSourceRequest
|
||||
*/
|
||||
public function setClientSecret($value)
|
||||
{
|
||||
return $this->setParameter('clientSecret', $value);
|
||||
}
|
||||
|
||||
public function getData()
|
||||
{
|
||||
$this->validate('source');
|
||||
$data = array();
|
||||
|
||||
if ($clientSecret = $this->getClientSecret()) {
|
||||
$data['client_secret'] = $clientSecret;
|
||||
}
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
public function getEndpoint()
|
||||
{
|
||||
return $this->endpoint.'/sources/'.$this->getSource();
|
||||
}
|
||||
|
||||
public function getHttpMethod()
|
||||
{
|
||||
return 'GET';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user