Create a reward entry for an entity, credit or debit
This operation does not check balances so it may push either entity or customer's balances into negative.
Usage:
service.create({ phone, ... });
service.create({ entityId, ... });
ProtectedgetAccount ID for an identity, which is really their phone number
Current balance for the entity
Optionalcategory?: stringOptionalcreatedAt?: DbTimestampCriteriaOptionalidempotencyKey?: stringOptionalorderBy?: DbOrderByCriterion<Optionalpage?: numberDefaults to 1
OptionalpageSize?: numberDefaults to 100
OptionaltransactionType?: "CREDIT" | "DEBIT"OptionalupdatedAt?: DbTimestampCriteriaentity reward entries
invalidPhone, notSupported and whatever EntityService throws
Manage rewards for entities
Internally, this is using a ledger so each reward causes a double-entry.