Documentation ¶
Index ¶
- type NotificationMock
- type ShipperMock
- func (s *ShipperMock) CreateLabel(ctx context.Context, data *dto.CreateLabelReq) (*dto.ShipperRes[*entity.Label], error)
- func (s *ShipperMock) GetAreasBySuburbId(ctx context.Context, suburbId int) (*dto.ShipperRes[[]*entity.Area], error)
- func (s *ShipperMock) GetCitiesByProvinceId(ctx context.Context, provinceId int) (*dto.ShipperRes[[]*entity.City], error)
- func (s *ShipperMock) GetProvinces(ctx context.Context) (*dto.ShipperRes[[]*entity.Province], error)
- func (s *ShipperMock) GetSuburbsByCityId(ctx context.Context, cityId int) (*dto.ShipperRes[[]*entity.Suburb], error)
- func (s *ShipperMock) Pricing(ctx context.Context, data *dto.PricingReq) (*dto.ShipperRes[*entity.Pricing], error)
- func (s *ShipperMock) RequestPickup(ctx context.Context, shippingIds []string) error
- func (s *ShipperMock) Shipper(ctx context.Context, data *entity.Shipper) error
- func (s *ShipperMock) TrackingByShippingId(ctx context.Context, shippingId string) (*entity.Tracking, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NotificationMock ¶
func NewNotificationMock ¶
func NewNotificationMock() *NotificationMock
type ShipperMock ¶
func NewShipperMock ¶
func NewShipperMock() *ShipperMock
func (*ShipperMock) CreateLabel ¶
func (s *ShipperMock) CreateLabel(ctx context.Context, data *dto.CreateLabelReq) (*dto.ShipperRes[*entity.Label], error)
func (*ShipperMock) GetAreasBySuburbId ¶
func (s *ShipperMock) GetAreasBySuburbId(ctx context.Context, suburbId int) (*dto.ShipperRes[[]*entity.Area], error)
func (*ShipperMock) GetCitiesByProvinceId ¶
func (s *ShipperMock) GetCitiesByProvinceId(ctx context.Context, provinceId int) (*dto.ShipperRes[[]*entity.City], error)
func (*ShipperMock) GetProvinces ¶
func (s *ShipperMock) GetProvinces(ctx context.Context) (*dto.ShipperRes[[]*entity.Province], error)
func (*ShipperMock) GetSuburbsByCityId ¶
func (s *ShipperMock) GetSuburbsByCityId(ctx context.Context, cityId int) (*dto.ShipperRes[[]*entity.Suburb], error)
func (*ShipperMock) Pricing ¶
func (s *ShipperMock) Pricing(ctx context.Context, data *dto.PricingReq) (*dto.ShipperRes[*entity.Pricing], error)
func (*ShipperMock) RequestPickup ¶
func (s *ShipperMock) RequestPickup(ctx context.Context, shippingIds []string) error
func (*ShipperMock) TrackingByShippingId ¶
Click to show internal directories.
Click to hide internal directories.