/**
  * @param CustomerInterface $customerDataModel
  * @return string
  */
 protected function getOpenpayCustomerId(CustomerInterface $customerDataModel)
 {
     $openpayCustomer = $customerDataModel->getCustomAttribute(UpgradeData::OPENPAY_CUSTOMER_ID_CUSTOM_ATTRIBUTE);
     $openpayCustomerId = is_null($openpayCustomer) ? null : $openpayCustomer->getValue();
     return $openpayCustomerId;
 }
 /**
  * @param CustomerInterface $customerDataObject
  * @return string
  */
 public function getOpenpayCustomerId(CustomerInterface $customerDataObject)
 {
     $openpayCustomer = $customerDataObject->getCustomAttribute(UpgradeData::OPENPAY_CUSTOMER_ID_CUSTOM_ATTRIBUTE);
     $openpayCustomerId = $openpayCustomer ? $openpayCustomer->getValue(UpgradeData::OPENPAY_CUSTOMER_ID_CUSTOM_ATTRIBUTE) : null;
     return $openpayCustomerId;
 }