models

package
v0.0.0-...-095c751 Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FilterAll = iota
	FilterActive
	FilterClosed
)
View Source
const (
	MaxPrice = 1000
)
View Source
const (
	SessionIDLen = 32
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AdditionalUserData

type AdditionalUserData struct {
	User        User   `json:"user"`
	Avatar      string `json:"avatarImg"`
	IsAuth      bool   `json:"isAuth"`
	CartNum     uint   `json:"cartNum"`
	FavNum      uint   `json:"favNum"`
	PhoneNumber string `json:"phoneNumber"`
}

func (AdditionalUserData) MarshalEasyJSON

func (v AdditionalUserData) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (AdditionalUserData) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*AdditionalUserData) UnmarshalEasyJSON

func (v *AdditionalUserData) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*AdditionalUserData) UnmarshalJSON

func (v *AdditionalUserData) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Advert struct {
	ID            uint      `json:"id"`
	UserID        uint      `json:"userId"`
	CityID        uint      `json:"cityId"`
	CategoryID    uint      `json:"categoryId"`
	Title         string    `json:"title"`
	Description   string    `json:"description"`
	Phone         string    `json:"phone"`
	Price         uint      `json:"price"`
	CreatedTime   time.Time `json:"created"`
	ClosedTime    time.Time `json:"closed"`
	Active        bool      `json:"active"`
	IsUsed        bool      `json:"isUsed"`
	Views         uint      `json:"views"`
	InFavourites  bool      `json:"inFavourites"`
	InCart        bool      `json:"inCart"`
	FavouritesNum uint      `json:"favouritesNum"`
	Deleted       bool      `json:"-"`
}

func (Advert) MarshalEasyJSON

func (v Advert) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Advert) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*Advert) Sanitize

func (adv *Advert) Sanitize()

func (*Advert) UnmarshalEasyJSON

func (v *Advert) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Advert) UnmarshalJSON

func (v *Advert) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type AdvertsFilter

type AdvertsFilter int

type AdvertsList

type AdvertsList struct {
	Adverts           []*Advert
	Categories        []*Category
	Cities            []*City
	AdvertsCounter    uint
	CitiesCounter     uint
	CategoriesCounter uint
	Mux               sync.RWMutex
}

func (AdvertsList) MarshalEasyJSON

func (v AdvertsList) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (AdvertsList) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*AdvertsList) UnmarshalEasyJSON

func (v *AdvertsList) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*AdvertsList) UnmarshalJSON

func (v *AdvertsList) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Amount

type Amount struct {
	Value    string `json:"value"`
	Currency string `json:"currency"`
}

func (Amount) MarshalEasyJSON

func (v Amount) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Amount) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*Amount) UnmarshalEasyJSON

func (v *Amount) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Amount) UnmarshalJSON

func (v *Amount) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Appended

type Appended struct {
	IsAppended bool `json:"isAppended"`
}

func (Appended) MarshalEasyJSON

func (v Appended) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Appended) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*Appended) UnmarshalEasyJSON

func (v *Appended) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Appended) UnmarshalJSON

func (v *Appended) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type AuthResponse

type AuthResponse struct {
	User   User   `json:"user"`
	Avatar string `json:"avatarImg"`
	IsAuth bool   `json:"isAuth"`
}

func (AuthResponse) MarshalEasyJSON

func (v AuthResponse) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (AuthResponse) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*AuthResponse) UnmarshalEasyJSON

func (v *AuthResponse) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*AuthResponse) UnmarshalJSON

func (v *AuthResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type AuthorizationDetails

type AuthorizationDetails struct {
	RRN          string       `json:"rrn"`
	AuthCode     string       `json:"auth_code"`
	ThreeDSecure ThreeDSecure `json:"three_d_secure"`
}

func (AuthorizationDetails) MarshalEasyJSON

func (v AuthorizationDetails) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (AuthorizationDetails) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*AuthorizationDetails) UnmarshalEasyJSON

func (v *AuthorizationDetails) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*AuthorizationDetails) UnmarshalJSON

func (v *AuthorizationDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type CSRFToken

type CSRFToken struct {
	TokenBody string
}

func (CSRFToken) MarshalEasyJSON

func (v CSRFToken) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CSRFToken) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*CSRFToken) UnmarshalEasyJSON

func (v *CSRFToken) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CSRFToken) UnmarshalJSON

func (v *CSRFToken) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Card

type Card struct {
	First6        string      `json:"first6"`
	Last4         string      `json:"last4"`
	ExpiryYear    string      `json:"expiry_year"`
	ExpiryMonth   string      `json:"expiry_month"`
	CardType      string      `json:"card_type"`
	CardProduct   CardProduct `json:"card_product"`
	IssuerCountry string      `json:"issuer_country"`
}

func (Card) MarshalEasyJSON

func (v Card) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Card) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*Card) UnmarshalEasyJSON

func (v *Card) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Card) UnmarshalJSON

func (v *Card) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type CardProduct

type CardProduct struct {
	Code string `json:"code"`
}

func (CardProduct) MarshalEasyJSON

func (v CardProduct) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CardProduct) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*CardProduct) UnmarshalEasyJSON

func (v *CardProduct) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CardProduct) UnmarshalJSON

func (v *CardProduct) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type CartItem

type CartItem struct {
	UserID   uint
	AdvertID uint
}

func (CartItem) MarshalEasyJSON

func (v CartItem) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CartItem) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*CartItem) UnmarshalEasyJSON

func (v *CartItem) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CartItem) UnmarshalJSON

func (v *CartItem) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type CartList

type CartList struct {
	Items []*CartItem
	Mux   sync.RWMutex
}

func (CartList) MarshalEasyJSON

func (v CartList) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CartList) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*CartList) UnmarshalEasyJSON

func (v *CartList) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CartList) UnmarshalJSON

func (v *CartList) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Category

type Category struct {
	ID          uint   `json:"id"`
	Name        string `json:"name"`
	Translation string `json:"translation"`
}

func (Category) MarshalEasyJSON

func (v Category) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Category) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*Category) UnmarshalEasyJSON

func (v *Category) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Category) UnmarshalJSON

func (v *Category) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type City

type City struct {
	ID          uint   `json:"id"`
	CityName    string `json:"name"`
	Translation string `json:"translation"`
}

func (City) MarshalEasyJSON

func (v City) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (City) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*City) UnmarshalEasyJSON

func (v *City) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*City) UnmarshalJSON

func (v *City) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type CityList

type CityList struct {
	CityItems []*City
	Mux       sync.RWMutex
}

func (CityList) MarshalEasyJSON

func (v CityList) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CityList) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*CityList) UnmarshalEasyJSON

func (v *CityList) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CityList) UnmarshalJSON

func (v *CityList) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Confirmation

type Confirmation struct {
	Type            string `json:"type"`
	ReturnURL       string `json:"return_url"`
	ConfirmationURL string `json:"confirmation_url"`
}

func (Confirmation) MarshalEasyJSON

func (v Confirmation) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Confirmation) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*Confirmation) UnmarshalEasyJSON

func (v *Confirmation) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Confirmation) UnmarshalJSON

func (v *Confirmation) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type DBInsertionAdvert

type DBInsertionAdvert struct {
	UserID      uint   `json:"userId"`
	CityID      uint   `json:"cityId"`
	CategoryID  uint   `json:"categoryId"`
	Title       string `json:"title"`
	Description string `json:"description"`
	Price       uint   `json:"price"`
}

func (DBInsertionAdvert) MarshalEasyJSON

func (v DBInsertionAdvert) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (DBInsertionAdvert) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*DBInsertionAdvert) UnmarshalEasyJSON

func (v *DBInsertionAdvert) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DBInsertionAdvert) UnmarshalJSON

func (v *DBInsertionAdvert) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type DBInsertionProfile

type DBInsertionProfile struct {
	UserID  uint   `json:"userId"`
	CityID  uint   `json:"cityId"`
	Phone   string `json:"phone"`
	Name    string `json:"name"`
	Surname string `json:"surname"`
}

func (DBInsertionProfile) MarshalEasyJSON

func (v DBInsertionProfile) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (DBInsertionProfile) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*DBInsertionProfile) UnmarshalEasyJSON

func (v *DBInsertionProfile) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DBInsertionProfile) UnmarshalJSON

func (v *DBInsertionProfile) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type DBInsertionUser

type DBInsertionUser struct {
	Email        string `json:"email"`
	PasswordHash string `json:"-"`
}

func (DBInsertionUser) MarshalEasyJSON

func (v DBInsertionUser) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (DBInsertionUser) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*DBInsertionUser) UnmarshalEasyJSON

func (v *DBInsertionUser) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DBInsertionUser) UnmarshalJSON

func (v *DBInsertionUser) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EditProfileNec

type EditProfileNec struct {
	Name          string `json:"name"`
	Surname       string `json:"surname"`
	Avatar        string `json:"avatar"`
	City          City   `json:"city"`
	Phone         string `json:"phone"`
	MerchantsName string `json:"merchantsName"`
	SubersCount   int    `json:"subersCount"`
	SubonsCount   int    `json:"subonsCount"`
}

func (EditProfileNec) MarshalEasyJSON

func (v EditProfileNec) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EditProfileNec) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*EditProfileNec) UnmarshalEasyJSON

func (v *EditProfileNec) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EditProfileNec) UnmarshalJSON

func (v *EditProfileNec) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ErrResponse

type ErrResponse struct {
	Code   int    `json:"code"`
	Status string `json:"status"`
}

func (ErrResponse) MarshalEasyJSON

func (v ErrResponse) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ErrResponse) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*ErrResponse) UnmarshalEasyJSON

func (v *ErrResponse) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ErrResponse) UnmarshalJSON

func (v *ErrResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Image

type Image struct{}

func (Image) MarshalEasyJSON

func (v Image) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Image) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*Image) UnmarshalEasyJSON

func (v *Image) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Image) UnmarshalJSON

func (v *Image) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type OkResponse

type OkResponse struct {
	Code  int `json:"code"`
	Items any `json:"items"`
}

func (OkResponse) MarshalEasyJSON

func (v OkResponse) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (OkResponse) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*OkResponse) UnmarshalEasyJSON

func (v *OkResponse) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*OkResponse) UnmarshalJSON

func (v *OkResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type OrderCreated

type OrderCreated struct {
	IsCreated bool `json:"isCreated"`
}

func (OrderCreated) MarshalEasyJSON

func (v OrderCreated) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (OrderCreated) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*OrderCreated) UnmarshalEasyJSON

func (v *OrderCreated) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*OrderCreated) UnmarshalJSON

func (v *OrderCreated) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type OrderItem

type OrderItem struct {
	ID            uint      `json:"id"`
	UserID        uint      `json:"userId"`
	AdvertID      uint      `json:"advertId"`
	Status        string    `json:"status"`
	Created       time.Time `json:"created"`
	Updated       time.Time `json:"updated"`
	Closed        time.Time `json:"closed"`
	Phone         string    `json:"phone"`
	Name          string    `json:"name"`
	Email         string    `json:"email"`
	Address       string    `json:"address"`
	DeliveryPrice uint      `json:"deliveryPrice"`
}

func (OrderItem) MarshalEasyJSON

func (v OrderItem) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (OrderItem) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*OrderItem) UnmarshalEasyJSON

func (v *OrderItem) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*OrderItem) UnmarshalJSON

func (v *OrderItem) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type OrderList

type OrderList struct {
	Items []*OrderItem
	Mux   sync.RWMutex
}

func (OrderList) MarshalEasyJSON

func (v OrderList) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (OrderList) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*OrderList) UnmarshalEasyJSON

func (v *OrderList) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*OrderList) UnmarshalJSON

func (v *OrderList) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Payment

type Payment struct {
	ID            string                 `json:"id"`
	Status        string                 `json:"status"`
	Amount        Amount                 `json:"amount"`
	Description   string                 `json:"description"`
	Recipient     Recipient              `json:"recipient"`
	PaymentMethod PaymentMethod          `json:"payment_method"`
	CreatedAt     string                 `json:"created_at"`
	Confirmation  Confirmation           `json:"confirmation"`
	Test          bool                   `json:"test"`
	Paid          bool                   `json:"paid"`
	Refundable    bool                   `json:"refundable"`
	Metadata      map[string]interface{} `json:"metadata"`
}

func (Payment) MarshalEasyJSON

func (v Payment) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Payment) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*Payment) UnmarshalEasyJSON

func (v *Payment) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Payment) UnmarshalJSON

func (v *Payment) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type PaymentFormResponse

type PaymentFormResponse struct {
	PaymentFormURL string `json:"paymentFormUrl"`
}

func (PaymentFormResponse) MarshalEasyJSON

func (v PaymentFormResponse) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (PaymentFormResponse) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*PaymentFormResponse) UnmarshalEasyJSON

func (v *PaymentFormResponse) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PaymentFormResponse) UnmarshalJSON

func (v *PaymentFormResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type PaymentInitAmount

type PaymentInitAmount struct {
	Value    string `json:"value"`
	Currency string `json:"currency"`
}

func (PaymentInitAmount) MarshalEasyJSON

func (v PaymentInitAmount) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (PaymentInitAmount) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*PaymentInitAmount) UnmarshalEasyJSON

func (v *PaymentInitAmount) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PaymentInitAmount) UnmarshalJSON

func (v *PaymentInitAmount) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type PaymentInitConfirmation

type PaymentInitConfirmation struct {
	Type      string `json:"type"`
	ReturnURL string `json:"return_url"`
}

func (PaymentInitConfirmation) MarshalEasyJSON

func (v PaymentInitConfirmation) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (PaymentInitConfirmation) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*PaymentInitConfirmation) UnmarshalEasyJSON

func (v *PaymentInitConfirmation) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PaymentInitConfirmation) UnmarshalJSON

func (v *PaymentInitConfirmation) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type PaymentInitData

type PaymentInitData struct {
	Amount            PaymentInitAmount            `json:"amount"`
	PaymentMethodData PaymentInitPaymentMethodData `json:"payment_method_data"`
	Confirmation      PaymentInitConfirmation      `json:"confirmation"`
	Description       string                       `json:"description"`
}

PaymentInitData

func (PaymentInitData) MarshalEasyJSON

func (v PaymentInitData) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (PaymentInitData) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*PaymentInitData) UnmarshalEasyJSON

func (v *PaymentInitData) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PaymentInitData) UnmarshalJSON

func (v *PaymentInitData) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type PaymentInitPaymentMethodData

type PaymentInitPaymentMethodData struct {
	Type string `json:"type"`
}

func (PaymentInitPaymentMethodData) MarshalEasyJSON

func (v PaymentInitPaymentMethodData) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (PaymentInitPaymentMethodData) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*PaymentInitPaymentMethodData) UnmarshalEasyJSON

func (v *PaymentInitPaymentMethodData) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PaymentInitPaymentMethodData) UnmarshalJSON

func (v *PaymentInitPaymentMethodData) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type PaymentList

type PaymentList struct {
	Type  string                     `json:"type"`
	Items []WaitingForCapturePayment `json:"items"`
}

Payment "pending"

func (PaymentList) MarshalEasyJSON

func (v PaymentList) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (PaymentList) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*PaymentList) UnmarshalEasyJSON

func (v *PaymentList) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PaymentList) UnmarshalJSON

func (v *PaymentList) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type PaymentMethod

type PaymentMethod struct {
	Type  string `json:"type"`
	ID    string `json:"id"`
	Saved bool   `json:"saved"`
}

func (PaymentMethod) MarshalEasyJSON

func (v PaymentMethod) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (PaymentMethod) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*PaymentMethod) UnmarshalEasyJSON

func (v *PaymentMethod) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PaymentMethod) UnmarshalJSON

func (v *PaymentMethod) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type PaymentsDatesList

type PaymentsDatesList struct {
	List []*time.Time
}

func (PaymentsDatesList) MarshalEasyJSON

func (v PaymentsDatesList) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (PaymentsDatesList) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*PaymentsDatesList) UnmarshalEasyJSON

func (v *PaymentsDatesList) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PaymentsDatesList) UnmarshalJSON

func (v *PaymentsDatesList) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type PaymnetUUIDList

type PaymnetUUIDList struct {
	UUIDList []string `json:"uuidList"`
}

func (PaymnetUUIDList) MarshalEasyJSON

func (v PaymnetUUIDList) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (PaymnetUUIDList) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*PaymnetUUIDList) UnmarshalEasyJSON

func (v *PaymnetUUIDList) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PaymnetUUIDList) UnmarshalJSON

func (v *PaymnetUUIDList) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type PaymnetUUIDListPad

type PaymnetUUIDListPad struct {
	Pad []*string `json:"pad"`
}

func (PaymnetUUIDListPad) MarshalEasyJSON

func (v PaymnetUUIDListPad) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (PaymnetUUIDListPad) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*PaymnetUUIDListPad) UnmarshalEasyJSON

func (v *PaymnetUUIDListPad) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PaymnetUUIDListPad) UnmarshalJSON

func (v *PaymnetUUIDListPad) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type PhotoPad

type PhotoPad struct {
	Photo []*string `json:"photo"`
}

func (PhotoPad) MarshalEasyJSON

func (v PhotoPad) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (PhotoPad) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*PhotoPad) UnmarshalEasyJSON

func (v *PhotoPad) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PhotoPad) UnmarshalJSON

func (v *PhotoPad) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type PhotoPadSoloImage

type PhotoPadSoloImage struct {
	Photo *string `json:"photo"`
}

func (PhotoPadSoloImage) MarshalEasyJSON

func (v PhotoPadSoloImage) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (PhotoPadSoloImage) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*PhotoPadSoloImage) UnmarshalEasyJSON

func (v *PhotoPadSoloImage) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PhotoPadSoloImage) UnmarshalJSON

func (v *PhotoPadSoloImage) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type PriceAndDescription

type PriceAndDescription struct {
	Price       string `json:"price"`
	Description string `json:"description"`
	URLEnding   string `json:"urlEnding"`
	Duration    string `json:"duration"`
}

func (PriceAndDescription) MarshalEasyJSON

func (v PriceAndDescription) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (PriceAndDescription) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*PriceAndDescription) UnmarshalEasyJSON

func (v *PriceAndDescription) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PriceAndDescription) UnmarshalJSON

func (v *PriceAndDescription) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type PriceHistoryItem

type PriceHistoryItem struct {
	UpdatedTime string  `json:"updatedTime"`
	NewPrice    float64 `json:"newPrice"` // ПЕРЕПИСАТЬ НА uint
}

func (PriceHistoryItem) MarshalEasyJSON

func (v PriceHistoryItem) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (PriceHistoryItem) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*PriceHistoryItem) UnmarshalEasyJSON

func (v *PriceHistoryItem) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PriceHistoryItem) UnmarshalJSON

func (v *PriceHistoryItem) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Profile

type Profile struct {
	ID              uint      `json:"id"`
	UserID          uint      `json:"userId"`
	Name            string    `json:"name"`
	Surname         string    `json:"surname"`
	City            City      `json:"city"`
	Phone           string    `json:"phoneNumber"`
	Avatar          string    `json:"avatar"`
	RegisterTime    time.Time `json:"regTime"`
	Rating          float32   `json:"rating"`
	ReactionsCount  float32   `json:"reactionsCount"`
	Approved        bool      `json:"approved"`
	MerchantsName   string    `json:"merchantsName"`
	SubersCount     int       `json:"subersCount"`
	SubonsCount     int       `json:"subonsCount"`
	AvatarIMG       string    `json:"avatarImg"`
	ActiveAddsCount int       `json:"activeAddsCount"`
	SoldAddsCount   int       `json:"soldAddsCount"`
	CartNum         uint      `json:"cartNum"`
	FavNum          uint      `json:"favNum"`
}

func (Profile) MarshalEasyJSON

func (v Profile) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Profile) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*Profile) Sanitize

func (prof *Profile) Sanitize()

func (*Profile) UnmarshalEasyJSON

func (v *Profile) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Profile) UnmarshalJSON

func (v *Profile) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ProfileAdvertsNec

type ProfileAdvertsNec struct {
	Filter AdvertsFilter `json:"filter"`
}

func (ProfileAdvertsNec) MarshalEasyJSON

func (v ProfileAdvertsNec) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ProfileAdvertsNec) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*ProfileAdvertsNec) UnmarshalEasyJSON

func (v *ProfileAdvertsNec) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ProfileAdvertsNec) UnmarshalJSON

func (v *ProfileAdvertsNec) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ProfileAppended

type ProfileAppended struct {
	IsAppended bool `json:"isAppended"`
}

func (ProfileAppended) MarshalEasyJSON

func (v ProfileAppended) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ProfileAppended) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*ProfileAppended) UnmarshalEasyJSON

func (v *ProfileAppended) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ProfileAppended) UnmarshalJSON

func (v *ProfileAppended) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ProfileList

type ProfileList struct {
	Profiles map[uint]*Profile
	Mux      sync.RWMutex
}

func (ProfileList) MarshalEasyJSON

func (v ProfileList) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ProfileList) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*ProfileList) UnmarshalEasyJSON

func (v *ProfileList) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ProfileList) UnmarshalJSON

func (v *ProfileList) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ProfilePad

type ProfilePad struct {
	Name    *string `json:"name"`
	Surname *string `json:"surname"`
	Phone   *string `json:"phoneNumber"`
	Avatar  *string `json:"avatar"`
}

func (ProfilePad) MarshalEasyJSON

func (v ProfilePad) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ProfilePad) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*ProfilePad) UnmarshalEasyJSON

func (v *ProfilePad) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ProfilePad) UnmarshalJSON

func (v *ProfilePad) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Promotion

type Promotion struct {
	NeedPing          bool             `json:"needPing"`
	IsPromoted        bool             `json:"isPromoted"`
	PromotionStart    pgtype.Timestamp `json:"promotionStart"`
	PromotionDuration pgtype.Interval  `json:"promotionDuration"`
}

func (Promotion) MarshalEasyJSON

func (v Promotion) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Promotion) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*Promotion) UnmarshalEasyJSON

func (v *Promotion) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Promotion) UnmarshalJSON

func (v *Promotion) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type QuestionResults

type QuestionResults struct {
	QuestionResults []uint
}

func (QuestionResults) MarshalEasyJSON

func (v QuestionResults) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (QuestionResults) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*QuestionResults) UnmarshalEasyJSON

func (v *QuestionResults) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*QuestionResults) UnmarshalJSON

func (v *QuestionResults) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ReceivedAdData

type ReceivedAdData struct {
	ID          uint   `json:"Id"` //nolint:tagliatelle
	UserID      uint   `json:"userId"`
	City        string `json:"city"`
	Category    string `json:"category"`
	Title       string `json:"title"`
	Description string `json:"description"`
	Price       uint   `json:"price"`
	IsUsed      bool   `json:"isUsed"`
	Phone       string `json:"phone"`
}

func (ReceivedAdData) MarshalEasyJSON

func (v ReceivedAdData) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ReceivedAdData) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*ReceivedAdData) UnmarshalEasyJSON

func (v *ReceivedAdData) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ReceivedAdData) UnmarshalJSON

func (v *ReceivedAdData) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ReceivedCartItem

type ReceivedCartItem struct {
	// UserID   uint `json:"userID"`
	AdvertID uint `json:"advertId"`
}

func (ReceivedCartItem) MarshalEasyJSON

func (v ReceivedCartItem) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ReceivedCartItem) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*ReceivedCartItem) UnmarshalEasyJSON

func (v *ReceivedCartItem) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ReceivedCartItem) UnmarshalJSON

func (v *ReceivedCartItem) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ReceivedCartItems

type ReceivedCartItems struct {
	// UserID    uint    `json:"userID"`
	AdvertIDs []uint `json:"advertIDs"`
}

func (ReceivedCartItems) MarshalEasyJSON

func (v ReceivedCartItems) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ReceivedCartItems) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*ReceivedCartItems) UnmarshalEasyJSON

func (v *ReceivedCartItems) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ReceivedCartItems) UnmarshalJSON

func (v *ReceivedCartItems) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ReceivedMerchantItem

type ReceivedMerchantItem struct {
	MerchantID uint `json:"merchantId"`
}

func (ReceivedMerchantItem) MarshalEasyJSON

func (v ReceivedMerchantItem) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ReceivedMerchantItem) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*ReceivedMerchantItem) UnmarshalEasyJSON

func (v *ReceivedMerchantItem) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ReceivedMerchantItem) UnmarshalJSON

func (v *ReceivedMerchantItem) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ReceivedOrderItem

type ReceivedOrderItem struct {
	AdvertID        uint   `json:"advertID"`
	Phone           string `json:"phone"`
	Name            string `json:"name"`
	Email           string `json:"email"`
	Adress          string `json:"adress"`
	DeliveryPrice   uint   `json:"deliveryPrice"`
	DeliveryAddress string `json:"address"`
}

func (ReceivedOrderItem) MarshalEasyJSON

func (v ReceivedOrderItem) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ReceivedOrderItem) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*ReceivedOrderItem) UnmarshalEasyJSON

func (v *ReceivedOrderItem) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ReceivedOrderItem) UnmarshalJSON

func (v *ReceivedOrderItem) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ReceivedOrderItems

type ReceivedOrderItems struct {
	Adverts []*ReceivedOrderItem `json:"adverts"`
}

func (ReceivedOrderItems) MarshalEasyJSON

func (v ReceivedOrderItems) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ReceivedOrderItems) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*ReceivedOrderItems) UnmarshalEasyJSON

func (v *ReceivedOrderItems) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ReceivedOrderItems) UnmarshalJSON

func (v *ReceivedOrderItems) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ReceivedPaymentFormItem

type ReceivedPaymentFormItem struct {
	AdvertID uint `json:"advertId"`
	Rate     uint `json:"rate"`
}

func (ReceivedPaymentFormItem) MarshalEasyJSON

func (v ReceivedPaymentFormItem) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ReceivedPaymentFormItem) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*ReceivedPaymentFormItem) UnmarshalEasyJSON

func (v *ReceivedPaymentFormItem) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ReceivedPaymentFormItem) UnmarshalJSON

func (v *ReceivedPaymentFormItem) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Recipient

type Recipient struct {
	AccountID string `json:"account_id"`
	GatewayID string `json:"gateway_id"`
}

func (Recipient) MarshalEasyJSON

func (v Recipient) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Recipient) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*Recipient) UnmarshalEasyJSON

func (v *Recipient) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Recipient) UnmarshalJSON

func (v *Recipient) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ReturningAdInList

type ReturningAdInList struct {
	ID           uint     `json:"id"`
	Title        string   `json:"title"`
	Price        uint     `json:"price"`
	City         string   `json:"city"`
	Category     string   `json:"category"`
	Photos       []string `json:"photos"`
	PhotosIMG    []string `json:"photosIMG"`
	InFavourites bool     `json:"inFavourites"`
	InCart       bool     `json:"inCart"`
	IsPromoted   bool     `json:"isPromoted"`
	IsActive     bool     `json:"isActive"`
}

func (ReturningAdInList) MarshalEasyJSON

func (v ReturningAdInList) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ReturningAdInList) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*ReturningAdInList) Sanitize

func (advl *ReturningAdInList) Sanitize()

func (*ReturningAdInList) UnmarshalEasyJSON

func (v *ReturningAdInList) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ReturningAdInList) UnmarshalJSON

func (v *ReturningAdInList) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ReturningAdvert

type ReturningAdvert struct {
	Advert    Advert    `json:"advert"`
	Promotion Promotion `json:"promotion"`
	City      City      `json:"city"`
	Category  Category  `json:"category"`
	Photos    []string  `json:"photos"`
	PhotosIMG []string  `json:"photosIMG"`
}

func (ReturningAdvert) MarshalEasyJSON

func (v ReturningAdvert) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ReturningAdvert) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*ReturningAdvert) UnmarshalEasyJSON

func (v *ReturningAdvert) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ReturningAdvert) UnmarshalJSON

func (v *ReturningAdvert) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ReturningAdvertList

type ReturningAdvertList struct {
	AdvertItems []*ReturningAdvert
	Mux         sync.RWMutex
}

func (ReturningAdvertList) MarshalEasyJSON

func (v ReturningAdvertList) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ReturningAdvertList) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*ReturningAdvertList) UnmarshalEasyJSON

func (v *ReturningAdvertList) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ReturningAdvertList) UnmarshalJSON

func (v *ReturningAdvertList) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ReturningOrder

type ReturningOrder struct {
	OrderItem       OrderItem       `json:"orderItem"`
	ReturningAdvert ReturningAdvert `json:"advert"`
}

func (ReturningOrder) MarshalEasyJSON

func (v ReturningOrder) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ReturningOrder) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*ReturningOrder) UnmarshalEasyJSON

func (v *ReturningOrder) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ReturningOrder) UnmarshalJSON

func (v *ReturningOrder) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Session

type Session struct {
	UserID uint32
	Value  string
}

func (Session) MarshalEasyJSON

func (v Session) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Session) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*Session) UnmarshalEasyJSON

func (v *Session) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Session) UnmarshalJSON

func (v *Session) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetProfileCityNec

type SetProfileCityNec struct {
	City City `json:"city"`
}

func (SetProfileCityNec) MarshalEasyJSON

func (v SetProfileCityNec) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetProfileCityNec) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*SetProfileCityNec) UnmarshalEasyJSON

func (v *SetProfileCityNec) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetProfileCityNec) UnmarshalJSON

func (v *SetProfileCityNec) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetProfileNec

type SetProfileNec struct {
	Name    string `json:"name"`
	Surname string `json:"surname"`
	Avatar  Image  `json:"avatar"`
}

func (SetProfileNec) MarshalEasyJSON

func (v SetProfileNec) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetProfileNec) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*SetProfileNec) UnmarshalEasyJSON

func (v *SetProfileNec) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetProfileNec) UnmarshalJSON

func (v *SetProfileNec) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetProfilePhoneNec

type SetProfilePhoneNec struct {
	Phone string `json:"phone"`
}

func (SetProfilePhoneNec) MarshalEasyJSON

func (v SetProfilePhoneNec) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetProfilePhoneNec) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*SetProfilePhoneNec) UnmarshalEasyJSON

func (v *SetProfilePhoneNec) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetProfilePhoneNec) UnmarshalJSON

func (v *SetProfilePhoneNec) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetProfileRatingNec

type SetProfileRatingNec struct {
	Reaction float64 `json:"reaction"`
}

func (SetProfileRatingNec) MarshalEasyJSON

func (v SetProfileRatingNec) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetProfileRatingNec) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*SetProfileRatingNec) UnmarshalEasyJSON

func (v *SetProfileRatingNec) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetProfileRatingNec) UnmarshalJSON

func (v *SetProfileRatingNec) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Status

type Status struct {
	ID   uint   `json:"id"`
	Name string `json:"name"`
}

func (Status) MarshalEasyJSON

func (v Status) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Status) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*Status) UnmarshalEasyJSON

func (v *Status) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Status) UnmarshalJSON

func (v *Status) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Survey

type Survey struct {
	SurveyTitle       string `json:"surveyTitle"`
	SurveyDescription string `json:"surveyDescription"`
	QuestionNumber    uint   `json:"questionNumber"`
}

func (Survey) MarshalEasyJSON

func (v Survey) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Survey) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*Survey) UnmarshalEasyJSON

func (v *Survey) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Survey) UnmarshalJSON

func (v *Survey) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SurveyAnswer

type SurveyAnswer struct {
	AnswerNum   uint `json:"answerNum"`
	AnswerValue uint `json:"answerValue"`
}

func (SurveyAnswer) MarshalEasyJSON

func (v SurveyAnswer) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SurveyAnswer) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*SurveyAnswer) UnmarshalEasyJSON

func (v *SurveyAnswer) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SurveyAnswer) UnmarshalJSON

func (v *SurveyAnswer) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SurveyAnswersList

type SurveyAnswersList struct {
	UserID   uint            `json:"userId"`
	SurveyID uint            `json:"surveyId"`
	Survey   []*SurveyAnswer `json:"survey"`
}

func (SurveyAnswersList) MarshalEasyJSON

func (v SurveyAnswersList) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SurveyAnswersList) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*SurveyAnswersList) UnmarshalEasyJSON

func (v *SurveyAnswersList) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SurveyAnswersList) UnmarshalJSON

func (v *SurveyAnswersList) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SurveyCheckResponse

type SurveyCheckResponse struct {
	IsChecked bool `json:"isChecked"`
}

func (SurveyCheckResponse) MarshalEasyJSON

func (v SurveyCheckResponse) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SurveyCheckResponse) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*SurveyCheckResponse) UnmarshalEasyJSON

func (v *SurveyCheckResponse) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SurveyCheckResponse) UnmarshalJSON

func (v *SurveyCheckResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SurveyResults

type SurveyResults struct {
	SurveyTitle       string             `json:"surveyTitle"`
	SurveyDescription string             `json:"surveyDescription"`
	Results           []*QuestionResults `json:"results"`
}

func (SurveyResults) MarshalEasyJSON

func (v SurveyResults) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SurveyResults) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*SurveyResults) UnmarshalEasyJSON

func (v *SurveyResults) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SurveyResults) UnmarshalJSON

func (v *SurveyResults) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ThreeDSecure

type ThreeDSecure struct {
	Applied            bool   `json:"applied"`
	Protocol           string `json:"protocol"`
	MethodCompleted    bool   `json:"method_completed"`
	ChallengeCompleted bool   `json:"challenge_completed"`
}

func (ThreeDSecure) MarshalEasyJSON

func (v ThreeDSecure) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ThreeDSecure) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*ThreeDSecure) UnmarshalEasyJSON

func (v *ThreeDSecure) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ThreeDSecure) UnmarshalJSON

func (v *ThreeDSecure) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type UnauthorizedUser

type UnauthorizedUser struct {
	Email          string `json:"email"`
	Password       string `json:"password"`
	PasswordRepeat string `json:"passwordRepeat"`
}

func (UnauthorizedUser) MarshalEasyJSON

func (v UnauthorizedUser) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (UnauthorizedUser) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*UnauthorizedUser) UnmarshalEasyJSON

func (v *UnauthorizedUser) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*UnauthorizedUser) UnmarshalJSON

func (v *UnauthorizedUser) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type User

type User struct {
	ID           uint   `json:"id"`
	Email        string `json:"email"`
	PasswordHash string `json:"-"`
}

func (User) MarshalEasyJSON

func (v User) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (User) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*User) UnmarshalEasyJSON

func (v *User) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*User) UnmarshalJSON

func (v *User) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type WaitingForCapturePayment

type WaitingForCapturePayment struct {
	ID                   string                                `json:"id"`
	Status               string                                `json:"status"`
	Amount               WaitingForCapturePaymentAmount        `json:"amount"`
	Description          string                                `json:"description"`
	Recipient            WaitingForCapturePaymentRecipient     `json:"recipient"`
	PaymentMethod        WaitingForCapturePaymentPaymentMethod `json:"payment_method"`
	CreatedAt            string                                `json:"created_at"`
	ExpiresAt            string                                `json:"expires_at"`
	Test                 bool                                  `json:"test"`
	Paid                 bool                                  `json:"paid"`
	Refundable           bool                                  `json:"refundable"`
	Metadata             map[string]interface{}                `json:"metadata"`
	AuthorizationDetails AuthorizationDetails                  `json:"authorization_details"`
}

Payment "waiting_for_capture"

func (WaitingForCapturePayment) MarshalEasyJSON

func (v WaitingForCapturePayment) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (WaitingForCapturePayment) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*WaitingForCapturePayment) UnmarshalEasyJSON

func (v *WaitingForCapturePayment) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*WaitingForCapturePayment) UnmarshalJSON

func (v *WaitingForCapturePayment) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type WaitingForCapturePaymentAmount

type WaitingForCapturePaymentAmount struct {
	Value    string `json:"value"`
	Currency string `json:"currency"`
}

func (WaitingForCapturePaymentAmount) MarshalEasyJSON

func (v WaitingForCapturePaymentAmount) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (WaitingForCapturePaymentAmount) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*WaitingForCapturePaymentAmount) UnmarshalEasyJSON

func (v *WaitingForCapturePaymentAmount) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*WaitingForCapturePaymentAmount) UnmarshalJSON

func (v *WaitingForCapturePaymentAmount) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type WaitingForCapturePaymentPaymentMethod

type WaitingForCapturePaymentPaymentMethod struct {
	Type  string `json:"type"`
	ID    string `json:"id"`
	Saved bool   `json:"saved"`
	Title string `json:"title"`
	Card  Card   `json:"card"`
}

func (WaitingForCapturePaymentPaymentMethod) MarshalEasyJSON

MarshalEasyJSON supports easyjson.Marshaler interface

func (WaitingForCapturePaymentPaymentMethod) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*WaitingForCapturePaymentPaymentMethod) UnmarshalEasyJSON

func (v *WaitingForCapturePaymentPaymentMethod) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*WaitingForCapturePaymentPaymentMethod) UnmarshalJSON

func (v *WaitingForCapturePaymentPaymentMethod) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type WaitingForCapturePaymentRecipient

type WaitingForCapturePaymentRecipient struct {
	AccountID string `json:"account_id"`
	GatewayID string `json:"gateway_id"`
}

func (WaitingForCapturePaymentRecipient) MarshalEasyJSON

func (v WaitingForCapturePaymentRecipient) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (WaitingForCapturePaymentRecipient) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*WaitingForCapturePaymentRecipient) UnmarshalEasyJSON

func (v *WaitingForCapturePaymentRecipient) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*WaitingForCapturePaymentRecipient) UnmarshalJSON

func (v *WaitingForCapturePaymentRecipient) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

Jump to

Keyboard shortcuts

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