1 <?php
2 namespace OpenDNS\MES\Trident;
3
4 /**
5 * Reauthorize a previous authorization.
6 *
7 * Allows you to change the amount of the authorization or to refresh an
8 * existing one to prevent it from expiring.
9 */
10 class ReAuthorization extends Request
11 {
12 /** @var string Transaction type to send in the request */
13 protected $transactionType = 'J';
14
15 /**
16 * Sets a new amount to authorize
17 *
18 * @param float|string $amount
19 * @return self The current class instance for chaining
20 */
21 public function setAmount($amount)
22 {
23 return $this->setField('transaction_amount', $amount);
24 }
25
26 /**
27 * Set the transaction ID of a previous preauthorization transaction.
28 *
29 * @param string $transactionID
30 * @return self The current class instance for chaining
31 */
32 public function setTransactionId($transactionId)
33 {
34 return $this->setField('transaction_id', $transactionId);
35 }
36 }
37