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

stripe / stripe-php / 10839306904

12 Sep 2024 09:53PM UTC coverage: 63.944% (-0.3%) from 64.254%
10839306904

push

github

web-flow
Update generated code (#1737)

* Update generated code for v1232

* Update generated code for v1233

* Update generated code for v1235

* Update generated code for v1238

* Update generated code for v1243

* Update generated code for v1244

* Update generated code for v1246

* Update generated code for v1252

* Update generated code for v1255

* Update generated code for v1260

---------

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

0 of 26 new or added lines in 2 files covered. (0.0%)

3444 of 5386 relevant lines covered (63.94%)

2.24 hits per line

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

0.0
/lib/Service/InvoiceRenderingTemplateService.php
1
<?php
2

3
// File generated from our OpenAPI spec
4

5
namespace Stripe\Service;
6

7
/**
8
 * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
9
 * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
10
 */
11
class InvoiceRenderingTemplateService extends \Stripe\Service\AbstractService
12
{
13
    /**
14
     * List all templates, ordered by creation date, with the most recently created
15
     * template appearing first.
16
     *
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\Collection<\Stripe\InvoiceRenderingTemplate>
23
     */
NEW
24
    public function all($params = null, $opts = null)
×
25
    {
NEW
26
        return $this->requestCollection('get', '/v1/invoice_rendering_templates', $params, $opts);
×
27
    }
28

29
    /**
30
     * Updates the status of an invoice rendering template to ‘archived’ so no new
31
     * Stripe objects (customers, invoices, etc.) can reference it. The template can
32
     * also no longer be updated. However, if the template is already set on a Stripe
33
     * object, it will continue to be applied on invoices generated by it.
34
     *
35
     * @param string $id
36
     * @param null|array $params
37
     * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
38
     *
39
     * @throws \Stripe\Exception\ApiErrorException if the request fails
40
     *
41
     * @return \Stripe\InvoiceRenderingTemplate
42
     */
NEW
43
    public function archive($id, $params = null, $opts = null)
×
44
    {
NEW
45
        return $this->request('post', $this->buildPath('/v1/invoice_rendering_templates/%s/archive', $id), $params, $opts);
×
46
    }
47

48
    /**
49
     * Retrieves an invoice rendering template with the given ID. It by default returns
50
     * the latest version of the template. Optionally, specify a version to see
51
     * previous versions.
52
     *
53
     * @param string $id
54
     * @param null|array $params
55
     * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
56
     *
57
     * @throws \Stripe\Exception\ApiErrorException if the request fails
58
     *
59
     * @return \Stripe\InvoiceRenderingTemplate
60
     */
NEW
61
    public function retrieve($id, $params = null, $opts = null)
×
62
    {
NEW
63
        return $this->request('get', $this->buildPath('/v1/invoice_rendering_templates/%s', $id), $params, $opts);
×
64
    }
65

66
    /**
67
     * Unarchive an invoice rendering template so it can be used on new Stripe objects
68
     * again.
69
     *
70
     * @param string $id
71
     * @param null|array $params
72
     * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
73
     *
74
     * @throws \Stripe\Exception\ApiErrorException if the request fails
75
     *
76
     * @return \Stripe\InvoiceRenderingTemplate
77
     */
NEW
78
    public function unarchive($id, $params = null, $opts = null)
×
79
    {
NEW
80
        return $this->request('post', $this->buildPath('/v1/invoice_rendering_templates/%s/unarchive', $id), $params, $opts);
×
81
    }
82
}
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