PHP Classes

File: tests/resources/generated/ValidApiDo.php

Recommend this page to a friend!
  Classes of WsdlToPhp   PHP SOAP Package Generator   tests/resources/generated/ValidApiDo.php   Download  
File: tests/resources/generated/ValidApiDo.php
Role: Unit test script
Content type: text/plain
Description: Unit test script
Class: PHP SOAP Package Generator
Generate package to call SOAP services using WSDL
Author: By
Last change:
Date: 8 years ago
Size: 15,103 bytes
 

Contents

Class file image Download
<?php namespace Api\ServiceType; use \WsdlToPhp\PackageBase\AbstractSoapClientBase; /** * This class stands for Do ServiceType * @package Api * @subpackage Services * @release 1.1.0 */ class ApiDo extends AbstractSoapClientBase { /** * Sets the RequesterCredentials SoapHeader param * @uses AbstractSoapClientBase::setSoapHeader() * @param \Api\StructType\ApiCustomSecurityHeaderType $requesterCredentials * @param string $nameSpace * @param bool $mustUnderstand * @param string $actor * @return bool */ public function setSoapHeaderRequesterCredentials(\Api\StructType\ApiCustomSecurityHeaderType $requesterCredentials, $nameSpace = 'urn:ebay:api:PayPalAPI', $mustUnderstand = false, $actor = null) { return $this->setSoapHeader($nameSpace, 'RequesterCredentials', $requesterCredentials, $mustUnderstand, $actor); } /** * Method to call the operation originally named DoMobileCheckoutPayment * Meta informations extracted from the WSDL * - SOAPHeaderNames : RequesterCredentials * - SOAPHeaderNamespaces : urn:ebay:api:PayPalAPI * - SOAPHeaderTypes : \Api\StructType\ApiCustomSecurityHeaderType * - SOAPHeaders : required * @uses AbstractSoapClientBase::getSoapClient() * @uses AbstractSoapClientBase::setResult() * @uses AbstractSoapClientBase::getResult() * @uses AbstractSoapClientBase::saveLastError() * @param \Api\StructType\ApiDoMobileCheckoutPaymentReq * $doMobileCheckoutPaymentRequest * @return \Api\StructType\ApiDoMobileCheckoutPaymentResponseType|bool */ public function DoMobileCheckoutPayment(\Api\StructType\ApiDoMobileCheckoutPaymentReq $doMobileCheckoutPaymentRequest) { try { $this->setResult(self::getSoapClient()->DoMobileCheckoutPayment($doMobileCheckoutPaymentRequest)); return $this->getResult(); } catch (\SoapFault $soapFault) { $this->saveLastError(__METHOD__, $soapFault); return false; } } /** * Method to call the operation originally named DoExpressCheckoutPayment * Meta informations extracted from the WSDL * - SOAPHeaderNames : RequesterCredentials * - SOAPHeaderNamespaces : urn:ebay:api:PayPalAPI * - SOAPHeaderTypes : \Api\StructType\ApiCustomSecurityHeaderType * - SOAPHeaders : required * @uses AbstractSoapClientBase::getSoapClient() * @uses AbstractSoapClientBase::setResult() * @uses AbstractSoapClientBase::getResult() * @uses AbstractSoapClientBase::saveLastError() * @param \Api\StructType\ApiDoExpressCheckoutPaymentReq * $doExpressCheckoutPaymentRequest * @return \Api\StructType\ApiDoExpressCheckoutPaymentResponseType|bool */ public function DoExpressCheckoutPayment(\Api\StructType\ApiDoExpressCheckoutPaymentReq $doExpressCheckoutPaymentRequest) { try { $this->setResult(self::getSoapClient()->DoExpressCheckoutPayment($doExpressCheckoutPaymentRequest)); return $this->getResult(); } catch (\SoapFault $soapFault) { $this->saveLastError(__METHOD__, $soapFault); return false; } } /** * Method to call the operation originally named DoUATPExpressCheckoutPayment * Meta informations extracted from the WSDL * - SOAPHeaderNames : RequesterCredentials * - SOAPHeaderNamespaces : urn:ebay:api:PayPalAPI * - SOAPHeaderTypes : \Api\StructType\ApiCustomSecurityHeaderType * - SOAPHeaders : required * @uses AbstractSoapClientBase::getSoapClient() * @uses AbstractSoapClientBase::setResult() * @uses AbstractSoapClientBase::getResult() * @uses AbstractSoapClientBase::saveLastError() * @param \Api\StructType\ApiDoUATPExpressCheckoutPaymentReq * $doUATPExpressCheckoutPaymentRequest * @return \Api\StructType\ApiDoUATPExpressCheckoutPaymentResponseType|bool */ public function DoUATPExpressCheckoutPayment(\Api\StructType\ApiDoUATPExpressCheckoutPaymentReq $doUATPExpressCheckoutPaymentRequest) { try { $this->setResult(self::getSoapClient()->DoUATPExpressCheckoutPayment($doUATPExpressCheckoutPaymentRequest)); return $this->getResult(); } catch (\SoapFault $soapFault) { $this->saveLastError(__METHOD__, $soapFault); return false; } } /** * Method to call the operation originally named DoDirectPayment * Meta informations extracted from the WSDL * - SOAPHeaderNames : RequesterCredentials * - SOAPHeaderNamespaces : urn:ebay:api:PayPalAPI * - SOAPHeaderTypes : \Api\StructType\ApiCustomSecurityHeaderType * - SOAPHeaders : required * @uses AbstractSoapClientBase::getSoapClient() * @uses AbstractSoapClientBase::setResult() * @uses AbstractSoapClientBase::getResult() * @uses AbstractSoapClientBase::saveLastError() * @param \Api\StructType\ApiDoDirectPaymentReq $doDirectPaymentRequest * @return \Api\StructType\ApiDoDirectPaymentResponseType|bool */ public function DoDirectPayment(\Api\StructType\ApiDoDirectPaymentReq $doDirectPaymentRequest) { try { $this->setResult(self::getSoapClient()->DoDirectPayment($doDirectPaymentRequest)); return $this->getResult(); } catch (\SoapFault $soapFault) { $this->saveLastError(__METHOD__, $soapFault); return false; } } /** * Method to call the operation originally named DoCancel * Meta informations extracted from the WSDL * - SOAPHeaderNames : RequesterCredentials * - SOAPHeaderNamespaces : urn:ebay:api:PayPalAPI * - SOAPHeaderTypes : \Api\StructType\ApiCustomSecurityHeaderType * - SOAPHeaders : required * @uses AbstractSoapClientBase::getSoapClient() * @uses AbstractSoapClientBase::setResult() * @uses AbstractSoapClientBase::getResult() * @uses AbstractSoapClientBase::saveLastError() * @param \Api\StructType\ApiDoCancelReq $doCancelRequest * @return \Api\StructType\ApiDoCancelResponseType|bool */ public function DoCancel(\Api\StructType\ApiDoCancelReq $doCancelRequest) { try { $this->setResult(self::getSoapClient()->DoCancel($doCancelRequest)); return $this->getResult(); } catch (\SoapFault $soapFault) { $this->saveLastError(__METHOD__, $soapFault); return false; } } /** * Method to call the operation originally named DoCapture * Meta informations extracted from the WSDL * - SOAPHeaderNames : RequesterCredentials * - SOAPHeaderNamespaces : urn:ebay:api:PayPalAPI * - SOAPHeaderTypes : \Api\StructType\ApiCustomSecurityHeaderType * - SOAPHeaders : required * @uses AbstractSoapClientBase::getSoapClient() * @uses AbstractSoapClientBase::setResult() * @uses AbstractSoapClientBase::getResult() * @uses AbstractSoapClientBase::saveLastError() * @param \Api\StructType\ApiDoCaptureReq $doCaptureRequest * @return \Api\StructType\ApiDoCaptureResponseType|bool */ public function DoCapture(\Api\StructType\ApiDoCaptureReq $doCaptureRequest) { try { $this->setResult(self::getSoapClient()->DoCapture($doCaptureRequest)); return $this->getResult(); } catch (\SoapFault $soapFault) { $this->saveLastError(__METHOD__, $soapFault); return false; } } /** * Method to call the operation originally named DoReauthorization * Meta informations extracted from the WSDL * - SOAPHeaderNames : RequesterCredentials * - SOAPHeaderNamespaces : urn:ebay:api:PayPalAPI * - SOAPHeaderTypes : \Api\StructType\ApiCustomSecurityHeaderType * - SOAPHeaders : required * @uses AbstractSoapClientBase::getSoapClient() * @uses AbstractSoapClientBase::setResult() * @uses AbstractSoapClientBase::getResult() * @uses AbstractSoapClientBase::saveLastError() * @param \Api\StructType\ApiDoReauthorizationReq $doReauthorizationRequest * @return \Api\StructType\ApiDoReauthorizationResponseType|bool */ public function DoReauthorization(\Api\StructType\ApiDoReauthorizationReq $doReauthorizationRequest) { try { $this->setResult(self::getSoapClient()->DoReauthorization($doReauthorizationRequest)); return $this->getResult(); } catch (\SoapFault $soapFault) { $this->saveLastError(__METHOD__, $soapFault); return false; } } /** * Method to call the operation originally named DoVoid * Meta informations extracted from the WSDL * - SOAPHeaderNames : RequesterCredentials * - SOAPHeaderNamespaces : urn:ebay:api:PayPalAPI * - SOAPHeaderTypes : \Api\StructType\ApiCustomSecurityHeaderType * - SOAPHeaders : required * @uses AbstractSoapClientBase::getSoapClient() * @uses AbstractSoapClientBase::setResult() * @uses AbstractSoapClientBase::getResult() * @uses AbstractSoapClientBase::saveLastError() * @param \Api\StructType\ApiDoVoidReq $doVoidRequest * @return \Api\StructType\ApiDoVoidResponseType|bool */ public function DoVoid(\Api\StructType\ApiDoVoidReq $doVoidRequest) { try { $this->setResult(self::getSoapClient()->DoVoid($doVoidRequest)); return $this->getResult(); } catch (\SoapFault $soapFault) { $this->saveLastError(__METHOD__, $soapFault); return false; } } /** * Method to call the operation originally named DoAuthorization * Meta informations extracted from the WSDL * - SOAPHeaderNames : RequesterCredentials * - SOAPHeaderNamespaces : urn:ebay:api:PayPalAPI * - SOAPHeaderTypes : \Api\StructType\ApiCustomSecurityHeaderType * - SOAPHeaders : required * @uses AbstractSoapClientBase::getSoapClient() * @uses AbstractSoapClientBase::setResult() * @uses AbstractSoapClientBase::getResult() * @uses AbstractSoapClientBase::saveLastError() * @param \Api\StructType\ApiDoAuthorizationReq $doAuthorizationRequest * @return \Api\StructType\ApiDoAuthorizationResponseType|bool */ public function DoAuthorization(\Api\StructType\ApiDoAuthorizationReq $doAuthorizationRequest) { try { $this->setResult(self::getSoapClient()->DoAuthorization($doAuthorizationRequest)); return $this->getResult(); } catch (\SoapFault $soapFault) { $this->saveLastError(__METHOD__, $soapFault); return false; } } /** * Method to call the operation originally named DoUATPAuthorization * Meta informations extracted from the WSDL * - SOAPHeaderNames : RequesterCredentials * - SOAPHeaderNamespaces : urn:ebay:api:PayPalAPI * - SOAPHeaderTypes : \Api\StructType\ApiCustomSecurityHeaderType * - SOAPHeaders : required * @uses AbstractSoapClientBase::getSoapClient() * @uses AbstractSoapClientBase::setResult() * @uses AbstractSoapClientBase::getResult() * @uses AbstractSoapClientBase::saveLastError() * @param \Api\StructType\ApiDoUATPAuthorizationReq $doUATPAuthorizationRequest * @return \Api\StructType\ApiDoUATPAuthorizationResponseType|bool */ public function DoUATPAuthorization(\Api\StructType\ApiDoUATPAuthorizationReq $doUATPAuthorizationRequest) { try { $this->setResult(self::getSoapClient()->DoUATPAuthorization($doUATPAuthorizationRequest)); return $this->getResult(); } catch (\SoapFault $soapFault) { $this->saveLastError(__METHOD__, $soapFault); return false; } } /** * Method to call the operation originally named DoReferenceTransaction * Meta informations extracted from the WSDL * - SOAPHeaderNames : RequesterCredentials * - SOAPHeaderNamespaces : urn:ebay:api:PayPalAPI * - SOAPHeaderTypes : \Api\StructType\ApiCustomSecurityHeaderType * - SOAPHeaders : required * @uses AbstractSoapClientBase::getSoapClient() * @uses AbstractSoapClientBase::setResult() * @uses AbstractSoapClientBase::getResult() * @uses AbstractSoapClientBase::saveLastError() * @param \Api\StructType\ApiDoReferenceTransactionReq * $doReferenceTransactionRequest * @return \Api\StructType\ApiDoReferenceTransactionResponseType|bool */ public function DoReferenceTransaction(\Api\StructType\ApiDoReferenceTransactionReq $doReferenceTransactionRequest) { try { $this->setResult(self::getSoapClient()->DoReferenceTransaction($doReferenceTransactionRequest)); return $this->getResult(); } catch (\SoapFault $soapFault) { $this->saveLastError(__METHOD__, $soapFault); return false; } } /** * Method to call the operation originally named DoNonReferencedCredit * Meta informations extracted from the WSDL * - SOAPHeaderNames : RequesterCredentials * - SOAPHeaderNamespaces : urn:ebay:api:PayPalAPI * - SOAPHeaderTypes : \Api\StructType\ApiCustomSecurityHeaderType * - SOAPHeaders : required * @uses AbstractSoapClientBase::getSoapClient() * @uses AbstractSoapClientBase::setResult() * @uses AbstractSoapClientBase::getResult() * @uses AbstractSoapClientBase::saveLastError() * @param \Api\StructType\ApiDoNonReferencedCreditReq $doNonReferencedCreditRequest * @return \Api\StructType\ApiDoNonReferencedCreditResponseType|bool */ public function DoNonReferencedCredit(\Api\StructType\ApiDoNonReferencedCreditReq $doNonReferencedCreditRequest) { try { $this->setResult(self::getSoapClient()->DoNonReferencedCredit($doNonReferencedCreditRequest)); return $this->getResult(); } catch (\SoapFault $soapFault) { $this->saveLastError(__METHOD__, $soapFault); return false; } } /** * Returns the result * @see AbstractSoapClientBase::getResult() * @return * \Api\StructType\ApiDoAuthorizationResponseType|\Api\StructType\ApiDoCancelResponseType|\Api\StructType\ApiDoCaptureResponseType|\Api\StructType\ApiDoDirectPaymentResponseType|\Api\StructType\ApiDoExpressCheckoutPaymentResponseType|\Api\StructType\Api * DoMobileCheckoutPaymentResponseType|\Api\StructType\ApiDoNonReferencedCreditResponseType|\Api\StructType\ApiDoReauthorizationResponseType|\Api\StructType\ApiDoReferenceTransactionResponseType|\Api\StructType\ApiDoUATPAuthorizationResponseType|\Api\St * ructType\ApiDoUATPExpressCheckoutPaymentResponseType|\Api\StructType\ApiDoVoidResponseType */ public function getResult() { return parent::getResult(); } /** * Method returning the class name * @return string __CLASS__ */ public function __toString() { return __CLASS__; } }