/** * @param string $iban * @param string $bic * @param bool|false $sepa * @return \Oneso\Ckonto\Webservice\IbanCheck\IbanCheckResponse * @throws \Oneso\Ckonto\Webservice\IbanCheck\IbanCheckException */ private function createRequest($iban = 'DE134567', $bic = '', $sepa = false) { return \Oneso\Ckonto\Webservice\IbanCheck\IbanCheckRequest::request(\Oneso\Ckonto\Webservice\Objects\Iban::fromIban($iban), \Oneso\Ckonto\Webservice\Objects\Bic::fromBic($bic), \Oneso\Ckonto\Webservice\Objects\Sepa::fromValue($sepa)); }
/** * @param string $accountNumber * @param string $bankCode * @param bool|false $sepa * @return \Oneso\Ckonto\Webservice\BankCheck\BankCheckResponse * @throws \Oneso\Ckonto\Webservice\BankCheck\BankCheckException */ private function createRequest($accountNumber = '123456789', $bankCode = '', $sepa = false) { return \Oneso\Ckonto\Webservice\BankCheck\BankCheckRequest::request(\Oneso\Ckonto\Webservice\Objects\AccountNumber::fromNumber($accountNumber), \Oneso\Ckonto\Webservice\Objects\BankCode::fromCode($bankCode), \Oneso\Ckonto\Webservice\Objects\Sepa::fromValue($sepa)); }
/** @test */ public function it_returns_a_iban_check_object() { $ibanCheck = \Oneso\Ckonto\Webservice\Ckonto::checkIban(\Oneso\Ckonto\Webservice\Objects\Iban::fromIban('DE123456789'), \Oneso\Ckonto\Webservice\Objects\Bic::fromBic('FDX13456'), \Oneso\Ckonto\Webservice\Objects\Sepa::fromValue(false)); $this->assertTrue($ibanCheck instanceof \Oneso\Ckonto\Webservice\IbanCheck\IbanCheck); }