PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.18.0
GiveWP – Donation Plugin and Fundraising Platform v4.18.0
4.18.0 4.17.0 4.16.9 4.16.8.1 4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 All 257 releases
give / vendor / stripe / stripe-php / lib / Service / TestHelpers / TestClockService.php

TestClockService.php in GiveWP – Donation Plugin and Fundraising Platform 4.18.0, at vendor/stripe/stripe-php/lib/Service/TestHelpers/TestClockService.php

88 lines 2.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 // File generated from our OpenAPI spec
4
5 namespace Stripe\Service\TestHelpers;
6
7 class TestClockService extends \Stripe\Service\AbstractService
8 {
9 /**
10 * Starts advancing a test clock to a specified time in the future. Advancement is
11 * done when status changes to <code>Ready</code>.
12 *
13 * @param string $id
14 * @param null|array $params
15 * @param null|array|\Stripe\Util\RequestOptions $opts
16 *
17 * @throws \Stripe\Exception\ApiErrorException if the request fails
18 *
19 * @return \Stripe\TestHelpers\TestClock
20 */
21 public function advance($id, $params = null, $opts = null)
22 {
23 return $this->request('post', $this->buildPath('/v1/test_helpers/test_clocks/%s/advance', $id), $params, $opts);
24 }
25
26 /**
27 * Returns a list of your test clocks.
28 *
29 * @param null|array $params
30 * @param null|array|\Stripe\Util\RequestOptions $opts
31 *
32 * @throws \Stripe\Exception\ApiErrorException if the request fails
33 *
34 * @return \Stripe\Collection<\Stripe\TestHelpers\TestClock>
35 */
36 public function all($params = null, $opts = null)
37 {
38 return $this->requestCollection('get', '/v1/test_helpers/test_clocks', $params, $opts);
39 }
40
41 /**
42 * Creates a new test clock that can be attached to new customers and quotes.
43 *
44 * @param null|array $params
45 * @param null|array|\Stripe\Util\RequestOptions $opts
46 *
47 * @throws \Stripe\Exception\ApiErrorException if the request fails
48 *
49 * @return \Stripe\TestHelpers\TestClock
50 */
51 public function create($params = null, $opts = null)
52 {
53 return $this->request('post', '/v1/test_helpers/test_clocks', $params, $opts);
54 }
55
56 /**
57 * Deletes a test clock.
58 *
59 * @param string $id
60 * @param null|array $params
61 * @param null|array|\Stripe\Util\RequestOptions $opts
62 *
63 * @throws \Stripe\Exception\ApiErrorException if the request fails
64 *
65 * @return \Stripe\TestHelpers\TestClock
66 */
67 public function delete($id, $params = null, $opts = null)
68 {
69 return $this->request('delete', $this->buildPath('/v1/test_helpers/test_clocks/%s', $id), $params, $opts);
70 }
71
72 /**
73 * Retrieves a test clock.
74 *
75 * @param string $id
76 * @param null|array $params
77 * @param null|array|\Stripe\Util\RequestOptions $opts
78 *
79 * @throws \Stripe\Exception\ApiErrorException if the request fails
80 *
81 * @return \Stripe\TestHelpers\TestClock
82 */
83 public function retrieve($id, $params = null, $opts = null)
84 {
85 return $this->request('get', $this->buildPath('/v1/test_helpers/test_clocks/%s', $id), $params, $opts);
86 }
87 }
88