src/shared/schemas/BankDetails.schema.ts
Properties |
| abaCode |
Type : string
|
Decorators :
@Prop()
|
|
Defined in src/shared/schemas/BankDetails.schema.ts:44
|
| accountBic |
Type : string
|
Decorators :
@Prop({required: true})
|
|
Defined in src/shared/schemas/BankDetails.schema.ts:26
|
| accountName |
Type : string
|
Decorators :
@Prop({required: true})
|
|
Defined in src/shared/schemas/BankDetails.schema.ts:29
|
| accountNo |
Type : string
|
Decorators :
@Prop({required: true})
|
|
Defined in src/shared/schemas/BankDetails.schema.ts:23
|
| bankAddress |
Type : string
|
Decorators :
@Prop({required: true})
|
|
Defined in src/shared/schemas/BankDetails.schema.ts:14
|
| bankBic |
Type : string
|
Decorators :
@Prop({required: true})
|
|
Defined in src/shared/schemas/BankDetails.schema.ts:20
|
| bankChaps |
Type : string
|
Decorators :
@Prop({required: true})
|
|
Defined in src/shared/schemas/BankDetails.schema.ts:17
|
| bankName |
Type : string
|
Decorators :
@Prop({required: true})
|
|
Defined in src/shared/schemas/BankDetails.schema.ts:11
|
| currency |
Type : string
|
Decorators :
@Prop({required: true})
|
|
Defined in src/shared/schemas/BankDetails.schema.ts:41
|
| ibanNo |
Type : string
|
Decorators :
@Prop({required: true})
|
|
Defined in src/shared/schemas/BankDetails.schema.ts:32
|
| ultimateAccountNo |
Type : string
|
Decorators :
@Prop({required: true})
|
|
Defined in src/shared/schemas/BankDetails.schema.ts:38
|
| ultimateName |
Type : string
|
Decorators :
@Prop({required: true})
|
|
Defined in src/shared/schemas/BankDetails.schema.ts:35
|
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);