Initial Commit
This commit is contained in:
96
dependencies/stripe/stripe-php/lib/Service/Issuing/AuthorizationService.php
vendored
Normal file
96
dependencies/stripe/stripe-php/lib/Service/Issuing/AuthorizationService.php
vendored
Normal file
@ -0,0 +1,96 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
namespace WP_Ultimo\Dependencies\Stripe\Service\Issuing;
|
||||
|
||||
class AuthorizationService extends \WP_Ultimo\Dependencies\Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Returns a list of Issuing <code>Authorization</code> objects. The objects are
|
||||
* sorted in descending order by creation date, with the most recently created
|
||||
* object appearing first.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Collection<\Stripe\Issuing\Authorization>
|
||||
*/
|
||||
public function all($params = null, $opts = null)
|
||||
{
|
||||
return $this->requestCollection('get', '/v1/issuing/authorizations', $params, $opts);
|
||||
}
|
||||
/**
|
||||
* Approves a pending Issuing <code>Authorization</code> object. This request
|
||||
* should be made within the timeout window of the <a
|
||||
* href="/docs/issuing/controls/real-time-authorizations">real-time
|
||||
* authorization</a> flow. You can also respond directly to the webhook request to
|
||||
* approve an authorization (preferred). More details can be found <a
|
||||
* href="/docs/issuing/controls/real-time-authorizations#authorization-handling">here</a>.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Issuing\Authorization
|
||||
*/
|
||||
public function approve($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/issuing/authorizations/%s/approve', $id), $params, $opts);
|
||||
}
|
||||
/**
|
||||
* Declines a pending Issuing <code>Authorization</code> object. This request
|
||||
* should be made within the timeout window of the <a
|
||||
* href="/docs/issuing/controls/real-time-authorizations">real time
|
||||
* authorization</a> flow. You can also respond directly to the webhook request to
|
||||
* decline an authorization (preferred). More details can be found <a
|
||||
* href="/docs/issuing/controls/real-time-authorizations#authorization-handling">here</a>.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Issuing\Authorization
|
||||
*/
|
||||
public function decline($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/issuing/authorizations/%s/decline', $id), $params, $opts);
|
||||
}
|
||||
/**
|
||||
* Retrieves an Issuing <code>Authorization</code> object.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Issuing\Authorization
|
||||
*/
|
||||
public function retrieve($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('get', $this->buildPath('/v1/issuing/authorizations/%s', $id), $params, $opts);
|
||||
}
|
||||
/**
|
||||
* Updates the specified Issuing <code>Authorization</code> object by setting the
|
||||
* values of the parameters passed. Any parameters not provided will be left
|
||||
* unchanged.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Issuing\Authorization
|
||||
*/
|
||||
public function update($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/issuing/authorizations/%s', $id), $params, $opts);
|
||||
}
|
||||
}
|
69
dependencies/stripe/stripe-php/lib/Service/Issuing/CardService.php
vendored
Normal file
69
dependencies/stripe/stripe-php/lib/Service/Issuing/CardService.php
vendored
Normal file
@ -0,0 +1,69 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
namespace WP_Ultimo\Dependencies\Stripe\Service\Issuing;
|
||||
|
||||
class CardService extends \WP_Ultimo\Dependencies\Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Returns a list of Issuing <code>Card</code> objects. The objects are sorted in
|
||||
* descending order by creation date, with the most recently created object
|
||||
* appearing first.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Collection<\Stripe\Issuing\Card>
|
||||
*/
|
||||
public function all($params = null, $opts = null)
|
||||
{
|
||||
return $this->requestCollection('get', '/v1/issuing/cards', $params, $opts);
|
||||
}
|
||||
/**
|
||||
* Creates an Issuing <code>Card</code> object.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Issuing\Card
|
||||
*/
|
||||
public function create($params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', '/v1/issuing/cards', $params, $opts);
|
||||
}
|
||||
/**
|
||||
* Retrieves an Issuing <code>Card</code> object.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Issuing\Card
|
||||
*/
|
||||
public function retrieve($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('get', $this->buildPath('/v1/issuing/cards/%s', $id), $params, $opts);
|
||||
}
|
||||
/**
|
||||
* Updates the specified Issuing <code>Card</code> object by setting the values of
|
||||
* the parameters passed. Any parameters not provided will be left unchanged.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Issuing\Card
|
||||
*/
|
||||
public function update($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/issuing/cards/%s', $id), $params, $opts);
|
||||
}
|
||||
}
|
70
dependencies/stripe/stripe-php/lib/Service/Issuing/CardholderService.php
vendored
Normal file
70
dependencies/stripe/stripe-php/lib/Service/Issuing/CardholderService.php
vendored
Normal file
@ -0,0 +1,70 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
namespace WP_Ultimo\Dependencies\Stripe\Service\Issuing;
|
||||
|
||||
class CardholderService extends \WP_Ultimo\Dependencies\Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Returns a list of Issuing <code>Cardholder</code> objects. The objects are
|
||||
* sorted in descending order by creation date, with the most recently created
|
||||
* object appearing first.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Collection<\Stripe\Issuing\Cardholder>
|
||||
*/
|
||||
public function all($params = null, $opts = null)
|
||||
{
|
||||
return $this->requestCollection('get', '/v1/issuing/cardholders', $params, $opts);
|
||||
}
|
||||
/**
|
||||
* Creates a new Issuing <code>Cardholder</code> object that can be issued cards.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Issuing\Cardholder
|
||||
*/
|
||||
public function create($params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', '/v1/issuing/cardholders', $params, $opts);
|
||||
}
|
||||
/**
|
||||
* Retrieves an Issuing <code>Cardholder</code> object.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Issuing\Cardholder
|
||||
*/
|
||||
public function retrieve($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('get', $this->buildPath('/v1/issuing/cardholders/%s', $id), $params, $opts);
|
||||
}
|
||||
/**
|
||||
* Updates the specified Issuing <code>Cardholder</code> object by setting the
|
||||
* values of the parameters passed. Any parameters not provided will be left
|
||||
* unchanged.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Issuing\Cardholder
|
||||
*/
|
||||
public function update($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/issuing/cardholders/%s', $id), $params, $opts);
|
||||
}
|
||||
}
|
94
dependencies/stripe/stripe-php/lib/Service/Issuing/DisputeService.php
vendored
Normal file
94
dependencies/stripe/stripe-php/lib/Service/Issuing/DisputeService.php
vendored
Normal file
@ -0,0 +1,94 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
namespace WP_Ultimo\Dependencies\Stripe\Service\Issuing;
|
||||
|
||||
class DisputeService extends \WP_Ultimo\Dependencies\Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Returns a list of Issuing <code>Dispute</code> objects. The objects are sorted
|
||||
* in descending order by creation date, with the most recently created object
|
||||
* appearing first.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Collection<\Stripe\Issuing\Dispute>
|
||||
*/
|
||||
public function all($params = null, $opts = null)
|
||||
{
|
||||
return $this->requestCollection('get', '/v1/issuing/disputes', $params, $opts);
|
||||
}
|
||||
/**
|
||||
* Creates an Issuing <code>Dispute</code> object. Individual pieces of evidence
|
||||
* within the <code>evidence</code> object are optional at this point. Stripe only
|
||||
* validates that required evidence is present during submission. Refer to <a
|
||||
* href="/docs/issuing/purchases/disputes#dispute-reasons-and-evidence">Dispute
|
||||
* reasons and evidence</a> for more details about evidence requirements.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Issuing\Dispute
|
||||
*/
|
||||
public function create($params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', '/v1/issuing/disputes', $params, $opts);
|
||||
}
|
||||
/**
|
||||
* Retrieves an Issuing <code>Dispute</code> object.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Issuing\Dispute
|
||||
*/
|
||||
public function retrieve($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('get', $this->buildPath('/v1/issuing/disputes/%s', $id), $params, $opts);
|
||||
}
|
||||
/**
|
||||
* Submits an Issuing <code>Dispute</code> to the card network. Stripe validates
|
||||
* that all evidence fields required for the dispute’s reason are present. For more
|
||||
* details, see <a
|
||||
* href="/docs/issuing/purchases/disputes#dispute-reasons-and-evidence">Dispute
|
||||
* reasons and evidence</a>.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Issuing\Dispute
|
||||
*/
|
||||
public function submit($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/issuing/disputes/%s/submit', $id), $params, $opts);
|
||||
}
|
||||
/**
|
||||
* Updates the specified Issuing <code>Dispute</code> object by setting the values
|
||||
* of the parameters passed. Any parameters not provided will be left unchanged.
|
||||
* Properties on the <code>evidence</code> object can be unset by passing in an
|
||||
* empty string.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Issuing\Dispute
|
||||
*/
|
||||
public function update($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/issuing/disputes/%s', $id), $params, $opts);
|
||||
}
|
||||
}
|
25
dependencies/stripe/stripe-php/lib/Service/Issuing/IssuingServiceFactory.php
vendored
Normal file
25
dependencies/stripe/stripe-php/lib/Service/Issuing/IssuingServiceFactory.php
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
namespace WP_Ultimo\Dependencies\Stripe\Service\Issuing;
|
||||
|
||||
/**
|
||||
* Service factory class for API resources in the Issuing namespace.
|
||||
*
|
||||
* @property AuthorizationService $authorizations
|
||||
* @property CardholderService $cardholders
|
||||
* @property CardService $cards
|
||||
* @property DisputeService $disputes
|
||||
* @property TransactionService $transactions
|
||||
*/
|
||||
class IssuingServiceFactory extends \WP_Ultimo\Dependencies\Stripe\Service\AbstractServiceFactory
|
||||
{
|
||||
/**
|
||||
* @var array<string, string>
|
||||
*/
|
||||
private static $classMap = ['authorizations' => AuthorizationService::class, 'cardholders' => CardholderService::class, 'cards' => CardService::class, 'disputes' => DisputeService::class, 'transactions' => TransactionService::class];
|
||||
protected function getServiceClass($name)
|
||||
{
|
||||
return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null;
|
||||
}
|
||||
}
|
56
dependencies/stripe/stripe-php/lib/Service/Issuing/TransactionService.php
vendored
Normal file
56
dependencies/stripe/stripe-php/lib/Service/Issuing/TransactionService.php
vendored
Normal file
@ -0,0 +1,56 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
namespace WP_Ultimo\Dependencies\Stripe\Service\Issuing;
|
||||
|
||||
class TransactionService extends \WP_Ultimo\Dependencies\Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Returns a list of Issuing <code>Transaction</code> objects. The objects are
|
||||
* sorted in descending order by creation date, with the most recently created
|
||||
* object appearing first.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Collection<\Stripe\Issuing\Transaction>
|
||||
*/
|
||||
public function all($params = null, $opts = null)
|
||||
{
|
||||
return $this->requestCollection('get', '/v1/issuing/transactions', $params, $opts);
|
||||
}
|
||||
/**
|
||||
* Retrieves an Issuing <code>Transaction</code> object.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Issuing\Transaction
|
||||
*/
|
||||
public function retrieve($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('get', $this->buildPath('/v1/issuing/transactions/%s', $id), $params, $opts);
|
||||
}
|
||||
/**
|
||||
* Updates the specified Issuing <code>Transaction</code> object by setting the
|
||||
* values of the parameters passed. Any parameters not provided will be left
|
||||
* unchanged.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Issuing\Transaction
|
||||
*/
|
||||
public function update($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/issuing/transactions/%s', $id), $params, $opts);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user