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

mlocati / nexi-xpay-web / 9096888816

15 May 2024 01:49PM UTC coverage: 5.917%. First build
9096888816

Pull #2

github

web-flow
Merge b07771102 into 25fd46802
Pull Request #2: Rename package and namespace

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

3
declare(strict_types=1);
4

5
namespace MLocati\Nexi\XPayWeb\Entity\FinalizeXPayBuildOrder;
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-build-finalize-payment
17
 */
18
class Response extends Entity
19
{
20
    /**
21
     * Stato della transazione. Valori possibili:
22
     * - REDIRECTED_TO_EXTERNAL_DOMAIN
23
     * - PAYMENT_COMPLETE
24
     *
25
     * @optional
26
     *
27
     * @throws \MLocati\Nexi\XPayWeb\Exception\WrongFieldType
28
     */
29
    public function getState(): ?string
30
    {
31
        return $this->_getString('state');
×
32
    }
33

34
    /**
35
     * Stato della transazione. Valori possibili:
36
     * - REDIRECTED_TO_EXTERNAL_DOMAIN
37
     * - PAYMENT_COMPLETE
38
     *
39
     * @optional
40
     *
41
     * @return $this
42
     */
43
    public function setState(?string $value): self
44
    {
45
        return $value === null ? $this->_unset('state') : $this->_set('state', $value);
×
46
    }
47

48
    /**
49
     * Address for 3D Secure authentication. This parameter is returned if the "state" parameter is set to "REDIRECTED_TO_EXTERNAL_DOMAIN".
50
     *
51
     * @optional
52
     *
53
     * @throws \MLocati\Nexi\XPayWeb\Exception\WrongFieldType
54
     *
55
     * @example https://{3DS-Ares-Url}
56
     */
57
    public function getUrl(): ?string
58
    {
59
        return $this->_getString('url');
×
60
    }
61

62
    /**
63
     * Address for 3D Secure authentication. This parameter is returned if the "state" parameter is set to "REDIRECTED_TO_EXTERNAL_DOMAIN".
64
     *
65
     * @optional
66
     *
67
     * @return $this
68
     *
69
     * @example https://{3DS-Ares-Url}
70
     */
71
    public function setUrl(?string $value): self
72
    {
73
        return $value === null ? $this->_unset('url') : $this->_set('url', $value);
×
74
    }
75

76
    /**
77
     * Object containing operation detail.
78
     *
79
     * @optional
80
     *
81
     * @throws \MLocati\Nexi\XPayWeb\Exception\WrongFieldType
82
     */
83
    public function getOperation(): ?\MLocati\Nexi\XPayWeb\Entity\Operation
84
    {
NEW
85
        return $this->_getEntity('operation', \MLocati\Nexi\XPayWeb\Entity\Operation::class);
×
86
    }
87

88
    /**
89
     * Object containing operation detail.
90
     *
91
     * @optional
92
     *
93
     * @return $this
94
     */
95
    public function setOperation(?\MLocati\Nexi\XPayWeb\Entity\Operation $value): self
96
    {
97
        return $value === null ? $this->_unset('operation') : $this->_set('operation', $value);
×
98
    }
99

100
    /**
101
     * {@inheritdoc}
102
     *
103
     * @see \MLocati\Nexi\XPayWeb\Entity::getRequiredFields()
104
     */
105
    protected function getRequiredFields(): array
106
    {
107
        return [
108
        ];
×
109
    }
110
}
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