예제 #1
0
파일: DebitGet.php 프로젝트: paynl/sdk
 public function getData()
 {
     if (empty($this->_mandateId)) {
         throw new Required('mandateId');
     }
     $this->data['mandateId'] = $this->_mandateId;
     return parent::getData();
 }
예제 #2
0
파일: Delete.php 프로젝트: paynl/sdk
 protected function getData()
 {
     if (empty($this->_mandateId)) {
         throw new Required('mandateId');
     } else {
         $this->data['mandateId'] = $this->_mandateId;
     }
     return parent::getData();
 }
예제 #3
0
파일: MandateDebit.php 프로젝트: paynl/sdk
 protected function getData()
 {
     if (empty($this->_mandateId)) {
         throw new Required('mandateId');
     } else {
         $this->data['mandateId'] = $this->_mandateId;
     }
     if (!empty($this->_amount)) {
         $this->data['amount'] = (int) $this->_amount;
     }
     if (!empty($this->_description)) {
         $this->data['description'] = $this->_description;
     }
     if (!empty($this->_processDate)) {
         $this->data['processDate'] = $this->_processDate->format('d-m-Y');
     }
     return parent::getData();
 }
예제 #4
0
파일: Update.php 프로젝트: paynl/sdk
 protected function getData()
 {
     if (empty($this->_mandateId)) {
         throw new Required('mandateId');
     } else {
         $this->data['mandateId'];
     }
     if (!empty($this->_amount)) {
         $this->data['amount'] = $this->_amount;
     }
     if (!empty($this->_bankaccountHolder)) {
         $this->data['bankaccountHolder'] = $this->_bankaccountHolder;
     }
     if (!empty($this->_bankaccountNumber)) {
         $this->data['bankaccountNumber'] = $this->_bankaccountNumber;
     }
     if (!empty($this->_bankaccountBic)) {
         $this->data['bankaccountBic'] = $this->_bankaccountBic;
     }
     if (!empty($this->_processDate)) {
         $this->data['processDate'] = $this->_processDate;
     }
     if (!empty($this->_intervalValue)) {
         $this->data['intervalValue'] = $this->_intervalValue;
     }
     if (!empty($this->_intervalPeriod)) {
         $this->data['intervalPeriod'] = $this->_intervalPeriod;
     }
     if (!empty($this->_intervalQuantity)) {
         $this->data['intervalQuantity'] = $this->_intervalQuantity;
     }
     if (!empty($this->_description)) {
         $this->data['description'] = $this->_description;
     }
     if (!empty($this->_ipAddress)) {
         $this->data['ipAddress'] = $this->_ipAddress;
     }
     if (!empty($this->_email)) {
         $this->data['email'] = $this->_email;
     }
     if (!empty($this->_promotorId)) {
         $this->data['promotorId'] = $this->_promotorId;
     }
     if (!empty($this->_tool)) {
         $this->data['tool'] = $this->_tool;
     }
     if (!empty($this->_info)) {
         $this->data['info'] = $this->_info;
     }
     if (!empty($this->_object)) {
         $this->data['object'] = $this->_object;
     }
     if (!empty($this->_extra1)) {
         $this->data['extra1'] = $this->_extra1;
     }
     if (!empty($this->_extra2)) {
         $this->data['extra2'] = $this->_extra2;
     }
     if (!empty($this->_extra3)) {
         $this->data['extra3'] = $this->_extra3;
     }
     return parent::getData();
 }
예제 #5
0
파일: DebitAdd.php 프로젝트: paynl/sdk
 public function getData()
 {
     if (empty($this->_amount)) {
         throw new Required('amount');
     } else {
         $this->data['amount'] = $this->_amount;
     }
     if (empty($this->_bankaccountHolder)) {
         throw new Required('bankaccountHolder');
     } else {
         $this->data['bankaccountHolder'] = $this->_bankaccountHolder;
     }
     if (empty($this->_bankaccountNumber)) {
         throw new Required('bankaccountnumber');
     } else {
         $this->data['bankaccountnumber'] = $this->_bankaccountNumber;
     }
     if (!empty($this->_bankaccountBic)) {
         $this->data['bankaccountBic'] = $this->_bankaccountBic;
     }
     if (!empty($this->_processDate)) {
         $this->data['processDate'] = $this->_processDate->format('d-m-Y');
     }
     if (!empty($this->_description)) {
         $this->data['description'] = $this->_description;
     }
     if (!empty($this->_ipAddress)) {
         $this->data['ipAddress'] = $this->_ipAddress;
     }
     if (!empty($this->_email)) {
         $this->data['email'] = $this->_email;
     }
     if (!empty($this->_promotorId)) {
         $this->data['promotorId'] = $this->_promotorId;
     }
     if (!empty($this->_tool)) {
         $this->data['tool'] = $this->_tool;
     }
     if (!empty($this->_info)) {
         $this->data['info'] = $this->_info;
     }
     if (!empty($this->_object)) {
         $this->data['object'] = $this->_object;
     }
     if (!empty($this->_extra1)) {
         $this->data['extra1'] = $this->_extra1;
     }
     if (!empty($this->_extra2)) {
         $this->data['extra2'] = $this->_extra2;
     }
     if (!empty($this->_extra3)) {
         $this->data['extra3'] = $this->_extra3;
     }
     if (!empty($this->_currency)) {
         $this->data['currency'] = $this->_currency;
     }
     if (!empty($this->_exchangeUrl)) {
         $this->data['exchangeUrl'] = $this->_exchangeUrl;
     }
     return parent::getData();
 }