To use the EarningRules API, install the @wix/loyalty package using npm or Yarn:
@wix/loyalty
1
or
Then import { earningRules } from @wix/loyalty:
{ earningRules }