ref: b4fbb789485223e1653700a4eb771cdaf252c0f8 jmp-pay/bin/billing_monthly_cronjob -rwxr-xr-x 5.1 KiB
Merge branch 'settled-after'

* settled-after:
  Bills and BTC are settled immediately
Bills and BTC are settled immediately
Merge branch 'do-not-bill-unregistered'

* do-not-bill-unregistered:
  Query sgx-jmp for every expired user
  Show backtrace and bail out hard on panic
Merge branch 'rubocop'

* rubocop:
  Update rubocop
Query sgx-jmp for every expired user

If they have no assigned tel, do not bill them or notify them.
Update rubocop

And use settings from sgx-jmp
Better error on no JID
Remove healthchecks integration

We use runitor in prod now
If expired with auto top up, NOTIFY for a week before sending expiry notice
Include BTC addresses in notification, if there are any
If a user has no balance, then their balance is 0
Only notify expired users once a week
Fix Dhall signature

The config got updated, but the signature was missed.
Update schema and INSERT to plan_log using new range type

plan_log has been updated to use a range type, so our INSERTs need to be
updated as well.
Send notifications using Cheogram whispers

This way they don't need an assigned tel to work.
Notify customer when renewal fails due to low balance

This is done by sending from a configured JID to <tel>@cheogram.com in order to
have them receive a message from support.