Documentation ¶
Index ¶
- type Abstract
- type AdvancedInfo
- type BaseInfo
- type BoardingPass
- type BonusRule
- type BusTicket
- type Card
- type CardInterface
- type CardQRCode
- type Cash
- type DateInfo
- type Discount
- type GeneralCoupon
- type Gift
- type GroupOn
- type MeetingTicket
- type MemberCard
- type MovieTicket
- type MultiCard
- type PayInfo
- type RequestCardCreate
- type RequestCreateQrCode
- type SKU
- type ScenicTicket
- type SubMerchantID
- type SubMerchantInfo
- type SubMerchantSubmit
- type SwipeCard
- type TextImage
- type TimeLimit
- type UseCondition
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdvancedInfo ¶
type AdvancedInfo struct { UseCondition *UseCondition `json:"use_condition"` Abstract *Abstract `json:"abstract"` TextImageList []*TextImage `json:"text_image_list"` TimeLimit []*TimeLimit `json:"time_limit"` BusinessService []string `json:"business_service"` }
type BaseInfo ¶
type BaseInfo struct { SubMerchantInfo *SubMerchantID `json:"sub_merchant_info,omitempty"` LogoUrl string `json:"logo_url,omitempty"` BrandName string `json:"brand_name,omitempty"` CodeType string `json:"code_type,omitempty"` Title string `json:"title,omitempty"` Color string `json:"color,omitempty"` Notice string `json:"notice,omitempty"` ServicePhone string `json:"service_phone,omitempty"` Description string `json:"description,omitempty"` DateInfo *DateInfo `json:"date_info,omitempty"` SKU *SKU `json:"sku,omitempty"` UseLimit int `json:"use_limit,omitempty"` GetLimit int `json:"get_limit,omitempty"` UseCustomCode bool `json:"use_custom_code,omitempty"` BindOpenid bool `json:"bind_openid,omitempty"` CanGiveFriend bool `json:"can_give_friend,omitempty"` LocationIdList []int `json:"location_id_list,omitempty"` CenterTitle string `json:"center_title,omitempty"` CenterSubTitle string `json:"center_sub_title,omitempty"` CenterUrl string `json:"center_url,omitempty"` CustomUrlName string `json:"custom_url_name,omitempty"` CustomUrl string `json:"custom_url,omitempty"` CustomUrlSubTitle string `json:"custom_url_sub_title,omitempty"` PromotionUrlName string `json:"promotion_url_name,omitempty"` PromotionUrl string `json:"promotion_url,omitempty"` Source string `json:"source,omitempty"` PayInfo *PayInfo `json:"pay_info,omitempty"` }
type BoardingPass ¶
type BoardingPass struct {
BaseInfo *BaseInfo `json:"base_info"`
}
type BonusRule ¶ added in v3.0.41
type BonusRule struct { CostMoneyUnit int `json:"cost_money_unit,omitempty"` IncreaseBonus int `json:"increase_bonus,omitempty"` MaxIncreaseBonus int `json:"max_increase_bonus,omitempty"` InitIncreaseBonus int `json:"init_increase_bonus,omitempty"` CostBonusUnit int `json:"cost_bonus_unit,omitempty"` ReduceMoney int `json:"reduce_money,omitempty"` LeastMoneyToUseBonus int `json:"least_money_to_use_bonus,omitempty"` MaxReduceBonus int `json:"max_reduce_bonus,omitempty"` BaseInfo *BaseInfo `json:"base_info"` BonusCleared string `json:"bonus_cleared"` BonusRules string `json:"bonus_rules"` Prerogative string `json:"prerogative"` }
type Card ¶
type Card struct { CardType string `json:"card_type"` Groupon *GroupOn `json:"groupon,omitempty"` Cash *Cash `json:"cash,omitempty"` Discount *Discount `json:"discount,omitempty"` Gift *Gift `json:"gift,omitempty"` GeneralCoupon *GeneralCoupon `json:"general_coupon,omitempty"` MemberCard *MemberCard `json:"member_card,omitempty"` ScenicTicket *ScenicTicket `json:"scenic_ticket,omitempty"` MovieTicket *MovieTicket `json:"movie_ticket,omitempty"` BoardingPass *BoardingPass `json:"boarding_pass,omitempty"` MeetingTicket *MeetingTicket `json:"meeting_ticket,omitempty"` BusTicket *BusTicket `json:"bus_ticket,omitempty"` }
func (Card) GetCardType ¶ added in v3.0.41
type CardInterface ¶
type CardInterface interface {
GetCardType() string
}
type CardQRCode ¶
type Cash ¶
type Cash struct { BaseInfo *BaseInfo `json:"base_info"` AdvancedInfo *AdvancedInfo `json:"advanced_info"` LeastCost int `json:"least_cost"` ReduceCost int `json:"reduce_cost"` }
type Discount ¶
type Discount struct { BaseInfo *BaseInfo `json:"base_info"` AdvancedInfo *AdvancedInfo `json:"advanced_info"` Discount int `json:"discount"` }
type GeneralCoupon ¶
type GeneralCoupon struct { BaseInfo *BaseInfo `json:"base_info"` AdvancedInfo *AdvancedInfo `json:"advanced_info"` DefaultDetail string `json:"default_detail"` }
type Gift ¶
type Gift struct { BaseInfo *BaseInfo `json:"base_info"` AdvancedInfo *AdvancedInfo `json:"advanced_info"` Gift string `json:"gift"` }
type GroupOn ¶
type GroupOn struct { BaseInfo *BaseInfo `json:"base_info"` AdvancedInfo *AdvancedInfo `json:"advanced_info"` DealDetail string `json:"deal_detail"` }
type MeetingTicket ¶
type MeetingTicket struct {
BaseInfo *BaseInfo `json:"base_info"`
}
type MemberCard ¶
type MemberCard struct { BackgroundPicURL string `json:"background_pic_url,omitempty"` BaseInfo *BaseInfo `json:"base_info"` Prerogative string `json:"prerogative,omitempty"` BonusCleared string `json:"bonus_cleared,omitempty"` SupplyBonus bool `json:"supply_bonus,omitempty"` BonusURL string `json:"bonus_url,omitempty"` SupplyBalance bool `json:"supply_balance,omitempty"` BalanceRules string `json:"balance_rules,omitempty"` BalanceURL string `json:"balance_url,omitempty"` BonusRules string `json:"bonus_rules,omitempty"` BonusRule *BonusRule `json:"bonus_rule,omitempty"` Discount int `json:"discount,omitempty"` ActivateURL string `json:"activate_url,omitempty"` WXActivate bool `json:"wx_activate,omitempty"` AutoActivate bool `json:"auto_activate,omitempty"` }
func (*MemberCard) GetCardType ¶ added in v3.0.41
func (m *MemberCard) GetCardType() string
type MovieTicket ¶
type MovieTicket struct {
BaseInfo *BaseInfo `json:"base_info"`
}
type MultiCard ¶
type MultiCard struct {
CardList []*CardQRCode `json:"card_list"`
}
type PayInfo ¶ added in v3.0.41
type PayInfo struct {
SwipeCard *SwipeCard `json:"swipe_card,omitempty"`
}
type RequestCardCreate ¶
type RequestCardCreate struct {
Card *Card `json:"card"`
}
type RequestCreateQrCode ¶
type RequestCreateQrCode struct { ActionName string `json:"action_name"` ActionInfo struct { MultipleCard *MultiCard `json:"multiple_card"` Card *CardQRCode `json:"card"` } `json:"action_info"` }
type ScenicTicket ¶
type ScenicTicket struct {
BaseInfo *BaseInfo `json:"base_info"`
}
type SubMerchantID ¶ added in v3.0.41
type SubMerchantID struct {
SubMerchantID string `json:"merchant_id"`
}
type SubMerchantInfo ¶ added in v3.0.41
type SubMerchantInfo struct { BrandName string `json:"brand_name"` AppID string `json:"app_id,omitempty"` LogoURL string `json:"logo_url"` Protocol string `json:"protocol"` EndTime uint `json:"end_time"` PrimaryCategoryID int `json:"primary_category_id"` SecondaryCategoryID int `json:"secondary_category_id"` AgreementMediaID string `json:"agreement_media_id,omitempty"` OperatorMediaID string `json:"operator_media_id,omitempty"` }
type SubMerchantSubmit ¶ added in v3.0.41
type SubMerchantSubmit struct {
Info *SubMerchantInfo `json:"info"`
}
type UseCondition ¶
Click to show internal directories.
Click to hide internal directories.