public function __construct(TpMerchantConfig $config, \stdClass $result)
 {
     parent::__construct($config, $result);
     $this->accountId = intval($result->accountId);
     if (isset($result->methods->method)) {
         $methods = is_array($result->methods->method) ? $result->methods->method : array($result->methods->method);
         foreach ($methods as $method) {
             $this->methods[] = new TpDataApiMerchantAccountMethod($method);
         }
     }
 }
 public function __construct(TpMerchantConfig $config, \stdClass $result)
 {
     parent::__construct($config, $result);
     $this->paymentInfo = new TpDataApiPaymentInfo($result->paymentInfo);
 }