natsio/model/bank_response.go

41 lines
1.2 KiB
Go
Raw Permalink Normal View History

2022-09-14 07:09:48 +00:00
package model
2022-10-27 02:37:07 +00:00
import "time"
2022-09-14 07:25:16 +00:00
// MultiLang ...
type MultiLang struct {
En string `json:"en"`
Vi string `json:"vi"`
}
2022-10-27 02:37:07 +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-09-14 07:09:48 +00:00
// BankBrief ...
type BankBrief struct {
2022-10-27 02:37:07 +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"`
}
2022-10-27 04:30:17 +00:00
type ResponseBankInfo struct {
Bank BankBrief `json:"bank"`
Branch BranchBrief `json:"branch"`
2022-09-14 07:09:48 +00:00
}