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

stripe / stripe-php / #7242

pending completion
#7242

push

php-coveralls

web-flow
Update generated code for beta (#1537)

* Update generated code for v432

* Update generated code for v432

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>

5 of 5 new or added lines in 3 files covered. (100.0%)

1822 of 2739 relevant lines covered (66.52%)

3.77 hits per line

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

0.0
/lib/Service/Tax/FormService.php
1
<?php
2

3
// File generated from our OpenAPI spec
4

5
namespace Stripe\Service\Tax;
6

7
class FormService extends \Stripe\Service\AbstractService
8
{
9
    /**
10
     * Returns a list of tax forms which were previously created. The tax forms are
11
     * returned in sorted order, with the oldest tax forms appearing first.
12
     *
13
     * @param null|array $params
14
     * @param null|array|\Stripe\Util\RequestOptions $opts
15
     *
16
     * @throws \Stripe\Exception\ApiErrorException if the request fails
17
     *
18
     * @return \Stripe\Collection<\Stripe\Tax\Form>
19
     */
20
    public function all($params = null, $opts = null)
21
    {
22
        return $this->requestCollection('get', '/v1/tax/forms', $params, $opts);
×
23
    }
24

25
    /**
26
     * Download the PDF for a tax form.
27
     *
28
     * @param string $id
29
     * @param callable $readBodyChunkCallable
30
     * @param null|array $params
31
     * @param null|array|\Stripe\Util\RequestOptions $opts
32
     *
33
     * @throws \Stripe\Exception\ApiErrorException if the request fails
34
     *
35
     * @return mixed
36
     */
37
    public function pdf($id, $readBodyChunkCallable, $params = null, $opts = null)
38
    {
39
        $opts = \Stripe\Util\RequestOptions::parse($opts);
×
40
        if (!isset($opts->apiBase)) {
×
41
            $opts->apiBase = $this->getClient()->getFilesBase();
×
42
        }
43

44
        return $this->requestStream('get', $this->buildPath('/v1/tax/forms/%s/pdf', $id), $readBodyChunkCallable, $params, $opts);
×
45
    }
46

47
    /**
48
     * Retrieves the details of a tax form that has previously been created. Supply the
49
     * unique tax form ID that was returned from your previous request, and Stripe will
50
     * return the corresponding tax form information.
51
     *
52
     * @param string $id
53
     * @param null|array $params
54
     * @param null|array|\Stripe\Util\RequestOptions $opts
55
     *
56
     * @throws \Stripe\Exception\ApiErrorException if the request fails
57
     *
58
     * @return \Stripe\Tax\Form
59
     */
60
    public function retrieve($id, $params = null, $opts = null)
61
    {
62
        return $this->request('get', $this->buildPath('/v1/tax/forms/%s', $id), $params, $opts);
×
63
    }
64
}
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

© 2026 Coveralls, Inc