PayoneStub::cancelRedirect()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 5
rs 10
1
<?php
2
3
/**
4
 * MIT License
5
 * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
6
 */
7
8
namespace SprykerEco\Client\Payone\Zed;
9
10
use Generated\Shared\Transfer\AddressCheckResponseTransfer;
0 ignored issues
show
Bug introduced by
The type Generated\Shared\Transfe...ssCheckResponseTransfer was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
11
use Generated\Shared\Transfer\ConsumerScoreResponseTransfer;
0 ignored issues
show
Bug introduced by
The type Generated\Shared\Transfe...erScoreResponseTransfer was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
12
use Generated\Shared\Transfer\PayoneBankAccountCheckTransfer;
0 ignored issues
show
Bug introduced by
The type Generated\Shared\Transfe...ankAccountCheckTransfer was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
13
use Generated\Shared\Transfer\PayoneCancelRedirectTransfer;
0 ignored issues
show
Bug introduced by
The type Generated\Shared\Transfe...eCancelRedirectTransfer was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
14
use Generated\Shared\Transfer\PayoneGetFileTransfer;
0 ignored issues
show
Bug introduced by
The type Generated\Shared\Transfer\PayoneGetFileTransfer was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
15
use Generated\Shared\Transfer\PayoneGetInvoiceTransfer;
0 ignored issues
show
Bug introduced by
The type Generated\Shared\Transfer\PayoneGetInvoiceTransfer was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
16
use Generated\Shared\Transfer\PayoneGetPaymentDetailTransfer;
0 ignored issues
show
Bug introduced by
The type Generated\Shared\Transfe...etPaymentDetailTransfer was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
17
use Generated\Shared\Transfer\PayoneInitPaypalExpressCheckoutRequestTransfer;
0 ignored issues
show
Bug introduced by
The type Generated\Shared\Transfe...CheckoutRequestTransfer was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
18
use Generated\Shared\Transfer\PayoneKlarnaStartSessionRequestTransfer;
0 ignored issues
show
Bug introduced by
The type Generated\Shared\Transfe...tSessionRequestTransfer was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
19
use Generated\Shared\Transfer\PayoneKlarnaStartSessionResponseTransfer;
0 ignored issues
show
Bug introduced by
The type Generated\Shared\Transfe...SessionResponseTransfer was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
20
use Generated\Shared\Transfer\PayoneManageMandateTransfer;
0 ignored issues
show
Bug introduced by
The type Generated\Shared\Transfe...neManageMandateTransfer was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
21
use Generated\Shared\Transfer\PayonePaypalExpressCheckoutGenericPaymentResponseTransfer;
0 ignored issues
show
Bug introduced by
The type Generated\Shared\Transfe...PaymentResponseTransfer was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
22
use Generated\Shared\Transfer\PayoneTransactionStatusUpdateTransfer;
0 ignored issues
show
Bug introduced by
The type Generated\Shared\Transfe...ionStatusUpdateTransfer was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
23
use Generated\Shared\Transfer\QuoteTransfer;
0 ignored issues
show
Bug introduced by
The type Generated\Shared\Transfer\QuoteTransfer was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
24
use Spryker\Client\ZedRequest\Stub\ZedRequestStub;
25
26
class PayoneStub extends ZedRequestStub implements PayoneStubInterface
27
{
28
    /**
29
     * @param \Generated\Shared\Transfer\PayoneTransactionStatusUpdateTransfer $transactionStatus
30
     *
31
     * @return \Generated\Shared\Transfer\PayoneTransactionStatusUpdateTransfer
32
     */
33
    public function updateStatus(PayoneTransactionStatusUpdateTransfer $transactionStatus): PayoneTransactionStatusUpdateTransfer
34
    {
35
        return $this->zedStub->call(
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->zedStub->c...e', $transactionStatus) returns the type Spryker\Shared\Kernel\Transfer\TransferInterface which is incompatible with the type-hinted return Generated\Shared\Transfe...ionStatusUpdateTransfer.
Loading history...
36
            '/payone/gateway/status-update',
37
            $transactionStatus
38
        );
39
    }
40
41
    /**
42
     * @param \Generated\Shared\Transfer\PayoneBankAccountCheckTransfer $bankAccountCheckTransfer
43
     *
44
     * @return \Generated\Shared\Transfer\PayoneBankAccountCheckTransfer
45
     */
46
    public function bankAccountCheck(PayoneBankAccountCheckTransfer $bankAccountCheckTransfer): PayoneBankAccountCheckTransfer
47
    {
48
        return $this->zedStub->call(
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->zedStub->c...nkAccountCheckTransfer) returns the type Spryker\Shared\Kernel\Transfer\TransferInterface which is incompatible with the type-hinted return Generated\Shared\Transfe...ankAccountCheckTransfer.
Loading history...
49
            '/payone/gateway/bank-account-check',
50
            $bankAccountCheckTransfer
51
        );
52
    }
53
54
    /**
55
     * @param \Generated\Shared\Transfer\PayoneManageMandateTransfer $manageMandateTransfer
56
     *
57
     * @return \Generated\Shared\Transfer\PayoneManageMandateTransfer
58
     */
59
    public function manageMandate(PayoneManageMandateTransfer $manageMandateTransfer): PayoneManageMandateTransfer
60
    {
61
        return $this->zedStub->call(
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->zedStub->c...$manageMandateTransfer) returns the type Spryker\Shared\Kernel\Transfer\TransferInterface which is incompatible with the type-hinted return Generated\Shared\Transfe...neManageMandateTransfer.
Loading history...
62
            '/payone/gateway/manage-mandate',
63
            $manageMandateTransfer
64
        );
65
    }
66
67
    /**
68
     * @param \Generated\Shared\Transfer\PayoneGetFileTransfer $getFileTransfer
69
     *
70
     * @return \Generated\Shared\Transfer\PayoneGetFileTransfer
71
     */
72
    public function getFile(PayoneGetFileTransfer $getFileTransfer): PayoneGetFileTransfer
73
    {
74
        return $this->zedStub->call(
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->zedStub->c...ile', $getFileTransfer) returns the type Spryker\Shared\Kernel\Transfer\TransferInterface which is incompatible with the type-hinted return Generated\Shared\Transfer\PayoneGetFileTransfer.
Loading history...
75
            '/payone/gateway/get-file',
76
            $getFileTransfer
77
        );
78
    }
79
80
    /**
81
     * @param \Generated\Shared\Transfer\PayoneGetPaymentDetailTransfer $getPaymentDetailTransfer
82
     *
83
     * @return \Generated\Shared\Transfer\PayoneGetPaymentDetailTransfer
84
     */
85
    public function getPaymentDetail(PayoneGetPaymentDetailTransfer $getPaymentDetailTransfer): PayoneGetPaymentDetailTransfer
86
    {
87
        return $this->zedStub->call(
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->zedStub->c...tPaymentDetailTransfer) returns the type Spryker\Shared\Kernel\Transfer\TransferInterface which is incompatible with the type-hinted return Generated\Shared\Transfe...etPaymentDetailTransfer.
Loading history...
88
            '/payone/gateway/get-payment-detail',
89
            $getPaymentDetailTransfer
90
        );
91
    }
92
93
    /**
94
     * @param \Generated\Shared\Transfer\PayoneGetInvoiceTransfer $getInvoiceTransfer
95
     *
96
     * @return \Generated\Shared\Transfer\PayoneGetInvoiceTransfer
97
     */
98
    public function getInvoice(PayoneGetInvoiceTransfer $getInvoiceTransfer): PayoneGetInvoiceTransfer
99
    {
100
        return $this->zedStub->call(
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->zedStub->c...', $getInvoiceTransfer) returns the type Spryker\Shared\Kernel\Transfer\TransferInterface which is incompatible with the type-hinted return Generated\Shared\Transfer\PayoneGetInvoiceTransfer.
Loading history...
101
            '/payone/gateway/get-invoice',
102
            $getInvoiceTransfer
103
        );
104
    }
105
106
    /**
107
     * @param \Generated\Shared\Transfer\PayoneCancelRedirectTransfer $cancelRedirectTransfer
108
     *
109
     * @return \Generated\Shared\Transfer\PayoneCancelRedirectTransfer
110
     */
111
    public function cancelRedirect(PayoneCancelRedirectTransfer $cancelRedirectTransfer): PayoneCancelRedirectTransfer
112
    {
113
        return $this->zedStub->call(
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->zedStub->c...cancelRedirectTransfer) returns the type Spryker\Shared\Kernel\Transfer\TransferInterface which is incompatible with the type-hinted return Generated\Shared\Transfe...eCancelRedirectTransfer.
Loading history...
114
            '/payone/gateway/cancel-redirect',
115
            $cancelRedirectTransfer
116
        );
117
    }
118
119
    /**
120
     * @param \Generated\Shared\Transfer\PayoneInitPaypalExpressCheckoutRequestTransfer $requestTransfer
121
     *
122
     * @return \Generated\Shared\Transfer\PayonePaypalExpressCheckoutGenericPaymentResponseTransfer
123
     */
124
    public function initPaypalExpressCheckout(
125
        PayoneInitPaypalExpressCheckoutRequestTransfer $requestTransfer
126
    ): PayonePaypalExpressCheckoutGenericPaymentResponseTransfer {
127
        return $this->zedStub->call(
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->zedStub->c...out', $requestTransfer) returns the type Spryker\Shared\Kernel\Transfer\TransferInterface which is incompatible with the type-hinted return Generated\Shared\Transfe...PaymentResponseTransfer.
Loading history...
128
            '/payone/gateway/init-paypal-express-checkout',
129
            $requestTransfer
130
        );
131
    }
132
133
    /**
134
     * @param \Generated\Shared\Transfer\QuoteTransfer $quoteTransfer
135
     *
136
     * @return \Generated\Shared\Transfer\PayonePaypalExpressCheckoutGenericPaymentResponseTransfer
137
     */
138
    public function getPaypalExpressCheckoutDetails(QuoteTransfer $quoteTransfer): PayonePaypalExpressCheckoutGenericPaymentResponseTransfer
139
    {
140
        return $this->zedStub->call(
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->zedStub->c...tails', $quoteTransfer) returns the type Spryker\Shared\Kernel\Transfer\TransferInterface which is incompatible with the type-hinted return Generated\Shared\Transfe...PaymentResponseTransfer.
Loading history...
141
            '/payone/gateway/get-paypal-express-checkout-details',
142
            $quoteTransfer
143
        );
144
    }
145
146
    /**
147
     * @param \Generated\Shared\Transfer\QuoteTransfer $quoteTransfer
148
     *
149
     * @return \Generated\Shared\Transfer\AddressCheckResponseTransfer
150
     */
151
    public function sendAddressCheckRequest(QuoteTransfer $quoteTransfer): AddressCheckResponseTransfer
152
    {
153
        return $this->zedStub->call('/payone/gateway/send-address-check-request', $quoteTransfer);
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->zedStub->c...quest', $quoteTransfer) returns the type Spryker\Shared\Kernel\Transfer\TransferInterface which is incompatible with the type-hinted return Generated\Shared\Transfe...ssCheckResponseTransfer.
Loading history...
154
    }
155
156
    /**
157
     * @param \Generated\Shared\Transfer\QuoteTransfer $quoteTransfer
158
     *
159
     * @return \Generated\Shared\Transfer\ConsumerScoreResponseTransfer
160
     */
161
    public function sendConsumerScoreRequest(QuoteTransfer $quoteTransfer): ConsumerScoreResponseTransfer
162
    {
163
        return $this->zedStub->call('/payone/gateway/send-consumer-score-request', $quoteTransfer);
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->zedStub->c...quest', $quoteTransfer) returns the type Spryker\Shared\Kernel\Transfer\TransferInterface which is incompatible with the type-hinted return Generated\Shared\Transfe...erScoreResponseTransfer.
Loading history...
164
    }
165
166
    /**
167
     * @uses \SprykerEco\Zed\Payone\Communication\Controller\GatewayController::sendKlarnaStartSessionRequestAction()
168
     *
169
     * @param \Generated\Shared\Transfer\PayoneKlarnaStartSessionRequestTransfer $payoneKlarnaStartSessionRequestTransfer
170
     *
171
     * @return \Generated\Shared\Transfer\PayoneKlarnaStartSessionResponseTransfer
172
     */
173
    public function sendKlarnaStartSessionRequest(
174
        PayoneKlarnaStartSessionRequestTransfer $payoneKlarnaStartSessionRequestTransfer
175
    ): PayoneKlarnaStartSessionResponseTransfer {
176
        return $this->zedStub->call('/payone/gateway/send-klarna-start-session-request', $payoneKlarnaStartSessionRequestTransfer);
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->zedStub->c...SessionRequestTransfer) returns the type Spryker\Shared\Kernel\Transfer\TransferInterface which is incompatible with the type-hinted return Generated\Shared\Transfe...SessionResponseTransfer.
Loading history...
177
    }
178
}
179