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 CouponConsumeData

type CouponConsumeData struct {
	/**
	 * 验券结果
	 */
	Result bool `json:"result"`
}

type CouponConsumeRequest

type CouponConsumeRequest struct {
	/**
	 *  券码
	 */
	Codes []string `json:"codes"`
	/**
	 *  幂等因子(会与授权的门店一起构造唯一请求标识校验幂等,缓存时间为5分钟)
	 */
	Idempotent string `json:"idempotent"`
}

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    CouponConsumeData `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