Esempio n. 1
0
 /**
  * Send http request to api and return response.
  *
  * @param string $operation the operation type to perform
  * @param array $args
  *
  * @return Response
  */
 public function send($operation_type, array $args)
 {
     $fields = array_merge($this->authParams(), $args, compact('operation_type'));
     $response = new Response($this->client->post($this->apiUrl, ['body' => Xml::arrayToXml($fields)]));
     $response->offsetSet('original_args', $args);
     return $response;
 }
 public function __construct(ResponseInterface $response, array $attributes = null)
 {
     parent::__construct($response, $attributes);
     $this->attributes = $this->groupTransactions($this->attributes);
 }