PayU integration by Krzysztof Gzocha
  • Namespace
  • Class

Namespaces

  • Team3
    • PayU
      • Annotation
      • Communication
        • CurlRequestBuilder
        • HttpStatusParser
        • Notification
        • Process
          • NotificationProcess
          • ResponseDeserializer
        • Request
          • Model
        • Response
          • Model
        • Sender
      • Configuration
        • Credentials
      • Order
        • Autocomplete
          • Strategy
        • Model
          • Buyer
          • Money
          • Products
          • ShippingMethods
          • Traits
        • Transformer
          • UserOrder
            • Strategy
              • Product
              • ShippingMethod
      • PropertyExtractor
        • Reader
      • Serializer
      • SignatureCalculator
        • Encoder
          • Algorithms
          • Strategy
        • ParametersSorter
        • Validator
      • ValidatorBuilder

Classes

  • Team3\PayU\ValidatorBuilder\ValidatorBuilder

Interfaces

  • Team3\PayU\ValidatorBuilder\ValidatorBuilderInterface
 1 <?php
 2 /**
 3  * @author Krzysztof Gzocha <krzysztof.gzocha@xsolve.pl>
 4  */
 5 namespace Team3\PayU\Communication\Response;
 6 
 7 use Team3\PayU\Communication\Request\PayURequestInterface;
 8 use Team3\PayU\Communication\Request\RefundRequest;
 9 use Team3\PayU\Communication\Request\Model\RequestStatus;
10 use JMS\Serializer\Annotation as JMS;
11 use Team3\PayU\Communication\Response\Model\RefundModelInterface;
12 
13 /**
14  * Represents response from PayU when asked about refund.
15  * It's connected with {@link RefundRequest}
16  *
17  * Class RefundResponse
18  * @package Team3\PayU\Communication\Response
19  * @JMS\AccessorOrder("alphabetical")
20  */
21 class RefundResponse implements ResponseInterface
22 {
23     /**
24      * @var string
25      * @JMS\Type("string")
26      */
27     private $orderId;
28 
29     /**
30      * @var RefundModelInterface
31      * @JMS\Type("Team3\PayU\Communication\Response\Model\RefundModel")
32      */
33     private $refund;
34 
35     /**
36      * @var RequestStatus
37      * @JMS\Type("Team3\PayU\Communication\Request\Model\RequestStatus")
38      */
39     private $status;
40 
41     /**
42      * @param PayURequestInterface $payURequest
43      *
44      * @return bool
45      */
46     public function supports(PayURequestInterface $payURequest)
47     {
48         return $payURequest instanceof RefundRequest;
49     }
50 
51     /**
52      * @return string
53      */
54     public function getOrderId()
55     {
56         return $this->orderId;
57     }
58 
59     /**
60      * @return RefundModelInterface
61      */
62     public function getRefund()
63     {
64         return $this->refund;
65     }
66 
67     /**
68      * @return RequestStatus
69      */
70     public function getStatus()
71     {
72         return $this->status;
73     }
74 }
75 
PayU integration by Krzysztof Gzocha API documentation generated by ApiGen