• 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/CreateStructureTermsAndConditions/Request.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace MLocati\Nexi\XPayWeb\Entity\CreateStructureTermsAndConditions;
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/post-structure_conditions
17
 */
18
class Request extends Entity
19
{
20
    /**
21
     * Structure identifier unique in the merchant domain.
22
     *
23
     * @optional
24
     * Maximum length: 36
25
     *
26
     * @throws \MLocati\Nexi\XPayWeb\Exception\WrongFieldType
27
     *
28
     * @example 99a172e5-423c-4648-9895-4cb5d1d43134
29
     */
30
    public function getStructureId(): ?string
31
    {
32
        return $this->_getString('structureId');
×
33
    }
34

35
    /**
36
     * Structure identifier unique in the merchant domain.
37
     *
38
     * @optional
39
     * Maximum length: 36
40
     *
41
     * @return $this
42
     *
43
     * @example 99a172e5-423c-4648-9895-4cb5d1d43134
44
     */
45
    public function setStructureId(?string $value): self
46
    {
47
        return $value === null ? $this->_unset('structureId') : $this->_set('structureId', $value);
×
48
    }
49

50
    /**
51
     * Possible values:
52
     * - PREPAID_REFUNDABLE: reservation is paid in advace for the service that will be provided and it can be refundable.
53
     * - PREPAID_NOT_REFUNDABLE: reservation is paid in advace for the service that will be provided and it can not be refundable.
54
     * - 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.
55
     * - 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.
56
     * - BUNDLE: booking of a package containing several services provided by the same structure, for example stay + excursion + restaurant + tourist bus.
57
     *
58
     * @optional
59
     *
60
     * @throws \MLocati\Nexi\XPayWeb\Exception\WrongFieldType
61
     *
62
     * @example GUARANTEED
63
     */
64
    public function getReservationType(): ?string
65
    {
66
        return $this->_getString('reservationType');
×
67
    }
68

69
    /**
70
     * Possible values:
71
     * - PREPAID_REFUNDABLE: reservation is paid in advace for the service that will be provided and it can be refundable.
72
     * - PREPAID_NOT_REFUNDABLE: reservation is paid in advace for the service that will be provided and it can not be refundable.
73
     * - 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.
74
     * - 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.
75
     * - BUNDLE: booking of a package containing several services provided by the same structure, for example stay + excursion + restaurant + tourist bus.
76
     *
77
     * @optional
78
     *
79
     * @return $this
80
     *
81
     * @example GUARANTEED
82
     */
83
    public function setReservationType(?string $value): self
84
    {
85
        return $value === null ? $this->_unset('reservationType') : $this->_set('reservationType', $value);
×
86
    }
87

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

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

116
    /**
117
     * Array of terms and conditions in multiple languages.
118
     *
119
     * @optional
120
     *
121
     * @throws \MLocati\Nexi\XPayWeb\Exception\WrongFieldType
122
     *
123
     * @return \MLocati\Nexi\XPayWeb\Entity\StructureTermsAndConditionsDetails[]|null
124
     */
125
    public function getTermsAndConditions(): ?array
126
    {
NEW
127
        return $this->_getEntityArray('termsAndConditions', \MLocati\Nexi\XPayWeb\Entity\StructureTermsAndConditionsDetails::class);
×
128
    }
129

130
    /**
131
     * Array of terms and conditions in multiple languages.
132
     *
133
     * @param \MLocati\Nexi\XPayWeb\Entity\StructureTermsAndConditionsDetails[]|null $value
134
     *
135
     * @optional
136
     *
137
     * @return $this
138
     */
139
    public function setTermsAndConditions(?array $value): self
140
    {
NEW
141
        return $value === null ? $this->_unset('termsAndConditions') : $this->_setEntityArray('termsAndConditions', \MLocati\Nexi\XPayWeb\Entity\StructureTermsAndConditionsDetails::class, $value);
×
142
    }
143

144
    /**
145
     * {@inheritdoc}
146
     *
147
     * @see \MLocati\Nexi\XPayWeb\Entity::getRequiredFields()
148
     */
149
    protected function getRequiredFields(): array
150
    {
151
        return [
152
        ];
×
153
    }
154
}
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