• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stripe / stripe-php / 9617526853

21 Jun 2024 05:31PM UTC coverage: 60.322% (-0.02%) from 60.343%
9617526853

Pull #1712

github

web-flow
Merge 4da7796bf into 775efd5a3
Pull Request #1712: Update generated code for beta

0 of 2 new or added lines in 1 file covered. (0.0%)

102 existing lines in 8 files now uncovered.

3486 of 5779 relevant lines covered (60.32%)

2.19 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/lib/Service/TestHelpers/Issuing/AuthorizationService.php
1
<?php
2

3
// File generated from our OpenAPI spec
4

5
namespace Stripe\Service\TestHelpers\Issuing;
6

7
/**
8
 * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
9
 * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
10
 */
11
class AuthorizationService extends \Stripe\Service\AbstractService
12
{
13
    /**
14
     * Capture a test-mode authorization.
15
     *
16
     * @param string $id
17
     * @param null|array $params
18
     * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
19
     *
20
     * @throws \Stripe\Exception\ApiErrorException if the request fails
21
     *
22
     * @return \Stripe\Issuing\Authorization
23
     */
24
    public function capture($id, $params = null, $opts = null)
×
25
    {
26
        return $this->request('post', $this->buildPath('/v1/test_helpers/issuing/authorizations/%s/capture', $id), $params, $opts);
×
27
    }
28

29
    /**
30
     * Create a test-mode authorization.
31
     *
32
     * @param null|array $params
33
     * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
34
     *
35
     * @throws \Stripe\Exception\ApiErrorException if the request fails
36
     *
37
     * @return \Stripe\Issuing\Authorization
38
     */
39
    public function create($params = null, $opts = null)
×
40
    {
41
        return $this->request('post', '/v1/test_helpers/issuing/authorizations', $params, $opts);
×
42
    }
43

44
    /**
45
     * Expire a test-mode Authorization.
46
     *
47
     * @param string $id
48
     * @param null|array $params
49
     * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
50
     *
51
     * @throws \Stripe\Exception\ApiErrorException if the request fails
52
     *
53
     * @return \Stripe\Issuing\Authorization
54
     */
55
    public function expire($id, $params = null, $opts = null)
×
56
    {
57
        return $this->request('post', $this->buildPath('/v1/test_helpers/issuing/authorizations/%s/expire', $id), $params, $opts);
×
58
    }
59

60
    /**
61
     * Finalize the amount on an Authorization prior to capture, when the initial
62
     * authorization was for an estimated amount.
63
     *
64
     * @param string $id
65
     * @param null|array $params
66
     * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
67
     *
68
     * @throws \Stripe\Exception\ApiErrorException if the request fails
69
     *
70
     * @return \Stripe\Issuing\Authorization
71
     */
NEW
72
    public function finalizeAmount($id, $params = null, $opts = null)
×
73
    {
NEW
74
        return $this->request('post', $this->buildPath('/v1/test_helpers/issuing/authorizations/%s/finalize_amount', $id), $params, $opts);
×
75
    }
76

77
    /**
78
     * Increment a test-mode Authorization.
79
     *
80
     * @param string $id
81
     * @param null|array $params
82
     * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
83
     *
84
     * @throws \Stripe\Exception\ApiErrorException if the request fails
85
     *
86
     * @return \Stripe\Issuing\Authorization
87
     */
88
    public function increment($id, $params = null, $opts = null)
×
89
    {
90
        return $this->request('post', $this->buildPath('/v1/test_helpers/issuing/authorizations/%s/increment', $id), $params, $opts);
×
91
    }
92

93
    /**
94
     * Reverse a test-mode Authorization.
95
     *
96
     * @param string $id
97
     * @param null|array $params
98
     * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
99
     *
100
     * @throws \Stripe\Exception\ApiErrorException if the request fails
101
     *
102
     * @return \Stripe\Issuing\Authorization
103
     */
104
    public function reverse($id, $params = null, $opts = null)
×
105
    {
106
        return $this->request('post', $this->buildPath('/v1/test_helpers/issuing/authorizations/%s/reverse', $id), $params, $opts);
×
107
    }
108
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2024 Coveralls, Inc