/**
  * @param OpenpayStoreType $storeType
  * @return StoreInterface
  */
 protected function populate(OpenpayStoreType $storeType)
 {
     $object = clone $this->object;
     $object->setBarcodeUrl($storeType->getBarcodeUrl());
     $object->setReference($storeType->getReference());
     return $object;
 }
 /**
  * @param OpenpayStoreType $object
  * @param array $data
  * @return OpenpayStoreType
  */
 public function populate(OpenpayStoreType $object, array $data)
 {
     $object->setReference($data['reference']);
     $object->setBarcodeUrl($data['barcode_url']);
     return $object;
 }