feat(zarinhub): implement card to iban client
This commit is contained in:
32
backend/internal/zarinhub/models.go
Normal file
32
backend/internal/zarinhub/models.go
Normal file
@@ -0,0 +1,32 @@
|
||||
package zarinhub
|
||||
|
||||
type convertRequest struct {
|
||||
Card string `json:"card"`
|
||||
}
|
||||
|
||||
type convertResponse struct {
|
||||
Data responseData `json:"data"`
|
||||
Meta responseMeta `json:"meta"`
|
||||
}
|
||||
|
||||
type responseData struct {
|
||||
BankName string `json:"bankName"`
|
||||
Card string `json:"card"`
|
||||
Deposit string `json:"deposit"`
|
||||
DepositDescription string `json:"depositDescription"`
|
||||
DepositOwners string `json:"depositOwners"`
|
||||
DepositStatus string `json:"depositStatus"`
|
||||
EnglishBankName string `json:"englishBankName"`
|
||||
IBAN string `json:"iban"`
|
||||
}
|
||||
|
||||
type responseMeta struct {
|
||||
Code int `json:"code"`
|
||||
ErrorMessage *string `json:"errorMessage"`
|
||||
ErrorType *string `json:"errorType"`
|
||||
Errors []any `json:"errors"`
|
||||
IsSuccess bool `json:"isSuccess"`
|
||||
Message string `json:"message"`
|
||||
Status string `json:"status"`
|
||||
TrackID *string `json:"trackId"`
|
||||
}
|
||||
Reference in New Issue
Block a user