Documentation ¶
Index ¶
- Constants
- type AdditionalUserData
- type Advert
- type AdvertsFilter
- type AdvertsList
- type Amount
- type Appended
- type AuthResponse
- type AuthorizationDetails
- type CSRFToken
- type Card
- type CardProduct
- type CartItem
- type CartList
- type Category
- type City
- type CityList
- type Confirmation
- type DBInsertionAdvert
- type DBInsertionProfile
- type DBInsertionUser
- type EditProfileNec
- type ErrResponse
- type Image
- type OkResponse
- type OrderCreated
- type OrderItem
- type OrderList
- type Payment
- type PaymentFormResponse
- type PaymentInitAmount
- type PaymentInitConfirmation
- type PaymentInitData
- type PaymentInitPaymentMethodData
- type PaymentList
- type PaymentMethod
- type PaymentsDatesList
- type PaymnetUUIDList
- type PaymnetUUIDListPad
- type PhotoPad
- type PhotoPadSoloImage
- type PriceAndDescription
- type PriceHistoryItem
- type Profile
- type ProfileAdvertsNec
- type ProfileAppended
- type ProfileList
- type ProfilePad
- type Promotion
- type QuestionResults
- type ReceivedAdData
- type ReceivedCartItem
- type ReceivedCartItems
- type ReceivedMerchantItem
- type ReceivedOrderItem
- type ReceivedOrderItems
- type ReceivedPaymentFormItem
- type Recipient
- type ReturningAdInList
- type ReturningAdvert
- type ReturningAdvertList
- type ReturningOrder
- type Session
- type SetProfileCityNec
- type SetProfileNec
- type SetProfilePhoneNec
- type SetProfileRatingNec
- type Status
- type Survey
- type SurveyAnswer
- type SurveyAnswersList
- type SurveyCheckResponse
- type SurveyResults
- type ThreeDSecure
- type UnauthorizedUser
- type User
- type WaitingForCapturePayment
- type WaitingForCapturePaymentAmount
- type WaitingForCapturePaymentPaymentMethod
- func (v WaitingForCapturePaymentPaymentMethod) MarshalEasyJSON(w *jwriter.Writer)
- func (v WaitingForCapturePaymentPaymentMethod) MarshalJSON() ([]byte, error)
- func (v *WaitingForCapturePaymentPaymentMethod) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *WaitingForCapturePaymentPaymentMethod) UnmarshalJSON(data []byte) error
- type WaitingForCapturePaymentRecipient
- func (v WaitingForCapturePaymentRecipient) MarshalEasyJSON(w *jwriter.Writer)
- func (v WaitingForCapturePaymentRecipient) MarshalJSON() ([]byte, error)
- func (v *WaitingForCapturePaymentRecipient) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *WaitingForCapturePaymentRecipient) UnmarshalJSON(data []byte) error
Constants ¶
const ( FilterAll = iota FilterActive FilterClosed )
const (
MaxPrice = 1000
)
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 ¶
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 ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Advert) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Advert) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Advert) UnmarshalJSON ¶
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 ¶
func (Amount) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Amount) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Amount) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Amount) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Appended ¶
type Appended struct {
IsAppended bool `json:"isAppended"`
}
func (Appended) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Appended) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Appended) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Appended) UnmarshalJSON ¶
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 ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (CSRFToken) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*CSRFToken) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*CSRFToken) UnmarshalJSON ¶
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 ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Card) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Card) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Card) UnmarshalJSON ¶
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 ¶
func (CartItem) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (CartItem) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*CartItem) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*CartItem) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type CartList ¶
func (CartList) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (CartList) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*CartList) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*CartList) UnmarshalJSON ¶
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 ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Category) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Category) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Category) UnmarshalJSON ¶
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 ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (City) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*City) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*City) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type CityList ¶
func (CityList) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (CityList) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*CityList) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*CityList) UnmarshalJSON ¶
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 ¶
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 ¶
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 ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Image) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Image) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Image) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type OkResponse ¶
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 ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (OrderItem) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*OrderItem) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*OrderItem) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type OrderList ¶
func (OrderList) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (OrderList) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*OrderList) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*OrderList) UnmarshalJSON ¶
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 ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Payment) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Payment) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Payment) UnmarshalJSON ¶
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 ¶
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 ¶
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 ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (PhotoPad) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*PhotoPad) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*PhotoPad) UnmarshalJSON ¶
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 ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Profile) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Profile) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Profile) UnmarshalJSON ¶
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 ¶
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 ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Promotion) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Promotion) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Promotion) UnmarshalJSON ¶
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 ¶
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 ¶
func (Recipient) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Recipient) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Recipient) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Recipient) UnmarshalJSON ¶
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 ¶
func (Session) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Session) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Session) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Session) UnmarshalJSON ¶
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 ¶
func (Status) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Status) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Status) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Status) UnmarshalJSON ¶
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 ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Survey) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Survey) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Survey) UnmarshalJSON ¶
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 {}
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 ¶
func (User) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (User) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*User) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*User) UnmarshalJSON ¶
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 ¶
func (v WaitingForCapturePaymentPaymentMethod) MarshalEasyJSON(w *jwriter.Writer)
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