protected function getData() { if (isset($this->_state)) { $this->data['state'] = $this->_state; } return parent::getData(); }
protected function getData() { if (!isset($this->_merchantId)) { throw new Error\Required('merchantId'); } $this->data['merchantId'] = $this->_merchantId; return parent::getData(); }
public function getData() { if (!isset($this->serviceId)) { throw new Required('serviceId'); } $this->data['serviceId'] = $this->serviceId; return parent::getData(); }
public function getData() { if (!isset($this->serviceId)) { throw new Required('serviceId'); } $this->data['serviceId'] = $this->serviceId; if (!isset($this->paymentProfileId)) { throw new Required('paymentProfileId'); } $this->data['paymentProfileId'] = $this->paymentProfileId; if (isset($this->settings)) { $this->data['settings'] = $this->settings; } return parent::getData(); }
protected function getData() { if (!isset($this->_filename)) { throw new Required('filename'); } $this->data['filename'] = $this->_filename; if (!isset($this->_documentId)) { throw new Required('documentId'); } $this->data['documentId'] = $this->_documentId; if (!isset($this->_content)) { throw new Required('content'); } $this->data['documentFile'] = $this->_content; return parent::getData(); }
protected function getData() { if (!isset($this->_filename)) { throw new Required('filename'); } $this->data['filename'] = $this->_filename; if (!isset($this->_documentId)) { throw new Required('documentId'); } $this->data['documentId'] = $this->_documentId; if (!isset($this->_content) && !empty($this->_content)) { throw new Required('content'); } if (count($this->_content) == 1) { $this->data['documentFile'] = $this->_content[0]; } else { $this->data['documentFile'] = $this->_content; } return parent::getData(); }
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(); }
protected function getData() { if (!isset($this->_merchantId)) { throw new Required('merchantId'); } $this->data['merchantId'] = $this->_merchantId; if (!isset($this->_name)) { throw new Required('name'); } $this->data['name'] = $this->_name; if (!isset($this->_description)) { throw new Required('description'); } $this->data['description'] = $this->_description; if (!isset($this->_categoryId)) { throw new Required('categoryId'); } $this->data['categoryId'] = $this->_categoryId; if (!isset($this->_publication)) { throw new Required('publication'); } $this->data['publication'] = $this->_publication; if (!empty($this->_publicationUrls)) { $this->data['publicationUrls'] = $this->_publicationUrls; } if (!empty($this->_paymentOptions)) { $this->data['paymentOptions'] = $this->_paymentOptions; } if (isset($this->_alwaysSendExchange)) { $this->data['alwaysSendExchange'] = $this->_alwaysSendExchange; } return parent::getData(); }
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->_settleBalance)) { $this->data['settleBalance'] = (bool) $this->_settleBalance; } return parent::getData(); }
protected function getData() { if (empty($this->merchantId)) { throw new Required('merchantId'); } else { $this->data['merchantId'] = $this->merchantId; } if (empty($this->invoiceId)) { throw new Required('invoiceId'); } else { $this->data['invoiceId'] = $this->invoiceId; } if (empty($this->amount)) { throw new Required('amount'); } else { $this->data['amount'] = $this->amount; } if (empty($this->description)) { throw new Required('description'); } else { $this->data['description'] = $this->description; } if (isset($this->invoiceUrl)) { $this->data['invoiceUrl'] = $this->invoiceUrl; } if (isset($this->makeYesterday)) { $this->data['makeYesterday'] = (bool) $this->makeYesterday; } return parent::getData(); }