Iyzipay\Model\Mapper\CrossBookingFromSubMerchantMapper::create PHP Метод

create() публичный статический Метод

public static create ( $rawResult = null )
    public static function create($rawResult = null)
    {
        return new CrossBookingFromSubMerchantMapper($rawResult);
    }

Usage Example

 public static function create(CreateCrossBookingRequest $request, Options $options)
 {
     $rawResult = parent::httpClient()->post($options->getBaseUrl() . "/crossbooking/receive", parent::getHttpHeaders($request, $options), $request->toJsonString());
     return CrossBookingFromSubMerchantMapper::create($rawResult)->jsonDecode()->mapCrossBookingFromSubMerchant(new CrossBookingFromSubMerchant());
 }