Documentation ¶
Index ¶
- Variables
- func CacheExpires(r *http.Response) time.Time
- func IsNil(i interface{}) bool
- func PtrBool(v bool) *bool
- func PtrFloat32(v float32) *float32
- func PtrFloat64(v float64) *float64
- func PtrInt(v int) *int
- func PtrInt32(v int32) *int32
- func PtrInt64(v int64) *int64
- func PtrString(v string) *string
- func PtrTime(v time.Time) *time.Time
- type APIClient
- type APIKey
- type APIResponse
- type ApiGetCategoryRequest
- type ApiGetContentRequest
- type ApiGetEventRequest
- type ApiGetManufacturerRequest
- type ApiGetProductRequest
- type ApiListCategoriesRequest
- type ApiListEventsRequest
- type ApiListManufacturersRequest
- type ApiListProductsRequest
- type ApiListServiceCategoriesRequest
- type BasicAuth
- type CategoriesAPIService
- func (a *CategoriesAPIService) GetCategory(ctx context.Context, id string) ApiGetCategoryRequest
- func (a *CategoriesAPIService) GetCategoryExecute(r ApiGetCategoryRequest) (*Category, *http.Response, error)
- func (a *CategoriesAPIService) ListCategories(ctx context.Context) ApiListCategoriesRequest
- func (a *CategoriesAPIService) ListCategoriesExecute(r ApiListCategoriesRequest) (*CategoryList, *http.Response, error)
- type Category
- func (o *Category) GetDescription() string
- func (o *Category) GetDescriptionOk() (*string, bool)
- func (o *Category) GetId() string
- func (o *Category) GetIdOk() (*string, bool)
- func (o *Category) GetImageUrls() map[string]string
- func (o *Category) GetImageUrlsOk() (*map[string]string, bool)
- func (o *Category) GetName() string
- func (o *Category) GetNameOk() (*string, bool)
- func (o *Category) GetOrder() int64
- func (o *Category) GetOrderOk() (*int64, bool)
- func (o *Category) GetParentId() string
- func (o *Category) GetParentIdOk() (*string, bool)
- func (o *Category) GetProductIds() []string
- func (o *Category) GetProductIdsOk() ([]string, bool)
- func (o *Category) HasDescription() bool
- func (o *Category) HasImageUrls() bool
- func (o *Category) HasParentId() bool
- func (o *Category) HasProductIds() bool
- func (o Category) MarshalJSON() ([]byte, error)
- func (o *Category) SetDescription(v string)
- func (o *Category) SetId(v string)
- func (o *Category) SetImageUrls(v map[string]string)
- func (o *Category) SetName(v string)
- func (o *Category) SetOrder(v int64)
- func (o *Category) SetParentId(v string)
- func (o *Category) SetProductIds(v []string)
- func (o Category) ToMap() (map[string]interface{}, error)
- func (o *Category) UnmarshalJSON(data []byte) (err error)
- type CategoryList
- func (o *CategoryList) GetCategories() []Category
- func (o *CategoryList) GetCategoriesOk() ([]Category, bool)
- func (o CategoryList) MarshalJSON() ([]byte, error)
- func (o *CategoryList) SetCategories(v []Category)
- func (o CategoryList) ToMap() (map[string]interface{}, error)
- func (o *CategoryList) UnmarshalJSON(data []byte) (err error)
- type Configuration
- type Content
- func (o *Content) GetBody() string
- func (o *Content) GetBodyOk() (*string, bool)
- func (o *Content) GetContentType() ContentType
- func (o *Content) GetContentTypeOk() (*ContentType, bool)
- func (o *Content) GetName() string
- func (o *Content) GetNameOk() (*string, bool)
- func (o Content) MarshalJSON() ([]byte, error)
- func (o *Content) SetBody(v string)
- func (o *Content) SetContentType(v ContentType)
- func (o *Content) SetName(v string)
- func (o Content) ToMap() (map[string]interface{}, error)
- func (o *Content) UnmarshalJSON(data []byte) (err error)
- type ContentAPIService
- type ContentList
- func (o *ContentList) GetContent() []Content
- func (o *ContentList) GetContentOk() ([]Content, bool)
- func (o ContentList) MarshalJSON() ([]byte, error)
- func (o *ContentList) SetContent(v []Content)
- func (o ContentList) ToMap() (map[string]interface{}, error)
- func (o *ContentList) UnmarshalJSON(data []byte) (err error)
- type ContentType
- type Event
- func (o *Event) GetDescription() string
- func (o *Event) GetDescriptionOk() (*string, bool)
- func (o *Event) GetEnd() time.Time
- func (o *Event) GetEndOk() (*time.Time, bool)
- func (o *Event) GetEventType() string
- func (o *Event) GetEventTypeOk() (*string, bool)
- func (o *Event) GetId() string
- func (o *Event) GetIdOk() (*string, bool)
- func (o *Event) GetName() string
- func (o *Event) GetNameOk() (*string, bool)
- func (o *Event) GetStart() time.Time
- func (o *Event) GetStartOk() (*time.Time, bool)
- func (o *Event) GetWholeDay() bool
- func (o *Event) GetWholeDayOk() (*bool, bool)
- func (o *Event) HasDescription() bool
- func (o *Event) HasWholeDay() bool
- func (o Event) MarshalJSON() ([]byte, error)
- func (o *Event) SetDescription(v string)
- func (o *Event) SetEnd(v time.Time)
- func (o *Event) SetEventType(v string)
- func (o *Event) SetId(v string)
- func (o *Event) SetName(v string)
- func (o *Event) SetStart(v time.Time)
- func (o *Event) SetWholeDay(v bool)
- func (o Event) ToMap() (map[string]interface{}, error)
- func (o *Event) UnmarshalJSON(data []byte) (err error)
- type EventList
- type EventsAPIService
- func (a *EventsAPIService) GetEvent(ctx context.Context, id string) ApiGetEventRequest
- func (a *EventsAPIService) GetEventExecute(r ApiGetEventRequest) (*Event, *http.Response, error)
- func (a *EventsAPIService) ListEvents(ctx context.Context) ApiListEventsRequest
- func (a *EventsAPIService) ListEventsExecute(r ApiListEventsRequest) (*EventList, *http.Response, error)
- type GenericOpenAPIError
- type GocomError
- func (o *GocomError) GetCode() GocomErrorCode
- func (o *GocomError) GetCodeOk() (*GocomErrorCode, bool)
- func (o *GocomError) GetInstance() string
- func (o *GocomError) GetInstanceOk() (*string, bool)
- func (o *GocomError) GetMessage() string
- func (o *GocomError) GetMessageOk() (*string, bool)
- func (o *GocomError) GetStatus() int32
- func (o *GocomError) GetStatusOk() (*int32, bool)
- func (o *GocomError) HasInstance() bool
- func (o *GocomError) HasStatus() bool
- func (o GocomError) MarshalJSON() ([]byte, error)
- func (o *GocomError) SetCode(v GocomErrorCode)
- func (o *GocomError) SetInstance(v string)
- func (o *GocomError) SetMessage(v string)
- func (o *GocomError) SetStatus(v int32)
- func (o GocomError) ToMap() (map[string]interface{}, error)
- func (o *GocomError) UnmarshalJSON(data []byte) (err error)
- type GocomErrorCode
- type Image
- func (o *Image) GetExt() string
- func (o *Image) GetExtOk() (*string, bool)
- func (o *Image) GetId() string
- func (o *Image) GetIdOk() (*string, bool)
- func (o *Image) GetOrder() int64
- func (o *Image) GetOrderOk() (*int64, bool)
- func (o *Image) GetUrls() map[string]string
- func (o *Image) GetUrlsOk() (*map[string]string, bool)
- func (o Image) MarshalJSON() ([]byte, error)
- func (o *Image) SetExt(v string)
- func (o *Image) SetId(v string)
- func (o *Image) SetOrder(v int64)
- func (o *Image) SetUrls(v map[string]string)
- func (o Image) ToMap() (map[string]interface{}, error)
- func (o *Image) UnmarshalJSON(data []byte) (err error)
- type Manufacturer
- func (o *Manufacturer) GetId() string
- func (o *Manufacturer) GetIdOk() (*string, bool)
- func (o *Manufacturer) GetImageUrls() map[string]string
- func (o *Manufacturer) GetImageUrlsOk() (*map[string]string, bool)
- func (o *Manufacturer) GetName() string
- func (o *Manufacturer) GetNameOk() (*string, bool)
- func (o *Manufacturer) GetWebsiteUrl() string
- func (o *Manufacturer) GetWebsiteUrlOk() (*string, bool)
- func (o *Manufacturer) HasImageUrls() bool
- func (o *Manufacturer) HasWebsiteUrl() bool
- func (o Manufacturer) MarshalJSON() ([]byte, error)
- func (o *Manufacturer) SetId(v string)
- func (o *Manufacturer) SetImageUrls(v map[string]string)
- func (o *Manufacturer) SetName(v string)
- func (o *Manufacturer) SetWebsiteUrl(v string)
- func (o Manufacturer) ToMap() (map[string]interface{}, error)
- func (o *Manufacturer) UnmarshalJSON(data []byte) (err error)
- type ManufacturerList
- func (o *ManufacturerList) GetManufacturers() []Manufacturer
- func (o *ManufacturerList) GetManufacturersOk() ([]Manufacturer, bool)
- func (o ManufacturerList) MarshalJSON() ([]byte, error)
- func (o *ManufacturerList) SetManufacturers(v []Manufacturer)
- func (o ManufacturerList) ToMap() (map[string]interface{}, error)
- func (o *ManufacturerList) UnmarshalJSON(data []byte) (err error)
- type ManufacturersAPIService
- func (a *ManufacturersAPIService) GetManufacturer(ctx context.Context, id string) ApiGetManufacturerRequest
- func (a *ManufacturersAPIService) GetManufacturerExecute(r ApiGetManufacturerRequest) (*Manufacturer, *http.Response, error)
- func (a *ManufacturersAPIService) ListManufacturers(ctx context.Context) ApiListManufacturersRequest
- func (a *ManufacturersAPIService) ListManufacturersExecute(r ApiListManufacturersRequest) (*ManufacturerList, *http.Response, error)
- type MappedNullable
- type NullableBool
- type NullableCategory
- type NullableCategoryList
- func (v NullableCategoryList) Get() *CategoryList
- func (v NullableCategoryList) IsSet() bool
- func (v NullableCategoryList) MarshalJSON() ([]byte, error)
- func (v *NullableCategoryList) Set(val *CategoryList)
- func (v *NullableCategoryList) UnmarshalJSON(src []byte) error
- func (v *NullableCategoryList) Unset()
- type NullableContent
- type NullableContentList
- func (v NullableContentList) Get() *ContentList
- func (v NullableContentList) IsSet() bool
- func (v NullableContentList) MarshalJSON() ([]byte, error)
- func (v *NullableContentList) Set(val *ContentList)
- func (v *NullableContentList) UnmarshalJSON(src []byte) error
- func (v *NullableContentList) Unset()
- type NullableContentType
- func (v NullableContentType) Get() *ContentType
- func (v NullableContentType) IsSet() bool
- func (v NullableContentType) MarshalJSON() ([]byte, error)
- func (v *NullableContentType) Set(val *ContentType)
- func (v *NullableContentType) UnmarshalJSON(src []byte) error
- func (v *NullableContentType) Unset()
- type NullableEvent
- type NullableEventList
- type NullableFloat32
- type NullableFloat64
- type NullableGocomError
- type NullableGocomErrorCode
- func (v NullableGocomErrorCode) Get() *GocomErrorCode
- func (v NullableGocomErrorCode) IsSet() bool
- func (v NullableGocomErrorCode) MarshalJSON() ([]byte, error)
- func (v *NullableGocomErrorCode) Set(val *GocomErrorCode)
- func (v *NullableGocomErrorCode) UnmarshalJSON(src []byte) error
- func (v *NullableGocomErrorCode) Unset()
- type NullableImage
- type NullableInt
- type NullableInt32
- type NullableInt64
- type NullableManufacturer
- func (v NullableManufacturer) Get() *Manufacturer
- func (v NullableManufacturer) IsSet() bool
- func (v NullableManufacturer) MarshalJSON() ([]byte, error)
- func (v *NullableManufacturer) Set(val *Manufacturer)
- func (v *NullableManufacturer) UnmarshalJSON(src []byte) error
- func (v *NullableManufacturer) Unset()
- type NullableManufacturerList
- func (v NullableManufacturerList) Get() *ManufacturerList
- func (v NullableManufacturerList) IsSet() bool
- func (v NullableManufacturerList) MarshalJSON() ([]byte, error)
- func (v *NullableManufacturerList) Set(val *ManufacturerList)
- func (v *NullableManufacturerList) UnmarshalJSON(src []byte) error
- func (v *NullableManufacturerList) Unset()
- type NullableProduct
- type NullableProductList
- func (v NullableProductList) Get() *ProductList
- func (v NullableProductList) IsSet() bool
- func (v NullableProductList) MarshalJSON() ([]byte, error)
- func (v *NullableProductList) Set(val *ProductList)
- func (v *NullableProductList) UnmarshalJSON(src []byte) error
- func (v *NullableProductList) Unset()
- type NullableProductStatus
- func (v NullableProductStatus) Get() *ProductStatus
- func (v NullableProductStatus) IsSet() bool
- func (v NullableProductStatus) MarshalJSON() ([]byte, error)
- func (v *NullableProductStatus) Set(val *ProductStatus)
- func (v *NullableProductStatus) UnmarshalJSON(src []byte) error
- func (v *NullableProductStatus) Unset()
- type NullableResolvedProduct
- func (v NullableResolvedProduct) Get() *ResolvedProduct
- func (v NullableResolvedProduct) IsSet() bool
- func (v NullableResolvedProduct) MarshalJSON() ([]byte, error)
- func (v *NullableResolvedProduct) Set(val *ResolvedProduct)
- func (v *NullableResolvedProduct) UnmarshalJSON(src []byte) error
- func (v *NullableResolvedProduct) Unset()
- type NullableResolvedServiceCategory
- func (v NullableResolvedServiceCategory) Get() *ResolvedServiceCategory
- func (v NullableResolvedServiceCategory) IsSet() bool
- func (v NullableResolvedServiceCategory) MarshalJSON() ([]byte, error)
- func (v *NullableResolvedServiceCategory) Set(val *ResolvedServiceCategory)
- func (v *NullableResolvedServiceCategory) UnmarshalJSON(src []byte) error
- func (v *NullableResolvedServiceCategory) Unset()
- type NullableResolvedServiceCategoryList
- func (v NullableResolvedServiceCategoryList) Get() *ResolvedServiceCategoryList
- func (v NullableResolvedServiceCategoryList) IsSet() bool
- func (v NullableResolvedServiceCategoryList) MarshalJSON() ([]byte, error)
- func (v *NullableResolvedServiceCategoryList) Set(val *ResolvedServiceCategoryList)
- func (v *NullableResolvedServiceCategoryList) UnmarshalJSON(src []byte) error
- func (v *NullableResolvedServiceCategoryList) Unset()
- type NullableService
- type NullableServiceCategory
- func (v NullableServiceCategory) Get() *ServiceCategory
- func (v NullableServiceCategory) IsSet() bool
- func (v NullableServiceCategory) MarshalJSON() ([]byte, error)
- func (v *NullableServiceCategory) Set(val *ServiceCategory)
- func (v *NullableServiceCategory) UnmarshalJSON(src []byte) error
- func (v *NullableServiceCategory) Unset()
- type NullableString
- type NullableTime
- type Product
- func (o *Product) GetCategoryIds() []string
- func (o *Product) GetCategoryIdsOk() ([]string, bool)
- func (o *Product) GetCreatedAt() time.Time
- func (o *Product) GetCreatedAtOk() (*time.Time, bool)
- func (o *Product) GetDescriptionLong() string
- func (o *Product) GetDescriptionLongOk() (*string, bool)
- func (o *Product) GetDescriptionShort() string
- func (o *Product) GetDescriptionShortOk() (*string, bool)
- func (o *Product) GetId() string
- func (o *Product) GetIdOk() (*string, bool)
- func (o *Product) GetImageUrls() []map[string]string
- func (o *Product) GetImageUrlsOk() ([]map[string]string, bool)
- func (o *Product) GetManufacturerId() string
- func (o *Product) GetManufacturerIdOk() (*string, bool)
- func (o *Product) GetName() string
- func (o *Product) GetNameOk() (*string, bool)
- func (o *Product) GetPrice() int64
- func (o *Product) GetPriceOk() (*int64, bool)
- func (o *Product) GetStatus() ProductStatus
- func (o *Product) GetStatusOk() (*ProductStatus, bool)
- func (o *Product) GetStockCount() int64
- func (o *Product) GetStockCountOk() (*int64, bool)
- func (o *Product) GetUpdatedAt() time.Time
- func (o *Product) GetUpdatedAtOk() (*time.Time, bool)
- func (o *Product) HasCategoryIds() bool
- func (o *Product) HasDescriptionLong() bool
- func (o *Product) HasDescriptionShort() bool
- func (o *Product) HasImageUrls() bool
- func (o *Product) HasManufacturerId() bool
- func (o *Product) HasStatus() bool
- func (o *Product) HasStockCount() bool
- func (o Product) MarshalJSON() ([]byte, error)
- func (o *Product) SetCategoryIds(v []string)
- func (o *Product) SetCreatedAt(v time.Time)
- func (o *Product) SetDescriptionLong(v string)
- func (o *Product) SetDescriptionShort(v string)
- func (o *Product) SetId(v string)
- func (o *Product) SetImageUrls(v []map[string]string)
- func (o *Product) SetManufacturerId(v string)
- func (o *Product) SetName(v string)
- func (o *Product) SetPrice(v int64)
- func (o *Product) SetStatus(v ProductStatus)
- func (o *Product) SetStockCount(v int64)
- func (o *Product) SetUpdatedAt(v time.Time)
- func (o Product) ToMap() (map[string]interface{}, error)
- func (o *Product) UnmarshalJSON(data []byte) (err error)
- type ProductList
- func (o *ProductList) GetProducts() []Product
- func (o *ProductList) GetProductsOk() ([]Product, bool)
- func (o ProductList) MarshalJSON() ([]byte, error)
- func (o *ProductList) SetProducts(v []Product)
- func (o ProductList) ToMap() (map[string]interface{}, error)
- func (o *ProductList) UnmarshalJSON(data []byte) (err error)
- type ProductStatus
- type ProductsAPIService
- func (a *ProductsAPIService) GetProduct(ctx context.Context, id string) ApiGetProductRequest
- func (a *ProductsAPIService) GetProductExecute(r ApiGetProductRequest) (*ResolvedProduct, *http.Response, error)
- func (a *ProductsAPIService) ListProducts(ctx context.Context) ApiListProductsRequest
- func (a *ProductsAPIService) ListProductsExecute(r ApiListProductsRequest) (*ProductList, *http.Response, error)
- type ResolvedProduct
- func (o *ResolvedProduct) GetCategories() []Category
- func (o *ResolvedProduct) GetCategoriesOk() ([]Category, bool)
- func (o *ResolvedProduct) GetCategoryIds() []string
- func (o *ResolvedProduct) GetCategoryIdsOk() ([]string, bool)
- func (o *ResolvedProduct) GetCreatedAt() time.Time
- func (o *ResolvedProduct) GetCreatedAtOk() (*time.Time, bool)
- func (o *ResolvedProduct) GetDescriptionLong() string
- func (o *ResolvedProduct) GetDescriptionLongOk() (*string, bool)
- func (o *ResolvedProduct) GetDescriptionShort() string
- func (o *ResolvedProduct) GetDescriptionShortOk() (*string, bool)
- func (o *ResolvedProduct) GetId() string
- func (o *ResolvedProduct) GetIdOk() (*string, bool)
- func (o *ResolvedProduct) GetImageUrls() []map[string]string
- func (o *ResolvedProduct) GetImageUrlsOk() ([]map[string]string, bool)
- func (o *ResolvedProduct) GetManufacturer() Manufacturer
- func (o *ResolvedProduct) GetManufacturerId() string
- func (o *ResolvedProduct) GetManufacturerIdOk() (*string, bool)
- func (o *ResolvedProduct) GetManufacturerOk() (*Manufacturer, bool)
- func (o *ResolvedProduct) GetName() string
- func (o *ResolvedProduct) GetNameOk() (*string, bool)
- func (o *ResolvedProduct) GetPrice() int64
- func (o *ResolvedProduct) GetPriceOk() (*int64, bool)
- func (o *ResolvedProduct) GetStatus() ProductStatus
- func (o *ResolvedProduct) GetStatusOk() (*ProductStatus, bool)
- func (o *ResolvedProduct) GetStockCount() int64
- func (o *ResolvedProduct) GetStockCountOk() (*int64, bool)
- func (o *ResolvedProduct) GetUpdatedAt() time.Time
- func (o *ResolvedProduct) GetUpdatedAtOk() (*time.Time, bool)
- func (o *ResolvedProduct) HasCategories() bool
- func (o *ResolvedProduct) HasCategoryIds() bool
- func (o *ResolvedProduct) HasDescriptionLong() bool
- func (o *ResolvedProduct) HasDescriptionShort() bool
- func (o *ResolvedProduct) HasImageUrls() bool
- func (o *ResolvedProduct) HasManufacturer() bool
- func (o *ResolvedProduct) HasManufacturerId() bool
- func (o *ResolvedProduct) HasStatus() bool
- func (o *ResolvedProduct) HasStockCount() bool
- func (o ResolvedProduct) MarshalJSON() ([]byte, error)
- func (o *ResolvedProduct) SetCategories(v []Category)
- func (o *ResolvedProduct) SetCategoryIds(v []string)
- func (o *ResolvedProduct) SetCreatedAt(v time.Time)
- func (o *ResolvedProduct) SetDescriptionLong(v string)
- func (o *ResolvedProduct) SetDescriptionShort(v string)
- func (o *ResolvedProduct) SetId(v string)
- func (o *ResolvedProduct) SetImageUrls(v []map[string]string)
- func (o *ResolvedProduct) SetManufacturer(v Manufacturer)
- func (o *ResolvedProduct) SetManufacturerId(v string)
- func (o *ResolvedProduct) SetName(v string)
- func (o *ResolvedProduct) SetPrice(v int64)
- func (o *ResolvedProduct) SetStatus(v ProductStatus)
- func (o *ResolvedProduct) SetStockCount(v int64)
- func (o *ResolvedProduct) SetUpdatedAt(v time.Time)
- func (o ResolvedProduct) ToMap() (map[string]interface{}, error)
- func (o *ResolvedProduct) UnmarshalJSON(data []byte) (err error)
- type ResolvedServiceCategory
- func (o *ResolvedServiceCategory) GetId() string
- func (o *ResolvedServiceCategory) GetIdOk() (*string, bool)
- func (o *ResolvedServiceCategory) GetName() string
- func (o *ResolvedServiceCategory) GetNameOk() (*string, bool)
- func (o *ResolvedServiceCategory) GetOrder() int64
- func (o *ResolvedServiceCategory) GetOrderOk() (*int64, bool)
- func (o *ResolvedServiceCategory) GetServices() []Service
- func (o *ResolvedServiceCategory) GetServicesOk() ([]Service, bool)
- func (o *ResolvedServiceCategory) HasServices() bool
- func (o ResolvedServiceCategory) MarshalJSON() ([]byte, error)
- func (o *ResolvedServiceCategory) SetId(v string)
- func (o *ResolvedServiceCategory) SetName(v string)
- func (o *ResolvedServiceCategory) SetOrder(v int64)
- func (o *ResolvedServiceCategory) SetServices(v []Service)
- func (o ResolvedServiceCategory) ToMap() (map[string]interface{}, error)
- func (o *ResolvedServiceCategory) UnmarshalJSON(data []byte) (err error)
- type ResolvedServiceCategoryList
- func (o *ResolvedServiceCategoryList) GetServiceCategories() []ResolvedServiceCategory
- func (o *ResolvedServiceCategoryList) GetServiceCategoriesOk() ([]ResolvedServiceCategory, bool)
- func (o ResolvedServiceCategoryList) MarshalJSON() ([]byte, error)
- func (o *ResolvedServiceCategoryList) SetServiceCategories(v []ResolvedServiceCategory)
- func (o ResolvedServiceCategoryList) ToMap() (map[string]interface{}, error)
- func (o *ResolvedServiceCategoryList) UnmarshalJSON(data []byte) (err error)
- type ServerConfiguration
- type ServerConfigurations
- type ServerVariable
- type Service
- func (o *Service) GetDescription() string
- func (o *Service) GetDescriptionOk() (*string, bool)
- func (o *Service) GetId() string
- func (o *Service) GetIdOk() (*string, bool)
- func (o *Service) GetName() string
- func (o *Service) GetNameOk() (*string, bool)
- func (o *Service) GetOrder() int64
- func (o *Service) GetOrderOk() (*int64, bool)
- func (o *Service) GetPrice() int64
- func (o *Service) GetPriceOk() (*int64, bool)
- func (o Service) MarshalJSON() ([]byte, error)
- func (o *Service) SetDescription(v string)
- func (o *Service) SetId(v string)
- func (o *Service) SetName(v string)
- func (o *Service) SetOrder(v int64)
- func (o *Service) SetPrice(v int64)
- func (o Service) ToMap() (map[string]interface{}, error)
- func (o *Service) UnmarshalJSON(data []byte) (err error)
- type ServiceCategory
- func (o *ServiceCategory) GetId() string
- func (o *ServiceCategory) GetIdOk() (*string, bool)
- func (o *ServiceCategory) GetName() string
- func (o *ServiceCategory) GetNameOk() (*string, bool)
- func (o *ServiceCategory) GetOrder() int64
- func (o *ServiceCategory) GetOrderOk() (*int64, bool)
- func (o ServiceCategory) MarshalJSON() ([]byte, error)
- func (o *ServiceCategory) SetId(v string)
- func (o *ServiceCategory) SetName(v string)
- func (o *ServiceCategory) SetOrder(v int64)
- func (o ServiceCategory) ToMap() (map[string]interface{}, error)
- func (o *ServiceCategory) UnmarshalJSON(data []byte) (err error)
- type ServicesAPIService
Constants ¶
This section is empty.
Variables ¶
var ( JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`) XmlCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`) )
var ( // ContextServerIndex uses a server configuration from the index. ContextServerIndex = contextKey("serverIndex") // ContextOperationServerIndices uses a server configuration from the index mapping. ContextOperationServerIndices = contextKey("serverOperationIndices") // ContextServerVariables overrides a server configuration variables. ContextServerVariables = contextKey("serverVariables") // ContextOperationServerVariables overrides a server configuration variables using operation specific values. ContextOperationServerVariables = contextKey("serverOperationVariables") )
var AllowedContentTypeEnumValues = []ContentType{
"SIMPLE",
"HTML",
}
All allowed values of ContentType enum
var AllowedGocomErrorCodeEnumValues = []GocomErrorCode{
"CATEGORY_NAME_EMPTY",
"CATEGORY_ORDER_NEGATIVE",
"CONTENT_NAME_EMPTY",
"CONTENT_TYPE_INVALID",
"EVENT_END_BEFORE_START",
"IMAGE_ORDER_NEGATIVE",
"INVALID_ID",
"PARAMETER_MISSING",
"PRODUCT_NAME_EMPTY",
"PRODUCT_PRICE_NEGATIVE",
"SERVICE_NAME_EMPTY",
"SERVICE_PRICE_NEGATIVE",
"SERVICE_ORDER_NEGATIVE",
"SERVICE_CATEGORY_NAME_EMPTY",
"SERVICE_CATEGORY_ORDER_NEGATIVE",
"UNKNOWN_CATEGORY",
"UNKNOWN_CONTENT",
"UNKNOWN_ERROR",
"UNKNOWN_EVENT",
"UNKNOWN_IMAGE",
"UNKNOWN_MANUFACTURER",
"UNKNOWN_PRODUCT",
"UNKNOWN_SERVICE",
"UNKNOWN_SERVICE_CATEGORY",
}
All allowed values of GocomErrorCode enum
var AllowedProductStatusEnumValues = []ProductStatus{
"AVAILABLE",
"ARCHIVED",
}
All allowed values of ProductStatus enum
Functions ¶
func CacheExpires ¶ added in v0.4.0
CacheExpires helper function to determine remaining time before repeating a request.
func PtrFloat32 ¶
PtrFloat32 is a helper routine that returns a pointer to given float value.
func PtrFloat64 ¶
PtrFloat64 is a helper routine that returns a pointer to given float value.
Types ¶
type APIClient ¶ added in v0.4.0
type APIClient struct { CategoriesAPI *CategoriesAPIService ContentAPI *ContentAPIService EventsAPI *EventsAPIService ManufacturersAPI *ManufacturersAPIService ProductsAPI *ProductsAPIService ServicesAPI *ServicesAPIService // contains filtered or unexported fields }
APIClient manages communication with the GoCommerce API v1.0 In most cases there should be only one, shared, APIClient.
func NewAPIClient ¶ added in v0.4.0
func NewAPIClient(cfg *Configuration) *APIClient
NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.
func (*APIClient) GetConfig ¶ added in v0.4.0
func (c *APIClient) GetConfig() *Configuration
Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior
type APIKey ¶ added in v0.4.0
APIKey provides API key based authentication to a request passed via context using ContextAPIKey
type APIResponse ¶ added in v0.4.0
type APIResponse struct { *http.Response `json:"-"` Message string `json:"message,omitempty"` // Operation is the name of the OpenAPI operation. Operation string `json:"operation,omitempty"` // RequestURL is the request URL. This value is always available, even if the // embedded *http.Response is nil. RequestURL string `json:"url,omitempty"` // Method is the HTTP method used for the request. This value is always // available, even if the embedded *http.Response is nil. Method string `json:"method,omitempty"` // Payload holds the contents of the response body (which may be nil or empty). // This is provided here as the raw response.Body() reader will have already // been drained. Payload []byte `json:"-"` }
APIResponse stores the API response returned by the server.
func NewAPIResponse ¶ added in v0.4.0
func NewAPIResponse(r *http.Response) *APIResponse
NewAPIResponse returns a new APIResponse object.
func NewAPIResponseWithError ¶ added in v0.4.0
func NewAPIResponseWithError(errorMessage string) *APIResponse
NewAPIResponseWithError returns a new APIResponse object with the provided error message.
type ApiGetCategoryRequest ¶ added in v0.4.0
type ApiGetCategoryRequest struct { ApiService *CategoriesAPIService // contains filtered or unexported fields }
func (ApiGetCategoryRequest) Execute ¶ added in v0.4.0
func (r ApiGetCategoryRequest) Execute() (*Category, *http.Response, error)
func (ApiGetCategoryRequest) Img ¶ added in v0.4.0
func (r ApiGetCategoryRequest) Img(img []string) ApiGetCategoryRequest
Comma separated list of ImageConfig. Check ImageConfig for exact format.
type ApiGetContentRequest ¶ added in v0.4.0
type ApiGetContentRequest struct { ApiService *ContentAPIService // contains filtered or unexported fields }
type ApiGetEventRequest ¶ added in v0.4.0
type ApiGetEventRequest struct { ApiService *EventsAPIService // contains filtered or unexported fields }
type ApiGetManufacturerRequest ¶ added in v0.4.0
type ApiGetManufacturerRequest struct { ApiService *ManufacturersAPIService // contains filtered or unexported fields }
func (ApiGetManufacturerRequest) Execute ¶ added in v0.4.0
func (r ApiGetManufacturerRequest) Execute() (*Manufacturer, *http.Response, error)
func (ApiGetManufacturerRequest) Img ¶ added in v0.4.0
func (r ApiGetManufacturerRequest) Img(img []string) ApiGetManufacturerRequest
Comma separated list of ImageConfig. Check ImageConfig for exact format.
type ApiGetProductRequest ¶ added in v0.4.0
type ApiGetProductRequest struct { ApiService *ProductsAPIService // contains filtered or unexported fields }
func (ApiGetProductRequest) Execute ¶ added in v0.4.0
func (r ApiGetProductRequest) Execute() (*ResolvedProduct, *http.Response, error)
func (ApiGetProductRequest) Img ¶ added in v0.4.0
func (r ApiGetProductRequest) Img(img []string) ApiGetProductRequest
Comma separated list of ImageConfig. Check ImageConfig for exact format.
func (ApiGetProductRequest) Resolve ¶ added in v0.4.0
func (r ApiGetProductRequest) Resolve(resolve bool) ApiGetProductRequest
The returned object should include related objects.
type ApiListCategoriesRequest ¶ added in v0.4.0
type ApiListCategoriesRequest struct { ApiService *CategoriesAPIService // contains filtered or unexported fields }
func (ApiListCategoriesRequest) Execute ¶ added in v0.4.0
func (r ApiListCategoriesRequest) Execute() (*CategoryList, *http.Response, error)
func (ApiListCategoriesRequest) Img ¶ added in v0.4.0
func (r ApiListCategoriesRequest) Img(img []string) ApiListCategoriesRequest
Comma separated list of ImageConfig. Check ImageConfig for exact format.
type ApiListEventsRequest ¶ added in v0.4.0
type ApiListEventsRequest struct { ApiService *EventsAPIService // contains filtered or unexported fields }
func (ApiListEventsRequest) Execute ¶ added in v0.4.0
func (r ApiListEventsRequest) Execute() (*EventList, *http.Response, error)
func (ApiListEventsRequest) IncludePastEvents ¶ added in v0.4.0
func (r ApiListEventsRequest) IncludePastEvents(includePastEvents bool) ApiListEventsRequest
Include events which are already done (end time in the past).
type ApiListManufacturersRequest ¶ added in v0.4.0
type ApiListManufacturersRequest struct { ApiService *ManufacturersAPIService // contains filtered or unexported fields }
func (ApiListManufacturersRequest) Execute ¶ added in v0.4.0
func (r ApiListManufacturersRequest) Execute() (*ManufacturerList, *http.Response, error)
func (ApiListManufacturersRequest) Img ¶ added in v0.4.0
func (r ApiListManufacturersRequest) Img(img []string) ApiListManufacturersRequest
Comma separated list of ImageConfig. Check ImageConfig for exact format.
type ApiListProductsRequest ¶ added in v0.4.0
type ApiListProductsRequest struct { ApiService *ProductsAPIService // contains filtered or unexported fields }
func (ApiListProductsRequest) Execute ¶ added in v0.4.0
func (r ApiListProductsRequest) Execute() (*ProductList, *http.Response, error)
func (ApiListProductsRequest) Img ¶ added in v0.4.0
func (r ApiListProductsRequest) Img(img []string) ApiListProductsRequest
Comma separated list of ImageConfig. Check ImageConfig for exact format.
type ApiListServiceCategoriesRequest ¶ added in v1.1.0
type ApiListServiceCategoriesRequest struct { ApiService *ServicesAPIService // contains filtered or unexported fields }
func (ApiListServiceCategoriesRequest) Execute ¶ added in v1.1.0
func (r ApiListServiceCategoriesRequest) Execute() (*ResolvedServiceCategoryList, *http.Response, error)
type BasicAuth ¶ added in v0.4.0
type BasicAuth struct { UserName string `json:"userName,omitempty"` Password string `json:"password,omitempty"` }
BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth
type CategoriesAPIService ¶ added in v1.0.1
type CategoriesAPIService service
CategoriesAPIService CategoriesAPI service
func (*CategoriesAPIService) GetCategory ¶ added in v1.0.1
func (a *CategoriesAPIService) GetCategory(ctx context.Context, id string) ApiGetCategoryRequest
GetCategory Method for GetCategory
Get category details
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param id ID @return ApiGetCategoryRequest
func (*CategoriesAPIService) GetCategoryExecute ¶ added in v1.0.1
func (a *CategoriesAPIService) GetCategoryExecute(r ApiGetCategoryRequest) (*Category, *http.Response, error)
Execute executes the request
@return Category
func (*CategoriesAPIService) ListCategories ¶ added in v1.0.1
func (a *CategoriesAPIService) ListCategories(ctx context.Context) ApiListCategoriesRequest
ListCategories Method for ListCategories
List categories
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiListCategoriesRequest
func (*CategoriesAPIService) ListCategoriesExecute ¶ added in v1.0.1
func (a *CategoriesAPIService) ListCategoriesExecute(r ApiListCategoriesRequest) (*CategoryList, *http.Response, error)
Execute executes the request
@return CategoryList
type Category ¶
type Category struct { // Compressed representation of ID Id string `json:"id"` Name string `json:"name"` Description *string `json:"description,omitempty"` // Compressed representation of ID ParentId *string `json:"parent_id,omitempty"` // Should be sorted ascending by this column Order int64 `json:"order"` ProductIds []string `json:"product_ids,omitempty"` ImageUrls *map[string]string `json:"image_urls,omitempty"` }
Category struct for Category
func NewCategory ¶
NewCategory instantiates a new Category object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewCategoryWithDefaults ¶
func NewCategoryWithDefaults() *Category
NewCategoryWithDefaults instantiates a new Category object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*Category) GetDescription ¶
GetDescription returns the Description field value if set, zero value otherwise.
func (*Category) GetDescriptionOk ¶
GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Category) GetIdOk ¶
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (*Category) GetImageUrls ¶
GetImageUrls returns the ImageUrls field value if set, zero value otherwise.
func (*Category) GetImageUrlsOk ¶
GetImageUrlsOk returns a tuple with the ImageUrls field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Category) GetNameOk ¶
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (*Category) GetOrderOk ¶
GetOrderOk returns a tuple with the Order field value and a boolean to check if the value has been set.
func (*Category) GetParentId ¶
GetParentId returns the ParentId field value if set, zero value otherwise.
func (*Category) GetParentIdOk ¶
GetParentIdOk returns a tuple with the ParentId field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Category) GetProductIds ¶
GetProductIds returns the ProductIds field value if set, zero value otherwise.
func (*Category) GetProductIdsOk ¶
GetProductIdsOk returns a tuple with the ProductIds field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Category) HasDescription ¶
HasDescription returns a boolean if a field has been set.
func (*Category) HasImageUrls ¶
HasImageUrls returns a boolean if a field has been set.
func (*Category) HasParentId ¶
HasParentId returns a boolean if a field has been set.
func (*Category) HasProductIds ¶
HasProductIds returns a boolean if a field has been set.
func (Category) MarshalJSON ¶
func (*Category) SetDescription ¶
SetDescription gets a reference to the given string and assigns it to the Description field.
func (*Category) SetImageUrls ¶
SetImageUrls gets a reference to the given map[string]string and assigns it to the ImageUrls field.
func (*Category) SetParentId ¶
SetParentId gets a reference to the given string and assigns it to the ParentId field.
func (*Category) SetProductIds ¶
SetProductIds gets a reference to the given []string and assigns it to the ProductIds field.
func (*Category) UnmarshalJSON ¶ added in v1.0.1
type CategoryList ¶
type CategoryList struct {
Categories []Category `json:"categories"`
}
CategoryList struct for CategoryList
func NewCategoryList ¶
func NewCategoryList(categories []Category) *CategoryList
NewCategoryList instantiates a new CategoryList object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewCategoryListWithDefaults ¶
func NewCategoryListWithDefaults() *CategoryList
NewCategoryListWithDefaults instantiates a new CategoryList object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*CategoryList) GetCategories ¶
func (o *CategoryList) GetCategories() []Category
GetCategories returns the Categories field value
func (*CategoryList) GetCategoriesOk ¶
func (o *CategoryList) GetCategoriesOk() ([]Category, bool)
GetCategoriesOk returns a tuple with the Categories field value and a boolean to check if the value has been set.
func (CategoryList) MarshalJSON ¶
func (o CategoryList) MarshalJSON() ([]byte, error)
func (*CategoryList) SetCategories ¶
func (o *CategoryList) SetCategories(v []Category)
SetCategories sets field value
func (CategoryList) ToMap ¶ added in v1.0.0
func (o CategoryList) ToMap() (map[string]interface{}, error)
func (*CategoryList) UnmarshalJSON ¶ added in v1.0.1
func (o *CategoryList) UnmarshalJSON(data []byte) (err error)
type Configuration ¶ added in v0.4.0
type Configuration struct { Host string `json:"host,omitempty"` Scheme string `json:"scheme,omitempty"` DefaultHeader map[string]string `json:"defaultHeader,omitempty"` UserAgent string `json:"userAgent,omitempty"` Debug bool `json:"debug,omitempty"` Servers ServerConfigurations OperationServers map[string]ServerConfigurations HTTPClient *http.Client }
Configuration stores the configuration of the API client
func NewConfiguration ¶ added in v0.4.0
func NewConfiguration() *Configuration
NewConfiguration returns a new Configuration object
func (*Configuration) AddDefaultHeader ¶ added in v0.4.0
func (c *Configuration) AddDefaultHeader(key string, value string)
AddDefaultHeader adds a new HTTP header to the default header in the request
func (*Configuration) ServerURLWithContext ¶ added in v0.4.0
ServerURLWithContext returns a new server URL given an endpoint
type Content ¶ added in v0.3.0
type Content struct { Name string `json:"name"` ContentType ContentType `json:"content_type"` Body string `json:"body"` }
Content struct for Content
func NewContent ¶ added in v0.3.0
func NewContent(name string, contentType ContentType, body string) *Content
NewContent instantiates a new Content object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewContentWithDefaults ¶ added in v0.3.0
func NewContentWithDefaults() *Content
NewContentWithDefaults instantiates a new Content object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*Content) GetBodyOk ¶ added in v0.3.0
GetBodyOk returns a tuple with the Body field value and a boolean to check if the value has been set.
func (*Content) GetContentType ¶ added in v0.3.0
func (o *Content) GetContentType() ContentType
GetContentType returns the ContentType field value
func (*Content) GetContentTypeOk ¶ added in v0.3.0
func (o *Content) GetContentTypeOk() (*ContentType, bool)
GetContentTypeOk returns a tuple with the ContentType field value and a boolean to check if the value has been set.
func (*Content) GetNameOk ¶ added in v0.3.0
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (Content) MarshalJSON ¶ added in v0.3.0
func (*Content) SetContentType ¶ added in v0.3.0
func (o *Content) SetContentType(v ContentType)
SetContentType sets field value
func (*Content) UnmarshalJSON ¶ added in v1.0.1
type ContentAPIService ¶ added in v1.0.1
type ContentAPIService service
ContentAPIService ContentAPI service
func (*ContentAPIService) GetContent ¶ added in v1.0.1
func (a *ContentAPIService) GetContent(ctx context.Context, contentName string) ApiGetContentRequest
GetContent Method for GetContent
Get content
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param contentName Content name @return ApiGetContentRequest
func (*ContentAPIService) GetContentExecute ¶ added in v1.0.1
func (a *ContentAPIService) GetContentExecute(r ApiGetContentRequest) (*Content, *http.Response, error)
Execute executes the request
@return Content
type ContentList ¶ added in v0.3.0
type ContentList struct {
Content []Content `json:"content"`
}
ContentList struct for ContentList
func NewContentList ¶ added in v0.3.0
func NewContentList(content []Content) *ContentList
NewContentList instantiates a new ContentList object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewContentListWithDefaults ¶ added in v0.3.0
func NewContentListWithDefaults() *ContentList
NewContentListWithDefaults instantiates a new ContentList object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*ContentList) GetContent ¶ added in v0.3.0
func (o *ContentList) GetContent() []Content
GetContent returns the Content field value
func (*ContentList) GetContentOk ¶ added in v0.3.0
func (o *ContentList) GetContentOk() ([]Content, bool)
GetContentOk returns a tuple with the Content field value and a boolean to check if the value has been set.
func (ContentList) MarshalJSON ¶ added in v0.3.0
func (o ContentList) MarshalJSON() ([]byte, error)
func (*ContentList) SetContent ¶ added in v0.3.0
func (o *ContentList) SetContent(v []Content)
SetContent sets field value
func (ContentList) ToMap ¶ added in v1.0.0
func (o ContentList) ToMap() (map[string]interface{}, error)
func (*ContentList) UnmarshalJSON ¶ added in v1.0.1
func (o *ContentList) UnmarshalJSON(data []byte) (err error)
type ContentType ¶ added in v0.3.0
type ContentType string
ContentType the model 'ContentType'
const ( CONTENTTYPE_SIMPLE ContentType = "SIMPLE" CONTENTTYPE_HTML ContentType = "HTML" )
List of ContentType
func NewContentTypeFromValue ¶ added in v0.3.0
func NewContentTypeFromValue(v string) (*ContentType, error)
NewContentTypeFromValue returns a pointer to a valid ContentType for the value passed as argument, or an error if the value passed is not allowed by the enum
func (ContentType) IsValid ¶ added in v0.3.0
func (v ContentType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise
func (ContentType) Ptr ¶ added in v0.3.0
func (v ContentType) Ptr() *ContentType
Ptr returns reference to ContentType value
func (*ContentType) UnmarshalJSON ¶ added in v0.3.0
func (v *ContentType) UnmarshalJSON(src []byte) error
type Event ¶ added in v0.3.0
type Event struct { // Compressed representation of ID Id string `json:"id"` Name string `json:"name"` Description *string `json:"description,omitempty"` // Type of event. Types should be defined in GoCommerce config file. EventType string `json:"event_type"` // Start of the event. In case \"whole_day\" is true, only the date part is considered. Start time.Time `json:"start"` // End of the event, could be same as start. In case \"whole_day\" is true, only the date part is considered. End time.Time `json:"end"` WholeDay *bool `json:"whole_day,omitempty"` }
Event struct for Event
func NewEvent ¶ added in v0.3.0
NewEvent instantiates a new Event object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewEventWithDefaults ¶ added in v0.3.0
func NewEventWithDefaults() *Event
NewEventWithDefaults instantiates a new Event object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*Event) GetDescription ¶ added in v0.3.0
GetDescription returns the Description field value if set, zero value otherwise.
func (*Event) GetDescriptionOk ¶ added in v0.3.0
GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Event) GetEndOk ¶ added in v0.3.0
GetEndOk returns a tuple with the End field value and a boolean to check if the value has been set.
func (*Event) GetEventType ¶ added in v0.3.0
GetEventType returns the EventType field value
func (*Event) GetEventTypeOk ¶ added in v0.3.0
GetEventTypeOk returns a tuple with the EventType field value and a boolean to check if the value has been set.
func (*Event) GetIdOk ¶ added in v0.3.0
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (*Event) GetNameOk ¶ added in v0.3.0
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (*Event) GetStartOk ¶ added in v0.3.0
GetStartOk returns a tuple with the Start field value and a boolean to check if the value has been set.
func (*Event) GetWholeDay ¶ added in v0.3.0
GetWholeDay returns the WholeDay field value if set, zero value otherwise.
func (*Event) GetWholeDayOk ¶ added in v0.3.0
GetWholeDayOk returns a tuple with the WholeDay field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Event) HasDescription ¶ added in v0.3.0
HasDescription returns a boolean if a field has been set.
func (*Event) HasWholeDay ¶ added in v0.3.0
HasWholeDay returns a boolean if a field has been set.
func (Event) MarshalJSON ¶ added in v0.3.0
func (*Event) SetDescription ¶ added in v0.3.0
SetDescription gets a reference to the given string and assigns it to the Description field.
func (*Event) SetEventType ¶ added in v0.3.0
SetEventType sets field value
func (*Event) SetWholeDay ¶ added in v0.3.0
SetWholeDay gets a reference to the given bool and assigns it to the WholeDay field.
func (*Event) UnmarshalJSON ¶ added in v1.0.1
type EventList ¶ added in v0.3.0
type EventList struct {
Events []Event `json:"events"`
}
EventList struct for EventList
func NewEventList ¶ added in v0.3.0
NewEventList instantiates a new EventList object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewEventListWithDefaults ¶ added in v0.3.0
func NewEventListWithDefaults() *EventList
NewEventListWithDefaults instantiates a new EventList object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*EventList) GetEventsOk ¶ added in v0.3.0
GetEventsOk returns a tuple with the Events field value and a boolean to check if the value has been set.
func (EventList) MarshalJSON ¶ added in v0.3.0
func (*EventList) UnmarshalJSON ¶ added in v1.0.1
type EventsAPIService ¶ added in v1.0.1
type EventsAPIService service
EventsAPIService EventsAPI service
func (*EventsAPIService) GetEvent ¶ added in v1.0.1
func (a *EventsAPIService) GetEvent(ctx context.Context, id string) ApiGetEventRequest
GetEvent Method for GetEvent
Get event details
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param id ID @return ApiGetEventRequest
func (*EventsAPIService) GetEventExecute ¶ added in v1.0.1
func (a *EventsAPIService) GetEventExecute(r ApiGetEventRequest) (*Event, *http.Response, error)
Execute executes the request
@return Event
func (*EventsAPIService) ListEvents ¶ added in v1.0.1
func (a *EventsAPIService) ListEvents(ctx context.Context) ApiListEventsRequest
ListEvents Method for ListEvents
List events
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiListEventsRequest
func (*EventsAPIService) ListEventsExecute ¶ added in v1.0.1
func (a *EventsAPIService) ListEventsExecute(r ApiListEventsRequest) (*EventList, *http.Response, error)
Execute executes the request
@return EventList
type GenericOpenAPIError ¶ added in v0.4.0
type GenericOpenAPIError struct {
// contains filtered or unexported fields
}
GenericOpenAPIError Provides access to the body, error and model on returned errors.
func (GenericOpenAPIError) Body ¶ added in v0.4.0
func (e GenericOpenAPIError) Body() []byte
Body returns the raw bytes of the response
func (GenericOpenAPIError) Error ¶ added in v0.4.0
func (e GenericOpenAPIError) Error() string
Error returns non-empty string if there was an error.
func (GenericOpenAPIError) Model ¶ added in v0.4.0
func (e GenericOpenAPIError) Model() interface{}
Model returns the unpacked model of the error
type GocomError ¶ added in v0.3.0
type GocomError struct { // HTTP status code Status *int32 `json:"status,omitempty"` Code GocomErrorCode `json:"code"` // Human-readable description of the error Message string `json:"message"` // Object to which this error is related Instance *string `json:"instance,omitempty"` }
GocomError struct for GocomError
func NewGocomError ¶ added in v0.3.0
func NewGocomError(code GocomErrorCode, message string) *GocomError
NewGocomError instantiates a new GocomError object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewGocomErrorWithDefaults ¶ added in v0.3.0
func NewGocomErrorWithDefaults() *GocomError
NewGocomErrorWithDefaults instantiates a new GocomError object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*GocomError) GetCode ¶ added in v0.3.0
func (o *GocomError) GetCode() GocomErrorCode
GetCode returns the Code field value
func (*GocomError) GetCodeOk ¶ added in v0.3.0
func (o *GocomError) GetCodeOk() (*GocomErrorCode, bool)
GetCodeOk returns a tuple with the Code field value and a boolean to check if the value has been set.
func (*GocomError) GetInstance ¶ added in v0.3.0
func (o *GocomError) GetInstance() string
GetInstance returns the Instance field value if set, zero value otherwise.
func (*GocomError) GetInstanceOk ¶ added in v0.3.0
func (o *GocomError) GetInstanceOk() (*string, bool)
GetInstanceOk returns a tuple with the Instance field value if set, nil otherwise and a boolean to check if the value has been set.
func (*GocomError) GetMessage ¶ added in v0.3.0
func (o *GocomError) GetMessage() string
GetMessage returns the Message field value
func (*GocomError) GetMessageOk ¶ added in v0.3.0
func (o *GocomError) GetMessageOk() (*string, bool)
GetMessageOk returns a tuple with the Message field value and a boolean to check if the value has been set.
func (*GocomError) GetStatus ¶ added in v0.3.0
func (o *GocomError) GetStatus() int32
GetStatus returns the Status field value if set, zero value otherwise.
func (*GocomError) GetStatusOk ¶ added in v0.3.0
func (o *GocomError) GetStatusOk() (*int32, bool)
GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.
func (*GocomError) HasInstance ¶ added in v0.3.0
func (o *GocomError) HasInstance() bool
HasInstance returns a boolean if a field has been set.
func (*GocomError) HasStatus ¶ added in v0.3.0
func (o *GocomError) HasStatus() bool
HasStatus returns a boolean if a field has been set.
func (GocomError) MarshalJSON ¶ added in v0.3.0
func (o GocomError) MarshalJSON() ([]byte, error)
func (*GocomError) SetCode ¶ added in v0.3.0
func (o *GocomError) SetCode(v GocomErrorCode)
SetCode sets field value
func (*GocomError) SetInstance ¶ added in v0.3.0
func (o *GocomError) SetInstance(v string)
SetInstance gets a reference to the given string and assigns it to the Instance field.
func (*GocomError) SetMessage ¶ added in v0.3.0
func (o *GocomError) SetMessage(v string)
SetMessage sets field value
func (*GocomError) SetStatus ¶ added in v0.3.0
func (o *GocomError) SetStatus(v int32)
SetStatus gets a reference to the given int32 and assigns it to the Status field.
func (GocomError) ToMap ¶ added in v1.0.0
func (o GocomError) ToMap() (map[string]interface{}, error)
func (*GocomError) UnmarshalJSON ¶ added in v1.0.1
func (o *GocomError) UnmarshalJSON(data []byte) (err error)
type GocomErrorCode ¶ added in v0.3.0
type GocomErrorCode string
GocomErrorCode - CATEGORY_NAME_EMPTY: Category name is required and cannot be empty - CATEGORY_ORDER_NEGATIVE: Category order should be a positive integer - CONTENT_NAME_EMPTY: Content name is required and cannot be empty - CONTENT_TYPE_INVALID: Content type is empty or has an invalid value - EVENT_END_BEFORE_START: The end date of the event should be equal to or after the start date - IMAGE_ORDER_NEGATIVE: Image order should be a positive integer - INVALID_ID: Provided short ID or UUID is invalid - PARAMETER_MISSING: A required URL parameter is missing - PRODUCT_NAME_EMPTY: Product name is required and cannot be empty - PRODUCT_PRICE_NEGATIVE: Product price should be a positive integer - SERVICE_NAME_EMPTY: Service name is required and cannot be empty - SERVICE_PRICE_NEGATIVE: Service price should be a positive integer - SERVICE_ORDER_NEGATIVE: Service order should be a positive integer - SERVICE_CATEGORY_NAME_EMPTY: Service category name is required and cannot be empty - SERVICE_CATEGORY_ORDER_NEGATIVE: Service category order should be a positive integer - UNKNOWN_CATEGORY: The category does not exist - UNKNOWN_CONTENT: The content does not exist - UNKNOWN_ERROR: An unknown error occurred - UNKNOWN_EVENT: The event does not exist - UNKNOWN_IMAGE: The image does not exist - UNKNOWN_MANUFACTURER: The manufacturer does not exist - UNKNOWN_PRODUCT: The product does not exist - UNKNOWN_SERVICE: The service does not exist - UNKNOWN_SERVICE_CATEGORY: The service category does not exist
const ( GOCOMERRORCODE_CATEGORY_NAME_EMPTY GocomErrorCode = "CATEGORY_NAME_EMPTY" GOCOMERRORCODE_CATEGORY_ORDER_NEGATIVE GocomErrorCode = "CATEGORY_ORDER_NEGATIVE" GOCOMERRORCODE_CONTENT_NAME_EMPTY GocomErrorCode = "CONTENT_NAME_EMPTY" GOCOMERRORCODE_CONTENT_TYPE_INVALID GocomErrorCode = "CONTENT_TYPE_INVALID" GOCOMERRORCODE_EVENT_END_BEFORE_START GocomErrorCode = "EVENT_END_BEFORE_START" GOCOMERRORCODE_IMAGE_ORDER_NEGATIVE GocomErrorCode = "IMAGE_ORDER_NEGATIVE" GOCOMERRORCODE_INVALID_ID GocomErrorCode = "INVALID_ID" GOCOMERRORCODE_PARAMETER_MISSING GocomErrorCode = "PARAMETER_MISSING" GOCOMERRORCODE_PRODUCT_NAME_EMPTY GocomErrorCode = "PRODUCT_NAME_EMPTY" GOCOMERRORCODE_PRODUCT_PRICE_NEGATIVE GocomErrorCode = "PRODUCT_PRICE_NEGATIVE" GOCOMERRORCODE_SERVICE_NAME_EMPTY GocomErrorCode = "SERVICE_NAME_EMPTY" GOCOMERRORCODE_SERVICE_PRICE_NEGATIVE GocomErrorCode = "SERVICE_PRICE_NEGATIVE" GOCOMERRORCODE_SERVICE_ORDER_NEGATIVE GocomErrorCode = "SERVICE_ORDER_NEGATIVE" GOCOMERRORCODE_SERVICE_CATEGORY_NAME_EMPTY GocomErrorCode = "SERVICE_CATEGORY_NAME_EMPTY" GOCOMERRORCODE_SERVICE_CATEGORY_ORDER_NEGATIVE GocomErrorCode = "SERVICE_CATEGORY_ORDER_NEGATIVE" GOCOMERRORCODE_UNKNOWN_CATEGORY GocomErrorCode = "UNKNOWN_CATEGORY" GOCOMERRORCODE_UNKNOWN_CONTENT GocomErrorCode = "UNKNOWN_CONTENT" GOCOMERRORCODE_UNKNOWN_ERROR GocomErrorCode = "UNKNOWN_ERROR" GOCOMERRORCODE_UNKNOWN_EVENT GocomErrorCode = "UNKNOWN_EVENT" GOCOMERRORCODE_UNKNOWN_IMAGE GocomErrorCode = "UNKNOWN_IMAGE" GOCOMERRORCODE_UNKNOWN_MANUFACTURER GocomErrorCode = "UNKNOWN_MANUFACTURER" GOCOMERRORCODE_UNKNOWN_PRODUCT GocomErrorCode = "UNKNOWN_PRODUCT" GOCOMERRORCODE_UNKNOWN_SERVICE GocomErrorCode = "UNKNOWN_SERVICE" GOCOMERRORCODE_UNKNOWN_SERVICE_CATEGORY GocomErrorCode = "UNKNOWN_SERVICE_CATEGORY" )
List of GocomErrorCode
func NewGocomErrorCodeFromValue ¶ added in v0.3.0
func NewGocomErrorCodeFromValue(v string) (*GocomErrorCode, error)
NewGocomErrorCodeFromValue returns a pointer to a valid GocomErrorCode for the value passed as argument, or an error if the value passed is not allowed by the enum
func (GocomErrorCode) IsValid ¶ added in v0.3.0
func (v GocomErrorCode) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise
func (GocomErrorCode) Ptr ¶ added in v0.3.0
func (v GocomErrorCode) Ptr() *GocomErrorCode
Ptr returns reference to GocomErrorCode value
func (*GocomErrorCode) UnmarshalJSON ¶ added in v0.3.0
func (v *GocomErrorCode) UnmarshalJSON(src []byte) error
type Image ¶
type Image struct { Id string `json:"id"` // Extension of the image Ext string `json:"ext"` Urls map[string]string `json:"urls"` // Should be sorted ascending by this column Order int64 `json:"order"` }
Image struct for Image
func NewImage ¶
NewImage instantiates a new Image object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewImageWithDefaults ¶
func NewImageWithDefaults() *Image
NewImageWithDefaults instantiates a new Image object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*Image) GetExtOk ¶
GetExtOk returns a tuple with the Ext field value and a boolean to check if the value has been set.
func (*Image) GetIdOk ¶
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (*Image) GetOrderOk ¶
GetOrderOk returns a tuple with the Order field value and a boolean to check if the value has been set.
func (*Image) GetUrlsOk ¶
GetUrlsOk returns a tuple with the Urls field value and a boolean to check if the value has been set.
func (Image) MarshalJSON ¶
func (*Image) UnmarshalJSON ¶ added in v1.0.1
type Manufacturer ¶
type Manufacturer struct { // Compressed representation of ID Id string `json:"id"` Name string `json:"name"` WebsiteUrl *string `json:"website_url,omitempty"` ImageUrls *map[string]string `json:"image_urls,omitempty"` }
Manufacturer struct for Manufacturer
func NewManufacturer ¶
func NewManufacturer(id string, name string) *Manufacturer
NewManufacturer instantiates a new Manufacturer object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewManufacturerWithDefaults ¶
func NewManufacturerWithDefaults() *Manufacturer
NewManufacturerWithDefaults instantiates a new Manufacturer object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*Manufacturer) GetIdOk ¶
func (o *Manufacturer) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (*Manufacturer) GetImageUrls ¶
func (o *Manufacturer) GetImageUrls() map[string]string
GetImageUrls returns the ImageUrls field value if set, zero value otherwise.
func (*Manufacturer) GetImageUrlsOk ¶
func (o *Manufacturer) GetImageUrlsOk() (*map[string]string, bool)
GetImageUrlsOk returns a tuple with the ImageUrls field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Manufacturer) GetName ¶
func (o *Manufacturer) GetName() string
GetName returns the Name field value
func (*Manufacturer) GetNameOk ¶
func (o *Manufacturer) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (*Manufacturer) GetWebsiteUrl ¶
func (o *Manufacturer) GetWebsiteUrl() string
GetWebsiteUrl returns the WebsiteUrl field value if set, zero value otherwise.
func (*Manufacturer) GetWebsiteUrlOk ¶
func (o *Manufacturer) GetWebsiteUrlOk() (*string, bool)
GetWebsiteUrlOk returns a tuple with the WebsiteUrl field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Manufacturer) HasImageUrls ¶
func (o *Manufacturer) HasImageUrls() bool
HasImageUrls returns a boolean if a field has been set.
func (*Manufacturer) HasWebsiteUrl ¶
func (o *Manufacturer) HasWebsiteUrl() bool
HasWebsiteUrl returns a boolean if a field has been set.
func (Manufacturer) MarshalJSON ¶
func (o Manufacturer) MarshalJSON() ([]byte, error)
func (*Manufacturer) SetImageUrls ¶
func (o *Manufacturer) SetImageUrls(v map[string]string)
SetImageUrls gets a reference to the given map[string]string and assigns it to the ImageUrls field.
func (*Manufacturer) SetWebsiteUrl ¶
func (o *Manufacturer) SetWebsiteUrl(v string)
SetWebsiteUrl gets a reference to the given string and assigns it to the WebsiteUrl field.
func (Manufacturer) ToMap ¶ added in v1.0.0
func (o Manufacturer) ToMap() (map[string]interface{}, error)
func (*Manufacturer) UnmarshalJSON ¶ added in v1.0.1
func (o *Manufacturer) UnmarshalJSON(data []byte) (err error)
type ManufacturerList ¶
type ManufacturerList struct {
Manufacturers []Manufacturer `json:"manufacturers"`
}
ManufacturerList struct for ManufacturerList
func NewManufacturerList ¶
func NewManufacturerList(manufacturers []Manufacturer) *ManufacturerList
NewManufacturerList instantiates a new ManufacturerList object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewManufacturerListWithDefaults ¶
func NewManufacturerListWithDefaults() *ManufacturerList
NewManufacturerListWithDefaults instantiates a new ManufacturerList object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*ManufacturerList) GetManufacturers ¶
func (o *ManufacturerList) GetManufacturers() []Manufacturer
GetManufacturers returns the Manufacturers field value
func (*ManufacturerList) GetManufacturersOk ¶
func (o *ManufacturerList) GetManufacturersOk() ([]Manufacturer, bool)
GetManufacturersOk returns a tuple with the Manufacturers field value and a boolean to check if the value has been set.
func (ManufacturerList) MarshalJSON ¶
func (o ManufacturerList) MarshalJSON() ([]byte, error)
func (*ManufacturerList) SetManufacturers ¶
func (o *ManufacturerList) SetManufacturers(v []Manufacturer)
SetManufacturers sets field value
func (ManufacturerList) ToMap ¶ added in v1.0.0
func (o ManufacturerList) ToMap() (map[string]interface{}, error)
func (*ManufacturerList) UnmarshalJSON ¶ added in v1.0.1
func (o *ManufacturerList) UnmarshalJSON(data []byte) (err error)
type ManufacturersAPIService ¶ added in v1.0.1
type ManufacturersAPIService service
ManufacturersAPIService ManufacturersAPI service
func (*ManufacturersAPIService) GetManufacturer ¶ added in v1.0.1
func (a *ManufacturersAPIService) GetManufacturer(ctx context.Context, id string) ApiGetManufacturerRequest
GetManufacturer Method for GetManufacturer
Get manufacturer details
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param id ID @return ApiGetManufacturerRequest
func (*ManufacturersAPIService) GetManufacturerExecute ¶ added in v1.0.1
func (a *ManufacturersAPIService) GetManufacturerExecute(r ApiGetManufacturerRequest) (*Manufacturer, *http.Response, error)
Execute executes the request
@return Manufacturer
func (*ManufacturersAPIService) ListManufacturers ¶ added in v1.0.1
func (a *ManufacturersAPIService) ListManufacturers(ctx context.Context) ApiListManufacturersRequest
ListManufacturers Method for ListManufacturers
List manufacturers
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiListManufacturersRequest
func (*ManufacturersAPIService) ListManufacturersExecute ¶ added in v1.0.1
func (a *ManufacturersAPIService) ListManufacturersExecute(r ApiListManufacturersRequest) (*ManufacturerList, *http.Response, error)
Execute executes the request
@return ManufacturerList
type MappedNullable ¶ added in v1.0.0
type NullableBool ¶
type NullableBool struct {
// contains filtered or unexported fields
}
func NewNullableBool ¶
func NewNullableBool(val *bool) *NullableBool
func (NullableBool) Get ¶
func (v NullableBool) Get() *bool
func (NullableBool) IsSet ¶
func (v NullableBool) IsSet() bool
func (NullableBool) MarshalJSON ¶
func (v NullableBool) MarshalJSON() ([]byte, error)
func (*NullableBool) Set ¶
func (v *NullableBool) Set(val *bool)
func (*NullableBool) UnmarshalJSON ¶
func (v *NullableBool) UnmarshalJSON(src []byte) error
func (*NullableBool) Unset ¶
func (v *NullableBool) Unset()
type NullableCategory ¶
type NullableCategory struct {
// contains filtered or unexported fields
}
func NewNullableCategory ¶
func NewNullableCategory(val *Category) *NullableCategory
func (NullableCategory) Get ¶
func (v NullableCategory) Get() *Category
func (NullableCategory) IsSet ¶
func (v NullableCategory) IsSet() bool
func (NullableCategory) MarshalJSON ¶
func (v NullableCategory) MarshalJSON() ([]byte, error)
func (*NullableCategory) Set ¶
func (v *NullableCategory) Set(val *Category)
func (*NullableCategory) UnmarshalJSON ¶
func (v *NullableCategory) UnmarshalJSON(src []byte) error
func (*NullableCategory) Unset ¶
func (v *NullableCategory) Unset()
type NullableCategoryList ¶
type NullableCategoryList struct {
// contains filtered or unexported fields
}
func NewNullableCategoryList ¶
func NewNullableCategoryList(val *CategoryList) *NullableCategoryList
func (NullableCategoryList) Get ¶
func (v NullableCategoryList) Get() *CategoryList
func (NullableCategoryList) IsSet ¶
func (v NullableCategoryList) IsSet() bool
func (NullableCategoryList) MarshalJSON ¶
func (v NullableCategoryList) MarshalJSON() ([]byte, error)
func (*NullableCategoryList) Set ¶
func (v *NullableCategoryList) Set(val *CategoryList)
func (*NullableCategoryList) UnmarshalJSON ¶
func (v *NullableCategoryList) UnmarshalJSON(src []byte) error
func (*NullableCategoryList) Unset ¶
func (v *NullableCategoryList) Unset()
type NullableContent ¶ added in v0.3.0
type NullableContent struct {
// contains filtered or unexported fields
}
func NewNullableContent ¶ added in v0.3.0
func NewNullableContent(val *Content) *NullableContent
func (NullableContent) Get ¶ added in v0.3.0
func (v NullableContent) Get() *Content
func (NullableContent) IsSet ¶ added in v0.3.0
func (v NullableContent) IsSet() bool
func (NullableContent) MarshalJSON ¶ added in v0.3.0
func (v NullableContent) MarshalJSON() ([]byte, error)
func (*NullableContent) Set ¶ added in v0.3.0
func (v *NullableContent) Set(val *Content)
func (*NullableContent) UnmarshalJSON ¶ added in v0.3.0
func (v *NullableContent) UnmarshalJSON(src []byte) error
func (*NullableContent) Unset ¶ added in v0.3.0
func (v *NullableContent) Unset()
type NullableContentList ¶ added in v0.3.0
type NullableContentList struct {
// contains filtered or unexported fields
}
func NewNullableContentList ¶ added in v0.3.0
func NewNullableContentList(val *ContentList) *NullableContentList
func (NullableContentList) Get ¶ added in v0.3.0
func (v NullableContentList) Get() *ContentList
func (NullableContentList) IsSet ¶ added in v0.3.0
func (v NullableContentList) IsSet() bool
func (NullableContentList) MarshalJSON ¶ added in v0.3.0
func (v NullableContentList) MarshalJSON() ([]byte, error)
func (*NullableContentList) Set ¶ added in v0.3.0
func (v *NullableContentList) Set(val *ContentList)
func (*NullableContentList) UnmarshalJSON ¶ added in v0.3.0
func (v *NullableContentList) UnmarshalJSON(src []byte) error
func (*NullableContentList) Unset ¶ added in v0.3.0
func (v *NullableContentList) Unset()
type NullableContentType ¶ added in v0.3.0
type NullableContentType struct {
// contains filtered or unexported fields
}
func NewNullableContentType ¶ added in v0.3.0
func NewNullableContentType(val *ContentType) *NullableContentType
func (NullableContentType) Get ¶ added in v0.3.0
func (v NullableContentType) Get() *ContentType
func (NullableContentType) IsSet ¶ added in v0.3.0
func (v NullableContentType) IsSet() bool
func (NullableContentType) MarshalJSON ¶ added in v0.3.0
func (v NullableContentType) MarshalJSON() ([]byte, error)
func (*NullableContentType) Set ¶ added in v0.3.0
func (v *NullableContentType) Set(val *ContentType)
func (*NullableContentType) UnmarshalJSON ¶ added in v0.3.0
func (v *NullableContentType) UnmarshalJSON(src []byte) error
func (*NullableContentType) Unset ¶ added in v0.3.0
func (v *NullableContentType) Unset()
type NullableEvent ¶ added in v0.3.0
type NullableEvent struct {
// contains filtered or unexported fields
}
func NewNullableEvent ¶ added in v0.3.0
func NewNullableEvent(val *Event) *NullableEvent
func (NullableEvent) Get ¶ added in v0.3.0
func (v NullableEvent) Get() *Event
func (NullableEvent) IsSet ¶ added in v0.3.0
func (v NullableEvent) IsSet() bool
func (NullableEvent) MarshalJSON ¶ added in v0.3.0
func (v NullableEvent) MarshalJSON() ([]byte, error)
func (*NullableEvent) Set ¶ added in v0.3.0
func (v *NullableEvent) Set(val *Event)
func (*NullableEvent) UnmarshalJSON ¶ added in v0.3.0
func (v *NullableEvent) UnmarshalJSON(src []byte) error
func (*NullableEvent) Unset ¶ added in v0.3.0
func (v *NullableEvent) Unset()
type NullableEventList ¶ added in v0.3.0
type NullableEventList struct {
// contains filtered or unexported fields
}
func NewNullableEventList ¶ added in v0.3.0
func NewNullableEventList(val *EventList) *NullableEventList
func (NullableEventList) Get ¶ added in v0.3.0
func (v NullableEventList) Get() *EventList
func (NullableEventList) IsSet ¶ added in v0.3.0
func (v NullableEventList) IsSet() bool
func (NullableEventList) MarshalJSON ¶ added in v0.3.0
func (v NullableEventList) MarshalJSON() ([]byte, error)
func (*NullableEventList) Set ¶ added in v0.3.0
func (v *NullableEventList) Set(val *EventList)
func (*NullableEventList) UnmarshalJSON ¶ added in v0.3.0
func (v *NullableEventList) UnmarshalJSON(src []byte) error
func (*NullableEventList) Unset ¶ added in v0.3.0
func (v *NullableEventList) Unset()
type NullableFloat32 ¶
type NullableFloat32 struct {
// contains filtered or unexported fields
}
func NewNullableFloat32 ¶
func NewNullableFloat32(val *float32) *NullableFloat32
func (NullableFloat32) Get ¶
func (v NullableFloat32) Get() *float32
func (NullableFloat32) IsSet ¶
func (v NullableFloat32) IsSet() bool
func (NullableFloat32) MarshalJSON ¶
func (v NullableFloat32) MarshalJSON() ([]byte, error)
func (*NullableFloat32) Set ¶
func (v *NullableFloat32) Set(val *float32)
func (*NullableFloat32) UnmarshalJSON ¶
func (v *NullableFloat32) UnmarshalJSON(src []byte) error
func (*NullableFloat32) Unset ¶
func (v *NullableFloat32) Unset()
type NullableFloat64 ¶
type NullableFloat64 struct {
// contains filtered or unexported fields
}
func NewNullableFloat64 ¶
func NewNullableFloat64(val *float64) *NullableFloat64
func (NullableFloat64) Get ¶
func (v NullableFloat64) Get() *float64
func (NullableFloat64) IsSet ¶
func (v NullableFloat64) IsSet() bool
func (NullableFloat64) MarshalJSON ¶
func (v NullableFloat64) MarshalJSON() ([]byte, error)
func (*NullableFloat64) Set ¶
func (v *NullableFloat64) Set(val *float64)
func (*NullableFloat64) UnmarshalJSON ¶
func (v *NullableFloat64) UnmarshalJSON(src []byte) error
func (*NullableFloat64) Unset ¶
func (v *NullableFloat64) Unset()
type NullableGocomError ¶ added in v0.3.0
type NullableGocomError struct {
// contains filtered or unexported fields
}
func NewNullableGocomError ¶ added in v0.3.0
func NewNullableGocomError(val *GocomError) *NullableGocomError
func (NullableGocomError) Get ¶ added in v0.3.0
func (v NullableGocomError) Get() *GocomError
func (NullableGocomError) IsSet ¶ added in v0.3.0
func (v NullableGocomError) IsSet() bool
func (NullableGocomError) MarshalJSON ¶ added in v0.3.0
func (v NullableGocomError) MarshalJSON() ([]byte, error)
func (*NullableGocomError) Set ¶ added in v0.3.0
func (v *NullableGocomError) Set(val *GocomError)
func (*NullableGocomError) UnmarshalJSON ¶ added in v0.3.0
func (v *NullableGocomError) UnmarshalJSON(src []byte) error
func (*NullableGocomError) Unset ¶ added in v0.3.0
func (v *NullableGocomError) Unset()
type NullableGocomErrorCode ¶ added in v0.3.0
type NullableGocomErrorCode struct {
// contains filtered or unexported fields
}
func NewNullableGocomErrorCode ¶ added in v0.3.0
func NewNullableGocomErrorCode(val *GocomErrorCode) *NullableGocomErrorCode
func (NullableGocomErrorCode) Get ¶ added in v0.3.0
func (v NullableGocomErrorCode) Get() *GocomErrorCode
func (NullableGocomErrorCode) IsSet ¶ added in v0.3.0
func (v NullableGocomErrorCode) IsSet() bool
func (NullableGocomErrorCode) MarshalJSON ¶ added in v0.3.0
func (v NullableGocomErrorCode) MarshalJSON() ([]byte, error)
func (*NullableGocomErrorCode) Set ¶ added in v0.3.0
func (v *NullableGocomErrorCode) Set(val *GocomErrorCode)
func (*NullableGocomErrorCode) UnmarshalJSON ¶ added in v0.3.0
func (v *NullableGocomErrorCode) UnmarshalJSON(src []byte) error
func (*NullableGocomErrorCode) Unset ¶ added in v0.3.0
func (v *NullableGocomErrorCode) Unset()
type NullableImage ¶
type NullableImage struct {
// contains filtered or unexported fields
}
func NewNullableImage ¶
func NewNullableImage(val *Image) *NullableImage
func (NullableImage) Get ¶
func (v NullableImage) Get() *Image
func (NullableImage) IsSet ¶
func (v NullableImage) IsSet() bool
func (NullableImage) MarshalJSON ¶
func (v NullableImage) MarshalJSON() ([]byte, error)
func (*NullableImage) Set ¶
func (v *NullableImage) Set(val *Image)
func (*NullableImage) UnmarshalJSON ¶
func (v *NullableImage) UnmarshalJSON(src []byte) error
func (*NullableImage) Unset ¶
func (v *NullableImage) Unset()
type NullableInt ¶
type NullableInt struct {
// contains filtered or unexported fields
}
func NewNullableInt ¶
func NewNullableInt(val *int) *NullableInt
func (NullableInt) Get ¶
func (v NullableInt) Get() *int
func (NullableInt) IsSet ¶
func (v NullableInt) IsSet() bool
func (NullableInt) MarshalJSON ¶
func (v NullableInt) MarshalJSON() ([]byte, error)
func (*NullableInt) Set ¶
func (v *NullableInt) Set(val *int)
func (*NullableInt) UnmarshalJSON ¶
func (v *NullableInt) UnmarshalJSON(src []byte) error
func (*NullableInt) Unset ¶
func (v *NullableInt) Unset()
type NullableInt32 ¶
type NullableInt32 struct {
// contains filtered or unexported fields
}
func NewNullableInt32 ¶
func NewNullableInt32(val *int32) *NullableInt32
func (NullableInt32) Get ¶
func (v NullableInt32) Get() *int32
func (NullableInt32) IsSet ¶
func (v NullableInt32) IsSet() bool
func (NullableInt32) MarshalJSON ¶
func (v NullableInt32) MarshalJSON() ([]byte, error)
func (*NullableInt32) Set ¶
func (v *NullableInt32) Set(val *int32)
func (*NullableInt32) UnmarshalJSON ¶
func (v *NullableInt32) UnmarshalJSON(src []byte) error
func (*NullableInt32) Unset ¶
func (v *NullableInt32) Unset()
type NullableInt64 ¶
type NullableInt64 struct {
// contains filtered or unexported fields
}
func NewNullableInt64 ¶
func NewNullableInt64(val *int64) *NullableInt64
func (NullableInt64) Get ¶
func (v NullableInt64) Get() *int64
func (NullableInt64) IsSet ¶
func (v NullableInt64) IsSet() bool
func (NullableInt64) MarshalJSON ¶
func (v NullableInt64) MarshalJSON() ([]byte, error)
func (*NullableInt64) Set ¶
func (v *NullableInt64) Set(val *int64)
func (*NullableInt64) UnmarshalJSON ¶
func (v *NullableInt64) UnmarshalJSON(src []byte) error
func (*NullableInt64) Unset ¶
func (v *NullableInt64) Unset()
type NullableManufacturer ¶
type NullableManufacturer struct {
// contains filtered or unexported fields
}
func NewNullableManufacturer ¶
func NewNullableManufacturer(val *Manufacturer) *NullableManufacturer
func (NullableManufacturer) Get ¶
func (v NullableManufacturer) Get() *Manufacturer
func (NullableManufacturer) IsSet ¶
func (v NullableManufacturer) IsSet() bool
func (NullableManufacturer) MarshalJSON ¶
func (v NullableManufacturer) MarshalJSON() ([]byte, error)
func (*NullableManufacturer) Set ¶
func (v *NullableManufacturer) Set(val *Manufacturer)
func (*NullableManufacturer) UnmarshalJSON ¶
func (v *NullableManufacturer) UnmarshalJSON(src []byte) error
func (*NullableManufacturer) Unset ¶
func (v *NullableManufacturer) Unset()
type NullableManufacturerList ¶
type NullableManufacturerList struct {
// contains filtered or unexported fields
}
func NewNullableManufacturerList ¶
func NewNullableManufacturerList(val *ManufacturerList) *NullableManufacturerList
func (NullableManufacturerList) Get ¶
func (v NullableManufacturerList) Get() *ManufacturerList
func (NullableManufacturerList) IsSet ¶
func (v NullableManufacturerList) IsSet() bool
func (NullableManufacturerList) MarshalJSON ¶
func (v NullableManufacturerList) MarshalJSON() ([]byte, error)
func (*NullableManufacturerList) Set ¶
func (v *NullableManufacturerList) Set(val *ManufacturerList)
func (*NullableManufacturerList) UnmarshalJSON ¶
func (v *NullableManufacturerList) UnmarshalJSON(src []byte) error
func (*NullableManufacturerList) Unset ¶
func (v *NullableManufacturerList) Unset()
type NullableProduct ¶
type NullableProduct struct {
// contains filtered or unexported fields
}
func NewNullableProduct ¶
func NewNullableProduct(val *Product) *NullableProduct
func (NullableProduct) Get ¶
func (v NullableProduct) Get() *Product
func (NullableProduct) IsSet ¶
func (v NullableProduct) IsSet() bool
func (NullableProduct) MarshalJSON ¶
func (v NullableProduct) MarshalJSON() ([]byte, error)
func (*NullableProduct) Set ¶
func (v *NullableProduct) Set(val *Product)
func (*NullableProduct) UnmarshalJSON ¶
func (v *NullableProduct) UnmarshalJSON(src []byte) error
func (*NullableProduct) Unset ¶
func (v *NullableProduct) Unset()
type NullableProductList ¶
type NullableProductList struct {
// contains filtered or unexported fields
}
func NewNullableProductList ¶
func NewNullableProductList(val *ProductList) *NullableProductList
func (NullableProductList) Get ¶
func (v NullableProductList) Get() *ProductList
func (NullableProductList) IsSet ¶
func (v NullableProductList) IsSet() bool
func (NullableProductList) MarshalJSON ¶
func (v NullableProductList) MarshalJSON() ([]byte, error)
func (*NullableProductList) Set ¶
func (v *NullableProductList) Set(val *ProductList)
func (*NullableProductList) UnmarshalJSON ¶
func (v *NullableProductList) UnmarshalJSON(src []byte) error
func (*NullableProductList) Unset ¶
func (v *NullableProductList) Unset()
type NullableProductStatus ¶
type NullableProductStatus struct {
// contains filtered or unexported fields
}
func NewNullableProductStatus ¶
func NewNullableProductStatus(val *ProductStatus) *NullableProductStatus
func (NullableProductStatus) Get ¶
func (v NullableProductStatus) Get() *ProductStatus
func (NullableProductStatus) IsSet ¶
func (v NullableProductStatus) IsSet() bool
func (NullableProductStatus) MarshalJSON ¶
func (v NullableProductStatus) MarshalJSON() ([]byte, error)
func (*NullableProductStatus) Set ¶
func (v *NullableProductStatus) Set(val *ProductStatus)
func (*NullableProductStatus) UnmarshalJSON ¶
func (v *NullableProductStatus) UnmarshalJSON(src []byte) error
func (*NullableProductStatus) Unset ¶
func (v *NullableProductStatus) Unset()
type NullableResolvedProduct ¶
type NullableResolvedProduct struct {
// contains filtered or unexported fields
}
func NewNullableResolvedProduct ¶
func NewNullableResolvedProduct(val *ResolvedProduct) *NullableResolvedProduct
func (NullableResolvedProduct) Get ¶
func (v NullableResolvedProduct) Get() *ResolvedProduct
func (NullableResolvedProduct) IsSet ¶
func (v NullableResolvedProduct) IsSet() bool
func (NullableResolvedProduct) MarshalJSON ¶
func (v NullableResolvedProduct) MarshalJSON() ([]byte, error)
func (*NullableResolvedProduct) Set ¶
func (v *NullableResolvedProduct) Set(val *ResolvedProduct)
func (*NullableResolvedProduct) UnmarshalJSON ¶
func (v *NullableResolvedProduct) UnmarshalJSON(src []byte) error
func (*NullableResolvedProduct) Unset ¶
func (v *NullableResolvedProduct) Unset()
type NullableResolvedServiceCategory ¶ added in v1.1.0
type NullableResolvedServiceCategory struct {
// contains filtered or unexported fields
}
func NewNullableResolvedServiceCategory ¶ added in v1.1.0
func NewNullableResolvedServiceCategory(val *ResolvedServiceCategory) *NullableResolvedServiceCategory
func (NullableResolvedServiceCategory) Get ¶ added in v1.1.0
func (v NullableResolvedServiceCategory) Get() *ResolvedServiceCategory
func (NullableResolvedServiceCategory) IsSet ¶ added in v1.1.0
func (v NullableResolvedServiceCategory) IsSet() bool
func (NullableResolvedServiceCategory) MarshalJSON ¶ added in v1.1.0
func (v NullableResolvedServiceCategory) MarshalJSON() ([]byte, error)
func (*NullableResolvedServiceCategory) Set ¶ added in v1.1.0
func (v *NullableResolvedServiceCategory) Set(val *ResolvedServiceCategory)
func (*NullableResolvedServiceCategory) UnmarshalJSON ¶ added in v1.1.0
func (v *NullableResolvedServiceCategory) UnmarshalJSON(src []byte) error
func (*NullableResolvedServiceCategory) Unset ¶ added in v1.1.0
func (v *NullableResolvedServiceCategory) Unset()
type NullableResolvedServiceCategoryList ¶ added in v1.1.0
type NullableResolvedServiceCategoryList struct {
// contains filtered or unexported fields
}
func NewNullableResolvedServiceCategoryList ¶ added in v1.1.0
func NewNullableResolvedServiceCategoryList(val *ResolvedServiceCategoryList) *NullableResolvedServiceCategoryList
func (NullableResolvedServiceCategoryList) Get ¶ added in v1.1.0
func (v NullableResolvedServiceCategoryList) Get() *ResolvedServiceCategoryList
func (NullableResolvedServiceCategoryList) IsSet ¶ added in v1.1.0
func (v NullableResolvedServiceCategoryList) IsSet() bool
func (NullableResolvedServiceCategoryList) MarshalJSON ¶ added in v1.1.0
func (v NullableResolvedServiceCategoryList) MarshalJSON() ([]byte, error)
func (*NullableResolvedServiceCategoryList) Set ¶ added in v1.1.0
func (v *NullableResolvedServiceCategoryList) Set(val *ResolvedServiceCategoryList)
func (*NullableResolvedServiceCategoryList) UnmarshalJSON ¶ added in v1.1.0
func (v *NullableResolvedServiceCategoryList) UnmarshalJSON(src []byte) error
func (*NullableResolvedServiceCategoryList) Unset ¶ added in v1.1.0
func (v *NullableResolvedServiceCategoryList) Unset()
type NullableService ¶ added in v1.1.0
type NullableService struct {
// contains filtered or unexported fields
}
func NewNullableService ¶ added in v1.1.0
func NewNullableService(val *Service) *NullableService
func (NullableService) Get ¶ added in v1.1.0
func (v NullableService) Get() *Service
func (NullableService) IsSet ¶ added in v1.1.0
func (v NullableService) IsSet() bool
func (NullableService) MarshalJSON ¶ added in v1.1.0
func (v NullableService) MarshalJSON() ([]byte, error)
func (*NullableService) Set ¶ added in v1.1.0
func (v *NullableService) Set(val *Service)
func (*NullableService) UnmarshalJSON ¶ added in v1.1.0
func (v *NullableService) UnmarshalJSON(src []byte) error
func (*NullableService) Unset ¶ added in v1.1.0
func (v *NullableService) Unset()
type NullableServiceCategory ¶ added in v1.1.0
type NullableServiceCategory struct {
// contains filtered or unexported fields
}
func NewNullableServiceCategory ¶ added in v1.1.0
func NewNullableServiceCategory(val *ServiceCategory) *NullableServiceCategory
func (NullableServiceCategory) Get ¶ added in v1.1.0
func (v NullableServiceCategory) Get() *ServiceCategory
func (NullableServiceCategory) IsSet ¶ added in v1.1.0
func (v NullableServiceCategory) IsSet() bool
func (NullableServiceCategory) MarshalJSON ¶ added in v1.1.0
func (v NullableServiceCategory) MarshalJSON() ([]byte, error)
func (*NullableServiceCategory) Set ¶ added in v1.1.0
func (v *NullableServiceCategory) Set(val *ServiceCategory)
func (*NullableServiceCategory) UnmarshalJSON ¶ added in v1.1.0
func (v *NullableServiceCategory) UnmarshalJSON(src []byte) error
func (*NullableServiceCategory) Unset ¶ added in v1.1.0
func (v *NullableServiceCategory) Unset()
type NullableString ¶
type NullableString struct {
// contains filtered or unexported fields
}
func NewNullableString ¶
func NewNullableString(val *string) *NullableString
func (NullableString) Get ¶
func (v NullableString) Get() *string
func (NullableString) IsSet ¶
func (v NullableString) IsSet() bool
func (NullableString) MarshalJSON ¶
func (v NullableString) MarshalJSON() ([]byte, error)
func (*NullableString) Set ¶
func (v *NullableString) Set(val *string)
func (*NullableString) UnmarshalJSON ¶
func (v *NullableString) UnmarshalJSON(src []byte) error
func (*NullableString) Unset ¶
func (v *NullableString) Unset()
type NullableTime ¶
type NullableTime struct {
// contains filtered or unexported fields
}
func NewNullableTime ¶
func NewNullableTime(val *time.Time) *NullableTime
func (NullableTime) Get ¶
func (v NullableTime) Get() *time.Time
func (NullableTime) IsSet ¶
func (v NullableTime) IsSet() bool
func (NullableTime) MarshalJSON ¶
func (v NullableTime) MarshalJSON() ([]byte, error)
func (*NullableTime) Set ¶
func (v *NullableTime) Set(val *time.Time)
func (*NullableTime) UnmarshalJSON ¶
func (v *NullableTime) UnmarshalJSON(src []byte) error
func (*NullableTime) Unset ¶
func (v *NullableTime) Unset()
type Product ¶
type Product struct { // Compressed representation of ID Id string `json:"id"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` Name string `json:"name"` DescriptionShort *string `json:"description_short,omitempty"` DescriptionLong *string `json:"description_long,omitempty"` // Price in cents Price int64 `json:"price"` CategoryIds []string `json:"category_ids,omitempty"` // Compressed representation of ID ManufacturerId *string `json:"manufacturer_id,omitempty"` Status *ProductStatus `json:"status,omitempty"` StockCount *int64 `json:"stock_count,omitempty"` ImageUrls []map[string]string `json:"image_urls,omitempty"` }
Product struct for Product
func NewProduct ¶
func NewProduct(id string, createdAt time.Time, updatedAt time.Time, name string, price int64) *Product
NewProduct instantiates a new Product object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewProductWithDefaults ¶
func NewProductWithDefaults() *Product
NewProductWithDefaults instantiates a new Product object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*Product) GetCategoryIds ¶
GetCategoryIds returns the CategoryIds field value if set, zero value otherwise.
func (*Product) GetCategoryIdsOk ¶
GetCategoryIdsOk returns a tuple with the CategoryIds field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Product) GetCreatedAt ¶
GetCreatedAt returns the CreatedAt field value
func (*Product) GetCreatedAtOk ¶
GetCreatedAtOk returns a tuple with the CreatedAt field value and a boolean to check if the value has been set.
func (*Product) GetDescriptionLong ¶
GetDescriptionLong returns the DescriptionLong field value if set, zero value otherwise.
func (*Product) GetDescriptionLongOk ¶
GetDescriptionLongOk returns a tuple with the DescriptionLong field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Product) GetDescriptionShort ¶
GetDescriptionShort returns the DescriptionShort field value if set, zero value otherwise.
func (*Product) GetDescriptionShortOk ¶
GetDescriptionShortOk returns a tuple with the DescriptionShort field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Product) GetIdOk ¶
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (*Product) GetImageUrls ¶
GetImageUrls returns the ImageUrls field value if set, zero value otherwise.
func (*Product) GetImageUrlsOk ¶
GetImageUrlsOk returns a tuple with the ImageUrls field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Product) GetManufacturerId ¶
GetManufacturerId returns the ManufacturerId field value if set, zero value otherwise.
func (*Product) GetManufacturerIdOk ¶
GetManufacturerIdOk returns a tuple with the ManufacturerId field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Product) GetNameOk ¶
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (*Product) GetPriceOk ¶
GetPriceOk returns a tuple with the Price field value and a boolean to check if the value has been set.
func (*Product) GetStatus ¶
func (o *Product) GetStatus() ProductStatus
GetStatus returns the Status field value if set, zero value otherwise.
func (*Product) GetStatusOk ¶
func (o *Product) GetStatusOk() (*ProductStatus, bool)
GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Product) GetStockCount ¶
GetStockCount returns the StockCount field value if set, zero value otherwise.
func (*Product) GetStockCountOk ¶
GetStockCountOk returns a tuple with the StockCount field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Product) GetUpdatedAt ¶
GetUpdatedAt returns the UpdatedAt field value
func (*Product) GetUpdatedAtOk ¶
GetUpdatedAtOk returns a tuple with the UpdatedAt field value and a boolean to check if the value has been set.
func (*Product) HasCategoryIds ¶
HasCategoryIds returns a boolean if a field has been set.
func (*Product) HasDescriptionLong ¶
HasDescriptionLong returns a boolean if a field has been set.
func (*Product) HasDescriptionShort ¶
HasDescriptionShort returns a boolean if a field has been set.
func (*Product) HasImageUrls ¶
HasImageUrls returns a boolean if a field has been set.
func (*Product) HasManufacturerId ¶
HasManufacturerId returns a boolean if a field has been set.
func (*Product) HasStockCount ¶
HasStockCount returns a boolean if a field has been set.
func (Product) MarshalJSON ¶
func (*Product) SetCategoryIds ¶
SetCategoryIds gets a reference to the given []string and assigns it to the CategoryIds field.
func (*Product) SetCreatedAt ¶
SetCreatedAt sets field value
func (*Product) SetDescriptionLong ¶
SetDescriptionLong gets a reference to the given string and assigns it to the DescriptionLong field.
func (*Product) SetDescriptionShort ¶
SetDescriptionShort gets a reference to the given string and assigns it to the DescriptionShort field.
func (*Product) SetImageUrls ¶
SetImageUrls gets a reference to the given []map[string]string and assigns it to the ImageUrls field.
func (*Product) SetManufacturerId ¶
SetManufacturerId gets a reference to the given string and assigns it to the ManufacturerId field.
func (*Product) SetStatus ¶
func (o *Product) SetStatus(v ProductStatus)
SetStatus gets a reference to the given ProductStatus and assigns it to the Status field.
func (*Product) SetStockCount ¶
SetStockCount gets a reference to the given int64 and assigns it to the StockCount field.
func (*Product) SetUpdatedAt ¶
SetUpdatedAt sets field value
func (*Product) UnmarshalJSON ¶ added in v1.0.1
type ProductList ¶
type ProductList struct {
Products []Product `json:"products"`
}
ProductList struct for ProductList
func NewProductList ¶
func NewProductList(products []Product) *ProductList
NewProductList instantiates a new ProductList object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewProductListWithDefaults ¶
func NewProductListWithDefaults() *ProductList
NewProductListWithDefaults instantiates a new ProductList object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*ProductList) GetProducts ¶
func (o *ProductList) GetProducts() []Product
GetProducts returns the Products field value
func (*ProductList) GetProductsOk ¶
func (o *ProductList) GetProductsOk() ([]Product, bool)
GetProductsOk returns a tuple with the Products field value and a boolean to check if the value has been set.
func (ProductList) MarshalJSON ¶
func (o ProductList) MarshalJSON() ([]byte, error)
func (*ProductList) SetProducts ¶
func (o *ProductList) SetProducts(v []Product)
SetProducts sets field value
func (ProductList) ToMap ¶ added in v1.0.0
func (o ProductList) ToMap() (map[string]interface{}, error)
func (*ProductList) UnmarshalJSON ¶ added in v1.0.1
func (o *ProductList) UnmarshalJSON(data []byte) (err error)
type ProductStatus ¶
type ProductStatus string
ProductStatus the model 'ProductStatus'
const ( PRODUCTSTATUS_AVAILABLE ProductStatus = "AVAILABLE" PRODUCTSTATUS_ARCHIVED ProductStatus = "ARCHIVED" )
List of ProductStatus
func NewProductStatusFromValue ¶
func NewProductStatusFromValue(v string) (*ProductStatus, error)
NewProductStatusFromValue returns a pointer to a valid ProductStatus for the value passed as argument, or an error if the value passed is not allowed by the enum
func (ProductStatus) IsValid ¶
func (v ProductStatus) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise
func (ProductStatus) Ptr ¶
func (v ProductStatus) Ptr() *ProductStatus
Ptr returns reference to ProductStatus value
func (*ProductStatus) UnmarshalJSON ¶
func (v *ProductStatus) UnmarshalJSON(src []byte) error
type ProductsAPIService ¶ added in v1.0.1
type ProductsAPIService service
ProductsAPIService ProductsAPI service
func (*ProductsAPIService) GetProduct ¶ added in v1.0.1
func (a *ProductsAPIService) GetProduct(ctx context.Context, id string) ApiGetProductRequest
GetProduct Method for GetProduct
Get product details
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param id ID @return ApiGetProductRequest
func (*ProductsAPIService) GetProductExecute ¶ added in v1.0.1
func (a *ProductsAPIService) GetProductExecute(r ApiGetProductRequest) (*ResolvedProduct, *http.Response, error)
Execute executes the request
@return ResolvedProduct
func (*ProductsAPIService) ListProducts ¶ added in v1.0.1
func (a *ProductsAPIService) ListProducts(ctx context.Context) ApiListProductsRequest
ListProducts Method for ListProducts
List products
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiListProductsRequest
func (*ProductsAPIService) ListProductsExecute ¶ added in v1.0.1
func (a *ProductsAPIService) ListProductsExecute(r ApiListProductsRequest) (*ProductList, *http.Response, error)
Execute executes the request
@return ProductList
type ResolvedProduct ¶
type ResolvedProduct struct { // Compressed representation of ID Id string `json:"id"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` Name string `json:"name"` DescriptionShort *string `json:"description_short,omitempty"` DescriptionLong *string `json:"description_long,omitempty"` // Price in cents Price int64 `json:"price"` CategoryIds []string `json:"category_ids,omitempty"` // Compressed representation of ID ManufacturerId *string `json:"manufacturer_id,omitempty"` Status *ProductStatus `json:"status,omitempty"` StockCount *int64 `json:"stock_count,omitempty"` ImageUrls []map[string]string `json:"image_urls,omitempty"` Manufacturer *Manufacturer `json:"manufacturer,omitempty"` Categories []Category `json:"categories,omitempty"` }
ResolvedProduct struct for ResolvedProduct
func NewResolvedProduct ¶
func NewResolvedProduct(id string, createdAt time.Time, updatedAt time.Time, name string, price int64) *ResolvedProduct
NewResolvedProduct instantiates a new ResolvedProduct object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewResolvedProductWithDefaults ¶
func NewResolvedProductWithDefaults() *ResolvedProduct
NewResolvedProductWithDefaults instantiates a new ResolvedProduct object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*ResolvedProduct) GetCategories ¶
func (o *ResolvedProduct) GetCategories() []Category
GetCategories returns the Categories field value if set, zero value otherwise.
func (*ResolvedProduct) GetCategoriesOk ¶
func (o *ResolvedProduct) GetCategoriesOk() ([]Category, bool)
GetCategoriesOk returns a tuple with the Categories field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ResolvedProduct) GetCategoryIds ¶
func (o *ResolvedProduct) GetCategoryIds() []string
GetCategoryIds returns the CategoryIds field value if set, zero value otherwise.
func (*ResolvedProduct) GetCategoryIdsOk ¶
func (o *ResolvedProduct) GetCategoryIdsOk() ([]string, bool)
GetCategoryIdsOk returns a tuple with the CategoryIds field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ResolvedProduct) GetCreatedAt ¶
func (o *ResolvedProduct) GetCreatedAt() time.Time
GetCreatedAt returns the CreatedAt field value
func (*ResolvedProduct) GetCreatedAtOk ¶
func (o *ResolvedProduct) GetCreatedAtOk() (*time.Time, bool)
GetCreatedAtOk returns a tuple with the CreatedAt field value and a boolean to check if the value has been set.
func (*ResolvedProduct) GetDescriptionLong ¶
func (o *ResolvedProduct) GetDescriptionLong() string
GetDescriptionLong returns the DescriptionLong field value if set, zero value otherwise.
func (*ResolvedProduct) GetDescriptionLongOk ¶
func (o *ResolvedProduct) GetDescriptionLongOk() (*string, bool)
GetDescriptionLongOk returns a tuple with the DescriptionLong field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ResolvedProduct) GetDescriptionShort ¶
func (o *ResolvedProduct) GetDescriptionShort() string
GetDescriptionShort returns the DescriptionShort field value if set, zero value otherwise.
func (*ResolvedProduct) GetDescriptionShortOk ¶
func (o *ResolvedProduct) GetDescriptionShortOk() (*string, bool)
GetDescriptionShortOk returns a tuple with the DescriptionShort field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ResolvedProduct) GetId ¶
func (o *ResolvedProduct) GetId() string
GetId returns the Id field value
func (*ResolvedProduct) GetIdOk ¶
func (o *ResolvedProduct) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (*ResolvedProduct) GetImageUrls ¶
func (o *ResolvedProduct) GetImageUrls() []map[string]string
GetImageUrls returns the ImageUrls field value if set, zero value otherwise.
func (*ResolvedProduct) GetImageUrlsOk ¶
func (o *ResolvedProduct) GetImageUrlsOk() ([]map[string]string, bool)
GetImageUrlsOk returns a tuple with the ImageUrls field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ResolvedProduct) GetManufacturer ¶
func (o *ResolvedProduct) GetManufacturer() Manufacturer
GetManufacturer returns the Manufacturer field value if set, zero value otherwise.
func (*ResolvedProduct) GetManufacturerId ¶
func (o *ResolvedProduct) GetManufacturerId() string
GetManufacturerId returns the ManufacturerId field value if set, zero value otherwise.
func (*ResolvedProduct) GetManufacturerIdOk ¶
func (o *ResolvedProduct) GetManufacturerIdOk() (*string, bool)
GetManufacturerIdOk returns a tuple with the ManufacturerId field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ResolvedProduct) GetManufacturerOk ¶
func (o *ResolvedProduct) GetManufacturerOk() (*Manufacturer, bool)
GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ResolvedProduct) GetName ¶
func (o *ResolvedProduct) GetName() string
GetName returns the Name field value
func (*ResolvedProduct) GetNameOk ¶
func (o *ResolvedProduct) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (*ResolvedProduct) GetPrice ¶
func (o *ResolvedProduct) GetPrice() int64
GetPrice returns the Price field value
func (*ResolvedProduct) GetPriceOk ¶
func (o *ResolvedProduct) GetPriceOk() (*int64, bool)
GetPriceOk returns a tuple with the Price field value and a boolean to check if the value has been set.
func (*ResolvedProduct) GetStatus ¶
func (o *ResolvedProduct) GetStatus() ProductStatus
GetStatus returns the Status field value if set, zero value otherwise.
func (*ResolvedProduct) GetStatusOk ¶
func (o *ResolvedProduct) GetStatusOk() (*ProductStatus, bool)
GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ResolvedProduct) GetStockCount ¶
func (o *ResolvedProduct) GetStockCount() int64
GetStockCount returns the StockCount field value if set, zero value otherwise.
func (*ResolvedProduct) GetStockCountOk ¶
func (o *ResolvedProduct) GetStockCountOk() (*int64, bool)
GetStockCountOk returns a tuple with the StockCount field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ResolvedProduct) GetUpdatedAt ¶
func (o *ResolvedProduct) GetUpdatedAt() time.Time
GetUpdatedAt returns the UpdatedAt field value
func (*ResolvedProduct) GetUpdatedAtOk ¶
func (o *ResolvedProduct) GetUpdatedAtOk() (*time.Time, bool)
GetUpdatedAtOk returns a tuple with the UpdatedAt field value and a boolean to check if the value has been set.
func (*ResolvedProduct) HasCategories ¶
func (o *ResolvedProduct) HasCategories() bool
HasCategories returns a boolean if a field has been set.
func (*ResolvedProduct) HasCategoryIds ¶
func (o *ResolvedProduct) HasCategoryIds() bool
HasCategoryIds returns a boolean if a field has been set.
func (*ResolvedProduct) HasDescriptionLong ¶
func (o *ResolvedProduct) HasDescriptionLong() bool
HasDescriptionLong returns a boolean if a field has been set.
func (*ResolvedProduct) HasDescriptionShort ¶
func (o *ResolvedProduct) HasDescriptionShort() bool
HasDescriptionShort returns a boolean if a field has been set.
func (*ResolvedProduct) HasImageUrls ¶
func (o *ResolvedProduct) HasImageUrls() bool
HasImageUrls returns a boolean if a field has been set.
func (*ResolvedProduct) HasManufacturer ¶
func (o *ResolvedProduct) HasManufacturer() bool
HasManufacturer returns a boolean if a field has been set.
func (*ResolvedProduct) HasManufacturerId ¶
func (o *ResolvedProduct) HasManufacturerId() bool
HasManufacturerId returns a boolean if a field has been set.
func (*ResolvedProduct) HasStatus ¶
func (o *ResolvedProduct) HasStatus() bool
HasStatus returns a boolean if a field has been set.
func (*ResolvedProduct) HasStockCount ¶
func (o *ResolvedProduct) HasStockCount() bool
HasStockCount returns a boolean if a field has been set.
func (ResolvedProduct) MarshalJSON ¶
func (o ResolvedProduct) MarshalJSON() ([]byte, error)
func (*ResolvedProduct) SetCategories ¶
func (o *ResolvedProduct) SetCategories(v []Category)
SetCategories gets a reference to the given []Category and assigns it to the Categories field.
func (*ResolvedProduct) SetCategoryIds ¶
func (o *ResolvedProduct) SetCategoryIds(v []string)
SetCategoryIds gets a reference to the given []string and assigns it to the CategoryIds field.
func (*ResolvedProduct) SetCreatedAt ¶
func (o *ResolvedProduct) SetCreatedAt(v time.Time)
SetCreatedAt sets field value
func (*ResolvedProduct) SetDescriptionLong ¶
func (o *ResolvedProduct) SetDescriptionLong(v string)
SetDescriptionLong gets a reference to the given string and assigns it to the DescriptionLong field.
func (*ResolvedProduct) SetDescriptionShort ¶
func (o *ResolvedProduct) SetDescriptionShort(v string)
SetDescriptionShort gets a reference to the given string and assigns it to the DescriptionShort field.
func (*ResolvedProduct) SetImageUrls ¶
func (o *ResolvedProduct) SetImageUrls(v []map[string]string)
SetImageUrls gets a reference to the given []map[string]string and assigns it to the ImageUrls field.
func (*ResolvedProduct) SetManufacturer ¶
func (o *ResolvedProduct) SetManufacturer(v Manufacturer)
SetManufacturer gets a reference to the given Manufacturer and assigns it to the Manufacturer field.
func (*ResolvedProduct) SetManufacturerId ¶
func (o *ResolvedProduct) SetManufacturerId(v string)
SetManufacturerId gets a reference to the given string and assigns it to the ManufacturerId field.
func (*ResolvedProduct) SetName ¶
func (o *ResolvedProduct) SetName(v string)
SetName sets field value
func (*ResolvedProduct) SetPrice ¶
func (o *ResolvedProduct) SetPrice(v int64)
SetPrice sets field value
func (*ResolvedProduct) SetStatus ¶
func (o *ResolvedProduct) SetStatus(v ProductStatus)
SetStatus gets a reference to the given ProductStatus and assigns it to the Status field.
func (*ResolvedProduct) SetStockCount ¶
func (o *ResolvedProduct) SetStockCount(v int64)
SetStockCount gets a reference to the given int64 and assigns it to the StockCount field.
func (*ResolvedProduct) SetUpdatedAt ¶
func (o *ResolvedProduct) SetUpdatedAt(v time.Time)
SetUpdatedAt sets field value
func (ResolvedProduct) ToMap ¶ added in v1.0.0
func (o ResolvedProduct) ToMap() (map[string]interface{}, error)
func (*ResolvedProduct) UnmarshalJSON ¶ added in v1.0.1
func (o *ResolvedProduct) UnmarshalJSON(data []byte) (err error)
type ResolvedServiceCategory ¶ added in v1.1.0
type ResolvedServiceCategory struct { // Compressed representation of ID Id string `json:"id"` Name string `json:"name"` // Should be sorted ascending by this column Order int64 `json:"order"` Services []Service `json:"services,omitempty"` }
ResolvedServiceCategory struct for ResolvedServiceCategory
func NewResolvedServiceCategory ¶ added in v1.1.0
func NewResolvedServiceCategory(id string, name string, order int64) *ResolvedServiceCategory
NewResolvedServiceCategory instantiates a new ResolvedServiceCategory object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewResolvedServiceCategoryWithDefaults ¶ added in v1.1.0
func NewResolvedServiceCategoryWithDefaults() *ResolvedServiceCategory
NewResolvedServiceCategoryWithDefaults instantiates a new ResolvedServiceCategory object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*ResolvedServiceCategory) GetId ¶ added in v1.1.0
func (o *ResolvedServiceCategory) GetId() string
GetId returns the Id field value
func (*ResolvedServiceCategory) GetIdOk ¶ added in v1.1.0
func (o *ResolvedServiceCategory) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (*ResolvedServiceCategory) GetName ¶ added in v1.1.0
func (o *ResolvedServiceCategory) GetName() string
GetName returns the Name field value
func (*ResolvedServiceCategory) GetNameOk ¶ added in v1.1.0
func (o *ResolvedServiceCategory) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (*ResolvedServiceCategory) GetOrder ¶ added in v1.1.0
func (o *ResolvedServiceCategory) GetOrder() int64
GetOrder returns the Order field value
func (*ResolvedServiceCategory) GetOrderOk ¶ added in v1.1.0
func (o *ResolvedServiceCategory) GetOrderOk() (*int64, bool)
GetOrderOk returns a tuple with the Order field value and a boolean to check if the value has been set.
func (*ResolvedServiceCategory) GetServices ¶ added in v1.1.0
func (o *ResolvedServiceCategory) GetServices() []Service
GetServices returns the Services field value if set, zero value otherwise.
func (*ResolvedServiceCategory) GetServicesOk ¶ added in v1.1.0
func (o *ResolvedServiceCategory) GetServicesOk() ([]Service, bool)
GetServicesOk returns a tuple with the Services field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ResolvedServiceCategory) HasServices ¶ added in v1.1.0
func (o *ResolvedServiceCategory) HasServices() bool
HasServices returns a boolean if a field has been set.
func (ResolvedServiceCategory) MarshalJSON ¶ added in v1.1.0
func (o ResolvedServiceCategory) MarshalJSON() ([]byte, error)
func (*ResolvedServiceCategory) SetId ¶ added in v1.1.0
func (o *ResolvedServiceCategory) SetId(v string)
SetId sets field value
func (*ResolvedServiceCategory) SetName ¶ added in v1.1.0
func (o *ResolvedServiceCategory) SetName(v string)
SetName sets field value
func (*ResolvedServiceCategory) SetOrder ¶ added in v1.1.0
func (o *ResolvedServiceCategory) SetOrder(v int64)
SetOrder sets field value
func (*ResolvedServiceCategory) SetServices ¶ added in v1.1.0
func (o *ResolvedServiceCategory) SetServices(v []Service)
SetServices gets a reference to the given []Service and assigns it to the Services field.
func (ResolvedServiceCategory) ToMap ¶ added in v1.1.0
func (o ResolvedServiceCategory) ToMap() (map[string]interface{}, error)
func (*ResolvedServiceCategory) UnmarshalJSON ¶ added in v1.1.0
func (o *ResolvedServiceCategory) UnmarshalJSON(data []byte) (err error)
type ResolvedServiceCategoryList ¶ added in v1.1.0
type ResolvedServiceCategoryList struct {
ServiceCategories []ResolvedServiceCategory `json:"service_categories"`
}
ResolvedServiceCategoryList struct for ResolvedServiceCategoryList
func NewResolvedServiceCategoryList ¶ added in v1.1.0
func NewResolvedServiceCategoryList(serviceCategories []ResolvedServiceCategory) *ResolvedServiceCategoryList
NewResolvedServiceCategoryList instantiates a new ResolvedServiceCategoryList object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewResolvedServiceCategoryListWithDefaults ¶ added in v1.1.0
func NewResolvedServiceCategoryListWithDefaults() *ResolvedServiceCategoryList
NewResolvedServiceCategoryListWithDefaults instantiates a new ResolvedServiceCategoryList object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*ResolvedServiceCategoryList) GetServiceCategories ¶ added in v1.1.0
func (o *ResolvedServiceCategoryList) GetServiceCategories() []ResolvedServiceCategory
GetServiceCategories returns the ServiceCategories field value
func (*ResolvedServiceCategoryList) GetServiceCategoriesOk ¶ added in v1.1.0
func (o *ResolvedServiceCategoryList) GetServiceCategoriesOk() ([]ResolvedServiceCategory, bool)
GetServiceCategoriesOk returns a tuple with the ServiceCategories field value and a boolean to check if the value has been set.
func (ResolvedServiceCategoryList) MarshalJSON ¶ added in v1.1.0
func (o ResolvedServiceCategoryList) MarshalJSON() ([]byte, error)
func (*ResolvedServiceCategoryList) SetServiceCategories ¶ added in v1.1.0
func (o *ResolvedServiceCategoryList) SetServiceCategories(v []ResolvedServiceCategory)
SetServiceCategories sets field value
func (ResolvedServiceCategoryList) ToMap ¶ added in v1.1.0
func (o ResolvedServiceCategoryList) ToMap() (map[string]interface{}, error)
func (*ResolvedServiceCategoryList) UnmarshalJSON ¶ added in v1.1.0
func (o *ResolvedServiceCategoryList) UnmarshalJSON(data []byte) (err error)
type ServerConfiguration ¶ added in v0.4.0
type ServerConfiguration struct { URL string Description string Variables map[string]ServerVariable }
ServerConfiguration stores the information about a server
type ServerConfigurations ¶ added in v0.4.0
type ServerConfigurations []ServerConfiguration
ServerConfigurations stores multiple ServerConfiguration items
type ServerVariable ¶ added in v0.4.0
ServerVariable stores the information about a server variable
type Service ¶ added in v1.1.0
type Service struct { // Compressed representation of ID Id string `json:"id"` Name string `json:"name"` Description string `json:"description"` // Price in cents Price int64 `json:"price"` // Should be sorted ascending by this column Order int64 `json:"order"` }
Service struct for Service
func NewService ¶ added in v1.1.0
NewService instantiates a new Service object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewServiceWithDefaults ¶ added in v1.1.0
func NewServiceWithDefaults() *Service
NewServiceWithDefaults instantiates a new Service object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*Service) GetDescription ¶ added in v1.1.0
GetDescription returns the Description field value
func (*Service) GetDescriptionOk ¶ added in v1.1.0
GetDescriptionOk returns a tuple with the Description field value and a boolean to check if the value has been set.
func (*Service) GetIdOk ¶ added in v1.1.0
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (*Service) GetNameOk ¶ added in v1.1.0
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (*Service) GetOrderOk ¶ added in v1.1.0
GetOrderOk returns a tuple with the Order field value and a boolean to check if the value has been set.
func (*Service) GetPriceOk ¶ added in v1.1.0
GetPriceOk returns a tuple with the Price field value and a boolean to check if the value has been set.
func (Service) MarshalJSON ¶ added in v1.1.0
func (*Service) SetDescription ¶ added in v1.1.0
SetDescription sets field value
func (*Service) UnmarshalJSON ¶ added in v1.1.0
type ServiceCategory ¶ added in v1.1.0
type ServiceCategory struct { // Compressed representation of ID Id string `json:"id"` Name string `json:"name"` // Should be sorted ascending by this column Order int64 `json:"order"` }
ServiceCategory struct for ServiceCategory
func NewServiceCategory ¶ added in v1.1.0
func NewServiceCategory(id string, name string, order int64) *ServiceCategory
NewServiceCategory instantiates a new ServiceCategory object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewServiceCategoryWithDefaults ¶ added in v1.1.0
func NewServiceCategoryWithDefaults() *ServiceCategory
NewServiceCategoryWithDefaults instantiates a new ServiceCategory object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*ServiceCategory) GetId ¶ added in v1.1.0
func (o *ServiceCategory) GetId() string
GetId returns the Id field value
func (*ServiceCategory) GetIdOk ¶ added in v1.1.0
func (o *ServiceCategory) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (*ServiceCategory) GetName ¶ added in v1.1.0
func (o *ServiceCategory) GetName() string
GetName returns the Name field value
func (*ServiceCategory) GetNameOk ¶ added in v1.1.0
func (o *ServiceCategory) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (*ServiceCategory) GetOrder ¶ added in v1.1.0
func (o *ServiceCategory) GetOrder() int64
GetOrder returns the Order field value
func (*ServiceCategory) GetOrderOk ¶ added in v1.1.0
func (o *ServiceCategory) GetOrderOk() (*int64, bool)
GetOrderOk returns a tuple with the Order field value and a boolean to check if the value has been set.
func (ServiceCategory) MarshalJSON ¶ added in v1.1.0
func (o ServiceCategory) MarshalJSON() ([]byte, error)
func (*ServiceCategory) SetId ¶ added in v1.1.0
func (o *ServiceCategory) SetId(v string)
SetId sets field value
func (*ServiceCategory) SetName ¶ added in v1.1.0
func (o *ServiceCategory) SetName(v string)
SetName sets field value
func (*ServiceCategory) SetOrder ¶ added in v1.1.0
func (o *ServiceCategory) SetOrder(v int64)
SetOrder sets field value
func (ServiceCategory) ToMap ¶ added in v1.1.0
func (o ServiceCategory) ToMap() (map[string]interface{}, error)
func (*ServiceCategory) UnmarshalJSON ¶ added in v1.1.0
func (o *ServiceCategory) UnmarshalJSON(data []byte) (err error)
type ServicesAPIService ¶ added in v1.1.0
type ServicesAPIService service
ServicesAPIService ServicesAPI service
func (*ServicesAPIService) ListServiceCategories ¶ added in v1.1.0
func (a *ServicesAPIService) ListServiceCategories(ctx context.Context) ApiListServiceCategoriesRequest
ListServiceCategories Method for ListServiceCategories
List service categories
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiListServiceCategoriesRequest
func (*ServicesAPIService) ListServiceCategoriesExecute ¶ added in v1.1.0
func (a *ServicesAPIService) ListServiceCategoriesExecute(r ApiListServiceCategoriesRequest) (*ResolvedServiceCategoryList, *http.Response, error)
Execute executes the request
@return ResolvedServiceCategoryList
Source Files ¶
- api_categories.go
- api_content.go
- api_events.go
- api_manufacturers.go
- api_products.go
- api_services.go
- client.go
- configuration.go
- model_category.go
- model_category_list.go
- model_content.go
- model_content_list.go
- model_content_type.go
- model_event.go
- model_event_list.go
- model_gocom_error.go
- model_gocom_error_code.go
- model_image.go
- model_manufacturer.go
- model_manufacturer_list.go
- model_product.go
- model_product_list.go
- model_product_status.go
- model_resolved_product.go
- model_resolved_service_category.go
- model_resolved_service_category_list.go
- model_service.go
- model_service_category.go
- response.go
- utils.go