seasonpassclientmodels

package
v0.64.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// ExcessStrategyMethodCURRENCY captures enum value "CURRENCY"
	ExcessStrategyMethodCURRENCY string = "CURRENCY"

	// ExcessStrategyMethodNONE captures enum value "NONE"
	ExcessStrategyMethodNONE string = "NONE"
)
View Source
const (

	// ExpGrantHistoryInfoSourcePAIDFOR captures enum value "PAID_FOR"
	ExpGrantHistoryInfoSourcePAIDFOR string = "PAID_FOR"

	// ExpGrantHistoryInfoSourceSWEAT captures enum value "SWEAT"
	ExpGrantHistoryInfoSourceSWEAT string = "SWEAT"
)
View Source
const (

	// ListSeasonInfoStatusDRAFT captures enum value "DRAFT"
	ListSeasonInfoStatusDRAFT string = "DRAFT"

	// ListSeasonInfoStatusPUBLISHED captures enum value "PUBLISHED"
	ListSeasonInfoStatusPUBLISHED string = "PUBLISHED"

	// ListSeasonInfoStatusRETIRED captures enum value "RETIRED"
	ListSeasonInfoStatusRETIRED string = "RETIRED"
)
View Source
const (

	// LocalizedSeasonInfoStatusDRAFT captures enum value "DRAFT"
	LocalizedSeasonInfoStatusDRAFT string = "DRAFT"

	// LocalizedSeasonInfoStatusPUBLISHED captures enum value "PUBLISHED"
	LocalizedSeasonInfoStatusPUBLISHED string = "PUBLISHED"

	// LocalizedSeasonInfoStatusRETIRED captures enum value "RETIRED"
	LocalizedSeasonInfoStatusRETIRED string = "RETIRED"
)
View Source
const (

	// RewardCreateTypeCURRENCY captures enum value "CURRENCY"
	RewardCreateTypeCURRENCY string = "CURRENCY"

	// RewardCreateTypeITEM captures enum value "ITEM"
	RewardCreateTypeITEM string = "ITEM"
)
View Source
const (

	// RewardInfoItemTypeAPP captures enum value "APP"
	RewardInfoItemTypeAPP string = "APP"

	// RewardInfoItemTypeBUNDLE captures enum value "BUNDLE"
	RewardInfoItemTypeBUNDLE string = "BUNDLE"

	// RewardInfoItemTypeCODE captures enum value "CODE"
	RewardInfoItemTypeCODE string = "CODE"

	// RewardInfoItemTypeCOINS captures enum value "COINS"
	RewardInfoItemTypeCOINS string = "COINS"

	// RewardInfoItemTypeEXTENSION captures enum value "EXTENSION"
	RewardInfoItemTypeEXTENSION string = "EXTENSION"

	// RewardInfoItemTypeINGAMEITEM captures enum value "INGAMEITEM"
	RewardInfoItemTypeINGAMEITEM string = "INGAMEITEM"

	// RewardInfoItemTypeLOOTBOX captures enum value "LOOTBOX"
	RewardInfoItemTypeLOOTBOX string = "LOOTBOX"

	// RewardInfoItemTypeMEDIA captures enum value "MEDIA"
	RewardInfoItemTypeMEDIA string = "MEDIA"

	// RewardInfoItemTypeOPTIONBOX captures enum value "OPTIONBOX"
	RewardInfoItemTypeOPTIONBOX string = "OPTIONBOX"

	// RewardInfoItemTypeSEASON captures enum value "SEASON"
	RewardInfoItemTypeSEASON string = "SEASON"

	// RewardInfoItemTypeSUBSCRIPTION captures enum value "SUBSCRIPTION"
	RewardInfoItemTypeSUBSCRIPTION string = "SUBSCRIPTION"
)
View Source
const (

	// RewardInfoTypeCURRENCY captures enum value "CURRENCY"
	RewardInfoTypeCURRENCY string = "CURRENCY"

	// RewardInfoTypeITEM captures enum value "ITEM"
	RewardInfoTypeITEM string = "ITEM"
)
View Source
const (

	// RewardUpdateTypeCURRENCY captures enum value "CURRENCY"
	RewardUpdateTypeCURRENCY string = "CURRENCY"

	// RewardUpdateTypeITEM captures enum value "ITEM"
	RewardUpdateTypeITEM string = "ITEM"
)
View Source
const (

	// SeasonInfoStatusDRAFT captures enum value "DRAFT"
	SeasonInfoStatusDRAFT string = "DRAFT"

	// SeasonInfoStatusPUBLISHED captures enum value "PUBLISHED"
	SeasonInfoStatusPUBLISHED string = "PUBLISHED"

	// SeasonInfoStatusRETIRED captures enum value "RETIRED"
	SeasonInfoStatusRETIRED string = "RETIRED"
)
View Source
const (

	// SeasonSummaryStatusDRAFT captures enum value "DRAFT"
	SeasonSummaryStatusDRAFT string = "DRAFT"

	// SeasonSummaryStatusPUBLISHED captures enum value "PUBLISHED"
	SeasonSummaryStatusPUBLISHED string = "PUBLISHED"

	// SeasonSummaryStatusRETIRED captures enum value "RETIRED"
	SeasonSummaryStatusRETIRED string = "RETIRED"
)
View Source
const (

	// UserExpGrantSourcePAIDFOR captures enum value "PAID_FOR"
	UserExpGrantSourcePAIDFOR string = "PAID_FOR"

	// UserExpGrantSourceSWEAT captures enum value "SWEAT"
	UserExpGrantSourceSWEAT string = "SWEAT"
)
View Source
const (

	// UserTierGrantSourcePAIDFOR captures enum value "PAID_FOR"
	UserTierGrantSourcePAIDFOR string = "PAID_FOR"

	// UserTierGrantSourceSWEAT captures enum value "SWEAT"
	UserTierGrantSourceSWEAT string = "SWEAT"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BulkUserProgressionRequest added in v0.30.0

type BulkUserProgressionRequest struct {

	// userids
	UserIds []string `json:"userIds,omitempty"`
}

BulkUserProgressionRequest Bulk user progression request

swagger:model Bulk user progression request.

func (*BulkUserProgressionRequest) MarshalBinary added in v0.30.0

func (m *BulkUserProgressionRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*BulkUserProgressionRequest) UnmarshalBinary added in v0.30.0

func (m *BulkUserProgressionRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*BulkUserProgressionRequest) Validate added in v0.30.0

func (m *BulkUserProgressionRequest) Validate(formats strfmt.Registry) error

Validate validates this Bulk user progression request

type ClaimableRewards

type ClaimableRewards struct {

	// Claiming rewards, zero based tier index as key, rewards per pass as value
	// Required: true
	ClaimingRewards interface{} `json:"claimingRewards"`

	// To claim rewards, zero based tier index as key, rewards per pass as value
	// Required: true
	ToClaimRewards interface{} `json:"toClaimRewards"`
}

ClaimableRewards Claimable rewards

swagger:model Claimable rewards.

func (*ClaimableRewards) MarshalBinary

func (m *ClaimableRewards) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ClaimableRewards) UnmarshalBinary

func (m *ClaimableRewards) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ClaimableRewards) Validate

func (m *ClaimableRewards) Validate(formats strfmt.Registry) error

Validate validates this Claimable rewards

type ClaimableUserSeasonInfo

type ClaimableUserSeasonInfo struct {

	// Claiming rewards, zero based tier index as key, rewards per pass as value
	// Required: true
	ClaimingRewards interface{} `json:"claimingRewards"`

	// whether cleared all tiers
	// Required: true
	Cleared *bool `json:"cleared"`

	// created at
	// Required: true
	// Format: date-time
	CreatedAt strfmt.DateTime `json:"createdAt"`

	// gained exp for current tier
	// Required: true
	// Format: int32
	CurrentExp *int32 `json:"currentExp"`

	// current tier index, zero based
	// Required: true
	// Format: int32
	CurrentTierIndex *int32 `json:"currentTierIndex"`

	// enroll date time
	// Required: true
	// Format: date-time
	EnrolledAt strfmt.DateTime `json:"enrolledAt"`

	// enrolled passes
	// Unique: true
	// Required: true
	EnrolledPasses []string `json:"enrolledPasses"`

	// id
	// Required: true
	ID *string `json:"id"`

	// last tier index, zero based
	// Required: true
	// Format: int32
	LastTierIndex *int32 `json:"lastTierIndex"`

	// namespace
	// Required: true
	Namespace *string `json:"namespace"`

	// required exp for current tier
	// Required: true
	// Format: int32
	RequiredExp *int32 `json:"requiredExp"`

	// season summary
	Season *SeasonSummary `json:"season,omitempty"`

	// season id
	// Required: true
	SeasonID *string `json:"seasonId"`

	// To claim rewards, zero based tier index as key, rewards per pass as value
	// Required: true
	ToClaimRewards interface{} `json:"toClaimRewards"`

	// total exp
	// Format: int64
	TotalExp int64 `json:"totalExp,omitempty"`

	// total paid-for exp
	// Format: int64
	TotalPaidForExp int64 `json:"totalPaidForExp,omitempty"`

	// total sweat exp
	// Format: int64
	TotalSweatExp int64 `json:"totalSweatExp,omitempty"`

	// updated at
	// Required: true
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"updatedAt"`

	// user id
	// Required: true
	UserID *string `json:"userId"`
}

ClaimableUserSeasonInfo Claimable user season info

swagger:model Claimable user season info.

func (*ClaimableUserSeasonInfo) MarshalBinary

func (m *ClaimableUserSeasonInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ClaimableUserSeasonInfo) UnmarshalBinary

func (m *ClaimableUserSeasonInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ClaimableUserSeasonInfo) Validate

func (m *ClaimableUserSeasonInfo) Validate(formats strfmt.Registry) error

Validate validates this Claimable user season info

type ErrorEntity

type ErrorEntity struct {

	// internal server error stack trace in configured environment
	DevStackTrace string `json:"devStackTrace,omitempty"`

	// numeric error code
	// Required: true
	// Format: int32
	ErrorCode *int32 `json:"errorCode"`

	// error message
	// Required: true
	ErrorMessage *string `json:"errorMessage"`

	// message variables
	MessageVariables map[string]string `json:"messageVariables,omitempty"`
}

ErrorEntity Error entity

swagger:model Error entity.

func (*ErrorEntity) MarshalBinary

func (m *ErrorEntity) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ErrorEntity) UnmarshalBinary

func (m *ErrorEntity) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ErrorEntity) Validate

func (m *ErrorEntity) Validate(formats strfmt.Registry) error

Validate validates this Error entity

type ExcessStrategy

type ExcessStrategy struct {

	// virtual currency for grant, required while method is CURRENCY
	Currency string `json:"currency,omitempty"`

	// method while excess the final tier exp
	// Enum: ['CURRENCY', 'NONE']
	// Required: true
	Method *string `json:"method"`

	// percent per exp, required while method is CURRENCY
	// Format: int32
	PercentPerExp int32 `json:"percentPerExp,omitempty"`
}

ExcessStrategy Excess strategy

swagger:model Excess strategy.

func (*ExcessStrategy) MarshalBinary

func (m *ExcessStrategy) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ExcessStrategy) UnmarshalBinary

func (m *ExcessStrategy) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ExcessStrategy) Validate

func (m *ExcessStrategy) Validate(formats strfmt.Registry) error

Validate validates this Excess strategy

type ExpGrantHistoryInfo added in v0.21.0

type ExpGrantHistoryInfo struct {

	// acquired at
	// Required: true
	// Format: date-time
	CreatedAt strfmt.DateTime `json:"createdAt"`

	// grant exp
	// Required: true
	// Format: int64
	GrantExp *int64 `json:"grantExp"`

	// id
	// Required: true
	ID *string `json:"id"`

	// namespace
	// Required: true
	Namespace *string `json:"namespace"`

	// season id
	// Required: true
	SeasonID *string `json:"seasonId"`

	// id
	// Enum: ['PAID_FOR', 'SWEAT']
	Source string `json:"source,omitempty"`

	// id
	Tags []string `json:"tags,omitempty"`

	// user id
	// Required: true
	UserID *string `json:"userId"`
}

ExpGrantHistoryInfo Exp grant history info

swagger:model Exp grant history info.

func (*ExpGrantHistoryInfo) MarshalBinary added in v0.21.0

func (m *ExpGrantHistoryInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ExpGrantHistoryInfo) UnmarshalBinary added in v0.21.0

func (m *ExpGrantHistoryInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ExpGrantHistoryInfo) Validate added in v0.21.0

func (m *ExpGrantHistoryInfo) Validate(formats strfmt.Registry) error

Validate validates this Exp grant history info

type ExpGrantHistoryPagingSlicedResult added in v0.21.0

type ExpGrantHistoryPagingSlicedResult struct {

	// data
	// Required: true
	Data []*ExpGrantHistoryInfo `json:"data"`

	// paging
	Paging *Paging `json:"paging,omitempty"`

	// total
	// Format: int64
	Total int64 `json:"total,omitempty"`
}

ExpGrantHistoryPagingSlicedResult Exp grant history paging sliced result

swagger:model Exp grant history paging sliced result.

func (*ExpGrantHistoryPagingSlicedResult) MarshalBinary added in v0.21.0

func (m *ExpGrantHistoryPagingSlicedResult) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ExpGrantHistoryPagingSlicedResult) UnmarshalBinary added in v0.21.0

func (m *ExpGrantHistoryPagingSlicedResult) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ExpGrantHistoryPagingSlicedResult) Validate added in v0.21.0

Validate validates this Exp grant history paging sliced result

type FieldValidationError

type FieldValidationError struct {

	// errorcode
	ErrorCode string `json:"errorCode,omitempty"`

	// errorfield
	ErrorField string `json:"errorField,omitempty"`

	// errormessage
	ErrorMessage string `json:"errorMessage,omitempty"`

	// errorvalue
	ErrorValue string `json:"errorValue,omitempty"`

	// messagevariables
	MessageVariables map[string]string `json:"messageVariables,omitempty"`
}

FieldValidationError Field validation error

swagger:model Field validation error.

func (*FieldValidationError) MarshalBinary

func (m *FieldValidationError) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*FieldValidationError) UnmarshalBinary

func (m *FieldValidationError) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*FieldValidationError) Validate

func (m *FieldValidationError) Validate(formats strfmt.Registry) error

Validate validates this Field validation error

type FullSeasonInfo added in v0.26.0

type FullSeasonInfo struct {

	// id
	// Required: true
	ID *string `json:"id"`

	// images
	Images []*Image `json:"images,omitempty"`

	// localization, {language: localization} map
	// Required: true
	Localizations map[string]Localization `json:"localizations"`

	// name, max length is 127
	// Required: true
	Name *string `json:"name"`

	// namespace
	// Required: true
	Namespace *string `json:"namespace"`

	// passes info
	// Required: true
	Passes []*PassInfo `json:"passes"`

	// rewards info
	// Required: true
	Rewards map[string]RewardInfo `json:"rewards"`

	// tiers info
	// Required: true
	Tiers []*Tier `json:"tiers"`
}

FullSeasonInfo Full season info

swagger:model Full season info.

func (*FullSeasonInfo) MarshalBinary added in v0.26.0

func (m *FullSeasonInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*FullSeasonInfo) UnmarshalBinary added in v0.26.0

func (m *FullSeasonInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*FullSeasonInfo) Validate added in v0.26.0

func (m *FullSeasonInfo) Validate(formats strfmt.Registry) error

Validate validates this Full season info

type Image

type Image struct {

	// image for
	As string `json:"as,omitempty"`

	// image caption
	Caption string `json:"caption,omitempty"`

	// height
	// Required: true
	// Format: int32
	Height *int32 `json:"height"`

	// imageUrl
	// Required: true
	ImageURL *string `json:"imageUrl"`

	// smallImageUrl
	SmallImageURL string `json:"smallImageUrl,omitempty"`

	// width
	// Required: true
	// Format: int32
	Width *int32 `json:"width"`
}

Image Image

swagger:model Image.

func (*Image) MarshalBinary

func (m *Image) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Image) UnmarshalBinary

func (m *Image) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Image) Validate

func (m *Image) Validate(formats strfmt.Registry) error

Validate validates this Image

type ListSeasonInfo

type ListSeasonInfo struct {

	// created at
	// Required: true
	// Format: date-time
	CreatedAt strfmt.DateTime `json:"createdAt"`

	// default language, BCP 47 language tag
	// Required: true
	DefaultLanguage *string `json:"defaultLanguage"`

	// end date time
	// Required: true
	// Format: date-time
	End strfmt.DateTime `json:"end"`

	// id
	// Required: true
	ID *string `json:"id"`

	// name, max length is 127
	// Required: true
	Name *string `json:"name"`

	// namespace
	// Required: true
	Namespace *string `json:"namespace"`

	// pass codes
	// Unique: true
	PassCodes []string `json:"passCodes"`

	// publishedAt
	// Format: date-time
	PublishedAt *strfmt.DateTime `json:"publishedAt,omitempty"`

	// start date time
	// Required: true
	// Format: date-time
	Start strfmt.DateTime `json:"start"`

	// status
	// Enum: ['DRAFT', 'PUBLISHED', 'RETIRED']
	// Required: true
	Status *string `json:"status"`

	// tier item id
	// Required: true
	TierItemID *string `json:"tierItemId"`

	// tier item name
	// Required: true
	TierItemName *string `json:"tierItemName"`

	// updated at
	// Required: true
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"updatedAt"`
}

ListSeasonInfo List season info

swagger:model List season info.

func (*ListSeasonInfo) MarshalBinary

func (m *ListSeasonInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ListSeasonInfo) UnmarshalBinary

func (m *ListSeasonInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ListSeasonInfo) Validate

func (m *ListSeasonInfo) Validate(formats strfmt.Registry) error

Validate validates this List season info

type ListSeasonInfoPagingSlicedResult

type ListSeasonInfoPagingSlicedResult struct {

	// data
	// Required: true
	Data []*ListSeasonInfo `json:"data"`

	// paging
	Paging *Paging `json:"paging,omitempty"`
}

ListSeasonInfoPagingSlicedResult List season info paging sliced result

swagger:model List season info paging sliced result.

func (*ListSeasonInfoPagingSlicedResult) MarshalBinary

func (m *ListSeasonInfoPagingSlicedResult) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ListSeasonInfoPagingSlicedResult) UnmarshalBinary

func (m *ListSeasonInfoPagingSlicedResult) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ListSeasonInfoPagingSlicedResult) Validate

Validate validates this List season info paging sliced result

type ListUserSeasonInfo

type ListUserSeasonInfo struct {

	// whether cleared all tiers
	// Required: true
	Cleared *bool `json:"cleared"`

	// current tier index, zero based
	// Required: true
	// Format: int32
	CurrentTierIndex *int32 `json:"currentTierIndex"`

	// enroll date time
	// Required: true
	// Format: date-time
	EnrolledAt strfmt.DateTime `json:"enrolledAt"`

	// id
	// Required: true
	ID *string `json:"id"`

	// last tier index, zero based
	// Required: true
	// Format: int32
	LastTierIndex *int32 `json:"lastTierIndex"`

	// namespace
	// Required: true
	Namespace *string `json:"namespace"`

	// season summary
	Season *SeasonSummary `json:"season,omitempty"`

	// season id
	// Required: true
	SeasonID *string `json:"seasonId"`

	// user id
	// Required: true
	UserID *string `json:"userId"`
}

ListUserSeasonInfo List user season info

swagger:model List user season info.

func (*ListUserSeasonInfo) MarshalBinary

func (m *ListUserSeasonInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ListUserSeasonInfo) UnmarshalBinary

func (m *ListUserSeasonInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ListUserSeasonInfo) Validate

func (m *ListUserSeasonInfo) Validate(formats strfmt.Registry) error

Validate validates this List user season info

type ListUserSeasonInfoPagingSlicedResult

type ListUserSeasonInfoPagingSlicedResult struct {

	// data
	// Required: true
	Data []*ListUserSeasonInfo `json:"data"`

	// paging
	Paging *Paging `json:"paging,omitempty"`

	// total
	// Format: int64
	Total int64 `json:"total,omitempty"`
}

ListUserSeasonInfoPagingSlicedResult List user season info paging sliced result

swagger:model List user season info paging sliced result.

func (*ListUserSeasonInfoPagingSlicedResult) MarshalBinary

func (m *ListUserSeasonInfoPagingSlicedResult) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ListUserSeasonInfoPagingSlicedResult) UnmarshalBinary

func (m *ListUserSeasonInfoPagingSlicedResult) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ListUserSeasonInfoPagingSlicedResult) Validate

Validate validates this List user season info paging sliced result

type Localization

type Localization struct {

	// description info
	Description string `json:"description,omitempty"`

	// title info
	Title string `json:"title,omitempty"`
}

Localization Localization

swagger:model Localization.

func (*Localization) MarshalBinary

func (m *Localization) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Localization) UnmarshalBinary

func (m *Localization) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Localization) Validate

func (m *Localization) Validate(formats strfmt.Registry) error

Validate validates this Localization

type LocalizedPassInfo

type LocalizedPassInfo struct {

	// autoEnroll
	// Required: true
	AutoEnroll *bool `json:"autoEnroll"`

	// code
	// Required: true
	Code *string `json:"code"`

	// created at
	// Required: true
	// Format: date-time
	CreatedAt strfmt.DateTime `json:"createdAt"`

	// description info
	Description string `json:"description,omitempty"`

	// displayOrder
	// Required: true
	DisplayOrder *string `json:"displayOrder"`

	// images
	Images []*Image `json:"images,omitempty"`

	// current language
	// Required: true
	Language *string `json:"language"`

	// namespace
	// Required: true
	Namespace *string `json:"namespace"`

	// pass item id
	// Required: true
	PassItemID *string `json:"passItemId"`

	// season id
	// Required: true
	SeasonID *string `json:"seasonId"`

	// title info
	Title string `json:"title,omitempty"`

	// updated at
	// Required: true
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"updatedAt"`
}

LocalizedPassInfo Localized pass info

swagger:model Localized pass info.

func (*LocalizedPassInfo) MarshalBinary

func (m *LocalizedPassInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*LocalizedPassInfo) UnmarshalBinary

func (m *LocalizedPassInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*LocalizedPassInfo) Validate

func (m *LocalizedPassInfo) Validate(formats strfmt.Registry) error

Validate validates this Localized pass info

type LocalizedSeasonInfo

type LocalizedSeasonInfo struct {

	// whether auto claim rewards
	// Required: true
	AutoClaim *bool `json:"autoClaim"`

	// created at
	// Required: true
	// Format: date-time
	CreatedAt strfmt.DateTime `json:"createdAt"`

	// description info
	Description string `json:"description,omitempty"`

	// end date time
	// Required: true
	// Format: date-time
	End strfmt.DateTime `json:"end"`

	// id
	// Required: true
	ID *string `json:"id"`

	// images
	Images []*Image `json:"images,omitempty"`

	// current language
	// Required: true
	Language *string `json:"language"`

	// name, max length is 127
	// Required: true
	Name *string `json:"name"`

	// namespace
	// Required: true
	Namespace *string `json:"namespace"`

	// pass codes
	// Unique: true
	PassCodes []string `json:"passCodes"`

	// passes info
	// Required: true
	Passes []*LocalizedPassInfo `json:"passes"`

	// publishedAt
	// Format: date-time
	PublishedAt *strfmt.DateTime `json:"publishedAt,omitempty"`

	// rewards info
	// Required: true
	Rewards map[string]RewardInfo `json:"rewards"`

	// start date time
	// Required: true
	// Format: date-time
	Start strfmt.DateTime `json:"start"`

	// status
	// Enum: ['DRAFT', 'PUBLISHED', 'RETIRED']
	// Required: true
	Status *string `json:"status"`

	// tier item id
	// Required: true
	TierItemID *string `json:"tierItemId"`

	// tiers info
	// Required: true
	Tiers []*Tier `json:"tiers"`

	// title info
	Title string `json:"title,omitempty"`

	// updated at
	// Required: true
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"updatedAt"`
}

LocalizedSeasonInfo Localized season info

swagger:model Localized season info.

func (*LocalizedSeasonInfo) MarshalBinary

func (m *LocalizedSeasonInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*LocalizedSeasonInfo) UnmarshalBinary

func (m *LocalizedSeasonInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*LocalizedSeasonInfo) Validate

func (m *LocalizedSeasonInfo) Validate(formats strfmt.Registry) error

Validate validates this Localized season info

type Ownership

type Ownership struct {

	// ownership
	// Required: true
	Owned *bool `json:"owned"`
}

Ownership Ownership

swagger:model Ownership.

func (*Ownership) MarshalBinary

func (m *Ownership) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Ownership) UnmarshalBinary

func (m *Ownership) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Ownership) Validate

func (m *Ownership) Validate(formats strfmt.Registry) error

Validate validates this Ownership

type Paging

type Paging struct {

	// next
	Next string `json:"next,omitempty"`

	// previous
	Previous string `json:"previous,omitempty"`
}

Paging Paging

swagger:model Paging.

func (*Paging) MarshalBinary

func (m *Paging) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Paging) UnmarshalBinary

func (m *Paging) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Paging) Validate

func (m *Paging) Validate(formats strfmt.Registry) error

Validate validates this Paging

type PassCreate

type PassCreate struct {

	// autoEnroll for free pass, default false
	AutoEnroll bool `json:"autoEnroll"`

	// code, allowed characters from a-z0-9_:- and start/end in alphanumeric, max length is 255
	// Required: true
	Code *string `json:"code"`

	// displayOrder for frontend to arrange the pass
	// Required: true
	// Format: int32
	DisplayOrder *int32 `json:"displayOrder"`

	// images
	Images []*Image `json:"images,omitempty"`

	// localization, {language: localization} map
	// Required: true
	Localizations map[string]Localization `json:"localizations"`

	// pass item id
	// Required: true
	PassItemID *string `json:"passItemId"`
}

PassCreate Pass create

swagger:model Pass create.

func (*PassCreate) MarshalBinary

func (m *PassCreate) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PassCreate) UnmarshalBinary

func (m *PassCreate) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PassCreate) Validate

func (m *PassCreate) Validate(formats strfmt.Registry) error

Validate validates this Pass create

type PassInfo

type PassInfo struct {

	// autoEnroll
	// Required: true
	AutoEnroll *bool `json:"autoEnroll"`

	// code
	// Required: true
	Code *string `json:"code"`

	// created at
	// Required: true
	// Format: date-time
	CreatedAt strfmt.DateTime `json:"createdAt"`

	// displayOrder
	// Required: true
	DisplayOrder *string `json:"displayOrder"`

	// images
	Images []*Image `json:"images,omitempty"`

	// localization, {language: localization} map
	// Required: true
	Localizations map[string]Localization `json:"localizations"`

	// namespace
	// Required: true
	Namespace *string `json:"namespace"`

	// pass item id
	// Required: true
	PassItemID *string `json:"passItemId"`

	// pass item name
	// Required: true
	PassItemName *string `json:"passItemName"`

	// season id
	// Required: true
	SeasonID *string `json:"seasonId"`

	// updated at
	// Required: true
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"updatedAt"`
}

PassInfo Pass info

swagger:model Pass info.

func (*PassInfo) MarshalBinary

func (m *PassInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PassInfo) UnmarshalBinary

func (m *PassInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PassInfo) Validate

func (m *PassInfo) Validate(formats strfmt.Registry) error

Validate validates this Pass info

type PassUpdate

type PassUpdate struct {

	// autoEnroll for free pass
	AutoEnroll bool `json:"autoEnroll"`

	// displayOrder for frontend to arrange the pass
	// Format: int32
	DisplayOrder int32 `json:"displayOrder,omitempty"`

	// images
	Images []*Image `json:"images,omitempty"`

	// localization, {language: localization} map
	Localizations map[string]Localization `json:"localizations,omitempty"`

	// pass item id
	PassItemID string `json:"passItemId,omitempty"`
}

PassUpdate Pass update

swagger:model Pass update.

func (*PassUpdate) MarshalBinary

func (m *PassUpdate) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PassUpdate) UnmarshalBinary

func (m *PassUpdate) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PassUpdate) Validate

func (m *PassUpdate) Validate(formats strfmt.Registry) error

Validate validates this Pass update

type ReasonTagsResult added in v0.21.0

type ReasonTagsResult struct {

	// tags
	// Required: true
	Tags []string `json:"tags"`
}

ReasonTagsResult Reason tags result

swagger:model Reason tags result.

func (*ReasonTagsResult) MarshalBinary added in v0.21.0

func (m *ReasonTagsResult) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ReasonTagsResult) UnmarshalBinary added in v0.21.0

func (m *ReasonTagsResult) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ReasonTagsResult) Validate added in v0.21.0

func (m *ReasonTagsResult) Validate(formats strfmt.Registry) error

Validate validates this Reason tags result

type RewardCreate

type RewardCreate struct {

	// code, allowed characters from a-z0-9_:- and start/end in alphanumeric, max length is 255
	// Required: true
	Code *string `json:"code"`

	// currency, required when reward type is CURRENCY
	Currency *RewardCurrency `json:"currency,omitempty"`

	// image, thumbnail for reward
	Image *Image `json:"image,omitempty"`

	// itemId, required when reward type is ITEM, the item type should be one of: INGAMEITEM,COINS,BUNDLE
	ItemID string `json:"itemId,omitempty"`

	// Item quantity or Currency amount, default 1
	// Format: int32
	Quantity int32 `json:"quantity,omitempty"`

	// type, at current only support ITEM
	// Enum: ['CURRENCY', 'ITEM']
	// Required: true
	Type *string `json:"type"`
}

RewardCreate Reward create

swagger:model Reward create.

func (*RewardCreate) MarshalBinary

func (m *RewardCreate) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RewardCreate) UnmarshalBinary

func (m *RewardCreate) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RewardCreate) Validate

func (m *RewardCreate) Validate(formats strfmt.Registry) error

Validate validates this Reward create

type RewardCurrency

type RewardCurrency struct {

	// currency code, alphabet uppercase
	// Required: true
	CurrencyCode *string `json:"currencyCode"`

	// namespace, allowed values: game namespace or publisher namespace
	// Required: true
	Namespace *string `json:"namespace"`
}

RewardCurrency Reward currency

swagger:model Reward currency.

func (*RewardCurrency) MarshalBinary

func (m *RewardCurrency) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RewardCurrency) UnmarshalBinary

func (m *RewardCurrency) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RewardCurrency) Validate

func (m *RewardCurrency) Validate(formats strfmt.Registry) error

Validate validates this Reward currency

type RewardInfo

type RewardInfo struct {

	// code
	// Required: true
	Code *string `json:"code"`

	// currency, required when reward type is CURRENCY
	Currency *RewardCurrency `json:"currency,omitempty"`

	// image, thumbnail for reward
	Image *Image `json:"image,omitempty"`

	// itemId, required when reward type is ITEM
	ItemID string `json:"itemId,omitempty"`

	// itemName, required when reward type is ITEM
	ItemName string `json:"itemName,omitempty"`

	// itemSku, required when reward type is ITEM
	ItemSku string `json:"itemSku,omitempty"`

	// itemType, required when reward type is ITEM
	// Enum: ['APP', 'BUNDLE', 'CODE', 'COINS', 'EXTENSION', 'INGAMEITEM', 'LOOTBOX', 'MEDIA', 'OPTIONBOX', 'SEASON', 'SUBSCRIPTION']
	ItemType string `json:"itemType,omitempty"`

	// namespace
	// Required: true
	Namespace *string `json:"namespace"`

	// Item quantity or Currency amount, default 1
	// Format: int32
	Quantity int32 `json:"quantity,omitempty"`

	// seasonId
	// Required: true
	SeasonID *string `json:"seasonId"`

	// type
	// Enum: ['CURRENCY', 'ITEM']
	// Required: true
	Type *string `json:"type"`
}

RewardInfo Reward info

swagger:model Reward info.

func (*RewardInfo) MarshalBinary

func (m *RewardInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RewardInfo) UnmarshalBinary

func (m *RewardInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RewardInfo) Validate

func (m *RewardInfo) Validate(formats strfmt.Registry) error

Validate validates this Reward info

type RewardUpdate

type RewardUpdate struct {

	// currency, required when reward type is CURRENCY
	Currency *RewardCurrency `json:"currency,omitempty"`

	// image, thumbnail for reward
	Image *Image `json:"image,omitempty"`

	// itemId, required when reward type is ITEM, the item type should be one of: INGAMEITEM,COINS,BUNDLE
	ItemID string `json:"itemId,omitempty"`

	// nullFields
	// Unique: true
	NullFields []string `json:"nullFields"`

	// Item quantity or Currency amount, default 1
	// Format: int32
	Quantity int32 `json:"quantity,omitempty"`

	// type, at current only support ITEM
	// Enum: ['CURRENCY', 'ITEM']
	Type string `json:"type,omitempty"`
}

RewardUpdate Reward update

swagger:model Reward update.

func (*RewardUpdate) MarshalBinary

func (m *RewardUpdate) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RewardUpdate) UnmarshalBinary

func (m *RewardUpdate) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RewardUpdate) Validate

func (m *RewardUpdate) Validate(formats strfmt.Registry) error

Validate validates this Reward update

type SeasonCloneRequest

type SeasonCloneRequest struct {

	// end date time
	// Required: true
	// Format: date-time
	End strfmt.DateTime `json:"end"`

	// name, max length is 127
	// Required: true
	Name *string `json:"name"`

	// start date time
	// Required: true
	// Format: date-time
	Start strfmt.DateTime `json:"start"`
}

SeasonCloneRequest Season clone request

swagger:model Season clone request.

func (*SeasonCloneRequest) MarshalBinary

func (m *SeasonCloneRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SeasonCloneRequest) UnmarshalBinary

func (m *SeasonCloneRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SeasonCloneRequest) Validate

func (m *SeasonCloneRequest) Validate(formats strfmt.Registry) error

Validate validates this Season clone request

type SeasonCreate

type SeasonCreate struct {

	// whether auto claim rewards, default true
	AutoClaim bool `json:"autoClaim"`

	// default language, BCP 47 language tag, default is en
	DefaultLanguage string `json:"defaultLanguage,omitempty"`

	// default exp required for a tier
	// Required: true
	// Format: int32
	DefaultRequiredExp *int32 `json:"defaultRequiredExp"`

	// draft store id
	// Required: true
	DraftStoreID *string `json:"draftStoreId"`

	// end date time
	// Required: true
	// Format: date-time
	End strfmt.DateTime `json:"end"`

	// strategy while exceed final tier exp, default NONE
	ExcessStrategy *ExcessStrategy `json:"excessStrategy,omitempty"`

	// images
	Images []*Image `json:"images,omitempty"`

	// localization, {language: localization} map
	// Required: true
	Localizations map[string]Localization `json:"localizations"`

	// name, max length is 127
	// Required: true
	Name *string `json:"name"`

	// start date time
	// Required: true
	// Format: date-time
	Start strfmt.DateTime `json:"start"`

	// tier item id
	// Required: true
	TierItemID *string `json:"tierItemId"`
}

SeasonCreate Season create

swagger:model Season create.

func (*SeasonCreate) MarshalBinary

func (m *SeasonCreate) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SeasonCreate) UnmarshalBinary

func (m *SeasonCreate) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SeasonCreate) Validate

func (m *SeasonCreate) Validate(formats strfmt.Registry) error

Validate validates this Season create

type SeasonInfo

type SeasonInfo struct {

	// whether auto claim rewards
	// Required: true
	AutoClaim *bool `json:"autoClaim"`

	// created at
	// Required: true
	// Format: date-time
	CreatedAt strfmt.DateTime `json:"createdAt"`

	// default language, BCP 47 language tag
	// Required: true
	DefaultLanguage *string `json:"defaultLanguage"`

	// default required exp for a tier
	// Required: true
	// Format: int32
	DefaultRequiredExp *int32 `json:"defaultRequiredExp"`

	// draft store id
	// Required: true
	DraftStoreID *string `json:"draftStoreId"`

	// end date time
	// Required: true
	// Format: date-time
	End strfmt.DateTime `json:"end"`

	// strategy while exceed final tier exp
	// Required: true
	ExcessStrategy *ExcessStrategy `json:"excessStrategy"`

	// id
	// Required: true
	ID *string `json:"id"`

	// images
	Images []*Image `json:"images,omitempty"`

	// localization, {language: localization} map
	// Required: true
	Localizations map[string]Localization `json:"localizations"`

	// name, max length is 127
	// Required: true
	Name *string `json:"name"`

	// namespace
	// Required: true
	Namespace *string `json:"namespace"`

	// pass codes
	// Unique: true
	PassCodes []string `json:"passCodes"`

	// publishedAt
	// Format: date-time
	PublishedAt *strfmt.DateTime `json:"publishedAt,omitempty"`

	// start date time
	// Required: true
	// Format: date-time
	Start strfmt.DateTime `json:"start"`

	// status
	// Enum: ['DRAFT', 'PUBLISHED', 'RETIRED']
	// Required: true
	Status *string `json:"status"`

	// tier item id
	// Required: true
	TierItemID *string `json:"tierItemId"`

	// tier item name
	// Required: true
	TierItemName *string `json:"tierItemName"`

	// updated at
	// Required: true
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"updatedAt"`
}

SeasonInfo Season info

swagger:model Season info.

func (*SeasonInfo) MarshalBinary

func (m *SeasonInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SeasonInfo) UnmarshalBinary

func (m *SeasonInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SeasonInfo) Validate

func (m *SeasonInfo) Validate(formats strfmt.Registry) error

Validate validates this Season info

type SeasonSummary

type SeasonSummary struct {

	// end date time
	// Required: true
	// Format: date-time
	End strfmt.DateTime `json:"end"`

	// id
	// Required: true
	ID *string `json:"id"`

	// name, max length is 127
	// Required: true
	Name *string `json:"name"`

	// namespace
	// Required: true
	Namespace *string `json:"namespace"`

	// season pass codes
	// Unique: true
	PassCodes []string `json:"passCodes"`

	// previous season, only present in some situation
	Previous *SeasonSummary `json:"previous,omitempty"`

	// publishedAt
	// Format: date-time
	PublishedAt *strfmt.DateTime `json:"publishedAt,omitempty"`

	// start date time
	// Required: true
	// Format: date-time
	Start strfmt.DateTime `json:"start"`

	// status
	// Enum: ['DRAFT', 'PUBLISHED', 'RETIRED']
	// Required: true
	Status *string `json:"status"`
}

SeasonSummary Season summary

swagger:model Season summary.

func (*SeasonSummary) MarshalBinary

func (m *SeasonSummary) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SeasonSummary) UnmarshalBinary

func (m *SeasonSummary) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SeasonSummary) Validate

func (m *SeasonSummary) Validate(formats strfmt.Registry) error

Validate validates this Season summary

type SeasonUpdate

type SeasonUpdate struct {

	// whether auto claim rewards
	AutoClaim bool `json:"autoClaim"`

	// default language, BCP 47 language tag
	DefaultLanguage string `json:"defaultLanguage,omitempty"`

	// default exp required for a tier
	// Format: int32
	DefaultRequiredExp int32 `json:"defaultRequiredExp,omitempty"`

	// draft store id
	DraftStoreID string `json:"draftStoreId,omitempty"`

	// end date time
	// Format: date-time
	End *strfmt.DateTime `json:"end,omitempty"`

	// strategy while exceed final tier exp
	ExcessStrategy *ExcessStrategy `json:"excessStrategy,omitempty"`

	// images
	Images []*Image `json:"images,omitempty"`

	// localization, {language: localization} map
	Localizations map[string]Localization `json:"localizations,omitempty"`

	// name, max length is 127
	Name string `json:"name,omitempty"`

	// start date time
	// Format: date-time
	Start *strfmt.DateTime `json:"start,omitempty"`

	// tier item id
	TierItemID string `json:"tierItemId,omitempty"`
}

SeasonUpdate Season update

swagger:model Season update.

func (*SeasonUpdate) MarshalBinary

func (m *SeasonUpdate) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SeasonUpdate) UnmarshalBinary

func (m *SeasonUpdate) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SeasonUpdate) Validate

func (m *SeasonUpdate) Validate(formats strfmt.Registry) error

Validate validates this Season update

type Tier

type Tier struct {

	// tier id, auto generated.
	ID string `json:"id,omitempty"`

	// required exp for tier, it will automatically use season defaultRequiredExp if not set
	// Format: int32
	RequiredExp int32 `json:"requiredExp,omitempty"`

	// rewards map, passCode as key, rewardCode list as value
	Rewards map[string][]string `json:"rewards,omitempty"`
}

Tier Tier

swagger:model Tier.

func (*Tier) MarshalBinary

func (m *Tier) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Tier) UnmarshalBinary

func (m *Tier) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Tier) Validate

func (m *Tier) Validate(formats strfmt.Registry) error

Validate validates this Tier

type TierCreate

type TierCreate struct {

	// zero based tier index to be inserted at, -1 means appending to the end, default -1
	// Format: int32
	Index int32 `json:"index,omitempty"`

	// create tier quantity, default 1
	// Format: int32
	Quantity int32 `json:"quantity,omitempty"`

	// tier content, default null tier
	Tier *TierInput `json:"tier,omitempty"`
}

TierCreate Tier create

swagger:model Tier create.

func (*TierCreate) MarshalBinary

func (m *TierCreate) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TierCreate) UnmarshalBinary

func (m *TierCreate) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TierCreate) Validate

func (m *TierCreate) Validate(formats strfmt.Registry) error

Validate validates this Tier create

type TierInput

type TierInput struct {

	// required exp for tier, it will automatically use season defaultRequiredExp if not set
	// Format: int32
	RequiredExp int32 `json:"requiredExp,omitempty"`

	// rewards map, passCode as key, rewardCode list as value
	Rewards map[string][]string `json:"rewards,omitempty"`
}

TierInput Tier input

swagger:model Tier input.

func (*TierInput) MarshalBinary

func (m *TierInput) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TierInput) UnmarshalBinary

func (m *TierInput) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TierInput) Validate

func (m *TierInput) Validate(formats strfmt.Registry) error

Validate validates this Tier input

type TierPagingSlicedResult

type TierPagingSlicedResult struct {

	// data
	// Required: true
	Data []*Tier `json:"data"`

	// paging
	Paging *Paging `json:"paging,omitempty"`

	// total
	// Format: int64
	Total int64 `json:"total,omitempty"`
}

TierPagingSlicedResult Tier paging sliced result

swagger:model Tier paging sliced result.

func (*TierPagingSlicedResult) MarshalBinary

func (m *TierPagingSlicedResult) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TierPagingSlicedResult) UnmarshalBinary

func (m *TierPagingSlicedResult) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TierPagingSlicedResult) Validate

func (m *TierPagingSlicedResult) Validate(formats strfmt.Registry) error

Validate validates this Tier paging sliced result

type TierReorder added in v0.12.0

type TierReorder struct {

	// new index tier should be moved to, zero based, -1 means appending to the end
	// Format: int32
	NewIndex int32 `json:"newIndex,omitempty"`
}

TierReorder Tier reorder

swagger:model Tier reorder.

func (*TierReorder) MarshalBinary added in v0.12.0

func (m *TierReorder) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TierReorder) UnmarshalBinary added in v0.12.0

func (m *TierReorder) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TierReorder) Validate added in v0.12.0

func (m *TierReorder) Validate(formats strfmt.Registry) error

Validate validates this Tier reorder

type UserExpGrant

type UserExpGrant struct {

	// exp to grant
	// Format: int32
	Exp int32 `json:"exp,omitempty"`

	// source
	// Enum: ['PAID_FOR', 'SWEAT']
	Source string `json:"source,omitempty"`

	// tags
	Tags []string `json:"tags,omitempty"`
}

UserExpGrant User exp grant

swagger:model User exp grant.

func (*UserExpGrant) MarshalBinary

func (m *UserExpGrant) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UserExpGrant) UnmarshalBinary

func (m *UserExpGrant) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UserExpGrant) Validate

func (m *UserExpGrant) Validate(formats strfmt.Registry) error

Validate validates this User exp grant

type UserPassGrant

type UserPassGrant struct {

	// pass code, required if passItemId null
	PassCode string `json:"passCode,omitempty"`

	// pass item id, required if passCode null and ignored if passCode present
	PassItemID string `json:"passItemId,omitempty"`
}

UserPassGrant User pass grant

swagger:model User pass grant.

func (*UserPassGrant) MarshalBinary

func (m *UserPassGrant) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UserPassGrant) UnmarshalBinary

func (m *UserPassGrant) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UserPassGrant) Validate

func (m *UserPassGrant) Validate(formats strfmt.Registry) error

Validate validates this User pass grant

type UserPurchasable

type UserPurchasable struct {

	// pass item id
	PassItemID string `json:"passItemId,omitempty"`

	// tier item count, default 1
	// Format: int32
	TierItemCount int32 `json:"tierItemCount,omitempty"`

	// tier item id
	TierItemID string `json:"tierItemId,omitempty"`
}

UserPurchasable User purchasable

swagger:model User purchasable.

func (*UserPurchasable) MarshalBinary

func (m *UserPurchasable) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UserPurchasable) UnmarshalBinary

func (m *UserPurchasable) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UserPurchasable) Validate

func (m *UserPurchasable) Validate(formats strfmt.Registry) error

Validate validates this User purchasable

type UserRewardClaim

type UserRewardClaim struct {

	// pass code
	// Required: true
	PassCode *string `json:"passCode"`

	// reward code
	// Required: true
	RewardCode *string `json:"rewardCode"`

	// tier index
	// Required: true
	// Format: int32
	TierIndex *int32 `json:"tierIndex"`
}

UserRewardClaim User reward claim

swagger:model User reward claim.

func (*UserRewardClaim) MarshalBinary

func (m *UserRewardClaim) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UserRewardClaim) UnmarshalBinary

func (m *UserRewardClaim) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UserRewardClaim) Validate

func (m *UserRewardClaim) Validate(formats strfmt.Registry) error

Validate validates this User reward claim

type UserSeasonSummary

type UserSeasonSummary struct {

	// whether cleared all tiers
	Cleared bool `json:"cleared"`

	// created at
	// Format: date-time
	CreatedAt *strfmt.DateTime `json:"createdAt,omitempty"`

	// gained exp for current tier
	// Format: int32
	CurrentExp int32 `json:"currentExp,omitempty"`

	// current tier index, zero based
	// Format: int32
	CurrentTierIndex int32 `json:"currentTierIndex,omitempty"`

	// enroll date time
	// Format: date-time
	EnrolledAt *strfmt.DateTime `json:"enrolledAt,omitempty"`

	// enrolled passes
	// Unique: true
	EnrolledPasses []string `json:"enrolledPasses"`

	// id
	ID string `json:"id,omitempty"`

	// last tier index, zero based
	// Format: int32
	LastTierIndex int32 `json:"lastTierIndex,omitempty"`

	// namespace
	// Required: true
	Namespace *string `json:"namespace"`

	// required exp for current tier
	// Format: int32
	RequiredExp int32 `json:"requiredExp,omitempty"`

	// season id
	SeasonID string `json:"seasonId,omitempty"`

	// updated at
	// Format: date-time
	UpdatedAt *strfmt.DateTime `json:"updatedAt,omitempty"`

	// user id
	// Required: true
	UserID *string `json:"userId"`
}

UserSeasonSummary User season summary

swagger:model User season summary.

func (*UserSeasonSummary) MarshalBinary

func (m *UserSeasonSummary) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UserSeasonSummary) UnmarshalBinary

func (m *UserSeasonSummary) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UserSeasonSummary) Validate

func (m *UserSeasonSummary) Validate(formats strfmt.Registry) error

Validate validates this User season summary

type UserTierGrant

type UserTierGrant struct {

	// count to grant
	// Format: int32
	Count int32 `json:"count,omitempty"`

	// source
	// Enum: ['PAID_FOR', 'SWEAT']
	Source string `json:"source,omitempty"`

	// tags
	Tags []string `json:"tags,omitempty"`
}

UserTierGrant User tier grant

swagger:model User tier grant.

func (*UserTierGrant) MarshalBinary

func (m *UserTierGrant) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UserTierGrant) UnmarshalBinary

func (m *UserTierGrant) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UserTierGrant) Validate

func (m *UserTierGrant) Validate(formats strfmt.Registry) error

Validate validates this User tier grant

type ValidationErrorEntity

type ValidationErrorEntity struct {

	// numeric error code
	// Required: true
	// Format: int32
	ErrorCode *int32 `json:"errorCode"`

	// error message
	// Required: true
	ErrorMessage *string `json:"errorMessage"`

	// errors
	Errors []*FieldValidationError `json:"errors,omitempty"`
}

ValidationErrorEntity Validation error entity

swagger:model Validation error entity.

func (*ValidationErrorEntity) MarshalBinary

func (m *ValidationErrorEntity) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ValidationErrorEntity) UnmarshalBinary

func (m *ValidationErrorEntity) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ValidationErrorEntity) Validate

func (m *ValidationErrorEntity) Validate(formats strfmt.Registry) error

Validate validates this Validation error entity

Jump to

Keyboard shortcuts

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