service

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NotificationMock

type NotificationMock struct {
	mock.Mock
}

func NewNotificationMock

func NewNotificationMock() *NotificationMock

func (*NotificationMock) Shipper

func (s *NotificationMock) Shipper(ctx context.Context, data *entity.Shipper) error

type ShipperMock

type ShipperMock struct {
	mock.Mock
}

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) Shipper

func (s *ShipperMock) Shipper(ctx context.Context, data *entity.Shipper) error

func (*ShipperMock) TrackingByShippingId

func (s *ShipperMock) 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