Add manual credit granting on customer meters endpoint
Merged
ST
16d ago+930+930+012345678901234567890123456789-9-9-0123456789
This branch lets merchants add credits to a customer meter manually. Might be just a temporary thing for how the meters are setup currently, and won't be needed in future. We want it to continue the experience work, and integrate into dashboard and RuntimeSDK, and thus we want to have more options for credit management
Gated behind the 'config-as-code' flag.
Caller can add the external_id to have idempotency.
There is really no way to tell credited events appart, who did it or the source. If you want, we could add to the metadata for example:
- source (manual / benefit / rollover):, to distinguish what type of credit it came from
- granted_by: if we want some sort of audit trail for support questions, "Who granted this?" questions.
Following PRs will be for dashboard UI, and another doing it typesafely via the runtimesdk