/**
  * Service Call: BillUser
  *
  * @param BillUserReq $billUserReq
  *
  * @return BillUserResponseType
  * @throws APIException
  */
 public function BillUser($billUserReq, $apiUsername = null)
 {
     $this->setStandardParams($billUserReq->BillUserRequest);
     $ret = new BillUserResponseType();
     $resp = $this->call("BillUser", $billUserReq, $apiUsername);
     $ret->init(PPUtils::xmlToArray($resp));
     return $ret;
 }
 /**
  * Service Call: BillUser
  * @param BillUserReq $billUserReq
  * @param mixed $apiCredential - Optional API credential - can either be
  * 		a username configured in sdk_config.ini or a ICredential object
  *      created dynamically 		
  * @return BillUserResponseType
  * @throws APIException
  */
 public function BillUser($billUserReq, $apiCredential = NULL)
 {
     $this->setStandardParams($billUserReq->BillUserRequest);
     $ret = new BillUserResponseType();
     $resp = $this->call('PayPalAPI', 'BillUser', $billUserReq, $apiCredential);
     $ret->init(PPUtils::xmlToArray($resp));
     return $ret;
 }
 /**
  * Service Call: BillUser
  * @param BillUserReq $billUserReq
  * @param mixed $apiCredential - Optional API credential - can either be
  * 		a username configured in sdk_config.ini or a ICredential object
  *      created dynamically 		
  * @return BillUserResponseType
  * @throws APIException
  */
 public function BillUser($billUserReq, $apiCredential = NULL)
 {
     $this->setStandardParams($billUserReq->BillUserRequest);
     $apiContext = new PPApiContext($this->config);
     $handlers = array(new PPMerchantServiceHandler($apiCredential, self::$SDK_NAME, self::$SDK_VERSION));
     $ret = new BillUserResponseType();
     $resp = $this->call('PayPalAPI', 'BillUser', $billUserReq, $apiContext, $handlers);
     $ret->init(PPUtils::xmlToArray($resp));
     return $ret;
 }