@@ 17-28 (lines=12) @@ | ||
14 | /** |
|
15 | * @author Sullivan Senechal <[email protected]> |
|
16 | */ |
|
17 | abstract class AbstractNumberedReferencedTransactionRequest extends AbstractReferencedTransactionRequest |
|
18 | { |
|
19 | use TransactionNumberTrait, CallNumberTrait; |
|
20 | ||
21 | public function __construct($reference, $amount, $transactionNumber, $callNumber, $subscriberRef = null) |
|
22 | { |
|
23 | parent::__construct($reference, $amount, $subscriberRef); |
|
24 | ||
25 | $this->transactionNumber = $transactionNumber; |
|
26 | $this->callNumber = $callNumber; |
|
27 | } |
|
28 | } |
|
29 |
@@ 17-45 (lines=29) @@ | ||
14 | /** |
|
15 | * @author Sullivan Senechal <[email protected]> |
|
16 | */ |
|
17 | final class SubscriberCancelTransactionRequest extends AbstractReferencedBearerTransactionRequest |
|
18 | { |
|
19 | use TransactionNumberTrait, CallNumberTrait; |
|
20 | ||
21 | /** |
|
22 | * @param string $subscriberRef |
|
23 | * @param string $reference |
|
24 | * @param int $amount |
|
25 | * @param string $bearer |
|
26 | * @param string $validityDate |
|
27 | * @param int $transactionNumber |
|
28 | * @param int $callNumber |
|
29 | */ |
|
30 | public function __construct($subscriberRef, $reference, $amount, $bearer, $validityDate, $transactionNumber, $callNumber) |
|
31 | { |
|
32 | parent::__construct($reference, $amount, $bearer, $validityDate, $subscriberRef); |
|
33 | ||
34 | $this->transactionNumber = $transactionNumber; |
|
35 | $this->callNumber = $callNumber; |
|
36 | } |
|
37 | ||
38 | /** |
|
39 | * {@inheritdoc} |
|
40 | */ |
|
41 | public function getRequestType() |
|
42 | { |
|
43 | return RequestInterface::SUBSCRIBER_CANCEL_TRANSACTION; |
|
44 | } |
|
45 | } |
|
46 |