Merge branch 'main' of https://git.shiblysolution.id/BRITL/entity
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
import { Column, CreateDateColumn, DeleteDateColumn, Entity, JoinColumn, ManyToOne, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm";
|
||||
import { Status } from "../types/status";
|
||||
import { TrxBankType } from "../types/trx";
|
||||
import { TrxBankType, TrxCostCode } from "../types/trx";
|
||||
import { TrxCountry } from "./trx_countries";
|
||||
|
||||
@Entity("trx_banks", { schema: "trx" })
|
||||
@ -31,6 +31,12 @@ export class TrxBank {
|
||||
})
|
||||
status: Status;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 64,
|
||||
})
|
||||
cost: TrxCostCode;
|
||||
|
||||
@Column()
|
||||
@CreateDateColumn()
|
||||
created_at: Date;
|
||||
|
||||
123
src/entity/trx_transaction_amls.ts
Normal file
123
src/entity/trx_transaction_amls.ts
Normal file
@ -0,0 +1,123 @@
|
||||
import { Column, CreateDateColumn, DeleteDateColumn, Entity, JoinColumn, ManyToOne, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm";
|
||||
import { TrxTransaction } from "./trx_transactions";
|
||||
|
||||
@Entity("trx_transaction_amls", { schema: "trx" })
|
||||
export class TrxTransactionAml {
|
||||
@PrimaryGeneratedColumn("uuid")
|
||||
id: string;
|
||||
|
||||
@ManyToOne(() => TrxTransaction, { onDelete: "NO ACTION" })
|
||||
@JoinColumn()
|
||||
transaction: TrxTransaction;
|
||||
|
||||
@Column({
|
||||
length: 256,
|
||||
})
|
||||
sender_name: string;
|
||||
|
||||
@Column({
|
||||
length: 256,
|
||||
})
|
||||
sender_address: string;
|
||||
|
||||
@Column({
|
||||
length: 256,
|
||||
})
|
||||
sender_phone: string;
|
||||
|
||||
@Column({
|
||||
length: 256,
|
||||
})
|
||||
sender_country: string;
|
||||
|
||||
@Column({
|
||||
length: 256,
|
||||
})
|
||||
sender_identity_number: string;
|
||||
|
||||
@Column({
|
||||
length: 256,
|
||||
})
|
||||
sender_occupation: string;
|
||||
|
||||
@Column({
|
||||
length: 256,
|
||||
})
|
||||
sender_account_number: string;
|
||||
|
||||
@Column({
|
||||
type: "float8",
|
||||
})
|
||||
amount: number;
|
||||
|
||||
@Column({
|
||||
length: 256,
|
||||
})
|
||||
receiver_name: string;
|
||||
|
||||
@Column({
|
||||
length: 256,
|
||||
})
|
||||
receiver_address: string;
|
||||
|
||||
@Column({
|
||||
length: 256,
|
||||
})
|
||||
receiver_country: string;
|
||||
|
||||
@Column({
|
||||
length: 256,
|
||||
})
|
||||
receiver_bank: string;
|
||||
|
||||
@Column({
|
||||
length: 256,
|
||||
})
|
||||
receiver_bank_branch: string;
|
||||
|
||||
@Column({
|
||||
length: 256,
|
||||
})
|
||||
receiver_account_number: string;
|
||||
|
||||
@Column({
|
||||
length: 256,
|
||||
})
|
||||
receiver_news: string;
|
||||
|
||||
@Column({
|
||||
length: 256,
|
||||
})
|
||||
purpose: string;
|
||||
|
||||
@Column({
|
||||
length: 256,
|
||||
})
|
||||
frequency: string;
|
||||
|
||||
@Column({
|
||||
length: 256,
|
||||
})
|
||||
teller_ref: string;
|
||||
|
||||
@Column()
|
||||
@CreateDateColumn()
|
||||
created_at: Date;
|
||||
|
||||
@Column({ nullable: true, length: 256 })
|
||||
created_by: string;
|
||||
|
||||
@Column({ nullable: true })
|
||||
@UpdateDateColumn()
|
||||
updated_at: Date;
|
||||
|
||||
@Column({ nullable: true, length: 256 })
|
||||
updated_by: string;
|
||||
|
||||
@Column({ nullable: true })
|
||||
@DeleteDateColumn()
|
||||
deleted_at: Date;
|
||||
|
||||
@Column({ nullable: true, length: 256 })
|
||||
deleted_by: string;
|
||||
}
|
||||
@ -14,4 +14,5 @@ export * from "../entity/trx_bank_swifts";
|
||||
export * from "../entity/trx_receivers";
|
||||
export * from "../entity/trx_transactions";
|
||||
export * from "../entity/trx_transaction_slas";
|
||||
export * from "../entity/trx_transaction_amls";
|
||||
export * from "../types/trx";
|
||||
|
||||
@ -1,7 +1,24 @@
|
||||
export class EmailBody {
|
||||
subject: string;
|
||||
to: string[];
|
||||
cc: string[];
|
||||
bcc: string[];
|
||||
html: string;
|
||||
subject: string;
|
||||
to: string[];
|
||||
cc: string[];
|
||||
bcc: string[];
|
||||
html: string;
|
||||
}
|
||||
|
||||
export class EmailBodyTrx {
|
||||
from: string;
|
||||
subject: string;
|
||||
to: string[];
|
||||
cc: string[];
|
||||
bcc: string[];
|
||||
html: string;
|
||||
}
|
||||
|
||||
export enum EmailTrxFrom {
|
||||
"non_reply" = "non_reply",
|
||||
"registration" = "registration",
|
||||
"verification" = "verification",
|
||||
"transaction" = "transaction",
|
||||
"info" = "info",
|
||||
}
|
||||
@ -26,6 +26,8 @@ export enum TrxCustomerType {
|
||||
}
|
||||
|
||||
export enum TrxCostCode {
|
||||
"BRI_TL_USD" = "BRI_TL_USD",
|
||||
"OTHER_TL_USD" = "OTHER_TL_USD",
|
||||
"BRI_ID_IDR" = "BRI_ID_IDR",
|
||||
"BRI_ID_USD" = "BRI_ID_USD",
|
||||
"OTHER_ID_IDR" = "OTHER_ID_IDR",
|
||||
|
||||
Reference in New Issue
Block a user