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 }
Click to show internal directories.
Click to hide internal directories.