VisaCheckoutCardDetails.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. namespace Braintree\Transaction;
  3. use Braintree\Instance;
  4. /**
  5. * VisaCheckoutCard details from a transaction
  6. * creates an instance of VisaCheckoutCardDetails
  7. *
  8. * @package Braintree
  9. * @subpackage Transaction
  10. *
  11. * @property-read string $bin
  12. * @property-read string $callId
  13. * @property-read string $cardType
  14. * @property-read string $cardholderName
  15. * @property-read string $commercial
  16. * @property-read string $countryOfIssuance
  17. * @property-read string $customerId
  18. * @property-read string $customerLocation
  19. * @property-read string $debit
  20. * @property-read string $durbinRegulated
  21. * @property-read string $expirationDate
  22. * @property-read string $expirationMonth
  23. * @property-read string $expirationYear
  24. * @property-read string $healthcare
  25. * @property-read string $imageUrl
  26. * @property-read string $issuingBank
  27. * @property-read string $last4
  28. * @property-read string $maskedNumber
  29. * @property-read string $payroll
  30. * @property-read string $prepaid
  31. * @property-read string $productId
  32. * @property-read string $token
  33. * @property-read string $updatedAt
  34. */
  35. class VisaCheckoutCardDetails extends Instance
  36. {
  37. protected $_attributes = [];
  38. /**
  39. * @ignore
  40. */
  41. public function __construct($attributes)
  42. {
  43. parent::__construct($attributes);
  44. $this->_attributes['expirationDate'] = $this->expirationMonth . '/' . $this->expirationYear;
  45. $this->_attributes['maskedNumber'] = $this->bin . '******' . $this->last4;
  46. }
  47. }
  48. class_alias('Braintree\Transaction\VisaCheckoutCardDetails', 'Braintree_Transaction_VisaCheckoutCardDetails');