@@ -0,0 +1,114 @@
|
||||
package model
|
||||
|
||||
// module: payment, action: productList
|
||||
type RestrictionInfo struct {
|
||||
Restricted bool `json:"restricted"`
|
||||
}
|
||||
|
||||
type UnderAgeInfo struct {
|
||||
BirthSet bool `json:"birth_set"`
|
||||
HasLimit bool `json:"has_limit"`
|
||||
LimitAmount interface{} `json:"limit_amount"`
|
||||
MonthUsed int `json:"month_used"`
|
||||
}
|
||||
|
||||
type SnsProductItemList struct {
|
||||
ItemID int `json:"item_id"`
|
||||
AddType int `json:"add_type"`
|
||||
Amount int `json:"amount"`
|
||||
IsFreebie bool `json:"is_freebie"`
|
||||
}
|
||||
|
||||
type SnsProductList struct {
|
||||
ProductID string `json:"product_id"`
|
||||
Name string `json:"name"`
|
||||
Price int `json:"price"`
|
||||
CanBuy bool `json:"can_buy"`
|
||||
ProductType int `json:"product_type"`
|
||||
ItemList []SnsProductItemList `json:"item_list"`
|
||||
}
|
||||
|
||||
type ProductItemList struct {
|
||||
ItemID int `json:"item_id"`
|
||||
AddType int `json:"add_type"`
|
||||
Amount int `json:"amount"`
|
||||
IsFreebie bool `json:"is_freebie"`
|
||||
IsRankMax bool `json:"is_rank_max,omitempty"`
|
||||
}
|
||||
|
||||
type LimitStatus struct {
|
||||
TermStartDate string `json:"term_start_date"`
|
||||
RemainingTime string `json:"remaining_time"`
|
||||
RemainingCount int `json:"remaining_count"`
|
||||
}
|
||||
|
||||
type ProductList struct {
|
||||
ProductID string `json:"product_id"`
|
||||
Name string `json:"name"`
|
||||
BannerImgAsset string `json:"banner_img_asset"`
|
||||
Price int `json:"price"`
|
||||
CanBuy bool `json:"can_buy"`
|
||||
ProductType int `json:"product_type"`
|
||||
AnnounceURL string `json:"announce_url"`
|
||||
ConfirmURL string `json:"confirm_url"`
|
||||
ItemList []ProductItemList `json:"item_list"`
|
||||
LimitStatus LimitStatus `json:"limit_status"`
|
||||
}
|
||||
|
||||
type SubscriptionItemList struct {
|
||||
ItemID int `json:"item_id"`
|
||||
AddType int `json:"add_type"`
|
||||
Amount int `json:"amount"`
|
||||
IsFreebie bool `json:"is_freebie"`
|
||||
}
|
||||
|
||||
type RewardList struct {
|
||||
ItemID int `json:"item_id"`
|
||||
AddType int `json:"add_type"`
|
||||
Amount int `json:"amount"`
|
||||
}
|
||||
|
||||
type Items struct {
|
||||
Seq int `json:"seq"`
|
||||
RewardList []RewardList `json:"reward_list"`
|
||||
}
|
||||
|
||||
type LicenseInfo struct {
|
||||
Name string `json:"name"`
|
||||
Items []Items `json:"items"`
|
||||
}
|
||||
|
||||
type UserStatus struct {
|
||||
IsLicensed bool `json:"is_licensed"`
|
||||
}
|
||||
|
||||
type SubscriptionStatus struct {
|
||||
LicenseID int `json:"license_id"`
|
||||
LicenseType int `json:"license_type"`
|
||||
LicenseInfo LicenseInfo `json:"license_info,omitempty"`
|
||||
UserStatus UserStatus `json:"user_status"`
|
||||
PurchaseCount int `json:"purchase_count"`
|
||||
BadgeFlag bool `json:"badge_flag"`
|
||||
}
|
||||
|
||||
type SubscriptionList struct {
|
||||
ProductID string `json:"product_id"`
|
||||
Name string `json:"name"`
|
||||
BannerImgAsset string `json:"banner_img_asset"`
|
||||
Price int `json:"price"`
|
||||
CanBuy bool `json:"can_buy"`
|
||||
ProductType int `json:"product_type"`
|
||||
ProductURL string `json:"product_url"`
|
||||
ItemList []SubscriptionItemList `json:"item_list"`
|
||||
LimitStatus LimitStatus `json:"limit_status"`
|
||||
SubscriptionStatus SubscriptionStatus `json:"subscription_status"`
|
||||
}
|
||||
|
||||
type ProductListResult struct {
|
||||
RestrictionInfo RestrictionInfo `json:"restriction_info"`
|
||||
UnderAgeInfo UnderAgeInfo `json:"under_age_info"`
|
||||
SnsProductList []SnsProductList `json:"sns_product_list"`
|
||||
ProductList []ProductList `json:"product_list"`
|
||||
SubscriptionList []SubscriptionList `json:"subscription_list"`
|
||||
ShowPointShop bool `json:"show_point_shop"`
|
||||
}
|
||||
Reference in New Issue
Block a user