getInfoInstance()->setPoNumber($data->getPoNumber()); return $this; } /** * Validate payment method information object * * @return $this * @throws LocalizedException * @api * @since 100.2.3 */ public function validate() { parent::validate(); if (empty($this->getInfoInstance()->getPoNumber())) { throw new LocalizedException(__('Purchase order number is a required field.')); } return $this; } }