Group
Magento\Customer\Model\Group
What it does
This class represents a customer group in Magento 2, which is used to categorize customers for pricing, tax rules, and promotions.
Developers use this model to create, retrieve, or modify customer groups programmatically, such as when implementing custom pricing strategies or managing tax classes for different customer segments.
It provides methods to access group codes, tax class information, and determine if a group is set as the default for new customer registrations.
Public Methods
- setCode()
- getCode()
- getTaxClassName()
- usesAsDefault()
- beforeSave()