Authorization.php
6 months ago
Card.php
6 months ago
CardDetails.php
6 months ago
Cardholder.php
6 months ago
Dispute.php
6 months ago
PersonalizationDesign.php
6 months ago
PhysicalBundle.php
6 months ago
Token.php
6 months ago
Transaction.php
6 months ago
PhysicalBundle.php
66 lines
| 1 | <?php |
| 2 | |
| 3 | // File generated from our OpenAPI spec |
| 4 | |
| 5 | namespace AmeliaVendor\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 (object{card_logo: string, carrier_text: string, second_line: string}&\AmeliaVendor\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 \AmeliaVendor\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{ending_before?: string, expand?: string[], limit?: int, starting_after?: string, status?: string, type?: string} $params |
| 34 | * @param null|array|string $opts |
| 35 | * |
| 36 | * @return \AmeliaVendor\Stripe\Collection<PhysicalBundle> of ApiResources |
| 37 | * |
| 38 | * @throws \AmeliaVendor\Stripe\Exception\ApiErrorException if the request fails |
| 39 | */ |
| 40 | public static function all($params = null, $opts = null) |
| 41 | { |
| 42 | $url = static::classUrl(); |
| 43 | |
| 44 | return static::_requestPage($url, \AmeliaVendor\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 | * @return PhysicalBundle |
| 54 | * |
| 55 | * @throws \AmeliaVendor\Stripe\Exception\ApiErrorException if the request fails |
| 56 | */ |
| 57 | public static function retrieve($id, $opts = null) |
| 58 | { |
| 59 | $opts = \AmeliaVendor\Stripe\Util\RequestOptions::parse($opts); |
| 60 | $instance = new static($id, $opts); |
| 61 | $instance->refresh(); |
| 62 | |
| 63 | return $instance; |
| 64 | } |
| 65 | } |
| 66 |