added model and func to fetch vouchers from the API

This commit is contained in:
2024-09-28 14:07:37 +03:00
parent 3a46fda769
commit 31aea6b807
4 changed files with 53 additions and 25 deletions

View File

@@ -23,4 +23,9 @@ func (m *MockAccountService) CheckBalance(publicKey string) (string, error) {
func (m *MockAccountService) CheckAccountStatus(trackingId string) (string, error) {
args := m.Called(trackingId)
return args.String(0), args.Error(1)
}
}
func (m *MockAccountService) FetchVouchersFromAPI() ([]models.VoucherHolding, error) {
args := m.Called()
return args.Get(0).([]models.VoucherHolding), args.Error(1)
}