• 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/FindTermsAndConditionsById/Response.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace MLocati\Nexi\XPayWeb\Entity\FindTermsAndConditionsById;
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/get-terms_and_conditions-termsAndConditionsId
17
 */
18
class Response extends Entity
19
{
20
    /**
21
     * Free label to let the merchant identify the Terms and Conditions version for audit purposes.
22
     *
23
     * @optional
24
     *
25
     * @throws \MLocati\Nexi\XPayWeb\Exception\WrongFieldType
26
     *
27
     * @example Grand Hotel Mississipi selling conditions v01
28
     */
29
    public function getName(): ?string
30
    {
31
        return $this->_getString('name');
×
32
    }
33

34
    /**
35
     * Free label to let the merchant identify the Terms and Conditions version for audit purposes.
36
     *
37
     * @optional
38
     *
39
     * @return $this
40
     *
41
     * @example Grand Hotel Mississipi selling conditions v01
42
     */
43
    public function setName(?string $value): self
44
    {
45
        return $value === null ? $this->_unset('name') : $this->_set('name', $value);
×
46
    }
47

48
    /**
49
     * Timestamp related to creation date for Terms and Conditions.
50
     *
51
     * @optional
52
     *
53
     * @throws \MLocati\Nexi\XPayWeb\Exception\WrongFieldType
54
     *
55
     * @example 2023-03-16T00:00:00.000Z
56
     */
57
    public function getTecCreationDate(): ?string
58
    {
59
        return $this->_getString('tecCreationDate');
×
60
    }
61

62
    /**
63
     * Timestamp related to creation date for Terms and Conditions.
64
     *
65
     * @optional
66
     *
67
     * @return $this
68
     *
69
     * @example 2023-03-16T00:00:00.000Z
70
     */
71
    public function setTecCreationDate(?string $value): self
72
    {
73
        return $value === null ? $this->_unset('tecCreationDate') : $this->_set('tecCreationDate', $value);
×
74
    }
75

76
    /**
77
     * Array of Terms and Conditions in multiple languages.
78
     *
79
     * @optional
80
     *
81
     * @throws \MLocati\Nexi\XPayWeb\Exception\WrongFieldType
82
     *
83
     * @return \MLocati\Nexi\XPayWeb\Entity\TermsAndConditions[]|null
84
     */
85
    public function getTermsAndConditions(): ?array
86
    {
NEW
87
        return $this->_getEntityArray('termsAndConditions', \MLocati\Nexi\XPayWeb\Entity\TermsAndConditions::class);
×
88
    }
89

90
    /**
91
     * Array of Terms and Conditions in multiple languages.
92
     *
93
     * @param \MLocati\Nexi\XPayWeb\Entity\TermsAndConditions[]|null $value
94
     *
95
     * @optional
96
     *
97
     * @return $this
98
     */
99
    public function setTermsAndConditions(?array $value): self
100
    {
NEW
101
        return $value === null ? $this->_unset('termsAndConditions') : $this->_setEntityArray('termsAndConditions', \MLocati\Nexi\XPayWeb\Entity\TermsAndConditions::class, $value);
×
102
    }
103

104
    /**
105
     * Unique identifier of Terms and Conditions.
106
     *
107
     * @optional
108
     *
109
     * @throws \MLocati\Nexi\XPayWeb\Exception\WrongFieldType
110
     *
111
     * @example aeca2ac3-1d03-4f17-855b-19767f9c4586
112
     */
113
    public function getTermsAndConditionsId(): ?string
114
    {
115
        return $this->_getString('termsAndConditionsId');
×
116
    }
117

118
    /**
119
     * Unique identifier of Terms and Conditions.
120
     *
121
     * @optional
122
     *
123
     * @return $this
124
     *
125
     * @example aeca2ac3-1d03-4f17-855b-19767f9c4586
126
     */
127
    public function setTermsAndConditionsId(?string $value): self
128
    {
129
        return $value === null ? $this->_unset('termsAndConditionsId') : $this->_set('termsAndConditionsId', $value);
×
130
    }
131

132
    /**
133
     * {@inheritdoc}
134
     *
135
     * @see \MLocati\Nexi\XPayWeb\Entity::getRequiredFields()
136
     */
137
    protected function getRequiredFields(): array
138
    {
139
        return [
140
        ];
×
141
    }
142
}
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