payment
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import { InputType, Field, Int } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CreatePaymentMethodInput {
|
||||
@Field()
|
||||
name!: string;
|
||||
|
||||
@Field({ nullable: true })
|
||||
description?: string;
|
||||
|
||||
@Field({ nullable: true })
|
||||
icon?: string;
|
||||
|
||||
@Field(() => Boolean, { nullable: true, defaultValue: true })
|
||||
isActive?: boolean;
|
||||
|
||||
@Field(() => Int, { nullable: true })
|
||||
order?: number;
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
import { InputType, Int, Field } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CreatePaymentInput {
|
||||
@Field(() => Int, { description: 'Example field (placeholder)' })
|
||||
exampleField: number;
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
import { InputType, Field } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CreateRestaurantPaymentMethodInput {
|
||||
@Field()
|
||||
restaurantId!: string;
|
||||
|
||||
@Field()
|
||||
paymentMethodId!: string;
|
||||
|
||||
@Field({ nullable: true })
|
||||
merchantId?: string;
|
||||
|
||||
@Field({ nullable: true })
|
||||
isActive?: boolean;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import { CreatePaymentMethodInput } from './create-payment-method.input';
|
||||
import { InputType, Field, PartialType } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class UpdatePaymentMethodInput extends PartialType(CreatePaymentMethodInput) {
|
||||
@Field()
|
||||
id!: string;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import { CreatePaymentInput } from './create-payment.input';
|
||||
import { InputType, Field, Int, PartialType } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class UpdatePaymentInput extends PartialType(CreatePaymentInput) {
|
||||
@Field(() => Int)
|
||||
id: number;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import { CreateRestaurantPaymentMethodInput } from './create-restaurant-payment-method.input';
|
||||
import { InputType, Field, PartialType } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class UpdateRestaurantPaymentMethodInput extends PartialType(CreateRestaurantPaymentMethodInput) {
|
||||
@Field()
|
||||
id!: string;
|
||||
}
|
||||
Reference in New Issue
Block a user