Skip to content

Commit

Permalink
Add GetTransactionDetailsRequest method. (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
TimBozeman authored and mglaman committed Jun 29, 2018
1 parent aabb09c commit 52b0846
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions src/GetTransactionDetailsRequest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php

namespace CommerceGuys\AuthNet;

use GuzzleHttp\Client;
use CommerceGuys\AuthNet\Request\RequestInterface;

/**
* Retrieve detailed information about a specific transaction.
*
* @link http://developer.authorize.net/api/reference/index.html#transaction-reporting-get-transaction-details
*/
class GetTransactionDetailsRequest extends BaseApiRequest
{
protected $transId;

public function __construct(
Configuration $configuration,
Client $client,
$transId
) {
parent::__construct($configuration, $client);
$this->transId = $transId;
}

protected function attachData(RequestInterface $request)
{
$request->addData('transId', $this->transId);
}
}

0 comments on commit 52b0846

Please sign in to comment.