Documentation ¶
Index ¶
- type TaxService
- func (_m *TaxService) CreateOrUpdate(ctx context.Context, in *taxpb.TaxRate, opts ...client.CallOption) (*taxpb.TaxRate, error)
- func (_m *TaxService) DeleteRateById(ctx context.Context, in *taxpb.DeleteRateRequest, opts ...client.CallOption) (*taxpb.DeleteRateResponse, error)
- func (_m *TaxService) GetRate(ctx context.Context, in *taxpb.GeoIdentity, opts ...client.CallOption) (*taxpb.TaxRate, error)
- func (_m *TaxService) GetRates(ctx context.Context, in *taxpb.GetRatesRequest, opts ...client.CallOption) (*taxpb.GetRatesResponse, error)
- type TaxServiceHandler
- func (_m *TaxServiceHandler) CreateOrUpdate(_a0 context.Context, _a1 *taxpb.TaxRate, _a2 *taxpb.TaxRate) error
- func (_m *TaxServiceHandler) DeleteRateById(_a0 context.Context, _a1 *taxpb.DeleteRateRequest, ...) error
- func (_m *TaxServiceHandler) GetRate(_a0 context.Context, _a1 *taxpb.GeoIdentity, _a2 *taxpb.TaxRate) error
- func (_m *TaxServiceHandler) GetRates(_a0 context.Context, _a1 *taxpb.GetRatesRequest, _a2 *taxpb.GetRatesResponse) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TaxService ¶
TaxService is an autogenerated mock type for the TaxService type
func NewTaxService ¶
func NewTaxService(t mockConstructorTestingTNewTaxService) *TaxService
NewTaxService creates a new instance of TaxService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*TaxService) CreateOrUpdate ¶
func (_m *TaxService) CreateOrUpdate(ctx context.Context, in *taxpb.TaxRate, opts ...client.CallOption) (*taxpb.TaxRate, error)
CreateOrUpdate provides a mock function with given fields: ctx, in, opts
func (*TaxService) DeleteRateById ¶
func (_m *TaxService) DeleteRateById(ctx context.Context, in *taxpb.DeleteRateRequest, opts ...client.CallOption) (*taxpb.DeleteRateResponse, error)
DeleteRateById provides a mock function with given fields: ctx, in, opts
func (*TaxService) GetRate ¶
func (_m *TaxService) GetRate(ctx context.Context, in *taxpb.GeoIdentity, opts ...client.CallOption) (*taxpb.TaxRate, error)
GetRate provides a mock function with given fields: ctx, in, opts
func (*TaxService) GetRates ¶
func (_m *TaxService) GetRates(ctx context.Context, in *taxpb.GetRatesRequest, opts ...client.CallOption) (*taxpb.GetRatesResponse, error)
GetRates provides a mock function with given fields: ctx, in, opts
type TaxServiceHandler ¶
TaxServiceHandler is an autogenerated mock type for the TaxServiceHandler type
func NewTaxServiceHandler ¶
func NewTaxServiceHandler(t mockConstructorTestingTNewTaxServiceHandler) *TaxServiceHandler
NewTaxServiceHandler creates a new instance of TaxServiceHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*TaxServiceHandler) CreateOrUpdate ¶
func (_m *TaxServiceHandler) CreateOrUpdate(_a0 context.Context, _a1 *taxpb.TaxRate, _a2 *taxpb.TaxRate) error
CreateOrUpdate provides a mock function with given fields: _a0, _a1, _a2
func (*TaxServiceHandler) DeleteRateById ¶
func (_m *TaxServiceHandler) DeleteRateById(_a0 context.Context, _a1 *taxpb.DeleteRateRequest, _a2 *taxpb.DeleteRateResponse) error
DeleteRateById provides a mock function with given fields: _a0, _a1, _a2
func (*TaxServiceHandler) GetRate ¶
func (_m *TaxServiceHandler) GetRate(_a0 context.Context, _a1 *taxpb.GeoIdentity, _a2 *taxpb.TaxRate) error
GetRate provides a mock function with given fields: _a0, _a1, _a2
func (*TaxServiceHandler) GetRates ¶
func (_m *TaxServiceHandler) GetRates(_a0 context.Context, _a1 *taxpb.GetRatesRequest, _a2 *taxpb.GetRatesResponse) error
GetRates provides a mock function with given fields: _a0, _a1, _a2