Card.php 1.3 KB

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