sendPreContractualInformationAndRedemptionPlanRequest()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
/**
4
 * MIT License
5
 * For full license information, please view the LICENSE file that was distributed with this source code.
6
 */
7
8
namespace SprykerEco\Zed\Easycredit\Business;
9
10
use Generated\Shared\Transfer\EasycreditApprovalTextResponseTransfer;
0 ignored issues
show
Bug introduced by
The type Generated\Shared\Transfe...valTextResponseTransfer 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\EasycreditInitializePaymentResponseTransfer;
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...
12
use Generated\Shared\Transfer\EasycreditInterestAndAdjustTotalSumResponseTransfer;
0 ignored issues
show
Bug introduced by
The type Generated\Shared\Transfe...otalSumResponseTransfer 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\EasycreditOrderConfirmationResponseTransfer;
0 ignored issues
show
Bug introduced by
The type Generated\Shared\Transfe...rmationResponseTransfer 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\EasycreditPreContractualInformationAndRedemptionPlanResponseTransfer;
0 ignored issues
show
Bug introduced by
The type Generated\Shared\Transfe...ionPlanResponseTransfer 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\EasycreditQueryCreditAssessmentResponseTransfer;
0 ignored issues
show
Bug introduced by
The type Generated\Shared\Transfe...essmentResponseTransfer 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\PaymentEasycreditOrderIdentifierTransfer;
0 ignored issues
show
Bug introduced by
The type Generated\Shared\Transfe...OrderIdentifierTransfer 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\PaymentMethodsTransfer;
0 ignored issues
show
Bug introduced by
The type Generated\Shared\Transfer\PaymentMethodsTransfer 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\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...
19
use Generated\Shared\Transfer\SaveOrderTransfer;
0 ignored issues
show
Bug introduced by
The type Generated\Shared\Transfer\SaveOrderTransfer 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 Spryker\Zed\Kernel\Business\AbstractFacade;
21
22
/**
23
 * @method \SprykerEco\Zed\Easycredit\Business\EasycreditBusinessFactory getFactory()
24
 * @method \SprykerEco\Zed\Easycredit\Persistence\EasycreditEntityManagerInterface getEntityManager()
25
 * @method \SprykerEco\Zed\Easycredit\Persistence\EasycreditRepositoryInterface getRepository()
26
 */
27
class EasycreditFacade extends AbstractFacade implements EasycreditFacadeInterface
28
{
29
    /**
30
     * {@inheritdoc}
31
     *
32
     * @api
33
     *
34
     * @param \Generated\Shared\Transfer\QuoteTransfer $quoteTransfer
35
     *
36
     * @return \Generated\Shared\Transfer\EasycreditInitializePaymentResponseTransfer
37
     */
38
    public function sendInitializePaymentRequest(QuoteTransfer $quoteTransfer): EasycreditInitializePaymentResponseTransfer
39
    {
40
        return $this
41
            ->getFactory()
42
            ->createRequestSender()
43
            ->sendInitializePaymentRequest($quoteTransfer);
44
    }
45
46
    /**
47
     * {@inheritdoc}
48
     *
49
     * @api
50
     *
51
     * @param \Generated\Shared\Transfer\QuoteTransfer $quoteTransfer
52
     *
53
     * @return \Generated\Shared\Transfer\EasycreditQueryCreditAssessmentResponseTransfer
54
     */
55
    public function sendQueryCreditAssessmentRequest(QuoteTransfer $quoteTransfer): EasycreditQueryCreditAssessmentResponseTransfer
56
    {
57
        return $this
58
            ->getFactory()
59
            ->createRequestSender()
60
            ->sendQueryCreditAssessmentRequest($quoteTransfer);
61
    }
62
63
    /**
64
     * {@inheritdoc}
65
     *
66
     * @api
67
     *
68
     * @param int $orderId
69
     *
70
     * @return \Generated\Shared\Transfer\EasycreditOrderConfirmationResponseTransfer
71
     */
72
    public function sendOrderConfirmationRequest(int $orderId): EasycreditOrderConfirmationResponseTransfer
73
    {
74
        return $this
75
            ->getFactory()
76
            ->createRequestSender()
77
            ->sendOrderConfirmationRequest($orderId);
78
    }
79
80
    /**
81
     * {@inheritdoc}
82
     *
83
     * @api
84
     *
85
     * @return \Generated\Shared\Transfer\EasycreditApprovalTextResponseTransfer
86
     */
87
    public function sendApprovalTextRequest(): EasycreditApprovalTextResponseTransfer
88
    {
89
        return $this
90
            ->getFactory()
91
            ->createRequestSender()
92
            ->sendApprovalTextRequest();
93
    }
94
95
    /**
96
     * {@inheritdoc}
97
     *
98
     * @api
99
     *
100
     * @param \Generated\Shared\Transfer\PaymentMethodsTransfer $paymentMethodsTransfer
101
     * @param \Generated\Shared\Transfer\QuoteTransfer $quoteTransfer
102
     *
103
     * @return \Generated\Shared\Transfer\PaymentMethodsTransfer
104
     */
105
    public function filterPaymentMethods(PaymentMethodsTransfer $paymentMethodsTransfer, QuoteTransfer $quoteTransfer): PaymentMethodsTransfer
106
    {
107
        return $this->getFactory()
108
            ->createPaymentMethodFilter()
109
            ->filterPaymentMethods($paymentMethodsTransfer, $quoteTransfer);
110
    }
111
112
    /**
113
     * {@inheritdoc}
114
     *
115
     * @api
116
     *
117
     * @param \Generated\Shared\Transfer\QuoteTransfer $quoteTransfer
118
     * @param \Generated\Shared\Transfer\SaveOrderTransfer $saveOrderTransfer
119
     *
120
     * @return \Generated\Shared\Transfer\PaymentEasycreditOrderIdentifierTransfer
121
     */
122
    public function saveEasycreditOrderIdentifier(QuoteTransfer $quoteTransfer, SaveOrderTransfer $saveOrderTransfer): PaymentEasycreditOrderIdentifierTransfer
123
    {
124
        return $this->getFactory()
125
            ->createEasycreditOrderIdentifierSaver()
126
            ->saveOrderIdentifier($quoteTransfer, $saveOrderTransfer);
127
    }
128
129
    /**
130
     * {@inheritdoc}
131
     *
132
     * @api
133
     *
134
     * @param \Generated\Shared\Transfer\QuoteTransfer $quoteTransfer
135
     *
136
     * @return \Generated\Shared\Transfer\EasycreditInterestAndAdjustTotalSumResponseTransfer
137
     */
138
    public function sendInterestAndTotalSumRequest(QuoteTransfer $quoteTransfer): EasycreditInterestAndAdjustTotalSumResponseTransfer
139
    {
140
        return $this
141
            ->getFactory()
142
            ->createRequestSender()
143
            ->sendInterestAndTotalSumRequest($quoteTransfer);
144
    }
145
146
    /**
147
     * {@inheritdoc}
148
     *
149
     * @api
150
     *
151
     * @param \Generated\Shared\Transfer\QuoteTransfer $quoteTransfer
152
     *
153
     * @return \Generated\Shared\Transfer\EasycreditPreContractualInformationAndRedemptionPlanResponseTransfer
154
     */
155
    public function sendPreContractualInformationAndRedemptionPlanRequest(QuoteTransfer $quoteTransfer): EasycreditPreContractualInformationAndRedemptionPlanResponseTransfer
156
    {
157
        return $this
158
            ->getFactory()
159
            ->createRequestSender()
160
            ->sendPreContractualInformationAndRedemptionPlanRequest($quoteTransfer);
161
    }
162
}
163