Files
Chamilo/vendor/stripe/stripe-php/lib/Service/TestHelpers/Issuing/CardService.php
2025-08-14 22:41:49 +02:00

100 lines
3.4 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
// File generated from our OpenAPI spec
namespace Stripe\Service\TestHelpers\Issuing;
/**
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
class CardService extends \Stripe\Service\AbstractService
{
/**
* Updates the shipping status of the specified Issuing <code>Card</code> object to
* <code>delivered</code>.
*
* @param string $id
* @param null|array{expand?: string[]} $params
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @return \Stripe\Issuing\Card
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*/
public function deliverCard($id, $params = null, $opts = null)
{
return $this->request('post', $this->buildPath('/v1/test_helpers/issuing/cards/%s/shipping/deliver', $id), $params, $opts);
}
/**
* Updates the shipping status of the specified Issuing <code>Card</code> object to
* <code>failure</code>.
*
* @param string $id
* @param null|array{expand?: string[]} $params
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @return \Stripe\Issuing\Card
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*/
public function failCard($id, $params = null, $opts = null)
{
return $this->request('post', $this->buildPath('/v1/test_helpers/issuing/cards/%s/shipping/fail', $id), $params, $opts);
}
/**
* Updates the shipping status of the specified Issuing <code>Card</code> object to
* <code>returned</code>.
*
* @param string $id
* @param null|array{expand?: string[]} $params
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @return \Stripe\Issuing\Card
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*/
public function returnCard($id, $params = null, $opts = null)
{
return $this->request('post', $this->buildPath('/v1/test_helpers/issuing/cards/%s/shipping/return', $id), $params, $opts);
}
/**
* Updates the shipping status of the specified Issuing <code>Card</code> object to
* <code>shipped</code>.
*
* @param string $id
* @param null|array{expand?: string[]} $params
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @return \Stripe\Issuing\Card
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*/
public function shipCard($id, $params = null, $opts = null)
{
return $this->request('post', $this->buildPath('/v1/test_helpers/issuing/cards/%s/shipping/ship', $id), $params, $opts);
}
/**
* Updates the shipping status of the specified Issuing <code>Card</code> object to
* <code>submitted</code>. This method requires Stripe Version 2024-09-30.acacia
* or later.
*
* @param string $id
* @param null|array{expand?: string[]} $params
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @return \Stripe\Issuing\Card
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*/
public function submitCard($id, $params = null, $opts = null)
{
return $this->request('post', $this->buildPath('/v1/test_helpers/issuing/cards/%s/shipping/submit', $id), $params, $opts);
}
}