openapi

package module
v0.0.0-...-f5c43e9 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: MIT Imports: 20 Imported by: 0

README

Go SDK for the merchant API of https://uuza.app/

API for managing products, including adding, updating, and retrieving products and their variants.

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.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/net/context

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

import openapi "github.com/fabricekabongo/uuza-go-sdk"

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 https://uuza.app

Class Method HTTP request Description
DefaultApi ApiAddSimpleProductPost Post /api/add-simple-product Add a simple product
DefaultApi ApiAddVariantProductPost Post /api/add-variant-product Add a variant product
DefaultApi ApiProductProductIdGet Get /api/product/{product_id} Get a product
DefaultApi ApiProductsGet Get /api/products Get all products
DefaultApi ApiUpdateSimpleProductProductIdPost Post /api/update-simple-product/{product_id} Update a simple product
DefaultApi ApiUpdateVariantProductProductIdPost Post /api/update-variant-product/{product_id} Update a variant product

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

basicAuth
  • Type: HTTP basic authentication

Example

auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{
    UserName: "username",
    Password: "password",
})
r, err := client.Service.Operation(auth, args)

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 (
	// ContextBasicAuth takes BasicAuth as authentication for the request.
	ContextBasicAuth = contextKey("basic")

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

Functions

func CacheExpires

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

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

func IsNil

func IsNil(i interface{}) bool

IsNil checks if an input is nil

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

type APIClient struct {
	DefaultApi *DefaultApiService
	// contains filtered or unexported fields
}

APIClient manages communication with the Product Management API API v1.0.0 In most cases there should be only one, shared, APIClient.

func NewAPIClient

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

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

type APIKey struct {
	Key    string
	Prefix string
}

APIKey provides API key based authentication to a request passed via context using ContextAPIKey

type APIResponse

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

func NewAPIResponse(r *http.Response) *APIResponse

NewAPIResponse returns a new APIResponse object.

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

NewAPIResponseWithError returns a new APIResponse object with the provided error message.

type ApiAddSimpleProductPost200Response

type ApiAddSimpleProductPost200Response struct {
	Message *string                                 `json:"message,omitempty"`
	Data    *ApiAddSimpleProductPost200ResponseData `json:"data,omitempty"`
	Success *bool                                   `json:"success,omitempty"`
}

ApiAddSimpleProductPost200Response struct for ApiAddSimpleProductPost200Response

func NewApiAddSimpleProductPost200Response

func NewApiAddSimpleProductPost200Response() *ApiAddSimpleProductPost200Response

NewApiAddSimpleProductPost200Response instantiates a new ApiAddSimpleProductPost200Response 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 NewApiAddSimpleProductPost200ResponseWithDefaults

func NewApiAddSimpleProductPost200ResponseWithDefaults() *ApiAddSimpleProductPost200Response

NewApiAddSimpleProductPost200ResponseWithDefaults instantiates a new ApiAddSimpleProductPost200Response 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 (*ApiAddSimpleProductPost200Response) GetData

GetData returns the Data field value if set, zero value otherwise.

func (*ApiAddSimpleProductPost200Response) GetDataOk

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

func (*ApiAddSimpleProductPost200Response) GetMessage

GetMessage returns the Message field value if set, zero value otherwise.

func (*ApiAddSimpleProductPost200Response) GetMessageOk

func (o *ApiAddSimpleProductPost200Response) GetMessageOk() (*string, bool)

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

func (*ApiAddSimpleProductPost200Response) GetSuccess

func (o *ApiAddSimpleProductPost200Response) GetSuccess() bool

GetSuccess returns the Success field value if set, zero value otherwise.

func (*ApiAddSimpleProductPost200Response) GetSuccessOk

func (o *ApiAddSimpleProductPost200Response) GetSuccessOk() (*bool, bool)

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

func (*ApiAddSimpleProductPost200Response) HasData

HasData returns a boolean if a field has been set.

func (*ApiAddSimpleProductPost200Response) HasMessage

func (o *ApiAddSimpleProductPost200Response) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (*ApiAddSimpleProductPost200Response) HasSuccess

func (o *ApiAddSimpleProductPost200Response) HasSuccess() bool

HasSuccess returns a boolean if a field has been set.

func (ApiAddSimpleProductPost200Response) MarshalJSON

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

func (*ApiAddSimpleProductPost200Response) SetData

SetData gets a reference to the given ApiAddSimpleProductPost200ResponseData and assigns it to the Data field.

func (*ApiAddSimpleProductPost200Response) SetMessage

func (o *ApiAddSimpleProductPost200Response) SetMessage(v string)

SetMessage gets a reference to the given string and assigns it to the Message field.

func (*ApiAddSimpleProductPost200Response) SetSuccess

func (o *ApiAddSimpleProductPost200Response) SetSuccess(v bool)

SetSuccess gets a reference to the given bool and assigns it to the Success field.

func (ApiAddSimpleProductPost200Response) ToMap

func (o ApiAddSimpleProductPost200Response) ToMap() (map[string]interface{}, error)

type ApiAddSimpleProductPost200ResponseData

type ApiAddSimpleProductPost200ResponseData struct {
	ProductId *uint64 `json:"product_id,omitempty"`
}

ApiAddSimpleProductPost200ResponseData struct for ApiAddSimpleProductPost200ResponseData

func NewApiAddSimpleProductPost200ResponseData

func NewApiAddSimpleProductPost200ResponseData() *ApiAddSimpleProductPost200ResponseData

NewApiAddSimpleProductPost200ResponseData instantiates a new ApiAddSimpleProductPost200ResponseData 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 NewApiAddSimpleProductPost200ResponseDataWithDefaults

func NewApiAddSimpleProductPost200ResponseDataWithDefaults() *ApiAddSimpleProductPost200ResponseData

NewApiAddSimpleProductPost200ResponseDataWithDefaults instantiates a new ApiAddSimpleProductPost200ResponseData 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 (*ApiAddSimpleProductPost200ResponseData) GetProductId

GetProductId returns the ProductId field value if set, zero value otherwise.

func (*ApiAddSimpleProductPost200ResponseData) GetProductIdOk

func (o *ApiAddSimpleProductPost200ResponseData) GetProductIdOk() (*uint64, bool)

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

func (*ApiAddSimpleProductPost200ResponseData) HasProductId

func (o *ApiAddSimpleProductPost200ResponseData) HasProductId() bool

HasProductId returns a boolean if a field has been set.

func (ApiAddSimpleProductPost200ResponseData) MarshalJSON

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

func (*ApiAddSimpleProductPost200ResponseData) SetProductId

SetProductId gets a reference to the given string and assigns it to the ProductId field.

func (ApiAddSimpleProductPost200ResponseData) ToMap

func (o ApiAddSimpleProductPost200ResponseData) ToMap() (map[string]interface{}, error)

type ApiApiAddSimpleProductPostRequest

type ApiApiAddSimpleProductPostRequest struct {
	ApiService *DefaultApiService
	// contains filtered or unexported fields
}

func (ApiApiAddSimpleProductPostRequest) Execute

func (ApiApiAddSimpleProductPostRequest) SimpleProduct

type ApiApiAddVariantProductPostRequest

type ApiApiAddVariantProductPostRequest struct {
	ApiService *DefaultApiService
	// contains filtered or unexported fields
}

func (ApiApiAddVariantProductPostRequest) Execute

func (ApiApiAddVariantProductPostRequest) VariantProduct

type ApiApiProductProductIdGetRequest

type ApiApiProductProductIdGetRequest struct {
	ApiService *DefaultApiService
	// contains filtered or unexported fields
}

func (ApiApiProductProductIdGetRequest) Execute

type ApiApiProductsGetRequest

type ApiApiProductsGetRequest struct {
	ApiService *DefaultApiService
	// contains filtered or unexported fields
}

func (ApiApiProductsGetRequest) Execute

func (ApiApiProductsGetRequest) Page

func (ApiApiProductsGetRequest) PerPage

func (ApiApiProductsGetRequest) Search

type ApiApiUpdateSingleProductProductIdPostRequest

type ApiApiUpdateSingleProductProductIdPostRequest struct {
	ApiService *DefaultApiService
	// contains filtered or unexported fields
}

func (ApiApiUpdateSingleProductProductIdPostRequest) Execute

func (ApiApiUpdateSingleProductProductIdPostRequest) SingleProduct

type ApiApiUpdateVariantProductProductIdPostRequest

type ApiApiUpdateVariantProductProductIdPostRequest struct {
	ApiService *DefaultApiService
	// contains filtered or unexported fields
}

func (ApiApiUpdateVariantProductProductIdPostRequest) Execute

func (ApiApiUpdateVariantProductProductIdPostRequest) VariantProduct

type ApiProductProductIdGet200Response

type ApiProductProductIdGet200Response struct {
	Message *string                `json:"message,omitempty"`
	Success *bool                  `json:"success,omitempty"`
	Data    map[string]interface{} `json:"data,omitempty"`
}

ApiProductProductIdGet200Response struct for ApiProductProductIdGet200Response

func NewApiProductProductIdGet200Response

func NewApiProductProductIdGet200Response() *ApiProductProductIdGet200Response

NewApiProductProductIdGet200Response instantiates a new ApiProductProductIdGet200Response 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 NewApiProductProductIdGet200ResponseWithDefaults

func NewApiProductProductIdGet200ResponseWithDefaults() *ApiProductProductIdGet200Response

NewApiProductProductIdGet200ResponseWithDefaults instantiates a new ApiProductProductIdGet200Response 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 (*ApiProductProductIdGet200Response) GetData

func (o *ApiProductProductIdGet200Response) GetData() map[string]interface{}

GetData returns the Data field value if set, zero value otherwise.

func (*ApiProductProductIdGet200Response) GetDataOk

func (o *ApiProductProductIdGet200Response) GetDataOk() (map[string]interface{}, bool)

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

func (*ApiProductProductIdGet200Response) GetMessage

func (o *ApiProductProductIdGet200Response) GetMessage() string

GetMessage returns the Message field value if set, zero value otherwise.

func (*ApiProductProductIdGet200Response) GetMessageOk

func (o *ApiProductProductIdGet200Response) GetMessageOk() (*string, bool)

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

func (*ApiProductProductIdGet200Response) GetSuccess

func (o *ApiProductProductIdGet200Response) GetSuccess() bool

GetSuccess returns the Success field value if set, zero value otherwise.

func (*ApiProductProductIdGet200Response) GetSuccessOk

func (o *ApiProductProductIdGet200Response) GetSuccessOk() (*bool, bool)

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

func (*ApiProductProductIdGet200Response) HasData

HasData returns a boolean if a field has been set.

func (*ApiProductProductIdGet200Response) HasMessage

func (o *ApiProductProductIdGet200Response) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (*ApiProductProductIdGet200Response) HasSuccess

func (o *ApiProductProductIdGet200Response) HasSuccess() bool

HasSuccess returns a boolean if a field has been set.

func (ApiProductProductIdGet200Response) MarshalJSON

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

func (*ApiProductProductIdGet200Response) SetData

func (o *ApiProductProductIdGet200Response) SetData(v map[string]interface{})

SetData gets a reference to the given map[string]interface{} and assigns it to the Data field.

func (*ApiProductProductIdGet200Response) SetMessage

func (o *ApiProductProductIdGet200Response) SetMessage(v string)

SetMessage gets a reference to the given string and assigns it to the Message field.

func (*ApiProductProductIdGet200Response) SetSuccess

func (o *ApiProductProductIdGet200Response) SetSuccess(v bool)

SetSuccess gets a reference to the given bool and assigns it to the Success field.

func (ApiProductProductIdGet200Response) ToMap

func (o ApiProductProductIdGet200Response) ToMap() (map[string]interface{}, error)

type ApiProductsGet200Response

type ApiProductsGet200Response struct {
	Data    *ApiProductsGet200ResponseData `json:"data,omitempty"`
	Success *bool                          `json:"success,omitempty"`
}

ApiProductsGet200Response struct for ApiProductsGet200Response

func NewApiProductsGet200Response

func NewApiProductsGet200Response() *ApiProductsGet200Response

NewApiProductsGet200Response instantiates a new ApiProductsGet200Response 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 NewApiProductsGet200ResponseWithDefaults

func NewApiProductsGet200ResponseWithDefaults() *ApiProductsGet200Response

NewApiProductsGet200ResponseWithDefaults instantiates a new ApiProductsGet200Response 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 (*ApiProductsGet200Response) GetData

GetData returns the Data field value if set, zero value otherwise.

func (*ApiProductsGet200Response) GetDataOk

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

func (*ApiProductsGet200Response) GetSuccess

func (o *ApiProductsGet200Response) GetSuccess() bool

GetSuccess returns the Success field value if set, zero value otherwise.

func (*ApiProductsGet200Response) GetSuccessOk

func (o *ApiProductsGet200Response) GetSuccessOk() (*bool, bool)

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

func (*ApiProductsGet200Response) HasData

func (o *ApiProductsGet200Response) HasData() bool

HasData returns a boolean if a field has been set.

func (*ApiProductsGet200Response) HasSuccess

func (o *ApiProductsGet200Response) HasSuccess() bool

HasSuccess returns a boolean if a field has been set.

func (ApiProductsGet200Response) MarshalJSON

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

func (*ApiProductsGet200Response) SetData

SetData gets a reference to the given ApiProductsGet200ResponseData and assigns it to the Data field.

func (*ApiProductsGet200Response) SetSuccess

func (o *ApiProductsGet200Response) SetSuccess(v bool)

SetSuccess gets a reference to the given bool and assigns it to the Success field.

func (ApiProductsGet200Response) ToMap

func (o ApiProductsGet200Response) ToMap() (map[string]interface{}, error)

type ApiProductsGet200ResponseData

type ApiProductsGet200ResponseData struct {
	Data       []map[string]interface{}                 `json:"data,omitempty"`
	Pagination *ApiProductsGet200ResponseDataPagination `json:"pagination,omitempty"`
}

ApiProductsGet200ResponseData struct for ApiProductsGet200ResponseData

func NewApiProductsGet200ResponseData

func NewApiProductsGet200ResponseData() *ApiProductsGet200ResponseData

NewApiProductsGet200ResponseData instantiates a new ApiProductsGet200ResponseData 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 NewApiProductsGet200ResponseDataWithDefaults

func NewApiProductsGet200ResponseDataWithDefaults() *ApiProductsGet200ResponseData

NewApiProductsGet200ResponseDataWithDefaults instantiates a new ApiProductsGet200ResponseData 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 (*ApiProductsGet200ResponseData) GetData

func (o *ApiProductsGet200ResponseData) GetData() []map[string]interface{}

GetData returns the Data field value if set, zero value otherwise.

func (*ApiProductsGet200ResponseData) GetDataOk

func (o *ApiProductsGet200ResponseData) GetDataOk() ([]map[string]interface{}, bool)

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

func (*ApiProductsGet200ResponseData) GetPagination

GetPagination returns the Pagination field value if set, zero value otherwise.

func (*ApiProductsGet200ResponseData) GetPaginationOk

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

func (*ApiProductsGet200ResponseData) HasData

func (o *ApiProductsGet200ResponseData) HasData() bool

HasData returns a boolean if a field has been set.

func (*ApiProductsGet200ResponseData) HasPagination

func (o *ApiProductsGet200ResponseData) HasPagination() bool

HasPagination returns a boolean if a field has been set.

func (ApiProductsGet200ResponseData) MarshalJSON

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

func (*ApiProductsGet200ResponseData) SetData

func (o *ApiProductsGet200ResponseData) SetData(v []map[string]interface{})

SetData gets a reference to the given []map[string]interface{} and assigns it to the Data field.

func (*ApiProductsGet200ResponseData) SetPagination

SetPagination gets a reference to the given ApiProductsGet200ResponseDataPagination and assigns it to the Pagination field.

func (ApiProductsGet200ResponseData) ToMap

func (o ApiProductsGet200ResponseData) ToMap() (map[string]interface{}, error)

type ApiProductsGet200ResponseDataPagination

type ApiProductsGet200ResponseDataPagination struct {
	CurrentPage   *int32 `json:"current_page,omitempty"`
	PerPage       *int32 `json:"per_page,omitempty"`
	TotalProducts *int32 `json:"total_products,omitempty"`
	TotalPages    *int32 `json:"total_pages,omitempty"`
}

ApiProductsGet200ResponseDataPagination struct for ApiProductsGet200ResponseDataPagination

func NewApiProductsGet200ResponseDataPagination

func NewApiProductsGet200ResponseDataPagination() *ApiProductsGet200ResponseDataPagination

NewApiProductsGet200ResponseDataPagination instantiates a new ApiProductsGet200ResponseDataPagination 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 NewApiProductsGet200ResponseDataPaginationWithDefaults

func NewApiProductsGet200ResponseDataPaginationWithDefaults() *ApiProductsGet200ResponseDataPagination

NewApiProductsGet200ResponseDataPaginationWithDefaults instantiates a new ApiProductsGet200ResponseDataPagination 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 (*ApiProductsGet200ResponseDataPagination) GetCurrentPage

func (o *ApiProductsGet200ResponseDataPagination) GetCurrentPage() int32

GetCurrentPage returns the CurrentPage field value if set, zero value otherwise.

func (*ApiProductsGet200ResponseDataPagination) GetCurrentPageOk

func (o *ApiProductsGet200ResponseDataPagination) GetCurrentPageOk() (*int32, bool)

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

func (*ApiProductsGet200ResponseDataPagination) GetPerPage

GetPerPage returns the PerPage field value if set, zero value otherwise.

func (*ApiProductsGet200ResponseDataPagination) GetPerPageOk

func (o *ApiProductsGet200ResponseDataPagination) GetPerPageOk() (*int32, bool)

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

func (*ApiProductsGet200ResponseDataPagination) GetTotalPages

GetTotalPages returns the TotalPages field value if set, zero value otherwise.

func (*ApiProductsGet200ResponseDataPagination) GetTotalPagesOk

func (o *ApiProductsGet200ResponseDataPagination) GetTotalPagesOk() (*int32, bool)

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

func (*ApiProductsGet200ResponseDataPagination) GetTotalProducts

func (o *ApiProductsGet200ResponseDataPagination) GetTotalProducts() int32

GetTotalProducts returns the TotalProducts field value if set, zero value otherwise.

func (*ApiProductsGet200ResponseDataPagination) GetTotalProductsOk

func (o *ApiProductsGet200ResponseDataPagination) GetTotalProductsOk() (*int32, bool)

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

func (*ApiProductsGet200ResponseDataPagination) HasCurrentPage

func (o *ApiProductsGet200ResponseDataPagination) HasCurrentPage() bool

HasCurrentPage returns a boolean if a field has been set.

func (*ApiProductsGet200ResponseDataPagination) HasPerPage

HasPerPage returns a boolean if a field has been set.

func (*ApiProductsGet200ResponseDataPagination) HasTotalPages

func (o *ApiProductsGet200ResponseDataPagination) HasTotalPages() bool

HasTotalPages returns a boolean if a field has been set.

func (*ApiProductsGet200ResponseDataPagination) HasTotalProducts

func (o *ApiProductsGet200ResponseDataPagination) HasTotalProducts() bool

HasTotalProducts returns a boolean if a field has been set.

func (ApiProductsGet200ResponseDataPagination) MarshalJSON

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

func (*ApiProductsGet200ResponseDataPagination) SetCurrentPage

func (o *ApiProductsGet200ResponseDataPagination) SetCurrentPage(v int32)

SetCurrentPage gets a reference to the given int32 and assigns it to the CurrentPage field.

func (*ApiProductsGet200ResponseDataPagination) SetPerPage

SetPerPage gets a reference to the given int32 and assigns it to the PerPage field.

func (*ApiProductsGet200ResponseDataPagination) SetTotalPages

func (o *ApiProductsGet200ResponseDataPagination) SetTotalPages(v int32)

SetTotalPages gets a reference to the given int32 and assigns it to the TotalPages field.

func (*ApiProductsGet200ResponseDataPagination) SetTotalProducts

func (o *ApiProductsGet200ResponseDataPagination) SetTotalProducts(v int32)

SetTotalProducts gets a reference to the given int32 and assigns it to the TotalProducts field.

func (ApiProductsGet200ResponseDataPagination) ToMap

func (o ApiProductsGet200ResponseDataPagination) ToMap() (map[string]interface{}, error)

type BasicAuth

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 Configuration

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

func NewConfiguration() *Configuration

NewConfiguration returns a new Configuration object

func (*Configuration) AddDefaultHeader

func (c *Configuration) AddDefaultHeader(key string, value string)

AddDefaultHeader adds a new HTTP header to the default header in the request

func (*Configuration) ServerURL

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

ServerURL returns URL based on server settings

func (*Configuration) ServerURLWithContext

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

ServerURLWithContext returns a new server URL given an endpoint

type DefaultApiService

type DefaultApiService service

DefaultApiService DefaultApi service

func (*DefaultApiService) ApiAddSimpleProductPost

func (a *DefaultApiService) ApiAddSimpleProductPost(ctx context.Context) ApiApiAddSimpleProductPostRequest

ApiAddSimpleProductPost Add a simple product

Adds a new simple product to the system.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiApiAddSimpleProductPostRequest

func (*DefaultApiService) ApiAddSimpleProductPostExecute

Execute executes the request

@return ApiAddSimpleProductPost200Response

func (*DefaultApiService) ApiAddVariantProductPost

func (a *DefaultApiService) ApiAddVariantProductPost(ctx context.Context) ApiApiAddVariantProductPostRequest

ApiAddVariantProductPost Add a variant product

Adds a new product with variants to the system.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiApiAddVariantProductPostRequest

func (*DefaultApiService) ApiAddVariantProductPostExecute

Execute executes the request

@return ApiAddSimpleProductPost200Response

func (*DefaultApiService) ApiProductProductIdGet

func (a *DefaultApiService) ApiProductProductIdGet(ctx context.Context, productId uint64) ApiApiProductProductIdGetRequest

ApiProductProductIdGet Get a product

Retrieves details of a single product or variant product.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param productId
@return ApiApiProductProductIdGetRequest

func (*DefaultApiService) ApiProductProductIdGetExecute

Execute executes the request

@return ApiProductProductIdGet200Response

func (*DefaultApiService) ApiProductsGet

ApiProductsGet Get all products

Retrieves a paginated list of all products.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiApiProductsGetRequest

func (*DefaultApiService) ApiProductsGetExecute

Execute executes the request

@return ApiProductsGet200Response

func (*DefaultApiService) ApiUpdateSingleProductProductIdPost

func (a *DefaultApiService) ApiUpdateSingleProductProductIdPost(ctx context.Context, productId uint64) ApiApiUpdateSingleProductProductIdPostRequest

ApiUpdateSingleProductProductIdPost Update a simple product

Updates an existing simple product.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param productId
@return ApiApiUpdateSingleProductProductIdPostRequest

func (*DefaultApiService) ApiUpdateSingleProductProductIdPostExecute

func (a *DefaultApiService) ApiUpdateSingleProductProductIdPostExecute(r ApiApiUpdateSingleProductProductIdPostRequest) (*http.Response, error)

Execute executes the request

func (*DefaultApiService) ApiUpdateVariantProductProductIdPost

func (a *DefaultApiService) ApiUpdateVariantProductProductIdPost(ctx context.Context, productId uint64) ApiApiUpdateVariantProductProductIdPostRequest

ApiUpdateVariantProductProductIdPost Update a variant product

Updates an existing product with variants.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param productId
@return ApiApiUpdateVariantProductProductIdPostRequest

func (*DefaultApiService) ApiUpdateVariantProductProductIdPostExecute

func (a *DefaultApiService) ApiUpdateVariantProductProductIdPostExecute(r ApiApiUpdateVariantProductProductIdPostRequest) (*http.Response, error)

Execute executes the request

type GenericOpenAPIError

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

GenericOpenAPIError Provides access to the body, error and model on returned errors.

func (GenericOpenAPIError) Body

func (e GenericOpenAPIError) Body() []byte

Body returns the raw bytes of the response

func (GenericOpenAPIError) Error

func (e GenericOpenAPIError) Error() string

Error returns non-empty string if there was an error.

func (GenericOpenAPIError) Model

func (e GenericOpenAPIError) Model() interface{}

Model returns the unpacked model of the error

type MappedNullable

type MappedNullable interface {
	ToMap() (map[string]interface{}, error)
}

type NullableApiAddSimpleProductPost200Response

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

func (NullableApiAddSimpleProductPost200Response) Get

func (NullableApiAddSimpleProductPost200Response) IsSet

func (NullableApiAddSimpleProductPost200Response) MarshalJSON

func (*NullableApiAddSimpleProductPost200Response) Set

func (*NullableApiAddSimpleProductPost200Response) UnmarshalJSON

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

func (*NullableApiAddSimpleProductPost200Response) Unset

type NullableApiAddSimpleProductPost200ResponseData

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

func (NullableApiAddSimpleProductPost200ResponseData) Get

func (NullableApiAddSimpleProductPost200ResponseData) IsSet

func (NullableApiAddSimpleProductPost200ResponseData) MarshalJSON

func (*NullableApiAddSimpleProductPost200ResponseData) Set

func (*NullableApiAddSimpleProductPost200ResponseData) UnmarshalJSON

func (*NullableApiAddSimpleProductPost200ResponseData) Unset

type NullableApiProductProductIdGet200Response

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

func (NullableApiProductProductIdGet200Response) Get

func (NullableApiProductProductIdGet200Response) IsSet

func (NullableApiProductProductIdGet200Response) MarshalJSON

func (*NullableApiProductProductIdGet200Response) Set

func (*NullableApiProductProductIdGet200Response) UnmarshalJSON

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

func (*NullableApiProductProductIdGet200Response) Unset

type NullableApiProductsGet200Response

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

func (NullableApiProductsGet200Response) Get

func (NullableApiProductsGet200Response) IsSet

func (NullableApiProductsGet200Response) MarshalJSON

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

func (*NullableApiProductsGet200Response) Set

func (*NullableApiProductsGet200Response) UnmarshalJSON

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

func (*NullableApiProductsGet200Response) Unset

type NullableApiProductsGet200ResponseData

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

func (NullableApiProductsGet200ResponseData) Get

func (NullableApiProductsGet200ResponseData) IsSet

func (NullableApiProductsGet200ResponseData) MarshalJSON

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

func (*NullableApiProductsGet200ResponseData) Set

func (*NullableApiProductsGet200ResponseData) UnmarshalJSON

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

func (*NullableApiProductsGet200ResponseData) Unset

type NullableApiProductsGet200ResponseDataPagination

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

func (NullableApiProductsGet200ResponseDataPagination) Get

func (NullableApiProductsGet200ResponseDataPagination) IsSet

func (NullableApiProductsGet200ResponseDataPagination) MarshalJSON

func (*NullableApiProductsGet200ResponseDataPagination) Set

func (*NullableApiProductsGet200ResponseDataPagination) UnmarshalJSON

func (*NullableApiProductsGet200ResponseDataPagination) Unset

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

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

func NewNullableSimpleProduct

func NewNullableSimpleProduct(val *SimpleProduct) *NullableSimpleProduct

func (NullableSimpleProduct) Get

func (NullableSimpleProduct) IsSet

func (v NullableSimpleProduct) IsSet() bool

func (NullableSimpleProduct) MarshalJSON

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

func (*NullableSimpleProduct) Set

func (v *NullableSimpleProduct) Set(val *SimpleProduct)

func (*NullableSimpleProduct) UnmarshalJSON

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

func (*NullableSimpleProduct) Unset

func (v *NullableSimpleProduct) Unset()

type NullableSingleUpdateProduct

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

func NewNullableSingleUpdateProduct

func NewNullableSingleUpdateProduct(val *SingleUpdateProduct) *NullableSingleUpdateProduct

func (NullableSingleUpdateProduct) Get

func (NullableSingleUpdateProduct) IsSet

func (NullableSingleUpdateProduct) MarshalJSON

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

func (*NullableSingleUpdateProduct) Set

func (*NullableSingleUpdateProduct) UnmarshalJSON

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

func (*NullableSingleUpdateProduct) Unset

func (v *NullableSingleUpdateProduct) 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 NullableVariant

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

func NewNullableVariant

func NewNullableVariant(val *Variant) *NullableVariant

func (NullableVariant) Get

func (v NullableVariant) Get() *Variant

func (NullableVariant) IsSet

func (v NullableVariant) IsSet() bool

func (NullableVariant) MarshalJSON

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

func (*NullableVariant) Set

func (v *NullableVariant) Set(val *Variant)

func (*NullableVariant) UnmarshalJSON

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

func (*NullableVariant) Unset

func (v *NullableVariant) Unset()

type NullableVariantProduct

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

func NewNullableVariantProduct

func NewNullableVariantProduct(val *VariantProduct) *NullableVariantProduct

func (NullableVariantProduct) Get

func (NullableVariantProduct) IsSet

func (v NullableVariantProduct) IsSet() bool

func (NullableVariantProduct) MarshalJSON

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

func (*NullableVariantProduct) Set

func (*NullableVariantProduct) UnmarshalJSON

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

func (*NullableVariantProduct) Unset

func (v *NullableVariantProduct) Unset()

type ServerConfiguration

type ServerConfiguration struct {
	URL         string
	Description string
	Variables   map[string]ServerVariable
}

ServerConfiguration stores the information about a server

type ServerConfigurations

type ServerConfigurations []ServerConfiguration

ServerConfigurations stores multiple ServerConfiguration items

func (ServerConfigurations) URL

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

URL formats template on a index using given variables

type ServerVariable

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

ServerVariable stores the information about a server variable

type SimpleProduct

type SimpleProduct struct {
	Name         *string    `json:"name,omitempty"`
	Price        *float32   `json:"price,omitempty"`
	Quantity     *int32     `json:"quantity,omitempty"`
	CategoryId   *int32     `json:"category_id,omitempty"`
	PostedDate   *time.Time `json:"posted_date,omitempty"`
	Description  *string    `json:"description,omitempty"`
	Images       []string   `json:"images,omitempty"`
	FeatureImage *string    `json:"feature_image,omitempty"`
	Tag          *string    `json:"tag,omitempty"`
}

SimpleProduct struct for SimpleProduct

func NewSimpleProduct

func NewSimpleProduct() *SimpleProduct

NewSimpleProduct instantiates a new SimpleProduct 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 NewSimpleProductWithDefaults

func NewSimpleProductWithDefaults() *SimpleProduct

NewSimpleProductWithDefaults instantiates a new SimpleProduct 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 (*SimpleProduct) GetCategoryId

func (o *SimpleProduct) GetCategoryId() int32

GetCategoryId returns the CategoryId field value if set, zero value otherwise.

func (*SimpleProduct) GetCategoryIdOk

func (o *SimpleProduct) GetCategoryIdOk() (*int32, bool)

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

func (*SimpleProduct) GetDescription

func (o *SimpleProduct) GetDescription() string

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

func (*SimpleProduct) GetDescriptionOk

func (o *SimpleProduct) 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 (*SimpleProduct) GetFeatureImage

func (o *SimpleProduct) GetFeatureImage() string

GetFeatureImage returns the FeatureImage field value if set, zero value otherwise.

func (*SimpleProduct) GetFeatureImageOk

func (o *SimpleProduct) GetFeatureImageOk() (*string, bool)

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

func (*SimpleProduct) GetImages

func (o *SimpleProduct) GetImages() []string

GetImages returns the Images field value if set, zero value otherwise.

func (*SimpleProduct) GetImagesOk

func (o *SimpleProduct) GetImagesOk() ([]string, bool)

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

func (*SimpleProduct) GetName

func (o *SimpleProduct) GetName() string

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

func (*SimpleProduct) GetNameOk

func (o *SimpleProduct) 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 (*SimpleProduct) GetPostedDate

func (o *SimpleProduct) GetPostedDate() time.Time

GetPostedDate returns the PostedDate field value if set, zero value otherwise.

func (*SimpleProduct) GetPostedDateOk

func (o *SimpleProduct) GetPostedDateOk() (*time.Time, bool)

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

func (*SimpleProduct) GetPrice

func (o *SimpleProduct) GetPrice() float32

GetPrice returns the Price field value if set, zero value otherwise.

func (*SimpleProduct) GetPriceOk

func (o *SimpleProduct) GetPriceOk() (*float32, bool)

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

func (*SimpleProduct) GetQuantity

func (o *SimpleProduct) GetQuantity() int32

GetQuantity returns the Quantity field value if set, zero value otherwise.

func (*SimpleProduct) GetQuantityOk

func (o *SimpleProduct) GetQuantityOk() (*int32, bool)

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

func (*SimpleProduct) GetTag

func (o *SimpleProduct) GetTag() string

GetTag returns the Tag field value if set, zero value otherwise.

func (*SimpleProduct) GetTagOk

func (o *SimpleProduct) GetTagOk() (*string, bool)

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

func (*SimpleProduct) HasCategoryId

func (o *SimpleProduct) HasCategoryId() bool

HasCategoryId returns a boolean if a field has been set.

func (*SimpleProduct) HasDescription

func (o *SimpleProduct) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*SimpleProduct) HasFeatureImage

func (o *SimpleProduct) HasFeatureImage() bool

HasFeatureImage returns a boolean if a field has been set.

func (*SimpleProduct) HasImages

func (o *SimpleProduct) HasImages() bool

HasImages returns a boolean if a field has been set.

func (*SimpleProduct) HasName

func (o *SimpleProduct) HasName() bool

HasName returns a boolean if a field has been set.

func (*SimpleProduct) HasPostedDate

func (o *SimpleProduct) HasPostedDate() bool

HasPostedDate returns a boolean if a field has been set.

func (*SimpleProduct) HasPrice

func (o *SimpleProduct) HasPrice() bool

HasPrice returns a boolean if a field has been set.

func (*SimpleProduct) HasQuantity

func (o *SimpleProduct) HasQuantity() bool

HasQuantity returns a boolean if a field has been set.

func (*SimpleProduct) HasTag

func (o *SimpleProduct) HasTag() bool

HasTag returns a boolean if a field has been set.

func (SimpleProduct) MarshalJSON

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

func (*SimpleProduct) SetCategoryId

func (o *SimpleProduct) SetCategoryId(v int32)

SetCategoryId gets a reference to the given int32 and assigns it to the CategoryId field.

func (*SimpleProduct) SetDescription

func (o *SimpleProduct) SetDescription(v string)

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

func (*SimpleProduct) SetFeatureImage

func (o *SimpleProduct) SetFeatureImage(v string)

SetFeatureImage gets a reference to the given string and assigns it to the FeatureImage field.

func (*SimpleProduct) SetImages

func (o *SimpleProduct) SetImages(v []string)

SetImages gets a reference to the given []string and assigns it to the Images field.

func (*SimpleProduct) SetName

func (o *SimpleProduct) SetName(v string)

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

func (*SimpleProduct) SetPostedDate

func (o *SimpleProduct) SetPostedDate(v time.Time)

SetPostedDate gets a reference to the given time.Time and assigns it to the PostedDate field.

func (*SimpleProduct) SetPrice

func (o *SimpleProduct) SetPrice(v float32)

SetPrice gets a reference to the given float32 and assigns it to the Price field.

func (*SimpleProduct) SetQuantity

func (o *SimpleProduct) SetQuantity(v int32)

SetQuantity gets a reference to the given int32 and assigns it to the Quantity field.

func (*SimpleProduct) SetTag

func (o *SimpleProduct) SetTag(v string)

SetTag gets a reference to the given string and assigns it to the Tag field.

func (SimpleProduct) ToMap

func (o SimpleProduct) ToMap() (map[string]interface{}, error)

type SingleUpdateProduct

type SingleUpdateProduct struct {
	Name         *string       `json:"name,omitempty"`
	Price        *float32      `json:"price,omitempty"`
	Quantity     *int32        `json:"quantity,omitempty"`
	CategoryId   *int32        `json:"category_id,omitempty"`
	PostedDate   *time.Time    `json:"posted_date,omitempty"`
	Description  *string       `json:"description,omitempty"`
	Images       []UpdateImage `json:"images,omitempty"`
	FeatureImage *string       `json:"feature_image,omitempty"`
	Tag          *string       `json:"tag,omitempty"`
}

func NewSingleUpdateProduct

func NewSingleUpdateProduct() *SingleUpdateProduct

NewSingleUpdateProduct instantiates a new SingleUpdateProduct 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 NewSingleUpdateProductWithDefaults

func NewSingleUpdateProductWithDefaults() *SingleUpdateProduct

NewSingleUpdateProductWithDefaults instantiates a new SingleUpdateProduct 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 (*SingleUpdateProduct) GetCategoryId

func (o *SingleUpdateProduct) GetCategoryId() int32

GetCategoryId returns the CategoryId field value if set, zero value otherwise.

func (*SingleUpdateProduct) GetCategoryIdOk

func (o *SingleUpdateProduct) GetCategoryIdOk() (*int32, bool)

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

func (*SingleUpdateProduct) GetDescription

func (o *SingleUpdateProduct) GetDescription() string

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

func (*SingleUpdateProduct) GetDescriptionOk

func (o *SingleUpdateProduct) 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 (*SingleUpdateProduct) GetFeatureImage

func (o *SingleUpdateProduct) GetFeatureImage() string

GetFeatureImage returns the FeatureImage field value if set, zero value otherwise.

func (*SingleUpdateProduct) GetFeatureImageOk

func (o *SingleUpdateProduct) GetFeatureImageOk() (*string, bool)

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

func (*SingleUpdateProduct) GetImages

func (o *SingleUpdateProduct) GetImages() []UpdateImage

GetImages returns the Images field value if set, zero value otherwise.

func (*SingleUpdateProduct) GetImagesOk

func (o *SingleUpdateProduct) GetImagesOk() ([]UpdateImage, bool)

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

func (*SingleUpdateProduct) GetName

func (o *SingleUpdateProduct) GetName() string

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

func (*SingleUpdateProduct) GetNameOk

func (o *SingleUpdateProduct) 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 (*SingleUpdateProduct) GetPostedDate

func (o *SingleUpdateProduct) GetPostedDate() time.Time

GetPostedDate returns the PostedDate field value if set, zero value otherwise.

func (*SingleUpdateProduct) GetPostedDateOk

func (o *SingleUpdateProduct) GetPostedDateOk() (*time.Time, bool)

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

func (*SingleUpdateProduct) GetPrice

func (o *SingleUpdateProduct) GetPrice() float32

GetPrice returns the Price field value if set, zero value otherwise.

func (*SingleUpdateProduct) GetPriceOk

func (o *SingleUpdateProduct) GetPriceOk() (*float32, bool)

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

func (*SingleUpdateProduct) GetQuantity

func (o *SingleUpdateProduct) GetQuantity() int32

GetQuantity returns the Quantity field value if set, zero value otherwise.

func (*SingleUpdateProduct) GetQuantityOk

func (o *SingleUpdateProduct) GetQuantityOk() (*int32, bool)

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

func (*SingleUpdateProduct) GetTag

func (o *SingleUpdateProduct) GetTag() string

GetTag returns the Tag field value if set, zero value otherwise.

func (*SingleUpdateProduct) GetTagOk

func (o *SingleUpdateProduct) GetTagOk() (*string, bool)

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

func (*SingleUpdateProduct) HasCategoryId

func (o *SingleUpdateProduct) HasCategoryId() bool

HasCategoryId returns a boolean if a field has been set.

func (*SingleUpdateProduct) HasDescription

func (o *SingleUpdateProduct) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*SingleUpdateProduct) HasFeatureImage

func (o *SingleUpdateProduct) HasFeatureImage() bool

HasFeatureImage returns a boolean if a field has been set.

func (*SingleUpdateProduct) HasImages

func (o *SingleUpdateProduct) HasImages() bool

HasImages returns a boolean if a field has been set.

func (*SingleUpdateProduct) HasName

func (o *SingleUpdateProduct) HasName() bool

HasName returns a boolean if a field has been set.

func (*SingleUpdateProduct) HasPostedDate

func (o *SingleUpdateProduct) HasPostedDate() bool

HasPostedDate returns a boolean if a field has been set.

func (*SingleUpdateProduct) HasPrice

func (o *SingleUpdateProduct) HasPrice() bool

HasPrice returns a boolean if a field has been set.

func (*SingleUpdateProduct) HasQuantity

func (o *SingleUpdateProduct) HasQuantity() bool

HasQuantity returns a boolean if a field has been set.

func (*SingleUpdateProduct) HasTag

func (o *SingleUpdateProduct) HasTag() bool

HasTag returns a boolean if a field has been set.

func (SingleUpdateProduct) MarshalJSON

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

func (*SingleUpdateProduct) SetCategoryId

func (o *SingleUpdateProduct) SetCategoryId(v int32)

SetCategoryId gets a reference to the given int32 and assigns it to the CategoryId field.

func (*SingleUpdateProduct) SetDescription

func (o *SingleUpdateProduct) SetDescription(v string)

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

func (*SingleUpdateProduct) SetFeatureImage

func (o *SingleUpdateProduct) SetFeatureImage(v string)

SetFeatureImage gets a reference to the given string and assigns it to the FeatureImage field.

func (*SingleUpdateProduct) SetImages

func (o *SingleUpdateProduct) SetImages(v []UpdateImage)

SetImages gets a reference to the given []string and assigns it to the Images field.

func (*SingleUpdateProduct) SetName

func (o *SingleUpdateProduct) SetName(v string)

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

func (*SingleUpdateProduct) SetPostedDate

func (o *SingleUpdateProduct) SetPostedDate(v time.Time)

SetPostedDate gets a reference to the given time.Time and assigns it to the PostedDate field.

func (*SingleUpdateProduct) SetPrice

func (o *SingleUpdateProduct) SetPrice(v float32)

SetPrice gets a reference to the given float32 and assigns it to the Price field.

func (*SingleUpdateProduct) SetQuantity

func (o *SingleUpdateProduct) SetQuantity(v int32)

SetQuantity gets a reference to the given int32 and assigns it to the Quantity field.

func (*SingleUpdateProduct) SetTag

func (o *SingleUpdateProduct) SetTag(v string)

SetTag gets a reference to the given string and assigns it to the Tag field.

func (SingleUpdateProduct) ToMap

func (o SingleUpdateProduct) ToMap() (map[string]interface{}, error)

type UpdateImage

type UpdateImage struct {
	Id    int32  `json:"id"`
	Image string `json:"url"`
}

type Variant

type Variant struct {
	Name       *string    `json:"name,omitempty"`
	Price      *float32   `json:"price,omitempty"`
	Quantity   *int32     `json:"quantity,omitempty"`
	PostedDate *time.Time `json:"posted_date,omitempty"`
	ColorId    *int32     `json:"color_id,omitempty"`
	Size       []string   `json:"size,omitempty"`
	Images     []string   `json:"images,omitempty"`
}

Variant struct for Variant

func NewVariant

func NewVariant() *Variant

NewVariant instantiates a new Variant 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 NewVariantWithDefaults

func NewVariantWithDefaults() *Variant

NewVariantWithDefaults instantiates a new Variant 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 (*Variant) GetColorId

func (o *Variant) GetColorId() int32

GetColorId returns the ColorId field value if set, zero value otherwise.

func (*Variant) GetColorIdOk

func (o *Variant) GetColorIdOk() (*int32, bool)

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

func (*Variant) GetImages

func (o *Variant) GetImages() []string

GetImages returns the Images field value if set, zero value otherwise.

func (*Variant) GetImagesOk

func (o *Variant) GetImagesOk() ([]string, bool)

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

func (*Variant) GetName

func (o *Variant) GetName() string

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

func (*Variant) GetNameOk

func (o *Variant) 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 (*Variant) GetPostedDate

func (o *Variant) GetPostedDate() time.Time

GetPostedDate returns the PostedDate field value if set, zero value otherwise.

func (*Variant) GetPostedDateOk

func (o *Variant) GetPostedDateOk() (*time.Time, bool)

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

func (*Variant) GetPrice

func (o *Variant) GetPrice() float32

GetPrice returns the Price field value if set, zero value otherwise.

func (*Variant) GetPriceOk

func (o *Variant) GetPriceOk() (*float32, bool)

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

func (*Variant) GetQuantity

func (o *Variant) GetQuantity() int32

GetQuantity returns the Quantity field value if set, zero value otherwise.

func (*Variant) GetQuantityOk

func (o *Variant) GetQuantityOk() (*int32, bool)

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

func (*Variant) GetSize

func (o *Variant) GetSize() []string

GetSize returns the Size field value if set, zero value otherwise.

func (*Variant) GetSizeOk

func (o *Variant) GetSizeOk() ([]string, bool)

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

func (*Variant) HasColorId

func (o *Variant) HasColorId() bool

HasColorId returns a boolean if a field has been set.

func (*Variant) HasImages

func (o *Variant) HasImages() bool

HasImages returns a boolean if a field has been set.

func (*Variant) HasName

func (o *Variant) HasName() bool

HasName returns a boolean if a field has been set.

func (*Variant) HasPostedDate

func (o *Variant) HasPostedDate() bool

HasPostedDate returns a boolean if a field has been set.

func (*Variant) HasPrice

func (o *Variant) HasPrice() bool

HasPrice returns a boolean if a field has been set.

func (*Variant) HasQuantity

func (o *Variant) HasQuantity() bool

HasQuantity returns a boolean if a field has been set.

func (*Variant) HasSize

func (o *Variant) HasSize() bool

HasSize returns a boolean if a field has been set.

func (Variant) MarshalJSON

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

func (*Variant) SetColorId

func (o *Variant) SetColorId(v int32)

SetColorId gets a reference to the given int32 and assigns it to the ColorId field.

func (*Variant) SetImages

func (o *Variant) SetImages(v []string)

SetImages gets a reference to the given []string and assigns it to the Images field.

func (*Variant) SetName

func (o *Variant) SetName(v string)

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

func (*Variant) SetPostedDate

func (o *Variant) SetPostedDate(v time.Time)

SetPostedDate gets a reference to the given time.Time and assigns it to the PostedDate field.

func (*Variant) SetPrice

func (o *Variant) SetPrice(v float32)

SetPrice gets a reference to the given float32 and assigns it to the Price field.

func (*Variant) SetQuantity

func (o *Variant) SetQuantity(v int32)

SetQuantity gets a reference to the given int32 and assigns it to the Quantity field.

func (*Variant) SetSize

func (o *Variant) SetSize(v []string)

SetSize gets a reference to the given []string and assigns it to the Size field.

func (Variant) ToMap

func (o Variant) ToMap() (map[string]interface{}, error)

type VariantProduct

type VariantProduct struct {
	Name         *string   `json:"name,omitempty"`
	CategoryId   *int32    `json:"category_id,omitempty"`
	Description  *string   `json:"description,omitempty"`
	FeatureImage *string   `json:"feature_image,omitempty"`
	Tag          *string   `json:"tag,omitempty"`
	Variants     []Variant `json:"variants,omitempty"`
}

VariantProduct struct for VariantProduct

func NewVariantProduct

func NewVariantProduct() *VariantProduct

NewVariantProduct instantiates a new VariantProduct 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 NewVariantProductWithDefaults

func NewVariantProductWithDefaults() *VariantProduct

NewVariantProductWithDefaults instantiates a new VariantProduct 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 (*VariantProduct) GetCategoryId

func (o *VariantProduct) GetCategoryId() int32

GetCategoryId returns the CategoryId field value if set, zero value otherwise.

func (*VariantProduct) GetCategoryIdOk

func (o *VariantProduct) GetCategoryIdOk() (*int32, bool)

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

func (*VariantProduct) GetDescription

func (o *VariantProduct) GetDescription() string

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

func (*VariantProduct) GetDescriptionOk

func (o *VariantProduct) 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 (*VariantProduct) GetFeatureImage

func (o *VariantProduct) GetFeatureImage() string

GetFeatureImage returns the FeatureImage field value if set, zero value otherwise.

func (*VariantProduct) GetFeatureImageOk

func (o *VariantProduct) GetFeatureImageOk() (*string, bool)

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

func (*VariantProduct) GetName

func (o *VariantProduct) GetName() string

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

func (*VariantProduct) GetNameOk

func (o *VariantProduct) 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 (*VariantProduct) GetTag

func (o *VariantProduct) GetTag() string

GetTag returns the Tag field value if set, zero value otherwise.

func (*VariantProduct) GetTagOk

func (o *VariantProduct) GetTagOk() (*string, bool)

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

func (*VariantProduct) GetVariants

func (o *VariantProduct) GetVariants() []Variant

GetVariants returns the Variants field value if set, zero value otherwise.

func (*VariantProduct) GetVariantsOk

func (o *VariantProduct) GetVariantsOk() ([]Variant, bool)

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

func (*VariantProduct) HasCategoryId

func (o *VariantProduct) HasCategoryId() bool

HasCategoryId returns a boolean if a field has been set.

func (*VariantProduct) HasDescription

func (o *VariantProduct) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*VariantProduct) HasFeatureImage

func (o *VariantProduct) HasFeatureImage() bool

HasFeatureImage returns a boolean if a field has been set.

func (*VariantProduct) HasName

func (o *VariantProduct) HasName() bool

HasName returns a boolean if a field has been set.

func (*VariantProduct) HasTag

func (o *VariantProduct) HasTag() bool

HasTag returns a boolean if a field has been set.

func (*VariantProduct) HasVariants

func (o *VariantProduct) HasVariants() bool

HasVariants returns a boolean if a field has been set.

func (VariantProduct) MarshalJSON

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

func (*VariantProduct) SetCategoryId

func (o *VariantProduct) SetCategoryId(v int32)

SetCategoryId gets a reference to the given int32 and assigns it to the CategoryId field.

func (*VariantProduct) SetDescription

func (o *VariantProduct) SetDescription(v string)

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

func (*VariantProduct) SetFeatureImage

func (o *VariantProduct) SetFeatureImage(v string)

SetFeatureImage gets a reference to the given string and assigns it to the FeatureImage field.

func (*VariantProduct) SetName

func (o *VariantProduct) SetName(v string)

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

func (*VariantProduct) SetTag

func (o *VariantProduct) SetTag(v string)

SetTag gets a reference to the given string and assigns it to the Tag field.

func (*VariantProduct) SetVariants

func (o *VariantProduct) SetVariants(v []Variant)

SetVariants gets a reference to the given []Variant and assigns it to the Variants field.

func (VariantProduct) ToMap

func (o VariantProduct) ToMap() (map[string]interface{}, error)

Jump to

Keyboard shortcuts

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