added model and func to fetch vouchers from the API
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user