Create a new limit class.
Syntax
long
createLimitClass
(
LimitClass
limitClass
,
Long
entityId
,
ILimitsLogic.EntityType
entityType
,
Integer
useCase
,
long
callerId
) throws IllegalDataException, EntityNotFoundException
Parameters
-
limitClass –
The new Limit Class to create.
-
entityId –
This is either the ID (primary key) of a Customer, a Payment Instrument, or a Wallet entry
-
entityType –
The type of the entity (see entityId).
-
useCase –
-
callerId –
Exceptions
-
IllegalDataException –
-
EntityNotFoundException –
Usage
If the entityId is provided it will automatically be attached to the referenced entity, which can be a Customer, a Payment Instrument, a Wallet entry, or an existing Limit Set. In case it is any of the first three and there is no limit set yet, a new limit set is created.