/**
  * Transfer constructor.
  *
  * @param float             $amount
  * @param VendorInterface $vendorInterface
  * @param string          $privateLabel
  * @param string          $publicLabel
  */
 public function __construct($amount, VendorInterface $vendorInterface, $privateLabel, $publicLabel)
 {
     $this->amount = $amount;
     $this->recipientUserId = $vendorInterface->getHiPayId();
     $this->recipientUsername = $vendorInterface->getEmail();
     $this->privateLabel = $privateLabel;
     $this->publicLabel = $publicLabel;
 }
 /**
  * Add sub account informations.
  *
  * @param array           $parameters the parameters array to add the info to
  * @param VendorInterface $vendor     the vendor from which subAccount info is fetched from
  *
  * @return array
  */
 protected function mergeSubAccountParameters(VendorInterface $vendor, $parameters = array())
 {
     $parameters += array('wsSubAccountLogin' => $vendor->getEmail(), 'wsSubAccountId' => $vendor->getHiPayId());
     return $parameters;
 }
 /**
  * Return the values who should't
  * change after the registration of the hipay wallet.
  *
  * @param VendorInterface $vendor
  */
 protected function getImmutableValues(VendorInterface $vendor)
 {
     $previousValues['email'] = $vendor->getEmail();
     $previousValues['hipayId'] = $vendor->getHiPayId();
     $previousValues['miraklId'] = $vendor->getMiraklId();
     return $previousValues;
 }