epinapi

package
v0.0.0-...-7d0a2b6 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: Apache-2.0 Imports: 22 Imported by: 2

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

Functions

func CacheExpires

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 integer 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 {
	BetApi *BetApiService

	ClientApi *ClientApiService

	MarketsApi *MarketsApiService
	// contains filtered or unexported fields
}

APIClient manages communication with the EpinApi 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 APIResonse object.

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

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

type BadRequestError

type BadRequestError struct {
	Title  *string `json:"title,omitempty"`
	Detail *string `json:"detail,omitempty"`
	Type   *string `json:"type,omitempty"`
	Status *int64  `json:"status,omitempty"`
}

BadRequestError struct for BadRequestError

func NewBadRequestError

func NewBadRequestError() *BadRequestError

NewBadRequestError instantiates a new BadRequestError 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 NewBadRequestErrorWithDefaults

func NewBadRequestErrorWithDefaults() *BadRequestError

NewBadRequestErrorWithDefaults instantiates a new BadRequestError 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 (*BadRequestError) GetDetail

func (o *BadRequestError) GetDetail() string

GetDetail returns the Detail field value if set, zero value otherwise.

func (*BadRequestError) GetDetailOk

func (o *BadRequestError) GetDetailOk() (*string, bool)

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

func (*BadRequestError) GetStatus

func (o *BadRequestError) GetStatus() int64

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

func (*BadRequestError) GetStatusOk

func (o *BadRequestError) GetStatusOk() (*int64, 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 (*BadRequestError) GetTitle

func (o *BadRequestError) GetTitle() string

GetTitle returns the Title field value if set, zero value otherwise.

func (*BadRequestError) GetTitleOk

func (o *BadRequestError) GetTitleOk() (*string, bool)

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

func (*BadRequestError) GetType

func (o *BadRequestError) GetType() string

GetType returns the Type field value if set, zero value otherwise.

func (*BadRequestError) GetTypeOk

func (o *BadRequestError) GetTypeOk() (*string, bool)

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

func (*BadRequestError) HasDetail

func (o *BadRequestError) HasDetail() bool

HasDetail returns a boolean if a field has been set.

func (*BadRequestError) HasStatus

func (o *BadRequestError) HasStatus() bool

HasStatus returns a boolean if a field has been set.

func (*BadRequestError) HasTitle

func (o *BadRequestError) HasTitle() bool

HasTitle returns a boolean if a field has been set.

func (*BadRequestError) HasType

func (o *BadRequestError) HasType() bool

HasType returns a boolean if a field has been set.

func (BadRequestError) MarshalJSON

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

func (*BadRequestError) SetDetail

func (o *BadRequestError) SetDetail(v string)

SetDetail gets a reference to the given string and assigns it to the Detail field.

func (*BadRequestError) SetStatus

func (o *BadRequestError) SetStatus(v int64)

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

func (*BadRequestError) SetTitle

func (o *BadRequestError) SetTitle(v string)

SetTitle gets a reference to the given string and assigns it to the Title field.

func (*BadRequestError) SetType

func (o *BadRequestError) SetType(v string)

SetType gets a reference to the given string and assigns it to the Type field.

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 BetApiService

type BetApiService service

BetApiService BetApi service

func (*BetApiService) GetLine

func (a *BetApiService) GetLine(ctx _context.Context) apiGetLineRequest

GetLine Method for GetLine

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

@return apiGetLineRequest

func (*BetApiService) PlaceBet

func (a *BetApiService) PlaceBet(ctx _context.Context) apiPlaceBetRequest

PlaceBet Method for PlaceBet

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

@return apiPlaceBetRequest

type ClassItem

type ClassItem struct {
	Name  *string  `json:"name,omitempty"`
	Price *float64 `json:"price,omitempty"`
}

ClassItem struct for ClassItem

func NewClassItem

func NewClassItem() *ClassItem

NewClassItem instantiates a new ClassItem 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 NewClassItemWithDefaults

func NewClassItemWithDefaults() *ClassItem

NewClassItemWithDefaults instantiates a new ClassItem 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 (*ClassItem) GetName

func (o *ClassItem) GetName() string

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

func (*ClassItem) GetNameOk

func (o *ClassItem) 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 (*ClassItem) GetPrice

func (o *ClassItem) GetPrice() float64

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

func (*ClassItem) GetPriceOk

func (o *ClassItem) GetPriceOk() (*float64, 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 (*ClassItem) HasName

func (o *ClassItem) HasName() bool

HasName returns a boolean if a field has been set.

func (*ClassItem) HasPrice

func (o *ClassItem) HasPrice() bool

HasPrice returns a boolean if a field has been set.

func (ClassItem) MarshalJSON

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

func (*ClassItem) SetName

func (o *ClassItem) SetName(v string)

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

func (*ClassItem) SetPrice

func (o *ClassItem) SetPrice(v float64)

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

type ClientApiService

type ClientApiService service

ClientApiService ClientApi service

func (*ClientApiService) CheckLogin

func (a *ClientApiService) CheckLogin(ctx _context.Context, session string) apiCheckLoginRequest

CheckLogin Method for CheckLogin

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

@return apiCheckLoginRequest

func (*ClientApiService) GetBalance

func (a *ClientApiService) GetBalance(ctx _context.Context) apiGetBalanceRequest

GetBalance Method for GetBalance

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

@return apiGetBalanceRequest

func (*ClientApiService) Login

func (a *ClientApiService) Login(ctx _context.Context) apiLoginRequest

Login Method for Login

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

@return apiLoginRequest

type ClientBalanceResponse

type ClientBalanceResponse struct {
	// Amount available for betting.
	Amount float32 `json:"amount"`
	// Client’s currency code.
	Currency string `json:"currency"`
}

ClientBalanceResponse Client Balance Details

func NewClientBalanceResponse

func NewClientBalanceResponse(amount float32, currency string) *ClientBalanceResponse

NewClientBalanceResponse instantiates a new ClientBalanceResponse 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 NewClientBalanceResponseWithDefaults

func NewClientBalanceResponseWithDefaults() *ClientBalanceResponse

NewClientBalanceResponseWithDefaults instantiates a new ClientBalanceResponse 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 (*ClientBalanceResponse) GetAmount

func (o *ClientBalanceResponse) GetAmount() float32

GetAmount returns the Amount field value

func (*ClientBalanceResponse) GetAmountOk

func (o *ClientBalanceResponse) GetAmountOk() (*float32, bool)

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

func (*ClientBalanceResponse) GetCurrency

func (o *ClientBalanceResponse) GetCurrency() string

GetCurrency returns the Currency field value

func (*ClientBalanceResponse) GetCurrencyOk

func (o *ClientBalanceResponse) GetCurrencyOk() (*string, bool)

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

func (ClientBalanceResponse) MarshalJSON

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

func (*ClientBalanceResponse) SetAmount

func (o *ClientBalanceResponse) SetAmount(v float32)

SetAmount sets field value

func (*ClientBalanceResponse) SetCurrency

func (o *ClientBalanceResponse) SetCurrency(v string)

SetCurrency sets field value

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

type GetLineResponse struct {
	Classes    *[]ClassItem     `json:"classes,omitempty"`
	Limits     *[]LimitItem     `json:"limits,omitempty"`
	Selections *[]SelectionItem `json:"selections,omitempty"`
}

GetLineResponse struct for GetLineResponse

func NewGetLineResponse

func NewGetLineResponse() *GetLineResponse

NewGetLineResponse instantiates a new GetLineResponse 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 NewGetLineResponseWithDefaults

func NewGetLineResponseWithDefaults() *GetLineResponse

NewGetLineResponseWithDefaults instantiates a new GetLineResponse 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 (*GetLineResponse) GetClasses

func (o *GetLineResponse) GetClasses() []ClassItem

GetClasses returns the Classes field value if set, zero value otherwise.

func (*GetLineResponse) GetClassesOk

func (o *GetLineResponse) GetClassesOk() (*[]ClassItem, bool)

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

func (*GetLineResponse) GetLimits

func (o *GetLineResponse) GetLimits() []LimitItem

GetLimits returns the Limits field value if set, zero value otherwise.

func (*GetLineResponse) GetLimitsOk

func (o *GetLineResponse) GetLimitsOk() (*[]LimitItem, bool)

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

func (*GetLineResponse) GetSelections

func (o *GetLineResponse) GetSelections() []SelectionItem

GetSelections returns the Selections field value if set, zero value otherwise.

func (*GetLineResponse) GetSelectionsOk

func (o *GetLineResponse) GetSelectionsOk() (*[]SelectionItem, bool)

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

func (*GetLineResponse) HasClasses

func (o *GetLineResponse) HasClasses() bool

HasClasses returns a boolean if a field has been set.

func (*GetLineResponse) HasLimits

func (o *GetLineResponse) HasLimits() bool

HasLimits returns a boolean if a field has been set.

func (*GetLineResponse) HasSelections

func (o *GetLineResponse) HasSelections() bool

HasSelections returns a boolean if a field has been set.

func (GetLineResponse) MarshalJSON

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

func (*GetLineResponse) SetClasses

func (o *GetLineResponse) SetClasses(v []ClassItem)

SetClasses gets a reference to the given []ClassItem and assigns it to the Classes field.

func (*GetLineResponse) SetLimits

func (o *GetLineResponse) SetLimits(v []LimitItem)

SetLimits gets a reference to the given []LimitItem and assigns it to the Limits field.

func (*GetLineResponse) SetSelections

func (o *GetLineResponse) SetSelections(v []SelectionItem)

SetSelections gets a reference to the given []SelectionItem and assigns it to the Selections field.

type LimitItem

type LimitItem struct {
	Amount float64 `json:"amount"`
	Type   string  `json:"type"`
}

LimitItem struct for LimitItem

func NewLimitItem

func NewLimitItem(amount float64, type_ string) *LimitItem

NewLimitItem instantiates a new LimitItem 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 NewLimitItemWithDefaults

func NewLimitItemWithDefaults() *LimitItem

NewLimitItemWithDefaults instantiates a new LimitItem 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 (*LimitItem) GetAmount

func (o *LimitItem) GetAmount() float64

GetAmount returns the Amount field value

func (*LimitItem) GetAmountOk

func (o *LimitItem) GetAmountOk() (*float64, bool)

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

func (*LimitItem) GetType

func (o *LimitItem) GetType() string

GetType returns the Type field value

func (*LimitItem) GetTypeOk

func (o *LimitItem) GetTypeOk() (*string, bool)

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

func (LimitItem) MarshalJSON

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

func (*LimitItem) SetAmount

func (o *LimitItem) SetAmount(v float64)

SetAmount sets field value

func (*LimitItem) SetType

func (o *LimitItem) SetType(v string)

SetType sets field value

type LoginRequest

type LoginRequest struct {
	Password     string `json:"password"`
	Username     string `json:"username"`
	CaptchaToken string `json:"captchaToken"`
	TrustCode    string `json:"trustCode"`
}

LoginRequest struct for LoginRequest

func NewLoginRequest

func NewLoginRequest(password string, username string, captchaToken string, trustCode string) *LoginRequest

NewLoginRequest instantiates a new LoginRequest 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 NewLoginRequestWithDefaults

func NewLoginRequestWithDefaults() *LoginRequest

NewLoginRequestWithDefaults instantiates a new LoginRequest 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 (*LoginRequest) GetCaptchaToken

func (o *LoginRequest) GetCaptchaToken() string

GetCaptchaToken returns the CaptchaToken field value

func (*LoginRequest) GetCaptchaTokenOk

func (o *LoginRequest) GetCaptchaTokenOk() (*string, bool)

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

func (*LoginRequest) GetPassword

func (o *LoginRequest) GetPassword() string

GetPassword returns the Password field value

func (*LoginRequest) GetPasswordOk

func (o *LoginRequest) GetPasswordOk() (*string, bool)

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

func (*LoginRequest) GetTrustCode

func (o *LoginRequest) GetTrustCode() string

GetTrustCode returns the TrustCode field value

func (*LoginRequest) GetTrustCodeOk

func (o *LoginRequest) GetTrustCodeOk() (*string, bool)

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

func (*LoginRequest) GetUsername

func (o *LoginRequest) GetUsername() string

GetUsername returns the Username field value

func (*LoginRequest) GetUsernameOk

func (o *LoginRequest) GetUsernameOk() (*string, bool)

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

func (LoginRequest) MarshalJSON

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

func (*LoginRequest) SetCaptchaToken

func (o *LoginRequest) SetCaptchaToken(v string)

SetCaptchaToken sets field value

func (*LoginRequest) SetPassword

func (o *LoginRequest) SetPassword(v string)

SetPassword sets field value

func (*LoginRequest) SetTrustCode

func (o *LoginRequest) SetTrustCode(v string)

SetTrustCode sets field value

func (*LoginRequest) SetUsername

func (o *LoginRequest) SetUsername(v string)

SetUsername sets field value

type LoginResponse

type LoginResponse struct {
	CreatedAt     *time.Time `json:"createdAt,omitempty"`
	ExpiresAt     *time.Time `json:"expiresAt,omitempty"`
	IsExpired     *bool      `json:"isExpired,omitempty"`
	IsSuperseded  *bool      `json:"isSuperseded,omitempty"`
	IsTimedOut    *bool      `json:"isTimedOut,omitempty"`
	LastUsedAt    *time.Time `json:"lastUsedAt,omitempty"`
	License       *string    `json:"license,omitempty"`
	PreferredView *string    `json:"preferredView,omitempty"`
	Token         *string    `json:"token,omitempty"`
	TransactionId *string    `json:"transactionId,omitempty"`
	TrustCode     *string    `json:"trustCode,omitempty"`
	Username      *string    `json:"username,omitempty"`
}

LoginResponse struct for LoginResponse

func NewLoginResponse

func NewLoginResponse() *LoginResponse

NewLoginResponse instantiates a new LoginResponse 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 NewLoginResponseWithDefaults

func NewLoginResponseWithDefaults() *LoginResponse

NewLoginResponseWithDefaults instantiates a new LoginResponse 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 (*LoginResponse) GetCreatedAt

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

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

func (*LoginResponse) GetCreatedAtOk

func (o *LoginResponse) 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 (*LoginResponse) GetExpiresAt

func (o *LoginResponse) GetExpiresAt() time.Time

GetExpiresAt returns the ExpiresAt field value if set, zero value otherwise.

func (*LoginResponse) GetExpiresAtOk

func (o *LoginResponse) GetExpiresAtOk() (*time.Time, bool)

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

func (*LoginResponse) GetIsExpired

func (o *LoginResponse) GetIsExpired() bool

GetIsExpired returns the IsExpired field value if set, zero value otherwise.

func (*LoginResponse) GetIsExpiredOk

func (o *LoginResponse) GetIsExpiredOk() (*bool, bool)

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

func (*LoginResponse) GetIsSuperseded

func (o *LoginResponse) GetIsSuperseded() bool

GetIsSuperseded returns the IsSuperseded field value if set, zero value otherwise.

func (*LoginResponse) GetIsSupersededOk

func (o *LoginResponse) GetIsSupersededOk() (*bool, bool)

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

func (*LoginResponse) GetIsTimedOut

func (o *LoginResponse) GetIsTimedOut() bool

GetIsTimedOut returns the IsTimedOut field value if set, zero value otherwise.

func (*LoginResponse) GetIsTimedOutOk

func (o *LoginResponse) GetIsTimedOutOk() (*bool, bool)

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

func (*LoginResponse) GetLastUsedAt

func (o *LoginResponse) GetLastUsedAt() time.Time

GetLastUsedAt returns the LastUsedAt field value if set, zero value otherwise.

func (*LoginResponse) GetLastUsedAtOk

func (o *LoginResponse) GetLastUsedAtOk() (*time.Time, bool)

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

func (*LoginResponse) GetLicense

func (o *LoginResponse) GetLicense() string

GetLicense returns the License field value if set, zero value otherwise.

func (*LoginResponse) GetLicenseOk

func (o *LoginResponse) GetLicenseOk() (*string, bool)

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

func (*LoginResponse) GetPreferredView

func (o *LoginResponse) GetPreferredView() string

GetPreferredView returns the PreferredView field value if set, zero value otherwise.

func (*LoginResponse) GetPreferredViewOk

func (o *LoginResponse) GetPreferredViewOk() (*string, bool)

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

func (*LoginResponse) GetToken

func (o *LoginResponse) GetToken() string

GetToken returns the Token field value if set, zero value otherwise.

func (*LoginResponse) GetTokenOk

func (o *LoginResponse) GetTokenOk() (*string, bool)

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

func (*LoginResponse) GetTransactionId

func (o *LoginResponse) GetTransactionId() string

GetTransactionId returns the TransactionId field value if set, zero value otherwise.

func (*LoginResponse) GetTransactionIdOk

func (o *LoginResponse) GetTransactionIdOk() (*string, bool)

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

func (*LoginResponse) GetTrustCode

func (o *LoginResponse) GetTrustCode() string

GetTrustCode returns the TrustCode field value if set, zero value otherwise.

func (*LoginResponse) GetTrustCodeOk

func (o *LoginResponse) GetTrustCodeOk() (*string, bool)

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

func (*LoginResponse) GetUsername

func (o *LoginResponse) GetUsername() string

GetUsername returns the Username field value if set, zero value otherwise.

func (*LoginResponse) GetUsernameOk

func (o *LoginResponse) GetUsernameOk() (*string, bool)

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

func (*LoginResponse) HasCreatedAt

func (o *LoginResponse) HasCreatedAt() bool

HasCreatedAt returns a boolean if a field has been set.

func (*LoginResponse) HasExpiresAt

func (o *LoginResponse) HasExpiresAt() bool

HasExpiresAt returns a boolean if a field has been set.

func (*LoginResponse) HasIsExpired

func (o *LoginResponse) HasIsExpired() bool

HasIsExpired returns a boolean if a field has been set.

func (*LoginResponse) HasIsSuperseded

func (o *LoginResponse) HasIsSuperseded() bool

HasIsSuperseded returns a boolean if a field has been set.

func (*LoginResponse) HasIsTimedOut

func (o *LoginResponse) HasIsTimedOut() bool

HasIsTimedOut returns a boolean if a field has been set.

func (*LoginResponse) HasLastUsedAt

func (o *LoginResponse) HasLastUsedAt() bool

HasLastUsedAt returns a boolean if a field has been set.

func (*LoginResponse) HasLicense

func (o *LoginResponse) HasLicense() bool

HasLicense returns a boolean if a field has been set.

func (*LoginResponse) HasPreferredView

func (o *LoginResponse) HasPreferredView() bool

HasPreferredView returns a boolean if a field has been set.

func (*LoginResponse) HasToken

func (o *LoginResponse) HasToken() bool

HasToken returns a boolean if a field has been set.

func (*LoginResponse) HasTransactionId

func (o *LoginResponse) HasTransactionId() bool

HasTransactionId returns a boolean if a field has been set.

func (*LoginResponse) HasTrustCode

func (o *LoginResponse) HasTrustCode() bool

HasTrustCode returns a boolean if a field has been set.

func (*LoginResponse) HasUsername

func (o *LoginResponse) HasUsername() bool

HasUsername returns a boolean if a field has been set.

func (LoginResponse) MarshalJSON

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

func (*LoginResponse) SetCreatedAt

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

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

func (*LoginResponse) SetExpiresAt

func (o *LoginResponse) SetExpiresAt(v time.Time)

SetExpiresAt gets a reference to the given time.Time and assigns it to the ExpiresAt field.

func (*LoginResponse) SetIsExpired

func (o *LoginResponse) SetIsExpired(v bool)

SetIsExpired gets a reference to the given bool and assigns it to the IsExpired field.

func (*LoginResponse) SetIsSuperseded

func (o *LoginResponse) SetIsSuperseded(v bool)

SetIsSuperseded gets a reference to the given bool and assigns it to the IsSuperseded field.

func (*LoginResponse) SetIsTimedOut

func (o *LoginResponse) SetIsTimedOut(v bool)

SetIsTimedOut gets a reference to the given bool and assigns it to the IsTimedOut field.

func (*LoginResponse) SetLastUsedAt

func (o *LoginResponse) SetLastUsedAt(v time.Time)

SetLastUsedAt gets a reference to the given time.Time and assigns it to the LastUsedAt field.

func (*LoginResponse) SetLicense

func (o *LoginResponse) SetLicense(v string)

SetLicense gets a reference to the given string and assigns it to the License field.

func (*LoginResponse) SetPreferredView

func (o *LoginResponse) SetPreferredView(v string)

SetPreferredView gets a reference to the given string and assigns it to the PreferredView field.

func (*LoginResponse) SetToken

func (o *LoginResponse) SetToken(v string)

SetToken gets a reference to the given string and assigns it to the Token field.

func (*LoginResponse) SetTransactionId

func (o *LoginResponse) SetTransactionId(v string)

SetTransactionId gets a reference to the given string and assigns it to the TransactionId field.

func (*LoginResponse) SetTrustCode

func (o *LoginResponse) SetTrustCode(v string)

SetTrustCode gets a reference to the given string and assigns it to the TrustCode field.

func (*LoginResponse) SetUsername

func (o *LoginResponse) SetUsername(v string)

SetUsername gets a reference to the given string and assigns it to the Username field.

type MarketItem

type MarketItem struct {
	CutoffAt    *time.Time  `json:"cutoffAt,omitempty"`
	IsAlternate bool        `json:"isAlternate"`
	Key         string      `json:"key"`
	Limits      []LimitItem `json:"limits"`
	MatchupId   int64       `json:"matchupId"`
	Period      *int64      `json:"period,omitempty"`
	Prices      []PriceItem `json:"prices"`
	Status      *string     `json:"status,omitempty"`
	Type        *string     `json:"type,omitempty"`
	Version     *int64      `json:"version,omitempty"`
}

MarketItem struct for MarketItem

func NewMarketItem

func NewMarketItem(isAlternate bool, key string, limits []LimitItem, matchupId int64, prices []PriceItem) *MarketItem

NewMarketItem instantiates a new MarketItem 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 NewMarketItemWithDefaults

func NewMarketItemWithDefaults() *MarketItem

NewMarketItemWithDefaults instantiates a new MarketItem 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 (*MarketItem) GetCutoffAt

func (o *MarketItem) GetCutoffAt() time.Time

GetCutoffAt returns the CutoffAt field value if set, zero value otherwise.

func (*MarketItem) GetCutoffAtOk

func (o *MarketItem) GetCutoffAtOk() (*time.Time, bool)

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

func (*MarketItem) GetIsAlternate

func (o *MarketItem) GetIsAlternate() bool

GetIsAlternate returns the IsAlternate field value

func (*MarketItem) GetIsAlternateOk

func (o *MarketItem) GetIsAlternateOk() (*bool, bool)

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

func (*MarketItem) GetKey

func (o *MarketItem) GetKey() string

GetKey returns the Key field value

func (*MarketItem) GetKeyOk

func (o *MarketItem) GetKeyOk() (*string, bool)

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

func (*MarketItem) GetLimits

func (o *MarketItem) GetLimits() []LimitItem

GetLimits returns the Limits field value

func (*MarketItem) GetLimitsOk

func (o *MarketItem) GetLimitsOk() (*[]LimitItem, bool)

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

func (*MarketItem) GetMatchupId

func (o *MarketItem) GetMatchupId() int64

GetMatchupId returns the MatchupId field value

func (*MarketItem) GetMatchupIdOk

func (o *MarketItem) GetMatchupIdOk() (*int64, bool)

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

func (*MarketItem) GetPeriod

func (o *MarketItem) GetPeriod() int64

GetPeriod returns the Period field value if set, zero value otherwise.

func (*MarketItem) GetPeriodOk

func (o *MarketItem) GetPeriodOk() (*int64, bool)

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

func (*MarketItem) GetPrices

func (o *MarketItem) GetPrices() []PriceItem

GetPrices returns the Prices field value

func (*MarketItem) GetPricesOk

func (o *MarketItem) GetPricesOk() (*[]PriceItem, bool)

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

func (*MarketItem) GetStatus

func (o *MarketItem) GetStatus() string

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

func (*MarketItem) GetStatusOk

func (o *MarketItem) GetStatusOk() (*string, 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 (*MarketItem) GetType

func (o *MarketItem) GetType() string

GetType returns the Type field value if set, zero value otherwise.

func (*MarketItem) GetTypeOk

func (o *MarketItem) GetTypeOk() (*string, bool)

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

func (*MarketItem) GetVersion

func (o *MarketItem) GetVersion() int64

GetVersion returns the Version field value if set, zero value otherwise.

func (*MarketItem) GetVersionOk

func (o *MarketItem) GetVersionOk() (*int64, bool)

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

func (*MarketItem) HasCutoffAt

func (o *MarketItem) HasCutoffAt() bool

HasCutoffAt returns a boolean if a field has been set.

func (*MarketItem) HasPeriod

func (o *MarketItem) HasPeriod() bool

HasPeriod returns a boolean if a field has been set.

func (*MarketItem) HasStatus

func (o *MarketItem) HasStatus() bool

HasStatus returns a boolean if a field has been set.

func (*MarketItem) HasType

func (o *MarketItem) HasType() bool

HasType returns a boolean if a field has been set.

func (*MarketItem) HasVersion

func (o *MarketItem) HasVersion() bool

HasVersion returns a boolean if a field has been set.

func (MarketItem) MarshalJSON

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

func (*MarketItem) SetCutoffAt

func (o *MarketItem) SetCutoffAt(v time.Time)

SetCutoffAt gets a reference to the given time.Time and assigns it to the CutoffAt field.

func (*MarketItem) SetIsAlternate

func (o *MarketItem) SetIsAlternate(v bool)

SetIsAlternate sets field value

func (*MarketItem) SetKey

func (o *MarketItem) SetKey(v string)

SetKey sets field value

func (*MarketItem) SetLimits

func (o *MarketItem) SetLimits(v []LimitItem)

SetLimits sets field value

func (*MarketItem) SetMatchupId

func (o *MarketItem) SetMatchupId(v int64)

SetMatchupId sets field value

func (*MarketItem) SetPeriod

func (o *MarketItem) SetPeriod(v int64)

SetPeriod gets a reference to the given int64 and assigns it to the Period field.

func (*MarketItem) SetPrices

func (o *MarketItem) SetPrices(v []PriceItem)

SetPrices sets field value

func (*MarketItem) SetStatus

func (o *MarketItem) SetStatus(v string)

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

func (*MarketItem) SetType

func (o *MarketItem) SetType(v string)

SetType gets a reference to the given string and assigns it to the Type field.

func (*MarketItem) SetVersion

func (o *MarketItem) SetVersion(v int64)

SetVersion gets a reference to the given int64 and assigns it to the Version field.

type MarketsApiService

type MarketsApiService service

MarketsApiService MarketsApi service

func (*MarketsApiService) GetMarket

func (a *MarketsApiService) GetMarket(ctx _context.Context, eventId int64, marketKey string) apiGetMarketRequest

GetMarket Method for GetMarket

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param eventId
  • @param marketKey

@return apiGetMarketRequest

func (*MarketsApiService) GetMarketsByEventId

func (a *MarketsApiService) GetMarketsByEventId(ctx _context.Context, id int64) apiGetMarketsByEventIdRequest

GetMarketsByEventId Method for GetMarketsByEventId

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id EventID

@return apiGetMarketsByEventIdRequest

type NullableBadRequestError

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

func NewNullableBadRequestError

func NewNullableBadRequestError(val *BadRequestError) *NullableBadRequestError

func (NullableBadRequestError) Get

func (NullableBadRequestError) IsSet

func (v NullableBadRequestError) IsSet() bool

func (NullableBadRequestError) MarshalJSON

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

func (*NullableBadRequestError) Set

func (*NullableBadRequestError) UnmarshalJSON

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

func (*NullableBadRequestError) Unset

func (v *NullableBadRequestError) 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 NullableClassItem

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

func NewNullableClassItem

func NewNullableClassItem(val *ClassItem) *NullableClassItem

func (NullableClassItem) Get

func (v NullableClassItem) Get() *ClassItem

func (NullableClassItem) IsSet

func (v NullableClassItem) IsSet() bool

func (NullableClassItem) MarshalJSON

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

func (*NullableClassItem) Set

func (v *NullableClassItem) Set(val *ClassItem)

func (*NullableClassItem) UnmarshalJSON

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

func (*NullableClassItem) Unset

func (v *NullableClassItem) Unset()

type NullableClientBalanceResponse

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

func (NullableClientBalanceResponse) Get

func (NullableClientBalanceResponse) IsSet

func (NullableClientBalanceResponse) MarshalJSON

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

func (*NullableClientBalanceResponse) Set

func (*NullableClientBalanceResponse) UnmarshalJSON

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

func (*NullableClientBalanceResponse) Unset

func (v *NullableClientBalanceResponse) 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 NullableGetLineResponse

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

func NewNullableGetLineResponse

func NewNullableGetLineResponse(val *GetLineResponse) *NullableGetLineResponse

func (NullableGetLineResponse) Get

func (NullableGetLineResponse) IsSet

func (v NullableGetLineResponse) IsSet() bool

func (NullableGetLineResponse) MarshalJSON

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

func (*NullableGetLineResponse) Set

func (*NullableGetLineResponse) UnmarshalJSON

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

func (*NullableGetLineResponse) Unset

func (v *NullableGetLineResponse) 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 NullableLimitItem

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

func NewNullableLimitItem

func NewNullableLimitItem(val *LimitItem) *NullableLimitItem

func (NullableLimitItem) Get

func (v NullableLimitItem) Get() *LimitItem

func (NullableLimitItem) IsSet

func (v NullableLimitItem) IsSet() bool

func (NullableLimitItem) MarshalJSON

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

func (*NullableLimitItem) Set

func (v *NullableLimitItem) Set(val *LimitItem)

func (*NullableLimitItem) UnmarshalJSON

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

func (*NullableLimitItem) Unset

func (v *NullableLimitItem) Unset()

type NullableLoginRequest

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

func NewNullableLoginRequest

func NewNullableLoginRequest(val *LoginRequest) *NullableLoginRequest

func (NullableLoginRequest) Get

func (NullableLoginRequest) IsSet

func (v NullableLoginRequest) IsSet() bool

func (NullableLoginRequest) MarshalJSON

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

func (*NullableLoginRequest) Set

func (v *NullableLoginRequest) Set(val *LoginRequest)

func (*NullableLoginRequest) UnmarshalJSON

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

func (*NullableLoginRequest) Unset

func (v *NullableLoginRequest) Unset()

type NullableLoginResponse

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

func NewNullableLoginResponse

func NewNullableLoginResponse(val *LoginResponse) *NullableLoginResponse

func (NullableLoginResponse) Get

func (NullableLoginResponse) IsSet

func (v NullableLoginResponse) IsSet() bool

func (NullableLoginResponse) MarshalJSON

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

func (*NullableLoginResponse) Set

func (v *NullableLoginResponse) Set(val *LoginResponse)

func (*NullableLoginResponse) UnmarshalJSON

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

func (*NullableLoginResponse) Unset

func (v *NullableLoginResponse) Unset()

type NullableMarketItem

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

func NewNullableMarketItem

func NewNullableMarketItem(val *MarketItem) *NullableMarketItem

func (NullableMarketItem) Get

func (v NullableMarketItem) Get() *MarketItem

func (NullableMarketItem) IsSet

func (v NullableMarketItem) IsSet() bool

func (NullableMarketItem) MarshalJSON

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

func (*NullableMarketItem) Set

func (v *NullableMarketItem) Set(val *MarketItem)

func (*NullableMarketItem) UnmarshalJSON

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

func (*NullableMarketItem) Unset

func (v *NullableMarketItem) Unset()

type NullablePitcherItem

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

func NewNullablePitcherItem

func NewNullablePitcherItem(val *PitcherItem) *NullablePitcherItem

func (NullablePitcherItem) Get

func (NullablePitcherItem) IsSet

func (v NullablePitcherItem) IsSet() bool

func (NullablePitcherItem) MarshalJSON

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

func (*NullablePitcherItem) Set

func (v *NullablePitcherItem) Set(val *PitcherItem)

func (*NullablePitcherItem) UnmarshalJSON

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

func (*NullablePitcherItem) Unset

func (v *NullablePitcherItem) Unset()

type NullablePlaceBetRequest

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

func NewNullablePlaceBetRequest

func NewNullablePlaceBetRequest(val *PlaceBetRequest) *NullablePlaceBetRequest

func (NullablePlaceBetRequest) Get

func (NullablePlaceBetRequest) IsSet

func (v NullablePlaceBetRequest) IsSet() bool

func (NullablePlaceBetRequest) MarshalJSON

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

func (*NullablePlaceBetRequest) Set

func (*NullablePlaceBetRequest) UnmarshalJSON

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

func (*NullablePlaceBetRequest) Unset

func (v *NullablePlaceBetRequest) Unset()

type NullablePlaceBetResponse

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

func NewNullablePlaceBetResponse

func NewNullablePlaceBetResponse(val *PlaceBetResponse) *NullablePlaceBetResponse

func (NullablePlaceBetResponse) Get

func (NullablePlaceBetResponse) IsSet

func (v NullablePlaceBetResponse) IsSet() bool

func (NullablePlaceBetResponse) MarshalJSON

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

func (*NullablePlaceBetResponse) Set

func (*NullablePlaceBetResponse) UnmarshalJSON

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

func (*NullablePlaceBetResponse) Unset

func (v *NullablePlaceBetResponse) Unset()

type NullablePriceItem

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

func NewNullablePriceItem

func NewNullablePriceItem(val *PriceItem) *NullablePriceItem

func (NullablePriceItem) Get

func (v NullablePriceItem) Get() *PriceItem

func (NullablePriceItem) IsSet

func (v NullablePriceItem) IsSet() bool

func (NullablePriceItem) MarshalJSON

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

func (*NullablePriceItem) Set

func (v *NullablePriceItem) Set(val *PriceItem)

func (*NullablePriceItem) UnmarshalJSON

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

func (*NullablePriceItem) Unset

func (v *NullablePriceItem) Unset()

type NullableSelectionItem

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

func NewNullableSelectionItem

func NewNullableSelectionItem(val *SelectionItem) *NullableSelectionItem

func (NullableSelectionItem) Get

func (NullableSelectionItem) IsSet

func (v NullableSelectionItem) IsSet() bool

func (NullableSelectionItem) MarshalJSON

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

func (*NullableSelectionItem) Set

func (v *NullableSelectionItem) Set(val *SelectionItem)

func (*NullableSelectionItem) UnmarshalJSON

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

func (*NullableSelectionItem) Unset

func (v *NullableSelectionItem) 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 PitcherItem

type PitcherItem struct {
	Alignment *string `json:"alignment,omitempty"`
	Name      *string `json:"name,omitempty"`
	Status    *string `json:"status,omitempty"`
}

PitcherItem struct for PitcherItem

func NewPitcherItem

func NewPitcherItem() *PitcherItem

NewPitcherItem instantiates a new PitcherItem 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 NewPitcherItemWithDefaults

func NewPitcherItemWithDefaults() *PitcherItem

NewPitcherItemWithDefaults instantiates a new PitcherItem 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 (*PitcherItem) GetAlignment

func (o *PitcherItem) GetAlignment() string

GetAlignment returns the Alignment field value if set, zero value otherwise.

func (*PitcherItem) GetAlignmentOk

func (o *PitcherItem) GetAlignmentOk() (*string, bool)

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

func (*PitcherItem) GetName

func (o *PitcherItem) GetName() string

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

func (*PitcherItem) GetNameOk

func (o *PitcherItem) 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 (*PitcherItem) GetStatus

func (o *PitcherItem) GetStatus() string

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

func (*PitcherItem) GetStatusOk

func (o *PitcherItem) GetStatusOk() (*string, 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 (*PitcherItem) HasAlignment

func (o *PitcherItem) HasAlignment() bool

HasAlignment returns a boolean if a field has been set.

func (*PitcherItem) HasName

func (o *PitcherItem) HasName() bool

HasName returns a boolean if a field has been set.

func (*PitcherItem) HasStatus

func (o *PitcherItem) HasStatus() bool

HasStatus returns a boolean if a field has been set.

func (PitcherItem) MarshalJSON

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

func (*PitcherItem) SetAlignment

func (o *PitcherItem) SetAlignment(v string)

SetAlignment gets a reference to the given string and assigns it to the Alignment field.

func (*PitcherItem) SetName

func (o *PitcherItem) SetName(v string)

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

func (*PitcherItem) SetStatus

func (o *PitcherItem) SetStatus(v string)

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

type PlaceBetRequest

type PlaceBetRequest struct {
	OddsFormat         string          `json:"oddsFormat"`
	AcceptBetterPrice  *bool           `json:"acceptBetterPrice,omitempty"`
	AcceptBetterPrices *bool           `json:"acceptBetterPrices,omitempty"`
	Class              *string         `json:"class,omitempty"`
	Stake              *float64        `json:"stake,omitempty"`
	Selections         []SelectionItem `json:"selections"`
}

PlaceBetRequest struct for PlaceBetRequest

func NewPlaceBetRequest

func NewPlaceBetRequest(oddsFormat string, selections []SelectionItem) *PlaceBetRequest

NewPlaceBetRequest instantiates a new PlaceBetRequest 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 NewPlaceBetRequestWithDefaults

func NewPlaceBetRequestWithDefaults() *PlaceBetRequest

NewPlaceBetRequestWithDefaults instantiates a new PlaceBetRequest 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 (*PlaceBetRequest) GetAcceptBetterPrice

func (o *PlaceBetRequest) GetAcceptBetterPrice() bool

GetAcceptBetterPrice returns the AcceptBetterPrice field value if set, zero value otherwise.

func (*PlaceBetRequest) GetAcceptBetterPriceOk

func (o *PlaceBetRequest) GetAcceptBetterPriceOk() (*bool, bool)

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

func (*PlaceBetRequest) GetAcceptBetterPrices

func (o *PlaceBetRequest) GetAcceptBetterPrices() bool

GetAcceptBetterPrices returns the AcceptBetterPrices field value if set, zero value otherwise.

func (*PlaceBetRequest) GetAcceptBetterPricesOk

func (o *PlaceBetRequest) GetAcceptBetterPricesOk() (*bool, bool)

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

func (*PlaceBetRequest) GetClass

func (o *PlaceBetRequest) GetClass() string

GetClass returns the Class field value if set, zero value otherwise.

func (*PlaceBetRequest) GetClassOk

func (o *PlaceBetRequest) GetClassOk() (*string, bool)

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

func (*PlaceBetRequest) GetOddsFormat

func (o *PlaceBetRequest) GetOddsFormat() string

GetOddsFormat returns the OddsFormat field value

func (*PlaceBetRequest) GetOddsFormatOk

func (o *PlaceBetRequest) GetOddsFormatOk() (*string, bool)

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

func (*PlaceBetRequest) GetSelections

func (o *PlaceBetRequest) GetSelections() []SelectionItem

GetSelections returns the Selections field value

func (*PlaceBetRequest) GetSelectionsOk

func (o *PlaceBetRequest) GetSelectionsOk() (*[]SelectionItem, bool)

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

func (*PlaceBetRequest) GetStake

func (o *PlaceBetRequest) GetStake() float64

GetStake returns the Stake field value if set, zero value otherwise.

func (*PlaceBetRequest) GetStakeOk

func (o *PlaceBetRequest) GetStakeOk() (*float64, bool)

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

func (*PlaceBetRequest) HasAcceptBetterPrice

func (o *PlaceBetRequest) HasAcceptBetterPrice() bool

HasAcceptBetterPrice returns a boolean if a field has been set.

func (*PlaceBetRequest) HasAcceptBetterPrices

func (o *PlaceBetRequest) HasAcceptBetterPrices() bool

HasAcceptBetterPrices returns a boolean if a field has been set.

func (*PlaceBetRequest) HasClass

func (o *PlaceBetRequest) HasClass() bool

HasClass returns a boolean if a field has been set.

func (*PlaceBetRequest) HasStake

func (o *PlaceBetRequest) HasStake() bool

HasStake returns a boolean if a field has been set.

func (PlaceBetRequest) MarshalJSON

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

func (*PlaceBetRequest) SetAcceptBetterPrice

func (o *PlaceBetRequest) SetAcceptBetterPrice(v bool)

SetAcceptBetterPrice gets a reference to the given bool and assigns it to the AcceptBetterPrice field.

func (*PlaceBetRequest) SetAcceptBetterPrices

func (o *PlaceBetRequest) SetAcceptBetterPrices(v bool)

SetAcceptBetterPrices gets a reference to the given bool and assigns it to the AcceptBetterPrices field.

func (*PlaceBetRequest) SetClass

func (o *PlaceBetRequest) SetClass(v string)

SetClass gets a reference to the given string and assigns it to the Class field.

func (*PlaceBetRequest) SetOddsFormat

func (o *PlaceBetRequest) SetOddsFormat(v string)

SetOddsFormat sets field value

func (*PlaceBetRequest) SetSelections

func (o *PlaceBetRequest) SetSelections(v []SelectionItem)

SetSelections sets field value

func (*PlaceBetRequest) SetStake

func (o *PlaceBetRequest) SetStake(v float64)

SetStake gets a reference to the given float64 and assigns it to the Stake field.

type PlaceBetResponse

type PlaceBetResponse struct {
	CreatedAt  *time.Time       `json:"createdAt,omitempty"`
	Id         *int64           `json:"id,omitempty"`
	OddsFormat *string          `json:"oddsFormat,omitempty"`
	Price      *float64         `json:"price,omitempty"`
	RequestId  *string          `json:"requestId,omitempty"`
	Stake      *float64         `json:"stake,omitempty"`
	Type       *string          `json:"type,omitempty"`
	Selections *[]SelectionItem `json:"selections,omitempty"`
}

PlaceBetResponse struct for PlaceBetResponse

func NewPlaceBetResponse

func NewPlaceBetResponse() *PlaceBetResponse

NewPlaceBetResponse instantiates a new PlaceBetResponse 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 NewPlaceBetResponseWithDefaults

func NewPlaceBetResponseWithDefaults() *PlaceBetResponse

NewPlaceBetResponseWithDefaults instantiates a new PlaceBetResponse 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 (*PlaceBetResponse) GetCreatedAt

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

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

func (*PlaceBetResponse) GetCreatedAtOk

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

func (o *PlaceBetResponse) GetId() int64

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

func (*PlaceBetResponse) GetIdOk

func (o *PlaceBetResponse) GetIdOk() (*int64, 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 (*PlaceBetResponse) GetOddsFormat

func (o *PlaceBetResponse) GetOddsFormat() string

GetOddsFormat returns the OddsFormat field value if set, zero value otherwise.

func (*PlaceBetResponse) GetOddsFormatOk

func (o *PlaceBetResponse) GetOddsFormatOk() (*string, bool)

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

func (*PlaceBetResponse) GetPrice

func (o *PlaceBetResponse) GetPrice() float64

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

func (*PlaceBetResponse) GetPriceOk

func (o *PlaceBetResponse) GetPriceOk() (*float64, 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 (*PlaceBetResponse) GetRequestId

func (o *PlaceBetResponse) GetRequestId() string

GetRequestId returns the RequestId field value if set, zero value otherwise.

func (*PlaceBetResponse) GetRequestIdOk

func (o *PlaceBetResponse) GetRequestIdOk() (*string, bool)

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

func (*PlaceBetResponse) GetSelections

func (o *PlaceBetResponse) GetSelections() []SelectionItem

GetSelections returns the Selections field value if set, zero value otherwise.

func (*PlaceBetResponse) GetSelectionsOk

func (o *PlaceBetResponse) GetSelectionsOk() (*[]SelectionItem, bool)

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

func (*PlaceBetResponse) GetStake

func (o *PlaceBetResponse) GetStake() float64

GetStake returns the Stake field value if set, zero value otherwise.

func (*PlaceBetResponse) GetStakeOk

func (o *PlaceBetResponse) GetStakeOk() (*float64, bool)

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

func (*PlaceBetResponse) GetType

func (o *PlaceBetResponse) GetType() string

GetType returns the Type field value if set, zero value otherwise.

func (*PlaceBetResponse) GetTypeOk

func (o *PlaceBetResponse) GetTypeOk() (*string, bool)

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

func (*PlaceBetResponse) HasCreatedAt

func (o *PlaceBetResponse) HasCreatedAt() bool

HasCreatedAt returns a boolean if a field has been set.

func (*PlaceBetResponse) HasId

func (o *PlaceBetResponse) HasId() bool

HasId returns a boolean if a field has been set.

func (*PlaceBetResponse) HasOddsFormat

func (o *PlaceBetResponse) HasOddsFormat() bool

HasOddsFormat returns a boolean if a field has been set.

func (*PlaceBetResponse) HasPrice

func (o *PlaceBetResponse) HasPrice() bool

HasPrice returns a boolean if a field has been set.

func (*PlaceBetResponse) HasRequestId

func (o *PlaceBetResponse) HasRequestId() bool

HasRequestId returns a boolean if a field has been set.

func (*PlaceBetResponse) HasSelections

func (o *PlaceBetResponse) HasSelections() bool

HasSelections returns a boolean if a field has been set.

func (*PlaceBetResponse) HasStake

func (o *PlaceBetResponse) HasStake() bool

HasStake returns a boolean if a field has been set.

func (*PlaceBetResponse) HasType

func (o *PlaceBetResponse) HasType() bool

HasType returns a boolean if a field has been set.

func (PlaceBetResponse) MarshalJSON

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

func (*PlaceBetResponse) SetCreatedAt

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

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

func (*PlaceBetResponse) SetId

func (o *PlaceBetResponse) SetId(v int64)

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

func (*PlaceBetResponse) SetOddsFormat

func (o *PlaceBetResponse) SetOddsFormat(v string)

SetOddsFormat gets a reference to the given string and assigns it to the OddsFormat field.

func (*PlaceBetResponse) SetPrice

func (o *PlaceBetResponse) SetPrice(v float64)

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

func (*PlaceBetResponse) SetRequestId

func (o *PlaceBetResponse) SetRequestId(v string)

SetRequestId gets a reference to the given string and assigns it to the RequestId field.

func (*PlaceBetResponse) SetSelections

func (o *PlaceBetResponse) SetSelections(v []SelectionItem)

SetSelections gets a reference to the given []SelectionItem and assigns it to the Selections field.

func (*PlaceBetResponse) SetStake

func (o *PlaceBetResponse) SetStake(v float64)

SetStake gets a reference to the given float64 and assigns it to the Stake field.

func (*PlaceBetResponse) SetType

func (o *PlaceBetResponse) SetType(v string)

SetType gets a reference to the given string and assigns it to the Type field.

type PriceItem

type PriceItem struct {
	Designation string   `json:"designation"`
	Points      *float32 `json:"points,omitempty"`
	Price       int64    `json:"price"`
}

PriceItem struct for PriceItem

func NewPriceItem

func NewPriceItem(designation string, price int64) *PriceItem

NewPriceItem instantiates a new PriceItem 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 NewPriceItemWithDefaults

func NewPriceItemWithDefaults() *PriceItem

NewPriceItemWithDefaults instantiates a new PriceItem 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 (*PriceItem) GetDesignation

func (o *PriceItem) GetDesignation() string

GetDesignation returns the Designation field value

func (*PriceItem) GetDesignationOk

func (o *PriceItem) GetDesignationOk() (*string, bool)

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

func (*PriceItem) GetPoints

func (o *PriceItem) GetPoints() float32

GetPoints returns the Points field value if set, zero value otherwise.

func (*PriceItem) GetPointsOk

func (o *PriceItem) GetPointsOk() (*float32, bool)

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

func (*PriceItem) GetPrice

func (o *PriceItem) GetPrice() int64

GetPrice returns the Price field value

func (*PriceItem) GetPriceOk

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

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

func (*PriceItem) HasPoints

func (o *PriceItem) HasPoints() bool

HasPoints returns a boolean if a field has been set.

func (PriceItem) MarshalJSON

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

func (*PriceItem) SetDesignation

func (o *PriceItem) SetDesignation(v string)

SetDesignation sets field value

func (*PriceItem) SetPoints

func (o *PriceItem) SetPoints(v float32)

SetPoints gets a reference to the given float32 and assigns it to the Points field.

func (*PriceItem) SetPrice

func (o *PriceItem) SetPrice(v int64)

SetPrice sets field value

type SelectionItem

type SelectionItem struct {
	MatchupId     int64          `json:"matchupId"`
	MarketKey     string         `json:"marketKey"`
	Designation   string         `json:"designation"`
	Pitchers      *[]PitcherItem `json:"pitchers,omitempty"`
	Price         float64        `json:"price"`
	Points        *float64       `json:"points,omitempty"`
	ParticipantId *int64         `json:"participantId,omitempty"`
}

SelectionItem struct for SelectionItem

func NewSelectionItem

func NewSelectionItem(matchupId int64, marketKey string, designation string, price float64) *SelectionItem

NewSelectionItem instantiates a new SelectionItem 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 NewSelectionItemWithDefaults

func NewSelectionItemWithDefaults() *SelectionItem

NewSelectionItemWithDefaults instantiates a new SelectionItem 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 (*SelectionItem) GetDesignation

func (o *SelectionItem) GetDesignation() string

GetDesignation returns the Designation field value

func (*SelectionItem) GetDesignationOk

func (o *SelectionItem) GetDesignationOk() (*string, bool)

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

func (*SelectionItem) GetMarketKey

func (o *SelectionItem) GetMarketKey() string

GetMarketKey returns the MarketKey field value

func (*SelectionItem) GetMarketKeyOk

func (o *SelectionItem) GetMarketKeyOk() (*string, bool)

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

func (*SelectionItem) GetMatchupId

func (o *SelectionItem) GetMatchupId() int64

GetMatchupId returns the MatchupId field value

func (*SelectionItem) GetMatchupIdOk

func (o *SelectionItem) GetMatchupIdOk() (*int64, bool)

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

func (*SelectionItem) GetParticipantId

func (o *SelectionItem) GetParticipantId() int64

GetParticipantId returns the ParticipantId field value if set, zero value otherwise.

func (*SelectionItem) GetParticipantIdOk

func (o *SelectionItem) GetParticipantIdOk() (*int64, bool)

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

func (*SelectionItem) GetPitchers

func (o *SelectionItem) GetPitchers() []PitcherItem

GetPitchers returns the Pitchers field value if set, zero value otherwise.

func (*SelectionItem) GetPitchersOk

func (o *SelectionItem) GetPitchersOk() (*[]PitcherItem, bool)

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

func (*SelectionItem) GetPoints

func (o *SelectionItem) GetPoints() float64

GetPoints returns the Points field value if set, zero value otherwise.

func (*SelectionItem) GetPointsOk

func (o *SelectionItem) GetPointsOk() (*float64, bool)

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

func (*SelectionItem) GetPrice

func (o *SelectionItem) GetPrice() float64

GetPrice returns the Price field value

func (*SelectionItem) GetPriceOk

func (o *SelectionItem) GetPriceOk() (*float64, bool)

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

func (*SelectionItem) HasParticipantId

func (o *SelectionItem) HasParticipantId() bool

HasParticipantId returns a boolean if a field has been set.

func (*SelectionItem) HasPitchers

func (o *SelectionItem) HasPitchers() bool

HasPitchers returns a boolean if a field has been set.

func (*SelectionItem) HasPoints

func (o *SelectionItem) HasPoints() bool

HasPoints returns a boolean if a field has been set.

func (SelectionItem) MarshalJSON

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

func (*SelectionItem) SetDesignation

func (o *SelectionItem) SetDesignation(v string)

SetDesignation sets field value

func (*SelectionItem) SetMarketKey

func (o *SelectionItem) SetMarketKey(v string)

SetMarketKey sets field value

func (*SelectionItem) SetMatchupId

func (o *SelectionItem) SetMatchupId(v int64)

SetMatchupId sets field value

func (*SelectionItem) SetParticipantId

func (o *SelectionItem) SetParticipantId(v int64)

SetParticipantId gets a reference to the given int64 and assigns it to the ParticipantId field.

func (*SelectionItem) SetPitchers

func (o *SelectionItem) SetPitchers(v []PitcherItem)

SetPitchers gets a reference to the given []PitcherItem and assigns it to the Pitchers field.

func (*SelectionItem) SetPoints

func (o *SelectionItem) SetPoints(v float64)

SetPoints gets a reference to the given float64 and assigns it to the Points field.

func (*SelectionItem) SetPrice

func (o *SelectionItem) SetPrice(v float64)

SetPrice sets field value

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

Jump to

Keyboard shortcuts

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