brilink update
This commit is contained in:
@ -1,79 +0,0 @@
|
|||||||
import { Column, CreateDateColumn, DeleteDateColumn, Entity, JoinTable, ManyToOne, PrimaryGeneratedColumn, UpdateDateColumn } from 'typeorm';
|
|
||||||
import { BrilinkMerchantSettlementStatus } from '../types/brilink';
|
|
||||||
import { BrilinkMerchant } from './brilink_merchants';
|
|
||||||
|
|
||||||
@Entity('brilink_merchant_settlement_transactions', { schema: 'brilinks' })
|
|
||||||
export class BrilinkMerchantSettlementTransaction {
|
|
||||||
@PrimaryGeneratedColumn('uuid')
|
|
||||||
id: string;
|
|
||||||
|
|
||||||
@ManyToOne(() => BrilinkMerchant, { onDelete: 'RESTRICT' })
|
|
||||||
@JoinTable()
|
|
||||||
merchant: BrilinkMerchant
|
|
||||||
|
|
||||||
@Column({
|
|
||||||
type: 'float8',
|
|
||||||
nullable: false,
|
|
||||||
default: 0
|
|
||||||
})
|
|
||||||
amount: number;
|
|
||||||
|
|
||||||
@Column({
|
|
||||||
type: 'float8',
|
|
||||||
nullable: false,
|
|
||||||
default: 0
|
|
||||||
})
|
|
||||||
fee: number;
|
|
||||||
|
|
||||||
@Column({
|
|
||||||
type: 'float8',
|
|
||||||
nullable: false,
|
|
||||||
default: 0
|
|
||||||
})
|
|
||||||
total: number;
|
|
||||||
|
|
||||||
@Column({
|
|
||||||
nullable: false,
|
|
||||||
length: 64
|
|
||||||
})
|
|
||||||
status: BrilinkMerchantSettlementStatus;
|
|
||||||
|
|
||||||
@Column({
|
|
||||||
length: 128,
|
|
||||||
nullable: true,
|
|
||||||
})
|
|
||||||
reference: string;
|
|
||||||
|
|
||||||
@Column({
|
|
||||||
length: 1024,
|
|
||||||
nullable: true,
|
|
||||||
})
|
|
||||||
remarks: string;
|
|
||||||
|
|
||||||
@Column({ type: "varchar", length: 255, nullable: true })
|
|
||||||
approve_by: string;
|
|
||||||
|
|
||||||
@Column({ nullable: true })
|
|
||||||
approve_at: Date;
|
|
||||||
|
|
||||||
@Column()
|
|
||||||
@CreateDateColumn()
|
|
||||||
created_at: Date;
|
|
||||||
|
|
||||||
@Column({ type: "varchar", length: 255 })
|
|
||||||
created_by: string;
|
|
||||||
|
|
||||||
@Column({ nullable: true })
|
|
||||||
@UpdateDateColumn()
|
|
||||||
updated_at: Date;
|
|
||||||
|
|
||||||
@Column({ type: "varchar", length: 255, nullable: true })
|
|
||||||
updated_by: string;
|
|
||||||
|
|
||||||
@Column({ nullable: true })
|
|
||||||
@DeleteDateColumn()
|
|
||||||
deleted_at: Date;
|
|
||||||
|
|
||||||
@Column({ type: "varchar", length: 255, nullable: true })
|
|
||||||
deleted_by: string;
|
|
||||||
}
|
|
||||||
@ -141,7 +141,6 @@ import { BrilinkBalanceTopup } from "./entity/brilink_balance_topup";
|
|||||||
import { BrilinkTerminalLanguage } from "./entity/brilink_terminal_languages";
|
import { BrilinkTerminalLanguage } from "./entity/brilink_terminal_languages";
|
||||||
import { BrilinkTransaction } from "./entity/brilink_transactions";
|
import { BrilinkTransaction } from "./entity/brilink_transactions";
|
||||||
import { BrilinkMerchantSettlement } from "./entity/brilink_merchant_settlements";
|
import { BrilinkMerchantSettlement } from "./entity/brilink_merchant_settlements";
|
||||||
import { BrilinkMerchantSettlementTransaction } from "./entity/brilink_merchant_settlement_transactions";
|
|
||||||
|
|
||||||
import { BriapiConfig } from "./entity/briapi_configs";
|
import { BriapiConfig } from "./entity/briapi_configs";
|
||||||
import { BriapiLog } from "./entity/briapi_logs";
|
import { BriapiLog } from "./entity/briapi_logs";
|
||||||
@ -289,7 +288,6 @@ export {
|
|||||||
BrilinkTerminalLanguage,
|
BrilinkTerminalLanguage,
|
||||||
BrilinkTransaction,
|
BrilinkTransaction,
|
||||||
BrilinkMerchantSettlement,
|
BrilinkMerchantSettlement,
|
||||||
BrilinkMerchantSettlementTransaction,
|
|
||||||
BrilinkTransactionCodePrefixType,
|
BrilinkTransactionCodePrefixType,
|
||||||
BrilinkTransactionCodePrefixActivity,
|
BrilinkTransactionCodePrefixActivity,
|
||||||
BrilinkBalanceMutationCodePrefixType,
|
BrilinkBalanceMutationCodePrefixType,
|
||||||
|
|||||||
Reference in New Issue
Block a user