From 2cd83817af6721c4ff22a859174e41e8cde21f26 Mon Sep 17 00:00:00 2001 From: meusinfirmary Date: Thu, 17 Apr 2025 03:08:40 +0700 Subject: [PATCH 1/4] update --- src/entity/remit_partners.ts | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/entity/remit_partners.ts b/src/entity/remit_partners.ts index bb77a9a..b2d972e 100644 --- a/src/entity/remit_partners.ts +++ b/src/entity/remit_partners.ts @@ -142,6 +142,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; From e801a2a5a6b6b89ffd8bff35ca80b8e51a7113d8 Mon Sep 17 00:00:00 2001 From: meusinfirmary Date: Sun, 20 Apr 2025 23:53:49 +0700 Subject: [PATCH 2/4] upadate --- src/entity/remit_banks.ts | 53 +++++++++++++++++++++++++++++++++++++++ src/index.ts | 10 +++++--- 2 files changed, 59 insertions(+), 4 deletions(-) create mode 100644 src/entity/remit_banks.ts diff --git a/src/entity/remit_banks.ts b/src/entity/remit_banks.ts new file mode 100644 index 0000000..f2f959d --- /dev/null +++ b/src/entity/remit_banks.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/index.ts b/src/index.ts index c7cbf53..60c1fd6 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,7 @@ 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_banks"; export { User, // @@ -185,4 +186,5 @@ export { RemitTransfer, RemitTopup, RemitMutation, + RemitBank, }; From a9a375ba694681bead2ee0922f898d81283b5476 Mon Sep 17 00:00:00 2001 From: meusinfirmary Date: Mon, 21 Apr 2025 00:45:17 +0700 Subject: [PATCH 3/4] update --- src/entity/credit_config.ts | 122 +++++++++---------- src/entity/{remit_banks.ts => remit_bank.ts} | 0 src/entity/remit_config.ts | 63 ++++++++++ src/index.ts | 4 +- 4 files changed, 127 insertions(+), 62 deletions(-) rename src/entity/{remit_banks.ts => remit_bank.ts} (100%) create mode 100644 src/entity/remit_config.ts 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_banks.ts b/src/entity/remit_bank.ts similarity index 100% rename from src/entity/remit_banks.ts rename to src/entity/remit_bank.ts diff --git a/src/entity/remit_config.ts b/src/entity/remit_config.ts new file mode 100644 index 0000000..83922f4 --- /dev/null +++ b/src/entity/remit_config.ts @@ -0,0 +1,63 @@ +import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, Index, JoinColumn, ManyToOne } from "typeorm"; + +import { Status } from "../types/status"; + +@Entity("remit_configs", { schema: "remits" }) +export class RemitConfig { + @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/index.ts b/src/index.ts index 60c1fd6..11c0b4a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -87,7 +87,8 @@ 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_banks"; +import { RemitBank } from "./entity/remit_bank"; +import { RemitConfig } from "./entity/remit_config"; export { User, // @@ -187,4 +188,5 @@ export { RemitTopup, RemitMutation, RemitBank, + RemitConfig, }; From dd3c8ed9fe272a43aa430af2a0701f5a11712f01 Mon Sep 17 00:00:00 2001 From: meusinfirmary Date: Mon, 21 Apr 2025 02:51:31 +0700 Subject: [PATCH 4/4] upadate --- src/entity/remit_config_allocation.ts | 57 +++++++++++++++++++ ..._config.ts => remit_config_transaction.ts} | 4 +- src/entity/remit_partners.ts | 6 ++ src/index.ts | 6 +- 4 files changed, 69 insertions(+), 4 deletions(-) create mode 100644 src/entity/remit_config_allocation.ts rename src/entity/{remit_config.ts => remit_config_transaction.ts} (90%) 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.ts b/src/entity/remit_config_transaction.ts similarity index 90% rename from src/entity/remit_config.ts rename to src/entity/remit_config_transaction.ts index 83922f4..bc2842c 100644 --- a/src/entity/remit_config.ts +++ b/src/entity/remit_config_transaction.ts @@ -2,8 +2,8 @@ import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateCol import { Status } from "../types/status"; -@Entity("remit_configs", { schema: "remits" }) -export class RemitConfig { +@Entity("remit_config_transactions", { schema: "remits" }) +export class RemitConfigTransaction { @PrimaryGeneratedColumn("uuid") id: string; diff --git a/src/entity/remit_partners.ts b/src/entity/remit_partners.ts index b2d972e..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, diff --git a/src/index.ts b/src/index.ts index 11c0b4a..360c7d3 100644 --- a/src/index.ts +++ b/src/index.ts @@ -88,7 +88,8 @@ 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 { RemitConfig } from "./entity/remit_config"; +import { RemitConfigTransaction } from "./entity/remit_config_transaction"; +import { RemitConfigAllocation } from "./entity/remit_config_allocation"; export { User, // @@ -188,5 +189,6 @@ export { RemitTopup, RemitMutation, RemitBank, - RemitConfig, + RemitConfigTransaction, + RemitConfigAllocation, };