Documentation ¶
Index ¶
- type OrderGrpcMock
- 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) ShippingOrder(ctx context.Context, data *entity.ShippingOrder) (shippingId string, err 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 OrderGrpcMock ¶
func NewOrderGrpcMock ¶
func NewOrderGrpcMock() *OrderGrpcMock
func (*OrderGrpcMock) AddShippingId ¶
func (o *OrderGrpcMock) AddShippingId(ctx context.Context, data *pb.AddShippingIdReq) error
func (*OrderGrpcMock) UpdateStatus ¶
func (o *OrderGrpcMock) UpdateStatus(ctx context.Context, data *pb.UpdateStatusReq) error
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) ShippingOrder ¶
func (s *ShipperMock) ShippingOrder(ctx context.Context, data *entity.ShippingOrder) (shippingId string, err error)
func (*ShipperMock) TrackingByShippingId ¶
Click to show internal directories.
Click to hide internal directories.