public static function create($rawResult = null) { return new IyzipayResourceMapper($rawResult); }
public static function retrieve(Options $options) { $rawResult = parent::httpClient()->get($options->getBaseUrl() . "/payment/test"); return IyzipayResourceMapper::create($rawResult)->jsonDecode()->mapResource(new IyzipayResource()); }