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