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

3
declare(strict_types=1);
4

5
namespace MLocati\Nexi\XPayWeb\Entity\FindStructureTermsAndConditionsById;
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-structure_conditions-structureConditionId
17
 */
18
class Response extends Entity
19
{
20
    /**
21
     * Unique identifier of terms and conditions for the structure.
22
     *
23
     * @optional
24
     *
25
     * @throws \MLocati\Nexi\XPayWeb\Exception\WrongFieldType
26
     *
27
     * @example aeca2ac3-1d03-4f17-855b-19767f9c4586
28
     */
29
    public function getStructureConditionId(): ?string
30
    {
31
        return $this->_getString('structureConditionId');
×
32
    }
33

34
    /**
35
     * Unique identifier of terms and conditions for the structure.
36
     *
37
     * @optional
38
     *
39
     * @return $this
40
     *
41
     * @example aeca2ac3-1d03-4f17-855b-19767f9c4586
42
     */
43
    public function setStructureConditionId(?string $value): self
44
    {
45
        return $value === null ? $this->_unset('structureConditionId') : $this->_set('structureConditionId', $value);
×
46
    }
47

48
    /**
49
     * Possible values:
50
     * - PREPAID_REFUNDABLE: reservation is paid in advace for the service that will be provided and it can be refundable.
51
     * - PREPAID_NOT_REFUNDABLE: reservation is paid in advace for the service that will be provided and it can not be refundable.
52
     * - GUARANTEED_NOSHOW: reservation, through a card verification without charge to the customer. If the customer does not show up at the property, it is possible to charge the cost of the first night of stay.
53
     * - GUARANTEED_PENALTY: reservation, through a card verification without charge to the customer. An automatic charge of the predetermined penalty is made in case a guest does not show up at the property.
54
     * - BUNDLE: booking of a package containing several services provided by the same structure, for example stay + excursion + restaurant + tourist bus.
55
     *
56
     * @optional
57
     *
58
     * @throws \MLocati\Nexi\XPayWeb\Exception\WrongFieldType
59
     *
60
     * @example GUARANTEED
61
     */
62
    public function getReservationType(): ?string
63
    {
64
        return $this->_getString('reservationType');
×
65
    }
66

67
    /**
68
     * Possible values:
69
     * - PREPAID_REFUNDABLE: reservation is paid in advace for the service that will be provided and it can be refundable.
70
     * - PREPAID_NOT_REFUNDABLE: reservation is paid in advace for the service that will be provided and it can not be refundable.
71
     * - GUARANTEED_NOSHOW: reservation, through a card verification without charge to the customer. If the customer does not show up at the property, it is possible to charge the cost of the first night of stay.
72
     * - GUARANTEED_PENALTY: reservation, through a card verification without charge to the customer. An automatic charge of the predetermined penalty is made in case a guest does not show up at the property.
73
     * - BUNDLE: booking of a package containing several services provided by the same structure, for example stay + excursion + restaurant + tourist bus.
74
     *
75
     * @optional
76
     *
77
     * @return $this
78
     *
79
     * @example GUARANTEED
80
     */
81
    public function setReservationType(?string $value): self
82
    {
83
        return $value === null ? $this->_unset('reservationType') : $this->_set('reservationType', $value);
×
84
    }
85

86
    /**
87
     * Free label to let the merchant identify the termsAndConditions version for audit purposes.
88
     *
89
     * @optional
90
     *
91
     * @throws \MLocati\Nexi\XPayWeb\Exception\WrongFieldType
92
     *
93
     * @example Grand Hotel Mississipi selling conditions v01
94
     */
95
    public function getName(): ?string
96
    {
97
        return $this->_getString('name');
×
98
    }
99

100
    /**
101
     * Free label to let the merchant identify the termsAndConditions version for audit purposes.
102
     *
103
     * @optional
104
     *
105
     * @return $this
106
     *
107
     * @example Grand Hotel Mississipi selling conditions v01
108
     */
109
    public function setName(?string $value): self
110
    {
111
        return $value === null ? $this->_unset('name') : $this->_set('name', $value);
×
112
    }
113

114
    /**
115
     * Timestamp related to creation date for terms and conditions.
116
     *
117
     * @optional
118
     *
119
     * @throws \MLocati\Nexi\XPayWeb\Exception\WrongFieldType
120
     *
121
     * @example 2023-03-16T00:00:00.000Z
122
     */
123
    public function getTecCreationDate(): ?string
124
    {
125
        return $this->_getString('tecCreationDate');
×
126
    }
127

128
    /**
129
     * Timestamp related to creation date for terms and conditions.
130
     *
131
     * @optional
132
     *
133
     * @return $this
134
     *
135
     * @example 2023-03-16T00:00:00.000Z
136
     */
137
    public function setTecCreationDate(?string $value): self
138
    {
139
        return $value === null ? $this->_unset('tecCreationDate') : $this->_set('tecCreationDate', $value);
×
140
    }
141

142
    /**
143
     * Array of terms and conditions in multiple languages.
144
     *
145
     * @optional
146
     *
147
     * @throws \MLocati\Nexi\XPayWeb\Exception\WrongFieldType
148
     *
149
     * @return \MLocati\Nexi\XPayWeb\Entity\StructureTermsAndConditionsDetails[]|null
150
     */
151
    public function getTermsAndConditions(): ?array
152
    {
NEW
153
        return $this->_getEntityArray('termsAndConditions', \MLocati\Nexi\XPayWeb\Entity\StructureTermsAndConditionsDetails::class);
×
154
    }
155

156
    /**
157
     * Array of terms and conditions in multiple languages.
158
     *
159
     * @param \MLocati\Nexi\XPayWeb\Entity\StructureTermsAndConditionsDetails[]|null $value
160
     *
161
     * @optional
162
     *
163
     * @return $this
164
     */
165
    public function setTermsAndConditions(?array $value): self
166
    {
NEW
167
        return $value === null ? $this->_unset('termsAndConditions') : $this->_setEntityArray('termsAndConditions', \MLocati\Nexi\XPayWeb\Entity\StructureTermsAndConditionsDetails::class, $value);
×
168
    }
169

170
    /**
171
     * {@inheritdoc}
172
     *
173
     * @see \MLocati\Nexi\XPayWeb\Entity::getRequiredFields()
174
     */
175
    protected function getRequiredFields(): array
176
    {
177
        return [
178
        ];
×
179
    }
180
}
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

© 2026 Coveralls, Inc