payment refactor

This commit is contained in:
2025-12-16 23:35:39 +03:30
parent f2ecada5a1
commit ea2b7d7968
10 changed files with 263 additions and 463 deletions
@@ -12,13 +12,13 @@ export class Payment extends BaseEntity {
amount!: number;
@Property({ unique: true, nullable: true })
authority?: string | null;
referenceId?: string | null;
@Enum(() => PaymentGatewayEnum)
gateway?: PaymentGatewayEnum | null = null;
@Property({ nullable: true })
refId?: string | null = null;
transactionId?: string | null = null;
@Enum(() => PaymentStatusEnum)
status!: PaymentStatusEnum;