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