Class CustomerGroupFactory

Class CustomerGroupFactory

Methods summary

public __construct( CustomerGroupRepositoryInterface $repository )

CustomerGroupFactory constructor.

public createEntity( void ) : CustomerGroup

Returns new instances of customer group entities.

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

Returns a new instance of customer group settings.

public createConfigurations( DecimalType $discount, DecimalType $otDiscount, DecimalType $minOrder = null, DecimalType $maxOrder = null, array $unallowedPaymentModules = [], array $unallowedShippingModules = [] ) : CustomerGroupConfigurations

Returns a new instance of customer group configuration.

public createCollection( void ) : CustomerGroupCollection

Returns new instances of customer group collections.