coupon

package
v1.22.4 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package coupon 线索通卡券组件管理 API

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CodeConsume

func CodeConsume(clt *core.SDKClient, accessToken string, req *coupon.CodeConsumeRequest) error

CodeConsume 核销券码

func CodeGet

func CodeGet(clt *core.SDKClient, accessToken string, req *coupon.CodeGetRequest) (*coupon.CodeGetResponseData, error)

CodeGet 查询券码记录

func CodeUpload

func CodeUpload(clt *core.SDKClient, accessToken string, req *coupon.CodeUploadRequest) (*coupon.CodeUploadResponseData, error)

CodeUpload 上传券码 通过此接口,你可以上传优惠券的券码。调用此接口前,需要先创建卡券,获取优惠券id,优惠券的券码类型需要为商家上传券码类型。

func Create

func Create(clt *core.SDKClient, accessToken string, req *coupon.CreateRequest) (uint64, error)

Create 创建卡券 创建青鸟线索通卡券接口

func Detail

func Detail(clt *core.SDKClient, accessToken string, req *coupon.DetailRequest) (*coupon.DetailResponseData, error)

Detail 获取卡券详情

func EmployeeCreate

func EmployeeCreate(clt *core.SDKClient, accessToken string, req *coupon.EmployeeCreateRequest) (*coupon.EmployeeCreateResponseData, error)

EmployeeCreate 添加核销员

func EmployeeDelete

func EmployeeDelete(clt *core.SDKClient, accessToken string, req *coupon.EmployeeDeleteRequest) error

EmployeeDelete 删除核销员

func EmployeeGet

func EmployeeGet(clt *core.SDKClient, accessToken string, req *coupon.EmployeeGetRequest) (*coupon.EmployeeGetResponseData, error)

EmployeeGet 查询核销员

func Get

func Get(clt *core.SDKClient, accessToken string, req *coupon.GetRequest) (*coupon.GetResponseData, error)

Get 获取卡券列表

func Update

func Update(clt *core.SDKClient, accessToken string, req *coupon.UpdateRequest) error

Update 编辑卡券 编辑卡券接口。 只有deliver_start、deliver_end、global_limit、user_limit允许编辑。 卡券开始后,所有的数据都不允许修改。 status字段控制卡券的上下线,只支持:NORMAL:上线,OFFLINE:下线

Types

This section is empty.

Jump to

Keyboard shortcuts

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