services

package
v0.1.1-beta Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorizeService

type AuthorizeService interface {
	AuthorizeApp(etsyApi *goetsyapi.EtsyAPI) (string, error)
	RefreshToken(etsyApi *goetsyapi.EtsyAPI) (string, error)
}

type AuthorizeServiceImp

type AuthorizeServiceImp struct {
	// contains filtered or unexported fields
}

func (*AuthorizeServiceImp) AuthorizeApp

func (a *AuthorizeServiceImp) AuthorizeApp(etsyApi *goetsyapi.EtsyAPI) (string, error)

func (*AuthorizeServiceImp) GetAccessToken

func (a *AuthorizeServiceImp) GetAccessToken() (string, error)

func (*AuthorizeServiceImp) RefreshToken

func (a *AuthorizeServiceImp) RefreshToken(etsyApi *goetsyapi.EtsyAPI) (string, error)

type ProductToEtsyListingService

type ProductToEtsyListingService struct {
	// contains filtered or unexported fields
}

func NewProductToEtsyListingService

func NewProductToEtsyListingService() *ProductToEtsyListingService

func (*ProductToEtsyListingService) ConvertImagesToEtsyImageRequests

func (s *ProductToEtsyListingService) ConvertImagesToEtsyImageRequests(images []string) (etsyImages []etsyapimodels.EtsyListingImageRequest)

func (*ProductToEtsyListingService) ConvertToEtsyListing

func (s *ProductToEtsyListingService) ConvertToEtsyListing(csvPath string, tempStore string) (listings []etsyapimodels.EtsyListing, images etsyapimodels.ListingImages, err error)

func (*ProductToEtsyListingService) ConvertVariantsToEtsyProduct

func (s *ProductToEtsyListingService) ConvertVariantsToEtsyProduct(variants []etsyapimodels.EtsyVariant) (etsyInventoryRequest etsyapimodels.EtsyListingInventoryRequest)

func (*ProductToEtsyListingService) CreateTempImageDirectory

func (s *ProductToEtsyListingService) CreateTempImageDirectory(tempDir string) error

func (*ProductToEtsyListingService) DeleteLocalImages

func (s *ProductToEtsyListingService) DeleteLocalImages(images etsyapimodels.ListingImages)

func (*ProductToEtsyListingService) DownloadImages

func (s *ProductToEtsyListingService) DownloadImages(etsyApi *goetsyapi.EtsyAPI, images etsyapimodels.ListingImages)

func (*ProductToEtsyListingService) HandleVariant

func (*ProductToEtsyListingService) SubmitListingToEtsy

func (s *ProductToEtsyListingService) SubmitListingToEtsy(listing etsyapimodels.EtsyListing, etsyApi *goetsyapi.EtsyAPI, returnPolicyID int, shippingProfileId int) (listingId int, listingTitle string, err error)

Jump to

Keyboard shortcuts

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