feat(zarinhub): implement card to iban client

This commit is contained in:
2026-09-21 08:41:29 +03:30
parent 18081c8efe
commit a8c351f3c0
5 changed files with 580 additions and 0 deletions

View 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"`
}