Skip to content

chore(billing): improve notifications - #675

Merged
neSpecc merged 5 commits into
masterfrom
improve-billing-notifications
Aug 10, 2026
Merged

chore(billing): improve notifications#675
neSpecc merged 5 commits into
masterfrom
improve-billing-notifications

Conversation

@neSpecc

@neSpecc neSpecc commented Aug 10, 2026

Copy link
Copy Markdown
Member
  • Fixed incorrect workspace id label in /recurrent Telegram alerts. Previously user id was passed in there
  • Added real workspace id + name to billing notifications
  • Added CloudPayments Fail reason + ReasonCode logs (e.g. NotAccepted (3008))

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves billing-related Telegram notifications by correcting mislabeled identifiers, consistently including workspace identity (name + id), and enriching CloudPayments failure diagnostics with Reason/ReasonCode context.

Changes:

  • Updated billing Telegram messages to include workspace: «name» (id) instead of only an id label.
  • Enhanced CloudPayments /fail handling to log/emit Reason + ReasonCode details and include them in Telegram alerts.
  • Fixed /recurrent Telegram alert labeling by showing workspace identity (via subscription lookup) and explicitly labeling AccountId as user id.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/resolvers/billingNew.ts Updates compose-payment Telegram message to include workspace name + id.
src/billing/cloudpayments.ts Adds a workspace formatter helper and enriches Telegram/error logs for pay/fail/recurrent notifications.
package.json Bumps package version from 1.5.8 to 1.5.9.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@neSpecc
neSpecc merged commit 453ab1f into master Aug 10, 2026
7 checks passed
@neSpecc
neSpecc deleted the improve-billing-notifications branch August 10, 2026 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants