2023-05-17 03:39:29 +00:00
// Package swagger provides primitives to interact with the openapi HTTP API.
//
2024-02-22 23:53:53 +00:00
// Code generated by github.com/deepmap/oapi-codegen/v2 version v2.1.0 DO NOT EDIT.
2023-05-17 03:39:29 +00:00
package swagger
import (
"time"
)
const (
BearerScopes = "Bearer.Scopes"
)
2023-05-30 13:38:56 +00:00
// Defines values for AccountStatus.
const (
2023-06-16 10:14:06 +00:00
Nko AccountStatus = "nko"
No AccountStatus = "no"
Org AccountStatus = "org"
2023-05-30 13:38:56 +00:00
)
2023-06-13 14:01:07 +00:00
// Defines values for PaymentType.
const (
PaymentTypeAlfabank PaymentType = "alfabank"
PaymentTypeB2bSberbank PaymentType = "b2bSberbank"
PaymentTypeBankCard PaymentType = "bankCard"
PaymentTypeCash PaymentType = "cash"
PaymentTypeInstallments PaymentType = "installments"
PaymentTypeMobile PaymentType = "mobile"
PaymentTypeQiwi PaymentType = "qiwi"
PaymentTypeSberbank PaymentType = "sberbank"
PaymentTypeSbp PaymentType = "sbp"
PaymentTypeTinkoffBank PaymentType = "tinkoffBank"
PaymentTypeYoomoney PaymentType = "yoomoney"
)
2023-05-17 03:39:29 +00:00
// Account defines model for Account.
type Account struct {
2023-06-13 14:01:07 +00:00
Id string ` json:"_id" `
Cart [ ] string ` json:"cart" `
CreatedAt time . Time ` json:"createdAt" `
DeletedAt * time . Time ` json:"deletedAt,omitempty" `
2023-06-15 13:32:36 +00:00
IsDeleted * bool ` json:"isDeleted,omitempty" `
2023-06-13 14:01:07 +00:00
Name Name ` json:"name" `
Status AccountStatus ` json:"status" `
UpdatedAt time . Time ` json:"updatedAt" `
UserId string ` json:"userId" `
Wallet Wallet ` json:"wallet" `
2023-05-17 03:39:29 +00:00
}
2023-06-16 10:14:06 +00:00
// AccountStatus defines model for AccountStatus.
2023-05-30 13:38:56 +00:00
type AccountStatus string
2023-06-13 14:01:07 +00:00
// BankCard defines model for BankCard.
type BankCard struct {
// Cardholder Имя владельца карты
Cardholder * string ` json:"cardholder,omitempty" `
// Csc Код CVC2 или CVV2, 3 или 4 символа, печатается на обратной стороне карты
Csc * string ` json:"csc,omitempty" `
2023-06-14 08:19:42 +00:00
// ExpiryMonth Месяц истечения срока карты (MM)
2023-06-13 14:01:07 +00:00
ExpiryMonth string ` json:"expiryMonth" `
2023-06-14 08:19:42 +00:00
// ExpiryYear Год истечения срока карты (YYYY)
2023-06-13 14:01:07 +00:00
ExpiryYear string ` json:"expiryYear" `
// Number Номер карты
Number string ` json:"number" `
}
2023-05-17 03:39:29 +00:00
// Error defines model for Error.
type Error struct {
Message string ` json:"message" `
StatusCode * int64 ` json:"statusCode,omitempty" `
}
// History defines model for History.
type History struct {
2023-05-17 20:27:09 +00:00
Comment string ` json:"comment" `
CreatedAt time . Time ` json:"createdAt" `
2023-05-17 03:39:29 +00:00
DeletedAt * time . Time ` json:"deletedAt,omitempty" `
2023-05-17 20:27:09 +00:00
Id string ` json:"id" `
2023-06-15 13:32:36 +00:00
IsDeleted * bool ` json:"isDeleted,omitempty" `
2023-05-17 03:39:29 +00:00
2023-05-23 15:24:52 +00:00
// RawDetails Я пока не могу предположить, какие будут фильтры по истории, поэтому предлагаю в это поле просто класть строку с json. Ибо для каждого типа записи она своя.
2023-06-15 12:31:34 +00:00
RawDetails * string ` json:"rawDetails,omitempty" `
Type string ` json:"type" `
UpdatedAt time . Time ` json:"updatedAt" `
UserId string ` json:"userId" `
2023-05-17 03:39:29 +00:00
}
2023-05-30 13:20:52 +00:00
// Name defines model for Name.
type Name struct {
2023-06-13 14:01:07 +00:00
Firstname * string ` json:"firstname,omitempty" `
2023-06-16 10:34:54 +00:00
Middlename * string ` json:"middlename,omitempty" `
2023-05-30 13:20:52 +00:00
Orgname * string ` json:"orgname,omitempty" `
Secondname * string ` json:"secondname,omitempty" `
}
2023-06-13 14:01:07 +00:00
// PaymentType defines model for PaymentType.
type PaymentType string
2024-04-15 09:27:00 +00:00
// QuizLogoStat defines model for QuizLogoStat.
type QuizLogoStat struct {
// Count Общее количество
Count * int ` json:"count,omitempty" `
Items * map [ string ] struct {
// Money Количество денег
Money * int ` json:"money,omitempty" `
Quizes * map [ string ] [ ] int ` json:"quizes,omitempty" `
// Regs Количество регистраций
Regs * int ` json:"regs,omitempty" `
} ` json:"items,omitempty" `
}
2023-12-22 15:12:43 +00:00
// TariffID defines model for TariffID.
type TariffID struct {
ID * string ` json:"ID,omitempty" `
}
2023-05-17 03:39:29 +00:00
// Wallet defines model for Wallet.
type Wallet struct {
2023-05-17 20:27:09 +00:00
// Cash Сумма money переведённая на текущий курс
2023-05-22 16:42:15 +00:00
Cash int64 ` json:"cash" `
2023-05-17 20:27:09 +00:00
// Currency Текущий курс валюты
Currency string ` json:"currency" `
2023-05-17 03:39:29 +00:00
2023-05-17 20:27:09 +00:00
// Money Деньги на счету в копейках. Чтобы при перессчётах не возникало денег изниоткуда. фиксируемся к одной валюте, она будет внутренней, никому её не покажем
2023-05-22 16:42:15 +00:00
Money int64 ` json:"money" `
2023-05-30 13:38:56 +00:00
2023-06-13 14:01:07 +00:00
// PurchasesAmount Общая сумма денег, которые внёс пользователь
PurchasesAmount int64 ` json:"purchasesAmount" `
// Spent Общая сумма потраченных денег за всё время существования аккаунта
Spent int64 ` json:"spent" `
2023-05-17 03:39:29 +00:00
}
2023-06-15 12:31:34 +00:00
// SetAccountVerificationStatusJSONBody defines parameters for SetAccountVerificationStatus.
type SetAccountVerificationStatusJSONBody struct {
2023-06-16 10:14:06 +00:00
Status * AccountStatus ` json:"status,omitempty" `
2023-05-30 13:38:56 +00:00
}
2023-05-17 03:39:29 +00:00
// PaginationAccountsParams defines parameters for PaginationAccounts.
type PaginationAccountsParams struct {
// Page Номер страницы, начиная с 1
Page * int ` form:"page,omitempty" json:"page,omitempty" `
// Limit размер страницы
Limit * int ` form:"limit,omitempty" json:"limit,omitempty" `
}
// RemoveFromCartParams defines parameters for RemoveFromCart.
type RemoveFromCartParams struct {
Id string ` form:"id" json:"id" `
}
2023-05-19 09:08:15 +00:00
// Add2cartParams defines parameters for Add2cart.
type Add2cartParams struct {
Id string ` form:"id" json:"id" `
2023-05-17 03:39:29 +00:00
}
// UpdateCurrenciesJSONBody defines parameters for UpdateCurrencies.
type UpdateCurrenciesJSONBody = [ ] string
// GetHistoryParams defines parameters for GetHistory.
type GetHistoryParams struct {
2023-05-17 20:27:09 +00:00
// Page Номер страницы, начиная с 1
Page * int ` form:"page,omitempty" json:"page,omitempty" `
2023-05-17 03:39:29 +00:00
2023-05-17 20:27:09 +00:00
// Limit Размер страницы
Limit * int ` form:"limit,omitempty" json:"limit,omitempty" `
2023-09-14 10:02:32 +00:00
// Type Тип события
Type * string ` form:"type,omitempty" json:"type,omitempty" `
2023-12-20 12:42:41 +00:00
// AccountID Идентификатор аккаунта. Если не указан, будет использоваться идентификатор из токена.
AccountID * string ` form:"accountID,omitempty" json:"accountID,omitempty" `
}
2023-12-22 15:12:43 +00:00
// CalculateLTVJSONBody defines parameters for CalculateLTV.
type CalculateLTVJSONBody struct {
// From Начальная дата в формате Unix timestamp. Если 0, устанавливает начало истории.
From int64 ` json:"from" `
// To Конечная дата в формате Unix timestamp. Если 0, устанавливает текущее время.
To int64 ` json:"to" `
}
2024-04-15 09:27:00 +00:00
// QuizLogoStatJSONBody defines parameters for QuizLogoStat.
type QuizLogoStatJSONBody struct {
// From таймштамп времени, после которого выбирать статистику. если 0 или не передано - этого ограничения нет. нижняя граница времени
From * int ` json:"from,omitempty" `
// Limit лимит выборки
Limit * int ` json:"limit,omitempty" `
// Page страница выборки
Page * int ` json:"page,omitempty" `
// To таймштамп времени, до которого выбирать статистику. если 0 или не передано - этого ограничения нет. верхняя граница времени
To * int ` json:"to,omitempty" `
}
2024-01-31 20:25:30 +00:00
// GetRecentTariffsJSONBody defines parameters for GetRecentTariffs.
type GetRecentTariffsJSONBody struct {
Id string ` json:"id" `
}
2023-11-02 10:01:18 +00:00
// SendReportJSONBody defines parameters for SendReport.
type SendReportJSONBody struct {
Id string ` json:"id" `
2023-05-17 03:39:29 +00:00
}
2023-06-14 17:28:43 +00:00
// ChangeCurrencyJSONBody defines parameters for ChangeCurrency.
type ChangeCurrencyJSONBody struct {
Currency string ` json:"currency" `
}
2023-06-13 14:01:07 +00:00
// RequestMoneyJSONBody defines parameters for RequestMoney.
type RequestMoneyJSONBody struct {
Amount int ` json:"amount" `
BankCard * BankCard ` json:"bankCard,omitempty" `
// Currency ISO-4217 формат
Currency string ` json:"currency" `
Login * string ` json:"login,omitempty" `
PhoneNumber * string ` json:"phoneNumber,omitempty" `
2023-06-14 08:19:42 +00:00
ReturnUrl * string ` json:"returnUrl,omitempty" `
2023-06-13 14:01:07 +00:00
Type PaymentType ` json:"type" `
2023-05-17 03:39:29 +00:00
}
2024-02-15 09:03:24 +00:00
// PostWalletRspayJSONBody defines parameters for PostWalletRspay.
type PostWalletRspayJSONBody struct {
2024-02-22 23:53:53 +00:00
Money * float32 ` json:"money,omitempty" `
2024-02-15 09:03:24 +00:00
}
2023-05-30 13:20:52 +00:00
// ChangeAccountJSONRequestBody defines body for ChangeAccount for application/json ContentType.
type ChangeAccountJSONRequestBody = Name
2023-06-15 12:31:34 +00:00
// SetAccountVerificationStatusJSONRequestBody defines body for SetAccountVerificationStatus for application/json ContentType.
type SetAccountVerificationStatusJSONRequestBody SetAccountVerificationStatusJSONBody
2023-05-30 13:38:56 +00:00
2023-05-17 03:39:29 +00:00
// UpdateCurrenciesJSONRequestBody defines body for UpdateCurrencies for application/json ContentType.
type UpdateCurrenciesJSONRequestBody = UpdateCurrenciesJSONBody
2023-12-22 15:12:43 +00:00
// CalculateLTVJSONRequestBody defines body for CalculateLTV for application/json ContentType.
type CalculateLTVJSONRequestBody CalculateLTVJSONBody
2024-04-15 09:27:00 +00:00
// QuizLogoStatJSONRequestBody defines body for QuizLogoStat for application/json ContentType.
type QuizLogoStatJSONRequestBody QuizLogoStatJSONBody
2023-12-22 15:12:43 +00:00
// GetRecentTariffsJSONRequestBody defines body for GetRecentTariffs for application/json ContentType.
type GetRecentTariffsJSONRequestBody GetRecentTariffsJSONBody
2023-11-02 10:01:18 +00:00
// SendReportJSONRequestBody defines body for SendReport for application/json ContentType.
type SendReportJSONRequestBody SendReportJSONBody
2023-05-17 03:39:29 +00:00
// ChangeCurrencyJSONRequestBody defines body for ChangeCurrency for application/json ContentType.
type ChangeCurrencyJSONRequestBody ChangeCurrencyJSONBody
2023-06-14 17:28:43 +00:00
// RequestMoneyJSONRequestBody defines body for RequestMoney for application/json ContentType.
type RequestMoneyJSONRequestBody RequestMoneyJSONBody
2024-02-15 09:03:24 +00:00
// PostWalletRspayJSONRequestBody defines body for PostWalletRspay for application/json ContentType.
type PostWalletRspayJSONRequestBody PostWalletRspayJSONBody