|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
/** |
|
4
|
|
|
* PHP version 5.4 and 8 |
|
5
|
|
|
* |
|
6
|
|
|
* @category MessageEntity |
|
7
|
|
|
* @package Payever\Payments |
|
8
|
|
|
* @author payever GmbH <[email protected]> |
|
9
|
|
|
* @copyright 2017-2021 payever GmbH |
|
10
|
|
|
* @license MIT <https://opensource.org/licenses/MIT> |
|
11
|
|
|
* @link https://docs.payever.org/shopsystems/api/getting-started |
|
12
|
|
|
*/ |
|
13
|
|
|
|
|
14
|
|
|
namespace Payever\ExternalIntegration\Payments\Http\MessageEntity; |
|
15
|
|
|
|
|
16
|
|
|
use Payever\ExternalIntegration\Core\Http\MessageEntity\CallEntity; |
|
17
|
|
|
|
|
18
|
|
|
/** |
|
19
|
|
|
* This class represents Payment Call Entity |
|
20
|
|
|
* |
|
21
|
|
|
* @method string getPaymentId() |
|
22
|
|
|
* @method string getCustomerId() |
|
23
|
|
|
* @method string getInvoiceId() |
|
24
|
|
|
* @method \DateTime|false getInvoiceDate() |
|
25
|
|
|
* @method string getType() |
|
26
|
|
|
* @method string getMessage() |
|
27
|
|
|
* @method self setPaymentId(string $paymentId) |
|
28
|
|
|
* @method self setCustomerId(string $customerId) |
|
29
|
|
|
* @method self setInvoiceId(string $invoiceId) |
|
30
|
|
|
* @method self setType(string $type) |
|
31
|
|
|
* @method self setMessage(string $message) |
|
32
|
|
|
*/ |
|
33
|
|
|
class PaymentCallEntity extends CallEntity |
|
34
|
|
|
{ |
|
35
|
|
|
/** @var string $paymentId */ |
|
36
|
|
|
protected $paymentId; |
|
37
|
|
|
|
|
38
|
|
|
/** @var string $customerId */ |
|
39
|
|
|
protected $customerId; |
|
40
|
|
|
|
|
41
|
|
|
/** @var string $invoiceId */ |
|
42
|
|
|
protected $invoiceId; |
|
43
|
|
|
|
|
44
|
|
|
/** @var \DateTime|bool $invoiceDate */ |
|
45
|
|
|
protected $invoiceDate; |
|
46
|
|
|
|
|
47
|
|
|
/** @var string $type */ |
|
48
|
|
|
protected $type; |
|
49
|
|
|
|
|
50
|
|
|
/** @var string $message */ |
|
51
|
|
|
protected $message; |
|
52
|
|
|
|
|
53
|
|
|
/** |
|
54
|
|
|
* Sets Invoice Date |
|
55
|
|
|
* |
|
56
|
|
|
* @param string $invoiceDate |
|
57
|
|
|
*/ |
|
58
|
|
|
public function setInvoiceDate($invoiceDate) |
|
59
|
|
|
{ |
|
60
|
|
|
$this->invoiceDate = date_create($invoiceDate); |
|
61
|
|
|
} |
|
62
|
|
|
} |
|
63
|
|
|
|