/**
  * @param OpenpayAddressType $object
  * @param array $data
  * @return OpenpayAddressType
  */
 public function populate(OpenpayAddressType $object, array $data)
 {
     $object->setCity($data['city']);
     $object->setCountryCode($data['country_code']);
     $object->setLine1($data['line1']);
     $object->setLine2($data['line2']);
     $object->setLine3($data['line3']);
     $object->setPostalCode($data['postal_code']);
     $object->setState($data['state']);
     return $object;
 }
 /**
  * @param OpenpayAddressType $addressType
  * @return AddressInterface
  */
 protected function populate(OpenpayAddressType $addressType)
 {
     $object = clone $this->object;
     $object->setCity($addressType->getCity());
     $object->setState($addressType->getState());
     $object->setCountryCode($addressType->getCountryCode());
     $object->setLine1($addressType->getLine1());
     $object->setLine2($addressType->getLine2());
     $object->setLine3($addressType->getLine3());
     $object->setPostalCode($addressType->getPostalCode());
     return $object;
 }