Documentation ¶
Index ¶
- Constants
- Variables
- func EncodeForm(values map[string]string, filename string, paramName string, ...) (byteBuf *bytes.Buffer, contentType string, err error)
- type APIError
- type Account
- type AccountAuthenticationSettingsData
- type AccountAuthenticationSettingsDataList
- type AccountAuthenticationSettingsList
- type AccountAuthenticationSettingsMeta
- type AccountAuthenticationSettingsMetaStruct
- type AccountAuthenticationSettingsRelationshipsAuthRealmDataStruct
- type AccountAuthenticationSettingsRelationshipsAuthRealmStruct
- type AccountAuthenticationSettingsRelationshipsStruct
- type AccountAuthenticationSettingsStruct
- type AccountData
- type AccountDataList
- type AccountList
- type AccountMeta
- type AdyenPaymentGateway
- type ApiErrorResult
- type ApiErrors
- type AuthorizeNetPaymentGateway
- type BetweenFloats
- type BetweenIntegers
- type BraintreePaymentGateway
- type CartConnectPaymentGateway
- type Catalog
- type CatalogAttributes
- type CatalogData
- type CatalogDataList
- type CatalogList
- type CatalogMeta
- type CatalogRule
- type CatalogRuleData
- type CatalogRuleDataList
- type CatalogRuleList
- type CatalogRuleMeta
- type CatalogRulesAttributes
- type Client
- func (c *Client) Authenticate() error
- func (c *Client) DoFileRequest(ctx *context.Context, path string, payload io.Reader, contentType string) (body []byte, error ApiErrors)
- func (c *Client) DoRequest(ctx *context.Context, method string, path string, query string, ...) (body []byte, error ApiErrors)
- type ClientOptions
- type Config
- type Credentials
- type Currency
- type CurrencyData
- type CurrencyDataList
- type CurrencyList
- type CurrencyMeta
- type Customer
- type CustomerAuthenticationSettingsData
- type CustomerAuthenticationSettingsDataList
- type CustomerAuthenticationSettingsList
- type CustomerAuthenticationSettingsMeta
- type CustomerAuthenticationSettingsMetaStruct
- type CustomerAuthenticationSettingsRelationshipsAuthRealmDataStruct
- type CustomerAuthenticationSettingsRelationshipsAuthRealmStruct
- type CustomerAuthenticationSettingsRelationshipsStruct
- type CustomerAuthenticationSettingsStruct
- type CustomerData
- type CustomerDataList
- type CustomerList
- type CustomerMeta
- type CyberSourcePaymentGateway
- type DataForTypeIdRelationship
- type DataForTypeIdRelationshipList
- type Entry
- type EntryData
- type EntryList
- type ErrorList
- type Field
- type FieldData
- type FieldList
- type File
- type FileData
- type FileDataList
- type FileLink
- type FileList
- type FileMeta
- type Flow
- type FlowData
- type FlowDataList
- type FlowList
- type FlowMeta
- type FlowRelationship
- type FlowRelationshipAttribute
- type FlowRelationshipAttributeData
- type Hierarchy
- type HierarchyAttributes
- type HierarchyData
- type HierarchyDataList
- type HierarchyList
- type Integration
- type IntegrationConfiguration
- type IntegrationData
- type IntegrationList
- type IntegrationMeta
- type Links
- type ManualPaymentGateway
- type MerchantRealmMappingsData
- type MerchantRealmMappingsStruct
- type Node
- type NodeAttributes
- type NodeData
- type NodeDataList
- type NodeList
- type NodesRelationships
- type OidcProfile
- type OidcProfileLinks
- type PayPalExpressPaymentGateway
- type PayPalPayflowPaymentGateway
- type PaymentGateway
- type PaymentGatewayBase
- type PaymentGatewayData
- type PaymentGatewayList
- type Pricebook
- type PricebookAttributes
- type PricebookData
- type PricebookDataList
- type PricebookList
- type PricebookMeta
- type Product
- type ProductAttributes
- type ProductData
- type ProductDataList
- type ProductList
- type ProductMeta
- type ProductPrice
- type ProductPriceAttributes
- type ProductPriceData
- type ProductPriceDataList
- type ProductPriceInCurrency
- type ProductPriceList
- type ProductPriceMeta
- type ProductRelationships
- type ProductRelationshipsChild
- type ProfileData
- type ProfileDataList
- type ProfileList
- type ProfileMeta
- type Promotion
- type PromotionData
- type PromotionDataList
- type PromotionList
- type PromotionMeta
- type Realm
- type RealmData
- type RealmDataList
- type RealmList
- type RealmMeta
- type RealmRelationships
- type RealmRelationshipsOrigin
- type RealmRelationshipsOriginData
- type Settings
- type SettingsData
- type StripePaymentGateway
- type Timestamps
- type TypeIdRelationship
- type UserAuthenticationInfo
- type UserAuthenticationInfoData
- type UserAuthenticationInfoDataList
- type UserAuthenticationInfoList
- type UserAuthenticationInfoMeta
- type ValidationRuleAttribute
- type ValidationRuleAttributeBasic
- type ValidationRuleBetweenFloatsAttribute
- type ValidationRuleBetweenIntegersAttribute
- type ValidationRuleFloatEnumAttribute
- type ValidationRuleIntegerEnumAttribute
- type ValidationRuleRelationshipAttribute
- type ValidationRuleStringEnumAttribute
Constants ¶
const (
IntegrationType string = "integration"
)
Variables ¶
var AccountAuthenticationSettings accountAuthenticationSettings
var Accounts accounts
var CatalogRules catalogRules
var Catalogs catalogs
var Currencies currencies
var CustomerAuthenticationSettings customerAuthenticationSettings
var Customers customers
var Entries entries
var Fields fields
var Files files
var Flows flows
var Hierarchies hierarchies
var Integrations integrations
var MerchantRealmMappings merchantRealmMappings
var Nodes nodes
var OidcProfiles oidcProfiles
var PaymentGateways paymentGateways
var Pricebooks pricebooks
var ProductPrices productPrices
var Products products
var Promotions promotions
var Realms realms
var SettingsVar settings
var UserAuthenticationInfos userAuthenticationInfos
Functions ¶
Types ¶
type APIError ¶
func (*APIError) UnmarshalJSON ¶
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 AuthorizeNetPaymentGateway ¶
type AuthorizeNetPaymentGateway struct { PaymentGatewayBase Login string `json:"login"` Password string `json:"password"` }
type BetweenFloats ¶
type BetweenIntegers ¶
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 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 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 ¶
Authenticate attempts to generate an access token and save it on the client.
func (*Client) DoFileRequest ¶
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 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 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 (*Entry) UnmarshalJSON ¶
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 ¶
type FileDataList ¶
type FileDataList struct { }
type FileMeta ¶
type FileMeta struct {
Timestamps Timestamps `json:"timestamps,omitempty"`
}
FileMeta contains extra data for an file
type FlowDataList ¶
type FlowDataList struct { }
type FlowMeta ¶
type FlowMeta struct {
Timestamps Timestamps `json:"timestamps,omitempty"`
}
FlowMeta contains extra data for a flow
type FlowRelationship ¶
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 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 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 ManualPaymentGateway ¶
type ManualPaymentGateway struct {
PaymentGatewayBase
}
type MerchantRealmMappingsData ¶
type MerchantRealmMappingsData struct {
Data MerchantRealmMappingsStruct `json:"data"`
}
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 NodeDataList ¶
type NodeDataList struct { }
type NodesRelationships ¶
type NodesRelationships struct {
Parent *DataForTypeIdRelationship `json:"parent,omitempty"`
}
type OidcProfile ¶
type OidcProfileLinks ¶
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 (p *PaymentGatewayBase) Base() *PaymentGatewayBase
func (*PaymentGatewayBase) Type ¶
func (p *PaymentGatewayBase) Type() payment_gateway.Slug
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 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 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 RealmDataList ¶
type RealmDataList struct { }
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 SettingsData ¶
type SettingsData struct {
Data Settings `json:"data"`
}
type StripePaymentGateway ¶
type StripePaymentGateway struct { PaymentGatewayBase Login string `json:"login"` }
type Timestamps ¶
type TypeIdRelationship ¶
type UserAuthenticationInfo ¶
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 ¶
func (p *ValidationRuleAttributeBasic) ValidationType() field.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"` }
Source Files ¶
- account.go
- account_authentication_settings.go
- apierror.go
- auth.go
- catalog.go
- catalog_rules.go
- client.go
- config.go
- currency.go
- customer.go
- customer_authentication_settings.go
- entry.go
- errors.go
- field.go
- file.go
- flow.go
- hierarchy.go
- integration.go
- links.go
- merchant_realm_mapping_prefix.go
- node.go
- oidc_profile.go
- payment_gateway.go
- pricebook.go
- product.go
- product_price.go
- promotion.go
- realm.go
- resource_extension.go
- settings.go
- timestamps.go
- user_authentication_info.go