entity

package
v0.0.0-...-38e6dbc Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2023 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ExchangeName = "transactions_orders"
View Source
var Topics = []string{
	"order.created",
}

Functions

This section is empty.

Types

type Integration

type Integration struct {
	ID               string `json:"id"`
	Name             string `json:"name"`
	CompanyID        string `json:"company_id"`
	Platform         string `json:"platform"`
	PlatformUsername string `json:"platform_username"`
	PlatformToken    string `json:"platform_token"`
	Active           bool   `json:"active"`
}

func NewIntegration

func NewIntegration(
	name string,
	companyID string,
	platform string,
	platformUsername string,
	platformToken string,
	active bool,
) *Integration

type IntegrationRepository

type IntegrationRepository interface {
	// FindByCompanyIDAndPlatformID(companyID string, platformID string) (*Integration, error)
	// FindAllByCompanyID(companyID string) ([]*Integration, error)
	FindAllByCompanyIDAndActive(companyID string) ([]*Integration, error)
	// FindAllByCompanyIDAndPlatformID(companyID string, platformID string) ([]*Integration, error)
	Update(integration *Integration) error
	Create(integration *Integration) error
	Delete(id string) error
}

Jump to

Keyboard shortcuts

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