Documentation ¶
Overview ¶
Package api defines implementations of endpoints and calls
Package api is a generated GoMock package.
Index ¶
- type Call
- func (c *Call) Auth(secretKey, publicKey, iv, encryptionKey string) error
- func (c *Call) GetBillGroups(ctx context.Context) ([]*model.BillGroup, error)
- func (c *Call) GetBillInformation(ctx context.Context, billChannel string) (model.Bill, error)
- func (c *Call) GetBillTypes(ctx context.Context, billChannel string) ([]*model.BillType, error)
- func (c *Call) GetBillsByGroup(ctx context.Context, group string) ([]*model.Bill, error)
- func (c *Call) RunInSandboxMode()
- func (c *Call) ValidateBill(ctx context.Context, body interface{}) (interface{}, error)
- func (c *Call) VendBill(ctx context.Context, body interface{}) (model.VendBillResponse, error)
- type MockRemoteCalls
- type MockRemoteCallsMockRecorder
- type RemoteCalls
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Call ¶
type Call struct {
// contains filtered or unexported fields
}
Call object
func (*Call) GetBillGroups ¶
GetBillGroups gets all bill groups
func (*Call) GetBillInformation ¶
GetBillInformation gets bills info
func (*Call) GetBillTypes ¶
GetBillTypes gets bill types
func (*Call) GetBillsByGroup ¶
GetBillsByGroup gets bills by group
func (*Call) RunInSandboxMode ¶
func (c *Call) RunInSandboxMode()
RunInSandboxMode this forces Call functionalities to run in sandbox mode for relevant logic/API consumption
func (*Call) ValidateBill ¶
ValidateBill validates bills
type MockRemoteCalls ¶
type MockRemoteCalls struct {
// contains filtered or unexported fields
}
MockRemoteCalls is a mock of RemoteCalls interface.
func NewMockRemoteCalls ¶
func NewMockRemoteCalls(ctrl *gomock.Controller) *MockRemoteCalls
NewMockRemoteCalls creates a new mock instance.
func (*MockRemoteCalls) Auth ¶
func (m *MockRemoteCalls) Auth(key string) error
Auth mocks base method.
func (*MockRemoteCalls) EXPECT ¶
func (m *MockRemoteCalls) EXPECT() *MockRemoteCallsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRemoteCalls) RunInSandboxMode ¶
func (m *MockRemoteCalls) RunInSandboxMode()
RunInSandboxMode mocks base method.
type MockRemoteCallsMockRecorder ¶
type MockRemoteCallsMockRecorder struct {
// contains filtered or unexported fields
}
MockRemoteCallsMockRecorder is the mock recorder for MockRemoteCalls.
func (*MockRemoteCallsMockRecorder) Auth ¶
func (mr *MockRemoteCallsMockRecorder) Auth(key interface{}) *gomock.Call
Auth indicates an expected call of Auth.
func (*MockRemoteCallsMockRecorder) RunInSandboxMode ¶
func (mr *MockRemoteCallsMockRecorder) RunInSandboxMode() *gomock.Call
RunInSandboxMode indicates an expected call of RunInSandboxMode.
type RemoteCalls ¶
type RemoteCalls interface { Auth(secretKey, publicKey, iv, encryptionKey string) error RunInSandboxMode() // Bills GetBillGroups(ctx context.Context) ([]*model.BillGroup, error) GetBillsByGroup(ctx context.Context, group string) ([]*model.Bill, error) GetBillInformation(ctx context.Context, billChannel string) (model.Bill, error) GetBillTypes(ctx context.Context, billChannel string) ([]*model.BillType, error) ValidateBill(ctx context.Context, body interface{}) (interface{}, error) VendBill(ctx context.Context, body interface{}) (model.VendBillResponse, error) }
RemoteCalls abstracted definition of supported functions