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

stripe / stripe-php / 7050356852

30 Nov 2023 05:54PM UTC coverage: 69.002% (-0.5%) from 69.503%
7050356852

push

github

web-flow
Update generated code (#1611)

* Update generated code for v681

* Update generated code for v682

* Update generated code for v684

* Update generated code for v685

* Update generated code for v686

* Update generated code for v689

---------

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

0 of 25 new or added lines in 5 files covered. (0.0%)

2393 of 3468 relevant lines covered (69.0%)

3.49 hits per line

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

0.0
/lib/Service/Climate/OrderService.php
1
<?php
2

3
// File generated from our OpenAPI spec
4

5
namespace Stripe\Service\Climate;
6

7
class OrderService extends \Stripe\Service\AbstractService
8
{
9
    /**
10
     * Lists all Climate order objects. The orders are returned sorted by creation
11
     * date, with the most recently created orders 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\Climate\Order>
19
     */
NEW
20
    public function all($params = null, $opts = null)
×
21
    {
NEW
22
        return $this->requestCollection('get', '/v1/climate/orders', $params, $opts);
×
23
    }
24

25
    /**
26
     * Cancels a Climate order. You can cancel an order within 30 days of creation.
27
     * Stripe refunds the reservation <code>amount_subtotal</code>, but not the
28
     * <code>amount_fees</code> for user-triggered cancellations. Frontier might cancel
29
     * reservations if suppliers fail to deliver. If Frontier cancels the reservation,
30
     * Stripe provides 90 days advance notice and refunds the
31
     * <code>amount_total</code>.
32
     *
33
     * @param string $id
34
     * @param null|array $params
35
     * @param null|array|\Stripe\Util\RequestOptions $opts
36
     *
37
     * @throws \Stripe\Exception\ApiErrorException if the request fails
38
     *
39
     * @return \Stripe\Climate\Order
40
     */
NEW
41
    public function cancel($id, $params = null, $opts = null)
×
42
    {
NEW
43
        return $this->request('post', $this->buildPath('/v1/climate/orders/%s/cancel', $id), $params, $opts);
×
44
    }
45

46
    /**
47
     * Creates a Climate order object for a given Climate product. The order will be
48
     * processed immediately after creation and payment will be deducted your Stripe
49
     * balance.
50
     *
51
     * @param null|array $params
52
     * @param null|array|\Stripe\Util\RequestOptions $opts
53
     *
54
     * @throws \Stripe\Exception\ApiErrorException if the request fails
55
     *
56
     * @return \Stripe\Climate\Order
57
     */
NEW
58
    public function create($params = null, $opts = null)
×
59
    {
NEW
60
        return $this->request('post', '/v1/climate/orders', $params, $opts);
×
61
    }
62

63
    /**
64
     * Retrieves the details of a Climate order object with the given ID.
65
     *
66
     * @param string $id
67
     * @param null|array $params
68
     * @param null|array|\Stripe\Util\RequestOptions $opts
69
     *
70
     * @throws \Stripe\Exception\ApiErrorException if the request fails
71
     *
72
     * @return \Stripe\Climate\Order
73
     */
NEW
74
    public function retrieve($id, $params = null, $opts = null)
×
75
    {
NEW
76
        return $this->request('get', $this->buildPath('/v1/climate/orders/%s', $id), $params, $opts);
×
77
    }
78

79
    /**
80
     * Updates the specified order by setting the values of the parameters passed.
81
     *
82
     * @param string $id
83
     * @param null|array $params
84
     * @param null|array|\Stripe\Util\RequestOptions $opts
85
     *
86
     * @throws \Stripe\Exception\ApiErrorException if the request fails
87
     *
88
     * @return \Stripe\Climate\Order
89
     */
NEW
90
    public function update($id, $params = null, $opts = null)
×
91
    {
NEW
92
        return $this->request('post', $this->buildPath('/v1/climate/orders/%s', $id), $params, $opts);
×
93
    }
94
}
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