Authorization.php
2 months ago
Card.php
2 months ago
CardDetails.php
2 months ago
Cardholder.php
2 months ago
Dispute.php
2 months ago
PersonalizationDesign.php
2 months ago
PhysicalBundle.php
2 months ago
Token.php
2 months ago
Transaction.php
2 months ago
PhysicalBundle.php
59 lines
| 1 | <?php |
| 2 | |
| 3 | // File generated from our OpenAPI spec |
| 4 | namespace ProfilePressVendor\Stripe\Issuing; |
| 5 | |
| 6 | /** |
| 7 | * 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. |
| 8 | * |
| 9 | * @property string $id Unique identifier for the object. |
| 10 | * @property string $object String representing the object's type. Objects of the same type share the same value. |
| 11 | * @property \Stripe\StripeObject $features |
| 12 | * @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. |
| 13 | * @property string $name Friendly display name. |
| 14 | * @property string $status Whether this physical bundle can be used to create cards. |
| 15 | * @property string $type Whether this physical bundle is a standard Stripe offering or custom-made for you. |
| 16 | */ |
| 17 | class PhysicalBundle extends \ProfilePressVendor\Stripe\ApiResource |
| 18 | { |
| 19 | const OBJECT_NAME = 'issuing.physical_bundle'; |
| 20 | const STATUS_ACTIVE = 'active'; |
| 21 | const STATUS_INACTIVE = 'inactive'; |
| 22 | const STATUS_REVIEW = 'review'; |
| 23 | const TYPE_CUSTOM = 'custom'; |
| 24 | const TYPE_STANDARD = 'standard'; |
| 25 | /** |
| 26 | * Returns a list of physical bundle objects. The objects are sorted in descending |
| 27 | * order by creation date, with the most recently created object appearing first. |
| 28 | * |
| 29 | * @param null|array $params |
| 30 | * @param null|array|string $opts |
| 31 | * |
| 32 | * @throws \Stripe\Exception\ApiErrorException if the request fails |
| 33 | * |
| 34 | * @return \Stripe\Collection<\Stripe\Issuing\PhysicalBundle> of ApiResources |
| 35 | */ |
| 36 | public static function all($params = null, $opts = null) |
| 37 | { |
| 38 | $url = static::classUrl(); |
| 39 | return static::_requestPage($url, \ProfilePressVendor\Stripe\Collection::class, $params, $opts); |
| 40 | } |
| 41 | /** |
| 42 | * Retrieves a physical bundle object. |
| 43 | * |
| 44 | * @param array|string $id the ID of the API resource to retrieve, or an options array containing an `id` key |
| 45 | * @param null|array|string $opts |
| 46 | * |
| 47 | * @throws \Stripe\Exception\ApiErrorException if the request fails |
| 48 | * |
| 49 | * @return \Stripe\Issuing\PhysicalBundle |
| 50 | */ |
| 51 | public static function retrieve($id, $opts = null) |
| 52 | { |
| 53 | $opts = \ProfilePressVendor\Stripe\Util\RequestOptions::parse($opts); |
| 54 | $instance = new static($id, $opts); |
| 55 | $instance->refresh(); |
| 56 | return $instance; |
| 57 | } |
| 58 | } |
| 59 |