Versions in this module Expand all Collapse all v1 v1.0.0 May 12, 2023 Changes in this version + const CardStatusNotVerify + const CardStatusUserDelete + const CardStatusUserDispatch + const CardStatusVerifyFail + const CardStatusVerifyOk + const CardTypeBoardingPass + const CardTypeCash + const CardTypeDiscount + const CardTypeGeneralCoupon + const CardTypeGift + const CardTypeGroupon + const CardTypeMeetingTicket + const CardTypeMemberCard + const CardTypeMovieTicket + const CardTypeScenicTicket + const CodeTypeBarCode + const CodeTypeOnlyBarCode + const CodeTypeOnlyQrcode + const CodeTypeQrcode + const CodeTypeText + const DateInfoTypeFixTerm + const DateInfoTypeFixTimeRange + const DateInfoTypePermanent + const EventTypeCardNotPassCheck + const EventTypeCardPassCheck + const EventTypeCardSkuRemind + const EventTypeGiftCardPayDone + const EventTypeGiftCardUserAccept + const EventTypeUserConsumeCard + const EventTypeUserDelCard + const EventTypeUserEnterSessionFromCard + const EventTypeUserGetCard + const EventTypeUserGiftingCard + const EventTypeUserViewCard + func Create(clt *core.Client, card *Card) (cardId string, err error) + func Delete(clt *core.Client, cardId string) (err error) + func ModifyStock(clt *core.Client, cardId string, increaseNum int) (err error) + func Sign(strs []string) (signature string) + func Update(clt *core.Client, cardId string, card *Card) (sendCheck bool, err error) + type Abstract struct + Abstract string + IconURLList []string + type AdvancedInfo struct + Abstract *Abstract + BusinessService []string + TextImageList []TextImageList + TimeLimit []TimeLimit + UseCondition *UseCondition + type BatchGetQuery struct + Count int + Offset int + StatusList []string + type BatchGetResult struct + CardIdList []string + ItemNum int + TotalNum int + func BatchGet(clt *core.Client, query *BatchGetQuery) (rslt *BatchGetResult, err error) + type BoardingPass struct + AdvancedInfo *AdvancedInfo + AirModel string + BaseInfo *CardBaseInfo + BoardingTime string + CheckinURL string + DepartureTime int64 + Flight string + From string + Gate string + LandingTime int64 + To string + type Card struct + BoardingPass *BoardingPass + CardType string + Cash *Cash + Discount *Discount + GeneralCoupon *GeneralCoupon + Gift *Gift + Groupon *Groupon + MeetingTicket *MeetingTicket + MemberCard *MemberCard + MovieTicket *MovieTicket + ScenicTicket *ScenicTicket + func Get(clt *core.Client, cardId string) (card *Card, err error) + type CardBaseInfo struct + AppId string + BindOpenId *bool + BrandName string + CanGiveFriend *bool + CanShare *bool + CardId string + CodeType string + Color string + CustomURL string + CustomURLName string + CustomURLSubTitle string + DateInfo *DateInfo + Description string + GetLimit *int + LocationIdList []int64 + LogoURL string + Notice string + PromotionURL string + PromotionURLName string + PromotionURLSubTitle string + SKU *SKU + ServicePhone string + Source string + Status string + SubTitle string + Title string + UseCustomCode *bool + UseLimit *int + type CardNotPassCheckEvent struct + CardId string + EventType core.EventType + RefuseReason string + XMLName struct{} + func GetCardNotPassCheckEvent(msg *core.MixedMsg) *CardNotPassCheckEvent + type CardPassCheckEvent struct + CardId string + EventType core.EventType + XMLName struct{} + func GetCardPassCheckEvent(msg *core.MixedMsg) *CardPassCheckEvent + type CardSkuRemindEvent struct + CardId string + Detail string + EventType core.EventType + XMLName struct{} + func GetCardSkuRemindEvent(msg *core.MixedMsg) *CardSkuRemindEvent + type Cash struct + AdvancedInfo *AdvancedInfo + BaseInfo *CardBaseInfo + LeastCost *int + ReduceCost *int + type Color struct + Name string + Value string + func GetColors(clt *core.Client) (colors []Color, err error) + type DateInfo struct + BeginTimestamp int64 + EndTimestamp int64 + FixedBeginTerm *int + FixedTerm *int + Type string + type Discount struct + AdvancedInfo *AdvancedInfo + BaseInfo *CardBaseInfo + Discount *int + type GeneralCoupon struct + AdvancedInfo *AdvancedInfo + BaseInfo *CardBaseInfo + DefaultDetail string + type Gift struct + AdvancedInfo *AdvancedInfo + BaseInfo *CardBaseInfo + Gift string + type GiftCardPayDoneEvent struct + EventType core.EventType + OrderId string + PageId string + XMLName struct{} + func GetGiftCardPayDoneEvent(msg *core.MixedMsg) *GiftCardPayDoneEvent + type GiftCardUserAcceptEvent struct + EventType core.EventType + OrderId string + PageId string + XMLName struct{} + func GetGiftCardUserAcceptEvent(msg *core.MixedMsg) *GiftCardUserAcceptEvent + type Groupon struct + AdvancedInfo *AdvancedInfo + BaseInfo *CardBaseInfo + DealDetail string + type MeetingTicket struct + AdvancedInfo *AdvancedInfo + BaseInfo *CardBaseInfo + MapURL string + MeetingDetail string + type MemberCard struct + ActivateURL string + AdvancedInfo *AdvancedInfo + BalanceRules string + BalanceURL string + BaseInfo *CardBaseInfo + BonusClearedRules string + BonusRules string + BonusURL string + CustomCell1 *MemberCardCustomCell + CustomField1 *MemberCardCustomField + CustomField2 *MemberCardCustomField + CustomField3 *MemberCardCustomField + NeedPushOnView *bool + Prerogative string + SupplyBalance *bool + SupplyBonus *bool + type MemberCardCustomCell struct + Name string + Tips string + URL string + type MemberCardCustomField struct + NameType string + URL string + type MovieTicket struct + AdvancedInfo *AdvancedInfo + BaseInfo *CardBaseInfo + Detail string + type SKU struct + Quantity int + type ScenicTicket struct + AdvancedInfo *AdvancedInfo + BaseInfo *CardBaseInfo + GuideURL string + TicketClass string + type TextImageList struct + ImageURL string + Text string + type TimeLimit struct + BeginHour int + BeginMinute int + EndHour int + EndMinute int + Type string + type UseCondition struct + AcceptCategory string + CanUseWithOtherDiscount bool + LeastCost int + RejectCategory string + type UserConsumeCardEvent struct + CardId string + ConsumeSource string + EventType core.EventType + LocationName string + OuterStr string + RemarkAmount string + StaffOpenId string + UserCardCode string + VerifyCode string + XMLName struct{} + func GetUserConsumeCardEvent(msg *core.MixedMsg) *UserConsumeCardEvent + type UserDelCardEvent struct + CardId string + EventType core.EventType + UserCardCode string + XMLName struct{} + func GetUserDelCardEvent(msg *core.MixedMsg) *UserDelCardEvent + type UserEnterSessionFromCardEvent struct + CardId string + EventType core.EventType + UserCardCode string + XMLName struct{} + func GetUserEnterSessionFromCardEvent(msg *core.MixedMsg) *UserEnterSessionFromCardEvent + type UserGetCardEvent struct + CardId string + EventType core.EventType + FriendUserName string + IsGiveByFriend int + IsRecommendByFriend int + IsRestoreMemberCard int + OldUserCardCode string + OuterId int64 + OuterStr string + UserCardCode string + XMLName struct{} + func GetUserGetCardEvent(msg *core.MixedMsg) *UserGetCardEvent + type UserGiftingCardEvent struct + CardId string + EventType core.EventType + FriendUserName string + IsChatRoom int + IsReturnBack int + UserCardCode string + XMLName struct{} + func GetUserGiftingCardEvent(msg *core.MixedMsg) *UserGiftingCardEvent + type UserViewCardEvent struct + CardId string + EventType core.EventType + UserCardCode string + XMLName struct{} + func GetUserViewCardEvent(msg *core.MixedMsg) *UserViewCardEvent