AndroidPayCardDetails.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. namespace Braintree\Transaction;
  3. use Braintree\Instance;
  4. /**
  5. * Android Pay card details from a transaction
  6. *
  7. * @package Braintree
  8. * @subpackage Transaction
  9. */
  10. /**
  11. * creates an instance of AndroidPayCardDetails
  12. *
  13. *
  14. * @package Braintree
  15. * @subpackage Transaction
  16. *
  17. * @property-read string $bin
  18. * @property-read string $default
  19. * @property-read string $expirationMonth
  20. * @property-read string $expirationYear
  21. * @property-read string $googleTransactionId
  22. * @property-read string $imageUrl
  23. * @property-read string $sourceCardLast4
  24. * @property-read string $sourceCardType
  25. * @property-read string $sourceDescription
  26. * @property-read string $token
  27. * @property-read string $virtualCardLast4
  28. * @property-read string $virtualCardType
  29. */
  30. class AndroidPayCardDetails extends Instance
  31. {
  32. protected $_attributes = [];
  33. /**
  34. * @ignore
  35. */
  36. public function __construct($attributes)
  37. {
  38. parent::__construct($attributes);
  39. $this->_attributes['cardType'] = $this->virtualCardType;
  40. $this->_attributes['last4'] = $this->virtualCardLast4;
  41. }
  42. }
  43. class_alias('Braintree\Transaction\AndroidPayCardDetails', 'Braintree_Transaction_AndroidPayCardDetails');