couponconsume

package
v0.0.0-...-905ac7b Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CouponConsumeInfo

type CouponConsumeInfo struct {
	/**
	 * 验证券码数组
	 */
	CouponCodes []string `json:"couponCodes"`
	/**
	 * 操作状态
	 */
	Result int32 `json:"result"`
	/**
	 * 项目ID
	 */
	DealId int64 `json:"dealId"`
	/**
	 * 项目名称
	 */
	DealTitle string `json:"dealTitle"`
	/**
	 * 美团门店ID
	 */
	Poiid int64 `json:"poiid"`
	/**
	 * 返回值消息
	 */
	Message string `json:"message"`
	/**
	 * 开店宝套餐名
	 */
	RawTitle string `json:"rawTitle"`
	/**
	 * 团购项目在App端的展示标题
	 */
	PlatformTitle string `json:"platformTitle"`
	/**
	 * 券面值,即人们常说的市场价
	 */
	DealValue float64 `json:"dealValue"`
}

type CouponConsumeRequest

type CouponConsumeRequest struct {
	/**
	 *  商家登录ERP帐号ID
	 */
	EId string `json:"eId"`
	/**
	 *  商家登录ERP帐号名称
	 */
	EName string `json:"eName"`
	/**
	 *  第三方ERP订单号
	 */
	EOrderId string `json:"eOrderId"`
	/**
	 *  数量
	 */
	Count int32 `json:"count"`
	/**
	 *  券码
	 */
	CouponCode string `json:"couponCode"`
}

func (*CouponConsumeRequest) DoInvoke

func (req *CouponConsumeRequest) DoInvoke(client mtclient.MeituanClient, appAuthToken string) (*CouponConsumeResponse, error)

type CouponConsumeResponse

type CouponConsumeResponse struct {
	Code    string            `json:"code"`
	Msg     string            `json:"msg"`
	Data    CouponConsumeInfo `json:"data"`
	TraceId string            `json:"traceId"`
}

func (*CouponConsumeResponse) IsSuccess

func (response *CouponConsumeResponse) IsSuccess() bool

Jump to

Keyboard shortcuts

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