PartnerMerchant.php 909 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. namespace Braintree;
  3. /**
  4. * Partner Merchant information that is generated when a partner is connected
  5. * to or disconnected from a user.
  6. *
  7. * Creates an instance of PartnerMerchants
  8. *
  9. * @package Braintree
  10. *
  11. * @property-read string $merchantPublicId
  12. * @property-read string $publicKey
  13. * @property-read string $privateKey
  14. * @property-read string $clientSideEncryptionKey
  15. * @property-read string $partnerMerchantId
  16. */
  17. class PartnerMerchant extends Base
  18. {
  19. protected $_attributes = [];
  20. /**
  21. * @ignore
  22. */
  23. public static function factory($attributes)
  24. {
  25. $instance = new self();
  26. $instance->_initialize($attributes);
  27. return $instance;
  28. }
  29. /**
  30. * @ignore
  31. */
  32. protected function _initialize($attributes)
  33. {
  34. $this->_attributes = $attributes;
  35. }
  36. }
  37. class_alias('Braintree\PartnerMerchant', 'Braintree_PartnerMerchant');