Add invoice payment management.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
keyhan
2026-05-18 21:34:47 +03:30
parent 880521c576
commit 8b197e69bc
15 changed files with 1616 additions and 58 deletions
+24
View File
@@ -111,6 +111,30 @@ export enum TransactionType {
CHARGE = 'charge', // Top-up / deposit
DEDUCTION = 'deduction', // Payment for service
REFUND = 'refund', // Refund
GATEWAY_PAYMENT = 'gateway_payment', // Direct payment through a gateway
}
export enum InvoiceStatus {
DRAFT = 'draft',
ISSUED = 'issued',
PARTIALLY_PAID = 'partially_paid',
PAID = 'paid',
VOID = 'void',
FAILED = 'failed',
}
export enum PaymentMethod {
WALLET = 'wallet',
GATEWAY = 'gateway',
MIXED = 'mixed',
}
export enum InvoiceReason {
DEPLOY = 'deploy',
RENEWAL = 'renewal',
UPGRADE = 'upgrade',
WALLET_TOPUP = 'wallet_topup',
MANUAL = 'manual',
}
// ── Custom Domain ────────────────────────────────────