QuoteConfig::getQuoteFieldsAllowedForSaving()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 17
Code Lines 15

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 15
dl 0
loc 17
rs 9.7666
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
/**
4
 * This file is part of the Spryker Commerce OS.
5
 * For full license information, please view the LICENSE file that was distributed with this source code.
6
 */
7
8
declare(strict_types = 1);
9
10
namespace Pyz\Zed\Quote;
11
12
use Generated\Shared\Transfer\QuoteTransfer;
13
use Spryker\Zed\Quote\QuoteConfig as SprykerQuoteConfig;
14
15
class QuoteConfig extends SprykerQuoteConfig
16
{
17
    /**
18
     * @return array<string>
19
     */
20
    public function getQuoteFieldsAllowedForSaving(): array
21
    {
22
        return array_merge(parent::getQuoteFieldsAllowedForSaving(), [
23
            QuoteTransfer::BUNDLE_ITEMS,
24
            QuoteTransfer::CART_NOTE, #CartNoteFeature,
25
            QuoteTransfer::EXPENSES, #QuoteApprovalFeature
26
            QuoteTransfer::VOUCHER_DISCOUNTS, #QuoteApprovalFeature #PromotionsDiscountsFeature
27
            QuoteTransfer::CART_RULE_DISCOUNTS, #QuoteApprovalFeature #PromotionsDiscountsFeature
28
            QuoteTransfer::PROMOTION_ITEMS, #QuoteApprovalFeature #PromotionsDiscountsFeature
29
            QuoteTransfer::IS_LOCKED, #QuoteApprovalFeature
30
            QuoteTransfer::QUOTE_REQUEST_VERSION_REFERENCE,
31
            QuoteTransfer::QUOTE_REQUEST_REFERENCE,
32
            QuoteTransfer::IS_ORDER_PLACED_SUCCESSFULLY,
33
            QuoteTransfer::AMENDMENT_ORDER_REFERENCE,
34
            QuoteTransfer::QUOTE_PROCESS_FLOW,
35
            QuoteTransfer::ORIGINAL_SALES_ORDER_ITEM_UNIT_PRICES,
36
            QuoteTransfer::ORIGINAL_SALES_ORDER_ITEMS,
37
        ]);
38
    }
39
}
40