update
This commit is contained in:
@ -5,6 +5,8 @@ import { TrxCustomerAccount } from "./trx_customer_accounts";
|
|||||||
import { TrxReceiver } from "./trx_receivers";
|
import { TrxReceiver } from "./trx_receivers";
|
||||||
import { TrxCurrencyRate } from "./trx_currency_rates";
|
import { TrxCurrencyRate } from "./trx_currency_rates";
|
||||||
import { TrxCustomerCost } from "./trx_customer_costs";
|
import { TrxCustomerCost } from "./trx_customer_costs";
|
||||||
|
import { TrxCustomerUser } from "./trx_customer_users";
|
||||||
|
import { TrxTransactionType } from "../types/trx";
|
||||||
|
|
||||||
@Entity("trx_transactions", { schema: "trx" })
|
@Entity("trx_transactions", { schema: "trx" })
|
||||||
export class TrxTransactions {
|
export class TrxTransactions {
|
||||||
@ -16,10 +18,19 @@ export class TrxTransactions {
|
|||||||
})
|
})
|
||||||
code: string;
|
code: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
length: 256,
|
||||||
|
})
|
||||||
|
type: TrxTransactionType;
|
||||||
|
|
||||||
@ManyToOne(() => TrxCustomer, { onDelete: "NO ACTION" })
|
@ManyToOne(() => TrxCustomer, { onDelete: "NO ACTION" })
|
||||||
@JoinColumn()
|
@JoinColumn()
|
||||||
customer: TrxCustomer;
|
customer: TrxCustomer;
|
||||||
|
|
||||||
|
@ManyToOne(() => TrxCustomerUser, { onDelete: "NO ACTION" })
|
||||||
|
@JoinColumn()
|
||||||
|
customer_user: TrxCustomerUser;
|
||||||
|
|
||||||
@ManyToOne(() => TrxCustomerAccount, { onDelete: "NO ACTION" })
|
@ManyToOne(() => TrxCustomerAccount, { onDelete: "NO ACTION" })
|
||||||
@JoinColumn()
|
@JoinColumn()
|
||||||
customer_account: TrxCustomerAccount;
|
customer_account: TrxCustomerAccount;
|
||||||
@ -59,6 +70,17 @@ export class TrxTransactions {
|
|||||||
})
|
})
|
||||||
cost_amount: number;
|
cost_amount: number;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
type: "float8",
|
||||||
|
})
|
||||||
|
total_amount: number;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
length: 256,
|
||||||
|
})
|
||||||
|
file: string;
|
||||||
|
|
||||||
@Column()
|
@Column()
|
||||||
@CreateDateColumn()
|
@CreateDateColumn()
|
||||||
created_at: Date;
|
created_at: Date;
|
||||||
|
|||||||
@ -43,65 +43,18 @@ export enum TrxCurrencyRateType {
|
|||||||
"deal" = "deal",
|
"deal" = "deal",
|
||||||
}
|
}
|
||||||
|
|
||||||
////
|
export enum TrxTransactionType {
|
||||||
|
"domestic" = "domestic",
|
||||||
export enum TrxTransactionStatus {
|
|
||||||
"verify" = "verify",
|
|
||||||
"open" = "open",
|
|
||||||
"progress" = "progress",
|
|
||||||
"close" = "close",
|
|
||||||
"reject" = "reject",
|
|
||||||
"approved" = "approved",
|
|
||||||
"draft" = "draft",
|
|
||||||
}
|
|
||||||
|
|
||||||
export enum TrxTransactionTypeStatus {
|
|
||||||
"deposit" = "deposit",
|
|
||||||
"transfer" = "transfer",
|
|
||||||
"clearing" = "clearing",
|
|
||||||
"rtgs" = "rtgs",
|
|
||||||
}
|
|
||||||
|
|
||||||
export enum TrxPartnerType {
|
|
||||||
"company" = "company",
|
|
||||||
"personal" = "personal",
|
|
||||||
}
|
|
||||||
|
|
||||||
export enum TrxTransactionTransferStatus {
|
|
||||||
"remittance" = "remittance",
|
"remittance" = "remittance",
|
||||||
"swift" = "swift",
|
"swift" = "swift",
|
||||||
"domestic" = "domestic",
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum TrxTransactionCorrespondentFees {
|
export enum TrxTransactionStatus {
|
||||||
"sender" = "sender",
|
"draft" = "draft",
|
||||||
"recepient" = "recepient",
|
"pending_deal" = "pending_deal",
|
||||||
"other" = "other",
|
"pending_checker" = "pending_checker",
|
||||||
|
"pending_signer" = "pending_signer",
|
||||||
|
"process_setlement" = "process_setlement",
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum TrxConfigBankType {
|
////
|
||||||
"indonesia" = "indonesia",
|
|
||||||
"domestic" = "domestic",
|
|
||||||
}
|
|
||||||
|
|
||||||
export enum TrxActivityType {
|
|
||||||
"Create" = "C",
|
|
||||||
"View" = "V",
|
|
||||||
"Update" = "U",
|
|
||||||
"Delete" = "D",
|
|
||||||
"Restore" = "T",
|
|
||||||
"Download" = "W",
|
|
||||||
"Login" = "L",
|
|
||||||
"Logout" = "O",
|
|
||||||
}
|
|
||||||
|
|
||||||
export enum TrxActivityTypeReverse {
|
|
||||||
"C" = "Create",
|
|
||||||
"V" = "View",
|
|
||||||
"U" = "Update",
|
|
||||||
"D" = "Delete",
|
|
||||||
"T" = "Restore",
|
|
||||||
"W" = "Download",
|
|
||||||
"L" = "Login",
|
|
||||||
"O" = "Logout",
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user