Documentation ¶
Index ¶
- type AnnouncementError
- type AnnouncementService
- func (a *AnnouncementService) CloneAnnouncement(input CloneAnnouncementDtoInput) error
- func (a *AnnouncementService) RetrieveAnnouncements(sku string, credentials store.Credentials) (*[]common.MeliAnnouncement, error)
- func (a *AnnouncementService) UpdateQuantity(id string, newQuantity int, credentials store.Credentials) error
- type CloneAnnouncementDtoInput
- type GetAnnouncementsDtoInput
- type UseCase
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnnouncementError ¶
type AnnouncementError struct { Message string AnnouncementID string IsAbleToRetry bool Sku string }
func (*AnnouncementError) Error ¶
func (a *AnnouncementError) Error() string
type AnnouncementService ¶
type AnnouncementService struct {
// contains filtered or unexported fields
}
func NewAnnouncementService ¶
func NewAnnouncementService(mercadolivre common.MercadoLivre, storeUseCase store.UseCase, logger metrics.Logger) *AnnouncementService
func (*AnnouncementService) CloneAnnouncement ¶
func (a *AnnouncementService) CloneAnnouncement(input CloneAnnouncementDtoInput) error
CloneAnnouncement implements UseCase
func (*AnnouncementService) RetrieveAnnouncements ¶
func (a *AnnouncementService) RetrieveAnnouncements(sku string, credentials store.Credentials) (*[]common.MeliAnnouncement, error)
func (*AnnouncementService) UpdateQuantity ¶
func (a *AnnouncementService) UpdateQuantity(id string, newQuantity int, credentials store.Credentials) error
type GetAnnouncementsDtoInput ¶
type GetAnnouncementsDtoInput struct {
Sku string `json:"sku"`
}
type UseCase ¶
type UseCase interface { RetrieveAnnouncements(sku string, credentials store.Credentials) (*[]common.MeliAnnouncement, error) UpdateQuantity(id string, quantity int, credentials store.Credentials) error CloneAnnouncement(input CloneAnnouncementDtoInput) error }
Click to show internal directories.
Click to hide internal directories.