delivery

package
v0.0.0-...-4ce1ff4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewShipper

func NewShipper() delivery.Shipper

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

func (s *ShipperImpl) TrackingByShippingId(ctx context.Context, shippingId string) (*entity.Tracking, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL