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

3
declare(strict_types=1);
4

5
namespace MLocati\Nexi\XPayWeb\Entity\GetXPayBuildOrderStatus;
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-build-state
17
 */
18
class Response extends Entity
19
{
20
    /**
21
     * Transaction status. Possible values:
22
     * - CARD_DATA_COLLECTION: the customer has chosen payment by card. The "fieldSet" object containing the iframes for collecting the card data is returned.
23
     * - PAYMENT_METHOD_SELECTION: the customer must proceed with the choice of payment method. The "fieldSet" object containing the payment method iframes is returned.
24
     * - READY_FOR_PAYMENT: payment ready to be executed, it is necessary to call the API POST /build/finalize_payment.
25
     * - REDIRECTED_TO_EXTERNAL_DOMAIN - The url to perform 3D Secure authentication has been provided. The "url" parameter is returned.
26
     * - PAYMENT_COMPLETE: Payment has been completed. The "operation" object is returned.
27
     *
28
     * @optional
29
     *
30
     * @throws \MLocati\Nexi\XPayWeb\Exception\WrongFieldType
31
     */
32
    public function getState(): ?string
33
    {
34
        return $this->_getString('state');
×
35
    }
36

37
    /**
38
     * Transaction status. Possible values:
39
     * - CARD_DATA_COLLECTION: the customer has chosen payment by card. The "fieldSet" object containing the iframes for collecting the card data is returned.
40
     * - PAYMENT_METHOD_SELECTION: the customer must proceed with the choice of payment method. The "fieldSet" object containing the payment method iframes is returned.
41
     * - READY_FOR_PAYMENT: payment ready to be executed, it is necessary to call the API POST /build/finalize_payment.
42
     * - REDIRECTED_TO_EXTERNAL_DOMAIN - The url to perform 3D Secure authentication has been provided. The "url" parameter is returned.
43
     * - PAYMENT_COMPLETE: Payment has been completed. The "operation" object is returned.
44
     *
45
     * @optional
46
     *
47
     * @return $this
48
     */
49
    public function setState(?string $value): self
50
    {
51
        return $value === null ? $this->_unset('state') : $this->_set('state', $value);
×
52
    }
53

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

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

82
    /**
83
     * Object containing operation detail.
84
     *
85
     * @optional
86
     *
87
     * @throws \MLocati\Nexi\XPayWeb\Exception\WrongFieldType
88
     */
89
    public function getOperation(): ?\MLocati\Nexi\XPayWeb\Entity\Operation
90
    {
NEW
91
        return $this->_getEntity('operation', \MLocati\Nexi\XPayWeb\Entity\Operation::class);
×
92
    }
93

94
    /**
95
     * Object containing operation detail.
96
     *
97
     * @optional
98
     *
99
     * @return $this
100
     */
101
    public function setOperation(?\MLocati\Nexi\XPayWeb\Entity\Operation $value): self
102
    {
103
        return $value === null ? $this->_unset('operation') : $this->_set('operation', $value);
×
104
    }
105

106
    /**
107
     * Oggetto contentente gli iframe per la scelta dei metodi di pagamento o per la raccolta dati carta.
108
     *
109
     * @optional
110
     *
111
     * @throws \MLocati\Nexi\XPayWeb\Exception\WrongFieldType
112
     */
113
    public function getFieldSet(): ?\MLocati\Nexi\XPayWeb\Entity\FieldSet
114
    {
NEW
115
        return $this->_getEntity('fieldSet', \MLocati\Nexi\XPayWeb\Entity\FieldSet::class);
×
116
    }
117

118
    /**
119
     * Oggetto contentente gli iframe per la scelta dei metodi di pagamento o per la raccolta dati carta.
120
     *
121
     * @optional
122
     *
123
     * @return $this
124
     */
125
    public function setFieldSet(?\MLocati\Nexi\XPayWeb\Entity\FieldSet $value): self
126
    {
127
        return $value === null ? $this->_unset('fieldSet') : $this->_set('fieldSet', $value);
×
128
    }
129

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