update
This commit is contained in:
@ -1,52 +1,52 @@
|
|||||||
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, Index, JoinColumn, ManyToOne } from 'typeorm';
|
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, Index, JoinColumn, ManyToOne } from "typeorm";
|
||||||
|
|
||||||
import { Status } from '../types/status';
|
import { Status } from "../types/status";
|
||||||
|
|
||||||
@Entity('credit_configs')
|
@Entity("credit_configs")
|
||||||
export class CreditConfigs {
|
export class CreditConfigs {
|
||||||
@PrimaryGeneratedColumn('uuid')
|
@PrimaryGeneratedColumn("uuid")
|
||||||
id: string;
|
id: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
length: 256
|
length: 256,
|
||||||
})
|
})
|
||||||
module: string;
|
module: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
length: 256
|
length: 256,
|
||||||
})
|
})
|
||||||
code: string;
|
code: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
length: 256
|
length: 256,
|
||||||
})
|
})
|
||||||
param: string;
|
param: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
length: 256
|
length: 256,
|
||||||
})
|
})
|
||||||
debtor_type: string;
|
debtor_type: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
type: 'int2'
|
type: "int2",
|
||||||
})
|
})
|
||||||
order_number: number;
|
order_number: number;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
length: 4096
|
length: 4096,
|
||||||
})
|
})
|
||||||
value: string;
|
value: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: false,
|
nullable: false,
|
||||||
default: Status['Not Active'],
|
default: Status["Not Active"],
|
||||||
length: 64
|
length: 64,
|
||||||
})
|
})
|
||||||
status: Status;
|
status: Status;
|
||||||
|
|
||||||
@ -56,7 +56,7 @@ export class CreditConfigs {
|
|||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
length: 256
|
length: 256,
|
||||||
})
|
})
|
||||||
created_by: string;
|
created_by: string;
|
||||||
|
|
||||||
@ -66,7 +66,7 @@ export class CreditConfigs {
|
|||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
length: 256
|
length: 256,
|
||||||
})
|
})
|
||||||
updated_by: string;
|
updated_by: string;
|
||||||
|
|
||||||
|
|||||||
53
src/entity/remit_bank.ts
Normal file
53
src/entity/remit_bank.ts
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn } from "typeorm";
|
||||||
|
|
||||||
|
@Entity("remit_banks", { schema: "remits" })
|
||||||
|
export class RemitBank {
|
||||||
|
@PrimaryGeneratedColumn("uuid")
|
||||||
|
id: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: false,
|
||||||
|
unique: false,
|
||||||
|
length: 256,
|
||||||
|
})
|
||||||
|
name: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: false,
|
||||||
|
unique: false,
|
||||||
|
length: 256,
|
||||||
|
})
|
||||||
|
fullname: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: false,
|
||||||
|
unique: false,
|
||||||
|
length: 256,
|
||||||
|
})
|
||||||
|
formerly: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: false,
|
||||||
|
unique: false,
|
||||||
|
length: 256,
|
||||||
|
})
|
||||||
|
bank_code: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: false,
|
||||||
|
length: 64,
|
||||||
|
})
|
||||||
|
status: String;
|
||||||
|
|
||||||
|
@Column()
|
||||||
|
@CreateDateColumn()
|
||||||
|
created_at: Date;
|
||||||
|
|
||||||
|
@Column({ nullable: true })
|
||||||
|
@UpdateDateColumn()
|
||||||
|
updated_at: Date;
|
||||||
|
|
||||||
|
@Column({ nullable: true })
|
||||||
|
@DeleteDateColumn()
|
||||||
|
deleted_at: Date;
|
||||||
|
}
|
||||||
57
src/entity/remit_config_allocation.ts
Normal file
57
src/entity/remit_config_allocation.ts
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, Index, JoinColumn, ManyToOne } from "typeorm";
|
||||||
|
|
||||||
|
import { Status } from "../types/status";
|
||||||
|
|
||||||
|
@Entity("remit_config_allocations", { schema: "remits" })
|
||||||
|
export class RemitConfigAllocation {
|
||||||
|
@PrimaryGeneratedColumn("uuid")
|
||||||
|
id: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
length: 256,
|
||||||
|
})
|
||||||
|
type: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
length: 256,
|
||||||
|
})
|
||||||
|
bri_value: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
length: 256,
|
||||||
|
})
|
||||||
|
partner_value: string;
|
||||||
|
|
||||||
|
@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;
|
||||||
|
}
|
||||||
63
src/entity/remit_config_transaction.ts
Normal file
63
src/entity/remit_config_transaction.ts
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, Index, JoinColumn, ManyToOne } from "typeorm";
|
||||||
|
|
||||||
|
import { Status } from "../types/status";
|
||||||
|
|
||||||
|
@Entity("remit_config_transactions", { schema: "remits" })
|
||||||
|
export class RemitConfigTransaction {
|
||||||
|
@PrimaryGeneratedColumn("uuid")
|
||||||
|
id: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
length: 256,
|
||||||
|
})
|
||||||
|
min: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
length: 256,
|
||||||
|
})
|
||||||
|
max: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
length: 256,
|
||||||
|
})
|
||||||
|
type: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
length: 256,
|
||||||
|
})
|
||||||
|
value: string;
|
||||||
|
|
||||||
|
@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;
|
||||||
|
}
|
||||||
@ -32,6 +32,12 @@ export class RemitPartner {
|
|||||||
})
|
})
|
||||||
address: string;
|
address: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: false,
|
||||||
|
length: 4096,
|
||||||
|
})
|
||||||
|
type: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: false,
|
nullable: false,
|
||||||
unique: false,
|
unique: false,
|
||||||
@ -142,6 +148,30 @@ export class RemitPartner {
|
|||||||
})
|
})
|
||||||
balance: String;
|
balance: String;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
length: 64,
|
||||||
|
})
|
||||||
|
vostro_idr: String;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
length: 64,
|
||||||
|
})
|
||||||
|
vostro_usd: String;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
length: 64,
|
||||||
|
})
|
||||||
|
qlola_usr: String;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
length: 64,
|
||||||
|
})
|
||||||
|
qlola_pwd: String;
|
||||||
|
|
||||||
@Column()
|
@Column()
|
||||||
@CreateDateColumn()
|
@CreateDateColumn()
|
||||||
created_at: Date;
|
created_at: Date;
|
||||||
|
|||||||
14
src/index.ts
14
src/index.ts
@ -39,9 +39,9 @@ import { SummarizeLog } from "./entity/summarize_log";
|
|||||||
import { SummarizeLogStatus, SummarizeType } from "./types/summarize";
|
import { SummarizeLogStatus, SummarizeType } from "./types/summarize";
|
||||||
import { TelegramBody, TelegramResponseSend } from "./types/telegram";
|
import { TelegramBody, TelegramResponseSend } from "./types/telegram";
|
||||||
import { Ledger } from "./entity/ledgers";
|
import { Ledger } from "./entity/ledgers";
|
||||||
import { BpaFormat } from "./entity/bpa_format"
|
import { BpaFormat } from "./entity/bpa_format";
|
||||||
import { BpaLog } from "./entity/bpa_log"
|
import { BpaLog } from "./entity/bpa_log";
|
||||||
import { Bpa } from "./entity/bpa"
|
import { Bpa } from "./entity/bpa";
|
||||||
import { CreditCompany } from "./entity/credit_companies";
|
import { CreditCompany } from "./entity/credit_companies";
|
||||||
import { CreditDebtor } from "./entity/credit_debtors";
|
import { CreditDebtor } from "./entity/credit_debtors";
|
||||||
import { CreditTypeForms } from "./entity/credit_type_forms";
|
import { CreditTypeForms } from "./entity/credit_type_forms";
|
||||||
@ -76,7 +76,7 @@ import { AssetPurchaseGoodReceiptGood } from "./entity/asset_purchase_goods_rece
|
|||||||
import { AssetPurchaseRealization } from "./entity/asset_purchase_realization";
|
import { AssetPurchaseRealization } from "./entity/asset_purchase_realization";
|
||||||
import { AssetPurchaseBondRealizationGood } from "./entity/asset_purchase_purchase_bond_realization_good";
|
import { AssetPurchaseBondRealizationGood } from "./entity/asset_purchase_purchase_bond_realization_good";
|
||||||
import { AssetPurchaseInvoice } from "./entity/asset_purchase_invoice";
|
import { AssetPurchaseInvoice } from "./entity/asset_purchase_invoice";
|
||||||
import { AssetInventoryCondition } from "./types/asset"
|
import { AssetInventoryCondition } from "./types/asset";
|
||||||
import { AssetInventory } from "./entity/asset_inventories";
|
import { AssetInventory } from "./entity/asset_inventories";
|
||||||
import { AssetInventoryAttribute } from "./entity/asset_inventory_attributes";
|
import { AssetInventoryAttribute } from "./entity/asset_inventory_attributes";
|
||||||
import { AssetInventoryHistory } from "./entity/asset_inventory_histories";
|
import { AssetInventoryHistory } from "./entity/asset_inventory_histories";
|
||||||
@ -87,6 +87,9 @@ import { RemitRegion } from "./entity/remit_region";
|
|||||||
import { RemitTransfer } from "./entity/remit_tansfer";
|
import { RemitTransfer } from "./entity/remit_tansfer";
|
||||||
import { RemitTopup } from "./entity/remit_topup";
|
import { RemitTopup } from "./entity/remit_topup";
|
||||||
import { RemitMutation } from "./entity/remit_mutation";
|
import { RemitMutation } from "./entity/remit_mutation";
|
||||||
|
import { RemitBank } from "./entity/remit_bank";
|
||||||
|
import { RemitConfigTransaction } from "./entity/remit_config_transaction";
|
||||||
|
import { RemitConfigAllocation } from "./entity/remit_config_allocation";
|
||||||
|
|
||||||
import { BrizziBatchStatus, BrizziCardStatus, BrizziHistoryActvity, BrizziHistoryType } from './types/brizzi'
|
import { BrizziBatchStatus, BrizziCardStatus, BrizziHistoryActvity, BrizziHistoryType } from './types/brizzi'
|
||||||
import { BrizziBatch } from './entity/brizzi_batchs'
|
import { BrizziBatch } from './entity/brizzi_batchs'
|
||||||
@ -220,4 +223,7 @@ export {
|
|||||||
BrilinkMerchantTerminalUser,
|
BrilinkMerchantTerminalUser,
|
||||||
BrilinkTerminalUserRefreshToken,
|
BrilinkTerminalUserRefreshToken,
|
||||||
|
|
||||||
|
RemitBank,
|
||||||
|
RemitConfigTransaction,
|
||||||
|
RemitConfigAllocation,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user