-
Notifications
You must be signed in to change notification settings - Fork 13
/
elorus.go
37 lines (25 loc) · 932 Bytes
/
elorus.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package mocks
import (
"io"
"github.com/stretchr/testify/mock"
"github.com/coretrix/hitrix/service/component/elorus"
)
type FakeElorus struct {
mock.Mock
}
func (e *FakeElorus) CreateContact(request *elorus.CreateContactRequest) (*elorus.Response, error) {
args := e.Called(request)
return args.Get(0).(*elorus.Response), args.Error(1)
}
func (e *FakeElorus) CreateInvoice(request *elorus.CreateInvoiceRequest) (*elorus.Response, error) {
args := e.Called(request)
return args.Get(0).(*elorus.Response), args.Error(1)
}
func (e *FakeElorus) GetInvoiceList(request *elorus.GetInvoiceListRequest) (*elorus.InvoiceListResponse, error) {
args := e.Called(request)
return args.Get(0).(*elorus.InvoiceListResponse), args.Error(1)
}
func (e *FakeElorus) DownloadInvoice(request *elorus.DownloadInvoiceRequest) (*io.ReadCloser, error) {
args := e.Called(request)
return args.Get(0).(*io.ReadCloser), args.Error(1)
}