src/Spryker/Zed/SalesOrderThresholdDataImport/Business/Model/DataImportStep/SalesOrderThresholdWriterStep.php
protected function createSalesOrderThresholdTransfer(
        string $salesOrderThresholdTypeKey,
        StoreTransfer $storeTransfer,
        CurrencyTransfer $currencyTransfer,
        int $thresholdValue,
        ?int $fee = null,
        ?string $glossaryKey = null
    ): SalesOrderThresholdTransfer {
        return (new SalesOrderThresholdTransfer())
            ->setStore($storeTransfer)
            ->setCurrency($currencyTransfer)
            ->setSalesOrderThresholdValue(
                (new SalesOrderThresholdValueTransfer())
                    ->setThreshold($thresholdValue)
                    ->setFee($fee)
                    ->setMessageGlossaryKey($glossaryKey)
                    ->setSalesOrderThresholdType(
                        (new SalesOrderThresholdTypeTransfer())
                            ->setKey($salesOrderThresholdTypeKey)
                    )
            );
    }
protected function createSalesOrderThresholdTransfer(
        string $salesOrderThresholdTypeKey,
        StoreTransfer $storeTransfer,
        CurrencyTransfer $currencyTransfer,
        int $thresholdValue,
        ?int $fee = null,
        ?string $glossaryKey = null
    ): SalesOrderThresholdTransfer {
        return (new SalesOrderThresholdTransfer())
            ->setStore($storeTransfer)
            ->setCurrency($currencyTransfer)
            ->setSalesOrderThresholdValue(
                (new SalesOrderThresholdValueTransfer())
                    ->setThreshold($thresholdValue)
                    ->setFee($fee)
                    ->setMessageGlossaryKey($glossaryKey)
                    ->setSalesOrderThresholdType(
                        (new SalesOrderThresholdTypeTransfer())
                            ->setKey($salesOrderThresholdTypeKey)
                    )
            );
    }
@param string $salesOrderThresholdTypeKey
@param \Generated\Shared\Transfer\StoreTransfer $storeTransfer
@param \Generated\Shared\Transfer\CurrencyTransfer $currencyTransfer
@param int $thresholdValue
@param int|null $fee
@param string|null $glossaryKey

@return \Generated\Shared\Transfer\SalesOrderThresholdTransfer