inventory

This commit is contained in:
2025-12-14 23:02:55 +03:30
parent 996cd0016c
commit 0ac1b39100
16 changed files with 453 additions and 30 deletions
@@ -3,9 +3,6 @@ import { ApiProperty } from '@nestjs/swagger';
import { PaymentMethodEnum, PaymentGatewayEnum } from '../interface/payment';
export class CreatePaymentMethodDto {
@ApiProperty({ description: 'Payment method title' })
@IsString()
title!: string;
@ApiProperty({ description: 'Payment method', enum: PaymentMethodEnum })
@IsEnum(PaymentMethodEnum)
@@ -8,8 +8,6 @@ export class PaymentMethod extends BaseEntity {
@ManyToOne(() => Restaurant)
restaurant!: Restaurant;
@Property()
title!: string;
@Enum(() => PaymentMethodEnum)
method!: PaymentMethodEnum;