class CustomerGroup extends DataModel

Customer group model.

Properties

protected array $fields from DataModel
protected boolean $isEncrypted from DataModel
protected Identity $id
protected boolean $applyNetPrice
protected double $discount
protected boolean $isDefault
protected CustomerGroupAttr[] $attributes
protected CustomerGroupI18n[] $i18ns

Methods

__construct()

Constructor

multitype:
getProperties()

Get the Model Properties

from Model
setOptions(stdClass $object = null, array $options = null)

Sets Properties with matching Array Values

from DataModel
stdClass
getPublic(array $publics = array('fields', 'isEncrypted', 'identities', '_type'))

Convert the Model into stdClass Object

from DataModel
toJson()

No description

from Model
mixed:string
getFields()

Fields Getter

from DataModel
validate()

Object Validation

from DataModel
mixed:string|NULL
getField(boolean $toWawi = false, string $key)

Get a Model Member Name

from DataModel
map(boolean $toWawi = false, stdClass $obj = null)

Object Mapping

from DataModel
getModelType()

No description

from DataModel
boolean
isEncrypted()

Encrypted Status

from DataModel
setIdentity(string $propertyName, string|null $endpoint = null, int|null $host = null)

No description

from DataModel
setProperty($name, $value, $type)

No description

from DataModel
validateType($value, $type)

No description

from DataModel
setId(Identity $id)

No description

getId()

No description

setApplyNetPrice(boolean $applyNetPrice)

No description

boolean
getApplyNetPrice()

No description

setDiscount(double $discount)

No description

double
getDiscount()

No description

setIsDefault(boolean $isDefault)

No description

boolean
getIsDefault()

No description

addAttribute(CustomerGroupAttr $attribute)

No description

setAttributes(array $attributes)

No description

getAttributes()

No description

clearAttributes()

No description

addI18n(CustomerGroupI18n $i18n)

No description

setI18ns(array $i18ns)

No description

getI18ns()

No description

clearI18ns()

No description

Details

at line 75
__construct()

Constructor

in Model at line 33
multitype: getProperties()

Get the Model Properties

Return Value

multitype: string

in DataModel at line 172
Model setOptions(stdClass $object = null, array $options = null)

Sets Properties with matching Array Values

Parameters

stdClass $object
array $options

Return Value

Model

in DataModel at line 70
stdClass getPublic(array $publics = array('fields', 'isEncrypted', 'identities', '_type'))

Convert the Model into stdClass Object

Parameters

array $publics

Return Value

stdClass $object

in Model at line 115
toJson()

in DataModel at line 35
mixed:string getFields()

Fields Getter

Return Value

mixed:string

in DataModel at line 45
validate()

Object Validation

Exceptions

SchemaException

in DataModel at line 59
mixed:string|NULL getField(boolean $toWawi = false, string $key)

Get a Model Member Name

Parameters

boolean $toWawi
string $key

Return Value

mixed:string|NULL

in DataModel at line 81
map(boolean $toWawi = false, stdClass $obj = null)

Object Mapping

Parameters

boolean $toWawi
stdClass $obj Object to map

in DataModel at line 42
DataType getModelType()

Return Value

DataType

in DataModel at line 59
boolean isEncrypted()

Encrypted Status

Return Value

boolean

in DataModel at line 123
setIdentity(string $propertyName, string|null $endpoint = null, int|null $host = null)

Parameters

string $propertyName
string|null $endpoint
int|null $host

in DataModel at line 179
protected setProperty($name, $value, $type)

Parameters

$name
$value
$type

in DataModel at line 190
protected validateType($value, $type)

Parameters

$value
$type

at line 85
CustomerGroup setId(Identity $id)

Parameters

Identity $id Unique customerGroup id

Return Value

CustomerGroup

Exceptions

InvalidArgumentException if the provided argument is not of type 'Identity'.

at line 93
Identity getId()

Return Value

Identity Unique customerGroup id

at line 102
CustomerGroup setApplyNetPrice(boolean $applyNetPrice)

Parameters

boolean $applyNetPrice Optional: Show net prices default instead of gross prices

Return Value

CustomerGroup

at line 110
boolean getApplyNetPrice()

Return Value

boolean Optional: Show net prices default instead of gross prices

at line 119
CustomerGroup setDiscount(double $discount)

Parameters

double $discount Optional percentual discount on all products. Negative Value means surcharge.

Return Value

CustomerGroup

at line 127
double getDiscount()

Return Value

double Optional percentual discount on all products. Negative Value means surcharge.

at line 136
CustomerGroup setIsDefault(boolean $isDefault)

Parameters

boolean $isDefault Optional: Flag default customer group

Return Value

CustomerGroup

at line 144
boolean getIsDefault()

Return Value

boolean Optional: Flag default customer group

at line 153
CustomerGroup addAttribute(CustomerGroupAttr $attribute)

Parameters

CustomerGroupAttr $attribute

Return Value

CustomerGroup

at line 163
CustomerGroup setAttributes(array $attributes)

Parameters

array $attributes

Return Value

CustomerGroup

at line 172
CustomerGroupAttr[] getAttributes()

Return Value

CustomerGroupAttr[]

at line 180
CustomerGroup clearAttributes()

Return Value

CustomerGroup

at line 190
CustomerGroup addI18n(CustomerGroupI18n $i18n)

Parameters

CustomerGroupI18n $i18n

Return Value

CustomerGroup

at line 200
CustomerGroup setI18ns(array $i18ns)

Parameters

array $i18ns

Return Value

CustomerGroup

at line 209
CustomerGroupI18n[] getI18ns()

Return Value

CustomerGroupI18n[]

at line 217
CustomerGroup clearI18ns()

Return Value

CustomerGroup