Authorization.php
6 years ago
Card.php
6 years ago
CardDetails.php
6 years ago
Cardholder.php
6 years ago
Dispute.php
6 years ago
Transaction.php
6 years ago
Card.php
52 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Stripe\Issuing; |
| 4 | |
| 5 | /** |
| 6 | * Class Card |
| 7 | * |
| 8 | * @property string $id |
| 9 | * @property string $object |
| 10 | * @property mixed $authorization_controls |
| 11 | * @property mixed $billing |
| 12 | * @property string $brand |
| 13 | * @property Cardholder $cardholder |
| 14 | * @property int $created |
| 15 | * @property string $currency |
| 16 | * @property int $exp_month |
| 17 | * @property int $exp_year |
| 18 | * @property string $last4 |
| 19 | * @property bool $livemode |
| 20 | * @property \Stripe\StripeObject $metadata |
| 21 | * @property string $name |
| 22 | * @property mixed $shipping |
| 23 | * @property string $status |
| 24 | * @property string $type |
| 25 | * |
| 26 | * @package Stripe\Issuing |
| 27 | */ |
| 28 | class Card extends \Stripe\ApiResource |
| 29 | { |
| 30 | const OBJECT_NAME = "issuing.card"; |
| 31 | |
| 32 | use \Stripe\ApiOperations\All; |
| 33 | use \Stripe\ApiOperations\Create; |
| 34 | use \Stripe\ApiOperations\Retrieve; |
| 35 | use \Stripe\ApiOperations\Update; |
| 36 | |
| 37 | /** |
| 38 | * @param array|null $params |
| 39 | * @param array|string|null $options |
| 40 | * |
| 41 | * @return CardDetails The card details associated with that issuing card. |
| 42 | */ |
| 43 | public function details($params = null, $options = null) |
| 44 | { |
| 45 | $url = $this->instanceUrl() . '/details'; |
| 46 | list($response, $opts) = $this->_request('get', $url, $params, $options); |
| 47 | $obj = \Stripe\Util\Util::convertToStripeObject($response, $opts); |
| 48 | $obj->setLastResponse($response); |
| 49 | return $obj; |
| 50 | } |
| 51 | } |
| 52 |