go_heyframe_admin_sdk

package module
v0.0.0-...-85ef7b0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2025 License: MIT Imports: 14 Imported by: 2

README

SDK for the Heyframe 6 Admin API

See example folder

Create a client

Password
ctx := context.Background()

// Create a using password grant
creds := sdk.NewPasswordCredentials("<username>", "<password>", []string{"write"})
client, err := sdk.NewApiClient(ctx, "<url>", creds, nil)
Integration
ctx := context.Background()

// Create a using password grant
creds := sdk.NewIntegrationCredentials("<client-id>", "<client-secret>", []string{"write"})
client, err := sdk.NewApiClient(ctx, "<url>", creds, nil)

Usage of a repository

apiContext := sdk.NewApiContext(ctx)
criteria := sdk.Criteria{}

collection, _, _ := client.Repository.Product.Search(apiContext, criteria)

for _, product := range collection.Data {
    fmt.Println(product.Name)
}
Create/Update
apiContext := sdk.NewApiContext(ctx)
client.Repository.Product.Upsert(apiContext, []sdk.Product{
    {Name: "15%"},
})
Delete
apiContext := sdk.NewApiContext(ctx)
client.Repository.Product.Delete(apiContext, []string{"someid"})

Documentation

Index

Constants

View Source
const (
	TotalCountModeDefault  = 0
	TotalCountModeExact    = 1
	TotalCountModeNextPage = 2

	SearchFilterTypeEquals    = "equals"
	SearchFilterTypeEqualsAny = "equalsAny"

	SearchSortDirectionAscending  = "ASC"
	SearchSortDirectionDescending = "DESC"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AclRole

type AclRole struct {
	CreatedAt time.Time `json:"createdAt,omitempty"`

	DeletedAt time.Time `json:"deletedAt,omitempty"`

	Description string `json:"description,omitempty"`

	Id string `json:"id,omitempty"`

	Integrations []Integration `json:"integrations,omitempty"`

	Name string `json:"name,omitempty"`

	Privileges interface{} `json:"privileges,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`

	Users []User `json:"users,omitempty"`
}

type AclRoleRepository

type AclRoleRepository struct {
	*GenericRepository[AclRole]
}

func NewAclRoleRepository

func NewAclRoleRepository(client *Client) *AclRoleRepository

func (*AclRoleRepository) Delete

func (t *AclRoleRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*AclRoleRepository) Search

func (*AclRoleRepository) SearchAll

func (t *AclRoleRepository) SearchAll(ctx ApiContext, criteria Criteria) (*EntityCollection[AclRole], *http.Response, error)

func (*AclRoleRepository) SearchIds

func (t *AclRoleRepository) SearchIds(ctx ApiContext, criteria Criteria) (*SearchIdsResponse, *http.Response, error)

func (*AclRoleRepository) Upsert

func (t *AclRoleRepository) Upsert(ctx ApiContext, entity []AclRole) (*http.Response, error)

type AclUserRole

type AclUserRole struct {
	AclRole *AclRole `json:"aclRole,omitempty"`

	AclRoleId string `json:"aclRoleId,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`

	User *User `json:"user,omitempty"`

	UserId string `json:"userId,omitempty"`
}

type AclUserRoleRepository

type AclUserRoleRepository struct {
	*GenericRepository[AclUserRole]
}

func NewAclUserRoleRepository

func NewAclUserRoleRepository(client *Client) *AclUserRoleRepository

func (*AclUserRoleRepository) Delete

func (t *AclUserRoleRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*AclUserRoleRepository) Search

func (*AclUserRoleRepository) SearchAll

func (*AclUserRoleRepository) SearchIds

func (t *AclUserRoleRepository) SearchIds(ctx ApiContext, criteria Criteria) (*SearchIdsResponse, *http.Response, error)

func (*AclUserRoleRepository) Upsert

func (t *AclUserRoleRepository) Upsert(ctx ApiContext, entity []AclUserRole) (*http.Response, error)

type ApiContext

type ApiContext struct {
	Context     context.Context
	LanguageId  string
	VersionId   string
	SkipFlows   bool
	Inheritance bool
}

func NewApiContext

func NewApiContext(ctx context.Context) ApiContext

type BulkService

type BulkService ClientService

func (BulkService) Sync

func (b BulkService) Sync(ctx ApiContext, payload map[string]SyncOperation) (*http.Response, error)

type CacheManagerService

type CacheManagerService ClientService

func (CacheManagerService) Clear

type Category

type Category struct {
	Active bool `json:"active,omitempty"`

	AfterCategoryId string `json:"afterCategoryId,omitempty"`

	AfterCategoryVersionId string `json:"afterCategoryVersionId,omitempty"`

	AutoIncrement float64 `json:"autoIncrement,omitempty"`

	ChildCount float64 `json:"childCount,omitempty"`

	Children []Category `json:"children,omitempty"`

	CmsPage *CmsPage `json:"cmsPage,omitempty"`

	CmsPageId string `json:"cmsPageId,omitempty"`

	CmsPageIdSwitched bool `json:"cmsPageIdSwitched,omitempty"`

	CmsPageVersionId string `json:"cmsPageVersionId,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	Description string `json:"description,omitempty"`

	DisplayNestedProducts bool `json:"displayNestedProducts,omitempty"`

	Id string `json:"id,omitempty"`

	Level float64 `json:"level,omitempty"`

	Media *Media `json:"media,omitempty"`

	MediaId string `json:"mediaId,omitempty"`

	Name string `json:"name,omitempty"`

	NestedProducts []Product `json:"nestedProducts,omitempty"`

	Parent *Category `json:"parent,omitempty"`

	ParentId string `json:"parentId,omitempty"`

	ParentVersionId string `json:"parentVersionId,omitempty"`

	Path string `json:"path,omitempty"`

	Products []Product `json:"products,omitempty"`

	Tags []Tag `json:"tags,omitempty"`

	TechnicalName string `json:"technicalName,omitempty"`

	Translated interface{} `json:"translated,omitempty"`

	Translations []CategoryTranslation `json:"translations,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`

	VersionId string `json:"versionId,omitempty"`

	Visible bool `json:"visible,omitempty"`

	VisibleChildCount float64 `json:"visibleChildCount,omitempty"`
}

type CategoryRepository

type CategoryRepository struct {
	*GenericRepository[Category]
}

func NewCategoryRepository

func NewCategoryRepository(client *Client) *CategoryRepository

func (*CategoryRepository) Delete

func (t *CategoryRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*CategoryRepository) Search

func (*CategoryRepository) SearchAll

func (*CategoryRepository) SearchIds

func (t *CategoryRepository) SearchIds(ctx ApiContext, criteria Criteria) (*SearchIdsResponse, *http.Response, error)

func (*CategoryRepository) Upsert

func (t *CategoryRepository) Upsert(ctx ApiContext, entity []Category) (*http.Response, error)

type CategoryTag

type CategoryTag struct {
	Category *Category `json:"category,omitempty"`

	CategoryId string `json:"categoryId,omitempty"`

	CategoryVersionId string `json:"categoryVersionId,omitempty"`

	Tag *Tag `json:"tag,omitempty"`

	TagId string `json:"tagId,omitempty"`
}

type CategoryTagRepository

type CategoryTagRepository struct {
	*GenericRepository[CategoryTag]
}

func NewCategoryTagRepository

func NewCategoryTagRepository(client *Client) *CategoryTagRepository

func (*CategoryTagRepository) Delete

func (t *CategoryTagRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*CategoryTagRepository) Search

func (*CategoryTagRepository) SearchAll

func (*CategoryTagRepository) SearchIds

func (t *CategoryTagRepository) SearchIds(ctx ApiContext, criteria Criteria) (*SearchIdsResponse, *http.Response, error)

func (*CategoryTagRepository) Upsert

func (t *CategoryTagRepository) Upsert(ctx ApiContext, entity []CategoryTag) (*http.Response, error)

type CategoryTranslation

type CategoryTranslation struct {
	Breadcrumb interface{} `json:"breadcrumb,omitempty"`

	Category *Category `json:"category,omitempty"`

	CategoryId string `json:"categoryId,omitempty"`

	CategoryVersionId string `json:"categoryVersionId,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	Description string `json:"description,omitempty"`

	Language *Language `json:"language,omitempty"`

	LanguageId string `json:"languageId,omitempty"`

	Name string `json:"name,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type CategoryTranslationRepository

type CategoryTranslationRepository struct {
	*GenericRepository[CategoryTranslation]
}

func NewCategoryTranslationRepository

func NewCategoryTranslationRepository(client *Client) *CategoryTranslationRepository

func (*CategoryTranslationRepository) Delete

func (*CategoryTranslationRepository) Search

func (*CategoryTranslationRepository) SearchAll

func (*CategoryTranslationRepository) SearchIds

func (*CategoryTranslationRepository) Upsert

type Channel

type Channel struct {
	AccessKey string `json:"accessKey,omitempty"`

	Active bool `json:"active,omitempty"`

	BoundCustomers []Customer `json:"boundCustomers,omitempty"`

	Configuration interface{} `json:"configuration,omitempty"`

	Countries []Country `json:"countries,omitempty"`

	Country *Country `json:"country,omitempty"`

	CountryId string `json:"countryId,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	Currencies []Currency `json:"currencies,omitempty"`

	Currency *Currency `json:"currency,omitempty"`

	CurrencyId string `json:"currencyId,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	CustomerGroup *CustomerGroup `json:"customerGroup,omitempty"`

	CustomerGroupId string `json:"customerGroupId,omitempty"`

	Customers []Customer `json:"customers,omitempty"`

	Domains []ChannelDomain `json:"domains,omitempty"`

	FooterNavigationId string `json:"footerNavigationId,omitempty"`

	FooterNavigationVersionId string `json:"footerNavigationVersionId,omitempty"`

	HomeEnabled bool `json:"homeEnabled,omitempty"`

	HomeKeywords string `json:"homeKeywords,omitempty"`

	HomeMetaDescription string `json:"homeMetaDescription,omitempty"`

	HomeMetaTitle string `json:"homeMetaTitle,omitempty"`

	HomeName string `json:"homeName,omitempty"`

	HomeSlotConfig interface{} `json:"homeSlotConfig,omitempty"`

	Id string `json:"id,omitempty"`

	Language *Language `json:"language,omitempty"`

	LanguageId string `json:"languageId,omitempty"`

	Languages []Language `json:"languages,omitempty"`

	Maintenance bool `json:"maintenance,omitempty"`

	MaintenanceIpWhitelist interface{} `json:"maintenanceIpWhitelist,omitempty"`

	Name string `json:"name,omitempty"`

	NavigationDepth float64 `json:"navigationDepth,omitempty"`

	NavigationId string `json:"navigationId,omitempty"`

	NavigationVersionId string `json:"navigationVersionId,omitempty"`

	NumberRangeChannels []NumberRangeChannel `json:"numberRangeChannels,omitempty"`

	Orders []Order `json:"orders,omitempty"`

	PaymentMethod *PaymentMethod `json:"paymentMethod,omitempty"`

	PaymentMethodId string `json:"paymentMethodId,omitempty"`

	PaymentMethodIds interface{} `json:"paymentMethodIds,omitempty"`

	PaymentMethods []PaymentMethod `json:"paymentMethods,omitempty"`

	ProductVisibilities []ProductVisibility `json:"productVisibilities,omitempty"`

	ServiceNavigationId string `json:"serviceNavigationId,omitempty"`

	ServiceNavigationVersionId string `json:"serviceNavigationVersionId,omitempty"`

	ShortName string `json:"shortName,omitempty"`

	SystemConfigs []SystemConfig `json:"systemConfigs,omitempty"`

	Themes []Theme `json:"themes,omitempty"`

	Translated interface{} `json:"translated,omitempty"`

	Translations []ChannelTranslation `json:"translations,omitempty"`

	Type *ChannelType `json:"type,omitempty"`

	TypeId string `json:"typeId,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type ChannelCountry

type ChannelCountry struct {
	Channel *Channel `json:"channel,omitempty"`

	ChannelId string `json:"channelId,omitempty"`

	Country *Country `json:"country,omitempty"`

	CountryId string `json:"countryId,omitempty"`
}

type ChannelCountryRepository

type ChannelCountryRepository struct {
	*GenericRepository[ChannelCountry]
}

func NewChannelCountryRepository

func NewChannelCountryRepository(client *Client) *ChannelCountryRepository

func (*ChannelCountryRepository) Delete

func (t *ChannelCountryRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*ChannelCountryRepository) Search

func (*ChannelCountryRepository) SearchAll

func (*ChannelCountryRepository) SearchIds

func (*ChannelCountryRepository) Upsert

type ChannelCurrency

type ChannelCurrency struct {
	Channel *Channel `json:"channel,omitempty"`

	ChannelId string `json:"channelId,omitempty"`

	Currency *Currency `json:"currency,omitempty"`

	CurrencyId string `json:"currencyId,omitempty"`
}

type ChannelCurrencyRepository

type ChannelCurrencyRepository struct {
	*GenericRepository[ChannelCurrency]
}

func NewChannelCurrencyRepository

func NewChannelCurrencyRepository(client *Client) *ChannelCurrencyRepository

func (*ChannelCurrencyRepository) Delete

func (t *ChannelCurrencyRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*ChannelCurrencyRepository) Search

func (*ChannelCurrencyRepository) SearchAll

func (*ChannelCurrencyRepository) SearchIds

func (*ChannelCurrencyRepository) Upsert

type ChannelDomain

type ChannelDomain struct {
	Channel *Channel `json:"channel,omitempty"`

	ChannelId string `json:"channelId,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	Currency *Currency `json:"currency,omitempty"`

	CurrencyId string `json:"currencyId,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	Id string `json:"id,omitempty"`

	Language *Language `json:"language,omitempty"`

	LanguageId string `json:"languageId,omitempty"`

	SnippetSet *SnippetSet `json:"snippetSet,omitempty"`

	SnippetSetId string `json:"snippetSetId,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`

	Url string `json:"url,omitempty"`
}

type ChannelDomainRepository

type ChannelDomainRepository struct {
	*GenericRepository[ChannelDomain]
}

func NewChannelDomainRepository

func NewChannelDomainRepository(client *Client) *ChannelDomainRepository

func (*ChannelDomainRepository) Delete

func (t *ChannelDomainRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*ChannelDomainRepository) Search

func (*ChannelDomainRepository) SearchAll

func (*ChannelDomainRepository) SearchIds

func (*ChannelDomainRepository) Upsert

func (t *ChannelDomainRepository) Upsert(ctx ApiContext, entity []ChannelDomain) (*http.Response, error)

type ChannelLanguage

type ChannelLanguage struct {
	Channel *Channel `json:"channel,omitempty"`

	ChannelId string `json:"channelId,omitempty"`

	Language *Language `json:"language,omitempty"`

	LanguageId string `json:"languageId,omitempty"`
}

type ChannelLanguageRepository

type ChannelLanguageRepository struct {
	*GenericRepository[ChannelLanguage]
}

func NewChannelLanguageRepository

func NewChannelLanguageRepository(client *Client) *ChannelLanguageRepository

func (*ChannelLanguageRepository) Delete

func (t *ChannelLanguageRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*ChannelLanguageRepository) Search

func (*ChannelLanguageRepository) SearchAll

func (*ChannelLanguageRepository) SearchIds

func (*ChannelLanguageRepository) Upsert

type ChannelPaymentMethod

type ChannelPaymentMethod struct {
	Channel *Channel `json:"channel,omitempty"`

	ChannelId string `json:"channelId,omitempty"`

	PaymentMethod *PaymentMethod `json:"paymentMethod,omitempty"`

	PaymentMethodId string `json:"paymentMethodId,omitempty"`
}

type ChannelPaymentMethodRepository

type ChannelPaymentMethodRepository struct {
	*GenericRepository[ChannelPaymentMethod]
}

func NewChannelPaymentMethodRepository

func NewChannelPaymentMethodRepository(client *Client) *ChannelPaymentMethodRepository

func (*ChannelPaymentMethodRepository) Delete

func (*ChannelPaymentMethodRepository) Search

func (*ChannelPaymentMethodRepository) SearchAll

func (*ChannelPaymentMethodRepository) SearchIds

func (*ChannelPaymentMethodRepository) Upsert

type ChannelRepository

type ChannelRepository struct {
	*GenericRepository[Channel]
}

func NewChannelRepository

func NewChannelRepository(client *Client) *ChannelRepository

func (*ChannelRepository) Delete

func (t *ChannelRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*ChannelRepository) Search

func (*ChannelRepository) SearchAll

func (t *ChannelRepository) SearchAll(ctx ApiContext, criteria Criteria) (*EntityCollection[Channel], *http.Response, error)

func (*ChannelRepository) SearchIds

func (t *ChannelRepository) SearchIds(ctx ApiContext, criteria Criteria) (*SearchIdsResponse, *http.Response, error)

func (*ChannelRepository) Upsert

func (t *ChannelRepository) Upsert(ctx ApiContext, entity []Channel) (*http.Response, error)

type ChannelTranslation

type ChannelTranslation struct {
	Channel *Channel `json:"channel,omitempty"`

	ChannelId string `json:"channelId,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	HomeEnabled bool `json:"homeEnabled,omitempty"`

	HomeKeywords string `json:"homeKeywords,omitempty"`

	HomeMetaDescription string `json:"homeMetaDescription,omitempty"`

	HomeMetaTitle string `json:"homeMetaTitle,omitempty"`

	HomeName string `json:"homeName,omitempty"`

	HomeSlotConfig interface{} `json:"homeSlotConfig,omitempty"`

	Language *Language `json:"language,omitempty"`

	LanguageId string `json:"languageId,omitempty"`

	Name string `json:"name,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type ChannelTranslationRepository

type ChannelTranslationRepository struct {
	*GenericRepository[ChannelTranslation]
}

func NewChannelTranslationRepository

func NewChannelTranslationRepository(client *Client) *ChannelTranslationRepository

func (*ChannelTranslationRepository) Delete

func (*ChannelTranslationRepository) Search

func (*ChannelTranslationRepository) SearchAll

func (*ChannelTranslationRepository) SearchIds

func (*ChannelTranslationRepository) Upsert

type ChannelType

type ChannelType struct {
	Channels []Channel `json:"channels,omitempty"`

	CoverUrl string `json:"coverUrl,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	Description string `json:"description,omitempty"`

	DescriptionLong string `json:"descriptionLong,omitempty"`

	IconName string `json:"iconName,omitempty"`

	Id string `json:"id,omitempty"`

	Manufacturer string `json:"manufacturer,omitempty"`

	Name string `json:"name,omitempty"`

	ScreenshotUrls interface{} `json:"screenshotUrls,omitempty"`

	Translated interface{} `json:"translated,omitempty"`

	Translations []ChannelTypeTranslation `json:"translations,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type ChannelTypeRepository

type ChannelTypeRepository struct {
	*GenericRepository[ChannelType]
}

func NewChannelTypeRepository

func NewChannelTypeRepository(client *Client) *ChannelTypeRepository

func (*ChannelTypeRepository) Delete

func (t *ChannelTypeRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*ChannelTypeRepository) Search

func (*ChannelTypeRepository) SearchAll

func (*ChannelTypeRepository) SearchIds

func (t *ChannelTypeRepository) SearchIds(ctx ApiContext, criteria Criteria) (*SearchIdsResponse, *http.Response, error)

func (*ChannelTypeRepository) Upsert

func (t *ChannelTypeRepository) Upsert(ctx ApiContext, entity []ChannelType) (*http.Response, error)

type ChannelTypeTranslation

type ChannelTypeTranslation struct {
	ChannelType *ChannelType `json:"channelType,omitempty"`

	ChannelTypeId string `json:"channelTypeId,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	Description string `json:"description,omitempty"`

	DescriptionLong string `json:"descriptionLong,omitempty"`

	Language *Language `json:"language,omitempty"`

	LanguageId string `json:"languageId,omitempty"`

	Manufacturer string `json:"manufacturer,omitempty"`

	Name string `json:"name,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type ChannelTypeTranslationRepository

type ChannelTypeTranslationRepository struct {
	*GenericRepository[ChannelTypeTranslation]
}

func NewChannelTypeTranslationRepository

func NewChannelTypeTranslationRepository(client *Client) *ChannelTypeTranslationRepository

func (*ChannelTypeTranslationRepository) Delete

func (*ChannelTypeTranslationRepository) Search

func (*ChannelTypeTranslationRepository) SearchAll

func (*ChannelTypeTranslationRepository) SearchIds

func (*ChannelTypeTranslationRepository) Upsert

type Client

type Client struct {
	HeyFrameVersion *version.Version

	Repository          Repository
	Bulk                *BulkService
	Info                *InfoService
	ExtensionManager    *ExtensionManagerService
	ThemeManager        *ThemeManagerService
	CacheManager        *CacheManagerService
	SystemConfigManager *SystemConfigService
	// contains filtered or unexported fields
}

func NewApiClient

func NewApiClient(ctx context.Context, shopUrl string, credentials OAuthCredentials, httpClient *http.Client) (*Client, error)

func (*Client) BareDo

func (c *Client) BareDo(ctx context.Context, req *http.Request) (*http.Response, error)

func (*Client) Do

func (c *Client) Do(ctx context.Context, req *http.Request, v interface{}) (*http.Response, error)

func (*Client) NewRawRequest

func (c *Client) NewRawRequest(context ApiContext, method, urlStr string, body io.Reader) (*http.Request, error)

func (*Client) NewRequest

func (c *Client) NewRequest(context ApiContext, method, urlStr string, body interface{}) (*http.Request, error)

func (*Client) Token

func (c *Client) Token() oauth2.TokenSource

type ClientService

type ClientService struct {
	Client *Client
}

type CmsPage

type CmsPage struct {
	CreatedAt time.Time `json:"createdAt,omitempty"`

	Id string `json:"id,omitempty"`

	Name string `json:"name,omitempty"`

	Translated interface{} `json:"translated,omitempty"`

	Translations []CmsPageTranslation `json:"translations,omitempty"`

	Type string `json:"type,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`

	VersionId string `json:"versionId,omitempty"`
}

type CmsPageRepository

type CmsPageRepository struct {
	*GenericRepository[CmsPage]
}

func NewCmsPageRepository

func NewCmsPageRepository(client *Client) *CmsPageRepository

func (*CmsPageRepository) Delete

func (t *CmsPageRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*CmsPageRepository) Search

func (*CmsPageRepository) SearchAll

func (t *CmsPageRepository) SearchAll(ctx ApiContext, criteria Criteria) (*EntityCollection[CmsPage], *http.Response, error)

func (*CmsPageRepository) SearchIds

func (t *CmsPageRepository) SearchIds(ctx ApiContext, criteria Criteria) (*SearchIdsResponse, *http.Response, error)

func (*CmsPageRepository) Upsert

func (t *CmsPageRepository) Upsert(ctx ApiContext, entity []CmsPage) (*http.Response, error)

type CmsPageTranslation

type CmsPageTranslation struct {
	CmsPage *CmsPage `json:"cmsPage,omitempty"`

	CmsPageId string `json:"cmsPageId,omitempty"`

	CmsPageVersionId string `json:"cmsPageVersionId,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	Language *Language `json:"language,omitempty"`

	LanguageId string `json:"languageId,omitempty"`

	Name string `json:"name,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type CmsPageTranslationRepository

type CmsPageTranslationRepository struct {
	*GenericRepository[CmsPageTranslation]
}

func NewCmsPageTranslationRepository

func NewCmsPageTranslationRepository(client *Client) *CmsPageTranslationRepository

func (*CmsPageTranslationRepository) Delete

func (*CmsPageTranslationRepository) Search

func (*CmsPageTranslationRepository) SearchAll

func (*CmsPageTranslationRepository) SearchIds

func (*CmsPageTranslationRepository) Upsert

type Country

type Country struct {
	Active bool `json:"active,omitempty"`

	ChannelDefaultAssignments []Channel `json:"channelDefaultAssignments,omitempty"`

	Channels []Channel `json:"channels,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	CurrencyCountryRoundings []CurrencyCountryRounding `json:"currencyCountryRoundings,omitempty"`

	Id string `json:"id,omitempty"`

	Iso string `json:"iso,omitempty"`

	Iso3 string `json:"iso3,omitempty"`

	Name string `json:"name,omitempty"`

	Position float64 `json:"position,omitempty"`

	States []CountryState `json:"states,omitempty"`

	Translated interface{} `json:"translated,omitempty"`

	Translations []CountryTranslation `json:"translations,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type CountryRepository

type CountryRepository struct {
	*GenericRepository[Country]
}

func NewCountryRepository

func NewCountryRepository(client *Client) *CountryRepository

func (*CountryRepository) Delete

func (t *CountryRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*CountryRepository) Search

func (*CountryRepository) SearchAll

func (t *CountryRepository) SearchAll(ctx ApiContext, criteria Criteria) (*EntityCollection[Country], *http.Response, error)

func (*CountryRepository) SearchIds

func (t *CountryRepository) SearchIds(ctx ApiContext, criteria Criteria) (*SearchIdsResponse, *http.Response, error)

func (*CountryRepository) Upsert

func (t *CountryRepository) Upsert(ctx ApiContext, entity []Country) (*http.Response, error)

type CountryState

type CountryState struct {
	Active bool `json:"active,omitempty"`

	Country *Country `json:"country,omitempty"`

	CountryId string `json:"countryId,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	Id string `json:"id,omitempty"`

	Name string `json:"name,omitempty"`

	Position float64 `json:"position,omitempty"`

	ShortCode string `json:"shortCode,omitempty"`

	Translated interface{} `json:"translated,omitempty"`

	Translations []CountryStateTranslation `json:"translations,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type CountryStateRepository

type CountryStateRepository struct {
	*GenericRepository[CountryState]
}

func NewCountryStateRepository

func NewCountryStateRepository(client *Client) *CountryStateRepository

func (*CountryStateRepository) Delete

func (t *CountryStateRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*CountryStateRepository) Search

func (*CountryStateRepository) SearchAll

func (*CountryStateRepository) SearchIds

func (*CountryStateRepository) Upsert

func (t *CountryStateRepository) Upsert(ctx ApiContext, entity []CountryState) (*http.Response, error)

type CountryStateTranslation

type CountryStateTranslation struct {
	CountryState *CountryState `json:"countryState,omitempty"`

	CountryStateId string `json:"countryStateId,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	Language *Language `json:"language,omitempty"`

	LanguageId string `json:"languageId,omitempty"`

	Name string `json:"name,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type CountryStateTranslationRepository

type CountryStateTranslationRepository struct {
	*GenericRepository[CountryStateTranslation]
}

func NewCountryStateTranslationRepository

func NewCountryStateTranslationRepository(client *Client) *CountryStateTranslationRepository

func (*CountryStateTranslationRepository) Delete

func (*CountryStateTranslationRepository) Search

func (*CountryStateTranslationRepository) SearchAll

func (*CountryStateTranslationRepository) SearchIds

func (*CountryStateTranslationRepository) Upsert

type CountryTranslation

type CountryTranslation struct {
	Country *Country `json:"country,omitempty"`

	CountryId string `json:"countryId,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	Language *Language `json:"language,omitempty"`

	LanguageId string `json:"languageId,omitempty"`

	Name string `json:"name,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type CountryTranslationRepository

type CountryTranslationRepository struct {
	*GenericRepository[CountryTranslation]
}

func NewCountryTranslationRepository

func NewCountryTranslationRepository(client *Client) *CountryTranslationRepository

func (*CountryTranslationRepository) Delete

func (*CountryTranslationRepository) Search

func (*CountryTranslationRepository) SearchAll

func (*CountryTranslationRepository) SearchIds

func (*CountryTranslationRepository) Upsert

type Criteria

type Criteria struct {
	Includes       map[string][]string `json:"includes,omitempty"`
	Page           int64               `json:"page,omitempty"`
	Limit          int64               `json:"limit,omitempty"`
	IDs            []string            `json:"ids,omitempty"`
	Filter         []CriteriaFilter    `json:"filter,omitempty"`
	PostFilter     []CriteriaFilter    `json:"postFilter,omitempty"`
	Sort           []CriteriaSort      `json:"sort,omitempty"`
	Associations   map[string]Criteria `json:"associations,omitempty"`
	Term           string              `json:"term,omitempty"`
	TotalCountMode int                 `json:"totalCountMode,omitempty"`
}

type CriteriaFilter

type CriteriaFilter struct {
	Type  string      `json:"type"`
	Field string      `json:"field"`
	Value interface{} `json:"value"`
}

type CriteriaSort

type CriteriaSort struct {
	Direction      string `json:"order"`
	Field          string `json:"field"`
	NaturalSorting bool   `json:"naturalSorting"`
}

type Currency

type Currency struct {
	ChannelDefaultAssignments []Channel `json:"channelDefaultAssignments,omitempty"`

	ChannelDomains []ChannelDomain `json:"channelDomains,omitempty"`

	Channels []Channel `json:"channels,omitempty"`

	CountryRoundings []CurrencyCountryRounding `json:"countryRoundings,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	Factor float64 `json:"factor,omitempty"`

	Id string `json:"id,omitempty"`

	IsSystemDefault bool `json:"isSystemDefault,omitempty"`

	IsoCode string `json:"isoCode,omitempty"`

	ItemRounding interface{} `json:"itemRounding,omitempty"`

	Name string `json:"name,omitempty"`

	Orders []Order `json:"orders,omitempty"`

	Position float64 `json:"position,omitempty"`

	ShortName string `json:"shortName,omitempty"`

	Symbol string `json:"symbol,omitempty"`

	TotalRounding interface{} `json:"totalRounding,omitempty"`

	Translated interface{} `json:"translated,omitempty"`

	Translations []CurrencyTranslation `json:"translations,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type CurrencyCountryRounding

type CurrencyCountryRounding struct {
	Country *Country `json:"country,omitempty"`

	CountryId string `json:"countryId,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	Currency *Currency `json:"currency,omitempty"`

	CurrencyId string `json:"currencyId,omitempty"`

	Id string `json:"id,omitempty"`

	ItemRounding interface{} `json:"itemRounding,omitempty"`

	TotalRounding interface{} `json:"totalRounding,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type CurrencyCountryRoundingRepository

type CurrencyCountryRoundingRepository struct {
	*GenericRepository[CurrencyCountryRounding]
}

func NewCurrencyCountryRoundingRepository

func NewCurrencyCountryRoundingRepository(client *Client) *CurrencyCountryRoundingRepository

func (*CurrencyCountryRoundingRepository) Delete

func (*CurrencyCountryRoundingRepository) Search

func (*CurrencyCountryRoundingRepository) SearchAll

func (*CurrencyCountryRoundingRepository) SearchIds

func (*CurrencyCountryRoundingRepository) Upsert

type CurrencyRepository

type CurrencyRepository struct {
	*GenericRepository[Currency]
}

func NewCurrencyRepository

func NewCurrencyRepository(client *Client) *CurrencyRepository

func (*CurrencyRepository) Delete

func (t *CurrencyRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*CurrencyRepository) Search

func (*CurrencyRepository) SearchAll

func (*CurrencyRepository) SearchIds

func (t *CurrencyRepository) SearchIds(ctx ApiContext, criteria Criteria) (*SearchIdsResponse, *http.Response, error)

func (*CurrencyRepository) Upsert

func (t *CurrencyRepository) Upsert(ctx ApiContext, entity []Currency) (*http.Response, error)

type CurrencyTranslation

type CurrencyTranslation struct {
	CreatedAt time.Time `json:"createdAt,omitempty"`

	Currency *Currency `json:"currency,omitempty"`

	CurrencyId string `json:"currencyId,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	Language *Language `json:"language,omitempty"`

	LanguageId string `json:"languageId,omitempty"`

	Name string `json:"name,omitempty"`

	ShortName string `json:"shortName,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type CurrencyTranslationRepository

type CurrencyTranslationRepository struct {
	*GenericRepository[CurrencyTranslation]
}

func NewCurrencyTranslationRepository

func NewCurrencyTranslationRepository(client *Client) *CurrencyTranslationRepository

func (*CurrencyTranslationRepository) Delete

func (*CurrencyTranslationRepository) Search

func (*CurrencyTranslationRepository) SearchAll

func (*CurrencyTranslationRepository) SearchIds

func (*CurrencyTranslationRepository) Upsert

type CustomField

type CustomField struct {
	Active bool `json:"active,omitempty"`

	AllowCartExpose bool `json:"allowCartExpose,omitempty"`

	AllowCustomerWrite bool `json:"allowCustomerWrite,omitempty"`

	Config interface{} `json:"config,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFieldSet *CustomFieldSet `json:"customFieldSet,omitempty"`

	CustomFieldSetId string `json:"customFieldSetId,omitempty"`

	FrontApiAware bool `json:"frontApiAware,omitempty"`

	Id string `json:"id,omitempty"`

	Name string `json:"name,omitempty"`

	Type string `json:"type,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type CustomFieldRepository

type CustomFieldRepository struct {
	*GenericRepository[CustomField]
}

func NewCustomFieldRepository

func NewCustomFieldRepository(client *Client) *CustomFieldRepository

func (*CustomFieldRepository) Delete

func (t *CustomFieldRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*CustomFieldRepository) Search

func (*CustomFieldRepository) SearchAll

func (*CustomFieldRepository) SearchIds

func (t *CustomFieldRepository) SearchIds(ctx ApiContext, criteria Criteria) (*SearchIdsResponse, *http.Response, error)

func (*CustomFieldRepository) Upsert

func (t *CustomFieldRepository) Upsert(ctx ApiContext, entity []CustomField) (*http.Response, error)

type CustomFieldSet

type CustomFieldSet struct {
	Active bool `json:"active,omitempty"`

	Config interface{} `json:"config,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields []CustomField `json:"customFields,omitempty"`

	Global bool `json:"global,omitempty"`

	Id string `json:"id,omitempty"`

	Name string `json:"name,omitempty"`

	Position float64 `json:"position,omitempty"`

	Relations []CustomFieldSetRelation `json:"relations,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type CustomFieldSetRelation

type CustomFieldSetRelation struct {
	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFieldSet *CustomFieldSet `json:"customFieldSet,omitempty"`

	CustomFieldSetId string `json:"customFieldSetId,omitempty"`

	EntityName string `json:"entityName,omitempty"`

	Id string `json:"id,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type CustomFieldSetRelationRepository

type CustomFieldSetRelationRepository struct {
	*GenericRepository[CustomFieldSetRelation]
}

func NewCustomFieldSetRelationRepository

func NewCustomFieldSetRelationRepository(client *Client) *CustomFieldSetRelationRepository

func (*CustomFieldSetRelationRepository) Delete

func (*CustomFieldSetRelationRepository) Search

func (*CustomFieldSetRelationRepository) SearchAll

func (*CustomFieldSetRelationRepository) SearchIds

func (*CustomFieldSetRelationRepository) Upsert

type CustomFieldSetRepository

type CustomFieldSetRepository struct {
	*GenericRepository[CustomFieldSet]
}

func NewCustomFieldSetRepository

func NewCustomFieldSetRepository(client *Client) *CustomFieldSetRepository

func (*CustomFieldSetRepository) Delete

func (t *CustomFieldSetRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*CustomFieldSetRepository) Search

func (*CustomFieldSetRepository) SearchAll

func (*CustomFieldSetRepository) SearchIds

func (*CustomFieldSetRepository) Upsert

type Customer

type Customer struct {
	Active bool `json:"active,omitempty"`

	AutoIncrement float64 `json:"autoIncrement,omitempty"`

	AvatarId string `json:"avatarId,omitempty"`

	AvatarMedia *Media `json:"avatarMedia,omitempty"`

	Birthday time.Time `json:"birthday,omitempty"`

	BoundChannel *Channel `json:"boundChannel,omitempty"`

	BoundChannelId string `json:"boundChannelId,omitempty"`

	Channel *Channel `json:"channel,omitempty"`

	ChannelId string `json:"channelId,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	CreatedBy *User `json:"createdBy,omitempty"`

	CreatedById string `json:"createdById,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	CustomerNumber string `json:"customerNumber,omitempty"`

	Email string `json:"email,omitempty"`

	ExtraFields interface{} `json:"extraFields,omitempty"`

	FirstLogin time.Time `json:"firstLogin,omitempty"`

	Group *CustomerGroup `json:"group,omitempty"`

	GroupId string `json:"groupId,omitempty"`

	Hash string `json:"hash,omitempty"`

	Id string `json:"id,omitempty"`

	Language *Language `json:"language,omitempty"`

	LanguageId string `json:"languageId,omitempty"`

	LastLogin time.Time `json:"lastLogin,omitempty"`

	LastOrderDate time.Time `json:"lastOrderDate,omitempty"`

	LastPaymentMethod *PaymentMethod `json:"lastPaymentMethod,omitempty"`

	LastPaymentMethodId string `json:"lastPaymentMethodId,omitempty"`

	LastUpdatedPasswordAt time.Time `json:"lastUpdatedPasswordAt,omitempty"`

	LegacyEncoder string `json:"legacyEncoder,omitempty"`

	LegacyPassword string `json:"legacyPassword,omitempty"`

	Name string `json:"name,omitempty"`

	Nickname string `json:"nickname,omitempty"`

	OrderCount float64 `json:"orderCount,omitempty"`

	OrderCustomers []OrderCustomer `json:"orderCustomers,omitempty"`

	OrderTotalAmount float64 `json:"orderTotalAmount,omitempty"`

	Password interface{} `json:"password,omitempty"`

	RemoteAddress interface{} `json:"remoteAddress,omitempty"`

	Roles []CustomerRole `json:"roles,omitempty"`

	TagIds interface{} `json:"tagIds,omitempty"`

	Tags []Tag `json:"tags,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`

	UpdatedBy *User `json:"updatedBy,omitempty"`

	UpdatedById string `json:"updatedById,omitempty"`
}

type CustomerGroup

type CustomerGroup struct {
	Channels []Channel `json:"channels,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	Customers []Customer `json:"customers,omitempty"`

	Id string `json:"id,omitempty"`

	Name string `json:"name,omitempty"`

	Translated interface{} `json:"translated,omitempty"`

	Translations []CustomerGroupTranslation `json:"translations,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type CustomerGroupRepository

type CustomerGroupRepository struct {
	*GenericRepository[CustomerGroup]
}

func NewCustomerGroupRepository

func NewCustomerGroupRepository(client *Client) *CustomerGroupRepository

func (*CustomerGroupRepository) Delete

func (t *CustomerGroupRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*CustomerGroupRepository) Search

func (*CustomerGroupRepository) SearchAll

func (*CustomerGroupRepository) SearchIds

func (*CustomerGroupRepository) Upsert

func (t *CustomerGroupRepository) Upsert(ctx ApiContext, entity []CustomerGroup) (*http.Response, error)

type CustomerGroupTranslation

type CustomerGroupTranslation struct {
	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	CustomerGroup *CustomerGroup `json:"customerGroup,omitempty"`

	CustomerGroupId string `json:"customerGroupId,omitempty"`

	Language *Language `json:"language,omitempty"`

	LanguageId string `json:"languageId,omitempty"`

	Name string `json:"name,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type CustomerGroupTranslationRepository

type CustomerGroupTranslationRepository struct {
	*GenericRepository[CustomerGroupTranslation]
}

func NewCustomerGroupTranslationRepository

func NewCustomerGroupTranslationRepository(client *Client) *CustomerGroupTranslationRepository

func (*CustomerGroupTranslationRepository) Delete

func (*CustomerGroupTranslationRepository) Search

func (*CustomerGroupTranslationRepository) SearchAll

func (*CustomerGroupTranslationRepository) SearchIds

func (*CustomerGroupTranslationRepository) Upsert

type CustomerRepository

type CustomerRepository struct {
	*GenericRepository[Customer]
}

func NewCustomerRepository

func NewCustomerRepository(client *Client) *CustomerRepository

func (*CustomerRepository) Delete

func (t *CustomerRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*CustomerRepository) Search

func (*CustomerRepository) SearchAll

func (*CustomerRepository) SearchIds

func (t *CustomerRepository) SearchIds(ctx ApiContext, criteria Criteria) (*SearchIdsResponse, *http.Response, error)

func (*CustomerRepository) Upsert

func (t *CustomerRepository) Upsert(ctx ApiContext, entity []Customer) (*http.Response, error)

type CustomerRole

type CustomerRole struct {
	Active bool `json:"active,omitempty"`

	Config interface{} `json:"config,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	Customers []Customer `json:"customers,omitempty"`

	DeletedAt time.Time `json:"deletedAt,omitempty"`

	ExtraFields interface{} `json:"extraFields,omitempty"`

	Id string `json:"id,omitempty"`

	Name string `json:"name,omitempty"`

	Privileges interface{} `json:"privileges,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type CustomerRoleMapping

type CustomerRoleMapping struct {
	AclRoleId string `json:"aclRoleId,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	Customer *Customer `json:"customer,omitempty"`

	CustomerId string `json:"customerId,omitempty"`

	CustomerRole *CustomerRole `json:"customerRole,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type CustomerRoleMappingRepository

type CustomerRoleMappingRepository struct {
	*GenericRepository[CustomerRoleMapping]
}

func NewCustomerRoleMappingRepository

func NewCustomerRoleMappingRepository(client *Client) *CustomerRoleMappingRepository

func (*CustomerRoleMappingRepository) Delete

func (*CustomerRoleMappingRepository) Search

func (*CustomerRoleMappingRepository) SearchAll

func (*CustomerRoleMappingRepository) SearchIds

func (*CustomerRoleMappingRepository) Upsert

type CustomerRoleRepository

type CustomerRoleRepository struct {
	*GenericRepository[CustomerRole]
}

func NewCustomerRoleRepository

func NewCustomerRoleRepository(client *Client) *CustomerRoleRepository

func (*CustomerRoleRepository) Delete

func (t *CustomerRoleRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*CustomerRoleRepository) Search

func (*CustomerRoleRepository) SearchAll

func (*CustomerRoleRepository) SearchIds

func (*CustomerRoleRepository) Upsert

func (t *CustomerRoleRepository) Upsert(ctx ApiContext, entity []CustomerRole) (*http.Response, error)

type CustomerTag

type CustomerTag struct {
	Customer *Customer `json:"customer,omitempty"`

	CustomerId string `json:"customerId,omitempty"`

	Tag *Tag `json:"tag,omitempty"`

	TagId string `json:"tagId,omitempty"`
}

type CustomerTagRepository

type CustomerTagRepository struct {
	*GenericRepository[CustomerTag]
}

func NewCustomerTagRepository

func NewCustomerTagRepository(client *Client) *CustomerTagRepository

func (*CustomerTagRepository) Delete

func (t *CustomerTagRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*CustomerTagRepository) Search

func (*CustomerTagRepository) SearchAll

func (*CustomerTagRepository) SearchIds

func (t *CustomerTagRepository) SearchIds(ctx ApiContext, criteria Criteria) (*SearchIdsResponse, *http.Response, error)

func (*CustomerTagRepository) Upsert

func (t *CustomerTagRepository) Upsert(ctx ApiContext, entity []CustomerTag) (*http.Response, error)

type Dict

type Dict struct {
	Active bool `json:"active,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	Description string `json:"description,omitempty"`

	Id string `json:"id,omitempty"`

	Items []DictItem `json:"items,omitempty"`

	Key string `json:"key,omitempty"`

	Position float64 `json:"position,omitempty"`

	Translated interface{} `json:"translated,omitempty"`

	Translations []DictTranslation `json:"translations,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type DictItem

type DictItem struct {
	Active bool `json:"active,omitempty"`

	ChildCount float64 `json:"childCount,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	Description string `json:"description,omitempty"`

	Dict *Dict `json:"dict,omitempty"`

	DictId string `json:"dictId,omitempty"`

	Id string `json:"id,omitempty"`

	Label string `json:"label,omitempty"`

	Level float64 `json:"level,omitempty"`

	Path string `json:"path,omitempty"`

	Position float64 `json:"position,omitempty"`

	Translated interface{} `json:"translated,omitempty"`

	Translations []DictItemTranslation `json:"translations,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`

	Value string `json:"value,omitempty"`
}

type DictItemRepository

type DictItemRepository struct {
	*GenericRepository[DictItem]
}

func NewDictItemRepository

func NewDictItemRepository(client *Client) *DictItemRepository

func (*DictItemRepository) Delete

func (t *DictItemRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*DictItemRepository) Search

func (*DictItemRepository) SearchAll

func (*DictItemRepository) SearchIds

func (t *DictItemRepository) SearchIds(ctx ApiContext, criteria Criteria) (*SearchIdsResponse, *http.Response, error)

func (*DictItemRepository) Upsert

func (t *DictItemRepository) Upsert(ctx ApiContext, entity []DictItem) (*http.Response, error)

type DictItemTranslation

type DictItemTranslation struct {
	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	Description string `json:"description,omitempty"`

	DictItem *DictItem `json:"dictItem,omitempty"`

	DictItemId string `json:"dictItemId,omitempty"`

	Label string `json:"label,omitempty"`

	Language *Language `json:"language,omitempty"`

	LanguageId string `json:"languageId,omitempty"`

	Position float64 `json:"position,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type DictItemTranslationRepository

type DictItemTranslationRepository struct {
	*GenericRepository[DictItemTranslation]
}

func NewDictItemTranslationRepository

func NewDictItemTranslationRepository(client *Client) *DictItemTranslationRepository

func (*DictItemTranslationRepository) Delete

func (*DictItemTranslationRepository) Search

func (*DictItemTranslationRepository) SearchAll

func (*DictItemTranslationRepository) SearchIds

func (*DictItemTranslationRepository) Upsert

type DictRepository

type DictRepository struct {
	*GenericRepository[Dict]
}

func NewDictRepository

func NewDictRepository(client *Client) *DictRepository

func (*DictRepository) Delete

func (t *DictRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*DictRepository) Search

func (t *DictRepository) Search(ctx ApiContext, criteria Criteria) (*EntityCollection[Dict], *http.Response, error)

func (*DictRepository) SearchAll

func (t *DictRepository) SearchAll(ctx ApiContext, criteria Criteria) (*EntityCollection[Dict], *http.Response, error)

func (*DictRepository) SearchIds

func (t *DictRepository) SearchIds(ctx ApiContext, criteria Criteria) (*SearchIdsResponse, *http.Response, error)

func (*DictRepository) Upsert

func (t *DictRepository) Upsert(ctx ApiContext, entity []Dict) (*http.Response, error)

type DictTranslation

type DictTranslation struct {
	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	Description string `json:"description,omitempty"`

	Dict *Dict `json:"dict,omitempty"`

	DictId string `json:"dictId,omitempty"`

	Label string `json:"label,omitempty"`

	Language *Language `json:"language,omitempty"`

	LanguageId string `json:"languageId,omitempty"`

	Position float64 `json:"position,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type DictTranslationRepository

type DictTranslationRepository struct {
	*GenericRepository[DictTranslation]
}

func NewDictTranslationRepository

func NewDictTranslationRepository(client *Client) *DictTranslationRepository

func (*DictTranslationRepository) Delete

func (t *DictTranslationRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*DictTranslationRepository) Search

func (*DictTranslationRepository) SearchAll

func (*DictTranslationRepository) SearchIds

func (*DictTranslationRepository) Upsert

type EntityCollection

type EntityCollection[T any] struct {
	Total        int64       `json:"total"`
	Aggregations interface{} `json:"aggregations"`
	Data         []T         `json:"data"`
}

type ErrorDetail

type ErrorDetail struct {
	Code   string `json:"code"`
	Status string `json:"status"`
	Title  string `json:"title"`
	Detail string `json:"detail"`
}

type ErrorResponse

type ErrorResponse struct {
	Response *http.Response
	Content  string
	Errors   []ErrorDetail `json:"errors"`
}

func (ErrorResponse) Error

func (r ErrorResponse) Error() string

type ExtensionDetail

type ExtensionDetail struct {
	Extensions             []interface{} `json:"extensions"`
	Id                     interface{}   `json:"id"`
	LocalId                string        `json:"localId"`
	Name                   string        `json:"name"`
	Label                  string        `json:"label"`
	Description            string        `json:"description"`
	ShortDescription       interface{}   `json:"shortDescription"`
	ProducerName           string        `json:"producerName"`
	License                string        `json:"license"`
	Version                string        `json:"version"`
	LatestVersion          string        `json:"latestVersion"`
	Languages              []interface{} `json:"languages"`
	Rating                 interface{}   `json:"rating"`
	NumberOfRatings        int           `json:"numberOfRatings"`
	Variants               []interface{} `json:"variants"`
	Faq                    []interface{} `json:"faq"`
	Binaries               []interface{} `json:"binaries"`
	Images                 []interface{} `json:"images"`
	Icon                   interface{}   `json:"icon"`
	IconRaw                *string       `json:"iconRaw"`
	Categories             []interface{} `json:"categories"`
	Permissions            interface{}   `json:"permissions"`
	Active                 bool          `json:"active"`
	Type                   string        `json:"type"`
	IsTheme                bool          `json:"isTheme"`
	Configurable           bool          `json:"configurable"`
	PrivacyPolicyExtension interface{}   `json:"privacyPolicyExtension"`
	StoreLicense           interface{}   `json:"storeLicense"`
	StoreExtension         interface{}   `json:"storeExtension"`
	InstalledAt            *struct {
		Date         string `json:"date"`
		TimezoneType int    `json:"timezone_type"`
		Timezone     string `json:"timezone"`
	} `json:"installedAt"`
	UpdatedAt    interface{}   `json:"updatedAt"`
	Notices      []interface{} `json:"notices"`
	Source       string        `json:"source"`
	UpdateSource string        `json:"updateSource"`
}

func (ExtensionDetail) IsPlugin

func (e ExtensionDetail) IsPlugin() bool

func (ExtensionDetail) IsUpdateAble

func (e ExtensionDetail) IsUpdateAble() bool

func (ExtensionDetail) Status

func (e ExtensionDetail) Status() string

type ExtensionList

type ExtensionList []*ExtensionDetail

func (ExtensionList) FilterByUpdateable

func (l ExtensionList) FilterByUpdateable() ExtensionList

func (ExtensionList) GetByName

func (l ExtensionList) GetByName(name string) *ExtensionDetail

type ExtensionManagerService

type ExtensionManagerService ClientService

func (ExtensionManagerService) ActivateExtension

func (e ExtensionManagerService) ActivateExtension(ctx ApiContext, extType, name string) (*http.Response, error)

func (ExtensionManagerService) DeactivateExtension

func (e ExtensionManagerService) DeactivateExtension(ctx ApiContext, extType, name string) (*http.Response, error)

func (ExtensionManagerService) DownloadExtension

func (e ExtensionManagerService) DownloadExtension(ctx ApiContext, name string) (*http.Response, error)

func (ExtensionManagerService) InstallExtension

func (e ExtensionManagerService) InstallExtension(ctx ApiContext, extType, name string) (*http.Response, error)

func (ExtensionManagerService) ListAvailableExtensions

func (e ExtensionManagerService) ListAvailableExtensions(ctx ApiContext) (ExtensionList, *http.Response, error)

func (ExtensionManagerService) Refresh

func (ExtensionManagerService) RemoveExtension

func (e ExtensionManagerService) RemoveExtension(ctx ApiContext, extType, name string) (*http.Response, error)

func (ExtensionManagerService) UninstallExtension

func (e ExtensionManagerService) UninstallExtension(ctx ApiContext, extType, name string) (*http.Response, error)

func (ExtensionManagerService) UpdateExtension

func (e ExtensionManagerService) UpdateExtension(ctx ApiContext, extType, name string) (*http.Response, error)

func (ExtensionManagerService) UploadExtension

func (e ExtensionManagerService) UploadExtension(ctx ApiContext, extensionZip io.Reader) (*http.Response, error)

func (ExtensionManagerService) UploadExtensionUpdateToCloud

func (e ExtensionManagerService) UploadExtensionUpdateToCloud(ctx ApiContext, extensionName string, extensionZip io.Reader) (*http.Response, error)

type Flow

type Flow struct {
	Active bool `json:"active,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	Description string `json:"description,omitempty"`

	EventName string `json:"eventName,omitempty"`

	Id string `json:"id,omitempty"`

	Invalid bool `json:"invalid,omitempty"`

	Name string `json:"name,omitempty"`

	Payload interface{} `json:"payload,omitempty"`

	Priority float64 `json:"priority,omitempty"`

	Sequences []FlowSequence `json:"sequences,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type FlowRepository

type FlowRepository struct {
	*GenericRepository[Flow]
}

func NewFlowRepository

func NewFlowRepository(client *Client) *FlowRepository

func (*FlowRepository) Delete

func (t *FlowRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*FlowRepository) Search

func (t *FlowRepository) Search(ctx ApiContext, criteria Criteria) (*EntityCollection[Flow], *http.Response, error)

func (*FlowRepository) SearchAll

func (t *FlowRepository) SearchAll(ctx ApiContext, criteria Criteria) (*EntityCollection[Flow], *http.Response, error)

func (*FlowRepository) SearchIds

func (t *FlowRepository) SearchIds(ctx ApiContext, criteria Criteria) (*SearchIdsResponse, *http.Response, error)

func (*FlowRepository) Upsert

func (t *FlowRepository) Upsert(ctx ApiContext, entity []Flow) (*http.Response, error)

type FlowSequence

type FlowSequence struct {
	ActionName string `json:"actionName,omitempty"`

	Children []FlowSequence `json:"children,omitempty"`

	Config interface{} `json:"config,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	DisplayGroup float64 `json:"displayGroup,omitempty"`

	Flow *Flow `json:"flow,omitempty"`

	FlowId string `json:"flowId,omitempty"`

	Id string `json:"id,omitempty"`

	Parent *FlowSequence `json:"parent,omitempty"`

	ParentId string `json:"parentId,omitempty"`

	Position float64 `json:"position,omitempty"`

	Rule *Rule `json:"rule,omitempty"`

	RuleId string `json:"ruleId,omitempty"`

	TrueCase bool `json:"trueCase,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type FlowSequenceRepository

type FlowSequenceRepository struct {
	*GenericRepository[FlowSequence]
}

func NewFlowSequenceRepository

func NewFlowSequenceRepository(client *Client) *FlowSequenceRepository

func (*FlowSequenceRepository) Delete

func (t *FlowSequenceRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*FlowSequenceRepository) Search

func (*FlowSequenceRepository) SearchAll

func (*FlowSequenceRepository) SearchIds

func (*FlowSequenceRepository) Upsert

func (t *FlowSequenceRepository) Upsert(ctx ApiContext, entity []FlowSequence) (*http.Response, error)

type FlowTemplate

type FlowTemplate struct {
	Config interface{} `json:"config,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	Id string `json:"id,omitempty"`

	Name string `json:"name,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type FlowTemplateRepository

type FlowTemplateRepository struct {
	*GenericRepository[FlowTemplate]
}

func NewFlowTemplateRepository

func NewFlowTemplateRepository(client *Client) *FlowTemplateRepository

func (*FlowTemplateRepository) Delete

func (t *FlowTemplateRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*FlowTemplateRepository) Search

func (*FlowTemplateRepository) SearchAll

func (*FlowTemplateRepository) SearchIds

func (*FlowTemplateRepository) Upsert

func (t *FlowTemplateRepository) Upsert(ctx ApiContext, entity []FlowTemplate) (*http.Response, error)

type GenericRepository

type GenericRepository[T any] struct {
	Client *Client
}

func NewGenericRepository

func NewGenericRepository[T any](client *Client) *GenericRepository[T]

func (*GenericRepository[T]) Delete

func (r *GenericRepository[T]) Delete(ctx ApiContext, ids []string, entityName string) (*http.Response, error)

func (*GenericRepository[T]) Search

func (r *GenericRepository[T]) Search(ctx ApiContext, criteria Criteria, entityName string) (*EntityCollection[T], *http.Response, error)

func (*GenericRepository[T]) SearchIds

func (r *GenericRepository[T]) SearchIds(ctx ApiContext, criteria Criteria, entityName string) (*SearchIdsResponse, *http.Response, error)

func (*GenericRepository[T]) Upsert

func (r *GenericRepository[T]) Upsert(ctx ApiContext, entity []T, entityName string) (*http.Response, error)

type ImportExportFile

type ImportExportFile struct {
	AccessToken string `json:"accessToken,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	ExpireDate time.Time `json:"expireDate,omitempty"`

	Id string `json:"id,omitempty"`

	Log *ImportExportLog `json:"log,omitempty"`

	OriginalName string `json:"originalName,omitempty"`

	Path string `json:"path,omitempty"`

	Size float64 `json:"size,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type ImportExportFileRepository

type ImportExportFileRepository struct {
	*GenericRepository[ImportExportFile]
}

func NewImportExportFileRepository

func NewImportExportFileRepository(client *Client) *ImportExportFileRepository

func (*ImportExportFileRepository) Delete

func (t *ImportExportFileRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*ImportExportFileRepository) Search

func (*ImportExportFileRepository) SearchAll

func (*ImportExportFileRepository) SearchIds

func (*ImportExportFileRepository) Upsert

type ImportExportLog

type ImportExportLog struct {
	Activity string `json:"activity,omitempty"`

	Config interface{} `json:"config,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	FailedImportLog *ImportExportLog `json:"failedImportLog,omitempty"`

	File *ImportExportFile `json:"file,omitempty"`

	FileId string `json:"fileId,omitempty"`

	Id string `json:"id,omitempty"`

	InvalidRecordsLog *ImportExportLog `json:"invalidRecordsLog,omitempty"`

	InvalidRecordsLogId string `json:"invalidRecordsLogId,omitempty"`

	Profile *ImportExportProfile `json:"profile,omitempty"`

	ProfileId string `json:"profileId,omitempty"`

	ProfileName string `json:"profileName,omitempty"`

	Records float64 `json:"records,omitempty"`

	Result interface{} `json:"result,omitempty"`

	State string `json:"state,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`

	User *User `json:"user,omitempty"`

	UserId string `json:"userId,omitempty"`

	Username string `json:"username,omitempty"`
}

type ImportExportLogRepository

type ImportExportLogRepository struct {
	*GenericRepository[ImportExportLog]
}

func NewImportExportLogRepository

func NewImportExportLogRepository(client *Client) *ImportExportLogRepository

func (*ImportExportLogRepository) Delete

func (t *ImportExportLogRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*ImportExportLogRepository) Search

func (*ImportExportLogRepository) SearchAll

func (*ImportExportLogRepository) SearchIds

func (*ImportExportLogRepository) Upsert

type ImportExportProfile

type ImportExportProfile struct {
	Config interface{} `json:"config,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	Delimiter string `json:"delimiter,omitempty"`

	Enclosure string `json:"enclosure,omitempty"`

	FileType string `json:"fileType,omitempty"`

	Id string `json:"id,omitempty"`

	ImportExportLogs []ImportExportLog `json:"importExportLogs,omitempty"`

	Mapping interface{} `json:"mapping,omitempty"`

	SourceEntity string `json:"sourceEntity,omitempty"`

	SystemDefault bool `json:"systemDefault,omitempty"`

	TechnicalName string `json:"technicalName,omitempty"`

	Type string `json:"type,omitempty"`

	UpdateBy interface{} `json:"updateBy,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type ImportExportProfileRepository

type ImportExportProfileRepository struct {
	*GenericRepository[ImportExportProfile]
}

func NewImportExportProfileRepository

func NewImportExportProfileRepository(client *Client) *ImportExportProfileRepository

func (*ImportExportProfileRepository) Delete

func (*ImportExportProfileRepository) Search

func (*ImportExportProfileRepository) SearchAll

func (*ImportExportProfileRepository) SearchIds

func (*ImportExportProfileRepository) Upsert

type InfoResponse

type InfoResponse struct {
	Version         string `json:"version"`
	VersionRevision string `json:"versionRevision"`
	AdminWorker     struct {
		EnableAdminWorker bool     `json:"enableAdminWorker"`
		Transports        []string `json:"transports"`
	} `json:"adminWorker"`
	Bundles  map[string]infoResponseBundle `json:"bundles"`
	Settings struct {
		EnableURLFeature bool `json:"enableUrlFeature"`
	} `json:"settings"`
}

func (InfoResponse) IsCloudShop

func (r InfoResponse) IsCloudShop() bool

type InfoService

type InfoService ClientService

func (InfoService) Info

type Integration

type Integration struct {
	AccessKey string `json:"accessKey,omitempty"`

	AclRoles []AclRole `json:"aclRoles,omitempty"`

	Admin bool `json:"admin,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	DeletedAt time.Time `json:"deletedAt,omitempty"`

	Id string `json:"id,omitempty"`

	Label string `json:"label,omitempty"`

	LastUsageAt time.Time `json:"lastUsageAt,omitempty"`

	SecretAccessKey interface{} `json:"secretAccessKey,omitempty"`

	StateMachineHistoryEntries []StateMachineHistory `json:"stateMachineHistoryEntries,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type IntegrationCredentials

type IntegrationCredentials struct {
	ClientId     string
	ClientSecret string
	Scopes       []string
}

func NewIntegrationCredentials

func NewIntegrationCredentials(clientId, clientSecret string, scopes []string) IntegrationCredentials

func (IntegrationCredentials) GetTokenSource

func (c IntegrationCredentials) GetTokenSource(ctx context.Context, tokenURL string) (oauth2.TokenSource, error)

type IntegrationRepository

type IntegrationRepository struct {
	*GenericRepository[Integration]
}

func NewIntegrationRepository

func NewIntegrationRepository(client *Client) *IntegrationRepository

func (*IntegrationRepository) Delete

func (t *IntegrationRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*IntegrationRepository) Search

func (*IntegrationRepository) SearchAll

func (*IntegrationRepository) SearchIds

func (t *IntegrationRepository) SearchIds(ctx ApiContext, criteria Criteria) (*SearchIdsResponse, *http.Response, error)

func (*IntegrationRepository) Upsert

func (t *IntegrationRepository) Upsert(ctx ApiContext, entity []Integration) (*http.Response, error)

type IntegrationRole

type IntegrationRole struct {
	AclRoleId string `json:"aclRoleId,omitempty"`

	Integration *Integration `json:"integration,omitempty"`

	IntegrationId string `json:"integrationId,omitempty"`

	Role *AclRole `json:"role,omitempty"`
}

type IntegrationRoleRepository

type IntegrationRoleRepository struct {
	*GenericRepository[IntegrationRole]
}

func NewIntegrationRoleRepository

func NewIntegrationRoleRepository(client *Client) *IntegrationRoleRepository

func (*IntegrationRoleRepository) Delete

func (t *IntegrationRoleRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*IntegrationRoleRepository) Search

func (*IntegrationRoleRepository) SearchAll

func (*IntegrationRoleRepository) SearchIds

func (*IntegrationRoleRepository) Upsert

type LandingPage

type LandingPage struct {
	Active bool `json:"active,omitempty"`

	Channels []Channel `json:"channels,omitempty"`

	CmsPage *CmsPage `json:"cmsPage,omitempty"`

	CmsPageId string `json:"cmsPageId,omitempty"`

	CmsPageVersionId string `json:"cmsPageVersionId,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	Id string `json:"id,omitempty"`

	Keywords string `json:"keywords,omitempty"`

	MetaDescription string `json:"metaDescription,omitempty"`

	MetaTitle string `json:"metaTitle,omitempty"`

	Name string `json:"name,omitempty"`

	SlotConfig interface{} `json:"slotConfig,omitempty"`

	Tags []Tag `json:"tags,omitempty"`

	Translated interface{} `json:"translated,omitempty"`

	Translations []LandingPageTranslation `json:"translations,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`

	Url string `json:"url,omitempty"`

	VersionId string `json:"versionId,omitempty"`
}

type LandingPageChannel

type LandingPageChannel struct {
	Channel *Channel `json:"channel,omitempty"`

	ChannelId string `json:"channelId,omitempty"`

	LandingPage *LandingPage `json:"landingPage,omitempty"`

	LandingPageId string `json:"landingPageId,omitempty"`

	LandingPageVersionId string `json:"landingPageVersionId,omitempty"`
}

type LandingPageChannelRepository

type LandingPageChannelRepository struct {
	*GenericRepository[LandingPageChannel]
}

func NewLandingPageChannelRepository

func NewLandingPageChannelRepository(client *Client) *LandingPageChannelRepository

func (*LandingPageChannelRepository) Delete

func (*LandingPageChannelRepository) Search

func (*LandingPageChannelRepository) SearchAll

func (*LandingPageChannelRepository) SearchIds

func (*LandingPageChannelRepository) Upsert

type LandingPageRepository

type LandingPageRepository struct {
	*GenericRepository[LandingPage]
}

func NewLandingPageRepository

func NewLandingPageRepository(client *Client) *LandingPageRepository

func (*LandingPageRepository) Delete

func (t *LandingPageRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*LandingPageRepository) Search

func (*LandingPageRepository) SearchAll

func (*LandingPageRepository) SearchIds

func (t *LandingPageRepository) SearchIds(ctx ApiContext, criteria Criteria) (*SearchIdsResponse, *http.Response, error)

func (*LandingPageRepository) Upsert

func (t *LandingPageRepository) Upsert(ctx ApiContext, entity []LandingPage) (*http.Response, error)

type LandingPageTag

type LandingPageTag struct {
	LandingPage *LandingPage `json:"landingPage,omitempty"`

	LandingPageId string `json:"landingPageId,omitempty"`

	LandingPageVersionId string `json:"landingPageVersionId,omitempty"`

	Tag *Tag `json:"tag,omitempty"`

	TagId string `json:"tagId,omitempty"`
}

type LandingPageTagRepository

type LandingPageTagRepository struct {
	*GenericRepository[LandingPageTag]
}

func NewLandingPageTagRepository

func NewLandingPageTagRepository(client *Client) *LandingPageTagRepository

func (*LandingPageTagRepository) Delete

func (t *LandingPageTagRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*LandingPageTagRepository) Search

func (*LandingPageTagRepository) SearchAll

func (*LandingPageTagRepository) SearchIds

func (*LandingPageTagRepository) Upsert

type LandingPageTranslation

type LandingPageTranslation struct {
	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	Keywords string `json:"keywords,omitempty"`

	LandingPage *LandingPage `json:"landingPage,omitempty"`

	LandingPageId string `json:"landingPageId,omitempty"`

	LandingPageVersionId string `json:"landingPageVersionId,omitempty"`

	Language *Language `json:"language,omitempty"`

	LanguageId string `json:"languageId,omitempty"`

	MetaDescription string `json:"metaDescription,omitempty"`

	MetaTitle string `json:"metaTitle,omitempty"`

	Name string `json:"name,omitempty"`

	SlotConfig interface{} `json:"slotConfig,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`

	Url string `json:"url,omitempty"`
}

type LandingPageTranslationRepository

type LandingPageTranslationRepository struct {
	*GenericRepository[LandingPageTranslation]
}

func NewLandingPageTranslationRepository

func NewLandingPageTranslationRepository(client *Client) *LandingPageTranslationRepository

func (*LandingPageTranslationRepository) Delete

func (*LandingPageTranslationRepository) Search

func (*LandingPageTranslationRepository) SearchAll

func (*LandingPageTranslationRepository) SearchIds

func (*LandingPageTranslationRepository) Upsert

type Language

type Language struct {
	Active bool `json:"active,omitempty"`

	ChannelDefaultAssignments []Channel `json:"channelDefaultAssignments,omitempty"`

	ChannelDomains []ChannelDomain `json:"channelDomains,omitempty"`

	ChannelTranslations []ChannelTranslation `json:"channelTranslations,omitempty"`

	ChannelTypeTranslations []ChannelTypeTranslation `json:"channelTypeTranslations,omitempty"`

	Channels []Channel `json:"channels,omitempty"`

	Children []Language `json:"children,omitempty"`

	CountryStateTranslations []CountryStateTranslation `json:"countryStateTranslations,omitempty"`

	CountryTranslations []CountryTranslation `json:"countryTranslations,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	CurrencyTranslations []CurrencyTranslation `json:"currencyTranslations,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	CustomerGroupTranslations []CustomerGroupTranslation `json:"customerGroupTranslations,omitempty"`

	Customers []Customer `json:"customers,omitempty"`

	Id string `json:"id,omitempty"`

	Locale *Locale `json:"locale,omitempty"`

	LocaleId string `json:"localeId,omitempty"`

	LocaleTranslations []LocaleTranslation `json:"localeTranslations,omitempty"`

	MediaTranslations []MediaTranslation `json:"mediaTranslations,omitempty"`

	Name string `json:"name,omitempty"`

	NumberRangeTranslations []NumberRangeTranslation `json:"numberRangeTranslations,omitempty"`

	NumberRangeTypeTranslations []NumberRangeTypeTranslation `json:"numberRangeTypeTranslations,omitempty"`

	Orders []Order `json:"orders,omitempty"`

	Parent *Language `json:"parent,omitempty"`

	ParentId string `json:"parentId,omitempty"`

	PaymentMethodTranslations []PaymentMethodTranslation `json:"paymentMethodTranslations,omitempty"`

	PluginTranslations []PluginTranslation `json:"pluginTranslations,omitempty"`

	ProductTranslations []ProductTranslation `json:"productTranslations,omitempty"`

	PropertyGroupOptionTranslations []PropertyGroupOptionTranslation `json:"propertyGroupOptionTranslations,omitempty"`

	PropertyGroupTranslations []PropertyGroupTranslation `json:"propertyGroupTranslations,omitempty"`

	StateMachineStateTranslations []StateMachineStateTranslation `json:"stateMachineStateTranslations,omitempty"`

	StateMachineTranslations []StateMachineTranslation `json:"stateMachineTranslations,omitempty"`

	ThemeTranslations []ThemeTranslation `json:"themeTranslations,omitempty"`

	TranslationCode *Locale `json:"translationCode,omitempty"`

	TranslationCodeId string `json:"translationCodeId,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type LanguageRepository

type LanguageRepository struct {
	*GenericRepository[Language]
}

func NewLanguageRepository

func NewLanguageRepository(client *Client) *LanguageRepository

func (*LanguageRepository) Delete

func (t *LanguageRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*LanguageRepository) Search

func (*LanguageRepository) SearchAll

func (*LanguageRepository) SearchIds

func (t *LanguageRepository) SearchIds(ctx ApiContext, criteria Criteria) (*SearchIdsResponse, *http.Response, error)

func (*LanguageRepository) Upsert

func (t *LanguageRepository) Upsert(ctx ApiContext, entity []Language) (*http.Response, error)

type Locale

type Locale struct {
	Code string `json:"code,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	Id string `json:"id,omitempty"`

	Languages []Language `json:"languages,omitempty"`

	Name string `json:"name,omitempty"`

	Territory string `json:"territory,omitempty"`

	Translated interface{} `json:"translated,omitempty"`

	Translations []LocaleTranslation `json:"translations,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`

	Users []User `json:"users,omitempty"`
}

type LocaleRepository

type LocaleRepository struct {
	*GenericRepository[Locale]
}

func NewLocaleRepository

func NewLocaleRepository(client *Client) *LocaleRepository

func (*LocaleRepository) Delete

func (t *LocaleRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*LocaleRepository) Search

func (*LocaleRepository) SearchAll

func (t *LocaleRepository) SearchAll(ctx ApiContext, criteria Criteria) (*EntityCollection[Locale], *http.Response, error)

func (*LocaleRepository) SearchIds

func (t *LocaleRepository) SearchIds(ctx ApiContext, criteria Criteria) (*SearchIdsResponse, *http.Response, error)

func (*LocaleRepository) Upsert

func (t *LocaleRepository) Upsert(ctx ApiContext, entity []Locale) (*http.Response, error)

type LocaleTranslation

type LocaleTranslation struct {
	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	Language *Language `json:"language,omitempty"`

	LanguageId string `json:"languageId,omitempty"`

	Locale *Locale `json:"locale,omitempty"`

	LocaleId string `json:"localeId,omitempty"`

	Name string `json:"name,omitempty"`

	Territory string `json:"territory,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type LocaleTranslationRepository

type LocaleTranslationRepository struct {
	*GenericRepository[LocaleTranslation]
}

func NewLocaleTranslationRepository

func NewLocaleTranslationRepository(client *Client) *LocaleTranslationRepository

func (*LocaleTranslationRepository) Delete

func (t *LocaleTranslationRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*LocaleTranslationRepository) Search

func (*LocaleTranslationRepository) SearchAll

func (*LocaleTranslationRepository) SearchIds

func (*LocaleTranslationRepository) Upsert

type LogEntry

type LogEntry struct {
	Channel string `json:"channel,omitempty"`

	Context interface{} `json:"context,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	Extra interface{} `json:"extra,omitempty"`

	Id string `json:"id,omitempty"`

	Level float64 `json:"level,omitempty"`

	Message string `json:"message,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type LogEntryRepository

type LogEntryRepository struct {
	*GenericRepository[LogEntry]
}

func NewLogEntryRepository

func NewLogEntryRepository(client *Client) *LogEntryRepository

func (*LogEntryRepository) Delete

func (t *LogEntryRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*LogEntryRepository) Search

func (*LogEntryRepository) SearchAll

func (*LogEntryRepository) SearchIds

func (t *LogEntryRepository) SearchIds(ctx ApiContext, criteria Criteria) (*SearchIdsResponse, *http.Response, error)

func (*LogEntryRepository) Upsert

func (t *LogEntryRepository) Upsert(ctx ApiContext, entity []LogEntry) (*http.Response, error)

type MainCategory

type MainCategory struct {
	Category *Category `json:"category,omitempty"`

	CategoryId string `json:"categoryId,omitempty"`

	CategoryVersionId string `json:"categoryVersionId,omitempty"`

	Channel *Channel `json:"channel,omitempty"`

	ChannelId string `json:"channelId,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	Id string `json:"id,omitempty"`

	Product *Product `json:"product,omitempty"`

	ProductId string `json:"productId,omitempty"`

	ProductVersionId string `json:"productVersionId,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type MainCategoryRepository

type MainCategoryRepository struct {
	*GenericRepository[MainCategory]
}

func NewMainCategoryRepository

func NewMainCategoryRepository(client *Client) *MainCategoryRepository

func (*MainCategoryRepository) Delete

func (t *MainCategoryRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*MainCategoryRepository) Search

func (*MainCategoryRepository) SearchAll

func (*MainCategoryRepository) SearchIds

func (*MainCategoryRepository) Upsert

func (t *MainCategoryRepository) Upsert(ctx ApiContext, entity []MainCategory) (*http.Response, error)

type Media

type Media struct {
	Alt string `json:"alt,omitempty"`

	AvatarCustomers []Customer `json:"avatarCustomers,omitempty"`

	AvatarUsers []User `json:"avatarUsers,omitempty"`

	Config interface{} `json:"config,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	FileExtension string `json:"fileExtension,omitempty"`

	FileHash string `json:"fileHash,omitempty"`

	FileName string `json:"fileName,omitempty"`

	FileSize float64 `json:"fileSize,omitempty"`

	HasFile bool `json:"hasFile,omitempty"`

	Id string `json:"id,omitempty"`

	MediaFolder *MediaFolder `json:"mediaFolder,omitempty"`

	MediaFolderId string `json:"mediaFolderId,omitempty"`

	MediaType interface{} `json:"mediaType,omitempty"`

	MediaTypeRaw interface{} `json:"mediaTypeRaw,omitempty"`

	MetaData interface{} `json:"metaData,omitempty"`

	MimeType string `json:"mimeType,omitempty"`

	OrderLineItems []OrderLineItem `json:"orderLineItems,omitempty"`

	Path string `json:"path,omitempty"`

	PaymentMethods []PaymentMethod `json:"paymentMethods,omitempty"`

	Private bool `json:"private,omitempty"`

	ProductConfiguratorSettings []ProductConfiguratorSetting `json:"productConfiguratorSettings,omitempty"`

	ProductMedia []ProductMedia `json:"productMedia,omitempty"`

	PropertyGroupOptions []PropertyGroupOption `json:"propertyGroupOptions,omitempty"`

	Tags []Tag `json:"tags,omitempty"`

	ThemeMedia []Theme `json:"themeMedia,omitempty"`

	Themes []Theme `json:"themes,omitempty"`

	Thumbnails []MediaThumbnail `json:"thumbnails,omitempty"`

	ThumbnailsRo interface{} `json:"thumbnailsRo,omitempty"`

	Title string `json:"title,omitempty"`

	Translated interface{} `json:"translated,omitempty"`

	Translations []MediaTranslation `json:"translations,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`

	UploadedAt time.Time `json:"uploadedAt,omitempty"`

	Url string `json:"url,omitempty"`

	User *User `json:"user,omitempty"`

	UserId string `json:"userId,omitempty"`
}

type MediaDefaultFolder

type MediaDefaultFolder struct {
	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	Entity string `json:"entity,omitempty"`

	Folder *MediaFolder `json:"folder,omitempty"`

	Id string `json:"id,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type MediaDefaultFolderRepository

type MediaDefaultFolderRepository struct {
	*GenericRepository[MediaDefaultFolder]
}

func NewMediaDefaultFolderRepository

func NewMediaDefaultFolderRepository(client *Client) *MediaDefaultFolderRepository

func (*MediaDefaultFolderRepository) Delete

func (*MediaDefaultFolderRepository) Search

func (*MediaDefaultFolderRepository) SearchAll

func (*MediaDefaultFolderRepository) SearchIds

func (*MediaDefaultFolderRepository) Upsert

type MediaFolder

type MediaFolder struct {
	ChildCount float64 `json:"childCount,omitempty"`

	Children []MediaFolder `json:"children,omitempty"`

	Configuration *MediaFolderConfiguration `json:"configuration,omitempty"`

	ConfigurationId string `json:"configurationId,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	DefaultFolder *MediaDefaultFolder `json:"defaultFolder,omitempty"`

	DefaultFolderId string `json:"defaultFolderId,omitempty"`

	Id string `json:"id,omitempty"`

	Media []Media `json:"media,omitempty"`

	Name string `json:"name,omitempty"`

	Parent *MediaFolder `json:"parent,omitempty"`

	ParentId string `json:"parentId,omitempty"`

	Path string `json:"path,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`

	UseParentConfiguration bool `json:"useParentConfiguration,omitempty"`
}

type MediaFolderConfiguration

type MediaFolderConfiguration struct {
	CreateThumbnails bool `json:"createThumbnails,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	Id string `json:"id,omitempty"`

	KeepAspectRatio bool `json:"keepAspectRatio,omitempty"`

	MediaFolders []MediaFolder `json:"mediaFolders,omitempty"`

	MediaThumbnailSizes []MediaThumbnailSize `json:"mediaThumbnailSizes,omitempty"`

	MediaThumbnailSizesRo interface{} `json:"mediaThumbnailSizesRo,omitempty"`

	NoAssociation bool `json:"noAssociation,omitempty"`

	Private bool `json:"private,omitempty"`

	ThumbnailQuality float64 `json:"thumbnailQuality,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type MediaFolderConfigurationMediaThumbnailSize

type MediaFolderConfigurationMediaThumbnailSize struct {
	MediaFolderConfiguration *MediaFolderConfiguration `json:"mediaFolderConfiguration,omitempty"`

	MediaFolderConfigurationId string `json:"mediaFolderConfigurationId,omitempty"`

	MediaThumbnailSize *MediaThumbnailSize `json:"mediaThumbnailSize,omitempty"`

	MediaThumbnailSizeId string `json:"mediaThumbnailSizeId,omitempty"`
}

type MediaFolderConfigurationMediaThumbnailSizeRepository

type MediaFolderConfigurationMediaThumbnailSizeRepository struct {
	*GenericRepository[MediaFolderConfigurationMediaThumbnailSize]
}

func NewMediaFolderConfigurationMediaThumbnailSizeRepository

func NewMediaFolderConfigurationMediaThumbnailSizeRepository(client *Client) *MediaFolderConfigurationMediaThumbnailSizeRepository

func (*MediaFolderConfigurationMediaThumbnailSizeRepository) Delete

func (*MediaFolderConfigurationMediaThumbnailSizeRepository) Search

func (*MediaFolderConfigurationMediaThumbnailSizeRepository) SearchAll

func (*MediaFolderConfigurationMediaThumbnailSizeRepository) SearchIds

func (*MediaFolderConfigurationMediaThumbnailSizeRepository) Upsert

type MediaFolderConfigurationRepository

type MediaFolderConfigurationRepository struct {
	*GenericRepository[MediaFolderConfiguration]
}

func NewMediaFolderConfigurationRepository

func NewMediaFolderConfigurationRepository(client *Client) *MediaFolderConfigurationRepository

func (*MediaFolderConfigurationRepository) Delete

func (*MediaFolderConfigurationRepository) Search

func (*MediaFolderConfigurationRepository) SearchAll

func (*MediaFolderConfigurationRepository) SearchIds

func (*MediaFolderConfigurationRepository) Upsert

type MediaFolderRepository

type MediaFolderRepository struct {
	*GenericRepository[MediaFolder]
}

func NewMediaFolderRepository

func NewMediaFolderRepository(client *Client) *MediaFolderRepository

func (*MediaFolderRepository) Delete

func (t *MediaFolderRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*MediaFolderRepository) Search

func (*MediaFolderRepository) SearchAll

func (*MediaFolderRepository) SearchIds

func (t *MediaFolderRepository) SearchIds(ctx ApiContext, criteria Criteria) (*SearchIdsResponse, *http.Response, error)

func (*MediaFolderRepository) Upsert

func (t *MediaFolderRepository) Upsert(ctx ApiContext, entity []MediaFolder) (*http.Response, error)

type MediaRepository

type MediaRepository struct {
	*GenericRepository[Media]
}

func NewMediaRepository

func NewMediaRepository(client *Client) *MediaRepository

func (*MediaRepository) Delete

func (t *MediaRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*MediaRepository) Search

func (t *MediaRepository) Search(ctx ApiContext, criteria Criteria) (*EntityCollection[Media], *http.Response, error)

func (*MediaRepository) SearchAll

func (t *MediaRepository) SearchAll(ctx ApiContext, criteria Criteria) (*EntityCollection[Media], *http.Response, error)

func (*MediaRepository) SearchIds

func (t *MediaRepository) SearchIds(ctx ApiContext, criteria Criteria) (*SearchIdsResponse, *http.Response, error)

func (*MediaRepository) Upsert

func (t *MediaRepository) Upsert(ctx ApiContext, entity []Media) (*http.Response, error)

type MediaTag

type MediaTag struct {
	Media *Media `json:"media,omitempty"`

	MediaId string `json:"mediaId,omitempty"`

	Tag *Tag `json:"tag,omitempty"`

	TagId string `json:"tagId,omitempty"`
}

type MediaTagRepository

type MediaTagRepository struct {
	*GenericRepository[MediaTag]
}

func NewMediaTagRepository

func NewMediaTagRepository(client *Client) *MediaTagRepository

func (*MediaTagRepository) Delete

func (t *MediaTagRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*MediaTagRepository) Search

func (*MediaTagRepository) SearchAll

func (*MediaTagRepository) SearchIds

func (t *MediaTagRepository) SearchIds(ctx ApiContext, criteria Criteria) (*SearchIdsResponse, *http.Response, error)

func (*MediaTagRepository) Upsert

func (t *MediaTagRepository) Upsert(ctx ApiContext, entity []MediaTag) (*http.Response, error)

type MediaThumbnail

type MediaThumbnail struct {
	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	Height float64 `json:"height,omitempty"`

	Id string `json:"id,omitempty"`

	Media *Media `json:"media,omitempty"`

	MediaId string `json:"mediaId,omitempty"`

	MediaThumbnailSize *MediaThumbnailSize `json:"mediaThumbnailSize,omitempty"`

	MediaThumbnailSizeId string `json:"mediaThumbnailSizeId,omitempty"`

	Path string `json:"path,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`

	Url string `json:"url,omitempty"`

	Width float64 `json:"width,omitempty"`
}

type MediaThumbnailRepository

type MediaThumbnailRepository struct {
	*GenericRepository[MediaThumbnail]
}

func NewMediaThumbnailRepository

func NewMediaThumbnailRepository(client *Client) *MediaThumbnailRepository

func (*MediaThumbnailRepository) Delete

func (t *MediaThumbnailRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*MediaThumbnailRepository) Search

func (*MediaThumbnailRepository) SearchAll

func (*MediaThumbnailRepository) SearchIds

func (*MediaThumbnailRepository) Upsert

type MediaThumbnailSize

type MediaThumbnailSize struct {
	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	Height float64 `json:"height,omitempty"`

	Id string `json:"id,omitempty"`

	MediaFolderConfigurations []MediaFolderConfiguration `json:"mediaFolderConfigurations,omitempty"`

	MediaThumbnails []MediaThumbnail `json:"mediaThumbnails,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`

	Width float64 `json:"width,omitempty"`
}

type MediaThumbnailSizeRepository

type MediaThumbnailSizeRepository struct {
	*GenericRepository[MediaThumbnailSize]
}

func NewMediaThumbnailSizeRepository

func NewMediaThumbnailSizeRepository(client *Client) *MediaThumbnailSizeRepository

func (*MediaThumbnailSizeRepository) Delete

func (*MediaThumbnailSizeRepository) Search

func (*MediaThumbnailSizeRepository) SearchAll

func (*MediaThumbnailSizeRepository) SearchIds

func (*MediaThumbnailSizeRepository) Upsert

type MediaTranslation

type MediaTranslation struct {
	Alt string `json:"alt,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	Language *Language `json:"language,omitempty"`

	LanguageId string `json:"languageId,omitempty"`

	Media *Media `json:"media,omitempty"`

	MediaId string `json:"mediaId,omitempty"`

	Title string `json:"title,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type MediaTranslationRepository

type MediaTranslationRepository struct {
	*GenericRepository[MediaTranslation]
}

func NewMediaTranslationRepository

func NewMediaTranslationRepository(client *Client) *MediaTranslationRepository

func (*MediaTranslationRepository) Delete

func (t *MediaTranslationRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*MediaTranslationRepository) Search

func (*MediaTranslationRepository) SearchAll

func (*MediaTranslationRepository) SearchIds

func (*MediaTranslationRepository) Upsert

type Navigation struct {
	Active bool `json:"active,omitempty"`

	AfterNavigationId string `json:"afterNavigationId,omitempty"`

	AfterNavigationVersionId string `json:"afterNavigationVersionId,omitempty"`

	ChildCount float64 `json:"childCount,omitempty"`

	Children []Navigation `json:"children,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	Description string `json:"description,omitempty"`

	ExternalLink string `json:"externalLink,omitempty"`

	FooterChannels []Channel `json:"footerChannels,omitempty"`

	Id string `json:"id,omitempty"`

	InternalLink string `json:"internalLink,omitempty"`

	Keywords string `json:"keywords,omitempty"`

	Level float64 `json:"level,omitempty"`

	LinkNewTab bool `json:"linkNewTab,omitempty"`

	LinkType string `json:"linkType,omitempty"`

	MetaDescription string `json:"metaDescription,omitempty"`

	MetaTitle string `json:"metaTitle,omitempty"`

	Name string `json:"name,omitempty"`

	NavigationChannels []Channel `json:"navigationChannels,omitempty"`

	Parent *Navigation `json:"parent,omitempty"`

	ParentId string `json:"parentId,omitempty"`

	ParentVersionId string `json:"parentVersionId,omitempty"`

	Path string `json:"path,omitempty"`

	ServiceChannels []Channel `json:"serviceChannels,omitempty"`

	Translated interface{} `json:"translated,omitempty"`

	Translations []NavigationTranslation `json:"translations,omitempty"`

	Type string `json:"type,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`

	VersionId string `json:"versionId,omitempty"`

	Visible bool `json:"visible,omitempty"`
}
type NavigationRepository struct {
	*GenericRepository[Navigation]
}

func NewNavigationRepository

func NewNavigationRepository(client *Client) *NavigationRepository
func (t *NavigationRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)
func (t *NavigationRepository) SearchIds(ctx ApiContext, criteria Criteria) (*SearchIdsResponse, *http.Response, error)
func (t *NavigationRepository) Upsert(ctx ApiContext, entity []Navigation) (*http.Response, error)
type NavigationTranslation struct {
	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	Description string `json:"description,omitempty"`

	ExternalLink string `json:"externalLink,omitempty"`

	InternalLink string `json:"internalLink,omitempty"`

	Keywords string `json:"keywords,omitempty"`

	Language *Language `json:"language,omitempty"`

	LanguageId string `json:"languageId,omitempty"`

	LinkNewTab bool `json:"linkNewTab,omitempty"`

	LinkType string `json:"linkType,omitempty"`

	MetaDescription string `json:"metaDescription,omitempty"`

	MetaTitle string `json:"metaTitle,omitempty"`

	Name string `json:"name,omitempty"`

	Navigation *Navigation `json:"navigation,omitempty"`

	NavigationId string `json:"navigationId,omitempty"`

	NavigationVersionId string `json:"navigationVersionId,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}
type NavigationTranslationRepository struct {
	*GenericRepository[NavigationTranslation]
}

func NewNavigationTranslationRepository

func NewNavigationTranslationRepository(client *Client) *NavigationTranslationRepository

type NumberRange

type NumberRange struct {
	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	Description string `json:"description,omitempty"`

	Global bool `json:"global,omitempty"`

	Id string `json:"id,omitempty"`

	Name string `json:"name,omitempty"`

	NumberRangeChannels []NumberRangeChannel `json:"numberRangeChannels,omitempty"`

	Pattern string `json:"pattern,omitempty"`

	Start float64 `json:"start,omitempty"`

	State *NumberRangeState `json:"state,omitempty"`

	Translated interface{} `json:"translated,omitempty"`

	Translations []NumberRangeTranslation `json:"translations,omitempty"`

	Type *NumberRangeType `json:"type,omitempty"`

	TypeId string `json:"typeId,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type NumberRangeChannel

type NumberRangeChannel struct {
	Channel *Channel `json:"channel,omitempty"`

	ChannelId string `json:"channelId,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	Id string `json:"id,omitempty"`

	NumberRange *NumberRange `json:"numberRange,omitempty"`

	NumberRangeId string `json:"numberRangeId,omitempty"`

	NumberRangeType *NumberRangeType `json:"numberRangeType,omitempty"`

	NumberRangeTypeId string `json:"numberRangeTypeId,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type NumberRangeChannelRepository

type NumberRangeChannelRepository struct {
	*GenericRepository[NumberRangeChannel]
}

func NewNumberRangeChannelRepository

func NewNumberRangeChannelRepository(client *Client) *NumberRangeChannelRepository

func (*NumberRangeChannelRepository) Delete

func (*NumberRangeChannelRepository) Search

func (*NumberRangeChannelRepository) SearchAll

func (*NumberRangeChannelRepository) SearchIds

func (*NumberRangeChannelRepository) Upsert

type NumberRangeRepository

type NumberRangeRepository struct {
	*GenericRepository[NumberRange]
}

func NewNumberRangeRepository

func NewNumberRangeRepository(client *Client) *NumberRangeRepository

func (*NumberRangeRepository) Delete

func (t *NumberRangeRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*NumberRangeRepository) Search

func (*NumberRangeRepository) SearchAll

func (*NumberRangeRepository) SearchIds

func (t *NumberRangeRepository) SearchIds(ctx ApiContext, criteria Criteria) (*SearchIdsResponse, *http.Response, error)

func (*NumberRangeRepository) Upsert

func (t *NumberRangeRepository) Upsert(ctx ApiContext, entity []NumberRange) (*http.Response, error)

type NumberRangeState

type NumberRangeState struct {
	CreatedAt time.Time `json:"createdAt,omitempty"`

	Id string `json:"id,omitempty"`

	LastValue float64 `json:"lastValue,omitempty"`

	NumberRange *NumberRange `json:"numberRange,omitempty"`

	NumberRangeId string `json:"numberRangeId,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type NumberRangeStateRepository

type NumberRangeStateRepository struct {
	*GenericRepository[NumberRangeState]
}

func NewNumberRangeStateRepository

func NewNumberRangeStateRepository(client *Client) *NumberRangeStateRepository

func (*NumberRangeStateRepository) Delete

func (t *NumberRangeStateRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*NumberRangeStateRepository) Search

func (*NumberRangeStateRepository) SearchAll

func (*NumberRangeStateRepository) SearchIds

func (*NumberRangeStateRepository) Upsert

type NumberRangeTranslation

type NumberRangeTranslation struct {
	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	Description string `json:"description,omitempty"`

	Language *Language `json:"language,omitempty"`

	LanguageId string `json:"languageId,omitempty"`

	Name string `json:"name,omitempty"`

	NumberRange *NumberRange `json:"numberRange,omitempty"`

	NumberRangeId string `json:"numberRangeId,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type NumberRangeTranslationRepository

type NumberRangeTranslationRepository struct {
	*GenericRepository[NumberRangeTranslation]
}

func NewNumberRangeTranslationRepository

func NewNumberRangeTranslationRepository(client *Client) *NumberRangeTranslationRepository

func (*NumberRangeTranslationRepository) Delete

func (*NumberRangeTranslationRepository) Search

func (*NumberRangeTranslationRepository) SearchAll

func (*NumberRangeTranslationRepository) SearchIds

func (*NumberRangeTranslationRepository) Upsert

type NumberRangeType

type NumberRangeType struct {
	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	Global bool `json:"global,omitempty"`

	Id string `json:"id,omitempty"`

	NumberRangeChannels []NumberRangeChannel `json:"numberRangeChannels,omitempty"`

	NumberRanges []NumberRange `json:"numberRanges,omitempty"`

	TechnicalName string `json:"technicalName,omitempty"`

	Translated interface{} `json:"translated,omitempty"`

	Translations []NumberRangeTypeTranslation `json:"translations,omitempty"`

	TypeName string `json:"typeName,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type NumberRangeTypeRepository

type NumberRangeTypeRepository struct {
	*GenericRepository[NumberRangeType]
}

func NewNumberRangeTypeRepository

func NewNumberRangeTypeRepository(client *Client) *NumberRangeTypeRepository

func (*NumberRangeTypeRepository) Delete

func (t *NumberRangeTypeRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*NumberRangeTypeRepository) Search

func (*NumberRangeTypeRepository) SearchAll

func (*NumberRangeTypeRepository) SearchIds

func (*NumberRangeTypeRepository) Upsert

type NumberRangeTypeTranslation

type NumberRangeTypeTranslation struct {
	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	Language *Language `json:"language,omitempty"`

	LanguageId string `json:"languageId,omitempty"`

	NumberRangeType *NumberRangeType `json:"numberRangeType,omitempty"`

	NumberRangeTypeId string `json:"numberRangeTypeId,omitempty"`

	TypeName string `json:"typeName,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type NumberRangeTypeTranslationRepository

type NumberRangeTypeTranslationRepository struct {
	*GenericRepository[NumberRangeTypeTranslation]
}

func NewNumberRangeTypeTranslationRepository

func NewNumberRangeTypeTranslationRepository(client *Client) *NumberRangeTypeTranslationRepository

func (*NumberRangeTypeTranslationRepository) Delete

func (*NumberRangeTypeTranslationRepository) Search

func (*NumberRangeTypeTranslationRepository) SearchAll

func (*NumberRangeTypeTranslationRepository) SearchIds

func (*NumberRangeTypeTranslationRepository) Upsert

type OAuthCredentials

type OAuthCredentials interface {
	GetTokenSource(ctx context.Context, tokenURL string) (oauth2.TokenSource, error)
}

type Order

type Order struct {
	AmountTotal float64 `json:"amountTotal,omitempty"`

	AutoIncrement float64 `json:"autoIncrement,omitempty"`

	Channel *Channel `json:"channel,omitempty"`

	ChannelId string `json:"channelId,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	CreatedBy *User `json:"createdBy,omitempty"`

	CreatedById string `json:"createdById,omitempty"`

	Currency *Currency `json:"currency,omitempty"`

	CurrencyFactor float64 `json:"currencyFactor,omitempty"`

	CurrencyId string `json:"currencyId,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	DeepLinkCode string `json:"deepLinkCode,omitempty"`

	Id string `json:"id,omitempty"`

	ItemRounding interface{} `json:"itemRounding,omitempty"`

	Language *Language `json:"language,omitempty"`

	LanguageId string `json:"languageId,omitempty"`

	LineItems []OrderLineItem `json:"lineItems,omitempty"`

	OrderCustomer *OrderCustomer `json:"orderCustomer,omitempty"`

	OrderDate time.Time `json:"orderDate,omitempty"`

	OrderDateTime time.Time `json:"orderDateTime,omitempty"`

	OrderNumber string `json:"orderNumber,omitempty"`

	PositionPrice float64 `json:"positionPrice,omitempty"`

	Price interface{} `json:"price,omitempty"`

	PrimaryOrderTransaction *OrderTransaction `json:"primaryOrderTransaction,omitempty"`

	PrimaryOrderTransactionId string `json:"primaryOrderTransactionId,omitempty"`

	PrimaryOrderTransactionVersionId string `json:"primaryOrderTransactionVersionId,omitempty"`

	RuleIds interface{} `json:"ruleIds,omitempty"`

	Source string `json:"source,omitempty"`

	StateId string `json:"stateId,omitempty"`

	StateMachineState *StateMachineState `json:"stateMachineState,omitempty"`

	Tags []Tag `json:"tags,omitempty"`

	TotalRounding interface{} `json:"totalRounding,omitempty"`

	Transactions []OrderTransaction `json:"transactions,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`

	UpdatedBy *User `json:"updatedBy,omitempty"`

	UpdatedById string `json:"updatedById,omitempty"`

	VersionId string `json:"versionId,omitempty"`
}

type OrderCustomer

type OrderCustomer struct {
	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	Customer *Customer `json:"customer,omitempty"`

	CustomerId string `json:"customerId,omitempty"`

	CustomerNumber string `json:"customerNumber,omitempty"`

	Email string `json:"email,omitempty"`

	Id string `json:"id,omitempty"`

	Name string `json:"name,omitempty"`

	Nickname string `json:"nickname,omitempty"`

	Order *Order `json:"order,omitempty"`

	OrderId string `json:"orderId,omitempty"`

	OrderVersionId string `json:"orderVersionId,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`

	VersionId string `json:"versionId,omitempty"`
}

type OrderCustomerRepository

type OrderCustomerRepository struct {
	*GenericRepository[OrderCustomer]
}

func NewOrderCustomerRepository

func NewOrderCustomerRepository(client *Client) *OrderCustomerRepository

func (*OrderCustomerRepository) Delete

func (t *OrderCustomerRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*OrderCustomerRepository) Search

func (*OrderCustomerRepository) SearchAll

func (*OrderCustomerRepository) SearchIds

func (*OrderCustomerRepository) Upsert

func (t *OrderCustomerRepository) Upsert(ctx ApiContext, entity []OrderCustomer) (*http.Response, error)

type OrderLineItem

type OrderLineItem struct {
	Children []OrderLineItem `json:"children,omitempty"`

	Cover *Media `json:"cover,omitempty"`

	CoverId string `json:"coverId,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	Description string `json:"description,omitempty"`

	Good bool `json:"good,omitempty"`

	Id string `json:"id,omitempty"`

	Identifier string `json:"identifier,omitempty"`

	Label string `json:"label,omitempty"`

	Order *Order `json:"order,omitempty"`

	OrderId string `json:"orderId,omitempty"`

	OrderTransactionCaptureRefundPositions []OrderTransactionCaptureRefundPosition `json:"orderTransactionCaptureRefundPositions,omitempty"`

	OrderVersionId string `json:"orderVersionId,omitempty"`

	Parent *OrderLineItem `json:"parent,omitempty"`

	ParentId string `json:"parentId,omitempty"`

	ParentVersionId string `json:"parentVersionId,omitempty"`

	Payload interface{} `json:"payload,omitempty"`

	Position float64 `json:"position,omitempty"`

	Price interface{} `json:"price,omitempty"`

	PriceDefinition interface{} `json:"priceDefinition,omitempty"`

	Product *Product `json:"product,omitempty"`

	ProductId string `json:"productId,omitempty"`

	ProductVersionId string `json:"productVersionId,omitempty"`

	Quantity float64 `json:"quantity,omitempty"`

	ReferencedId string `json:"referencedId,omitempty"`

	Removable bool `json:"removable,omitempty"`

	Stackable bool `json:"stackable,omitempty"`

	States interface{} `json:"states,omitempty"`

	TotalPrice float64 `json:"totalPrice,omitempty"`

	Type string `json:"type,omitempty"`

	UnitPrice float64 `json:"unitPrice,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`

	VersionId string `json:"versionId,omitempty"`
}

type OrderLineItemRepository

type OrderLineItemRepository struct {
	*GenericRepository[OrderLineItem]
}

func NewOrderLineItemRepository

func NewOrderLineItemRepository(client *Client) *OrderLineItemRepository

func (*OrderLineItemRepository) Delete

func (t *OrderLineItemRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*OrderLineItemRepository) Search

func (*OrderLineItemRepository) SearchAll

func (*OrderLineItemRepository) SearchIds

func (*OrderLineItemRepository) Upsert

func (t *OrderLineItemRepository) Upsert(ctx ApiContext, entity []OrderLineItem) (*http.Response, error)

type OrderRepository

type OrderRepository struct {
	*GenericRepository[Order]
}

func NewOrderRepository

func NewOrderRepository(client *Client) *OrderRepository

func (*OrderRepository) Delete

func (t *OrderRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*OrderRepository) Search

func (t *OrderRepository) Search(ctx ApiContext, criteria Criteria) (*EntityCollection[Order], *http.Response, error)

func (*OrderRepository) SearchAll

func (t *OrderRepository) SearchAll(ctx ApiContext, criteria Criteria) (*EntityCollection[Order], *http.Response, error)

func (*OrderRepository) SearchIds

func (t *OrderRepository) SearchIds(ctx ApiContext, criteria Criteria) (*SearchIdsResponse, *http.Response, error)

func (*OrderRepository) Upsert

func (t *OrderRepository) Upsert(ctx ApiContext, entity []Order) (*http.Response, error)

type OrderTag

type OrderTag struct {
	Order *Order `json:"order,omitempty"`

	OrderId string `json:"orderId,omitempty"`

	OrderVersionId string `json:"orderVersionId,omitempty"`

	Tag *Tag `json:"tag,omitempty"`

	TagId string `json:"tagId,omitempty"`
}

type OrderTagRepository

type OrderTagRepository struct {
	*GenericRepository[OrderTag]
}

func NewOrderTagRepository

func NewOrderTagRepository(client *Client) *OrderTagRepository

func (*OrderTagRepository) Delete

func (t *OrderTagRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*OrderTagRepository) Search

func (*OrderTagRepository) SearchAll

func (*OrderTagRepository) SearchIds

func (t *OrderTagRepository) SearchIds(ctx ApiContext, criteria Criteria) (*SearchIdsResponse, *http.Response, error)

func (*OrderTagRepository) Upsert

func (t *OrderTagRepository) Upsert(ctx ApiContext, entity []OrderTag) (*http.Response, error)

type OrderTransaction

type OrderTransaction struct {
	Amount interface{} `json:"amount,omitempty"`

	Captures []OrderTransactionCapture `json:"captures,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	Id string `json:"id,omitempty"`

	Order *Order `json:"order,omitempty"`

	OrderId string `json:"orderId,omitempty"`

	OrderVersionId string `json:"orderVersionId,omitempty"`

	PaymentMethod *PaymentMethod `json:"paymentMethod,omitempty"`

	PaymentMethodId string `json:"paymentMethodId,omitempty"`

	PrimaryOrder *Order `json:"primaryOrder,omitempty"`

	StateId string `json:"stateId,omitempty"`

	StateMachineState *StateMachineState `json:"stateMachineState,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`

	ValidationData interface{} `json:"validationData,omitempty"`

	VersionId string `json:"versionId,omitempty"`
}

type OrderTransactionCapture

type OrderTransactionCapture struct {
	Amount interface{} `json:"amount,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	ExternalReference string `json:"externalReference,omitempty"`

	Id string `json:"id,omitempty"`

	OrderTransactionId string `json:"orderTransactionId,omitempty"`

	OrderTransactionVersionId string `json:"orderTransactionVersionId,omitempty"`

	Refunds []OrderTransactionCaptureRefund `json:"refunds,omitempty"`

	StateId string `json:"stateId,omitempty"`

	StateMachineState *StateMachineState `json:"stateMachineState,omitempty"`

	Transaction *OrderTransaction `json:"transaction,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`

	VersionId string `json:"versionId,omitempty"`
}

type OrderTransactionCaptureRefund

type OrderTransactionCaptureRefund struct {
	Amount interface{} `json:"amount,omitempty"`

	CaptureId string `json:"captureId,omitempty"`

	CaptureVersionId string `json:"captureVersionId,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	ExternalReference string `json:"externalReference,omitempty"`

	Id string `json:"id,omitempty"`

	Positions []OrderTransactionCaptureRefundPosition `json:"positions,omitempty"`

	Reason string `json:"reason,omitempty"`

	StateId string `json:"stateId,omitempty"`

	StateMachineState *StateMachineState `json:"stateMachineState,omitempty"`

	TransactionCapture *OrderTransactionCapture `json:"transactionCapture,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`

	VersionId string `json:"versionId,omitempty"`
}

type OrderTransactionCaptureRefundPosition

type OrderTransactionCaptureRefundPosition struct {
	Amount interface{} `json:"amount,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	ExternalReference string `json:"externalReference,omitempty"`

	Id string `json:"id,omitempty"`

	OrderLineItem *OrderLineItem `json:"orderLineItem,omitempty"`

	OrderLineItemId string `json:"orderLineItemId,omitempty"`

	OrderLineItemVersionId string `json:"orderLineItemVersionId,omitempty"`

	OrderTransactionCaptureRefund *OrderTransactionCaptureRefund `json:"orderTransactionCaptureRefund,omitempty"`

	Quantity float64 `json:"quantity,omitempty"`

	Reason string `json:"reason,omitempty"`

	RefundId string `json:"refundId,omitempty"`

	RefundVersionId string `json:"refundVersionId,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`

	VersionId string `json:"versionId,omitempty"`
}

type OrderTransactionCaptureRefundPositionRepository

type OrderTransactionCaptureRefundPositionRepository struct {
	*GenericRepository[OrderTransactionCaptureRefundPosition]
}

func NewOrderTransactionCaptureRefundPositionRepository

func NewOrderTransactionCaptureRefundPositionRepository(client *Client) *OrderTransactionCaptureRefundPositionRepository

func (*OrderTransactionCaptureRefundPositionRepository) Delete

func (*OrderTransactionCaptureRefundPositionRepository) Search

func (*OrderTransactionCaptureRefundPositionRepository) SearchAll

func (*OrderTransactionCaptureRefundPositionRepository) SearchIds

func (*OrderTransactionCaptureRefundPositionRepository) Upsert

type OrderTransactionCaptureRefundRepository

type OrderTransactionCaptureRefundRepository struct {
	*GenericRepository[OrderTransactionCaptureRefund]
}

func NewOrderTransactionCaptureRefundRepository

func NewOrderTransactionCaptureRefundRepository(client *Client) *OrderTransactionCaptureRefundRepository

func (*OrderTransactionCaptureRefundRepository) Delete

func (*OrderTransactionCaptureRefundRepository) Search

func (*OrderTransactionCaptureRefundRepository) SearchAll

func (*OrderTransactionCaptureRefundRepository) SearchIds

func (*OrderTransactionCaptureRefundRepository) Upsert

type OrderTransactionCaptureRepository

type OrderTransactionCaptureRepository struct {
	*GenericRepository[OrderTransactionCapture]
}

func NewOrderTransactionCaptureRepository

func NewOrderTransactionCaptureRepository(client *Client) *OrderTransactionCaptureRepository

func (*OrderTransactionCaptureRepository) Delete

func (*OrderTransactionCaptureRepository) Search

func (*OrderTransactionCaptureRepository) SearchAll

func (*OrderTransactionCaptureRepository) SearchIds

func (*OrderTransactionCaptureRepository) Upsert

type OrderTransactionRepository

type OrderTransactionRepository struct {
	*GenericRepository[OrderTransaction]
}

func NewOrderTransactionRepository

func NewOrderTransactionRepository(client *Client) *OrderTransactionRepository

func (*OrderTransactionRepository) Delete

func (t *OrderTransactionRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*OrderTransactionRepository) Search

func (*OrderTransactionRepository) SearchAll

func (*OrderTransactionRepository) SearchIds

func (*OrderTransactionRepository) Upsert

type PasswordCredentials

type PasswordCredentials struct {
	Username string
	Password string
	Scopes   []string
}

func NewPasswordCredentials

func NewPasswordCredentials(username, password string, scopes []string) PasswordCredentials

func (PasswordCredentials) GetTokenSource

func (c PasswordCredentials) GetTokenSource(ctx context.Context, tokenURL string) (oauth2.TokenSource, error)

type PaymentMethod

type PaymentMethod struct {
	Active bool `json:"active,omitempty"`

	AfterOrderEnabled bool `json:"afterOrderEnabled,omitempty"`

	AvailabilityRule *Rule `json:"availabilityRule,omitempty"`

	AvailabilityRuleId string `json:"availabilityRuleId,omitempty"`

	ChannelDefaultAssignments []Channel `json:"channelDefaultAssignments,omitempty"`

	Channels []Channel `json:"channels,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	Customers []Customer `json:"customers,omitempty"`

	Description string `json:"description,omitempty"`

	DistinguishableName string `json:"distinguishableName,omitempty"`

	FormattedHandlerIdentifier string `json:"formattedHandlerIdentifier,omitempty"`

	HandlerIdentifier string `json:"handlerIdentifier,omitempty"`

	Id string `json:"id,omitempty"`

	Media *Media `json:"media,omitempty"`

	MediaId string `json:"mediaId,omitempty"`

	Name string `json:"name,omitempty"`

	OrderTransactions []OrderTransaction `json:"orderTransactions,omitempty"`

	Plugin *Plugin `json:"plugin,omitempty"`

	PluginId string `json:"pluginId,omitempty"`

	Position float64 `json:"position,omitempty"`

	ShortName string `json:"shortName,omitempty"`

	TechnicalName string `json:"technicalName,omitempty"`

	Translated interface{} `json:"translated,omitempty"`

	Translations []PaymentMethodTranslation `json:"translations,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type PaymentMethodRepository

type PaymentMethodRepository struct {
	*GenericRepository[PaymentMethod]
}

func NewPaymentMethodRepository

func NewPaymentMethodRepository(client *Client) *PaymentMethodRepository

func (*PaymentMethodRepository) Delete

func (t *PaymentMethodRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*PaymentMethodRepository) Search

func (*PaymentMethodRepository) SearchAll

func (*PaymentMethodRepository) SearchIds

func (*PaymentMethodRepository) Upsert

func (t *PaymentMethodRepository) Upsert(ctx ApiContext, entity []PaymentMethod) (*http.Response, error)

type PaymentMethodTranslation

type PaymentMethodTranslation struct {
	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	Description string `json:"description,omitempty"`

	DistinguishableName string `json:"distinguishableName,omitempty"`

	Language *Language `json:"language,omitempty"`

	LanguageId string `json:"languageId,omitempty"`

	Name string `json:"name,omitempty"`

	PaymentMethod *PaymentMethod `json:"paymentMethod,omitempty"`

	PaymentMethodId string `json:"paymentMethodId,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type PaymentMethodTranslationRepository

type PaymentMethodTranslationRepository struct {
	*GenericRepository[PaymentMethodTranslation]
}

func NewPaymentMethodTranslationRepository

func NewPaymentMethodTranslationRepository(client *Client) *PaymentMethodTranslationRepository

func (*PaymentMethodTranslationRepository) Delete

func (*PaymentMethodTranslationRepository) Search

func (*PaymentMethodTranslationRepository) SearchAll

func (*PaymentMethodTranslationRepository) SearchIds

func (*PaymentMethodTranslationRepository) Upsert

type Plugin

type Plugin struct {
	Active bool `json:"active,omitempty"`

	Author string `json:"author,omitempty"`

	Autoload interface{} `json:"autoload,omitempty"`

	BaseClass string `json:"baseClass,omitempty"`

	ComposerName string `json:"composerName,omitempty"`

	Copyright string `json:"copyright,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	Description string `json:"description,omitempty"`

	Icon string `json:"icon,omitempty"`

	IconRaw interface{} `json:"iconRaw,omitempty"`

	Id string `json:"id,omitempty"`

	InstalledAt time.Time `json:"installedAt,omitempty"`

	Label string `json:"label,omitempty"`

	License string `json:"license,omitempty"`

	ManagedByComposer bool `json:"managedByComposer,omitempty"`

	ManufacturerLink string `json:"manufacturerLink,omitempty"`

	Name string `json:"name,omitempty"`

	Path string `json:"path,omitempty"`

	PaymentMethods []PaymentMethod `json:"paymentMethods,omitempty"`

	SupportLink string `json:"supportLink,omitempty"`

	Translated interface{} `json:"translated,omitempty"`

	Translations []PluginTranslation `json:"translations,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`

	UpgradeVersion string `json:"upgradeVersion,omitempty"`

	UpgradedAt time.Time `json:"upgradedAt,omitempty"`

	Version string `json:"version,omitempty"`
}

type PluginRepository

type PluginRepository struct {
	*GenericRepository[Plugin]
}

func NewPluginRepository

func NewPluginRepository(client *Client) *PluginRepository

func (*PluginRepository) Delete

func (t *PluginRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*PluginRepository) Search

func (*PluginRepository) SearchAll

func (t *PluginRepository) SearchAll(ctx ApiContext, criteria Criteria) (*EntityCollection[Plugin], *http.Response, error)

func (*PluginRepository) SearchIds

func (t *PluginRepository) SearchIds(ctx ApiContext, criteria Criteria) (*SearchIdsResponse, *http.Response, error)

func (*PluginRepository) Upsert

func (t *PluginRepository) Upsert(ctx ApiContext, entity []Plugin) (*http.Response, error)

type PluginTranslation

type PluginTranslation struct {
	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	Description string `json:"description,omitempty"`

	Label string `json:"label,omitempty"`

	Language *Language `json:"language,omitempty"`

	LanguageId string `json:"languageId,omitempty"`

	ManufacturerLink string `json:"manufacturerLink,omitempty"`

	Plugin *Plugin `json:"plugin,omitempty"`

	PluginId string `json:"pluginId,omitempty"`

	SupportLink string `json:"supportLink,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type PluginTranslationRepository

type PluginTranslationRepository struct {
	*GenericRepository[PluginTranslation]
}

func NewPluginTranslationRepository

func NewPluginTranslationRepository(client *Client) *PluginTranslationRepository

func (*PluginTranslationRepository) Delete

func (t *PluginTranslationRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*PluginTranslationRepository) Search

func (*PluginTranslationRepository) SearchAll

func (*PluginTranslationRepository) SearchIds

func (*PluginTranslationRepository) Upsert

type Product

type Product struct {
	Active bool `json:"active,omitempty"`

	AutoIncrement float64 `json:"autoIncrement,omitempty"`

	Available bool `json:"available,omitempty"`

	AvailableStock float64 `json:"availableStock,omitempty"`

	CanonicalProduct *Product `json:"canonicalProduct,omitempty"`

	CanonicalProductId string `json:"canonicalProductId,omitempty"`

	CanonicalProductVersionId string `json:"canonicalProductVersionId,omitempty"`

	Categories []Category `json:"categories,omitempty"`

	CategoriesRo []Category `json:"categoriesRo,omitempty"`

	CategoryIds interface{} `json:"categoryIds,omitempty"`

	ChildCount float64 `json:"childCount,omitempty"`

	Children []Product `json:"children,omitempty"`

	CmsPage *CmsPage `json:"cmsPage,omitempty"`

	CmsPageId string `json:"cmsPageId,omitempty"`

	ConfiguratorSettings []ProductConfiguratorSetting `json:"configuratorSettings,omitempty"`

	Cover *ProductMedia `json:"cover,omitempty"`

	CoverId string `json:"coverId,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFieldSets []CustomFieldSet `json:"customFieldSets,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	Description string `json:"description,omitempty"`

	DisplayGroup string `json:"displayGroup,omitempty"`

	ExtraFields interface{} `json:"extraFields,omitempty"`

	Id string `json:"id,omitempty"`

	IsCloseout bool `json:"isCloseout,omitempty"`

	Keywords string `json:"keywords,omitempty"`

	MainCategories []MainCategory `json:"mainCategories,omitempty"`

	MaxPurchase float64 `json:"maxPurchase,omitempty"`

	Media []ProductMedia `json:"media,omitempty"`

	MetaDescription string `json:"metaDescription,omitempty"`

	MetaTitle string `json:"metaTitle,omitempty"`

	MinPurchase float64 `json:"minPurchase,omitempty"`

	Name string `json:"name,omitempty"`

	OptionIds interface{} `json:"optionIds,omitempty"`

	Options []PropertyGroupOption `json:"options,omitempty"`

	OrderLineItems []OrderLineItem `json:"orderLineItems,omitempty"`

	Parent *Product `json:"parent,omitempty"`

	ParentId string `json:"parentId,omitempty"`

	ParentVersionId string `json:"parentVersionId,omitempty"`

	Price interface{} `json:"price,omitempty"`

	Prices []ProductPrice `json:"prices,omitempty"`

	ProductMediaVersionId string `json:"productMediaVersionId,omitempty"`

	ProductNumber string `json:"productNumber,omitempty"`

	ProductReviews []ProductReview `json:"productReviews,omitempty"`

	ProductType string `json:"productType,omitempty"`

	Properties []PropertyGroupOption `json:"properties,omitempty"`

	PropertyIds interface{} `json:"propertyIds,omitempty"`

	PurchasePrices interface{} `json:"purchasePrices,omitempty"`

	PurchaseSteps float64 `json:"purchaseSteps,omitempty"`

	PurchaseUnit float64 `json:"purchaseUnit,omitempty"`

	RatingAverage float64 `json:"ratingAverage,omitempty"`

	ReleaseDate time.Time `json:"releaseDate,omitempty"`

	RestockTime float64 `json:"restockTime,omitempty"`

	Sales float64 `json:"sales,omitempty"`

	SeoUrls []SeoUrl `json:"seoUrls,omitempty"`

	States interface{} `json:"states,omitempty"`

	Stock float64 `json:"stock,omitempty"`

	TagIds interface{} `json:"tagIds,omitempty"`

	Tags []Tag `json:"tags,omitempty"`

	Translated interface{} `json:"translated,omitempty"`

	Translations []ProductTranslation `json:"translations,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`

	VariantListingConfig interface{} `json:"variantListingConfig,omitempty"`

	VariantRestrictions interface{} `json:"variantRestrictions,omitempty"`

	Variation interface{} `json:"variation,omitempty"`

	VersionId string `json:"versionId,omitempty"`

	Visibilities []ProductVisibility `json:"visibilities,omitempty"`
}

type ProductCategory

type ProductCategory struct {
	Category *Category `json:"category,omitempty"`

	CategoryId string `json:"categoryId,omitempty"`

	CategoryVersionId string `json:"categoryVersionId,omitempty"`

	Product *Product `json:"product,omitempty"`

	ProductId string `json:"productId,omitempty"`

	ProductVersionId string `json:"productVersionId,omitempty"`
}

type ProductCategoryRepository

type ProductCategoryRepository struct {
	*GenericRepository[ProductCategory]
}

func NewProductCategoryRepository

func NewProductCategoryRepository(client *Client) *ProductCategoryRepository

func (*ProductCategoryRepository) Delete

func (t *ProductCategoryRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*ProductCategoryRepository) Search

func (*ProductCategoryRepository) SearchAll

func (*ProductCategoryRepository) SearchIds

func (*ProductCategoryRepository) Upsert

type ProductCategoryTree

type ProductCategoryTree struct {
	Category *Category `json:"category,omitempty"`

	CategoryId string `json:"categoryId,omitempty"`

	CategoryVersionId string `json:"categoryVersionId,omitempty"`

	Product *Product `json:"product,omitempty"`

	ProductId string `json:"productId,omitempty"`

	ProductVersionId string `json:"productVersionId,omitempty"`
}

type ProductCategoryTreeRepository

type ProductCategoryTreeRepository struct {
	*GenericRepository[ProductCategoryTree]
}

func NewProductCategoryTreeRepository

func NewProductCategoryTreeRepository(client *Client) *ProductCategoryTreeRepository

func (*ProductCategoryTreeRepository) Delete

func (*ProductCategoryTreeRepository) Search

func (*ProductCategoryTreeRepository) SearchAll

func (*ProductCategoryTreeRepository) SearchIds

func (*ProductCategoryTreeRepository) Upsert

type ProductConfiguratorSetting

type ProductConfiguratorSetting struct {
	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	Id string `json:"id,omitempty"`

	Media *Media `json:"media,omitempty"`

	MediaId string `json:"mediaId,omitempty"`

	Option *PropertyGroupOption `json:"option,omitempty"`

	OptionId string `json:"optionId,omitempty"`

	Position float64 `json:"position,omitempty"`

	Price interface{} `json:"price,omitempty"`

	Product *Product `json:"product,omitempty"`

	ProductId string `json:"productId,omitempty"`

	ProductVersionId string `json:"productVersionId,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`

	VersionId string `json:"versionId,omitempty"`
}

type ProductConfiguratorSettingRepository

type ProductConfiguratorSettingRepository struct {
	*GenericRepository[ProductConfiguratorSetting]
}

func NewProductConfiguratorSettingRepository

func NewProductConfiguratorSettingRepository(client *Client) *ProductConfiguratorSettingRepository

func (*ProductConfiguratorSettingRepository) Delete

func (*ProductConfiguratorSettingRepository) Search

func (*ProductConfiguratorSettingRepository) SearchAll

func (*ProductConfiguratorSettingRepository) SearchIds

func (*ProductConfiguratorSettingRepository) Upsert

type ProductCustomFieldSet

type ProductCustomFieldSet struct {
	CustomFieldSet *CustomFieldSet `json:"customFieldSet,omitempty"`

	CustomFieldSetId string `json:"customFieldSetId,omitempty"`

	Product *Product `json:"product,omitempty"`

	ProductId string `json:"productId,omitempty"`

	ProductVersionId string `json:"productVersionId,omitempty"`
}

type ProductCustomFieldSetRepository

type ProductCustomFieldSetRepository struct {
	*GenericRepository[ProductCustomFieldSet]
}

func NewProductCustomFieldSetRepository

func NewProductCustomFieldSetRepository(client *Client) *ProductCustomFieldSetRepository

func (*ProductCustomFieldSetRepository) Delete

func (*ProductCustomFieldSetRepository) Search

func (*ProductCustomFieldSetRepository) SearchAll

func (*ProductCustomFieldSetRepository) SearchIds

func (*ProductCustomFieldSetRepository) Upsert

type ProductMedia

type ProductMedia struct {
	CoverProducts []Product `json:"coverProducts,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	Id string `json:"id,omitempty"`

	Media *Media `json:"media,omitempty"`

	MediaId string `json:"mediaId,omitempty"`

	Position float64 `json:"position,omitempty"`

	Product *Product `json:"product,omitempty"`

	ProductId string `json:"productId,omitempty"`

	ProductVersionId string `json:"productVersionId,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`

	VersionId string `json:"versionId,omitempty"`
}

type ProductMediaRepository

type ProductMediaRepository struct {
	*GenericRepository[ProductMedia]
}

func NewProductMediaRepository

func NewProductMediaRepository(client *Client) *ProductMediaRepository

func (*ProductMediaRepository) Delete

func (t *ProductMediaRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*ProductMediaRepository) Search

func (*ProductMediaRepository) SearchAll

func (*ProductMediaRepository) SearchIds

func (*ProductMediaRepository) Upsert

func (t *ProductMediaRepository) Upsert(ctx ApiContext, entity []ProductMedia) (*http.Response, error)

type ProductOption

type ProductOption struct {
	Option *PropertyGroupOption `json:"option,omitempty"`

	OptionId string `json:"optionId,omitempty"`

	Product *Product `json:"product,omitempty"`

	ProductId string `json:"productId,omitempty"`

	ProductVersionId string `json:"productVersionId,omitempty"`
}

type ProductOptionRepository

type ProductOptionRepository struct {
	*GenericRepository[ProductOption]
}

func NewProductOptionRepository

func NewProductOptionRepository(client *Client) *ProductOptionRepository

func (*ProductOptionRepository) Delete

func (t *ProductOptionRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*ProductOptionRepository) Search

func (*ProductOptionRepository) SearchAll

func (*ProductOptionRepository) SearchIds

func (*ProductOptionRepository) Upsert

func (t *ProductOptionRepository) Upsert(ctx ApiContext, entity []ProductOption) (*http.Response, error)

type ProductPrice

type ProductPrice struct {
	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	Id string `json:"id,omitempty"`

	Price interface{} `json:"price,omitempty"`

	Product *Product `json:"product,omitempty"`

	ProductId string `json:"productId,omitempty"`

	ProductVersionId string `json:"productVersionId,omitempty"`

	QuantityEnd float64 `json:"quantityEnd,omitempty"`

	QuantityStart float64 `json:"quantityStart,omitempty"`

	Rule *Rule `json:"rule,omitempty"`

	RuleId string `json:"ruleId,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`

	VersionId string `json:"versionId,omitempty"`
}

type ProductPriceRepository

type ProductPriceRepository struct {
	*GenericRepository[ProductPrice]
}

func NewProductPriceRepository

func NewProductPriceRepository(client *Client) *ProductPriceRepository

func (*ProductPriceRepository) Delete

func (t *ProductPriceRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*ProductPriceRepository) Search

func (*ProductPriceRepository) SearchAll

func (*ProductPriceRepository) SearchIds

func (*ProductPriceRepository) Upsert

func (t *ProductPriceRepository) Upsert(ctx ApiContext, entity []ProductPrice) (*http.Response, error)

type ProductProperty

type ProductProperty struct {
	Option *PropertyGroupOption `json:"option,omitempty"`

	OptionId string `json:"optionId,omitempty"`

	Product *Product `json:"product,omitempty"`

	ProductId string `json:"productId,omitempty"`

	ProductVersionId string `json:"productVersionId,omitempty"`
}

type ProductPropertyRepository

type ProductPropertyRepository struct {
	*GenericRepository[ProductProperty]
}

func NewProductPropertyRepository

func NewProductPropertyRepository(client *Client) *ProductPropertyRepository

func (*ProductPropertyRepository) Delete

func (t *ProductPropertyRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*ProductPropertyRepository) Search

func (*ProductPropertyRepository) SearchAll

func (*ProductPropertyRepository) SearchIds

func (*ProductPropertyRepository) Upsert

type ProductRepository

type ProductRepository struct {
	*GenericRepository[Product]
}

func NewProductRepository

func NewProductRepository(client *Client) *ProductRepository

func (*ProductRepository) Delete

func (t *ProductRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*ProductRepository) Search

func (*ProductRepository) SearchAll

func (t *ProductRepository) SearchAll(ctx ApiContext, criteria Criteria) (*EntityCollection[Product], *http.Response, error)

func (*ProductRepository) SearchIds

func (t *ProductRepository) SearchIds(ctx ApiContext, criteria Criteria) (*SearchIdsResponse, *http.Response, error)

func (*ProductRepository) Upsert

func (t *ProductRepository) Upsert(ctx ApiContext, entity []Product) (*http.Response, error)

type ProductReview

type ProductReview struct {
	Channel *Channel `json:"channel,omitempty"`

	ChannelId string `json:"channelId,omitempty"`

	Comment string `json:"comment,omitempty"`

	Content string `json:"content,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	Customer *Customer `json:"customer,omitempty"`

	CustomerId string `json:"customerId,omitempty"`

	ExternalEmail string `json:"externalEmail,omitempty"`

	ExternalUser string `json:"externalUser,omitempty"`

	Id string `json:"id,omitempty"`

	Language *Language `json:"language,omitempty"`

	LanguageId string `json:"languageId,omitempty"`

	Points float64 `json:"points,omitempty"`

	Product *Product `json:"product,omitempty"`

	ProductId string `json:"productId,omitempty"`

	ProductVersionId string `json:"productVersionId,omitempty"`

	Status bool `json:"status,omitempty"`

	Title string `json:"title,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type ProductReviewRepository

type ProductReviewRepository struct {
	*GenericRepository[ProductReview]
}

func NewProductReviewRepository

func NewProductReviewRepository(client *Client) *ProductReviewRepository

func (*ProductReviewRepository) Delete

func (t *ProductReviewRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*ProductReviewRepository) Search

func (*ProductReviewRepository) SearchAll

func (*ProductReviewRepository) SearchIds

func (*ProductReviewRepository) Upsert

func (t *ProductReviewRepository) Upsert(ctx ApiContext, entity []ProductReview) (*http.Response, error)

type ProductSorting

type ProductSorting struct {
	Active bool `json:"active,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	Fields interface{} `json:"fields,omitempty"`

	Id string `json:"id,omitempty"`

	Key string `json:"key,omitempty"`

	Label string `json:"label,omitempty"`

	Locked bool `json:"locked,omitempty"`

	Priority float64 `json:"priority,omitempty"`

	Translated interface{} `json:"translated,omitempty"`

	Translations []ProductSortingTranslation `json:"translations,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type ProductSortingRepository

type ProductSortingRepository struct {
	*GenericRepository[ProductSorting]
}

func NewProductSortingRepository

func NewProductSortingRepository(client *Client) *ProductSortingRepository

func (*ProductSortingRepository) Delete

func (t *ProductSortingRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*ProductSortingRepository) Search

func (*ProductSortingRepository) SearchAll

func (*ProductSortingRepository) SearchIds

func (*ProductSortingRepository) Upsert

type ProductSortingTranslation

type ProductSortingTranslation struct {
	CreatedAt time.Time `json:"createdAt,omitempty"`

	Label string `json:"label,omitempty"`

	Language *Language `json:"language,omitempty"`

	LanguageId string `json:"languageId,omitempty"`

	ProductSorting *ProductSorting `json:"productSorting,omitempty"`

	ProductSortingId string `json:"productSortingId,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type ProductSortingTranslationRepository

type ProductSortingTranslationRepository struct {
	*GenericRepository[ProductSortingTranslation]
}

func NewProductSortingTranslationRepository

func NewProductSortingTranslationRepository(client *Client) *ProductSortingTranslationRepository

func (*ProductSortingTranslationRepository) Delete

func (*ProductSortingTranslationRepository) Search

func (*ProductSortingTranslationRepository) SearchAll

func (*ProductSortingTranslationRepository) SearchIds

func (*ProductSortingTranslationRepository) Upsert

type ProductTag

type ProductTag struct {
	Product *Product `json:"product,omitempty"`

	ProductId string `json:"productId,omitempty"`

	ProductVersionId string `json:"productVersionId,omitempty"`

	Tag *Tag `json:"tag,omitempty"`

	TagId string `json:"tagId,omitempty"`
}

type ProductTagRepository

type ProductTagRepository struct {
	*GenericRepository[ProductTag]
}

func NewProductTagRepository

func NewProductTagRepository(client *Client) *ProductTagRepository

func (*ProductTagRepository) Delete

func (t *ProductTagRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*ProductTagRepository) Search

func (*ProductTagRepository) SearchAll

func (*ProductTagRepository) SearchIds

func (t *ProductTagRepository) SearchIds(ctx ApiContext, criteria Criteria) (*SearchIdsResponse, *http.Response, error)

func (*ProductTagRepository) Upsert

func (t *ProductTagRepository) Upsert(ctx ApiContext, entity []ProductTag) (*http.Response, error)

type ProductTranslation

type ProductTranslation struct {
	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	Description string `json:"description,omitempty"`

	Keywords string `json:"keywords,omitempty"`

	Language *Language `json:"language,omitempty"`

	LanguageId string `json:"languageId,omitempty"`

	MetaDescription string `json:"metaDescription,omitempty"`

	MetaTitle string `json:"metaTitle,omitempty"`

	Name string `json:"name,omitempty"`

	Product *Product `json:"product,omitempty"`

	ProductId string `json:"productId,omitempty"`

	ProductVersionId string `json:"productVersionId,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type ProductTranslationRepository

type ProductTranslationRepository struct {
	*GenericRepository[ProductTranslation]
}

func NewProductTranslationRepository

func NewProductTranslationRepository(client *Client) *ProductTranslationRepository

func (*ProductTranslationRepository) Delete

func (*ProductTranslationRepository) Search

func (*ProductTranslationRepository) SearchAll

func (*ProductTranslationRepository) SearchIds

func (*ProductTranslationRepository) Upsert

type ProductVisibility

type ProductVisibility struct {
	Channel *Channel `json:"channel,omitempty"`

	ChannelId string `json:"channelId,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	Id string `json:"id,omitempty"`

	Product *Product `json:"product,omitempty"`

	ProductId string `json:"productId,omitempty"`

	ProductVersionId string `json:"productVersionId,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`

	Visibility float64 `json:"visibility,omitempty"`
}

type ProductVisibilityRepository

type ProductVisibilityRepository struct {
	*GenericRepository[ProductVisibility]
}

func NewProductVisibilityRepository

func NewProductVisibilityRepository(client *Client) *ProductVisibilityRepository

func (*ProductVisibilityRepository) Delete

func (t *ProductVisibilityRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*ProductVisibilityRepository) Search

func (*ProductVisibilityRepository) SearchAll

func (*ProductVisibilityRepository) SearchIds

func (*ProductVisibilityRepository) Upsert

type PropertyGroup

type PropertyGroup struct {
	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	Description string `json:"description,omitempty"`

	DisplayType string `json:"displayType,omitempty"`

	Filterable bool `json:"filterable,omitempty"`

	Id string `json:"id,omitempty"`

	Name string `json:"name,omitempty"`

	Options []PropertyGroupOption `json:"options,omitempty"`

	Position float64 `json:"position,omitempty"`

	SortingType string `json:"sortingType,omitempty"`

	TechnicalName string `json:"technicalName,omitempty"`

	Translated interface{} `json:"translated,omitempty"`

	Translations []PropertyGroupTranslation `json:"translations,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`

	VisibleOnProductDetailPage bool `json:"visibleOnProductDetailPage,omitempty"`
}

type PropertyGroupOption

type PropertyGroupOption struct {
	ColorHexCode string `json:"colorHexCode,omitempty"`

	Combinable bool `json:"combinable,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	Group *PropertyGroup `json:"group,omitempty"`

	GroupId string `json:"groupId,omitempty"`

	Id string `json:"id,omitempty"`

	Media *Media `json:"media,omitempty"`

	MediaId string `json:"mediaId,omitempty"`

	Name string `json:"name,omitempty"`

	Position float64 `json:"position,omitempty"`

	ProductConfiguratorSettings []ProductConfiguratorSetting `json:"productConfiguratorSettings,omitempty"`

	ProductOptions []Product `json:"productOptions,omitempty"`

	ProductProperties []Product `json:"productProperties,omitempty"`

	TechnicalName string `json:"technicalName,omitempty"`

	Translated interface{} `json:"translated,omitempty"`

	Translations []PropertyGroupOptionTranslation `json:"translations,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type PropertyGroupOptionRepository

type PropertyGroupOptionRepository struct {
	*GenericRepository[PropertyGroupOption]
}

func NewPropertyGroupOptionRepository

func NewPropertyGroupOptionRepository(client *Client) *PropertyGroupOptionRepository

func (*PropertyGroupOptionRepository) Delete

func (*PropertyGroupOptionRepository) Search

func (*PropertyGroupOptionRepository) SearchAll

func (*PropertyGroupOptionRepository) SearchIds

func (*PropertyGroupOptionRepository) Upsert

type PropertyGroupOptionTranslation

type PropertyGroupOptionTranslation struct {
	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	Language *Language `json:"language,omitempty"`

	LanguageId string `json:"languageId,omitempty"`

	Name string `json:"name,omitempty"`

	Position float64 `json:"position,omitempty"`

	PropertyGroupOption *PropertyGroupOption `json:"propertyGroupOption,omitempty"`

	PropertyGroupOptionId string `json:"propertyGroupOptionId,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type PropertyGroupOptionTranslationRepository

type PropertyGroupOptionTranslationRepository struct {
	*GenericRepository[PropertyGroupOptionTranslation]
}

func NewPropertyGroupOptionTranslationRepository

func NewPropertyGroupOptionTranslationRepository(client *Client) *PropertyGroupOptionTranslationRepository

func (*PropertyGroupOptionTranslationRepository) Delete

func (*PropertyGroupOptionTranslationRepository) Search

func (*PropertyGroupOptionTranslationRepository) SearchAll

func (*PropertyGroupOptionTranslationRepository) SearchIds

func (*PropertyGroupOptionTranslationRepository) Upsert

type PropertyGroupRepository

type PropertyGroupRepository struct {
	*GenericRepository[PropertyGroup]
}

func NewPropertyGroupRepository

func NewPropertyGroupRepository(client *Client) *PropertyGroupRepository

func (*PropertyGroupRepository) Delete

func (t *PropertyGroupRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*PropertyGroupRepository) Search

func (*PropertyGroupRepository) SearchAll

func (*PropertyGroupRepository) SearchIds

func (*PropertyGroupRepository) Upsert

func (t *PropertyGroupRepository) Upsert(ctx ApiContext, entity []PropertyGroup) (*http.Response, error)

type PropertyGroupTranslation

type PropertyGroupTranslation struct {
	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	Description string `json:"description,omitempty"`

	Language *Language `json:"language,omitempty"`

	LanguageId string `json:"languageId,omitempty"`

	Name string `json:"name,omitempty"`

	Position float64 `json:"position,omitempty"`

	PropertyGroup *PropertyGroup `json:"propertyGroup,omitempty"`

	PropertyGroupId string `json:"propertyGroupId,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type PropertyGroupTranslationRepository

type PropertyGroupTranslationRepository struct {
	*GenericRepository[PropertyGroupTranslation]
}

func NewPropertyGroupTranslationRepository

func NewPropertyGroupTranslationRepository(client *Client) *PropertyGroupTranslationRepository

func (*PropertyGroupTranslationRepository) Delete

func (*PropertyGroupTranslationRepository) Search

func (*PropertyGroupTranslationRepository) SearchAll

func (*PropertyGroupTranslationRepository) SearchIds

func (*PropertyGroupTranslationRepository) Upsert

type Repository

type Repository struct {
	ClientService

	AclRole *AclRoleRepository

	AclUserRole *AclUserRoleRepository

	Category *CategoryRepository

	CategoryTag *CategoryTagRepository

	CategoryTranslation *CategoryTranslationRepository

	Channel *ChannelRepository

	ChannelCountry *ChannelCountryRepository

	ChannelCurrency *ChannelCurrencyRepository

	ChannelDomain *ChannelDomainRepository

	ChannelLanguage *ChannelLanguageRepository

	ChannelPaymentMethod *ChannelPaymentMethodRepository

	ChannelTranslation *ChannelTranslationRepository

	ChannelType *ChannelTypeRepository

	ChannelTypeTranslation *ChannelTypeTranslationRepository

	CmsPage *CmsPageRepository

	CmsPageTranslation *CmsPageTranslationRepository

	Country *CountryRepository

	CountryState *CountryStateRepository

	CountryStateTranslation *CountryStateTranslationRepository

	CountryTranslation *CountryTranslationRepository

	Currency *CurrencyRepository

	CurrencyCountryRounding *CurrencyCountryRoundingRepository

	CurrencyTranslation *CurrencyTranslationRepository

	CustomField *CustomFieldRepository

	CustomFieldSet *CustomFieldSetRepository

	CustomFieldSetRelation *CustomFieldSetRelationRepository

	Customer *CustomerRepository

	CustomerGroup *CustomerGroupRepository

	CustomerGroupTranslation *CustomerGroupTranslationRepository

	CustomerRole *CustomerRoleRepository

	CustomerRoleMapping *CustomerRoleMappingRepository

	CustomerTag *CustomerTagRepository

	Dict *DictRepository

	DictItem *DictItemRepository

	DictItemTranslation *DictItemTranslationRepository

	DictTranslation *DictTranslationRepository

	Flow *FlowRepository

	FlowSequence *FlowSequenceRepository

	FlowTemplate *FlowTemplateRepository

	ImportExportFile *ImportExportFileRepository

	ImportExportLog *ImportExportLogRepository

	ImportExportProfile *ImportExportProfileRepository

	Integration *IntegrationRepository

	IntegrationRole *IntegrationRoleRepository

	LandingPage *LandingPageRepository

	LandingPageChannel *LandingPageChannelRepository

	LandingPageTag *LandingPageTagRepository

	LandingPageTranslation *LandingPageTranslationRepository

	Language *LanguageRepository

	Locale *LocaleRepository

	LocaleTranslation *LocaleTranslationRepository

	LogEntry *LogEntryRepository

	MainCategory *MainCategoryRepository

	Media *MediaRepository

	MediaDefaultFolder *MediaDefaultFolderRepository

	MediaFolder *MediaFolderRepository

	MediaFolderConfiguration *MediaFolderConfigurationRepository

	MediaFolderConfigurationMediaThumbnailSize *MediaFolderConfigurationMediaThumbnailSizeRepository

	MediaTag *MediaTagRepository

	MediaThumbnail *MediaThumbnailRepository

	MediaThumbnailSize *MediaThumbnailSizeRepository

	MediaTranslation *MediaTranslationRepository

	Navigation *NavigationRepository

	NavigationTranslation *NavigationTranslationRepository

	NumberRange *NumberRangeRepository

	NumberRangeChannel *NumberRangeChannelRepository

	NumberRangeState *NumberRangeStateRepository

	NumberRangeTranslation *NumberRangeTranslationRepository

	NumberRangeType *NumberRangeTypeRepository

	NumberRangeTypeTranslation *NumberRangeTypeTranslationRepository

	Order *OrderRepository

	OrderCustomer *OrderCustomerRepository

	OrderLineItem *OrderLineItemRepository

	OrderTag *OrderTagRepository

	OrderTransaction *OrderTransactionRepository

	OrderTransactionCapture *OrderTransactionCaptureRepository

	OrderTransactionCaptureRefund *OrderTransactionCaptureRefundRepository

	OrderTransactionCaptureRefundPosition *OrderTransactionCaptureRefundPositionRepository

	PaymentMethod *PaymentMethodRepository

	PaymentMethodTranslation *PaymentMethodTranslationRepository

	Plugin *PluginRepository

	PluginTranslation *PluginTranslationRepository

	Product *ProductRepository

	ProductCategory *ProductCategoryRepository

	ProductCategoryTree *ProductCategoryTreeRepository

	ProductConfiguratorSetting *ProductConfiguratorSettingRepository

	ProductCustomFieldSet *ProductCustomFieldSetRepository

	ProductMedia *ProductMediaRepository

	ProductOption *ProductOptionRepository

	ProductPrice *ProductPriceRepository

	ProductProperty *ProductPropertyRepository

	ProductReview *ProductReviewRepository

	ProductSorting *ProductSortingRepository

	ProductSortingTranslation *ProductSortingTranslationRepository

	ProductTag *ProductTagRepository

	ProductTranslation *ProductTranslationRepository

	ProductVisibility *ProductVisibilityRepository

	PropertyGroup *PropertyGroupRepository

	PropertyGroupOption *PropertyGroupOptionRepository

	PropertyGroupOptionTranslation *PropertyGroupOptionTranslationRepository

	PropertyGroupTranslation *PropertyGroupTranslationRepository

	Rule *RuleRepository

	RuleCondition *RuleConditionRepository

	RuleTag *RuleTagRepository

	ScheduledTask *ScheduledTaskRepository

	SeoUrl *SeoUrlRepository

	SeoUrlTemplate *SeoUrlTemplateRepository

	Snippet *SnippetRepository

	SnippetSet *SnippetSetRepository

	StateMachine *StateMachineRepository

	StateMachineHistory *StateMachineHistoryRepository

	StateMachineState *StateMachineStateRepository

	StateMachineStateTranslation *StateMachineStateTranslationRepository

	StateMachineTransition *StateMachineTransitionRepository

	StateMachineTranslation *StateMachineTranslationRepository

	SystemConfig *SystemConfigRepository

	Tag *TagRepository

	Theme *ThemeRepository

	ThemeChannel *ThemeChannelRepository

	ThemeChild *ThemeChildRepository

	ThemeMedia *ThemeMediaRepository

	ThemeTranslation *ThemeTranslationRepository

	User *UserRepository

	UserAccessKey *UserAccessKeyRepository

	UserConfig *UserConfigRepository

	UserRecovery *UserRecoveryRepository

	Version *VersionRepository

	VersionCommit *VersionCommitRepository

	VersionCommitData *VersionCommitDataRepository
}

func NewRepository

func NewRepository(client ClientService) Repository

type Rule

type Rule struct {
	Areas interface{} `json:"areas,omitempty"`

	Conditions []RuleCondition `json:"conditions,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	Description string `json:"description,omitempty"`

	FlowSequences []FlowSequence `json:"flowSequences,omitempty"`

	Id string `json:"id,omitempty"`

	Invalid bool `json:"invalid,omitempty"`

	ModuleTypes interface{} `json:"moduleTypes,omitempty"`

	Name string `json:"name,omitempty"`

	Payload interface{} `json:"payload,omitempty"`

	PaymentMethods []PaymentMethod `json:"paymentMethods,omitempty"`

	Priority float64 `json:"priority,omitempty"`

	ProductPrices []ProductPrice `json:"productPrices,omitempty"`

	Tags []Tag `json:"tags,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type RuleCondition

type RuleCondition struct {
	Children []RuleCondition `json:"children,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	Id string `json:"id,omitempty"`

	Parent *RuleCondition `json:"parent,omitempty"`

	ParentId string `json:"parentId,omitempty"`

	Position float64 `json:"position,omitempty"`

	Rule *Rule `json:"rule,omitempty"`

	RuleId string `json:"ruleId,omitempty"`

	Type string `json:"type,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`

	Value interface{} `json:"value,omitempty"`
}

type RuleConditionRepository

type RuleConditionRepository struct {
	*GenericRepository[RuleCondition]
}

func NewRuleConditionRepository

func NewRuleConditionRepository(client *Client) *RuleConditionRepository

func (*RuleConditionRepository) Delete

func (t *RuleConditionRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*RuleConditionRepository) Search

func (*RuleConditionRepository) SearchAll

func (*RuleConditionRepository) SearchIds

func (*RuleConditionRepository) Upsert

func (t *RuleConditionRepository) Upsert(ctx ApiContext, entity []RuleCondition) (*http.Response, error)

type RuleRepository

type RuleRepository struct {
	*GenericRepository[Rule]
}

func NewRuleRepository

func NewRuleRepository(client *Client) *RuleRepository

func (*RuleRepository) Delete

func (t *RuleRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*RuleRepository) Search

func (t *RuleRepository) Search(ctx ApiContext, criteria Criteria) (*EntityCollection[Rule], *http.Response, error)

func (*RuleRepository) SearchAll

func (t *RuleRepository) SearchAll(ctx ApiContext, criteria Criteria) (*EntityCollection[Rule], *http.Response, error)

func (*RuleRepository) SearchIds

func (t *RuleRepository) SearchIds(ctx ApiContext, criteria Criteria) (*SearchIdsResponse, *http.Response, error)

func (*RuleRepository) Upsert

func (t *RuleRepository) Upsert(ctx ApiContext, entity []Rule) (*http.Response, error)

type RuleTag

type RuleTag struct {
	Rule *Rule `json:"rule,omitempty"`

	RuleId string `json:"ruleId,omitempty"`

	Tag *Tag `json:"tag,omitempty"`

	TagId string `json:"tagId,omitempty"`
}

type RuleTagRepository

type RuleTagRepository struct {
	*GenericRepository[RuleTag]
}

func NewRuleTagRepository

func NewRuleTagRepository(client *Client) *RuleTagRepository

func (*RuleTagRepository) Delete

func (t *RuleTagRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*RuleTagRepository) Search

func (*RuleTagRepository) SearchAll

func (t *RuleTagRepository) SearchAll(ctx ApiContext, criteria Criteria) (*EntityCollection[RuleTag], *http.Response, error)

func (*RuleTagRepository) SearchIds

func (t *RuleTagRepository) SearchIds(ctx ApiContext, criteria Criteria) (*SearchIdsResponse, *http.Response, error)

func (*RuleTagRepository) Upsert

func (t *RuleTagRepository) Upsert(ctx ApiContext, entity []RuleTag) (*http.Response, error)

type ScheduledTask

type ScheduledTask struct {
	CreatedAt time.Time `json:"createdAt,omitempty"`

	DefaultRunInterval float64 `json:"defaultRunInterval,omitempty"`

	Id string `json:"id,omitempty"`

	LastExecutionTime time.Time `json:"lastExecutionTime,omitempty"`

	Name string `json:"name,omitempty"`

	NextExecutionTime time.Time `json:"nextExecutionTime,omitempty"`

	RunInterval float64 `json:"runInterval,omitempty"`

	ScheduledTaskClass string `json:"scheduledTaskClass,omitempty"`

	Status string `json:"status,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type ScheduledTaskRepository

type ScheduledTaskRepository struct {
	*GenericRepository[ScheduledTask]
}

func NewScheduledTaskRepository

func NewScheduledTaskRepository(client *Client) *ScheduledTaskRepository

func (*ScheduledTaskRepository) Delete

func (t *ScheduledTaskRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*ScheduledTaskRepository) Search

func (*ScheduledTaskRepository) SearchAll

func (*ScheduledTaskRepository) SearchIds

func (*ScheduledTaskRepository) Upsert

func (t *ScheduledTaskRepository) Upsert(ctx ApiContext, entity []ScheduledTask) (*http.Response, error)

type SearchIdsResponse

type SearchIdsResponse struct {
	Total int      `json:"total"`
	Data  []string `json:"data"`
}

func (SearchIdsResponse) FirstId

func (s SearchIdsResponse) FirstId() string

type SeoUrl

type SeoUrl struct {
	Channel *Channel `json:"channel,omitempty"`

	ChannelId string `json:"channelId,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	Error string `json:"error,omitempty"`

	ForeignKey string `json:"foreignKey,omitempty"`

	Id string `json:"id,omitempty"`

	IsCanonical bool `json:"isCanonical,omitempty"`

	IsDeleted bool `json:"isDeleted,omitempty"`

	IsModified bool `json:"isModified,omitempty"`

	Language *Language `json:"language,omitempty"`

	LanguageId string `json:"languageId,omitempty"`

	PathInfo string `json:"pathInfo,omitempty"`

	RouteName string `json:"routeName,omitempty"`

	SeoPathInfo string `json:"seoPathInfo,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`

	Url string `json:"url,omitempty"`
}

type SeoUrlRepository

type SeoUrlRepository struct {
	*GenericRepository[SeoUrl]
}

func NewSeoUrlRepository

func NewSeoUrlRepository(client *Client) *SeoUrlRepository

func (*SeoUrlRepository) Delete

func (t *SeoUrlRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*SeoUrlRepository) Search

func (*SeoUrlRepository) SearchAll

func (t *SeoUrlRepository) SearchAll(ctx ApiContext, criteria Criteria) (*EntityCollection[SeoUrl], *http.Response, error)

func (*SeoUrlRepository) SearchIds

func (t *SeoUrlRepository) SearchIds(ctx ApiContext, criteria Criteria) (*SearchIdsResponse, *http.Response, error)

func (*SeoUrlRepository) Upsert

func (t *SeoUrlRepository) Upsert(ctx ApiContext, entity []SeoUrl) (*http.Response, error)

type SeoUrlTemplate

type SeoUrlTemplate struct {
	Channel *Channel `json:"channel,omitempty"`

	ChannelId string `json:"channelId,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	EntityName string `json:"entityName,omitempty"`

	Id string `json:"id,omitempty"`

	IsValid bool `json:"isValid,omitempty"`

	RouteName string `json:"routeName,omitempty"`

	Template string `json:"template,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type SeoUrlTemplateRepository

type SeoUrlTemplateRepository struct {
	*GenericRepository[SeoUrlTemplate]
}

func NewSeoUrlTemplateRepository

func NewSeoUrlTemplateRepository(client *Client) *SeoUrlTemplateRepository

func (*SeoUrlTemplateRepository) Delete

func (t *SeoUrlTemplateRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*SeoUrlTemplateRepository) Search

func (*SeoUrlTemplateRepository) SearchAll

func (*SeoUrlTemplateRepository) SearchIds

func (*SeoUrlTemplateRepository) Upsert

type Snippet

type Snippet struct {
	Author string `json:"author,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	Id string `json:"id,omitempty"`

	Set *SnippetSet `json:"set,omitempty"`

	SetId string `json:"setId,omitempty"`

	TranslationKey string `json:"translationKey,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`

	Value string `json:"value,omitempty"`
}

type SnippetRepository

type SnippetRepository struct {
	*GenericRepository[Snippet]
}

func NewSnippetRepository

func NewSnippetRepository(client *Client) *SnippetRepository

func (*SnippetRepository) Delete

func (t *SnippetRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*SnippetRepository) Search

func (*SnippetRepository) SearchAll

func (t *SnippetRepository) SearchAll(ctx ApiContext, criteria Criteria) (*EntityCollection[Snippet], *http.Response, error)

func (*SnippetRepository) SearchIds

func (t *SnippetRepository) SearchIds(ctx ApiContext, criteria Criteria) (*SearchIdsResponse, *http.Response, error)

func (*SnippetRepository) Upsert

func (t *SnippetRepository) Upsert(ctx ApiContext, entity []Snippet) (*http.Response, error)

type SnippetSet

type SnippetSet struct {
	BaseFile string `json:"baseFile,omitempty"`

	ChannelDomains []ChannelDomain `json:"channelDomains,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	Id string `json:"id,omitempty"`

	Iso string `json:"iso,omitempty"`

	Name string `json:"name,omitempty"`

	Snippets []Snippet `json:"snippets,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type SnippetSetRepository

type SnippetSetRepository struct {
	*GenericRepository[SnippetSet]
}

func NewSnippetSetRepository

func NewSnippetSetRepository(client *Client) *SnippetSetRepository

func (*SnippetSetRepository) Delete

func (t *SnippetSetRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*SnippetSetRepository) Search

func (*SnippetSetRepository) SearchAll

func (*SnippetSetRepository) SearchIds

func (t *SnippetSetRepository) SearchIds(ctx ApiContext, criteria Criteria) (*SearchIdsResponse, *http.Response, error)

func (*SnippetSetRepository) Upsert

func (t *SnippetSetRepository) Upsert(ctx ApiContext, entity []SnippetSet) (*http.Response, error)

type StateMachine

type StateMachine struct {
	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	HistoryEntries []StateMachineHistory `json:"historyEntries,omitempty"`

	Id string `json:"id,omitempty"`

	InitialStateId string `json:"initialStateId,omitempty"`

	Name string `json:"name,omitempty"`

	States []StateMachineState `json:"states,omitempty"`

	TechnicalName string `json:"technicalName,omitempty"`

	Transitions []StateMachineTransition `json:"transitions,omitempty"`

	Translated interface{} `json:"translated,omitempty"`

	Translations []StateMachineTranslation `json:"translations,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type StateMachineHistory

type StateMachineHistory struct {
	CreatedAt time.Time `json:"createdAt,omitempty"`

	EntityName string `json:"entityName,omitempty"`

	FromStateId string `json:"fromStateId,omitempty"`

	FromStateMachineState *StateMachineState `json:"fromStateMachineState,omitempty"`

	Id string `json:"id,omitempty"`

	Integration *Integration `json:"integration,omitempty"`

	IntegrationId string `json:"integrationId,omitempty"`

	ReferencedId string `json:"referencedId,omitempty"`

	ReferencedVersionId string `json:"referencedVersionId,omitempty"`

	StateMachine *StateMachine `json:"stateMachine,omitempty"`

	StateMachineId string `json:"stateMachineId,omitempty"`

	ToStateId string `json:"toStateId,omitempty"`

	ToStateMachineState *StateMachineState `json:"toStateMachineState,omitempty"`

	TransitionActionName string `json:"transitionActionName,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`

	User *User `json:"user,omitempty"`

	UserId string `json:"userId,omitempty"`
}

type StateMachineHistoryRepository

type StateMachineHistoryRepository struct {
	*GenericRepository[StateMachineHistory]
}

func NewStateMachineHistoryRepository

func NewStateMachineHistoryRepository(client *Client) *StateMachineHistoryRepository

func (*StateMachineHistoryRepository) Delete

func (*StateMachineHistoryRepository) Search

func (*StateMachineHistoryRepository) SearchAll

func (*StateMachineHistoryRepository) SearchIds

func (*StateMachineHistoryRepository) Upsert

type StateMachineRepository

type StateMachineRepository struct {
	*GenericRepository[StateMachine]
}

func NewStateMachineRepository

func NewStateMachineRepository(client *Client) *StateMachineRepository

func (*StateMachineRepository) Delete

func (t *StateMachineRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*StateMachineRepository) Search

func (*StateMachineRepository) SearchAll

func (*StateMachineRepository) SearchIds

func (*StateMachineRepository) Upsert

func (t *StateMachineRepository) Upsert(ctx ApiContext, entity []StateMachine) (*http.Response, error)

type StateMachineState

type StateMachineState struct {
	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	FromStateMachineHistoryEntries []StateMachineHistory `json:"fromStateMachineHistoryEntries,omitempty"`

	FromStateMachineTransitions []StateMachineTransition `json:"fromStateMachineTransitions,omitempty"`

	Id string `json:"id,omitempty"`

	Name string `json:"name,omitempty"`

	OrderTransactionCaptureRefunds []OrderTransactionCaptureRefund `json:"orderTransactionCaptureRefunds,omitempty"`

	OrderTransactionCaptures []OrderTransactionCapture `json:"orderTransactionCaptures,omitempty"`

	OrderTransactions []OrderTransaction `json:"orderTransactions,omitempty"`

	Orders []Order `json:"orders,omitempty"`

	StateMachine *StateMachine `json:"stateMachine,omitempty"`

	StateMachineId string `json:"stateMachineId,omitempty"`

	TechnicalName string `json:"technicalName,omitempty"`

	ToStateMachineHistoryEntries []StateMachineHistory `json:"toStateMachineHistoryEntries,omitempty"`

	ToStateMachineTransitions []StateMachineTransition `json:"toStateMachineTransitions,omitempty"`

	Translated interface{} `json:"translated,omitempty"`

	Translations []StateMachineStateTranslation `json:"translations,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type StateMachineStateRepository

type StateMachineStateRepository struct {
	*GenericRepository[StateMachineState]
}

func NewStateMachineStateRepository

func NewStateMachineStateRepository(client *Client) *StateMachineStateRepository

func (*StateMachineStateRepository) Delete

func (t *StateMachineStateRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*StateMachineStateRepository) Search

func (*StateMachineStateRepository) SearchAll

func (*StateMachineStateRepository) SearchIds

func (*StateMachineStateRepository) Upsert

type StateMachineStateTranslation

type StateMachineStateTranslation struct {
	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	Language *Language `json:"language,omitempty"`

	LanguageId string `json:"languageId,omitempty"`

	Name string `json:"name,omitempty"`

	StateMachineState *StateMachineState `json:"stateMachineState,omitempty"`

	StateMachineStateId string `json:"stateMachineStateId,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type StateMachineStateTranslationRepository

type StateMachineStateTranslationRepository struct {
	*GenericRepository[StateMachineStateTranslation]
}

func NewStateMachineStateTranslationRepository

func NewStateMachineStateTranslationRepository(client *Client) *StateMachineStateTranslationRepository

func (*StateMachineStateTranslationRepository) Delete

func (*StateMachineStateTranslationRepository) Search

func (*StateMachineStateTranslationRepository) SearchAll

func (*StateMachineStateTranslationRepository) SearchIds

func (*StateMachineStateTranslationRepository) Upsert

type StateMachineTransition

type StateMachineTransition struct {
	ActionName string `json:"actionName,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	FromStateId string `json:"fromStateId,omitempty"`

	FromStateMachineState *StateMachineState `json:"fromStateMachineState,omitempty"`

	Id string `json:"id,omitempty"`

	StateMachine *StateMachine `json:"stateMachine,omitempty"`

	StateMachineId string `json:"stateMachineId,omitempty"`

	ToStateId string `json:"toStateId,omitempty"`

	ToStateMachineState *StateMachineState `json:"toStateMachineState,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type StateMachineTransitionRepository

type StateMachineTransitionRepository struct {
	*GenericRepository[StateMachineTransition]
}

func NewStateMachineTransitionRepository

func NewStateMachineTransitionRepository(client *Client) *StateMachineTransitionRepository

func (*StateMachineTransitionRepository) Delete

func (*StateMachineTransitionRepository) Search

func (*StateMachineTransitionRepository) SearchAll

func (*StateMachineTransitionRepository) SearchIds

func (*StateMachineTransitionRepository) Upsert

type StateMachineTranslation

type StateMachineTranslation struct {
	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	Language *Language `json:"language,omitempty"`

	LanguageId string `json:"languageId,omitempty"`

	Name string `json:"name,omitempty"`

	StateMachine *StateMachine `json:"stateMachine,omitempty"`

	StateMachineId string `json:"stateMachineId,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type StateMachineTranslationRepository

type StateMachineTranslationRepository struct {
	*GenericRepository[StateMachineTranslation]
}

func NewStateMachineTranslationRepository

func NewStateMachineTranslationRepository(client *Client) *StateMachineTranslationRepository

func (*StateMachineTranslationRepository) Delete

func (*StateMachineTranslationRepository) Search

func (*StateMachineTranslationRepository) SearchAll

func (*StateMachineTranslationRepository) SearchIds

func (*StateMachineTranslationRepository) Upsert

type SyncOperation

type SyncOperation struct {
	Entity  string      `json:"entity"`
	Action  string      `json:"action"`
	Payload interface{} `json:"payload"`
}

type SystemConfig

type SystemConfig struct {
	Channel *Channel `json:"channel,omitempty"`

	ChannelId string `json:"channelId,omitempty"`

	ConfigurationKey string `json:"configurationKey,omitempty"`

	ConfigurationValue interface{} `json:"configurationValue,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	Id string `json:"id,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type SystemConfigRepository

type SystemConfigRepository struct {
	*GenericRepository[SystemConfig]
}

func NewSystemConfigRepository

func NewSystemConfigRepository(client *Client) *SystemConfigRepository

func (*SystemConfigRepository) Delete

func (t *SystemConfigRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*SystemConfigRepository) Search

func (*SystemConfigRepository) SearchAll

func (*SystemConfigRepository) SearchIds

func (*SystemConfigRepository) Upsert

func (t *SystemConfigRepository) Upsert(ctx ApiContext, entity []SystemConfig) (*http.Response, error)

type SystemConfigService

type SystemConfigService ClientService

func (SystemConfigService) UpdateConfig

func (c SystemConfigService) UpdateConfig(ctx ApiContext, payload string) (*http.Response, error)

type Tag

type Tag struct {
	CreatedAt time.Time `json:"createdAt,omitempty"`

	Customers []Customer `json:"customers,omitempty"`

	Id string `json:"id,omitempty"`

	Media []Media `json:"media,omitempty"`

	Name string `json:"name,omitempty"`

	Orders []Order `json:"orders,omitempty"`

	Products []Product `json:"products,omitempty"`

	Rules []Rule `json:"rules,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type TagRepository

type TagRepository struct {
	*GenericRepository[Tag]
}

func NewTagRepository

func NewTagRepository(client *Client) *TagRepository

func (*TagRepository) Delete

func (t *TagRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*TagRepository) Search

func (t *TagRepository) Search(ctx ApiContext, criteria Criteria) (*EntityCollection[Tag], *http.Response, error)

func (*TagRepository) SearchAll

func (t *TagRepository) SearchAll(ctx ApiContext, criteria Criteria) (*EntityCollection[Tag], *http.Response, error)

func (*TagRepository) SearchIds

func (t *TagRepository) SearchIds(ctx ApiContext, criteria Criteria) (*SearchIdsResponse, *http.Response, error)

func (*TagRepository) Upsert

func (t *TagRepository) Upsert(ctx ApiContext, entity []Tag) (*http.Response, error)

type Theme

type Theme struct {
	Active bool `json:"active,omitempty"`

	Author string `json:"author,omitempty"`

	BaseConfig interface{} `json:"baseConfig,omitempty"`

	Channels []Channel `json:"channels,omitempty"`

	ConfigValues interface{} `json:"configValues,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	DependentThemes []Theme `json:"dependentThemes,omitempty"`

	Description string `json:"description,omitempty"`

	HelpTexts interface{} `json:"helpTexts,omitempty"`

	Id string `json:"id,omitempty"`

	Labels interface{} `json:"labels,omitempty"`

	Media []Media `json:"media,omitempty"`

	Name string `json:"name,omitempty"`

	ParentThemeId string `json:"parentThemeId,omitempty"`

	PreviewMedia *Media `json:"previewMedia,omitempty"`

	PreviewMediaId string `json:"previewMediaId,omitempty"`

	TechnicalName string `json:"technicalName,omitempty"`

	ThemeJson interface{} `json:"themeJson,omitempty"`

	Translated interface{} `json:"translated,omitempty"`

	Translations []ThemeTranslation `json:"translations,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type ThemeChannel

type ThemeChannel struct {
	Channel *Channel `json:"channel,omitempty"`

	ChannelId string `json:"channelId,omitempty"`

	Theme *Theme `json:"theme,omitempty"`

	ThemeId string `json:"themeId,omitempty"`
}

type ThemeChannelRepository

type ThemeChannelRepository struct {
	*GenericRepository[ThemeChannel]
}

func NewThemeChannelRepository

func NewThemeChannelRepository(client *Client) *ThemeChannelRepository

func (*ThemeChannelRepository) Delete

func (t *ThemeChannelRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*ThemeChannelRepository) Search

func (*ThemeChannelRepository) SearchAll

func (*ThemeChannelRepository) SearchIds

func (*ThemeChannelRepository) Upsert

func (t *ThemeChannelRepository) Upsert(ctx ApiContext, entity []ThemeChannel) (*http.Response, error)

type ThemeChild

type ThemeChild struct {
	ChildId string `json:"childId,omitempty"`

	ChildTheme *Theme `json:"childTheme,omitempty"`

	ParentId string `json:"parentId,omitempty"`

	ParentTheme *Theme `json:"parentTheme,omitempty"`
}

type ThemeChildRepository

type ThemeChildRepository struct {
	*GenericRepository[ThemeChild]
}

func NewThemeChildRepository

func NewThemeChildRepository(client *Client) *ThemeChildRepository

func (*ThemeChildRepository) Delete

func (t *ThemeChildRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*ThemeChildRepository) Search

func (*ThemeChildRepository) SearchAll

func (*ThemeChildRepository) SearchIds

func (t *ThemeChildRepository) SearchIds(ctx ApiContext, criteria Criteria) (*SearchIdsResponse, *http.Response, error)

func (*ThemeChildRepository) Upsert

func (t *ThemeChildRepository) Upsert(ctx ApiContext, entity []ThemeChild) (*http.Response, error)

type ThemeConfigValue

type ThemeConfigValue struct {
	Value interface{} `yaml:"value" json:"value"`
}

type ThemeConfiguration

type ThemeConfiguration struct {
	CurrentFields *map[string]ThemeConfigValue `json:"currentFields"`
	Fields        map[string]ThemeConfigValue  `json:"fields"`
}

type ThemeManagerService

type ThemeManagerService ClientService

func (ThemeManagerService) GetConfiguration

func (m ThemeManagerService) GetConfiguration(ctx ApiContext, themeId string) (*ThemeConfiguration, *http.Response, error)

func (ThemeManagerService) UpdateConfiguration

func (m ThemeManagerService) UpdateConfiguration(ctx ApiContext, themeId string, update ThemeUpdateRequest) (*http.Response, error)

type ThemeMedia

type ThemeMedia struct {
	Media *Media `json:"media,omitempty"`

	MediaId string `json:"mediaId,omitempty"`

	Theme *Theme `json:"theme,omitempty"`

	ThemeId string `json:"themeId,omitempty"`
}

type ThemeMediaRepository

type ThemeMediaRepository struct {
	*GenericRepository[ThemeMedia]
}

func NewThemeMediaRepository

func NewThemeMediaRepository(client *Client) *ThemeMediaRepository

func (*ThemeMediaRepository) Delete

func (t *ThemeMediaRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*ThemeMediaRepository) Search

func (*ThemeMediaRepository) SearchAll

func (*ThemeMediaRepository) SearchIds

func (t *ThemeMediaRepository) SearchIds(ctx ApiContext, criteria Criteria) (*SearchIdsResponse, *http.Response, error)

func (*ThemeMediaRepository) Upsert

func (t *ThemeMediaRepository) Upsert(ctx ApiContext, entity []ThemeMedia) (*http.Response, error)

type ThemeRepository

type ThemeRepository struct {
	*GenericRepository[Theme]
}

func NewThemeRepository

func NewThemeRepository(client *Client) *ThemeRepository

func (*ThemeRepository) Delete

func (t *ThemeRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*ThemeRepository) Search

func (t *ThemeRepository) Search(ctx ApiContext, criteria Criteria) (*EntityCollection[Theme], *http.Response, error)

func (*ThemeRepository) SearchAll

func (t *ThemeRepository) SearchAll(ctx ApiContext, criteria Criteria) (*EntityCollection[Theme], *http.Response, error)

func (*ThemeRepository) SearchIds

func (t *ThemeRepository) SearchIds(ctx ApiContext, criteria Criteria) (*SearchIdsResponse, *http.Response, error)

func (*ThemeRepository) Upsert

func (t *ThemeRepository) Upsert(ctx ApiContext, entity []Theme) (*http.Response, error)

type ThemeTranslation

type ThemeTranslation struct {
	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	Description string `json:"description,omitempty"`

	HelpTexts interface{} `json:"helpTexts,omitempty"`

	Labels interface{} `json:"labels,omitempty"`

	Language *Language `json:"language,omitempty"`

	LanguageId string `json:"languageId,omitempty"`

	Theme *Theme `json:"theme,omitempty"`

	ThemeId string `json:"themeId,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type ThemeTranslationRepository

type ThemeTranslationRepository struct {
	*GenericRepository[ThemeTranslation]
}

func NewThemeTranslationRepository

func NewThemeTranslationRepository(client *Client) *ThemeTranslationRepository

func (*ThemeTranslationRepository) Delete

func (t *ThemeTranslationRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*ThemeTranslationRepository) Search

func (*ThemeTranslationRepository) SearchAll

func (*ThemeTranslationRepository) SearchIds

func (*ThemeTranslationRepository) Upsert

type ThemeUpdateRequest

type ThemeUpdateRequest struct {
	Config map[string]ThemeConfigValue `json:"config"`
}

type User

type User struct {
	AccessKeys []UserAccessKey `json:"accessKeys,omitempty"`

	AclRoles []AclRole `json:"aclRoles,omitempty"`

	Active bool `json:"active,omitempty"`

	Admin bool `json:"admin,omitempty"`

	AvatarId string `json:"avatarId,omitempty"`

	AvatarMedia *Media `json:"avatarMedia,omitempty"`

	Configs []UserConfig `json:"configs,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	CreatedCustomers []Customer `json:"createdCustomers,omitempty"`

	CreatedOrders []Order `json:"createdOrders,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	Email string `json:"email,omitempty"`

	Id string `json:"id,omitempty"`

	ImportExportLogEntries []ImportExportLog `json:"importExportLogEntries,omitempty"`

	LastUpdatedPasswordAt time.Time `json:"lastUpdatedPasswordAt,omitempty"`

	Locale *Locale `json:"locale,omitempty"`

	LocaleId string `json:"localeId,omitempty"`

	Media []Media `json:"media,omitempty"`

	Name string `json:"name,omitempty"`

	Password interface{} `json:"password,omitempty"`

	PhoneNumber string `json:"phoneNumber,omitempty"`

	RecoveryUser *UserRecovery `json:"recoveryUser,omitempty"`

	StateMachineHistoryEntries []StateMachineHistory `json:"stateMachineHistoryEntries,omitempty"`

	StoreToken string `json:"storeToken,omitempty"`

	TimeZone string `json:"timeZone,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`

	UpdatedCustomers []Customer `json:"updatedCustomers,omitempty"`

	UpdatedOrders []Order `json:"updatedOrders,omitempty"`

	Username string `json:"username,omitempty"`
}

type UserAccessKey

type UserAccessKey struct {
	AccessKey string `json:"accessKey,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	CustomFields interface{} `json:"customFields,omitempty"`

	Id string `json:"id,omitempty"`

	LastUsageAt time.Time `json:"lastUsageAt,omitempty"`

	SecretAccessKey interface{} `json:"secretAccessKey,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`

	User *User `json:"user,omitempty"`

	UserId string `json:"userId,omitempty"`
}

type UserAccessKeyRepository

type UserAccessKeyRepository struct {
	*GenericRepository[UserAccessKey]
}

func NewUserAccessKeyRepository

func NewUserAccessKeyRepository(client *Client) *UserAccessKeyRepository

func (*UserAccessKeyRepository) Delete

func (t *UserAccessKeyRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*UserAccessKeyRepository) Search

func (*UserAccessKeyRepository) SearchAll

func (*UserAccessKeyRepository) SearchIds

func (*UserAccessKeyRepository) Upsert

func (t *UserAccessKeyRepository) Upsert(ctx ApiContext, entity []UserAccessKey) (*http.Response, error)

type UserConfig

type UserConfig struct {
	CreatedAt time.Time `json:"createdAt,omitempty"`

	Id string `json:"id,omitempty"`

	Key string `json:"key,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`

	User *User `json:"user,omitempty"`

	UserId string `json:"userId,omitempty"`

	Value interface{} `json:"value,omitempty"`
}

type UserConfigRepository

type UserConfigRepository struct {
	*GenericRepository[UserConfig]
}

func NewUserConfigRepository

func NewUserConfigRepository(client *Client) *UserConfigRepository

func (*UserConfigRepository) Delete

func (t *UserConfigRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*UserConfigRepository) Search

func (*UserConfigRepository) SearchAll

func (*UserConfigRepository) SearchIds

func (t *UserConfigRepository) SearchIds(ctx ApiContext, criteria Criteria) (*SearchIdsResponse, *http.Response, error)

func (*UserConfigRepository) Upsert

func (t *UserConfigRepository) Upsert(ctx ApiContext, entity []UserConfig) (*http.Response, error)

type UserRecovery

type UserRecovery struct {
	CreatedAt time.Time `json:"createdAt,omitempty"`

	Hash string `json:"hash,omitempty"`

	Id string `json:"id,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`

	User *User `json:"user,omitempty"`

	UserId string `json:"userId,omitempty"`
}

type UserRecoveryRepository

type UserRecoveryRepository struct {
	*GenericRepository[UserRecovery]
}

func NewUserRecoveryRepository

func NewUserRecoveryRepository(client *Client) *UserRecoveryRepository

func (*UserRecoveryRepository) Delete

func (t *UserRecoveryRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*UserRecoveryRepository) Search

func (*UserRecoveryRepository) SearchAll

func (*UserRecoveryRepository) SearchIds

func (*UserRecoveryRepository) Upsert

func (t *UserRecoveryRepository) Upsert(ctx ApiContext, entity []UserRecovery) (*http.Response, error)

type UserRepository

type UserRepository struct {
	*GenericRepository[User]
}

func NewUserRepository

func NewUserRepository(client *Client) *UserRepository

func (*UserRepository) Delete

func (t *UserRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*UserRepository) Search

func (t *UserRepository) Search(ctx ApiContext, criteria Criteria) (*EntityCollection[User], *http.Response, error)

func (*UserRepository) SearchAll

func (t *UserRepository) SearchAll(ctx ApiContext, criteria Criteria) (*EntityCollection[User], *http.Response, error)

func (*UserRepository) SearchIds

func (t *UserRepository) SearchIds(ctx ApiContext, criteria Criteria) (*SearchIdsResponse, *http.Response, error)

func (*UserRepository) Upsert

func (t *UserRepository) Upsert(ctx ApiContext, entity []User) (*http.Response, error)

type Version

type Version struct {
	Commits []VersionCommit `json:"commits,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	Id string `json:"id,omitempty"`

	Name string `json:"name,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`
}

type VersionCommit

type VersionCommit struct {
	AutoIncrement float64 `json:"autoIncrement,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	Data []VersionCommitData `json:"data,omitempty"`

	Id string `json:"id,omitempty"`

	IntegrationId string `json:"integrationId,omitempty"`

	IsMerge bool `json:"isMerge,omitempty"`

	Message string `json:"message,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`

	UserId string `json:"userId,omitempty"`

	Version *Version `json:"version,omitempty"`

	VersionId string `json:"versionId,omitempty"`
}

type VersionCommitData

type VersionCommitData struct {
	Action string `json:"action,omitempty"`

	AutoIncrement float64 `json:"autoIncrement,omitempty"`

	Commit *VersionCommit `json:"commit,omitempty"`

	CreatedAt time.Time `json:"createdAt,omitempty"`

	EntityId interface{} `json:"entityId,omitempty"`

	EntityName string `json:"entityName,omitempty"`

	Id string `json:"id,omitempty"`

	IntegrationId string `json:"integrationId,omitempty"`

	Payload interface{} `json:"payload,omitempty"`

	UpdatedAt time.Time `json:"updatedAt,omitempty"`

	UserId string `json:"userId,omitempty"`

	VersionCommitId string `json:"versionCommitId,omitempty"`
}

type VersionCommitDataRepository

type VersionCommitDataRepository struct {
	*GenericRepository[VersionCommitData]
}

func NewVersionCommitDataRepository

func NewVersionCommitDataRepository(client *Client) *VersionCommitDataRepository

func (*VersionCommitDataRepository) Delete

func (t *VersionCommitDataRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*VersionCommitDataRepository) Search

func (*VersionCommitDataRepository) SearchAll

func (*VersionCommitDataRepository) SearchIds

func (*VersionCommitDataRepository) Upsert

type VersionCommitRepository

type VersionCommitRepository struct {
	*GenericRepository[VersionCommit]
}

func NewVersionCommitRepository

func NewVersionCommitRepository(client *Client) *VersionCommitRepository

func (*VersionCommitRepository) Delete

func (t *VersionCommitRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*VersionCommitRepository) Search

func (*VersionCommitRepository) SearchAll

func (*VersionCommitRepository) SearchIds

func (*VersionCommitRepository) Upsert

func (t *VersionCommitRepository) Upsert(ctx ApiContext, entity []VersionCommit) (*http.Response, error)

type VersionRepository

type VersionRepository struct {
	*GenericRepository[Version]
}

func NewVersionRepository

func NewVersionRepository(client *Client) *VersionRepository

func (*VersionRepository) Delete

func (t *VersionRepository) Delete(ctx ApiContext, ids []string) (*http.Response, error)

func (*VersionRepository) Search

func (*VersionRepository) SearchAll

func (t *VersionRepository) SearchAll(ctx ApiContext, criteria Criteria) (*EntityCollection[Version], *http.Response, error)

func (*VersionRepository) SearchIds

func (t *VersionRepository) SearchIds(ctx ApiContext, criteria Criteria) (*SearchIdsResponse, *http.Response, error)

func (*VersionRepository) Upsert

func (t *VersionRepository) Upsert(ctx ApiContext, entity []Version) (*http.Response, error)

Source Files

Jump to

Keyboard shortcuts

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