openapi

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2023 License: GPL-3.0 Imports: 22 Imported by: 0

README

Go API client for openapi

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 1.0
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import openapi "github.com/GIT_USER_ID/GIT_REPO_ID"

To use a proxy, set the environment variable HTTP_PROXY:

os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")

Configuration of Server URL

Default configuration comes with Servers field that contains server objects as defined in the OpenAPI specification.

Select Server Configuration

For using other server than the one defined on index 0 set context value sw.ContextServerIndex of type int.

ctx := context.WithValue(context.Background(), openapi.ContextServerIndex, 1)
Templated Server URL

Templated server URL is formatted using default variables from configuration or from context value sw.ContextServerVariables of type map[string]string.

ctx := context.WithValue(context.Background(), openapi.ContextServerVariables, map[string]string{
	"basePath": "v2",
})

Note, enum values are always validated and all unused variables are silently ignored.

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "{classname}Service.{nickname}" string. Similar rules for overriding default operation server index and variables applies by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.

ctx := context.WithValue(context.Background(), openapi.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), openapi.ContextOperationServerVariables, map[string]map[string]string{
	"{classname}Service.{nickname}": {
		"port": "8443",
	},
})

Documentation for API Endpoints

All URIs are relative to /api

Class Method HTTP request Description
CategoriesApi GetCategory Get /categories/{id}/
CategoriesApi ListCategories Get /categories/
ContentApi GetContent Get /content/{content_name}/
EventsApi GetEvent Get /events/{id}/
EventsApi ListEvents Get /events/
ManufacturersApi GetManufacturer Get /manufacturers/{id}/
ManufacturersApi ListManufacturers Get /manufacturers/
ProductsApi GetProduct Get /products/{id}/
ProductsApi ListProducts Get /products/

Documentation For Models

Documentation For Authorization

Endpoints do not require authorization.

Documentation for Utility Methods

Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:

  • PtrBool
  • PtrInt
  • PtrInt32
  • PtrInt64
  • PtrFloat
  • PtrFloat32
  • PtrFloat64
  • PtrString
  • PtrTime

Author

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ContextOAuth2 takes an oauth2.TokenSource as authentication for the request.
	ContextOAuth2 = contextKey("token")

	// ContextBasicAuth takes BasicAuth as authentication for the request.
	ContextBasicAuth = contextKey("basic")

	// ContextAccessToken takes a string oauth2 access token as authentication for the request.
	ContextAccessToken = contextKey("accesstoken")

	// ContextAPIKeys takes a string apikey as authentication for the request
	ContextAPIKeys = contextKey("apiKeys")

	// ContextHttpSignatureAuth takes HttpSignatureAuth as authentication for the request.
	ContextHttpSignatureAuth = contextKey("httpsignature")

	// 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")
)
View Source
var AllowedContentTypeEnumValues = []ContentType{
	"SIMPLE",
	"HTML",
}

All allowed values of ContentType enum

View Source
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",
	"UNKNOWN_CATEGORY",
	"UNKNOWN_CONTENT",
	"UNKNOWN_ERROR",
	"UNKNOWN_EVENT",
	"UNKNOWN_IMAGE",
	"UNKNOWN_MANUFACTURER",
	"UNKNOWN_PRODUCT",
}

All allowed values of GocomErrorCode enum

View Source
var AllowedProductStatusEnumValues = []ProductStatus{
	"AVAILABLE",
	"ARCHIVED",
}

All allowed values of ProductStatus enum

Functions

func CacheExpires added in v0.4.0

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

func PtrBool

func PtrBool(v bool) *bool

PtrBool is a helper routine that returns a pointer to given boolean value.

func PtrFloat32

func PtrFloat32(v float32) *float32

PtrFloat32 is a helper routine that returns a pointer to given float value.

func PtrFloat64

func PtrFloat64(v float64) *float64

PtrFloat64 is a helper routine that returns a pointer to given float value.

func PtrInt

func PtrInt(v int) *int

PtrInt is a helper routine that returns a pointer to given integer value.

func PtrInt32

func PtrInt32(v int32) *int32

PtrInt32 is a helper routine that returns a pointer to given integer value.

func PtrInt64

func PtrInt64(v int64) *int64

PtrInt64 is a helper routine that returns a pointer to given integer value.

func PtrString

func PtrString(v string) *string

PtrString is a helper routine that returns a pointer to given string value.

func PtrTime

func PtrTime(v time.Time) *time.Time

PtrTime is helper routine that returns a pointer to given Time value.

Types

type APIClient added in v0.4.0

type APIClient struct {
	CategoriesApi *CategoriesApiService

	ContentApi *ContentApiService

	EventsApi *EventsApiService

	ManufacturersApi *ManufacturersApiService

	ProductsApi *ProductsApiService
	// 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

type APIKey struct {
	Key    string
	Prefix string
}

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

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
}

func (ApiGetContentRequest) Execute added in v0.4.0

func (r ApiGetContentRequest) Execute() (*Content, *http.Response, error)

type ApiGetEventRequest added in v0.4.0

type ApiGetEventRequest struct {
	ApiService *EventsApiService
	// contains filtered or unexported fields
}

func (ApiGetEventRequest) Execute added in v0.4.0

func (r ApiGetEventRequest) Execute() (*Event, *http.Response, error)

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 (ApiGetManufacturerRequest) Img added in v0.4.0

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 (ApiGetProductRequest) Img added in v0.4.0

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 (ApiListCategoriesRequest) Img added in v0.4.0

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 (ApiListManufacturersRequest) Img added in v0.4.0

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 (ApiListProductsRequest) Img added in v0.4.0

Comma separated list of ImageConfig. Check ImageConfig for exact format.

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 v0.4.0

type CategoriesApiService service

CategoriesApiService CategoriesApi service

func (*CategoriesApiService) GetCategory added in v0.4.0

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 v0.4.0

func (a *CategoriesApiService) GetCategoryExecute(r ApiGetCategoryRequest) (*Category, *http.Response, error)

Execute executes the request

@return Category

func (*CategoriesApiService) ListCategories added in v0.4.0

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 v0.4.0

Execute executes the request

@return CategoryList

type Category

type Category struct {
	// Compressed representation of ID
	Id          *string `json:"id,omitempty"`
	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

func NewCategory(name string, order int64) *Category

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

func (o *Category) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*Category) GetDescriptionOk

func (o *Category) GetDescriptionOk() (*string, bool)

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) GetId

func (o *Category) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*Category) GetIdOk

func (o *Category) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Category) GetImageUrls

func (o *Category) GetImageUrls() map[string]string

GetImageUrls returns the ImageUrls field value if set, zero value otherwise.

func (*Category) GetImageUrlsOk

func (o *Category) 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 (*Category) GetName

func (o *Category) GetName() string

GetName returns the Name field value

func (*Category) GetNameOk

func (o *Category) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*Category) GetOrder

func (o *Category) GetOrder() int64

GetOrder returns the Order field value

func (*Category) GetOrderOk

func (o *Category) GetOrderOk() (*int64, bool)

GetOrderOk returns a tuple with the Order field value and a boolean to check if the value has been set.

func (*Category) GetParentId

func (o *Category) GetParentId() string

GetParentId returns the ParentId field value if set, zero value otherwise.

func (*Category) GetParentIdOk

func (o *Category) GetParentIdOk() (*string, bool)

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

func (o *Category) GetProductIds() []string

GetProductIds returns the ProductIds field value if set, zero value otherwise.

func (*Category) GetProductIdsOk

func (o *Category) GetProductIdsOk() ([]string, bool)

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

func (o *Category) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*Category) HasId

func (o *Category) HasId() bool

HasId returns a boolean if a field has been set.

func (*Category) HasImageUrls

func (o *Category) HasImageUrls() bool

HasImageUrls returns a boolean if a field has been set.

func (*Category) HasParentId

func (o *Category) HasParentId() bool

HasParentId returns a boolean if a field has been set.

func (*Category) HasProductIds

func (o *Category) HasProductIds() bool

HasProductIds returns a boolean if a field has been set.

func (Category) MarshalJSON

func (o Category) MarshalJSON() ([]byte, error)

func (*Category) SetDescription

func (o *Category) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*Category) SetId

func (o *Category) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*Category) SetImageUrls

func (o *Category) SetImageUrls(v map[string]string)

SetImageUrls gets a reference to the given map[string]string and assigns it to the ImageUrls field.

func (*Category) SetName

func (o *Category) SetName(v string)

SetName sets field value

func (*Category) SetOrder

func (o *Category) SetOrder(v int64)

SetOrder sets field value

func (*Category) SetParentId

func (o *Category) SetParentId(v string)

SetParentId gets a reference to the given string and assigns it to the ParentId field.

func (*Category) SetProductIds

func (o *Category) SetProductIds(v []string)

SetProductIds gets a reference to the given []string and assigns it to the ProductIds field.

type CategoryAllOf

type CategoryAllOf struct {
	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"`
}

CategoryAllOf struct for CategoryAllOf

func NewCategoryAllOf

func NewCategoryAllOf(name string, order int64) *CategoryAllOf

NewCategoryAllOf instantiates a new CategoryAllOf 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 NewCategoryAllOfWithDefaults

func NewCategoryAllOfWithDefaults() *CategoryAllOf

NewCategoryAllOfWithDefaults instantiates a new CategoryAllOf 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 (*CategoryAllOf) GetDescription

func (o *CategoryAllOf) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*CategoryAllOf) GetDescriptionOk

func (o *CategoryAllOf) GetDescriptionOk() (*string, bool)

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 (*CategoryAllOf) GetImageUrls

func (o *CategoryAllOf) GetImageUrls() map[string]string

GetImageUrls returns the ImageUrls field value if set, zero value otherwise.

func (*CategoryAllOf) GetImageUrlsOk

func (o *CategoryAllOf) 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 (*CategoryAllOf) GetName

func (o *CategoryAllOf) GetName() string

GetName returns the Name field value

func (*CategoryAllOf) GetNameOk

func (o *CategoryAllOf) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*CategoryAllOf) GetOrder

func (o *CategoryAllOf) GetOrder() int64

GetOrder returns the Order field value

func (*CategoryAllOf) GetOrderOk

func (o *CategoryAllOf) GetOrderOk() (*int64, bool)

GetOrderOk returns a tuple with the Order field value and a boolean to check if the value has been set.

func (*CategoryAllOf) GetParentId

func (o *CategoryAllOf) GetParentId() string

GetParentId returns the ParentId field value if set, zero value otherwise.

func (*CategoryAllOf) GetParentIdOk

func (o *CategoryAllOf) GetParentIdOk() (*string, bool)

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 (*CategoryAllOf) GetProductIds

func (o *CategoryAllOf) GetProductIds() []string

GetProductIds returns the ProductIds field value if set, zero value otherwise.

func (*CategoryAllOf) GetProductIdsOk

func (o *CategoryAllOf) GetProductIdsOk() ([]string, bool)

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 (*CategoryAllOf) HasDescription

func (o *CategoryAllOf) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*CategoryAllOf) HasImageUrls

func (o *CategoryAllOf) HasImageUrls() bool

HasImageUrls returns a boolean if a field has been set.

func (*CategoryAllOf) HasParentId

func (o *CategoryAllOf) HasParentId() bool

HasParentId returns a boolean if a field has been set.

func (*CategoryAllOf) HasProductIds

func (o *CategoryAllOf) HasProductIds() bool

HasProductIds returns a boolean if a field has been set.

func (CategoryAllOf) MarshalJSON

func (o CategoryAllOf) MarshalJSON() ([]byte, error)

func (*CategoryAllOf) SetDescription

func (o *CategoryAllOf) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*CategoryAllOf) SetImageUrls

func (o *CategoryAllOf) SetImageUrls(v map[string]string)

SetImageUrls gets a reference to the given map[string]string and assigns it to the ImageUrls field.

func (*CategoryAllOf) SetName

func (o *CategoryAllOf) SetName(v string)

SetName sets field value

func (*CategoryAllOf) SetOrder

func (o *CategoryAllOf) SetOrder(v int64)

SetOrder sets field value

func (*CategoryAllOf) SetParentId

func (o *CategoryAllOf) SetParentId(v string)

SetParentId gets a reference to the given string and assigns it to the ParentId field.

func (*CategoryAllOf) SetProductIds

func (o *CategoryAllOf) SetProductIds(v []string)

SetProductIds gets a reference to the given []string and assigns it to the ProductIds field.

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

type Config added in v0.3.0

type Config struct {
	Features ConfigFeatures `json:"features"`
}

Config struct for Config

func NewConfig added in v0.3.0

func NewConfig(features ConfigFeatures) *Config

NewConfig instantiates a new Config 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 NewConfigWithDefaults added in v0.3.0

func NewConfigWithDefaults() *Config

NewConfigWithDefaults instantiates a new Config 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 (*Config) GetFeatures added in v0.3.0

func (o *Config) GetFeatures() ConfigFeatures

GetFeatures returns the Features field value

func (*Config) GetFeaturesOk added in v0.3.0

func (o *Config) GetFeaturesOk() (*ConfigFeatures, bool)

GetFeaturesOk returns a tuple with the Features field value and a boolean to check if the value has been set.

func (Config) MarshalJSON added in v0.3.0

func (o Config) MarshalJSON() ([]byte, error)

func (*Config) SetFeatures added in v0.3.0

func (o *Config) SetFeatures(v ConfigFeatures)

SetFeatures sets field value

type ConfigFeatures added in v0.3.0

type ConfigFeatures struct {
	Categories    ConfigFeaturesCategories    `json:"categories"`
	Manufacturers ConfigFeaturesManufacturers `json:"manufacturers"`
	Products      ConfigFeaturesProducts      `json:"products"`
	Content       ConfigFeaturesContent       `json:"content"`
	Events        ConfigFeaturesEvents        `json:"events"`
}

ConfigFeatures struct for ConfigFeatures

func NewConfigFeatures added in v0.3.0

NewConfigFeatures instantiates a new ConfigFeatures 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 NewConfigFeaturesWithDefaults added in v0.3.0

func NewConfigFeaturesWithDefaults() *ConfigFeatures

NewConfigFeaturesWithDefaults instantiates a new ConfigFeatures 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 (*ConfigFeatures) GetCategories added in v0.3.0

func (o *ConfigFeatures) GetCategories() ConfigFeaturesCategories

GetCategories returns the Categories field value

func (*ConfigFeatures) GetCategoriesOk added in v0.3.0

func (o *ConfigFeatures) GetCategoriesOk() (*ConfigFeaturesCategories, bool)

GetCategoriesOk returns a tuple with the Categories field value and a boolean to check if the value has been set.

func (*ConfigFeatures) GetContent added in v0.3.0

func (o *ConfigFeatures) GetContent() ConfigFeaturesContent

GetContent returns the Content field value

func (*ConfigFeatures) GetContentOk added in v0.3.0

func (o *ConfigFeatures) GetContentOk() (*ConfigFeaturesContent, bool)

GetContentOk returns a tuple with the Content field value and a boolean to check if the value has been set.

func (*ConfigFeatures) GetEvents added in v0.3.0

func (o *ConfigFeatures) GetEvents() ConfigFeaturesEvents

GetEvents returns the Events field value

func (*ConfigFeatures) GetEventsOk added in v0.3.0

func (o *ConfigFeatures) GetEventsOk() (*ConfigFeaturesEvents, bool)

GetEventsOk returns a tuple with the Events field value and a boolean to check if the value has been set.

func (*ConfigFeatures) GetManufacturers added in v0.3.0

func (o *ConfigFeatures) GetManufacturers() ConfigFeaturesManufacturers

GetManufacturers returns the Manufacturers field value

func (*ConfigFeatures) GetManufacturersOk added in v0.3.0

func (o *ConfigFeatures) GetManufacturersOk() (*ConfigFeaturesManufacturers, bool)

GetManufacturersOk returns a tuple with the Manufacturers field value and a boolean to check if the value has been set.

func (*ConfigFeatures) GetProducts added in v0.3.0

func (o *ConfigFeatures) GetProducts() ConfigFeaturesProducts

GetProducts returns the Products field value

func (*ConfigFeatures) GetProductsOk added in v0.3.0

func (o *ConfigFeatures) GetProductsOk() (*ConfigFeaturesProducts, bool)

GetProductsOk returns a tuple with the Products field value and a boolean to check if the value has been set.

func (ConfigFeatures) MarshalJSON added in v0.3.0

func (o ConfigFeatures) MarshalJSON() ([]byte, error)

func (*ConfigFeatures) SetCategories added in v0.3.0

func (o *ConfigFeatures) SetCategories(v ConfigFeaturesCategories)

SetCategories sets field value

func (*ConfigFeatures) SetContent added in v0.3.0

func (o *ConfigFeatures) SetContent(v ConfigFeaturesContent)

SetContent sets field value

func (*ConfigFeatures) SetEvents added in v0.3.0

func (o *ConfigFeatures) SetEvents(v ConfigFeaturesEvents)

SetEvents sets field value

func (*ConfigFeatures) SetManufacturers added in v0.3.0

func (o *ConfigFeatures) SetManufacturers(v ConfigFeaturesManufacturers)

SetManufacturers sets field value

func (*ConfigFeatures) SetProducts added in v0.3.0

func (o *ConfigFeatures) SetProducts(v ConfigFeaturesProducts)

SetProducts sets field value

type ConfigFeaturesCategories added in v0.3.0

type ConfigFeaturesCategories struct {
	Enabled bool `json:"enabled"`
}

ConfigFeaturesCategories struct for ConfigFeaturesCategories

func NewConfigFeaturesCategories added in v0.3.0

func NewConfigFeaturesCategories(enabled bool) *ConfigFeaturesCategories

NewConfigFeaturesCategories instantiates a new ConfigFeaturesCategories 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 NewConfigFeaturesCategoriesWithDefaults added in v0.3.0

func NewConfigFeaturesCategoriesWithDefaults() *ConfigFeaturesCategories

NewConfigFeaturesCategoriesWithDefaults instantiates a new ConfigFeaturesCategories 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 (*ConfigFeaturesCategories) GetEnabled added in v0.3.0

func (o *ConfigFeaturesCategories) GetEnabled() bool

GetEnabled returns the Enabled field value

func (*ConfigFeaturesCategories) GetEnabledOk added in v0.3.0

func (o *ConfigFeaturesCategories) GetEnabledOk() (*bool, bool)

GetEnabledOk returns a tuple with the Enabled field value and a boolean to check if the value has been set.

func (ConfigFeaturesCategories) MarshalJSON added in v0.3.0

func (o ConfigFeaturesCategories) MarshalJSON() ([]byte, error)

func (*ConfigFeaturesCategories) SetEnabled added in v0.3.0

func (o *ConfigFeaturesCategories) SetEnabled(v bool)

SetEnabled sets field value

type ConfigFeaturesContent added in v0.3.0

type ConfigFeaturesContent struct {
	Enabled bool `json:"enabled"`
}

ConfigFeaturesContent struct for ConfigFeaturesContent

func NewConfigFeaturesContent added in v0.3.0

func NewConfigFeaturesContent(enabled bool) *ConfigFeaturesContent

NewConfigFeaturesContent instantiates a new ConfigFeaturesContent 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 NewConfigFeaturesContentWithDefaults added in v0.3.0

func NewConfigFeaturesContentWithDefaults() *ConfigFeaturesContent

NewConfigFeaturesContentWithDefaults instantiates a new ConfigFeaturesContent 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 (*ConfigFeaturesContent) GetEnabled added in v0.3.0

func (o *ConfigFeaturesContent) GetEnabled() bool

GetEnabled returns the Enabled field value

func (*ConfigFeaturesContent) GetEnabledOk added in v0.3.0

func (o *ConfigFeaturesContent) GetEnabledOk() (*bool, bool)

GetEnabledOk returns a tuple with the Enabled field value and a boolean to check if the value has been set.

func (ConfigFeaturesContent) MarshalJSON added in v0.3.0

func (o ConfigFeaturesContent) MarshalJSON() ([]byte, error)

func (*ConfigFeaturesContent) SetEnabled added in v0.3.0

func (o *ConfigFeaturesContent) SetEnabled(v bool)

SetEnabled sets field value

type ConfigFeaturesEvents added in v0.3.0

type ConfigFeaturesEvents struct {
	Enabled       bool `json:"enabled"`
	WholeDaysOnly bool `json:"whole_days_only"`
}

ConfigFeaturesEvents struct for ConfigFeaturesEvents

func NewConfigFeaturesEvents added in v0.3.0

func NewConfigFeaturesEvents(enabled bool, wholeDaysOnly bool) *ConfigFeaturesEvents

NewConfigFeaturesEvents instantiates a new ConfigFeaturesEvents 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 NewConfigFeaturesEventsWithDefaults added in v0.3.0

func NewConfigFeaturesEventsWithDefaults() *ConfigFeaturesEvents

NewConfigFeaturesEventsWithDefaults instantiates a new ConfigFeaturesEvents 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 (*ConfigFeaturesEvents) GetEnabled added in v0.3.0

func (o *ConfigFeaturesEvents) GetEnabled() bool

GetEnabled returns the Enabled field value

func (*ConfigFeaturesEvents) GetEnabledOk added in v0.3.0

func (o *ConfigFeaturesEvents) GetEnabledOk() (*bool, bool)

GetEnabledOk returns a tuple with the Enabled field value and a boolean to check if the value has been set.

func (*ConfigFeaturesEvents) GetWholeDaysOnly added in v0.3.0

func (o *ConfigFeaturesEvents) GetWholeDaysOnly() bool

GetWholeDaysOnly returns the WholeDaysOnly field value

func (*ConfigFeaturesEvents) GetWholeDaysOnlyOk added in v0.3.0

func (o *ConfigFeaturesEvents) GetWholeDaysOnlyOk() (*bool, bool)

GetWholeDaysOnlyOk returns a tuple with the WholeDaysOnly field value and a boolean to check if the value has been set.

func (ConfigFeaturesEvents) MarshalJSON added in v0.3.0

func (o ConfigFeaturesEvents) MarshalJSON() ([]byte, error)

func (*ConfigFeaturesEvents) SetEnabled added in v0.3.0

func (o *ConfigFeaturesEvents) SetEnabled(v bool)

SetEnabled sets field value

func (*ConfigFeaturesEvents) SetWholeDaysOnly added in v0.3.0

func (o *ConfigFeaturesEvents) SetWholeDaysOnly(v bool)

SetWholeDaysOnly sets field value

type ConfigFeaturesManufacturers added in v0.3.0

type ConfigFeaturesManufacturers struct {
	Enabled bool `json:"enabled"`
}

ConfigFeaturesManufacturers struct for ConfigFeaturesManufacturers

func NewConfigFeaturesManufacturers added in v0.3.0

func NewConfigFeaturesManufacturers(enabled bool) *ConfigFeaturesManufacturers

NewConfigFeaturesManufacturers instantiates a new ConfigFeaturesManufacturers 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 NewConfigFeaturesManufacturersWithDefaults added in v0.3.0

func NewConfigFeaturesManufacturersWithDefaults() *ConfigFeaturesManufacturers

NewConfigFeaturesManufacturersWithDefaults instantiates a new ConfigFeaturesManufacturers 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 (*ConfigFeaturesManufacturers) GetEnabled added in v0.3.0

func (o *ConfigFeaturesManufacturers) GetEnabled() bool

GetEnabled returns the Enabled field value

func (*ConfigFeaturesManufacturers) GetEnabledOk added in v0.3.0

func (o *ConfigFeaturesManufacturers) GetEnabledOk() (*bool, bool)

GetEnabledOk returns a tuple with the Enabled field value and a boolean to check if the value has been set.

func (ConfigFeaturesManufacturers) MarshalJSON added in v0.3.0

func (o ConfigFeaturesManufacturers) MarshalJSON() ([]byte, error)

func (*ConfigFeaturesManufacturers) SetEnabled added in v0.3.0

func (o *ConfigFeaturesManufacturers) SetEnabled(v bool)

SetEnabled sets field value

type ConfigFeaturesProducts added in v0.3.0

type ConfigFeaturesProducts struct {
	Enabled bool `json:"enabled"`
}

ConfigFeaturesProducts struct for ConfigFeaturesProducts

func NewConfigFeaturesProducts added in v0.3.0

func NewConfigFeaturesProducts(enabled bool) *ConfigFeaturesProducts

NewConfigFeaturesProducts instantiates a new ConfigFeaturesProducts 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 NewConfigFeaturesProductsWithDefaults added in v0.3.0

func NewConfigFeaturesProductsWithDefaults() *ConfigFeaturesProducts

NewConfigFeaturesProductsWithDefaults instantiates a new ConfigFeaturesProducts 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 (*ConfigFeaturesProducts) GetEnabled added in v0.3.0

func (o *ConfigFeaturesProducts) GetEnabled() bool

GetEnabled returns the Enabled field value

func (*ConfigFeaturesProducts) GetEnabledOk added in v0.3.0

func (o *ConfigFeaturesProducts) GetEnabledOk() (*bool, bool)

GetEnabledOk returns a tuple with the Enabled field value and a boolean to check if the value has been set.

func (ConfigFeaturesProducts) MarshalJSON added in v0.3.0

func (o ConfigFeaturesProducts) MarshalJSON() ([]byte, error)

func (*ConfigFeaturesProducts) SetEnabled added in v0.3.0

func (o *ConfigFeaturesProducts) SetEnabled(v bool)

SetEnabled sets field value

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) ServerURL added in v0.4.0

func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error)

ServerURL returns URL based on server settings

func (*Configuration) ServerURLWithContext added in v0.4.0

func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error)

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) GetBody added in v0.3.0

func (o *Content) GetBody() string

GetBody returns the Body field value

func (*Content) GetBodyOk added in v0.3.0

func (o *Content) GetBodyOk() (*string, bool)

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) GetName added in v0.3.0

func (o *Content) GetName() string

GetName returns the Name field value

func (*Content) GetNameOk added in v0.3.0

func (o *Content) GetNameOk() (*string, bool)

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 (o Content) MarshalJSON() ([]byte, error)

func (*Content) SetBody added in v0.3.0

func (o *Content) SetBody(v string)

SetBody sets field value

func (*Content) SetContentType added in v0.3.0

func (o *Content) SetContentType(v ContentType)

SetContentType sets field value

func (*Content) SetName added in v0.3.0

func (o *Content) SetName(v string)

SetName sets field value

type ContentApiService added in v0.4.0

type ContentApiService service

ContentApiService ContentApi service

func (*ContentApiService) GetContent added in v0.4.0

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 v0.4.0

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

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,omitempty"`
	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

func NewEvent(name string, eventType string, start time.Time, end time.Time) *Event

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

func (o *Event) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*Event) GetDescriptionOk added in v0.3.0

func (o *Event) GetDescriptionOk() (*string, bool)

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) GetEnd added in v0.3.0

func (o *Event) GetEnd() time.Time

GetEnd returns the End field value

func (*Event) GetEndOk added in v0.3.0

func (o *Event) GetEndOk() (*time.Time, bool)

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

func (o *Event) GetEventType() string

GetEventType returns the EventType field value

func (*Event) GetEventTypeOk added in v0.3.0

func (o *Event) GetEventTypeOk() (*string, bool)

GetEventTypeOk returns a tuple with the EventType field value and a boolean to check if the value has been set.

func (*Event) GetId added in v0.3.0

func (o *Event) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*Event) GetIdOk added in v0.3.0

func (o *Event) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Event) GetName added in v0.3.0

func (o *Event) GetName() string

GetName returns the Name field value

func (*Event) GetNameOk added in v0.3.0

func (o *Event) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*Event) GetStart added in v0.3.0

func (o *Event) GetStart() time.Time

GetStart returns the Start field value

func (*Event) GetStartOk added in v0.3.0

func (o *Event) GetStartOk() (*time.Time, bool)

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

func (o *Event) GetWholeDay() bool

GetWholeDay returns the WholeDay field value if set, zero value otherwise.

func (*Event) GetWholeDayOk added in v0.3.0

func (o *Event) GetWholeDayOk() (*bool, bool)

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

func (o *Event) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*Event) HasId added in v0.3.0

func (o *Event) HasId() bool

HasId returns a boolean if a field has been set.

func (*Event) HasWholeDay added in v0.3.0

func (o *Event) HasWholeDay() bool

HasWholeDay returns a boolean if a field has been set.

func (Event) MarshalJSON added in v0.3.0

func (o Event) MarshalJSON() ([]byte, error)

func (*Event) SetDescription added in v0.3.0

func (o *Event) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*Event) SetEnd added in v0.3.0

func (o *Event) SetEnd(v time.Time)

SetEnd sets field value

func (*Event) SetEventType added in v0.3.0

func (o *Event) SetEventType(v string)

SetEventType sets field value

func (*Event) SetId added in v0.3.0

func (o *Event) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*Event) SetName added in v0.3.0

func (o *Event) SetName(v string)

SetName sets field value

func (*Event) SetStart added in v0.3.0

func (o *Event) SetStart(v time.Time)

SetStart sets field value

func (*Event) SetWholeDay added in v0.3.0

func (o *Event) SetWholeDay(v bool)

SetWholeDay gets a reference to the given bool and assigns it to the WholeDay field.

type EventAllOf added in v0.3.0

type EventAllOf struct {
	Name        *string `json:"name,omitempty"`
	Description *string `json:"description,omitempty"`
	// Type of event. Types should be defined in GoCommerce config file.
	EventType *string `json:"event_type,omitempty"`
	// Start of the event. In case \"whole_day\" is true, only the date part is considered.
	Start *time.Time `json:"start,omitempty"`
	// 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,omitempty"`
	WholeDay *bool      `json:"whole_day,omitempty"`
}

EventAllOf struct for EventAllOf

func NewEventAllOf added in v0.3.0

func NewEventAllOf() *EventAllOf

NewEventAllOf instantiates a new EventAllOf 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 NewEventAllOfWithDefaults added in v0.3.0

func NewEventAllOfWithDefaults() *EventAllOf

NewEventAllOfWithDefaults instantiates a new EventAllOf 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 (*EventAllOf) GetDescription added in v0.3.0

func (o *EventAllOf) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*EventAllOf) GetDescriptionOk added in v0.3.0

func (o *EventAllOf) GetDescriptionOk() (*string, bool)

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 (*EventAllOf) GetEnd added in v0.3.0

func (o *EventAllOf) GetEnd() time.Time

GetEnd returns the End field value if set, zero value otherwise.

func (*EventAllOf) GetEndOk added in v0.3.0

func (o *EventAllOf) GetEndOk() (*time.Time, bool)

GetEndOk returns a tuple with the End field value if set, nil otherwise and a boolean to check if the value has been set.

func (*EventAllOf) GetEventType added in v0.3.0

func (o *EventAllOf) GetEventType() string

GetEventType returns the EventType field value if set, zero value otherwise.

func (*EventAllOf) GetEventTypeOk added in v0.3.0

func (o *EventAllOf) GetEventTypeOk() (*string, bool)

GetEventTypeOk returns a tuple with the EventType field value if set, nil otherwise and a boolean to check if the value has been set.

func (*EventAllOf) GetName added in v0.3.0

func (o *EventAllOf) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*EventAllOf) GetNameOk added in v0.3.0

func (o *EventAllOf) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*EventAllOf) GetStart added in v0.3.0

func (o *EventAllOf) GetStart() time.Time

GetStart returns the Start field value if set, zero value otherwise.

func (*EventAllOf) GetStartOk added in v0.3.0

func (o *EventAllOf) GetStartOk() (*time.Time, bool)

GetStartOk returns a tuple with the Start field value if set, nil otherwise and a boolean to check if the value has been set.

func (*EventAllOf) GetWholeDay added in v0.3.0

func (o *EventAllOf) GetWholeDay() bool

GetWholeDay returns the WholeDay field value if set, zero value otherwise.

func (*EventAllOf) GetWholeDayOk added in v0.3.0

func (o *EventAllOf) GetWholeDayOk() (*bool, bool)

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 (*EventAllOf) HasDescription added in v0.3.0

func (o *EventAllOf) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*EventAllOf) HasEnd added in v0.3.0

func (o *EventAllOf) HasEnd() bool

HasEnd returns a boolean if a field has been set.

func (*EventAllOf) HasEventType added in v0.3.0

func (o *EventAllOf) HasEventType() bool

HasEventType returns a boolean if a field has been set.

func (*EventAllOf) HasName added in v0.3.0

func (o *EventAllOf) HasName() bool

HasName returns a boolean if a field has been set.

func (*EventAllOf) HasStart added in v0.3.0

func (o *EventAllOf) HasStart() bool

HasStart returns a boolean if a field has been set.

func (*EventAllOf) HasWholeDay added in v0.3.0

func (o *EventAllOf) HasWholeDay() bool

HasWholeDay returns a boolean if a field has been set.

func (EventAllOf) MarshalJSON added in v0.3.0

func (o EventAllOf) MarshalJSON() ([]byte, error)

func (*EventAllOf) SetDescription added in v0.3.0

func (o *EventAllOf) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*EventAllOf) SetEnd added in v0.3.0

func (o *EventAllOf) SetEnd(v time.Time)

SetEnd gets a reference to the given time.Time and assigns it to the End field.

func (*EventAllOf) SetEventType added in v0.3.0

func (o *EventAllOf) SetEventType(v string)

SetEventType gets a reference to the given string and assigns it to the EventType field.

func (*EventAllOf) SetName added in v0.3.0

func (o *EventAllOf) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*EventAllOf) SetStart added in v0.3.0

func (o *EventAllOf) SetStart(v time.Time)

SetStart gets a reference to the given time.Time and assigns it to the Start field.

func (*EventAllOf) SetWholeDay added in v0.3.0

func (o *EventAllOf) SetWholeDay(v bool)

SetWholeDay gets a reference to the given bool and assigns it to the WholeDay field.

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

func NewEventList(events []Event) *EventList

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) GetEvents added in v0.3.0

func (o *EventList) GetEvents() []Event

GetEvents returns the Events field value

func (*EventList) GetEventsOk added in v0.3.0

func (o *EventList) GetEventsOk() ([]Event, bool)

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 (o EventList) MarshalJSON() ([]byte, error)

func (*EventList) SetEvents added in v0.3.0

func (o *EventList) SetEvents(v []Event)

SetEvents sets field value

type EventsApiService added in v0.4.0

type EventsApiService service

EventsApiService EventsApi service

func (*EventsApiService) GetEvent added in v0.4.0

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 v0.4.0

func (a *EventsApiService) GetEventExecute(r ApiGetEventRequest) (*Event, *http.Response, error)

Execute executes the request

@return Event

func (*EventsApiService) ListEvents added in v0.4.0

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 v0.4.0

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.

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 - 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

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_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"
)

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 Header struct {
	// Compressed representation of ID
	Id *string `json:"id,omitempty"`
}

Header struct for Header

func NewHeader

func NewHeader() *Header

NewHeader instantiates a new Header 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 NewHeaderWithDefaults

func NewHeaderWithDefaults() *Header

NewHeaderWithDefaults instantiates a new Header 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 (*Header) GetId

func (o *Header) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*Header) GetIdOk

func (o *Header) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Header) HasId

func (o *Header) HasId() bool

HasId returns a boolean if a field has been set.

func (Header) MarshalJSON

func (o Header) MarshalJSON() ([]byte, error)

func (*Header) SetId

func (o *Header) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

type HeaderTimestamped

type HeaderTimestamped struct {
	// Compressed representation of ID
	Id        *string    `json:"id,omitempty"`
	CreatedAt *time.Time `json:"created_at,omitempty"`
	UpdatedAt *time.Time `json:"updated_at,omitempty"`
}

HeaderTimestamped struct for HeaderTimestamped

func NewHeaderTimestamped

func NewHeaderTimestamped() *HeaderTimestamped

NewHeaderTimestamped instantiates a new HeaderTimestamped 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 NewHeaderTimestampedWithDefaults

func NewHeaderTimestampedWithDefaults() *HeaderTimestamped

NewHeaderTimestampedWithDefaults instantiates a new HeaderTimestamped 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 (*HeaderTimestamped) GetCreatedAt

func (o *HeaderTimestamped) GetCreatedAt() time.Time

GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.

func (*HeaderTimestamped) GetCreatedAtOk

func (o *HeaderTimestamped) GetCreatedAtOk() (*time.Time, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*HeaderTimestamped) GetId

func (o *HeaderTimestamped) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*HeaderTimestamped) GetIdOk

func (o *HeaderTimestamped) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*HeaderTimestamped) GetUpdatedAt

func (o *HeaderTimestamped) GetUpdatedAt() time.Time

GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise.

func (*HeaderTimestamped) GetUpdatedAtOk

func (o *HeaderTimestamped) GetUpdatedAtOk() (*time.Time, bool)

GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*HeaderTimestamped) HasCreatedAt

func (o *HeaderTimestamped) HasCreatedAt() bool

HasCreatedAt returns a boolean if a field has been set.

func (*HeaderTimestamped) HasId

func (o *HeaderTimestamped) HasId() bool

HasId returns a boolean if a field has been set.

func (*HeaderTimestamped) HasUpdatedAt

func (o *HeaderTimestamped) HasUpdatedAt() bool

HasUpdatedAt returns a boolean if a field has been set.

func (HeaderTimestamped) MarshalJSON

func (o HeaderTimestamped) MarshalJSON() ([]byte, error)

func (*HeaderTimestamped) SetCreatedAt

func (o *HeaderTimestamped) SetCreatedAt(v time.Time)

SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.

func (*HeaderTimestamped) SetId

func (o *HeaderTimestamped) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*HeaderTimestamped) SetUpdatedAt

func (o *HeaderTimestamped) SetUpdatedAt(v time.Time)

SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field.

type HeaderTimestampedAllOf

type HeaderTimestampedAllOf struct {
	CreatedAt *time.Time `json:"created_at,omitempty"`
	UpdatedAt *time.Time `json:"updated_at,omitempty"`
}

HeaderTimestampedAllOf struct for HeaderTimestampedAllOf

func NewHeaderTimestampedAllOf

func NewHeaderTimestampedAllOf() *HeaderTimestampedAllOf

NewHeaderTimestampedAllOf instantiates a new HeaderTimestampedAllOf 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 NewHeaderTimestampedAllOfWithDefaults

func NewHeaderTimestampedAllOfWithDefaults() *HeaderTimestampedAllOf

NewHeaderTimestampedAllOfWithDefaults instantiates a new HeaderTimestampedAllOf 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 (*HeaderTimestampedAllOf) GetCreatedAt

func (o *HeaderTimestampedAllOf) GetCreatedAt() time.Time

GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.

func (*HeaderTimestampedAllOf) GetCreatedAtOk

func (o *HeaderTimestampedAllOf) GetCreatedAtOk() (*time.Time, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*HeaderTimestampedAllOf) GetUpdatedAt

func (o *HeaderTimestampedAllOf) GetUpdatedAt() time.Time

GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise.

func (*HeaderTimestampedAllOf) GetUpdatedAtOk

func (o *HeaderTimestampedAllOf) GetUpdatedAtOk() (*time.Time, bool)

GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*HeaderTimestampedAllOf) HasCreatedAt

func (o *HeaderTimestampedAllOf) HasCreatedAt() bool

HasCreatedAt returns a boolean if a field has been set.

func (*HeaderTimestampedAllOf) HasUpdatedAt

func (o *HeaderTimestampedAllOf) HasUpdatedAt() bool

HasUpdatedAt returns a boolean if a field has been set.

func (HeaderTimestampedAllOf) MarshalJSON

func (o HeaderTimestampedAllOf) MarshalJSON() ([]byte, error)

func (*HeaderTimestampedAllOf) SetCreatedAt

func (o *HeaderTimestampedAllOf) SetCreatedAt(v time.Time)

SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.

func (*HeaderTimestampedAllOf) SetUpdatedAt

func (o *HeaderTimestampedAllOf) SetUpdatedAt(v time.Time)

SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field.

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

func NewImage(id string, ext string, urls map[string]string, order int64) *Image

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) GetExt

func (o *Image) GetExt() string

GetExt returns the Ext field value

func (*Image) GetExtOk

func (o *Image) GetExtOk() (*string, bool)

GetExtOk returns a tuple with the Ext field value and a boolean to check if the value has been set.

func (*Image) GetId

func (o *Image) GetId() string

GetId returns the Id field value

func (*Image) GetIdOk

func (o *Image) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*Image) GetOrder

func (o *Image) GetOrder() int64

GetOrder returns the Order field value

func (*Image) GetOrderOk

func (o *Image) GetOrderOk() (*int64, bool)

GetOrderOk returns a tuple with the Order field value and a boolean to check if the value has been set.

func (*Image) GetUrls

func (o *Image) GetUrls() map[string]string

GetUrls returns the Urls field value

func (*Image) GetUrlsOk

func (o *Image) GetUrlsOk() (*map[string]string, bool)

GetUrlsOk returns a tuple with the Urls field value and a boolean to check if the value has been set.

func (Image) MarshalJSON

func (o Image) MarshalJSON() ([]byte, error)

func (*Image) SetExt

func (o *Image) SetExt(v string)

SetExt sets field value

func (*Image) SetId

func (o *Image) SetId(v string)

SetId sets field value

func (*Image) SetOrder

func (o *Image) SetOrder(v int64)

SetOrder sets field value

func (*Image) SetUrls

func (o *Image) SetUrls(v map[string]string)

SetUrls sets field value

type Manufacturer

type Manufacturer struct {
	// Compressed representation of ID
	Id         *string            `json:"id,omitempty"`
	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(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) GetId

func (o *Manufacturer) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*Manufacturer) GetIdOk

func (o *Manufacturer) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise 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) HasId

func (o *Manufacturer) HasId() bool

HasId returns a boolean if a field 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) SetId

func (o *Manufacturer) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

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) SetName

func (o *Manufacturer) SetName(v string)

SetName sets field value

func (*Manufacturer) SetWebsiteUrl

func (o *Manufacturer) SetWebsiteUrl(v string)

SetWebsiteUrl gets a reference to the given string and assigns it to the WebsiteUrl field.

type ManufacturerAllOf

type ManufacturerAllOf struct {
	Name       *string            `json:"name,omitempty"`
	WebsiteUrl *string            `json:"website_url,omitempty"`
	ImageUrls  *map[string]string `json:"image_urls,omitempty"`
}

ManufacturerAllOf struct for ManufacturerAllOf

func NewManufacturerAllOf

func NewManufacturerAllOf() *ManufacturerAllOf

NewManufacturerAllOf instantiates a new ManufacturerAllOf 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 NewManufacturerAllOfWithDefaults

func NewManufacturerAllOfWithDefaults() *ManufacturerAllOf

NewManufacturerAllOfWithDefaults instantiates a new ManufacturerAllOf 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 (*ManufacturerAllOf) GetImageUrls

func (o *ManufacturerAllOf) GetImageUrls() map[string]string

GetImageUrls returns the ImageUrls field value if set, zero value otherwise.

func (*ManufacturerAllOf) GetImageUrlsOk

func (o *ManufacturerAllOf) 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 (*ManufacturerAllOf) GetName

func (o *ManufacturerAllOf) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*ManufacturerAllOf) GetNameOk

func (o *ManufacturerAllOf) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ManufacturerAllOf) GetWebsiteUrl

func (o *ManufacturerAllOf) GetWebsiteUrl() string

GetWebsiteUrl returns the WebsiteUrl field value if set, zero value otherwise.

func (*ManufacturerAllOf) GetWebsiteUrlOk

func (o *ManufacturerAllOf) 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 (*ManufacturerAllOf) HasImageUrls

func (o *ManufacturerAllOf) HasImageUrls() bool

HasImageUrls returns a boolean if a field has been set.

func (*ManufacturerAllOf) HasName

func (o *ManufacturerAllOf) HasName() bool

HasName returns a boolean if a field has been set.

func (*ManufacturerAllOf) HasWebsiteUrl

func (o *ManufacturerAllOf) HasWebsiteUrl() bool

HasWebsiteUrl returns a boolean if a field has been set.

func (ManufacturerAllOf) MarshalJSON

func (o ManufacturerAllOf) MarshalJSON() ([]byte, error)

func (*ManufacturerAllOf) SetImageUrls

func (o *ManufacturerAllOf) SetImageUrls(v map[string]string)

SetImageUrls gets a reference to the given map[string]string and assigns it to the ImageUrls field.

func (*ManufacturerAllOf) SetName

func (o *ManufacturerAllOf) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*ManufacturerAllOf) SetWebsiteUrl

func (o *ManufacturerAllOf) SetWebsiteUrl(v string)

SetWebsiteUrl gets a reference to the given string and assigns it to the WebsiteUrl field.

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

type ManufacturersApiService added in v0.4.0

type ManufacturersApiService service

ManufacturersApiService ManufacturersApi service

func (*ManufacturersApiService) GetManufacturer added in v0.4.0

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 v0.4.0

Execute executes the request

@return Manufacturer

func (*ManufacturersApiService) ListManufacturers added in v0.4.0

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 v0.4.0

Execute executes the request

@return ManufacturerList

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 NullableCategoryAllOf

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

func NewNullableCategoryAllOf

func NewNullableCategoryAllOf(val *CategoryAllOf) *NullableCategoryAllOf

func (NullableCategoryAllOf) Get

func (NullableCategoryAllOf) IsSet

func (v NullableCategoryAllOf) IsSet() bool

func (NullableCategoryAllOf) MarshalJSON

func (v NullableCategoryAllOf) MarshalJSON() ([]byte, error)

func (*NullableCategoryAllOf) Set

func (v *NullableCategoryAllOf) Set(val *CategoryAllOf)

func (*NullableCategoryAllOf) UnmarshalJSON

func (v *NullableCategoryAllOf) UnmarshalJSON(src []byte) error

func (*NullableCategoryAllOf) Unset

func (v *NullableCategoryAllOf) Unset()

type NullableCategoryList

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

func NewNullableCategoryList

func NewNullableCategoryList(val *CategoryList) *NullableCategoryList

func (NullableCategoryList) Get

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 NullableConfig added in v0.3.0

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

func NewNullableConfig added in v0.3.0

func NewNullableConfig(val *Config) *NullableConfig

func (NullableConfig) Get added in v0.3.0

func (v NullableConfig) Get() *Config

func (NullableConfig) IsSet added in v0.3.0

func (v NullableConfig) IsSet() bool

func (NullableConfig) MarshalJSON added in v0.3.0

func (v NullableConfig) MarshalJSON() ([]byte, error)

func (*NullableConfig) Set added in v0.3.0

func (v *NullableConfig) Set(val *Config)

func (*NullableConfig) UnmarshalJSON added in v0.3.0

func (v *NullableConfig) UnmarshalJSON(src []byte) error

func (*NullableConfig) Unset added in v0.3.0

func (v *NullableConfig) Unset()

type NullableConfigFeatures added in v0.3.0

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

func NewNullableConfigFeatures added in v0.3.0

func NewNullableConfigFeatures(val *ConfigFeatures) *NullableConfigFeatures

func (NullableConfigFeatures) Get added in v0.3.0

func (NullableConfigFeatures) IsSet added in v0.3.0

func (v NullableConfigFeatures) IsSet() bool

func (NullableConfigFeatures) MarshalJSON added in v0.3.0

func (v NullableConfigFeatures) MarshalJSON() ([]byte, error)

func (*NullableConfigFeatures) Set added in v0.3.0

func (*NullableConfigFeatures) UnmarshalJSON added in v0.3.0

func (v *NullableConfigFeatures) UnmarshalJSON(src []byte) error

func (*NullableConfigFeatures) Unset added in v0.3.0

func (v *NullableConfigFeatures) Unset()

type NullableConfigFeaturesCategories added in v0.3.0

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

func NewNullableConfigFeaturesCategories added in v0.3.0

func NewNullableConfigFeaturesCategories(val *ConfigFeaturesCategories) *NullableConfigFeaturesCategories

func (NullableConfigFeaturesCategories) Get added in v0.3.0

func (NullableConfigFeaturesCategories) IsSet added in v0.3.0

func (NullableConfigFeaturesCategories) MarshalJSON added in v0.3.0

func (v NullableConfigFeaturesCategories) MarshalJSON() ([]byte, error)

func (*NullableConfigFeaturesCategories) Set added in v0.3.0

func (*NullableConfigFeaturesCategories) UnmarshalJSON added in v0.3.0

func (v *NullableConfigFeaturesCategories) UnmarshalJSON(src []byte) error

func (*NullableConfigFeaturesCategories) Unset added in v0.3.0

type NullableConfigFeaturesContent added in v0.3.0

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

func NewNullableConfigFeaturesContent added in v0.3.0

func NewNullableConfigFeaturesContent(val *ConfigFeaturesContent) *NullableConfigFeaturesContent

func (NullableConfigFeaturesContent) Get added in v0.3.0

func (NullableConfigFeaturesContent) IsSet added in v0.3.0

func (NullableConfigFeaturesContent) MarshalJSON added in v0.3.0

func (v NullableConfigFeaturesContent) MarshalJSON() ([]byte, error)

func (*NullableConfigFeaturesContent) Set added in v0.3.0

func (*NullableConfigFeaturesContent) UnmarshalJSON added in v0.3.0

func (v *NullableConfigFeaturesContent) UnmarshalJSON(src []byte) error

func (*NullableConfigFeaturesContent) Unset added in v0.3.0

func (v *NullableConfigFeaturesContent) Unset()

type NullableConfigFeaturesEvents added in v0.3.0

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

func NewNullableConfigFeaturesEvents added in v0.3.0

func NewNullableConfigFeaturesEvents(val *ConfigFeaturesEvents) *NullableConfigFeaturesEvents

func (NullableConfigFeaturesEvents) Get added in v0.3.0

func (NullableConfigFeaturesEvents) IsSet added in v0.3.0

func (NullableConfigFeaturesEvents) MarshalJSON added in v0.3.0

func (v NullableConfigFeaturesEvents) MarshalJSON() ([]byte, error)

func (*NullableConfigFeaturesEvents) Set added in v0.3.0

func (*NullableConfigFeaturesEvents) UnmarshalJSON added in v0.3.0

func (v *NullableConfigFeaturesEvents) UnmarshalJSON(src []byte) error

func (*NullableConfigFeaturesEvents) Unset added in v0.3.0

func (v *NullableConfigFeaturesEvents) Unset()

type NullableConfigFeaturesManufacturers added in v0.3.0

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

func NewNullableConfigFeaturesManufacturers added in v0.3.0

func NewNullableConfigFeaturesManufacturers(val *ConfigFeaturesManufacturers) *NullableConfigFeaturesManufacturers

func (NullableConfigFeaturesManufacturers) Get added in v0.3.0

func (NullableConfigFeaturesManufacturers) IsSet added in v0.3.0

func (NullableConfigFeaturesManufacturers) MarshalJSON added in v0.3.0

func (v NullableConfigFeaturesManufacturers) MarshalJSON() ([]byte, error)

func (*NullableConfigFeaturesManufacturers) Set added in v0.3.0

func (*NullableConfigFeaturesManufacturers) UnmarshalJSON added in v0.3.0

func (v *NullableConfigFeaturesManufacturers) UnmarshalJSON(src []byte) error

func (*NullableConfigFeaturesManufacturers) Unset added in v0.3.0

type NullableConfigFeaturesProducts added in v0.3.0

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

func NewNullableConfigFeaturesProducts added in v0.3.0

func NewNullableConfigFeaturesProducts(val *ConfigFeaturesProducts) *NullableConfigFeaturesProducts

func (NullableConfigFeaturesProducts) Get added in v0.3.0

func (NullableConfigFeaturesProducts) IsSet added in v0.3.0

func (NullableConfigFeaturesProducts) MarshalJSON added in v0.3.0

func (v NullableConfigFeaturesProducts) MarshalJSON() ([]byte, error)

func (*NullableConfigFeaturesProducts) Set added in v0.3.0

func (*NullableConfigFeaturesProducts) UnmarshalJSON added in v0.3.0

func (v *NullableConfigFeaturesProducts) UnmarshalJSON(src []byte) error

func (*NullableConfigFeaturesProducts) Unset added in v0.3.0

func (v *NullableConfigFeaturesProducts) 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 (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 (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 NullableEventAllOf added in v0.3.0

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

func NewNullableEventAllOf added in v0.3.0

func NewNullableEventAllOf(val *EventAllOf) *NullableEventAllOf

func (NullableEventAllOf) Get added in v0.3.0

func (v NullableEventAllOf) Get() *EventAllOf

func (NullableEventAllOf) IsSet added in v0.3.0

func (v NullableEventAllOf) IsSet() bool

func (NullableEventAllOf) MarshalJSON added in v0.3.0

func (v NullableEventAllOf) MarshalJSON() ([]byte, error)

func (*NullableEventAllOf) Set added in v0.3.0

func (v *NullableEventAllOf) Set(val *EventAllOf)

func (*NullableEventAllOf) UnmarshalJSON added in v0.3.0

func (v *NullableEventAllOf) UnmarshalJSON(src []byte) error

func (*NullableEventAllOf) Unset added in v0.3.0

func (v *NullableEventAllOf) 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 (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 (*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 NullableHeader

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

func NewNullableHeader

func NewNullableHeader(val *Header) *NullableHeader

func (NullableHeader) Get

func (v NullableHeader) Get() *Header

func (NullableHeader) IsSet

func (v NullableHeader) IsSet() bool

func (NullableHeader) MarshalJSON

func (v NullableHeader) MarshalJSON() ([]byte, error)

func (*NullableHeader) Set

func (v *NullableHeader) Set(val *Header)

func (*NullableHeader) UnmarshalJSON

func (v *NullableHeader) UnmarshalJSON(src []byte) error

func (*NullableHeader) Unset

func (v *NullableHeader) Unset()

type NullableHeaderTimestamped

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

func NewNullableHeaderTimestamped

func NewNullableHeaderTimestamped(val *HeaderTimestamped) *NullableHeaderTimestamped

func (NullableHeaderTimestamped) Get

func (NullableHeaderTimestamped) IsSet

func (v NullableHeaderTimestamped) IsSet() bool

func (NullableHeaderTimestamped) MarshalJSON

func (v NullableHeaderTimestamped) MarshalJSON() ([]byte, error)

func (*NullableHeaderTimestamped) Set

func (*NullableHeaderTimestamped) UnmarshalJSON

func (v *NullableHeaderTimestamped) UnmarshalJSON(src []byte) error

func (*NullableHeaderTimestamped) Unset

func (v *NullableHeaderTimestamped) Unset()

type NullableHeaderTimestampedAllOf

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

func (NullableHeaderTimestampedAllOf) Get

func (NullableHeaderTimestampedAllOf) IsSet

func (NullableHeaderTimestampedAllOf) MarshalJSON

func (v NullableHeaderTimestampedAllOf) MarshalJSON() ([]byte, error)

func (*NullableHeaderTimestampedAllOf) Set

func (*NullableHeaderTimestampedAllOf) UnmarshalJSON

func (v *NullableHeaderTimestampedAllOf) UnmarshalJSON(src []byte) error

func (*NullableHeaderTimestampedAllOf) Unset

func (v *NullableHeaderTimestampedAllOf) 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 (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 NullableManufacturerAllOf

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

func NewNullableManufacturerAllOf

func NewNullableManufacturerAllOf(val *ManufacturerAllOf) *NullableManufacturerAllOf

func (NullableManufacturerAllOf) Get

func (NullableManufacturerAllOf) IsSet

func (v NullableManufacturerAllOf) IsSet() bool

func (NullableManufacturerAllOf) MarshalJSON

func (v NullableManufacturerAllOf) MarshalJSON() ([]byte, error)

func (*NullableManufacturerAllOf) Set

func (*NullableManufacturerAllOf) UnmarshalJSON

func (v *NullableManufacturerAllOf) UnmarshalJSON(src []byte) error

func (*NullableManufacturerAllOf) Unset

func (v *NullableManufacturerAllOf) Unset()

type NullableManufacturerList

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

func NewNullableManufacturerList

func NewNullableManufacturerList(val *ManufacturerList) *NullableManufacturerList

func (NullableManufacturerList) Get

func (NullableManufacturerList) IsSet

func (v NullableManufacturerList) IsSet() bool

func (NullableManufacturerList) MarshalJSON

func (v NullableManufacturerList) MarshalJSON() ([]byte, error)

func (*NullableManufacturerList) Set

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 NullableProductAllOf

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

func NewNullableProductAllOf

func NewNullableProductAllOf(val *ProductAllOf) *NullableProductAllOf

func (NullableProductAllOf) Get

func (NullableProductAllOf) IsSet

func (v NullableProductAllOf) IsSet() bool

func (NullableProductAllOf) MarshalJSON

func (v NullableProductAllOf) MarshalJSON() ([]byte, error)

func (*NullableProductAllOf) Set

func (v *NullableProductAllOf) Set(val *ProductAllOf)

func (*NullableProductAllOf) UnmarshalJSON

func (v *NullableProductAllOf) UnmarshalJSON(src []byte) error

func (*NullableProductAllOf) Unset

func (v *NullableProductAllOf) Unset()

type NullableProductList

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

func NewNullableProductList

func NewNullableProductList(val *ProductList) *NullableProductList

func (NullableProductList) Get

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 (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 (NullableResolvedProduct) IsSet

func (v NullableResolvedProduct) IsSet() bool

func (NullableResolvedProduct) MarshalJSON

func (v NullableResolvedProduct) MarshalJSON() ([]byte, error)

func (*NullableResolvedProduct) Set

func (*NullableResolvedProduct) UnmarshalJSON

func (v *NullableResolvedProduct) UnmarshalJSON(src []byte) error

func (*NullableResolvedProduct) Unset

func (v *NullableResolvedProduct) Unset()

type NullableResolvedProductAllOf

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

func NewNullableResolvedProductAllOf

func NewNullableResolvedProductAllOf(val *ResolvedProductAllOf) *NullableResolvedProductAllOf

func (NullableResolvedProductAllOf) Get

func (NullableResolvedProductAllOf) IsSet

func (NullableResolvedProductAllOf) MarshalJSON

func (v NullableResolvedProductAllOf) MarshalJSON() ([]byte, error)

func (*NullableResolvedProductAllOf) Set

func (*NullableResolvedProductAllOf) UnmarshalJSON

func (v *NullableResolvedProductAllOf) UnmarshalJSON(src []byte) error

func (*NullableResolvedProductAllOf) Unset

func (v *NullableResolvedProductAllOf) 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,omitempty"`
	CreatedAt        *time.Time `json:"created_at,omitempty"`
	UpdatedAt        *time.Time `json:"updated_at,omitempty"`
	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"`
	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(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

func (o *Product) GetCategoryIds() []string

GetCategoryIds returns the CategoryIds field value if set, zero value otherwise.

func (*Product) GetCategoryIdsOk

func (o *Product) 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 (*Product) GetCreatedAt

func (o *Product) GetCreatedAt() time.Time

GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.

func (*Product) GetCreatedAtOk

func (o *Product) GetCreatedAtOk() (*time.Time, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Product) GetDescriptionLong

func (o *Product) GetDescriptionLong() string

GetDescriptionLong returns the DescriptionLong field value if set, zero value otherwise.

func (*Product) GetDescriptionLongOk

func (o *Product) 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 (*Product) GetDescriptionShort

func (o *Product) GetDescriptionShort() string

GetDescriptionShort returns the DescriptionShort field value if set, zero value otherwise.

func (*Product) GetDescriptionShortOk

func (o *Product) 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 (*Product) GetId

func (o *Product) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*Product) GetIdOk

func (o *Product) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Product) GetImageUrls

func (o *Product) GetImageUrls() []map[string]string

GetImageUrls returns the ImageUrls field value if set, zero value otherwise.

func (*Product) GetImageUrlsOk

func (o *Product) 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 (*Product) GetManufacturerId

func (o *Product) GetManufacturerId() string

GetManufacturerId returns the ManufacturerId field value if set, zero value otherwise.

func (*Product) GetManufacturerIdOk

func (o *Product) 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 (*Product) GetName

func (o *Product) GetName() string

GetName returns the Name field value

func (*Product) GetNameOk

func (o *Product) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*Product) GetPrice

func (o *Product) GetPrice() int64

GetPrice returns the Price field value

func (*Product) GetPriceOk

func (o *Product) GetPriceOk() (*int64, bool)

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

func (o *Product) GetStockCount() int64

GetStockCount returns the StockCount field value if set, zero value otherwise.

func (*Product) GetStockCountOk

func (o *Product) 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 (*Product) GetUpdatedAt

func (o *Product) GetUpdatedAt() time.Time

GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise.

func (*Product) GetUpdatedAtOk

func (o *Product) GetUpdatedAtOk() (*time.Time, bool)

GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Product) HasCategoryIds

func (o *Product) HasCategoryIds() bool

HasCategoryIds returns a boolean if a field has been set.

func (*Product) HasCreatedAt

func (o *Product) HasCreatedAt() bool

HasCreatedAt returns a boolean if a field has been set.

func (*Product) HasDescriptionLong

func (o *Product) HasDescriptionLong() bool

HasDescriptionLong returns a boolean if a field has been set.

func (*Product) HasDescriptionShort

func (o *Product) HasDescriptionShort() bool

HasDescriptionShort returns a boolean if a field has been set.

func (*Product) HasId

func (o *Product) HasId() bool

HasId returns a boolean if a field has been set.

func (*Product) HasImageUrls

func (o *Product) HasImageUrls() bool

HasImageUrls returns a boolean if a field has been set.

func (*Product) HasManufacturerId

func (o *Product) HasManufacturerId() bool

HasManufacturerId returns a boolean if a field has been set.

func (*Product) HasStatus

func (o *Product) HasStatus() bool

HasStatus returns a boolean if a field has been set.

func (*Product) HasStockCount

func (o *Product) HasStockCount() bool

HasStockCount returns a boolean if a field has been set.

func (*Product) HasUpdatedAt

func (o *Product) HasUpdatedAt() bool

HasUpdatedAt returns a boolean if a field has been set.

func (Product) MarshalJSON

func (o Product) MarshalJSON() ([]byte, error)

func (*Product) SetCategoryIds

func (o *Product) SetCategoryIds(v []string)

SetCategoryIds gets a reference to the given []string and assigns it to the CategoryIds field.

func (*Product) SetCreatedAt

func (o *Product) SetCreatedAt(v time.Time)

SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.

func (*Product) SetDescriptionLong

func (o *Product) SetDescriptionLong(v string)

SetDescriptionLong gets a reference to the given string and assigns it to the DescriptionLong field.

func (*Product) SetDescriptionShort

func (o *Product) SetDescriptionShort(v string)

SetDescriptionShort gets a reference to the given string and assigns it to the DescriptionShort field.

func (*Product) SetId

func (o *Product) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*Product) SetImageUrls

func (o *Product) SetImageUrls(v []map[string]string)

SetImageUrls gets a reference to the given []map[string]string and assigns it to the ImageUrls field.

func (*Product) SetManufacturerId

func (o *Product) SetManufacturerId(v string)

SetManufacturerId gets a reference to the given string and assigns it to the ManufacturerId field.

func (*Product) SetName

func (o *Product) SetName(v string)

SetName sets field value

func (*Product) SetPrice

func (o *Product) SetPrice(v int64)

SetPrice sets field value

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

func (o *Product) SetStockCount(v int64)

SetStockCount gets a reference to the given int64 and assigns it to the StockCount field.

func (*Product) SetUpdatedAt

func (o *Product) SetUpdatedAt(v time.Time)

SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field.

type ProductAllOf

type ProductAllOf struct {
	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"`
	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"`
}

ProductAllOf struct for ProductAllOf

func NewProductAllOf

func NewProductAllOf(name string, price int64) *ProductAllOf

NewProductAllOf instantiates a new ProductAllOf 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 NewProductAllOfWithDefaults

func NewProductAllOfWithDefaults() *ProductAllOf

NewProductAllOfWithDefaults instantiates a new ProductAllOf 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 (*ProductAllOf) GetCategoryIds

func (o *ProductAllOf) GetCategoryIds() []string

GetCategoryIds returns the CategoryIds field value if set, zero value otherwise.

func (*ProductAllOf) GetCategoryIdsOk

func (o *ProductAllOf) 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 (*ProductAllOf) GetDescriptionLong

func (o *ProductAllOf) GetDescriptionLong() string

GetDescriptionLong returns the DescriptionLong field value if set, zero value otherwise.

func (*ProductAllOf) GetDescriptionLongOk

func (o *ProductAllOf) 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 (*ProductAllOf) GetDescriptionShort

func (o *ProductAllOf) GetDescriptionShort() string

GetDescriptionShort returns the DescriptionShort field value if set, zero value otherwise.

func (*ProductAllOf) GetDescriptionShortOk

func (o *ProductAllOf) 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 (*ProductAllOf) GetImageUrls

func (o *ProductAllOf) GetImageUrls() []map[string]string

GetImageUrls returns the ImageUrls field value if set, zero value otherwise.

func (*ProductAllOf) GetImageUrlsOk

func (o *ProductAllOf) 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 (*ProductAllOf) GetManufacturerId

func (o *ProductAllOf) GetManufacturerId() string

GetManufacturerId returns the ManufacturerId field value if set, zero value otherwise.

func (*ProductAllOf) GetManufacturerIdOk

func (o *ProductAllOf) 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 (*ProductAllOf) GetName

func (o *ProductAllOf) GetName() string

GetName returns the Name field value

func (*ProductAllOf) GetNameOk

func (o *ProductAllOf) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*ProductAllOf) GetPrice

func (o *ProductAllOf) GetPrice() int64

GetPrice returns the Price field value

func (*ProductAllOf) GetPriceOk

func (o *ProductAllOf) GetPriceOk() (*int64, bool)

GetPriceOk returns a tuple with the Price field value and a boolean to check if the value has been set.

func (*ProductAllOf) GetStatus

func (o *ProductAllOf) GetStatus() ProductStatus

GetStatus returns the Status field value if set, zero value otherwise.

func (*ProductAllOf) GetStatusOk

func (o *ProductAllOf) 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 (*ProductAllOf) GetStockCount

func (o *ProductAllOf) GetStockCount() int64

GetStockCount returns the StockCount field value if set, zero value otherwise.

func (*ProductAllOf) GetStockCountOk

func (o *ProductAllOf) 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 (*ProductAllOf) HasCategoryIds

func (o *ProductAllOf) HasCategoryIds() bool

HasCategoryIds returns a boolean if a field has been set.

func (*ProductAllOf) HasDescriptionLong

func (o *ProductAllOf) HasDescriptionLong() bool

HasDescriptionLong returns a boolean if a field has been set.

func (*ProductAllOf) HasDescriptionShort

func (o *ProductAllOf) HasDescriptionShort() bool

HasDescriptionShort returns a boolean if a field has been set.

func (*ProductAllOf) HasImageUrls

func (o *ProductAllOf) HasImageUrls() bool

HasImageUrls returns a boolean if a field has been set.

func (*ProductAllOf) HasManufacturerId

func (o *ProductAllOf) HasManufacturerId() bool

HasManufacturerId returns a boolean if a field has been set.

func (*ProductAllOf) HasStatus

func (o *ProductAllOf) HasStatus() bool

HasStatus returns a boolean if a field has been set.

func (*ProductAllOf) HasStockCount

func (o *ProductAllOf) HasStockCount() bool

HasStockCount returns a boolean if a field has been set.

func (ProductAllOf) MarshalJSON

func (o ProductAllOf) MarshalJSON() ([]byte, error)

func (*ProductAllOf) SetCategoryIds

func (o *ProductAllOf) SetCategoryIds(v []string)

SetCategoryIds gets a reference to the given []string and assigns it to the CategoryIds field.

func (*ProductAllOf) SetDescriptionLong

func (o *ProductAllOf) SetDescriptionLong(v string)

SetDescriptionLong gets a reference to the given string and assigns it to the DescriptionLong field.

func (*ProductAllOf) SetDescriptionShort

func (o *ProductAllOf) SetDescriptionShort(v string)

SetDescriptionShort gets a reference to the given string and assigns it to the DescriptionShort field.

func (*ProductAllOf) SetImageUrls

func (o *ProductAllOf) SetImageUrls(v []map[string]string)

SetImageUrls gets a reference to the given []map[string]string and assigns it to the ImageUrls field.

func (*ProductAllOf) SetManufacturerId

func (o *ProductAllOf) SetManufacturerId(v string)

SetManufacturerId gets a reference to the given string and assigns it to the ManufacturerId field.

func (*ProductAllOf) SetName

func (o *ProductAllOf) SetName(v string)

SetName sets field value

func (*ProductAllOf) SetPrice

func (o *ProductAllOf) SetPrice(v int64)

SetPrice sets field value

func (*ProductAllOf) SetStatus

func (o *ProductAllOf) SetStatus(v ProductStatus)

SetStatus gets a reference to the given ProductStatus and assigns it to the Status field.

func (*ProductAllOf) SetStockCount

func (o *ProductAllOf) SetStockCount(v int64)

SetStockCount gets a reference to the given int64 and assigns it to the StockCount field.

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

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 v0.4.0

type ProductsApiService service

ProductsApiService ProductsApi service

func (*ProductsApiService) GetProduct added in v0.4.0

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 v0.4.0

Execute executes the request

@return ResolvedProduct

func (*ProductsApiService) ListProducts added in v0.4.0

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 v0.4.0

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,omitempty"`
	CreatedAt        *time.Time `json:"created_at,omitempty"`
	UpdatedAt        *time.Time `json:"updated_at,omitempty"`
	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"`
	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(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 if set, zero value otherwise.

func (*ResolvedProduct) GetCreatedAtOk

func (o *ResolvedProduct) GetCreatedAtOk() (*time.Time, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise 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 if set, zero value otherwise.

func (*ResolvedProduct) GetIdOk

func (o *ResolvedProduct) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise 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 if set, zero value otherwise.

func (*ResolvedProduct) GetUpdatedAtOk

func (o *ResolvedProduct) GetUpdatedAtOk() (*time.Time, bool)

GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise 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) HasCreatedAt

func (o *ResolvedProduct) HasCreatedAt() bool

HasCreatedAt 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) HasId

func (o *ResolvedProduct) HasId() bool

HasId 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) HasUpdatedAt

func (o *ResolvedProduct) HasUpdatedAt() bool

HasUpdatedAt 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 gets a reference to the given time.Time and assigns it to the CreatedAt field.

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) SetId

func (o *ResolvedProduct) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id 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 gets a reference to the given time.Time and assigns it to the UpdatedAt field.

type ResolvedProductAllOf

type ResolvedProductAllOf struct {
	Manufacturer *Manufacturer `json:"manufacturer,omitempty"`
	Categories   []Category    `json:"categories,omitempty"`
}

ResolvedProductAllOf struct for ResolvedProductAllOf

func NewResolvedProductAllOf

func NewResolvedProductAllOf() *ResolvedProductAllOf

NewResolvedProductAllOf instantiates a new ResolvedProductAllOf 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 NewResolvedProductAllOfWithDefaults

func NewResolvedProductAllOfWithDefaults() *ResolvedProductAllOf

NewResolvedProductAllOfWithDefaults instantiates a new ResolvedProductAllOf 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 (*ResolvedProductAllOf) GetCategories

func (o *ResolvedProductAllOf) GetCategories() []Category

GetCategories returns the Categories field value if set, zero value otherwise.

func (*ResolvedProductAllOf) GetCategoriesOk

func (o *ResolvedProductAllOf) 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 (*ResolvedProductAllOf) GetManufacturer

func (o *ResolvedProductAllOf) GetManufacturer() Manufacturer

GetManufacturer returns the Manufacturer field value if set, zero value otherwise.

func (*ResolvedProductAllOf) GetManufacturerOk

func (o *ResolvedProductAllOf) 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 (*ResolvedProductAllOf) HasCategories

func (o *ResolvedProductAllOf) HasCategories() bool

HasCategories returns a boolean if a field has been set.

func (*ResolvedProductAllOf) HasManufacturer

func (o *ResolvedProductAllOf) HasManufacturer() bool

HasManufacturer returns a boolean if a field has been set.

func (ResolvedProductAllOf) MarshalJSON

func (o ResolvedProductAllOf) MarshalJSON() ([]byte, error)

func (*ResolvedProductAllOf) SetCategories

func (o *ResolvedProductAllOf) SetCategories(v []Category)

SetCategories gets a reference to the given []Category and assigns it to the Categories field.

func (*ResolvedProductAllOf) SetManufacturer

func (o *ResolvedProductAllOf) SetManufacturer(v Manufacturer)

SetManufacturer gets a reference to the given Manufacturer and assigns it to the Manufacturer field.

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

func (ServerConfigurations) URL added in v0.4.0

func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error)

URL formats template on a index using given variables

type ServerVariable added in v0.4.0

type ServerVariable struct {
	Description  string
	DefaultValue string
	EnumValues   []string
}

ServerVariable stores the information about a server variable

Jump to

Keyboard shortcuts

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