request

package
v3.2.38 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2024 License: MIT Imports: 0 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Abstract

type Abstract struct {
	Abstract    string   `json:"abstract"`
	IconURLList []string `json:"icon_url_list"`
}

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"`
	CanShare          bool           `json:"can_share,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 BusTicket

type BusTicket struct {
	BaseInfo *BaseInfo `json:"base_info"`
}

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

func (c Card) GetCardType() string

type CardInterface

type CardInterface interface {
	GetCardType() string
}

type CardQRCode

type CardQRCode struct {
	CardID   string `json:"card_id"`
	Code     string `json:"code"`
	OuterStr string `json:"outer_str"`
}

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 DateInfo

type DateInfo struct {
	Type           string `json:"type"`
	BeginTimestamp int    `json:"begin_timestamp"`
	EndTimestamp   int    `json:"end_timestamp"`
}

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 SKU

type SKU struct {
	Quantity int `json:"quantity"`
}

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 SwipeCard added in v3.0.41

type SwipeCard struct {
	IsSwapCard bool `json:"is_swipe_card"`
}

type TextImage

type TextImage struct {
	ImageURL string `json:"image_url"`
	Text     string `json:"text"`
}

type TimeLimit

type TimeLimit struct {
	Type        string `json:"type"`
	BeginHour   int    `json:"begin_hour,omitempty"`
	EndHour     int    `json:"end_hour,omitempty"`
	BeginMinute int    `json:"begin_minute,omitempty"`
	EndMinute   int    `json:"end_minute,omitempty"`
}

type UseCondition

type UseCondition struct {
	AcceptCategory          string `json:"accept_category"`
	RejectCategory          string `json:"reject_category"`
	CanUseWithOtherDiscount bool   `json:"can_use_with_other_discount"`
}

Jump to

Keyboard shortcuts

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