diff --git a/src/entity/credit_config.ts b/src/entity/credit_config.ts index a96461d..5ebae0f 100644 --- a/src/entity/credit_config.ts +++ b/src/entity/credit_config.ts @@ -1,76 +1,76 @@ -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 { - @PrimaryGeneratedColumn('uuid') - id: string; + @PrimaryGeneratedColumn("uuid") + id: string; - @Column({ - nullable: true, - length: 256 - }) - module: string; + @Column({ + nullable: true, + length: 256, + }) + module: string; - @Column({ - nullable: true, - length: 256 - }) - code: string; + @Column({ + nullable: true, + length: 256, + }) + code: string; - @Column({ - nullable: true, - length: 256 - }) - param: string; + @Column({ + nullable: true, + length: 256, + }) + param: string; - @Column({ - nullable: true, - length: 256 - }) - debtor_type: string; + @Column({ + nullable: true, + length: 256, + }) + debtor_type: string; - @Column({ - nullable: true, - type: 'int2' - }) - order_number: number; + @Column({ + nullable: true, + type: "int2", + }) + order_number: number; - @Column({ - nullable: true, - length: 4096 - }) - value: string; + @Column({ + nullable: true, + length: 4096, + }) + value: string; - @Column({ - nullable: false, - default: Status['Not Active'], - length: 64 - }) - status: Status; + @Column({ + nullable: false, + default: Status["Not Active"], + length: 64, + }) + status: Status; - @Column() - @CreateDateColumn() - created_at: Date; + @Column() + @CreateDateColumn() + created_at: Date; - @Column({ - nullable: true, - length: 256 - }) - created_by: string; + @Column({ + nullable: true, + length: 256, + }) + created_by: string; - @Column({ nullable: true }) - @UpdateDateColumn() - updated_at: Date; + @Column({ nullable: true }) + @UpdateDateColumn() + updated_at: Date; - @Column({ - nullable: true, - length: 256 - }) - updated_by: string; + @Column({ + nullable: true, + length: 256, + }) + updated_by: string; - @Column({ nullable: true }) - @DeleteDateColumn() - deleted_at: Date; -} \ No newline at end of file + @Column({ nullable: true }) + @DeleteDateColumn() + deleted_at: Date; +} diff --git a/src/entity/remit_bank.ts b/src/entity/remit_bank.ts new file mode 100644 index 0000000..f2f959d --- /dev/null +++ b/src/entity/remit_bank.ts @@ -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; +} diff --git a/src/entity/remit_config_allocation.ts b/src/entity/remit_config_allocation.ts new file mode 100644 index 0000000..967f279 --- /dev/null +++ b/src/entity/remit_config_allocation.ts @@ -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; +} diff --git a/src/entity/remit_config_transaction.ts b/src/entity/remit_config_transaction.ts new file mode 100644 index 0000000..bc2842c --- /dev/null +++ b/src/entity/remit_config_transaction.ts @@ -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; +} diff --git a/src/entity/remit_partners.ts b/src/entity/remit_partners.ts index bb77a9a..c5884fe 100644 --- a/src/entity/remit_partners.ts +++ b/src/entity/remit_partners.ts @@ -32,6 +32,12 @@ export class RemitPartner { }) address: string; + @Column({ + nullable: false, + length: 4096, + }) + type: string; + @Column({ nullable: false, unique: false, @@ -142,6 +148,30 @@ export class RemitPartner { }) 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() @CreateDateColumn() created_at: Date; diff --git a/src/index.ts b/src/index.ts index 07f6eed..2d80594 100644 --- a/src/index.ts +++ b/src/index.ts @@ -39,9 +39,9 @@ import { SummarizeLog } from "./entity/summarize_log"; import { SummarizeLogStatus, SummarizeType } from "./types/summarize"; import { TelegramBody, TelegramResponseSend } from "./types/telegram"; import { Ledger } from "./entity/ledgers"; -import { BpaFormat } from "./entity/bpa_format" -import { BpaLog } from "./entity/bpa_log" -import { Bpa } from "./entity/bpa" +import { BpaFormat } from "./entity/bpa_format"; +import { BpaLog } from "./entity/bpa_log"; +import { Bpa } from "./entity/bpa"; import { CreditCompany } from "./entity/credit_companies"; import { CreditDebtor } from "./entity/credit_debtors"; 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 { AssetPurchaseBondRealizationGood } from "./entity/asset_purchase_purchase_bond_realization_good"; import { AssetPurchaseInvoice } from "./entity/asset_purchase_invoice"; -import { AssetInventoryCondition } from "./types/asset" +import { AssetInventoryCondition } from "./types/asset"; import { AssetInventory } from "./entity/asset_inventories"; import { AssetInventoryAttribute } from "./entity/asset_inventory_attributes"; import { AssetInventoryHistory } from "./entity/asset_inventory_histories"; @@ -87,6 +87,9 @@ import { RemitRegion } from "./entity/remit_region"; import { RemitTransfer } from "./entity/remit_tansfer"; import { RemitTopup } from "./entity/remit_topup"; 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 { BrizziBatch } from './entity/brizzi_batchs' @@ -220,4 +223,7 @@ export { BrilinkMerchantTerminalUser, BrilinkTerminalUserRefreshToken, + RemitBank, + RemitConfigTransaction, + RemitConfigAllocation, };