File

src/shared/schemas/BankDetails.schema.ts

Index

Properties

Properties

abaCode
Type : string
Decorators :
@Prop()
accountBic
Type : string
Decorators :
@Prop({required: true})
accountName
Type : string
Decorators :
@Prop({required: true})
accountNo
Type : string
Decorators :
@Prop({required: true})
bankAddress
Type : string
Decorators :
@Prop({required: true})
bankBic
Type : string
Decorators :
@Prop({required: true})
bankChaps
Type : string
Decorators :
@Prop({required: true})
bankName
Type : string
Decorators :
@Prop({required: true})
currency
Type : string
Decorators :
@Prop({required: true})
ibanNo
Type : string
Decorators :
@Prop({required: true})
ultimateAccountNo
Type : string
Decorators :
@Prop({required: true})
ultimateName
Type : string
Decorators :
@Prop({required: true})
import { Document } from "mongoose";
import { Prop, Schema, SchemaFactory } from "@nestjs/mongoose";

export type BankDetailsDocument = BankDetails & Document;

@Schema({
  timestamps: { createdAt: "created", updatedAt: "updated" },
})
export class BankDetails {
  @Prop({ required: true })
  bankName: string;

  @Prop({ required: true })
  bankAddress: string;

  @Prop({ required: true })
  bankChaps: string;

  @Prop({ required: true })
  bankBic: string;

  @Prop({ required: true })
  accountNo: string;

  @Prop({ required: true })
  accountBic: string;

  @Prop({ required: true })
  accountName: string;

  @Prop({ required: true })
  ibanNo: string;

  @Prop({ required: true })
  ultimateName: string;

  @Prop({ required: true })
  ultimateAccountNo: string;

  @Prop({ required: true })
  currency: string;

  @Prop()
  abaCode: string;
}

export const BankDetailsSchema = SchemaFactory.createForClass(BankDetails);

results matching ""

    No results matching ""