• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mlocati / nexi-xpay-web / 9096955143

15 May 2024 01:53PM UTC coverage: 5.917%. First build
9096955143

push

github

web-flow
Rename package and namespace (#2)

2 of 63 new or added lines in 24 files covered. (3.17%)

111 of 1876 relevant lines covered (5.92%)

0.51 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Entity/Webhook/Request.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace MLocati\Nexi\XPayWeb\Entity\Webhook;
6

7
use MLocati\Nexi\XPayWeb\Entity;
8

9
/*
10
 * WARNING: DO NOT EDIT THIS FILE
11
 * It has been generated automaticlly from a template.
12
 * Edit the template instead.
13
 */
14

15
/**
16
 * @see https://developer.nexi.it/en/api/notifica#tab_body
17
 */
18
class Request extends Entity
19
{
20
    /**
21
     * Id of the event.
22
     *
23
     * @optional
24
     *
25
     * @throws \MLocati\Nexi\XPayWeb\Exception\WrongFieldType
26
     *
27
     * @example 554ccc00-28fb-4344-a3fa-4bb8d1999bd5
28
     */
29
    public function getEventId(): ?string
30
    {
31
        return $this->_getString('eventId');
×
32
    }
33

34
    /**
35
     * Id of the event.
36
     *
37
     * @optional
38
     *
39
     * @return $this
40
     *
41
     * @example 554ccc00-28fb-4344-a3fa-4bb8d1999bd5
42
     */
43
    public function setEventId(?string $value): self
44
    {
45
        return $value === null ? $this->_unset('eventId') : $this->_set('eventId', $value);
×
46
    }
47

48
    /**
49
     * Event time in ISO 8601 format
50
     *
51
     * @optional
52
     *
53
     * @throws \MLocati\Nexi\XPayWeb\Exception\WrongFieldType
54
     *
55
     * @example 1661995200
56
     */
57
    public function getEventTime(): ?string
58
    {
59
        return $this->_getString('eventTime');
×
60
    }
61

62
    /**
63
     * Event time in ISO 8601 format
64
     *
65
     * @optional
66
     *
67
     * @return $this
68
     *
69
     * @example 1661995200
70
     */
71
    public function setEventTime(?string $value): self
72
    {
73
        return $value === null ? $this->_unset('eventTime') : $this->_set('eventTime', $value);
×
74
    }
75

76
    /**
77
     * Token received in the payment initialization phase. Used to detect the notification comes from the payment gateway.
78
     *
79
     * @optional
80
     *
81
     * @throws \MLocati\Nexi\XPayWeb\Exception\WrongFieldType
82
     *
83
     * @example 2f0ea5059b41414ca3744fe672327d85
84
     */
85
    public function getSecurityToken(): ?string
86
    {
87
        return $this->_getString('securityToken');
×
88
    }
89

90
    /**
91
     * Token received in the payment initialization phase. Used to detect the notification comes from the payment gateway.
92
     *
93
     * @optional
94
     *
95
     * @return $this
96
     *
97
     * @example 2f0ea5059b41414ca3744fe672327d85
98
     */
99
    public function setSecurityToken(?string $value): self
100
    {
101
        return $value === null ? $this->_unset('securityToken') : $this->_set('securityToken', $value);
×
102
    }
103

104
    /**
105
     * Object containing operation detail.
106
     *
107
     * @optional
108
     *
109
     * @throws \MLocati\Nexi\XPayWeb\Exception\WrongFieldType
110
     */
111
    public function getOperation(): ?\MLocati\Nexi\XPayWeb\Entity\Operation
112
    {
NEW
113
        return $this->_getEntity('operation', \MLocati\Nexi\XPayWeb\Entity\Operation::class);
×
114
    }
115

116
    /**
117
     * Object containing operation detail.
118
     *
119
     * @optional
120
     *
121
     * @return $this
122
     */
123
    public function setOperation(?\MLocati\Nexi\XPayWeb\Entity\Operation $value): self
124
    {
125
        return $value === null ? $this->_unset('operation') : $this->_set('operation', $value);
×
126
    }
127

128
    /**
129
     * {@inheritdoc}
130
     *
131
     * @see \MLocati\Nexi\XPayWeb\Entity::getRequiredFields()
132
     */
133
    protected function getRequiredFields(): array
134
    {
135
        return [
136
        ];
×
137
    }
138
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc