dodo

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: MIT Imports: 21 Imported by: 0

README

Go API client for swagger

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

Overview

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

  • API version: v2
  • Package version: 1.0.0
  • Build package: io.swagger.codegen.v3.generators.go.GoClientCodegen

Installation

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

import "./swagger"

Documentation for API Endpoints

All URIs are relative to /

Class Method HTTP request Description
BrandsApi ApiV2BrandsGet Get /api/v2/brands
CountriesApi ApiV2BrandCountriesGet Get /api/v2/{brand}/countries
CountriesApi ApiV2CountriesGet Get /api/v2/countries
OrdersApi ApiV2BrandOrdersCountBySourceYearMonthDayGet Get /api/v2/{brand}/orders/count-by-source/{year}/{month}/{day}
OrdersApi ApiV2OrdersCountBySourceYearMonthDayGet Get /api/v2/orders/count-by-source/{year}/{month}/{day}
ProductsApi ApiV2BrandCountryIdUnitIdProductsTopGet Get /api/v2/{brand}/{countryId}/{unitId}/products/top
ProductsApi ApiV2BrandProductsTopGet Get /api/v2/{brand}/products/top
RatingsApi ApiV2BrandRatingsGet Get /api/v2/{brand}/ratings
RatingsApi ApiV2RatingsGet Get /api/v2/ratings
RevenueApi ApiV2BrandCountryIdRevenueDailyGet Get /api/v2/{brand}/{countryId}/revenue/daily
RevenueApi ApiV2BrandRevenueDailyYearMonthDayGet Get /api/v2/{brand}/revenue/daily/{year}/{month}/{day}
RevenueApi ApiV2BrandRevenueMonthsLastGet Get /api/v2/{brand}/revenue/months/last
RevenueApi ApiV2BrandRevenueMonthsYearMonthGet Get /api/v2/{brand}/revenue/months/{year}/{month}
RevenueApi ApiV2BrandRevenueWeeklyTopGet Get /api/v2/{brand}/revenue/weekly/top
RevenueApi ApiV2RevenueDailyYearMonthDayGet Get /api/v2/revenue/daily/{year}/{month}/{day}
RevenueApi ApiV2RevenueMonthsLastGet Get /api/v2/revenue/months/last
RevenueApi ApiV2RevenueMonthsYearMonthGet Get /api/v2/revenue/months/{year}/{month}
RevenueApi ApiV2RevenueWeeklyTopGet Get /api/v2/revenue/weekly/top
UnitRevenueApi ApiV2BrandRevenueUnitCountryIdUnitIdDailyYearMonthDayGet Get /api/v2/{brand}/revenue/unit/{countryId}/{unitId}/daily/{year}/{month}/{day}
UnitRevenueApi ApiV2BrandRevenueUnitCountryIdUnitIdHistoryGet Get /api/v2/{brand}/revenue/unit/{countryId}/{unitId}/history
UnitRevenueApi ApiV2BrandRevenueUnitCountryIdUnitIdHistoryStartYearEndYearGet Get /api/v2/{brand}/revenue/unit/{countryId}/{unitId}/history/{startYear}/{endYear}
UnitRevenueApi ApiV2BrandRevenueUnitCountryIdUnitIdMonthlyYearMonthGet Get /api/v2/{brand}/revenue/unit/{countryId}/{unitId}/monthly/{year}/{month}
UnitRevenueApi ApiV2BrandRevenueUnitCountryIdUnitIdMonthsLastGet Get /api/v2/{brand}/revenue/unit/{countryId}/{unitId}/months/last
UnitRevenueApi ApiV2BrandRevenueUnitCountryIdUnitIdTodayGet Get /api/v2/{brand}/revenue/unit/{countryId}/{unitId}/today
UnitRevenueApi ApiV2BrandRevenueUnitCountryIdUnitIdWeekHistoryStartYearEndYearGet Get /api/v2/{brand}/revenue/unit/{countryId}/{unitId}/week/history/{startYear}/{endYear}
UnitRevenueApi ApiV2BrandRevenueUnitCountryIdUnitIdYesterdayGet Get /api/v2/{brand}/revenue/unit/{countryId}/{unitId}/yesterday
UnitsApi ApiV2BrandUnitsAllCountryIdGet Get /api/v2/{brand}/units/all/{countryId}
UnitsApi ApiV2BrandUnitsCountGet Get /api/v2/{brand}/units/count
UnitsApi ApiV2BrandUnitsCountMonthsYearMonthGet Get /api/v2/{brand}/units/count/months/{year}/{month}
UnitsApi ApiV2BrandUnitsCountryIdUnitIdGet Get /api/v2/{brand}/units/{countryId}/{unitId}
UnitsApi ApiV2UnitsAllCountryIdGet Get /api/v2/units/all/{countryId}
UnitsApi ApiV2UnitsCountGet Get /api/v2/units/count
UnitsApi ApiV2UnitsCountMonthsYearMonthGet Get /api/v2/units/count/months/{year}/{month}

Documentation For Models

Documentation For Authorization

Endpoints do not require authorization.

Author

Documentation

Overview

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Dodo Global API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: v2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

Index

Constants

This section is empty.

Variables

View Source
var (
	// ContextOAuth2 takes a 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")

	// ContextAPIKey takes an APIKey as authentication for the request
	ContextAPIKey = contextKey("apikey")
)

Functions

func CacheExpires

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

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

Types

type APIClient

type APIClient struct {
	BrandsApi *BrandsApiService

	CountriesApi *CountriesApiService

	OrdersApi *OrdersApiService

	ProductsApi *ProductsApiService

	RatingsApi *RatingsApiService

	RevenueApi *RevenueApiService

	UnitRevenueApi *UnitRevenueApiService

	UnitsApi *UnitsApiService
	// contains filtered or unexported fields
}

APIClient manages communication with the authentik API v2023.10.6 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 swagger 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:"-"`
}

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

type AddressModel

type AddressModel struct {
	Text     string         `json:"text,omitempty"`
	Locality *LocalityModel `json:"locality,omitempty"`
	Street   *StreetModel   `json:"street,omitempty"`
	House    *HouseModel    `json:"house,omitempty"`
}

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 BrandDailyRevenueListModel

type BrandDailyRevenueListModel struct {
	Countries []MetricsHistoryModel `json:"countries,omitempty"`
	Errors    []ErrorModel          `json:"errors,omitempty"`
	Day       string                `json:"day,omitempty"`
	Brand     string                `json:"brand,omitempty"`
}

type BrandListDailyRevenueListModel

type BrandListDailyRevenueListModel struct {
	Brands []BrandDailyRevenueListModel `json:"brands,omitempty"`
}

type BrandListTotalUnitCountListModel

type BrandListTotalUnitCountListModel struct {
	Brands []BrandTotalUnitCountListModel `json:"brands,omitempty"`
}

type BrandModel

type BrandModel struct {
	Name string `json:"name,omitempty"`
}

type BrandTotalUnitCountListModel

type BrandTotalUnitCountListModel struct {
	Countries []UnitCountModel `json:"countries,omitempty"`
	Errors    []ErrorModel     `json:"errors,omitempty"`
	Total     int32            `json:"total,omitempty"`
	Brand     string           `json:"brand,omitempty"`
}

type BrandsApiService

type BrandsApiService service

func (*BrandsApiService) ApiV2BrandsGet

func (a *BrandsApiService) ApiV2BrandsGet(ctx context.Context) ([]BrandModel, *http.Response, error)

BrandsApiService

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

@return []BrandModel

type Configuration

type Configuration struct {
	BasePath      string            `json:"basePath,omitempty"`
	Host          string            `json:"host,omitempty"`
	Scheme        string            `json:"scheme,omitempty"`
	DefaultHeader map[string]string `json:"defaultHeader,omitempty"`
	UserAgent     string            `json:"userAgent,omitempty"`
	HTTPClient    *http.Client
}

func NewConfiguration

func NewConfiguration() *Configuration

func (*Configuration) AddDefaultHeader

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

type CoordinatesModel

type CoordinatesModel struct {
	Lat  float64 `json:"lat,omitempty"`
	Long float64 `json:"long,omitempty"`
}

type CountriesApiService

type CountriesApiService service

func (*CountriesApiService) ApiV2BrandCountriesGet

func (a *CountriesApiService) ApiV2BrandCountriesGet(ctx context.Context, brand string) ([]CountryModel, *http.Response, error)

CountriesApiService

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

@return []CountryModel

func (*CountriesApiService) ApiV2CountriesGet

func (a *CountriesApiService) ApiV2CountriesGet(ctx context.Context) ([]CountryModelBrandData, *http.Response, error)

CountriesApiService

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

@return []CountryModelBrandData

type CountryDailyRevenueModel

type CountryDailyRevenueModel struct {
	CountryId   int32               `json:"countryId,omitempty"`
	CountryCode string              `json:"countryCode,omitempty"`
	Days        []DailyMetricsModel `json:"days,omitempty"`
}

type CountryDailyRevenueModelBrandData

type CountryDailyRevenueModelBrandData struct {
	Countries []CountryDailyRevenueModel `json:"countries,omitempty"`
	Errors    []ErrorModel               `json:"errors,omitempty"`
	Brand     string                     `json:"brand,omitempty"`
}

type CountryModel

type CountryModel struct {
	Id       int32  `json:"id,omitempty"`
	Code     string `json:"code,omitempty"`
	Name     string `json:"name,omitempty"`
	Currency string `json:"currency,omitempty"`
}

type CountryModelBrandData

type CountryModelBrandData struct {
	Countries []CountryModel `json:"countries,omitempty"`
	Errors    []ErrorModel   `json:"errors,omitempty"`
	Brand     string         `json:"brand,omitempty"`
}

type DailyMetricsModel

type DailyMetricsModel struct {
	Day     string         `json:"day,omitempty"`
	Metrics []MetricsModel `json:"metrics,omitempty"`
}

type DailyRevenueListModel

type DailyRevenueListModel struct {
	Countries []MetricsHistoryModel `json:"countries,omitempty"`
	Errors    []ErrorModel          `json:"errors,omitempty"`
	Day       string                `json:"day,omitempty"`
}

type ErrorModel

type ErrorModel struct {
	CountryId   int32  `json:"countryId,omitempty"`
	CountryCode string `json:"countryCode,omitempty"`
}

type GenericSwaggerError

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

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

func (GenericSwaggerError) Body

func (e GenericSwaggerError) Body() []byte

Body returns the raw bytes of the response

func (GenericSwaggerError) Error

func (e GenericSwaggerError) Error() string

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

func (GenericSwaggerError) Model

func (e GenericSwaggerError) Model() interface{}

Model returns the unpacked model of the error

type HouseModel

type HouseModel struct {
	Number string `json:"number,omitempty"`
}

type LocalityModel

type LocalityModel struct {
	Id   int64  `json:"id,omitempty"`
	Name string `json:"name,omitempty"`
}

type MetricsHistoryModel

type MetricsHistoryModel struct {
	CountryId   int32          `json:"countryId,omitempty"`
	CountryCode string         `json:"countryCode,omitempty"`
	Metrics     []MetricsModel `json:"metrics,omitempty"`
}

type MetricsModel

type MetricsModel struct {
	UnitId                  int32   `json:"unitId,omitempty"`
	Revenue                 float64 `json:"revenue,omitempty"`
	Count                   int32   `json:"count,omitempty"`
	StationaryRevenue       float64 `json:"stationaryRevenue,omitempty"`
	StationaryCount         int32   `json:"stationaryCount,omitempty"`
	DeliveryRevenue         float64 `json:"deliveryRevenue,omitempty"`
	DeliveryCount           int32   `json:"deliveryCount,omitempty"`
	PickupRevenue           float64 `json:"pickupRevenue,omitempty"`
	PickupCount             int32   `json:"pickupCount,omitempty"`
	StationaryMobileRevenue float64 `json:"stationaryMobileRevenue,omitempty"`
	StationaryMobileCount   int32   `json:"stationaryMobileCount,omitempty"`
	DeliveryMobileRevenue   float64 `json:"deliveryMobileRevenue,omitempty"`
	DeliveryMobileCount     int32   `json:"deliveryMobileCount,omitempty"`
	PickupMobileRevenue     float64 `json:"pickupMobileRevenue,omitempty"`
	PickupMobileCount       int32   `json:"pickupMobileCount,omitempty"`
}

type MonthRevenueHistoryModel

type MonthRevenueHistoryModel struct {
	CountryId   int32               `json:"countryId,omitempty"`
	CountryCode string              `json:"countryCode,omitempty"`
	UnitId      int32               `json:"unitId,omitempty"`
	Monthes     []MonthRevenueModel `json:"monthes,omitempty"`
}

type MonthRevenueHistoryModelBrandData

type MonthRevenueHistoryModelBrandData struct {
	Countries []MonthRevenueHistoryModel `json:"countries,omitempty"`
	Errors    []ErrorModel               `json:"errors,omitempty"`
	Brand     string                     `json:"brand,omitempty"`
}

type MonthRevenueModel

type MonthRevenueModel struct {
	Year    int32   `json:"year,omitempty"`
	Month   int32   `json:"month,omitempty"`
	Revenue float64 `json:"revenue,omitempty"`
}

type MonthTotalRevenueModel

type MonthTotalRevenueModel struct {
	CountryId   int32   `json:"countryId,omitempty"`
	CountryCode string  `json:"countryCode,omitempty"`
	Currency    string  `json:"currency,omitempty"`
	Revenue     float64 `json:"revenue,omitempty"`
}

type MonthTotalRevenueModelBrandData

type MonthTotalRevenueModelBrandData struct {
	Countries []MonthTotalRevenueModel `json:"countries,omitempty"`
	Errors    []ErrorModel             `json:"errors,omitempty"`
	Brand     string                   `json:"brand,omitempty"`
}

type MonthTotalRevenueModelBrandListData

type MonthTotalRevenueModelBrandListData struct {
	Brands []MonthTotalRevenueModelBrandData `json:"brands,omitempty"`
}

type MonthUnitCountHistoryModel

type MonthUnitCountHistoryModel struct {
	CountryId   int32                 `json:"countryId,omitempty"`
	CountryCode string                `json:"countryCode,omitempty"`
	Monthes     []MonthUnitCountModel `json:"monthes,omitempty"`
}

type MonthUnitCountHistoryModelBrandData

type MonthUnitCountHistoryModelBrandData struct {
	Countries []MonthUnitCountHistoryModel `json:"countries,omitempty"`
	Errors    []ErrorModel                 `json:"errors,omitempty"`
	Brand     string                       `json:"brand,omitempty"`
}

type MonthUnitCountHistoryModelBrandListData

type MonthUnitCountHistoryModelBrandListData struct {
	Brands []MonthUnitCountHistoryModelBrandData `json:"brands,omitempty"`
}

type MonthUnitCountModel

type MonthUnitCountModel struct {
	Year          int32 `json:"year,omitempty"`
	Month         int32 `json:"month,omitempty"`
	PizzeriaCount int32 `json:"pizzeriaCount,omitempty"`
}

type OrderModel

type OrderModel struct {
	CountryId   int32                          `json:"countryId,omitempty"`
	CountryCode string                         `json:"countryCode,omitempty"`
	CountryName string                         `json:"countryName,omitempty"`
	Value       *OrdersCountBySourceStatistics `json:"value,omitempty"`
}

type OrderModelBrandData

type OrderModelBrandData struct {
	Countries []OrderModel `json:"countries,omitempty"`
	Errors    []ErrorModel `json:"errors,omitempty"`
	Brand     string       `json:"brand,omitempty"`
}

type OrderModelBrandListData

type OrderModelBrandListData struct {
	Brands []OrderModelBrandData `json:"brands,omitempty"`
}

type OrdersApiService

type OrdersApiService service

func (*OrdersApiService) ApiV2BrandOrdersCountBySourceYearMonthDayGet

func (a *OrdersApiService) ApiV2BrandOrdersCountBySourceYearMonthDayGet(ctx context.Context, brand string, year int32, month int32, day int32) (OrderModelBrandData, *http.Response, error)

OrdersApiService

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

@return OrderModelBrandData

func (*OrdersApiService) ApiV2OrdersCountBySourceYearMonthDayGet

func (a *OrdersApiService) ApiV2OrdersCountBySourceYearMonthDayGet(ctx context.Context, year int32, month int32, day int32) (OrderModelBrandListData, *http.Response, error)

OrdersApiService

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

@return OrderModelBrandListData

type OrdersCountBySourceStatistics

type OrdersCountBySourceStatistics struct {
	OrdersCountByPhone       int32 `json:"ordersCountByPhone,omitempty"`
	OrdersCountBySite        int32 `json:"ordersCountBySite,omitempty"`
	OrdersCountByRestaurant  int32 `json:"ordersCountByRestaurant,omitempty"`
	OrdersCountByDefectOrder int32 `json:"ordersCountByDefectOrder,omitempty"`
	OrdersCountByMobile      int32 `json:"ordersCountByMobile,omitempty"`
	OrdersCountByPizzeria    int32 `json:"ordersCountByPizzeria,omitempty"`
	OrdersCountByAggregator  int32 `json:"ordersCountByAggregator,omitempty"`
	TotalCount               int32 `json:"totalCount,omitempty"`
}

type Period

type Period struct {
	Month int32 `json:"month,omitempty"`
	Year  int32 `json:"year,omitempty"`
}

type PeriodicRevenueListModel

type PeriodicRevenueListModel struct {
	Countries []MetricsHistoryModel `json:"countries,omitempty"`
	Errors    []ErrorModel          `json:"errors,omitempty"`
	Period    *Period               `json:"period,omitempty"`
}

type ProductImage

type ProductImage struct {
	Size int32    `json:"size,omitempty"`
	Urls []string `json:"urls,omitempty"`
}

type ProductStatistic

type ProductStatistic struct {
	Name        string         `json:"name,omitempty"`
	OrdersCount int32          `json:"ordersCount,omitempty"`
	Images      []ProductImage `json:"images,omitempty"`
}

type ProductStatisticsModel

type ProductStatisticsModel struct {
	CountryId   int32              `json:"countryId,omitempty"`
	CountryCode string             `json:"countryCode,omitempty"`
	CountryName string             `json:"countryName,omitempty"`
	Products    []ProductStatistic `json:"products,omitempty"`
}

type ProductStatisticsModelBrandData

type ProductStatisticsModelBrandData struct {
	Countries []ProductStatisticsModel `json:"countries,omitempty"`
	Errors    []ErrorModel             `json:"errors,omitempty"`
	Brand     string                   `json:"brand,omitempty"`
}

type ProductsApiApiV2BrandCountryIdUnitIdProductsTopGetOpts

type ProductsApiApiV2BrandCountryIdUnitIdProductsTopGetOpts struct {
	Start optional.String
	End   optional.String
}

type ProductsApiApiV2BrandProductsTopGetOpts

type ProductsApiApiV2BrandProductsTopGetOpts struct {
	Start optional.String
	End   optional.String
}

type ProductsApiService

type ProductsApiService service

func (*ProductsApiService) ApiV2BrandCountryIdUnitIdProductsTopGet

func (a *ProductsApiService) ApiV2BrandCountryIdUnitIdProductsTopGet(ctx context.Context, brand string, countryId int32, unitId int32, localVarOptionals *ProductsApiApiV2BrandCountryIdUnitIdProductsTopGetOpts) (ProductStatisticsModelBrandData, *http.Response, error)

func (*ProductsApiService) ApiV2BrandProductsTopGet

type Rating

type Rating struct {
	UnitUUId       string  `json:"unitUUId,omitempty"`
	AvgServiceTime int32   `json:"avgServiceTime,omitempty"`
	SummaryRates   int32   `json:"summaryRates,omitempty"`
	FeedbackQty    int32   `json:"feedbackQty,omitempty"`
	AvgRating      float64 `json:"avgRating,omitempty"`
	AvgCookingTime int32   `json:"avgCookingTime,omitempty"`
}

type RatingsApiService

type RatingsApiService service

func (*RatingsApiService) ApiV2BrandRatingsGet

func (a *RatingsApiService) ApiV2BrandRatingsGet(ctx context.Context, brand string) (RatingsModelBrandData, *http.Response, error)

RatingsApiService

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

@return RatingsModelBrandData

func (*RatingsApiService) ApiV2RatingsGet

RatingsApiService

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

@return RatingsModelBrandListData

type RatingsModel

type RatingsModel struct {
	CountryId   int32    `json:"countryId,omitempty"`
	CountryCode string   `json:"countryCode,omitempty"`
	CountryName string   `json:"countryName,omitempty"`
	Ratings     []Rating `json:"ratings,omitempty"`
}

type RatingsModelBrandData

type RatingsModelBrandData struct {
	Countries []RatingsModel `json:"countries,omitempty"`
	Errors    []ErrorModel   `json:"errors,omitempty"`
	Brand     string         `json:"brand,omitempty"`
}

type RatingsModelBrandListData

type RatingsModelBrandListData struct {
	Brands []RatingsModelBrandData `json:"brands,omitempty"`
}

type RevenueApiApiV2BrandCountryIdRevenueDailyGetOpts

type RevenueApiApiV2BrandCountryIdRevenueDailyGetOpts struct {
	From optional.Time
	To   optional.Time
}

type RevenueApiApiV2BrandRevenueWeeklyTopGetOpts

type RevenueApiApiV2BrandRevenueWeeklyTopGetOpts struct {
	Count optional.Int32
}

type RevenueApiApiV2RevenueWeeklyTopGetOpts

type RevenueApiApiV2RevenueWeeklyTopGetOpts struct {
	Count optional.Int32
}

type RevenueApiService

type RevenueApiService service

func (*RevenueApiService) ApiV2BrandCountryIdRevenueDailyGet

func (a *RevenueApiService) ApiV2BrandCountryIdRevenueDailyGet(ctx context.Context, brand string, countryId int32, localVarOptionals *RevenueApiApiV2BrandCountryIdRevenueDailyGetOpts) (CountryDailyRevenueModelBrandData, *http.Response, error)

func (*RevenueApiService) ApiV2BrandRevenueDailyYearMonthDayGet

func (a *RevenueApiService) ApiV2BrandRevenueDailyYearMonthDayGet(ctx context.Context, brand string, year int32, month int32, day int32) (BrandDailyRevenueListModel, *http.Response, error)

RevenueApiService

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

@return BrandDailyRevenueListModel

func (*RevenueApiService) ApiV2BrandRevenueMonthsLastGet

func (a *RevenueApiService) ApiV2BrandRevenueMonthsLastGet(ctx context.Context, brand string) (MonthTotalRevenueModelBrandData, *http.Response, error)

RevenueApiService

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

@return MonthTotalRevenueModelBrandData

func (*RevenueApiService) ApiV2BrandRevenueMonthsYearMonthGet

func (a *RevenueApiService) ApiV2BrandRevenueMonthsYearMonthGet(ctx context.Context, brand string, year int32, month int32) (TotalRevenueHistoryModelBrandData, *http.Response, error)

RevenueApiService

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

@return TotalRevenueHistoryModelBrandData

func (*RevenueApiService) ApiV2BrandRevenueWeeklyTopGet

func (a *RevenueApiService) ApiV2BrandRevenueWeeklyTopGet(ctx context.Context, brand string, localVarOptionals *RevenueApiApiV2BrandRevenueWeeklyTopGetOpts) (WeeklyTopModelBrandData, *http.Response, error)

func (*RevenueApiService) ApiV2RevenueDailyYearMonthDayGet

func (a *RevenueApiService) ApiV2RevenueDailyYearMonthDayGet(ctx context.Context, year int32, month int32, day int32) (BrandListDailyRevenueListModel, *http.Response, error)

RevenueApiService

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

@return BrandListDailyRevenueListModel

func (*RevenueApiService) ApiV2RevenueMonthsLastGet

RevenueApiService

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

@return MonthTotalRevenueModelBrandListData

func (*RevenueApiService) ApiV2RevenueMonthsYearMonthGet

func (a *RevenueApiService) ApiV2RevenueMonthsYearMonthGet(ctx context.Context, year int32, month int32) (TotalRevenueHistoryModelBrandListData, *http.Response, error)

RevenueApiService

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

@return TotalRevenueHistoryModelBrandListData

func (*RevenueApiService) ApiV2RevenueWeeklyTopGet

type RevenueHistoryModel

type RevenueHistoryModel struct {
	CountryId   int32          `json:"countryId,omitempty"`
	CountryCode string         `json:"countryCode,omitempty"`
	UnitId      int32          `json:"unitId,omitempty"`
	Monthes     []RevenueModel `json:"monthes,omitempty"`
}

type RevenueHistoryModelBrandData

type RevenueHistoryModelBrandData struct {
	Countries []RevenueHistoryModel `json:"countries,omitempty"`
	Errors    []ErrorModel          `json:"errors,omitempty"`
	Brand     string                `json:"brand,omitempty"`
}

type RevenueModel

type RevenueModel struct {
	Year              int32   `json:"year,omitempty"`
	Month             int32   `json:"month,omitempty"`
	Revenue           float64 `json:"revenue,omitempty"`
	StationaryRevenue float64 `json:"stationaryRevenue,omitempty"`
	DeliveryRevenue   float64 `json:"deliveryRevenue,omitempty"`
	PickupRevenue     float64 `json:"pickupRevenue,omitempty"`
}

type RouteRoot

type RouteRoot string

RouteRoot represents the name of the route namespace.

type ScheduleModel

type ScheduleModel struct {
	WorkTime []WorkTimeModel `json:"workTime,omitempty"`
}

type StatisticsModel

type StatisticsModel struct {
	CountryId            int32   `json:"countryId,omitempty"`
	CountryCode          string  `json:"countryCode,omitempty"`
	UnitId               int32   `json:"unitId,omitempty"`
	Date                 string  `json:"date,omitempty"`
	StationaryRevenue    float64 `json:"stationaryRevenue,omitempty"`
	StationaryOrderCount int32   `json:"stationaryOrderCount,omitempty"`
	DeliveryRevenue      float64 `json:"deliveryRevenue,omitempty"`
	DeliveryOrderCount   int32   `json:"deliveryOrderCount,omitempty"`
	Revenue              float64 `json:"revenue,omitempty"`
	OrderCount           int32   `json:"orderCount,omitempty"`
	AvgCheck             float64 `json:"avgCheck,omitempty"`
}

type StatisticsModelBrandData

type StatisticsModelBrandData struct {
	Countries []StatisticsModel `json:"countries,omitempty"`
	Errors    []ErrorModel      `json:"errors,omitempty"`
	Brand     string            `json:"brand,omitempty"`
}

type StreetModel

type StreetModel struct {
	Id       int32  `json:"id,omitempty"`
	Name     string `json:"name,omitempty"`
	Type_    string `json:"type,omitempty"`
	TypeName string `json:"typeName,omitempty"`
	TypeAbbr string `json:"typeAbbr,omitempty"`
}

type TotalRevenueHistoryModel

type TotalRevenueHistoryModel struct {
	CountryId   int32               `json:"countryId,omitempty"`
	CountryCode string              `json:"countryCode,omitempty"`
	Monthes     []TotalRevenueModel `json:"monthes,omitempty"`
}

type TotalRevenueHistoryModelBrandData

type TotalRevenueHistoryModelBrandData struct {
	Countries []TotalRevenueHistoryModel `json:"countries,omitempty"`
	Errors    []ErrorModel               `json:"errors,omitempty"`
	Brand     string                     `json:"brand,omitempty"`
}

type TotalRevenueHistoryModelBrandListData

type TotalRevenueHistoryModelBrandListData struct {
	Brands []TotalRevenueHistoryModelBrandData `json:"brands,omitempty"`
}

type TotalRevenueModel

type TotalRevenueModel struct {
	Year     int32   `json:"year,omitempty"`
	Month    int32   `json:"month,omitempty"`
	Currency string  `json:"currency,omitempty"`
	Revenue  float64 `json:"revenue,omitempty"`
}

type TotalUnitCountListModel

type TotalUnitCountListModel struct {
	Countries []UnitCountModel `json:"countries,omitempty"`
	Errors    []ErrorModel     `json:"errors,omitempty"`
	Total     int32            `json:"total,omitempty"`
}

type UnitCountModel

type UnitCountModel struct {
	CountryId     int32  `json:"countryId,omitempty"`
	CountryCode   string `json:"countryCode,omitempty"`
	CountryName   string `json:"countryName,omitempty"`
	PizzeriaCount int32  `json:"pizzeriaCount,omitempty"`
}

type UnitListModel

type UnitListModel struct {
	CountryId   int32       `json:"countryId,omitempty"`
	CountryCode string      `json:"countryCode,omitempty"`
	CountryName string      `json:"countryName,omitempty"`
	Pizzerias   []UnitModel `json:"pizzerias,omitempty"`
}

type UnitListModelBrandData

type UnitListModelBrandData struct {
	Countries []UnitListModel `json:"countries,omitempty"`
	Errors    []ErrorModel    `json:"errors,omitempty"`
	Brand     string          `json:"brand,omitempty"`
}

type UnitListModelBrandListData

type UnitListModelBrandListData struct {
	Brands []UnitListModelBrandData `json:"brands,omitempty"`
}

type UnitModel

type UnitModel struct {
	Id            int64             `json:"id,omitempty"`
	Name          string            `json:"name,omitempty"`
	Uuid          string            `json:"uuid,omitempty"`
	Alias         string            `json:"alias,omitempty"`
	StartDate     string            `json:"startDate,omitempty"`
	TimeZoneShift int32             `json:"timeZoneShift,omitempty"`
	WebcamUrl     string            `json:"webcamUrl,omitempty"`
	Coords        *CoordinatesModel `json:"coords,omitempty"`
	Address       *AddressModel     `json:"address,omitempty"`
	Stationary    *ScheduleModel    `json:"stationary,omitempty"`
	Delivery      *ScheduleModel    `json:"delivery,omitempty"`
}

type UnitRevenueApiService

type UnitRevenueApiService service

func (*UnitRevenueApiService) ApiV2BrandRevenueUnitCountryIdUnitIdDailyYearMonthDayGet

func (a *UnitRevenueApiService) ApiV2BrandRevenueUnitCountryIdUnitIdDailyYearMonthDayGet(ctx context.Context, brand string, countryId int32, unitId int32, year int32, month int32, day int32) (DailyRevenueListModel, *http.Response, error)

UnitRevenueApiService

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param brand
  • @param countryId
  • @param unitId
  • @param year
  • @param month
  • @param day

@return DailyRevenueListModel

func (*UnitRevenueApiService) ApiV2BrandRevenueUnitCountryIdUnitIdHistoryGet

func (a *UnitRevenueApiService) ApiV2BrandRevenueUnitCountryIdUnitIdHistoryGet(ctx context.Context, brand string, countryId int32, unitId int32) (RevenueHistoryModelBrandData, *http.Response, error)

UnitRevenueApiService

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

@return RevenueHistoryModelBrandData

func (*UnitRevenueApiService) ApiV2BrandRevenueUnitCountryIdUnitIdHistoryStartYearEndYearGet

func (a *UnitRevenueApiService) ApiV2BrandRevenueUnitCountryIdUnitIdHistoryStartYearEndYearGet(ctx context.Context, brand string, countryId int32, unitId int32, startYear int32, endYear int32) (RevenueHistoryModelBrandData, *http.Response, error)

UnitRevenueApiService

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

@return RevenueHistoryModelBrandData

func (*UnitRevenueApiService) ApiV2BrandRevenueUnitCountryIdUnitIdMonthlyYearMonthGet

func (a *UnitRevenueApiService) ApiV2BrandRevenueUnitCountryIdUnitIdMonthlyYearMonthGet(ctx context.Context, brand string, countryId int32, unitId int32, year int32, month int32) (PeriodicRevenueListModel, *http.Response, error)

UnitRevenueApiService

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

@return PeriodicRevenueListModel

func (*UnitRevenueApiService) ApiV2BrandRevenueUnitCountryIdUnitIdMonthsLastGet

func (a *UnitRevenueApiService) ApiV2BrandRevenueUnitCountryIdUnitIdMonthsLastGet(ctx context.Context, brand string, countryId int32, unitId int32) (MonthRevenueHistoryModelBrandData, *http.Response, error)

UnitRevenueApiService

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

@return MonthRevenueHistoryModelBrandData

func (*UnitRevenueApiService) ApiV2BrandRevenueUnitCountryIdUnitIdTodayGet

func (a *UnitRevenueApiService) ApiV2BrandRevenueUnitCountryIdUnitIdTodayGet(ctx context.Context, brand string, countryId int32, unitId int32) (StatisticsModelBrandData, *http.Response, error)

UnitRevenueApiService

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

@return StatisticsModelBrandData

func (*UnitRevenueApiService) ApiV2BrandRevenueUnitCountryIdUnitIdWeekHistoryStartYearEndYearGet

func (a *UnitRevenueApiService) ApiV2BrandRevenueUnitCountryIdUnitIdWeekHistoryStartYearEndYearGet(ctx context.Context, brand string, countryId int32, unitId int32, startYear int32, endYear int32) (WeekRevenueHistoryModelBrandData, *http.Response, error)

UnitRevenueApiService

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

@return WeekRevenueHistoryModelBrandData

func (*UnitRevenueApiService) ApiV2BrandRevenueUnitCountryIdUnitIdYesterdayGet

func (a *UnitRevenueApiService) ApiV2BrandRevenueUnitCountryIdUnitIdYesterdayGet(ctx context.Context, brand string, countryId int32, unitId int32) (StatisticsModelBrandData, *http.Response, error)

UnitRevenueApiService

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

@return StatisticsModelBrandData

type UnitSingleModel

type UnitSingleModel struct {
	CountryId   int32      `json:"countryId,omitempty"`
	CountryCode string     `json:"countryCode,omitempty"`
	CountryName string     `json:"countryName,omitempty"`
	Pizzeria    *UnitModel `json:"pizzeria,omitempty"`
}

type UnitSingleModelBrandData

type UnitSingleModelBrandData struct {
	Countries []UnitSingleModel `json:"countries,omitempty"`
	Errors    []ErrorModel      `json:"errors,omitempty"`
	Brand     string            `json:"brand,omitempty"`
}

type UnitsApiService

type UnitsApiService service

func (*UnitsApiService) ApiV2BrandUnitsAllCountryIdGet

func (a *UnitsApiService) ApiV2BrandUnitsAllCountryIdGet(ctx context.Context, brand string, countryId int32) (UnitListModelBrandData, *http.Response, error)

UnitsApiService

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

@return UnitListModelBrandData

func (*UnitsApiService) ApiV2BrandUnitsCountGet

func (a *UnitsApiService) ApiV2BrandUnitsCountGet(ctx context.Context, brand string) (TotalUnitCountListModel, *http.Response, error)

UnitsApiService

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

@return TotalUnitCountListModel

func (*UnitsApiService) ApiV2BrandUnitsCountMonthsYearMonthGet

func (a *UnitsApiService) ApiV2BrandUnitsCountMonthsYearMonthGet(ctx context.Context, brand string, year int32, month int32) (MonthUnitCountHistoryModelBrandData, *http.Response, error)

UnitsApiService

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

@return MonthUnitCountHistoryModelBrandData

func (*UnitsApiService) ApiV2BrandUnitsCountryIdUnitIdGet

func (a *UnitsApiService) ApiV2BrandUnitsCountryIdUnitIdGet(ctx context.Context, brand string, countryId int32, unitId int32) (UnitSingleModelBrandData, *http.Response, error)

UnitsApiService

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

@return UnitSingleModelBrandData

func (*UnitsApiService) ApiV2UnitsAllCountryIdGet

func (a *UnitsApiService) ApiV2UnitsAllCountryIdGet(ctx context.Context, countryId int32) (UnitListModelBrandListData, *http.Response, error)

UnitsApiService

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

@return UnitListModelBrandListData

func (*UnitsApiService) ApiV2UnitsCountGet

UnitsApiService

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

@return BrandListTotalUnitCountListModel

func (*UnitsApiService) ApiV2UnitsCountMonthsYearMonthGet

func (a *UnitsApiService) ApiV2UnitsCountMonthsYearMonthGet(ctx context.Context, year int32, month int32) (MonthUnitCountHistoryModelBrandListData, *http.Response, error)

UnitsApiService

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

@return MonthUnitCountHistoryModelBrandListData

type WeekRevenueHistoryModel

type WeekRevenueHistoryModel struct {
	CountryId   int32              `json:"countryId,omitempty"`
	CountryCode string             `json:"countryCode,omitempty"`
	UnitId      int32              `json:"unitId,omitempty"`
	Weeks       []WeekRevenueModel `json:"weeks,omitempty"`
}

type WeekRevenueHistoryModelBrandData

type WeekRevenueHistoryModelBrandData struct {
	Countries []WeekRevenueHistoryModel `json:"countries,omitempty"`
	Errors    []ErrorModel              `json:"errors,omitempty"`
	Brand     string                    `json:"brand,omitempty"`
}

type WeekRevenueModel

type WeekRevenueModel struct {
	StartDay          time.Time `json:"startDay,omitempty"`
	EndDay            time.Time `json:"endDay,omitempty"`
	Revenue           float64   `json:"revenue,omitempty"`
	Count             int32     `json:"count,omitempty"`
	DeliveryRevenue   float64   `json:"deliveryRevenue,omitempty"`
	DeliveryCount     int32     `json:"deliveryCount,omitempty"`
	StationaryRevenue float64   `json:"stationaryRevenue,omitempty"`
	StationaryCount   int32     `json:"stationaryCount,omitempty"`
	PickupRevenue     float64   `json:"pickupRevenue,omitempty"`
	PickupCount       int32     `json:"pickupCount,omitempty"`
	WeekId            int32     `json:"weekId,omitempty"`
}

type WeeklyTopModel

type WeeklyTopModel struct {
	CountryId   int32                `json:"countryId,omitempty"`
	CountryCode string               `json:"countryCode,omitempty"`
	Top         []WeeklyTopUnitModel `json:"top,omitempty"`
}

type WeeklyTopModelBrandData

type WeeklyTopModelBrandData struct {
	Countries []WeeklyTopModel `json:"countries,omitempty"`
	Errors    []ErrorModel     `json:"errors,omitempty"`
	Brand     string           `json:"brand,omitempty"`
}

type WeeklyTopModelBrandListData

type WeeklyTopModelBrandListData struct {
	Brands []WeeklyTopModelBrandData `json:"brands,omitempty"`
}

type WeeklyTopUnitModel

type WeeklyTopUnitModel struct {
	UnitId int32              `json:"unitId,omitempty"`
	Weeks  []WeekRevenueModel `json:"weeks,omitempty"`
}

type WorkTimeModel

type WorkTimeModel struct {
	Start int32 `json:"start,omitempty"`
	End   int32 `json:"end,omitempty"`
}

Source Files

Jump to

Keyboard shortcuts

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