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

stripe / stripe-php / 9308192295

30 May 2024 07:35PM UTC coverage: 65.24% (-0.9%) from 66.176%
9308192295

Pull #1701

github

web-flow
Merge cd30bb2f4 into 901f195e4
Pull Request #1701: Demagiced crudl operation

1080 of 1682 new or added lines in 106 files covered. (64.21%)

15 existing lines in 3 files now uncovered.

3444 of 5279 relevant lines covered (65.24%)

2.29 hits per line

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

0.0
/lib/Issuing/PhysicalBundle.php
1
<?php
2

3
// File generated from our OpenAPI spec
4

5
namespace Stripe\Issuing;
6

7
/**
8
 * A Physical Bundle represents the bundle of physical items - card stock, carrier letter, and envelope - that is shipped to a cardholder when you create a physical card.
9
 *
10
 * @property string $id Unique identifier for the object.
11
 * @property string $object String representing the object's type. Objects of the same type share the same value.
12
 * @property null|\Stripe\StripeObject $features
13
 * @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
14
 * @property string $name Friendly display name.
15
 * @property string $status Whether this physical bundle can be used to create cards.
16
 * @property string $type Whether this physical bundle is a standard Stripe offering or custom-made for you.
17
 */
18
class PhysicalBundle extends \Stripe\ApiResource
19
{
20
    const OBJECT_NAME = 'issuing.physical_bundle';
21

22
    const STATUS_ACTIVE = 'active';
23
    const STATUS_INACTIVE = 'inactive';
24
    const STATUS_REVIEW = 'review';
25

26
    const TYPE_CUSTOM = 'custom';
27
    const TYPE_STANDARD = 'standard';
28

29
    /**
30
     * Returns a list of physical bundle objects. The objects are sorted in descending
31
     * order by creation date, with the most recently created object appearing first.
32
     *
33
     * @param null|array $params
34
     * @param null|array|string $opts
35
     *
36
     * @throws \Stripe\Exception\ApiErrorException if the request fails
37
     *
38
     * @return \Stripe\Collection<\Stripe\Issuing\PhysicalBundle> of ApiResources
39
     */
NEW
40
    public static function all($params = null, $opts = null)
×
41
    {
NEW
42
        $url = static::classUrl();
×
43

NEW
44
        return static::_requestPage($url, \Stripe\Collection::class, $params, $opts);
×
45
    }
46

47
    /**
48
     * Retrieves a physical bundle object.
49
     *
50
     * @param array|string $id the ID of the API resource to retrieve, or an options array containing an `id` key
51
     * @param null|array|string $opts
52
     *
53
     * @throws \Stripe\Exception\ApiErrorException if the request fails
54
     *
55
     * @return \Stripe\Issuing\PhysicalBundle
56
     */
NEW
57
    public static function retrieve($id, $opts = null)
×
58
    {
NEW
59
        $opts = \Stripe\Util\RequestOptions::parse($opts);
×
NEW
60
        $instance = new static($id, $opts);
×
NEW
61
        $instance->refresh();
×
62

NEW
63
        return $instance;
×
64
    }
65
}
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