interfaces

package
v0.0.0-...-265cb22 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2021 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 CarrierRepository

type CarrierRepository interface {
	Create(ctx context.Context, carrier *aggregates.Carrier) *custom_errors.Error
	ChangeStatusAsReadyToDelivery(ctx context.Context, carrierId string, status *value_objects.Status) *custom_errors.Error
	ChangeStatusAsRejected(ctx context.Context, carrierId string, status *value_objects.Status) *custom_errors.Error
	ChangeStatusAsSuspended(ctx context.Context, carrierId string, status *value_objects.Status) *custom_errors.Error
	ChangeStatusAsWaitingForApproval(ctx context.Context, carrierId string, status *value_objects.Status) *custom_errors.Error
	GetCarrierById(ctx context.Context, carrierId string) (*aggregates.Carrier, *custom_errors.Error)
	GetReadyToDeliveryCarriers(ctx context.Context) (*[]aggregates.Carrier, *custom_errors.Error)
	GetWaitingForApprovalCarriers(ctx context.Context) (*[]aggregates.Carrier, *custom_errors.Error)
	GetRejectedCarriers(ctx context.Context) (*[]aggregates.Carrier, *custom_errors.Error)
	GetSuspendedCarriers(ctx context.Context) (*[]aggregates.Carrier, *custom_errors.Error)
	UpdateIdentity(ctx context.Context, carrierId string, identity *value_objects.Identity) *custom_errors.Error
	UpdateMedia(ctx context.Context, carrierId string, media *value_objects.Media) *custom_errors.Error
	UpdateDocuments(ctx context.Context, carrierId string, documents *value_objects.Documents) *custom_errors.Error
	UpdateLocation(ctx context.Context, carrierId string, location *value_objects.Location) *custom_errors.Error
	UpdateBankAccount(ctx context.Context, carrierId string, bankAccount *value_objects.BankAccount) *custom_errors.Error
}

Jump to

Keyboard shortcuts

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