dolibarr/htdocs/includes/stripe/stripe-php/lib/Service/Terminal/ConfigurationService.php

87 lines
2.6 KiB
PHP
Raw Permalink Normal View History

2021-01-03 23:37:44 +01:00
<?php
// File generated from our OpenAPI spec
2023-04-24 18:42:04 +02:00
namespace Stripe\Service\Terminal;
2021-01-03 23:37:44 +01:00
2023-04-24 18:42:04 +02:00
class ConfigurationService extends \Stripe\Service\AbstractService
2021-01-03 23:37:44 +01:00
{
/**
2023-04-24 18:42:04 +02:00
* Returns a list of <code>Configuration</code> objects.
2021-01-03 23:37:44 +01:00
*
* @param null|array $params
* @param null|array|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
2023-04-24 18:42:04 +02:00
* @return \Stripe\Collection<\Stripe\Terminal\Configuration>
2021-01-03 23:37:44 +01:00
*/
public function all($params = null, $opts = null)
{
2023-04-24 18:42:04 +02:00
return $this->requestCollection('get', '/v1/terminal/configurations', $params, $opts);
2021-01-03 23:37:44 +01:00
}
/**
2023-04-24 18:42:04 +02:00
* Creates a new <code>Configuration</code> object.
2021-01-03 23:37:44 +01:00
*
* @param null|array $params
* @param null|array|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
2023-04-24 18:42:04 +02:00
* @return \Stripe\Terminal\Configuration
2021-01-03 23:37:44 +01:00
*/
public function create($params = null, $opts = null)
{
2023-04-24 18:42:04 +02:00
return $this->request('post', '/v1/terminal/configurations', $params, $opts);
2021-01-03 23:37:44 +01:00
}
/**
2023-04-24 18:42:04 +02:00
* Deletes a <code>Configuration</code> object.
2021-01-03 23:37:44 +01:00
*
* @param string $id
* @param null|array $params
* @param null|array|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
2023-04-24 18:42:04 +02:00
* @return \Stripe\Terminal\Configuration
2021-01-03 23:37:44 +01:00
*/
public function delete($id, $params = null, $opts = null)
{
2023-04-24 18:42:04 +02:00
return $this->request('delete', $this->buildPath('/v1/terminal/configurations/%s', $id), $params, $opts);
2021-01-03 23:37:44 +01:00
}
/**
2023-04-24 18:42:04 +02:00
* Retrieves a <code>Configuration</code> object.
2021-01-03 23:37:44 +01:00
*
* @param string $id
* @param null|array $params
* @param null|array|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
2023-04-24 18:42:04 +02:00
* @return \Stripe\Terminal\Configuration
2021-01-03 23:37:44 +01:00
*/
public function retrieve($id, $params = null, $opts = null)
{
2023-04-24 18:42:04 +02:00
return $this->request('get', $this->buildPath('/v1/terminal/configurations/%s', $id), $params, $opts);
2021-01-03 23:37:44 +01:00
}
/**
2023-04-24 18:42:04 +02:00
* Updates a new <code>Configuration</code> object.
2021-01-03 23:37:44 +01:00
*
* @param string $id
* @param null|array $params
* @param null|array|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
2023-04-24 18:42:04 +02:00
* @return \Stripe\Terminal\Configuration
2021-01-03 23:37:44 +01:00
*/
public function update($id, $params = null, $opts = null)
{
2023-04-24 18:42:04 +02:00
return $this->request('post', $this->buildPath('/v1/terminal/configurations/%s', $id), $params, $opts);
2021-01-03 23:37:44 +01:00
}
}