chore: implenet the external invoice 2

This commit is contained in:
mahyargdz
2025-07-14 12:29:00 +03:30
parent 1794b36758
commit 9d46c4f20b
12 changed files with 409 additions and 21 deletions
+8
View File
@@ -12,4 +12,12 @@ export const QUOTA_CONSTANTS = Object.freeze({
INITIAL_BUSINESS_QUOTA: 1024 * 1024 * 1024, // 1GB initial quota when purchasing dmail service (allows 1 user)
USER_QUOTA_DEDUCTION: 128 * 1024 * 1024, // 128MB deducted per user creation
DEFAULT_EMAIL_QUOTA_BYTES: 128 * 1024 * 1024, // 128MB per user in bytes
QUOTA_PRICE_PER_GB: 100_000, //TOMAN
QUOTA_INVOICE_NAME: "(به گیگابایت) حجم ایمیل برای سرویس دمیل",
});
export const EXTERNAL_INVOICE_QUEUE = Object.freeze({
QUEUE_PREFIX: "externalInvoice",
QUEUE_NAME: "externalInvoice",
EXTERNAL_INVOICE_JOB_NAME: "externalInvoice.callback",
});