natsio/model/bank_response.go

41 lines
1.2 KiB
Go
Raw Normal View History

2022-10-11 07:13:15 +00:00
package model
2022-11-08 11:00:24 +00:00
import "time"
2022-10-11 07:13:15 +00:00
// MultiLang ...
type MultiLang struct {
En string `json:"en"`
Vi string `json:"vi"`
}
2022-11-08 11:00:24 +00:00
// BankBranchBrief ...
type BranchBrief struct {
ID string `json:"_id"`
City string `json:"city"`
BankCode string `json:"bankCode"`
BankID string `json:"bankId"`
Active bool `json:"active"`
Name string `json:"name"`
}
2022-10-11 07:13:15 +00:00
// BankBrief ...
type BankBrief struct {
2022-11-08 11:00:24 +00:00
ID string `json:"_id"`
Name MultiLang `json:"name"`
ShortName string `json:"shortName"`
Active bool `json:"active"`
BenBankName string `json:"benBankName"`
BankCode int `json:"bankCode"`
IsBranchRequired bool `json:"isBranchRequired"`
BeneficiaryForVietinbank string `json:"beneficiaryForVietinbank"`
CreatedBy string `json:"createdBy,omitempty"`
CreatedAt time.Time `json:"createdAt"`
BranchTotal int64 `json:"branchTotal"`
Logo interface{} `json:"logo"`
}
type ResponseBankInfo struct {
Bank BankBrief `json:"bank"`
Branch BranchBrief `json:"branch"`
2022-10-11 07:13:15 +00:00
}