v2: withdraw log msg + created status in accounting

Signed-off-by: nfel <nfilsaraee@gmail.com>
This commit is contained in:
nfel 2025-08-13 12:29:16 +03:30
parent 3555d27c03
commit b0a80e5dd3
Signed by: nfel
GPG Key ID: DCC0BF3F92B0D45F

View File

@ -607,11 +607,12 @@ enum AccountingType {
}
enum AccountingStatus {
ACCOUNTING_STATUS_UNKNOWN = 0;
ACCOUNTING_STATUS_PENDING = 1;
ACCOUNTING_STATUS_SUCCESS = 2;
ACCOUNTING_STATUS_FAILED = 3;
ACCOUNTING_STATUS_CANCELLED = 4;
ACCOUNTING_STATUS_REJECTED = 5;
ACCOUNTING_STATUS_CREATED = 1;
ACCOUNTING_STATUS_PENDING = 2;
ACCOUNTING_STATUS_SUCCESS = 3;
ACCOUNTING_STATUS_FAILED = 4;
ACCOUNTING_STATUS_CANCELLED = 5;
ACCOUNTING_STATUS_REJECTED = 6;
}
enum IPGStatus {
@ -644,30 +645,19 @@ message IPGConfirmReq {
// string amount = 7;
}
// type IPGLog struct {
// AccountingID uint
// Accounting Accounting
// RefID string `gorm:"primaryKey"`
// Amount int64
// Status walletv1.AccountingStatus
// CreatedAt time.Time
// UpdatedAt time.Time
// Token string
// PSP PSP
// TransactionID *int64
// Transaction *Transaction
// }
//
// type PSP string
//
// const (
// UNKNOWN_PSP = PSP("unknown")
// PSP_VANDAR_BP_MELLAT = PSP("vandar_bp_mellat")
// PSP_VANDAR_SEP = PSP("vandar_sep")
// PSP_VANDAR = PSP("vandar")
// PSP_BP_MELLAT = PSP("bp_mellat")
// )
message WithdrawLog {
uint64 id = 1;
Accounting accounting = 2;
string rrn = 3;
int64 amount = 4;
AccountingStatus status = 5;
string created_at = 6;
string updated_at = 7;
optional Transaction transaction = 8;
optional auth.v1.BankInfo bankinfo_id = 10;
optional bool accepted_by_admin = 11;
}
enum PSP {
PSP_UNKNOWN = 0;