update
This commit is contained in:
46
src/entity/remit_config_transaction_channels.ts
Normal file
46
src/entity/remit_config_transaction_channels.ts
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
import { Column, CreateDateColumn, DeleteDateColumn, Entity, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm";
|
||||||
|
|
||||||
|
import { RemitTransactionChannelType } from "../types/remit";
|
||||||
|
import { Status } from "../types/status";
|
||||||
|
|
||||||
|
@Entity("remit_config_transaction_channels", { schema: "remits" })
|
||||||
|
export class RemitConfigTransactionChannel {
|
||||||
|
@PrimaryGeneratedColumn("uuid")
|
||||||
|
id: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
length: 256,
|
||||||
|
})
|
||||||
|
name: RemitTransactionChannelType;
|
||||||
|
|
||||||
|
@Column({ type: "smallint", default: 0 })
|
||||||
|
level: Number;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: false,
|
||||||
|
length: 64,
|
||||||
|
})
|
||||||
|
status: Status;
|
||||||
|
|
||||||
|
@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;
|
||||||
|
}
|
||||||
46
src/entity/remit_config_transaction_modes.ts
Normal file
46
src/entity/remit_config_transaction_modes.ts
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, Index, JoinColumn, ManyToOne } from "typeorm";
|
||||||
|
|
||||||
|
import { Status } from "../types/status";
|
||||||
|
import { RemitRiskLevel, RemitTransactionModeType } from "../types/remit";
|
||||||
|
|
||||||
|
@Entity("remit_config_transaction_modes", { schema: "remits" })
|
||||||
|
export class RemitConfigTransactionMode {
|
||||||
|
@PrimaryGeneratedColumn("uuid")
|
||||||
|
id: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
length: 256,
|
||||||
|
})
|
||||||
|
name: RemitTransactionModeType;
|
||||||
|
|
||||||
|
@Column({ type: "smallint", default: 0 })
|
||||||
|
level: Number;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: false,
|
||||||
|
length: 64,
|
||||||
|
})
|
||||||
|
status: Status;
|
||||||
|
|
||||||
|
@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;
|
||||||
|
}
|
||||||
@ -119,6 +119,8 @@ import { RemitConfigTransactionType } from "./entity/remit_config_transaction_ty
|
|||||||
import { RemitConfigChannel } from "./entity/remit_config_channels";
|
import { RemitConfigChannel } from "./entity/remit_config_channels";
|
||||||
import { RemitConfigTransactionInfo } from "./entity/remit_config_transaction_infos";
|
import { RemitConfigTransactionInfo } from "./entity/remit_config_transaction_infos";
|
||||||
import { RemitConfigBoom } from "./entity/remit_config_booms";
|
import { RemitConfigBoom } from "./entity/remit_config_booms";
|
||||||
|
import { RemitConfigTransactionChannel } from "./entity/remit_config_transaction_channels";
|
||||||
|
import { RemitConfigTransactionMode } from "./entity/remit_config_transaction_modes";
|
||||||
import { RemitIndoProvince } from "./entity/remit_indo_provinces";
|
import { RemitIndoProvince } from "./entity/remit_indo_provinces";
|
||||||
import { RemitIndoCity } from "./entity/remit_indo_cities";
|
import { RemitIndoCity } from "./entity/remit_indo_cities";
|
||||||
import { RemitPartnerCallback } from "./entity/remit_partner_callbacks";
|
import { RemitPartnerCallback } from "./entity/remit_partner_callbacks";
|
||||||
@ -136,6 +138,8 @@ import {
|
|||||||
RemitSenderType,
|
RemitSenderType,
|
||||||
RemitTransactionStatus,
|
RemitTransactionStatus,
|
||||||
RemitTransactionCurrencyType,
|
RemitTransactionCurrencyType,
|
||||||
|
RemitTransactionModeType,
|
||||||
|
RemitTransactionChannelType,
|
||||||
} from "./types/remit";
|
} from "./types/remit";
|
||||||
|
|
||||||
import {
|
import {
|
||||||
@ -412,6 +416,8 @@ export {
|
|||||||
RemitConfigChannel,
|
RemitConfigChannel,
|
||||||
RemitConfigTransactionInfo,
|
RemitConfigTransactionInfo,
|
||||||
RemitConfigBoom,
|
RemitConfigBoom,
|
||||||
|
RemitConfigTransactionChannel,
|
||||||
|
RemitConfigTransactionMode,
|
||||||
RemitPartnerAccounts,
|
RemitPartnerAccounts,
|
||||||
RemitPartnerApi,
|
RemitPartnerApi,
|
||||||
RemitPartnerDocument,
|
RemitPartnerDocument,
|
||||||
|
|||||||
@ -61,3 +61,13 @@ export enum RemitTransactionCurrencyType {
|
|||||||
"rp" = "rp",
|
"rp" = "rp",
|
||||||
"usd" = "usd",
|
"usd" = "usd",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export enum RemitTransactionModeType {
|
||||||
|
"On Behalf Transaction" = "on_behalf",
|
||||||
|
"Self Transaction" = "self",
|
||||||
|
}
|
||||||
|
|
||||||
|
export enum RemitTransactionChannelType {
|
||||||
|
"Transaction Conduct via Self-Mobile Application" = "self_mobile_app",
|
||||||
|
"Transaction Conduct via Agent" = "agent",
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user