epcc

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2022 License: AGPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IntegrationType string = "integration"
)

Variables

View Source
var AccountAuthenticationSettings accountAuthenticationSettings
View Source
var Accounts accounts
View Source
var CatalogRules catalogRules
View Source
var Catalogs catalogs
View Source
var Currencies currencies
View Source
var CustomerAuthenticationSettings customerAuthenticationSettings
View Source
var Customers customers
View Source
var Entries entries
View Source
var Fields fields
View Source
var Files files
View Source
var Flows flows
View Source
var Hierarchies hierarchies
View Source
var Integrations integrations
View Source
var MerchantRealmMappings merchantRealmMappings
View Source
var Nodes nodes
View Source
var OidcProfiles oidcProfiles
View Source
var PaymentGateways paymentGateways
View Source
var Pricebooks pricebooks
View Source
var ProductPrices productPrices
View Source
var Products products
View Source
var Promotions promotions
View Source
var Realms realms
View Source
var SettingsVar settings
View Source
var UserAuthenticationInfos userAuthenticationInfos

Functions

func EncodeForm

func EncodeForm(values map[string]string, filename string, paramName string, fileContents []byte) (byteBuf *bytes.Buffer, contentType string, err error)

https://stackoverflow.com/questions/20205796/post-data-using-the-content-type-multipart-form-data

Types

type APIError

type APIError struct {
	Code   string
	Status string
	Title  string
	Detail string
}

func (*APIError) String

func (a *APIError) String() string

func (*APIError) UnmarshalJSON

func (e *APIError) UnmarshalJSON(data []byte) error

type Account

type Account struct {
	Id             string `json:"id,omitempty"`
	Type           string `json:"type"`
	Name           string `json:"name,omitempty"`
	LegalName      string `json:"legal_name"`
	RegistrationId string `json:"registration_id,omitempty"`
	ParentId       string `json:"parent_id,omitempty"`
}

type AccountAuthenticationSettingsData

type AccountAuthenticationSettingsData struct {
	Data AccountAuthenticationSettingsStruct `json:"data"`
}

type AccountAuthenticationSettingsDataList

type AccountAuthenticationSettingsDataList struct {
}

type AccountAuthenticationSettingsList

type AccountAuthenticationSettingsList struct {
	Data []AccountAuthenticationSettingsStruct
}

type AccountAuthenticationSettingsMeta

type AccountAuthenticationSettingsMeta struct {
	Timestamps Timestamps `json:"timestamps,omitempty"`
}

AccountAuthenticationSettingsMeta contains extra data for an accountAuthenticationSettings

type AccountAuthenticationSettingsMetaStruct

type AccountAuthenticationSettingsMetaStruct struct {
	ClientId string `json:"client_id"`
}

type AccountAuthenticationSettingsRelationshipsAuthRealmDataStruct

type AccountAuthenticationSettingsRelationshipsAuthRealmDataStruct struct {
	Id string `json:"id"`
}

type AccountAuthenticationSettingsRelationshipsAuthRealmStruct

type AccountAuthenticationSettingsRelationshipsAuthRealmStruct struct {
	Data AccountAuthenticationSettingsRelationshipsAuthRealmDataStruct `json:"data"`
}

type AccountAuthenticationSettingsRelationshipsStruct

type AccountAuthenticationSettingsRelationshipsStruct struct {
	AuthenticationRealm AccountAuthenticationSettingsRelationshipsAuthRealmStruct `json:"authentication_realm"`
}

type AccountAuthenticationSettingsStruct

type AccountAuthenticationSettingsStruct struct {
	Relationships AccountAuthenticationSettingsRelationshipsStruct `json:"relationships"`
	Meta          AccountAuthenticationSettingsMetaStruct          `json:"meta"`
}

type AccountData

type AccountData struct {
	Data Account `json:"data"`
}

type AccountDataList

type AccountDataList struct {
}

type AccountList

type AccountList struct {
	Data []Account
}

type AccountMeta

type AccountMeta struct {
	Timestamps Timestamps `json:"timestamps,omitempty"`
}

AccountMeta contains extra data for an account

type AdyenPaymentGateway

type AdyenPaymentGateway struct {
	PaymentGatewayBase
	MerchantAccount string `json:"merchant_account"`
	Username        string `json:"username"`
	Password        string `json:"password"`
}

type ApiErrorResult

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

func (*ApiErrorResult) Error

func (a *ApiErrorResult) Error() string

func (*ApiErrorResult) HttpMethod

func (a *ApiErrorResult) HttpMethod() string

func (*ApiErrorResult) HttpPath

func (a *ApiErrorResult) HttpPath() string

func (*ApiErrorResult) HttpStatusCode

func (a *ApiErrorResult) HttpStatusCode() uint16

func (*ApiErrorResult) ListOfErrors

func (a *ApiErrorResult) ListOfErrors() *ErrorList

type ApiErrors

type ApiErrors interface {
	Error() string
	ListOfErrors() *ErrorList
	HttpStatusCode() uint16
	HttpMethod() string
	HttpPath() string
}

func FromError

func FromError(error error) (errors ApiErrors)

type AuthorizeNetPaymentGateway

type AuthorizeNetPaymentGateway struct {
	PaymentGatewayBase
	Login    string `json:"login"`
	Password string `json:"password"`
}

type BetweenFloats

type BetweenFloats struct {
	From float64 `json:"from"`
	To   float64 `json:"to"`
}

type BetweenIntegers

type BetweenIntegers struct {
	From int `json:"from"`
	To   int `json:"to"`
}

type BraintreePaymentGateway

type BraintreePaymentGateway struct {
	PaymentGatewayBase
	MerchantId  string `json:"merchant_id"`
	PrivateKey  string `json:"private_key"`
	PublicKey   string `json:"public_key"`
	Environment string `json:"environment"`
}

type CartConnectPaymentGateway

type CartConnectPaymentGateway struct {
	PaymentGatewayBase
	MerchantId string `json:"merchant_id"`
	Username   string `json:"username"`
	Password   string `json:"password"`
}

type Catalog

type Catalog struct {
	Id         string            `json:"id,omitempty"`
	Type       string            `json:"type"`
	Attributes CatalogAttributes `json:"attributes"`
}

type CatalogAttributes

type CatalogAttributes struct {
	Name        string   `json:"name"`
	Description string   `json:"description,omitempty"`
	Hierarchies []string `json:"hierarchy_ids,omitempty"`
	PriceBook   string   `json:"pricebook_id,omitempty"`
}

type CatalogData

type CatalogData struct {
	Data Catalog `json:"data"`
}

type CatalogDataList

type CatalogDataList struct {
}

type CatalogList

type CatalogList struct {
	Data []Catalog
}

type CatalogMeta

type CatalogMeta struct {
	Timestamps Timestamps `json:"timestamps,omitempty"`
}

CatalogMeta contains extra data for an catalog

type CatalogRule

type CatalogRule struct {
	Id         string                 `json:"id,omitempty"`
	Type       string                 `json:"type"`
	Attributes CatalogRulesAttributes `json:"attributes"`
}

type CatalogRuleData

type CatalogRuleData struct {
	Data CatalogRule `json:"data"`
}

type CatalogRuleDataList

type CatalogRuleDataList struct {
}

type CatalogRuleList

type CatalogRuleList struct {
	Data []CatalogRule
}

type CatalogRuleMeta

type CatalogRuleMeta struct {
	Timestamps Timestamps `json:"timestamps,omitempty"`
}

type CatalogRulesAttributes

type CatalogRulesAttributes struct {
	Name        string   `json:"name"`
	Description string   `json:"description,omitempty"`
	Catalog     string   `json:"catalog_id,omitempty"`
	Customers   []string `json:"customer_ids,omitempty"`
}

type Client

type Client struct {
	BaseURL       string
	BetaFeatures  string
	HTTPClient    *http.Client
	RetryStrategy retry.Strategy

	Credentials       *Credentials
	UserAgent         string
	AdditionalHeaders *map[string]string
	LogDirectory      *url.URL
	Limiter           *rate.Limiter
	// contains filtered or unexported fields
}

Client is the type used to interface with EPCC API.

func NewClient

func NewClient(options ...ClientOptions) *Client

NewClient creates a new instance of a Client.

func (*Client) Authenticate

func (c *Client) Authenticate() error

Authenticate attempts to generate an access token and save it on the client.

func (*Client) DoFileRequest

func (c *Client) DoFileRequest(ctx *context.Context, path string, payload io.Reader, contentType string) (body []byte, error ApiErrors)

func (*Client) DoRequest

func (c *Client) DoRequest(ctx *context.Context, method string, path string, query string, payload io.Reader) (body []byte, error ApiErrors)

DoRequest makes a html request to the EPCC API and handles the response.

type ClientOptions

type ClientOptions struct {
	BaseURL                    string // BaseURL is the where requests will be made to.
	BetaFeatures               string
	ClientTimeout              time.Duration // ClientTimeout is how long the client waits for a response before timing out.
	RetryLimitTimeout          time.Duration // RetryLimitTimeout is how long requests will be retried for status codes 429, 500, 503 & 504
	Credentials                *Credentials
	UserAgent                  string
	AdditionalHeaders          *map[string]string
	RateLimitRequestsPerSecond uint16
}

ClientOptions can be used to configure a new client.

type Config

type Config struct {
	Credentials struct {
		ClientID     string `envconfig:"EPCC_CLIENT_ID"`
		ClientSecret string `envconfig:"EPCC_CLIENT_SECRET"`
	}
	BaseURL           string `envconfig:"EPCC_API_BASE_URL"`
	BetaFeatures      string `envconfig:"EPCC_BETA_API_FEATURES"`
	ClientTimeout     time.Duration
	RetryLimitTimeout time.Duration
	RateLimit         uint16 `envconfig:"EPCC_RATE_LIMIT,default=25"`
}

Config is used to keep track of configuration in one place. fields tagged envconfig are read from environment variables. fields tagged default are default values.

type Credentials

type Credentials struct {
	ClientId     string
	ClientSecret string
}

type Currency

type Currency struct {
	Id                string `json:"id"`
	Type              string `json:"type"`
	Code              string `json:"code"`
	ExchangeRate      int    `json:"exchange_rate"`
	Format            string `json:"format"`
	DecimalPoint      string `json:"decimal_point"`
	ThousandSeparator string `json:"thousand_separator"`
	DecimalPlaces     int    `json:"decimal_places"`
	Default           bool   `json:"default"`
	Enabled           bool   `json:"enabled"`
}

type CurrencyData

type CurrencyData struct {
	Data Currency `json:"data"`
}

type CurrencyDataList

type CurrencyDataList struct {
}

type CurrencyList

type CurrencyList struct {
	Data []Currency
}

type CurrencyMeta

type CurrencyMeta struct {
	Timestamps Timestamps `json:"timestamps,omitempty"`
}

CurrencyMeta contains extra data for an currency

type Customer

type Customer struct {
	Id       string       `json:"id,omitempty"`
	Type     string       `json:"type"`
	Name     string       `json:"name,omitempty"`
	Email    string       `json:"email,omitempty"`
	Password *interface{} `json:"password,omitempty"`
}

type CustomerAuthenticationSettingsData

type CustomerAuthenticationSettingsData struct {
	Data CustomerAuthenticationSettingsStruct `json:"data"`
}

type CustomerAuthenticationSettingsDataList

type CustomerAuthenticationSettingsDataList struct {
}

type CustomerAuthenticationSettingsList

type CustomerAuthenticationSettingsList struct {
	Data []CustomerAuthenticationSettingsStruct
}

type CustomerAuthenticationSettingsMeta

type CustomerAuthenticationSettingsMeta struct {
	Timestamps Timestamps `json:"timestamps,omitempty"`
}

CustomerAuthenticationSettingsMeta contains extra data for an customerAuthenticationSettings

type CustomerAuthenticationSettingsMetaStruct

type CustomerAuthenticationSettingsMetaStruct struct {
	ClientId string `json:"client_id"`
}

type CustomerAuthenticationSettingsRelationshipsAuthRealmDataStruct

type CustomerAuthenticationSettingsRelationshipsAuthRealmDataStruct struct {
	Id string `json:"id"`
}

type CustomerAuthenticationSettingsRelationshipsAuthRealmStruct

type CustomerAuthenticationSettingsRelationshipsAuthRealmStruct struct {
	Data CustomerAuthenticationSettingsRelationshipsAuthRealmDataStruct `json:"data"`
}

type CustomerAuthenticationSettingsRelationshipsStruct

type CustomerAuthenticationSettingsRelationshipsStruct struct {
	AuthenticationRealm CustomerAuthenticationSettingsRelationshipsAuthRealmStruct `json:"authentication-realm"`
}

type CustomerAuthenticationSettingsStruct

type CustomerAuthenticationSettingsStruct struct {
	Relationships CustomerAuthenticationSettingsRelationshipsStruct `json:"relationships"`
	Meta          CustomerAuthenticationSettingsMetaStruct          `json:"meta"`
}

type CustomerData

type CustomerData struct {
	Data Customer `json:"data"`
}

type CustomerDataList

type CustomerDataList struct {
}

type CustomerList

type CustomerList struct {
	Data []Customer
}

type CustomerMeta

type CustomerMeta struct {
	Timestamps Timestamps `json:"timestamps,omitempty"`
}

CustomerMeta contains extra data for an customer

type CyberSourcePaymentGateway

type CyberSourcePaymentGateway struct {
	PaymentGatewayBase
	Login    string `json:"login"`
	Password string `json:"password"`
}

type DataForTypeIdRelationship

type DataForTypeIdRelationship struct {
	Data *TypeIdRelationship `json:"data"`
}

type DataForTypeIdRelationshipList

type DataForTypeIdRelationshipList struct {
	Data *[]TypeIdRelationship `json:"data"`
}

type Entry

type Entry struct {
	Id       string             `json:"id,omitempty"`
	Type     string             `json:"type,omitempty"`
	Strings  map[string]string  `json:"-"`
	Numbers  map[string]float64 `json:"-"`
	Booleans map[string]bool    `json:"-"`
}

func (Entry) MarshalJSON

func (e Entry) MarshalJSON() ([]byte, error)

func (*Entry) UnmarshalJSON

func (e *Entry) UnmarshalJSON(body []byte) error

type EntryData

type EntryData struct {
	Data Entry `json:"data"`
}

type EntryList

type EntryList struct {
	Data []Entry
}

type ErrorList

type ErrorList struct {
	APIErrors []APIError `json:"errors"`
}

func (*ErrorList) String

func (e *ErrorList) String() string

type Field

type Field struct {
	Id              string                     `json:"id,omitempty"`
	Type            string                     `json:"type"`
	FieldType       string                     `json:"field_type"`
	Slug            string                     `json:"slug"`
	Name            string                     `json:"name"`
	Description     string                     `json:"description"`
	Required        bool                       `json:"required"`
	Default         string                     `json:"default,omitempty"`
	Enabled         bool                       `json:"enabled"`
	Order           int                        `json:"order,omitempty"`
	OmitNull        bool                       `json:"omit_null,omitempty"`
	ValidationRules []ValidationRuleAttribute  `json:"validation_rules,omitempty"`
	Relationships   *FlowRelationshipAttribute `json:"relationships"`
}

func (*Field) UnmarshalJSON

func (f *Field) UnmarshalJSON(body []byte) error

type FieldData

type FieldData struct {
	Data Field `json:"data"`
}

type FieldList

type FieldList struct {
	Data []Field
}

type File

type File struct {
	Id       string    `json:"id"`
	Type     string    `json:"type"`
	FileName string    `json:"file_name,omitempty"`
	Link     *FileLink `json:"link,omitempty"`
	MimeType string    `json:"mime_type,omitempty"`
	FileSize int       `json:"file_size,omitempty"`
	Public   bool      `json:"public"`
}

type FileData

type FileData struct {
	Data File `json:"data"`
}

type FileDataList

type FileDataList struct {
}
type FileLink struct {
	Href string `json:"href,omitempty"`
}

type FileList

type FileList struct {
	Data []File
}

type FileMeta

type FileMeta struct {
	Timestamps Timestamps `json:"timestamps,omitempty"`
}

FileMeta contains extra data for an file

type Flow

type Flow struct {
	Id          string `json:"id,omitempty"`
	Type        string `json:"type"`
	Name        string `json:"name,omitempty"`
	Slug        string `json:"slug,omitempty"`
	Description string `json:"description,omitempty"`
	Enabled     bool   `json:"enabled"`
}

type FlowData

type FlowData struct {
	Data Flow `json:"data"`
}

type FlowDataList

type FlowDataList struct {
}

type FlowList

type FlowList struct {
	Data []Flow
}

type FlowMeta

type FlowMeta struct {
	Timestamps Timestamps `json:"timestamps,omitempty"`
}

FlowMeta contains extra data for a flow

type FlowRelationship

type FlowRelationship struct {
	Id   string `json:"id,omitempty"`
	Type string `json:"type,omitempty"`
}

type FlowRelationshipAttribute

type FlowRelationshipAttribute struct {
	Flow *FlowRelationshipAttributeData `json:"flow"`
}

type FlowRelationshipAttributeData

type FlowRelationshipAttributeData struct {
	Data *FlowRelationship `json:"data,omitempty"`
}

type Hierarchy

type Hierarchy struct {
	Id         string              `json:"id,omitempty"`
	Type       string              `json:"type"`
	Attributes HierarchyAttributes `json:"attributes"`
}

type HierarchyAttributes

type HierarchyAttributes struct {
	Name        string `json:"name,omitempty"`
	Description string `json:"description,omitempty"`
	Slug        string `json:"slug,omitempty"`
}

type HierarchyData

type HierarchyData struct {
	Data Hierarchy `json:"data"`
}

type HierarchyDataList

type HierarchyDataList struct {
}

type HierarchyList

type HierarchyList struct {
	Data []Hierarchy
}

type Integration

type Integration struct {
	Id              string                   `json:"id,omitempty"`
	Type            string                   `json:"type"`
	IntegrationType string                   `json:"integration_type"`
	Name            string                   `json:"name"`
	Description     string                   `json:"description,omitempty"`
	Enabled         bool                     `json:"enabled"`
	Configuration   IntegrationConfiguration `json:"configuration"`
	Observes        []string                 `json:"observes"`
	Meta            IntegrationMeta          `json:"-"`
}

type IntegrationConfiguration

type IntegrationConfiguration struct {
	Url                string `json:"url"`
	SecretKey          string `json:"secret_key,omitempty"`
	AwsAccessKeyId     string `json:"aws_access_key_id,omitempty"`
	AwsSecretAccessKey string `json:"aws_secret_access_key,omitempty"`
	Region             string `json:"region,omitempty"`
}

type IntegrationData

type IntegrationData struct {
	Data Integration `json:"data"`
}

type IntegrationList

type IntegrationList struct {
	Data []Integration
}

type IntegrationMeta

type IntegrationMeta struct {
	Timestamps Timestamps `json:"timestamps,omitempty"`
}

IntegrationMeta contains extra data for an Integration

type Links struct {
	Self string `json:"self"`
}

type ManualPaymentGateway

type ManualPaymentGateway struct {
	PaymentGatewayBase
}

type MerchantRealmMappingsData

type MerchantRealmMappingsData struct {
	Data MerchantRealmMappingsStruct `json:"data"`
}

type MerchantRealmMappingsStruct

type MerchantRealmMappingsStruct struct {
	ID      string  `json:"id"`
	Prefix  *string `json:"prefix"`
	RealmID string  `json:"realm_id,omitempty"`
	StoreID string  `json:"store_id,omitempty"`
	Type    string  `json:"type"`
}

type Node

type Node struct {
	Id            string              `json:"id,omitempty"`
	Type          string              `json:"type"`
	Attributes    NodeAttributes      `json:"attributes"`
	Relationships *NodesRelationships `json:"relationships,omitempty"`
}

type NodeAttributes

type NodeAttributes struct {
	Name        string `json:"name,omitempty"`
	Description string `json:"description,omitempty"`
	Slug        string `json:"slug,omitempty"`
}

type NodeData

type NodeData struct {
	Data Node `json:"data"`
}

type NodeDataList

type NodeDataList struct {
}

type NodeList

type NodeList struct {
	Data []Node
}

type NodesRelationships

type NodesRelationships struct {
	Parent *DataForTypeIdRelationship `json:"parent,omitempty"`
}

type OidcProfile

type OidcProfile struct {
	Id           string `json:"id"`
	Type         string `json:"type"`
	Name         string `json:"name"`
	DiscoveryUrl string `json:"discovery_url"`
	ClientID     string `json:"client_id"`
	ClientSecret string `json:"client_secret"`
	RealmId      string `json:"-"`
}
type OidcProfileLinks struct {
	CallbackEndpoint      string `json:"callback-endpoint,omitempty"`
	AuthorizationEndpoint string `json:"authorization-endpoint,omitempty"`
	ClientDiscoveryUrl    string `json:"client-discovery-url,omitempty"`
}

type PayPalExpressPaymentGateway

type PayPalExpressPaymentGateway struct {
	PaymentGatewayBase
	Login     string `json:"login"`
	Password  string `json:"password"`
	Signature string `json:"signature"`
}

type PayPalPayflowPaymentGateway

type PayPalPayflowPaymentGateway struct {
	PaymentGatewayBase
	Partner  string `json:"partner"`
	Login    string `json:"login"`
	Password string `json:"password"`
}

type PaymentGateway

type PaymentGateway interface {
	Type() payment_gateway.Slug
	Base() *PaymentGatewayBase
}

type PaymentGatewayBase

type PaymentGatewayBase struct {
	Name    string `json:"name,omitempty"`
	Slug    string `json:"slug"`
	Enabled bool   `json:"enabled"`
	Test    bool   `json:"test"`
}

func (*PaymentGatewayBase) Base

func (*PaymentGatewayBase) Type

type PaymentGatewayData

type PaymentGatewayData struct {
	Data PaymentGateway `json:"data"`
}

func (*PaymentGatewayData) UnmarshalJSON

func (d *PaymentGatewayData) UnmarshalJSON(body []byte) error

type PaymentGatewayList

type PaymentGatewayList struct {
	Data []PaymentGateway
}

type Pricebook

type Pricebook struct {
	Id         string              `json:"id,omitempty"`
	Type       string              `json:"type"`
	Attributes PricebookAttributes `json:"attributes"`
}

type PricebookAttributes

type PricebookAttributes struct {
	Name        string `json:"name"`
	Description string `json:"description,omitempty"`
}

type PricebookData

type PricebookData struct {
	Data Pricebook `json:"data"`
}

type PricebookDataList

type PricebookDataList struct {
}

type PricebookList

type PricebookList struct {
	Data []Pricebook
}

type PricebookMeta

type PricebookMeta struct {
	Timestamps Timestamps `json:"timestamps,omitempty"`
}

PricebookMeta contains extra data for an pricebook

type Product

type Product struct {
	Type       string            `json:"type"`
	Id         string            `json:"id,omitempty"`
	Attributes ProductAttributes `json:"attributes"`
}

type ProductAttributes

type ProductAttributes struct {
	Name          string `json:"name"`
	CommodityType string `json:"commodity_type"` // Valid values: physical or digital
	Sku           string `json:"sku"`
	Slug          string `json:"slug,omitempty"`
	Description   string `json:"description,omitempty"`
	Mpn           string `json:"mpn,omitempty"`
	Status        string `json:"status,omitempty"`
	UpcEan        string `json:"upc_ean,omitempty"`
}

type ProductData

type ProductData struct {
	Data Product `json:"data"`
}

type ProductDataList

type ProductDataList struct {
}

type ProductList

type ProductList struct {
	Data []Product
}

type ProductMeta

type ProductMeta struct {
	Timestamps Timestamps `json:"timestamps,omitempty"`
}

ProductMeta contains extra data for an product

type ProductPrice

type ProductPrice struct {
	Type       string                 `json:"type"`
	Id         string                 `json:"id,omitempty"`
	Attributes ProductPriceAttributes `json:"attributes"`
}

type ProductPriceAttributes

type ProductPriceAttributes struct {
	Sku        string                            `json:"sku"`
	Currencies map[string]ProductPriceInCurrency `json:"currencies"`
}

type ProductPriceData

type ProductPriceData struct {
	Data ProductPrice `json:"data"`
}

type ProductPriceDataList

type ProductPriceDataList struct {
}

type ProductPriceInCurrency

type ProductPriceInCurrency struct {
	Amount      int  `json:"amount"`
	IncludesTax bool `json:"includes_tax,omitempty"`
}

type ProductPriceList

type ProductPriceList struct {
	Data []ProductPrice
}

type ProductPriceMeta

type ProductPriceMeta struct {
	Timestamps Timestamps `json:"timestamps,omitempty"`
}

ProductPriceMeta contains extra data for an productPrice

type ProductRelationships

type ProductRelationships struct {
	Files     ProductRelationshipsChild `json:"files"`
	Templates ProductRelationshipsChild `json:"templates"`
}

type ProductRelationshipsChild

type ProductRelationshipsChild struct {
	Data string `json:"files"`
}

type ProfileData

type ProfileData struct {
	Data  OidcProfile       `json:"data"`
	Links *OidcProfileLinks `json:"links,omitempty"`
}

type ProfileDataList

type ProfileDataList struct {
}

type ProfileList

type ProfileList struct {
	Data []OidcProfile
}

type ProfileMeta

type ProfileMeta struct {
	Timestamps Timestamps `json:"timestamps,omitempty"`
}

ProfileMeta contains extra data for an profile

type Promotion

type Promotion struct {
	Id               string      `json:"id"`
	Type             string      `json:"type"`
	Name             string      `json:"name"`
	Description      string      `json:"description"`
	Enabled          bool        `json:"enabled"`
	Automatic        bool        `json:"automatic"`
	PromotionType    string      `json:"promotion_type"`
	Start            string      `json:"start"`
	End              string      `json:"end"`
	Schema           interface{} `json:"schema"`
	MinCartValue     interface{} `json:"min_cart_value"`
	MaxDiscountValue interface{} `json:"max_discount_value"`
}

type PromotionData

type PromotionData struct {
	Data Promotion `json:"data"`
}

type PromotionDataList

type PromotionDataList struct {
}

type PromotionList

type PromotionList struct {
	Data []Promotion
}

type PromotionMeta

type PromotionMeta struct {
	Timestamps Timestamps `json:"timestamps,omitempty"`
}

PromotionMeta contains extra data for an promotion

type Realm

type Realm struct {
	Id                   string              `json:"id"`
	Type                 string              `json:"type"`
	Name                 string              `json:"name"`
	RedirectUris         []interface{}       `json:"redirect_uris"`
	DuplicateEmailPolicy string              `json:"duplicate_email_policy"`
	Relationships        *RealmRelationships `json:"relationships"`
}

type RealmData

type RealmData struct {
	Data Realm `json:"data"`
}

type RealmDataList

type RealmDataList struct {
}

type RealmList

type RealmList struct {
	Data []Realm
}

type RealmMeta

type RealmMeta struct {
	Timestamps Timestamps `json:"timestamps,omitempty"`
}

RealmMeta contains extra data for an realm

type RealmRelationships

type RealmRelationships struct {
	Origin *RealmRelationshipsOrigin `json:"origin"`
}

type RealmRelationshipsOrigin

type RealmRelationshipsOrigin struct {
	Data *RealmRelationshipsOriginData `json:"data"`
}

type RealmRelationshipsOriginData

type RealmRelationshipsOriginData struct {
	Id   string `json:"id"`
	Type string `json:"type"`
}

type Settings

type Settings struct {
	Id                  string        `json:"id"`
	Type                string        `json:"type"`
	PageLength          int           `json:"page_length"`
	ListChildProducts   bool          `json:"list_child_products"`
	AdditionalLanguages []interface{} `json:"additional_languages"`
	CalculationMethod   string        `json:"calculation_method"`
}

type SettingsData

type SettingsData struct {
	Data Settings `json:"data"`
}

type StripePaymentGateway

type StripePaymentGateway struct {
	PaymentGatewayBase
	Login string `json:"login"`
}

type Timestamps

type Timestamps struct {
	CreatedAt string `json:"created_at,omitempty"`
	UpdatedAt string `json:"updated_at,omitempty"`
}

type TypeIdRelationship

type TypeIdRelationship struct {
	Id   string `json:"id,omitempty"`
	Type string `json:"type,omitempty"`
}

type UserAuthenticationInfo

type UserAuthenticationInfo struct {
	Id      string `json:"id"`
	Type    string `json:"type"`
	Name    string `json:"name"`
	Email   string `json:"email"`
	RealmId string `json:"-"`
}

type UserAuthenticationInfoData

type UserAuthenticationInfoData struct {
	Data UserAuthenticationInfo `json:"data"`
}

type UserAuthenticationInfoDataList

type UserAuthenticationInfoDataList struct {
}

type UserAuthenticationInfoList

type UserAuthenticationInfoList struct {
	Data []UserAuthenticationInfo
}

type UserAuthenticationInfoMeta

type UserAuthenticationInfoMeta struct {
	Timestamps Timestamps `json:"timestamps,omitempty"`
}

UserAuthenticationInfoMeta contains extra data for an userAuthenticationInfo

type ValidationRuleAttribute

type ValidationRuleAttribute interface {
	ValidationType() field.ValidationType
}

type ValidationRuleAttributeBasic

type ValidationRuleAttributeBasic struct {
	Type string `json:"type"`
}

func (*ValidationRuleAttributeBasic) ValidationType

type ValidationRuleBetweenFloatsAttribute

type ValidationRuleBetweenFloatsAttribute struct {
	ValidationRuleAttributeBasic
	Options BetweenFloats `json:"options"`
}

type ValidationRuleBetweenIntegersAttribute

type ValidationRuleBetweenIntegersAttribute struct {
	ValidationRuleAttributeBasic
	Options BetweenIntegers `json:"options"`
}

type ValidationRuleFloatEnumAttribute

type ValidationRuleFloatEnumAttribute struct {
	ValidationRuleAttributeBasic
	Options []float64 `json:"options"`
}

type ValidationRuleIntegerEnumAttribute

type ValidationRuleIntegerEnumAttribute struct {
	ValidationRuleAttributeBasic
	Options []int `json:"options"`
}

type ValidationRuleRelationshipAttribute

type ValidationRuleRelationshipAttribute struct {
	ValidationRuleAttributeBasic
	To string `json:"to"`
}

type ValidationRuleStringEnumAttribute

type ValidationRuleStringEnumAttribute struct {
	ValidationRuleAttributeBasic
	Options []string `json:"options"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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