Exemple #1
0
 protected function getData()
 {
     $this->data['groupBy'] = array('company_id', 'payment_profile_id');
     if (!isset($this->startDate)) {
         throw new Required('startDate');
     } else {
         $this->data['startDate'] = $this->startDate->format('Y-m-d');
     }
     if (!isset($this->endDate)) {
         throw new Required('endDate');
     } else {
         $this->data['endDate'] = $this->endDate->format('Y-m-d');
     }
     if (!empty($this->filters)) {
         $filters = $this->makeFilter($this->filters);
         $this->data['filterType'] = $filters['filterType'];
         $this->data['filterOperator'] = $filters['filterOperator'];
         $this->data['filterValue'] = $filters['filterValue'];
     }
     return parent::getData();
 }
 public function doRequest($endpoint = null, $version = null)
 {
     return parent::doRequest('alliance/addService');
 }
 public function doRequest($endpoint = null, $version = null)
 {
     return parent::doRequest('alliance/getMerchants');
 }
Exemple #4
0
 protected function getData()
 {
     if (isset($this->_email)) {
         $this->data['email'] = $this->_email;
     } else {
         throw new Required('email');
     }
     if (isset($this->_firstName)) {
         $this->data['firstName'] = $this->_firstName;
     } else {
         throw new Required('firstName');
     }
     if (isset($this->_lastName)) {
         $this->data['lastName'] = $this->_lastName;
     } else {
         throw new Required('lastName');
     }
     if (isset($this->_companyName)) {
         $this->data['companyName'] = $this->_companyName;
     } else {
         throw new Required('companyName');
     }
     if (isset($this->_cocNumber)) {
         $this->data['cocNumber'] = $this->_cocNumber;
     } else {
         throw new Required('cocNumber');
     }
     if (isset($this->_gender)) {
         $this->data['gender'] = $this->_gender;
     } else {
         throw new Required('gender');
     }
     if (isset($this->_street)) {
         $this->data['street'] = $this->_street;
     } else {
         throw new Required('street');
     }
     if (isset($this->_houseNumber)) {
         $this->data['houseNumber'] = $this->_houseNumber;
     } else {
         throw new Required('houseNumber');
     }
     if (isset($this->_postalCode)) {
         $this->data['postalCode'] = $this->_postalCode;
     } else {
         throw new Required('postalCode');
     }
     if (isset($this->_city)) {
         $this->data['city'] = $this->_city;
     } else {
         throw new Required('city');
     }
     if (isset($this->_countryCode)) {
         $this->data['countryCode'] = $this->_countryCode;
     }
     if (isset($this->_bankAccountOwner)) {
         $this->data['bankAccountOwner'] = $this->_bankAccountOwner;
     }
     if (isset($this->_bankAccountNumber)) {
         $this->data['bankAccountNumber'] = $this->_bankAccountNumber;
     }
     if (isset($this->_bankAccountBic)) {
         $this->data['bankAccountBIC'] = $this->_bankAccountBic;
     }
     if (isset($this->_vatNumber)) {
         $this->data['vatNumber'] = $this->_vatNumber;
     }
     if (isset($this->_languageId)) {
         $this->data['languageId'] = $this->_languageId;
     }
     if (isset($this->_authorisedToSign)) {
         $this->data['authorizedToSign'] = $this->_authorisedToSign;
     }
     if (isset($this->_ubo)) {
         $this->data['ubo'] = $this->_ubo;
     }
     if (isset($this->_useCompanyAuth)) {
         $this->data['useCompanyAuth'] = $this->_useCompanyAuth;
     }
     if (isset($this->_sendEmail)) {
         $this->data['sendEmail'] = $this->_sendEmail;
     }
     if (isset($this->_invoiceInterval)) {
         $this->data['invoiceInterval'] = $this->_invoiceInterval;
     }
     if (!empty($this->_signees)) {
         $this->data['signees'] = $this->_signees;
     }
     if (isset($this->_packageName)) {
         $this->data['packageName'] = $this->_packageName;
     }
     if (isset($this->_referralProfileId)) {
         $this->data['referralProfileId'] = $this->_referralProfileId;
     }
     if (isset($this->_settleBalance)) {
         $this->data['settleBalance'] = (bool) $this->_settleBalance;
     }
     return parent::getData();
 }
 public function doRequest($endpoint = null, $version = null)
 {
     return parent::doRequest('document/add');
 }
 public function doRequest($endpoint = null, $version = null)
 {
     return parent::doRequest('service/enablePaymentOption');
 }
Exemple #7
0
 protected function processResult($result)
 {
     return parent::processResult($result);
     // TODO: Change the autogenerated stub
 }
 public function doRequest($endpoint = null, $version = null)
 {
     return parent::doRequest('service/getCategories');
 }