public function getData()
{
$this->setDefaults();
$this->validate('partner', '_input_charset', 'refund_date', 'batch_no', 'refund_items');
$this->validateOne('seller_user_id', 'seller_email');
$this->setBatchNum(count($this->getRefundItems()));
$this->setRefundDetail($this->getDetailData());
$data = ['service' => $this->service, 'partner' => $this->getPartner(), 'notify_url' => $this->getNotifyUrl(), 'seller_user_id' => $this->getPartner(), 'refund_date' => $this->getRefundDate(), 'batch_no' => $this->getBatchNo(), 'batch_num' => $this->getBatchNum(), 'detail_data' => $this->getDetailData(), '_input_charset' => $this->getInputCharset()];
$data['sign'] = $this->sign($data, $this->getSignType());
$data['sign_type'] = $this->getSignType();
return $data;
}