CustomerGroupFactory

Class CustomerGroupFactory

category

System

package

CustomerGroup

subpackage

Factories

Methods

CustomerGroupFactory constructor.

__construct(\CustomerGroupRepositoryInterface $repository) 

Arguments

Returns new instances of customer group collections.

createCollection() : \CustomerGroupCollection

Returns a new instance of customer group configuration.

createConfigurations(\DecimalType $discount, \DecimalType $otDiscount, \DecimalType|null $minOrder = null, \DecimalType|null $maxOrder = null, array $unallowedPaymentModules = array(), array $unallowedShippingModules = array()) : \CustomerGroupConfigurations

Arguments

$discount

\DecimalType

$otDiscount

\DecimalType

$minOrder

\DecimalType|null

$maxOrder

\DecimalType|null

$unallowedPaymentModules

array

$unallowedShippingModules

array

Response

\CustomerGroupConfigurations

Returns new instances of customer group entities.

createEntity() : \CustomerGroup

Response

\CustomerGroup

Returns a new instance of customer group settings.

createSettings(\BoolType $statusPublic, \BoolType $statusOtDiscount, \BoolType $statusGraduatedPrices, \BoolType $statusShowPrice, \BoolType $statusShowPriceTax, \BoolType $statusAddTaxOt, \BoolType $statusDiscountAttributes, \BoolType $statusFsk18Purchasable, \BoolType $statusFsk18Display, \BoolType $statusWriteReviews, \BoolType $statusReadReviews) : \CustomerGroupSettings

Arguments

$statusPublic

\BoolType

$statusOtDiscount

\BoolType

$statusGraduatedPrices

\BoolType

$statusShowPrice

\BoolType

$statusShowPriceTax

\BoolType

$statusAddTaxOt

\BoolType

$statusDiscountAttributes

\BoolType

$statusFsk18Purchasable

\BoolType

$statusFsk18Display

\BoolType

$statusWriteReviews

\BoolType

$statusReadReviews

\BoolType

Response

\CustomerGroupSettings

Properties

repository

repository : \CustomerGroupRepositoryInterface