Versions in this module Expand all Collapse all v0 v0.0.1 Feb 8, 2024 Changes in this version + var ContextAPIKey = contextKey("apikey") + var ContextAccessToken = contextKey("accesstoken") + var ContextBasicAuth = contextKey("basic") + var ContextOAuth2 = contextKey("token") + func CacheExpires(r *http.Response) time.Time + type APIClient struct + BrandsApi *BrandsApiService + CountriesApi *CountriesApiService + OrdersApi *OrdersApiService + ProductsApi *ProductsApiService + RatingsApi *RatingsApiService + RevenueApi *RevenueApiService + UnitRevenueApi *UnitRevenueApiService + UnitsApi *UnitsApiService + func NewAPIClient(cfg *Configuration) *APIClient + func (c *APIClient) GetConfig() *Configuration + type APIKey struct + Key string + Prefix string + type APIResponse struct + Message string + Method string + Operation string + Payload []byte + RequestURL string + func NewAPIResponse(r *http.Response) *APIResponse + func NewAPIResponseWithError(errorMessage string) *APIResponse + type AddressModel struct + House *HouseModel + Locality *LocalityModel + Street *StreetModel + Text string + type BasicAuth struct + Password string + UserName string + type BrandDailyRevenueListModel struct + Brand string + Countries []MetricsHistoryModel + Day string + Errors []ErrorModel + type BrandListDailyRevenueListModel struct + Brands []BrandDailyRevenueListModel + type BrandListTotalUnitCountListModel struct + Brands []BrandTotalUnitCountListModel + type BrandModel struct + Name string + type BrandTotalUnitCountListModel struct + Brand string + Countries []UnitCountModel + Errors []ErrorModel + Total int32 + type BrandsApiService service + func (a *BrandsApiService) ApiV2BrandsGet(ctx context.Context) ([]BrandModel, *http.Response, error) + type Configuration struct + BasePath string + DefaultHeader map[string]string + HTTPClient *http.Client + Host string + Scheme string + UserAgent string + func NewConfiguration() *Configuration + func (c *Configuration) AddDefaultHeader(key string, value string) + type CoordinatesModel struct + Lat float64 + Long float64 + type CountriesApiService service + func (a *CountriesApiService) ApiV2BrandCountriesGet(ctx context.Context, brand string) ([]CountryModel, *http.Response, error) + func (a *CountriesApiService) ApiV2CountriesGet(ctx context.Context) ([]CountryModelBrandData, *http.Response, error) + type CountryDailyRevenueModel struct + CountryCode string + CountryId int32 + Days []DailyMetricsModel + type CountryDailyRevenueModelBrandData struct + Brand string + Countries []CountryDailyRevenueModel + Errors []ErrorModel + type CountryModel struct + Code string + Currency string + Id int32 + Name string + type CountryModelBrandData struct + Brand string + Countries []CountryModel + Errors []ErrorModel + type DailyMetricsModel struct + Day string + Metrics []MetricsModel + type DailyRevenueListModel struct + Countries []MetricsHistoryModel + Day string + Errors []ErrorModel + type ErrorModel struct + CountryCode string + CountryId int32 + type GenericSwaggerError struct + func (e GenericSwaggerError) Body() []byte + func (e GenericSwaggerError) Error() string + func (e GenericSwaggerError) Model() interface{} + type HouseModel struct + Number string + type LocalityModel struct + Id int64 + Name string + type MetricsHistoryModel struct + CountryCode string + CountryId int32 + Metrics []MetricsModel + type MetricsModel struct + Count int32 + DeliveryCount int32 + DeliveryMobileCount int32 + DeliveryMobileRevenue float64 + DeliveryRevenue float64 + PickupCount int32 + PickupMobileCount int32 + PickupMobileRevenue float64 + PickupRevenue float64 + Revenue float64 + StationaryCount int32 + StationaryMobileCount int32 + StationaryMobileRevenue float64 + StationaryRevenue float64 + UnitId int32 + type MonthRevenueHistoryModel struct + CountryCode string + CountryId int32 + Monthes []MonthRevenueModel + UnitId int32 + type MonthRevenueHistoryModelBrandData struct + Brand string + Countries []MonthRevenueHistoryModel + Errors []ErrorModel + type MonthRevenueModel struct + Month int32 + Revenue float64 + Year int32 + type MonthTotalRevenueModel struct + CountryCode string + CountryId int32 + Currency string + Revenue float64 + type MonthTotalRevenueModelBrandData struct + Brand string + Countries []MonthTotalRevenueModel + Errors []ErrorModel + type MonthTotalRevenueModelBrandListData struct + Brands []MonthTotalRevenueModelBrandData + type MonthUnitCountHistoryModel struct + CountryCode string + CountryId int32 + Monthes []MonthUnitCountModel + type MonthUnitCountHistoryModelBrandData struct + Brand string + Countries []MonthUnitCountHistoryModel + Errors []ErrorModel + type MonthUnitCountHistoryModelBrandListData struct + Brands []MonthUnitCountHistoryModelBrandData + type MonthUnitCountModel struct + Month int32 + PizzeriaCount int32 + Year int32 + type OrderModel struct + CountryCode string + CountryId int32 + CountryName string + Value *OrdersCountBySourceStatistics + type OrderModelBrandData struct + Brand string + Countries []OrderModel + Errors []ErrorModel + type OrderModelBrandListData struct + Brands []OrderModelBrandData + type OrdersApiService service + func (a *OrdersApiService) ApiV2BrandOrdersCountBySourceYearMonthDayGet(ctx context.Context, brand string, year int32, month int32, day int32) (OrderModelBrandData, *http.Response, error) + func (a *OrdersApiService) ApiV2OrdersCountBySourceYearMonthDayGet(ctx context.Context, year int32, month int32, day int32) (OrderModelBrandListData, *http.Response, error) + type OrdersCountBySourceStatistics struct + OrdersCountByAggregator int32 + OrdersCountByDefectOrder int32 + OrdersCountByMobile int32 + OrdersCountByPhone int32 + OrdersCountByPizzeria int32 + OrdersCountByRestaurant int32 + OrdersCountBySite int32 + TotalCount int32 + type Period struct + Month int32 + Year int32 + type PeriodicRevenueListModel struct + Countries []MetricsHistoryModel + Errors []ErrorModel + Period *Period + type ProductImage struct + Size int32 + Urls []string + type ProductStatistic struct + Images []ProductImage + Name string + OrdersCount int32 + type ProductStatisticsModel struct + CountryCode string + CountryId int32 + CountryName string + Products []ProductStatistic + type ProductStatisticsModelBrandData struct + Brand string + Countries []ProductStatisticsModel + Errors []ErrorModel + type ProductsApiApiV2BrandCountryIdUnitIdProductsTopGetOpts struct + End optional.String + Start optional.String + type ProductsApiApiV2BrandProductsTopGetOpts struct + End optional.String + Start optional.String + type ProductsApiService service + func (a *ProductsApiService) ApiV2BrandCountryIdUnitIdProductsTopGet(ctx context.Context, brand string, countryId int32, unitId int32, ...) (ProductStatisticsModelBrandData, *http.Response, error) + func (a *ProductsApiService) ApiV2BrandProductsTopGet(ctx context.Context, brand string, ...) (ProductStatisticsModelBrandData, *http.Response, error) + type Rating struct + AvgCookingTime int32 + AvgRating float64 + AvgServiceTime int32 + FeedbackQty int32 + SummaryRates int32 + UnitUUId string + type RatingsApiService service + func (a *RatingsApiService) ApiV2BrandRatingsGet(ctx context.Context, brand string) (RatingsModelBrandData, *http.Response, error) + func (a *RatingsApiService) ApiV2RatingsGet(ctx context.Context) (RatingsModelBrandListData, *http.Response, error) + type RatingsModel struct + CountryCode string + CountryId int32 + CountryName string + Ratings []Rating + type RatingsModelBrandData struct + Brand string + Countries []RatingsModel + Errors []ErrorModel + type RatingsModelBrandListData struct + Brands []RatingsModelBrandData + type RevenueApiApiV2BrandCountryIdRevenueDailyGetOpts struct + From optional.Time + To optional.Time + type RevenueApiApiV2BrandRevenueWeeklyTopGetOpts struct + Count optional.Int32 + type RevenueApiApiV2RevenueWeeklyTopGetOpts struct + Count optional.Int32 + type RevenueApiService service + func (a *RevenueApiService) ApiV2BrandCountryIdRevenueDailyGet(ctx context.Context, brand string, countryId int32, ...) (CountryDailyRevenueModelBrandData, *http.Response, error) + func (a *RevenueApiService) ApiV2BrandRevenueDailyYearMonthDayGet(ctx context.Context, brand string, year int32, month int32, day int32) (BrandDailyRevenueListModel, *http.Response, error) + func (a *RevenueApiService) ApiV2BrandRevenueMonthsLastGet(ctx context.Context, brand string) (MonthTotalRevenueModelBrandData, *http.Response, error) + func (a *RevenueApiService) ApiV2BrandRevenueMonthsYearMonthGet(ctx context.Context, brand string, year int32, month int32) (TotalRevenueHistoryModelBrandData, *http.Response, error) + func (a *RevenueApiService) ApiV2BrandRevenueWeeklyTopGet(ctx context.Context, brand string, ...) (WeeklyTopModelBrandData, *http.Response, error) + func (a *RevenueApiService) ApiV2RevenueDailyYearMonthDayGet(ctx context.Context, year int32, month int32, day int32) (BrandListDailyRevenueListModel, *http.Response, error) + func (a *RevenueApiService) ApiV2RevenueMonthsLastGet(ctx context.Context) (MonthTotalRevenueModelBrandListData, *http.Response, error) + func (a *RevenueApiService) ApiV2RevenueMonthsYearMonthGet(ctx context.Context, year int32, month int32) (TotalRevenueHistoryModelBrandListData, *http.Response, error) + func (a *RevenueApiService) ApiV2RevenueWeeklyTopGet(ctx context.Context, localVarOptionals *RevenueApiApiV2RevenueWeeklyTopGetOpts) (WeeklyTopModelBrandListData, *http.Response, error) + type RevenueHistoryModel struct + CountryCode string + CountryId int32 + Monthes []RevenueModel + UnitId int32 + type RevenueHistoryModelBrandData struct + Brand string + Countries []RevenueHistoryModel + Errors []ErrorModel + type RevenueModel struct + DeliveryRevenue float64 + Month int32 + PickupRevenue float64 + Revenue float64 + StationaryRevenue float64 + Year int32 + type RouteRoot string + type ScheduleModel struct + WorkTime []WorkTimeModel + type StatisticsModel struct + AvgCheck float64 + CountryCode string + CountryId int32 + Date string + DeliveryOrderCount int32 + DeliveryRevenue float64 + OrderCount int32 + Revenue float64 + StationaryOrderCount int32 + StationaryRevenue float64 + UnitId int32 + type StatisticsModelBrandData struct + Brand string + Countries []StatisticsModel + Errors []ErrorModel + type StreetModel struct + Id int32 + Name string + TypeAbbr string + TypeName string + Type_ string + type TotalRevenueHistoryModel struct + CountryCode string + CountryId int32 + Monthes []TotalRevenueModel + type TotalRevenueHistoryModelBrandData struct + Brand string + Countries []TotalRevenueHistoryModel + Errors []ErrorModel + type TotalRevenueHistoryModelBrandListData struct + Brands []TotalRevenueHistoryModelBrandData + type TotalRevenueModel struct + Currency string + Month int32 + Revenue float64 + Year int32 + type TotalUnitCountListModel struct + Countries []UnitCountModel + Errors []ErrorModel + Total int32 + type UnitCountModel struct + CountryCode string + CountryId int32 + CountryName string + PizzeriaCount int32 + type UnitListModel struct + CountryCode string + CountryId int32 + CountryName string + Pizzerias []UnitModel + type UnitListModelBrandData struct + Brand string + Countries []UnitListModel + Errors []ErrorModel + type UnitListModelBrandListData struct + Brands []UnitListModelBrandData + type UnitModel struct + Address *AddressModel + Alias string + Coords *CoordinatesModel + Delivery *ScheduleModel + Id int64 + Name string + StartDate string + Stationary *ScheduleModel + TimeZoneShift int32 + Uuid string + WebcamUrl string + type UnitRevenueApiService service + func (a *UnitRevenueApiService) ApiV2BrandRevenueUnitCountryIdUnitIdDailyYearMonthDayGet(ctx context.Context, brand string, countryId int32, unitId int32, year int32, ...) (DailyRevenueListModel, *http.Response, error) + func (a *UnitRevenueApiService) ApiV2BrandRevenueUnitCountryIdUnitIdHistoryGet(ctx context.Context, brand string, countryId int32, unitId int32) (RevenueHistoryModelBrandData, *http.Response, error) + func (a *UnitRevenueApiService) ApiV2BrandRevenueUnitCountryIdUnitIdHistoryStartYearEndYearGet(ctx context.Context, brand string, countryId int32, unitId int32, ...) (RevenueHistoryModelBrandData, *http.Response, error) + func (a *UnitRevenueApiService) ApiV2BrandRevenueUnitCountryIdUnitIdMonthlyYearMonthGet(ctx context.Context, brand string, countryId int32, unitId int32, year int32, ...) (PeriodicRevenueListModel, *http.Response, error) + func (a *UnitRevenueApiService) ApiV2BrandRevenueUnitCountryIdUnitIdMonthsLastGet(ctx context.Context, brand string, countryId int32, unitId int32) (MonthRevenueHistoryModelBrandData, *http.Response, error) + func (a *UnitRevenueApiService) ApiV2BrandRevenueUnitCountryIdUnitIdTodayGet(ctx context.Context, brand string, countryId int32, unitId int32) (StatisticsModelBrandData, *http.Response, error) + func (a *UnitRevenueApiService) ApiV2BrandRevenueUnitCountryIdUnitIdWeekHistoryStartYearEndYearGet(ctx context.Context, brand string, countryId int32, unitId int32, ...) (WeekRevenueHistoryModelBrandData, *http.Response, error) + func (a *UnitRevenueApiService) ApiV2BrandRevenueUnitCountryIdUnitIdYesterdayGet(ctx context.Context, brand string, countryId int32, unitId int32) (StatisticsModelBrandData, *http.Response, error) + type UnitSingleModel struct + CountryCode string + CountryId int32 + CountryName string + Pizzeria *UnitModel + type UnitSingleModelBrandData struct + Brand string + Countries []UnitSingleModel + Errors []ErrorModel + type UnitsApiService service + func (a *UnitsApiService) ApiV2BrandUnitsAllCountryIdGet(ctx context.Context, brand string, countryId int32) (UnitListModelBrandData, *http.Response, error) + func (a *UnitsApiService) ApiV2BrandUnitsCountGet(ctx context.Context, brand string) (TotalUnitCountListModel, *http.Response, error) + func (a *UnitsApiService) ApiV2BrandUnitsCountMonthsYearMonthGet(ctx context.Context, brand string, year int32, month int32) (MonthUnitCountHistoryModelBrandData, *http.Response, error) + func (a *UnitsApiService) ApiV2BrandUnitsCountryIdUnitIdGet(ctx context.Context, brand string, countryId int32, unitId int32) (UnitSingleModelBrandData, *http.Response, error) + func (a *UnitsApiService) ApiV2UnitsAllCountryIdGet(ctx context.Context, countryId int32) (UnitListModelBrandListData, *http.Response, error) + func (a *UnitsApiService) ApiV2UnitsCountGet(ctx context.Context) (BrandListTotalUnitCountListModel, *http.Response, error) + func (a *UnitsApiService) ApiV2UnitsCountMonthsYearMonthGet(ctx context.Context, year int32, month int32) (MonthUnitCountHistoryModelBrandListData, *http.Response, error) + type WeekRevenueHistoryModel struct + CountryCode string + CountryId int32 + UnitId int32 + Weeks []WeekRevenueModel + type WeekRevenueHistoryModelBrandData struct + Brand string + Countries []WeekRevenueHistoryModel + Errors []ErrorModel + type WeekRevenueModel struct + Count int32 + DeliveryCount int32 + DeliveryRevenue float64 + EndDay time.Time + PickupCount int32 + PickupRevenue float64 + Revenue float64 + StartDay time.Time + StationaryCount int32 + StationaryRevenue float64 + WeekId int32 + type WeeklyTopModel struct + CountryCode string + CountryId int32 + Top []WeeklyTopUnitModel + type WeeklyTopModelBrandData struct + Brand string + Countries []WeeklyTopModel + Errors []ErrorModel + type WeeklyTopModelBrandListData struct + Brands []WeeklyTopModelBrandData + type WeeklyTopUnitModel struct + UnitId int32 + Weeks []WeekRevenueModel + type WorkTimeModel struct + End int32 + Start int32