Documentation
¶
Index ¶
- type ArticleAddons
- type ArticleAddonsValueMergeType
- type ArticleAttributes
- type ArticleAttributesMergeType
- type ArticleTag
- type ArticleTemplate
- type ArticleTemplateType
- type ReadableArticle
- type ReadableArticleMachineType
- type ReadableArticleOrderable
- type ReadableBookableArticleOptions
- type ReadableBookableArticleOptionsInfo
- type ReadableChangeArticleOptions
- type ReadableChangeArticleOptionsInfo
- type ReadableModifierArticleOptions
- type ReadableModifierArticleOptionsInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArticleAddons ¶
type ArticleAddons struct {
Hidden *bool `json:"hidden,omitempty"`
Key string `json:"key"`
Type *string `json:"type,omitempty"`
Value string `json:"value"`
ValueMergeType *ArticleAddonsValueMergeType `json:"valueMergeType,omitempty"`
}
func (*ArticleAddons) Validate ¶
func (o *ArticleAddons) Validate() error
type ArticleAddonsValueMergeType ¶
type ArticleAddonsValueMergeType string
const ArticleAddonsValueMergeTypeAdd ArticleAddonsValueMergeType = "add"
const ArticleAddonsValueMergeTypeSet ArticleAddonsValueMergeType = "set"
func (ArticleAddonsValueMergeType) Validate ¶
func (e ArticleAddonsValueMergeType) Validate() error
type ArticleAttributes ¶
type ArticleAttributes struct {
CustomerEditable *bool `json:"customerEditable,omitempty"`
Key string `json:"key"`
MergeType *ArticleAttributesMergeType `json:"mergeType,omitempty"`
Readonly *bool `json:"readonly,omitempty"`
Required *bool `json:"required,omitempty"`
Unit *string `json:"unit,omitempty"`
Value *string `json:"value,omitempty"`
}
func (*ArticleAttributes) Validate ¶
func (o *ArticleAttributes) Validate() error
type ArticleAttributesMergeType ¶
type ArticleAttributesMergeType string
const ArticleAttributesMergeTypeAdd ArticleAttributesMergeType = "add"
const ArticleAttributesMergeTypeSet ArticleAttributesMergeType = "set"
func (ArticleAttributesMergeType) Validate ¶
func (e ArticleAttributesMergeType) Validate() error
type ArticleTag ¶
type ArticleTag struct {
Description *string `json:"description,omitempty"`
HexColor *string `json:"hexColor,omitempty"`
Id string `json:"id"`
Name *string `json:"name,omitempty"`
}
func (*ArticleTag) Validate ¶
func (o *ArticleTag) Validate() error
type ArticleTemplate ¶
type ArticleTemplate struct {
AdditionalArticles []ReadableBookableArticleOptions `json:"additionalArticles,omitempty"`
Addons []ArticleAddons `json:"addons,omitempty"`
Attributes []ArticleAttributes `json:"attributes,omitempty"`
Description *string `json:"description,omitempty"`
Id string `json:"id"`
IsManagedByDomain bool `json:"isManagedByDomain"`
IsRecurring bool `json:"isRecurring"`
ModifierArticles []ReadableModifierArticleOptions `json:"modifierArticles,omitempty"`
Name string `json:"name"`
Type ArticleTemplateType `json:"type"`
}
func (*ArticleTemplate) Validate ¶
func (o *ArticleTemplate) Validate() error
type ArticleTemplateType ¶
type ArticleTemplateType string
const ArticleTemplateTypeAdditional ArticleTemplateType = "additional"
const ArticleTemplateTypeBase ArticleTemplateType = "base"
const ArticleTemplateTypeMiscellaneous ArticleTemplateType = "miscellaneous"
const ArticleTemplateTypeModifier ArticleTemplateType = "modifier"
const ArticleTemplateTypeSetupFee ArticleTemplateType = "setup_fee"
func (ArticleTemplateType) Validate ¶
func (e ArticleTemplateType) Validate() error
type ReadableArticle ¶
type ReadableArticle struct {
Addons []ArticleAddons `json:"addons,omitempty"`
ArticleId string `json:"articleId"`
Attributes []ArticleAttributes `json:"attributes,omitempty"`
BalanceAddonKey *string `json:"balanceAddonKey,omitempty"`
ContractDurationInMonth float64 `json:"contractDurationInMonth"`
Description *string `json:"description,omitempty"`
ForcedInvoicingPeriodInMonth *float64 `json:"forcedInvoicingPeriodInMonth,omitempty"`
HasIndependentContractPeriod *bool `json:"hasIndependentContractPeriod,omitempty"`
HideOnInvoice *bool `json:"hideOnInvoice,omitempty"`
MachineType *ReadableArticleMachineType `json:"machineType,omitempty"`
ModifierArticles []ReadableModifierArticleOptions `json:"modifierArticles,omitempty"`
Name string `json:"name"`
Orderable ReadableArticleOrderable `json:"orderable"`
PossibleArticleChanges []ReadableChangeArticleOptions `json:"possibleArticleChanges,omitempty"`
Price *float64 `json:"price,omitempty"`
Tags []ArticleTag `json:"tags,omitempty"`
Template ArticleTemplate `json:"template"`
}
func (*ReadableArticle) Validate ¶
func (o *ReadableArticle) Validate() error
type ReadableArticleMachineType ¶
type ReadableArticleMachineType struct {
Cpu string `json:"cpu"`
Memory string `json:"memory"`
Name string `json:"name"`
}
func (*ReadableArticleMachineType) Validate ¶
func (o *ReadableArticleMachineType) Validate() error
type ReadableArticleOrderable ¶
type ReadableArticleOrderable string
const ReadableArticleOrderableBetaTesting ReadableArticleOrderable = "beta_testing"
const ReadableArticleOrderableDeprecated ReadableArticleOrderable = "deprecated"
const ReadableArticleOrderableForbidden ReadableArticleOrderable = "forbidden"
const ReadableArticleOrderableFull ReadableArticleOrderable = "full"
const ReadableArticleOrderableInternal ReadableArticleOrderable = "internal"
func (ReadableArticleOrderable) Validate ¶
func (e ReadableArticleOrderable) Validate() error
type ReadableBookableArticleOptions ¶
type ReadableBookableArticleOptions struct {
ArticleId string `json:"articleId"`
Info *ReadableBookableArticleOptionsInfo `json:"info,omitempty"`
MaxArticleCount *float64 `json:"maxArticleCount,omitempty"`
}
func (*ReadableBookableArticleOptions) Validate ¶
func (o *ReadableBookableArticleOptions) Validate() error
type ReadableBookableArticleOptionsInfo ¶
type ReadableBookableArticleOptionsInfo struct {
ArticleName *string `json:"articleName,omitempty"`
ArticleTemplateName *string `json:"articleTemplateName,omitempty"`
FromArticleTemplate *bool `json:"fromArticleTemplate,omitempty"`
}
func (*ReadableBookableArticleOptionsInfo) Validate ¶
func (o *ReadableBookableArticleOptionsInfo) Validate() error
type ReadableChangeArticleOptions ¶
type ReadableChangeArticleOptions struct {
ArticleId string `json:"articleId"`
Info *ReadableChangeArticleOptionsInfo `json:"info,omitempty"`
}
func (*ReadableChangeArticleOptions) Validate ¶
func (o *ReadableChangeArticleOptions) Validate() error
type ReadableChangeArticleOptionsInfo ¶
type ReadableChangeArticleOptionsInfo struct {
ArticleName *string `json:"articleName,omitempty"`
ArticleTemplateName *string `json:"articleTemplateName,omitempty"`
FromArticleTemplate *bool `json:"fromArticleTemplate,omitempty"`
}
func (*ReadableChangeArticleOptionsInfo) Validate ¶
func (o *ReadableChangeArticleOptionsInfo) Validate() error
type ReadableModifierArticleOptions ¶
type ReadableModifierArticleOptions struct {
ArticleId string `json:"articleId"`
Info *ReadableModifierArticleOptionsInfo `json:"info,omitempty"`
MaxArticleCount float64 `json:"maxArticleCount"`
}
func (*ReadableModifierArticleOptions) Validate ¶
func (o *ReadableModifierArticleOptions) Validate() error
type ReadableModifierArticleOptionsInfo ¶
type ReadableModifierArticleOptionsInfo struct {
ArticleName *string `json:"articleName,omitempty"`
ArticleTemplateName *string `json:"articleTemplateName,omitempty"`
FromArticleTemplate *bool `json:"fromArticleTemplate,omitempty"`
}
func (*ReadableModifierArticleOptionsInfo) Validate ¶
func (o *ReadableModifierArticleOptionsInfo) Validate() error
Source Files
¶
- articleaddons.go
- articleaddons_valuemergetype.go
- articleattributes.go
- articleattributes_mergetype.go
- articletag.go
- articletemplate.go
- articletemplate_type.go
- readablearticle.go
- readablearticle_machinetype.go
- readablearticle_orderable.go
- readablebookablearticleoptions.go
- readablebookablearticleoptions_info.go
- readablechangearticleoptions.go
- readablechangearticleoptions_info.go
- readablemodifierarticleoptions.go
- readablemodifierarticleoptions_info.go
Click to show internal directories.
Click to hide internal directories.