| @@ 12-159 (lines=148) @@ | ||
| 9 | * |
|
| 10 | * @package Vipps\Model\Payment |
|
| 11 | */ |
|
| 12 | class Transaction |
|
| 13 | { |
|
| 14 | ||
| 15 | /** |
|
| 16 | * @var string |
|
| 17 | * @Serializer\Type("string") |
|
| 18 | */ |
|
| 19 | protected $orderId; |
|
| 20 | ||
| 21 | /** |
|
| 22 | * @var string |
|
| 23 | * @Serializer\Type("string") |
|
| 24 | */ |
|
| 25 | protected $refOrderId; |
|
| 26 | ||
| 27 | /** |
|
| 28 | * @var int |
|
| 29 | * @Serializer\Type("integer") |
|
| 30 | */ |
|
| 31 | protected $amount; |
|
| 32 | ||
| 33 | /** |
|
| 34 | * @var string |
|
| 35 | * @Serializer\Type("string") |
|
| 36 | */ |
|
| 37 | protected $transactionText; |
|
| 38 | ||
| 39 | /** |
|
| 40 | * @var \DateTimeInterface |
|
| 41 | * @Serializer\Type("DateTime<'Y-m-d\TH:i:s.u\Z'>") |
|
| 42 | */ |
|
| 43 | protected $timeStamp; |
|
| 44 | ||
| 45 | /** |
|
| 46 | * Gets amount value. |
|
| 47 | * |
|
| 48 | * @return int |
|
| 49 | */ |
|
| 50 | public function getAmount() |
|
| 51 | { |
|
| 52 | return $this->amount; |
|
| 53 | } |
|
| 54 | ||
| 55 | /** |
|
| 56 | * Sets amount variable. |
|
| 57 | * |
|
| 58 | * @param int $amount |
|
| 59 | * |
|
| 60 | * @return $this |
|
| 61 | */ |
|
| 62 | public function setAmount($amount) |
|
| 63 | { |
|
| 64 | $this->amount = $amount; |
|
| 65 | return $this; |
|
| 66 | } |
|
| 67 | ||
| 68 | /** |
|
| 69 | * Gets orderId value. |
|
| 70 | * |
|
| 71 | * @return string |
|
| 72 | */ |
|
| 73 | public function getOrderId() |
|
| 74 | { |
|
| 75 | return $this->orderId; |
|
| 76 | } |
|
| 77 | ||
| 78 | /** |
|
| 79 | * Sets orderId variable. |
|
| 80 | * |
|
| 81 | * @param string $orderId |
|
| 82 | * |
|
| 83 | * @return $this |
|
| 84 | */ |
|
| 85 | public function setOrderId($orderId) |
|
| 86 | { |
|
| 87 | $this->orderId = $orderId; |
|
| 88 | return $this; |
|
| 89 | } |
|
| 90 | ||
| 91 | /** |
|
| 92 | * Gets refOrderId value. |
|
| 93 | * |
|
| 94 | * @return string |
|
| 95 | */ |
|
| 96 | public function getRefOrderId() |
|
| 97 | { |
|
| 98 | return $this->refOrderId; |
|
| 99 | } |
|
| 100 | ||
| 101 | /** |
|
| 102 | * Sets refOrderId variable. |
|
| 103 | * |
|
| 104 | * @param string $refOrderId |
|
| 105 | * |
|
| 106 | * @return $this |
|
| 107 | */ |
|
| 108 | public function setRefOrderId($refOrderId) |
|
| 109 | { |
|
| 110 | $this->refOrderId = $refOrderId; |
|
| 111 | return $this; |
|
| 112 | } |
|
| 113 | ||
| 114 | /** |
|
| 115 | * Gets timeStamp value. |
|
| 116 | * |
|
| 117 | * @return \DateTimeInterface |
|
| 118 | */ |
|
| 119 | public function getTimeStamp() |
|
| 120 | { |
|
| 121 | return $this->timeStamp; |
|
| 122 | } |
|
| 123 | ||
| 124 | /** |
|
| 125 | * Sets timeStamp variable. |
|
| 126 | * |
|
| 127 | * @param \DateTimeInterface $timeStamp |
|
| 128 | * |
|
| 129 | * @return $this |
|
| 130 | */ |
|
| 131 | public function setTimeStamp(\DateTimeInterface $timeStamp) |
|
| 132 | { |
|
| 133 | $this->timeStamp = $timeStamp; |
|
| 134 | return $this; |
|
| 135 | } |
|
| 136 | ||
| 137 | /** |
|
| 138 | * Gets transactionText value. |
|
| 139 | * |
|
| 140 | * @return string |
|
| 141 | */ |
|
| 142 | public function getTransactionText() |
|
| 143 | { |
|
| 144 | return $this->transactionText; |
|
| 145 | } |
|
| 146 | ||
| 147 | /** |
|
| 148 | * Sets transactionText variable. |
|
| 149 | * |
|
| 150 | * @param string $transactionText |
|
| 151 | * |
|
| 152 | * @return $this |
|
| 153 | */ |
|
| 154 | public function setTransactionText($transactionText) |
|
| 155 | { |
|
| 156 | $this->transactionText = $transactionText; |
|
| 157 | return $this; |
|
| 158 | } |
|
| 159 | } |
|
| 160 | ||
| @@ 12-159 (lines=148) @@ | ||
| 9 | * |
|
| 10 | * @package Vipps\Model\Payment |
|
| 11 | */ |
|
| 12 | class TransactionInfo |
|
| 13 | { |
|
| 14 | ||
| 15 | /** |
|
| 16 | * @var int |
|
| 17 | * @Serializer\Type("integer") |
|
| 18 | */ |
|
| 19 | protected $amount; |
|
| 20 | ||
| 21 | /** |
|
| 22 | * @var string |
|
| 23 | * @Serializer\Type("string") |
|
| 24 | */ |
|
| 25 | protected $status; |
|
| 26 | ||
| 27 | /** |
|
| 28 | * @var string |
|
| 29 | * @Serializer\Type("string") |
|
| 30 | */ |
|
| 31 | protected $transactionId; |
|
| 32 | ||
| 33 | /** |
|
| 34 | * @var \DateTimeInterface |
|
| 35 | * @Serializer\Type("DateTime<'Y-m-d\TH:i:s.u\Z'>") |
|
| 36 | */ |
|
| 37 | protected $timeStamp; |
|
| 38 | ||
| 39 | /** |
|
| 40 | * @var string |
|
| 41 | * @Serializer\Type("string") |
|
| 42 | */ |
|
| 43 | protected $transactionText; |
|
| 44 | ||
| 45 | /** |
|
| 46 | * Gets amount value. |
|
| 47 | * |
|
| 48 | * @return int |
|
| 49 | */ |
|
| 50 | public function getAmount() |
|
| 51 | { |
|
| 52 | return $this->amount; |
|
| 53 | } |
|
| 54 | ||
| 55 | /** |
|
| 56 | * Sets amount variable. |
|
| 57 | * |
|
| 58 | * @param int $amount |
|
| 59 | * |
|
| 60 | * @return $this |
|
| 61 | */ |
|
| 62 | public function setAmount($amount) |
|
| 63 | { |
|
| 64 | $this->amount = $amount; |
|
| 65 | return $this; |
|
| 66 | } |
|
| 67 | ||
| 68 | /** |
|
| 69 | * Gets timeStamp value. |
|
| 70 | * |
|
| 71 | * @return \DateTimeInterface |
|
| 72 | */ |
|
| 73 | public function getTimeStamp() |
|
| 74 | { |
|
| 75 | return $this->timeStamp; |
|
| 76 | } |
|
| 77 | ||
| 78 | /** |
|
| 79 | * Sets timeStamp variable. |
|
| 80 | * |
|
| 81 | * @param \DateTimeInterface $timeStamp |
|
| 82 | * |
|
| 83 | * @return $this |
|
| 84 | */ |
|
| 85 | public function setTimeStamp($timeStamp) |
|
| 86 | { |
|
| 87 | $this->timeStamp = $timeStamp; |
|
| 88 | return $this; |
|
| 89 | } |
|
| 90 | ||
| 91 | /** |
|
| 92 | * Gets message value. |
|
| 93 | * |
|
| 94 | * @return string |
|
| 95 | */ |
|
| 96 | public function getTransactionText() |
|
| 97 | { |
|
| 98 | return $this->transactionText; |
|
| 99 | } |
|
| 100 | ||
| 101 | /** |
|
| 102 | * Sets message variable. |
|
| 103 | * |
|
| 104 | * @param string $message |
|
| 105 | * |
|
| 106 | * @return $this |
|
| 107 | */ |
|
| 108 | public function setTransactionText($message) |
|
| 109 | { |
|
| 110 | $this->transactionText = $message; |
|
| 111 | return $this; |
|
| 112 | } |
|
| 113 | ||
| 114 | /** |
|
| 115 | * Gets status value. |
|
| 116 | * |
|
| 117 | * @return string |
|
| 118 | */ |
|
| 119 | public function getStatus() |
|
| 120 | { |
|
| 121 | return $this->status; |
|
| 122 | } |
|
| 123 | ||
| 124 | /** |
|
| 125 | * Sets status variable. |
|
| 126 | * |
|
| 127 | * @param string $status |
|
| 128 | * |
|
| 129 | * @return $this |
|
| 130 | */ |
|
| 131 | public function setStatus($status) |
|
| 132 | { |
|
| 133 | $this->status = $status; |
|
| 134 | return $this; |
|
| 135 | } |
|
| 136 | ||
| 137 | /** |
|
| 138 | * Gets transactionId value. |
|
| 139 | * |
|
| 140 | * @return string |
|
| 141 | */ |
|
| 142 | public function getTransactionId() |
|
| 143 | { |
|
| 144 | return $this->transactionId; |
|
| 145 | } |
|
| 146 | ||
| 147 | /** |
|
| 148 | * Sets transactionId variable. |
|
| 149 | * |
|
| 150 | * @param string $transactionId |
|
| 151 | * |
|
| 152 | * @return $this |
|
| 153 | */ |
|
| 154 | public function setTransactionId($transactionId) |
|
| 155 | { |
|
| 156 | $this->transactionId = $transactionId; |
|
| 157 | return $this; |
|
| 158 | } |
|
| 159 | } |
|
| 160 | ||