Documentation ¶
Overview ¶
Package eleenterprisecoupon 包含企业订餐优惠券API相关结构体
Index ¶
- type AlibabaeleenterprisecartcoupongetAPIRequest
- func (r AlibabaeleenterprisecartcoupongetAPIRequest) GetApiMethodName() string
- func (r AlibabaeleenterprisecartcoupongetAPIRequest) GetApiParams(params url.Values)
- func (r AlibabaeleenterprisecartcoupongetAPIRequest) GetCartId() string
- func (r AlibabaeleenterprisecartcoupongetAPIRequest) GetPhone() string
- func (r AlibabaeleenterprisecartcoupongetAPIRequest) GetRawParams() model.Params
- func (r *AlibabaeleenterprisecartcoupongetAPIRequest) SetCartId(_cartId string) error
- func (r *AlibabaeleenterprisecartcoupongetAPIRequest) SetPhone(_phone string) error
- type AlibabaeleenterprisecartcoupongetAPIResponse
- type AlibabaeleenterprisecartcoupongetAPIResponseModel
- type AlibabaeleenterprisecoupongetAPIRequest
- func (r AlibabaeleenterprisecoupongetAPIRequest) GetApiMethodName() string
- func (r AlibabaeleenterprisecoupongetAPIRequest) GetApiParams(params url.Values)
- func (r AlibabaeleenterprisecoupongetAPIRequest) GetPhone() string
- func (r AlibabaeleenterprisecoupongetAPIRequest) GetRawParams() model.Params
- func (r *AlibabaeleenterprisecoupongetAPIRequest) SetPhone(_phone string) error
- type AlibabaeleenterprisecoupongetAPIResponse
- type AlibabaeleenterprisecoupongetAPIResponseModel
- type AlibabaeleenterprisecouponsendAPIRequest
- func (r AlibabaeleenterprisecouponsendAPIRequest) GetApiMethodName() string
- func (r AlibabaeleenterprisecouponsendAPIRequest) GetApiParams(params url.Values)
- func (r AlibabaeleenterprisecouponsendAPIRequest) GetBatchNo() string
- func (r AlibabaeleenterprisecouponsendAPIRequest) GetChannel() string
- func (r AlibabaeleenterprisecouponsendAPIRequest) GetDeviceId() string
- func (r AlibabaeleenterprisecouponsendAPIRequest) GetIp() string
- func (r AlibabaeleenterprisecouponsendAPIRequest) GetLatitude() string
- func (r AlibabaeleenterprisecouponsendAPIRequest) GetLongitude() string
- func (r AlibabaeleenterprisecouponsendAPIRequest) GetPhone() string
- func (r AlibabaeleenterprisecouponsendAPIRequest) GetRawParams() model.Params
- func (r AlibabaeleenterprisecouponsendAPIRequest) GetUserAgent() string
- func (r *AlibabaeleenterprisecouponsendAPIRequest) SetBatchNo(_batchNo string) error
- func (r *AlibabaeleenterprisecouponsendAPIRequest) SetChannel(_channel string) error
- func (r *AlibabaeleenterprisecouponsendAPIRequest) SetDeviceId(_deviceId string) error
- func (r *AlibabaeleenterprisecouponsendAPIRequest) SetIp(_ip string) error
- func (r *AlibabaeleenterprisecouponsendAPIRequest) SetLatitude(_latitude string) error
- func (r *AlibabaeleenterprisecouponsendAPIRequest) SetLongitude(_longitude string) error
- func (r *AlibabaeleenterprisecouponsendAPIRequest) SetPhone(_phone string) error
- func (r *AlibabaeleenterprisecouponsendAPIRequest) SetUserAgent(_userAgent string) error
- type AlibabaeleenterprisecouponsendAPIResponse
- type AlibabaeleenterprisecouponsendAPIResponseModel
- type CartCouponDto
- type MyCouponsResDto
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlibabaeleenterprisecartcoupongetAPIRequest ¶ added in v1.3.1
type AlibabaeleenterprisecartcoupongetAPIRequest struct { model.Params // contains filtered or unexported fields }
AlibabaeleenterprisecartcoupongetAPIRequest 获取下单可用的优惠券 API请求 alibaba.ele.enterprise.cartcoupon.get
获取下单可用的优惠券
func NewAlibabaeleenterprisecartcoupongetRequest ¶ added in v1.3.1
func NewAlibabaeleenterprisecartcoupongetRequest() *AlibabaeleenterprisecartcoupongetAPIRequest
NewAlibabaeleenterprisecartcoupongetRequest 初始化AlibabaeleenterprisecartcoupongetAPIRequest对象
func (AlibabaeleenterprisecartcoupongetAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r AlibabaeleenterprisecartcoupongetAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AlibabaeleenterprisecartcoupongetAPIRequest) GetApiParams ¶ added in v1.3.1
func (r AlibabaeleenterprisecartcoupongetAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (AlibabaeleenterprisecartcoupongetAPIRequest) GetCartId ¶ added in v1.3.1
func (r AlibabaeleenterprisecartcoupongetAPIRequest) GetCartId() string
GetCartId CartId Getter
func (AlibabaeleenterprisecartcoupongetAPIRequest) GetPhone ¶ added in v1.3.1
func (r AlibabaeleenterprisecartcoupongetAPIRequest) GetPhone() string
GetPhone Phone Getter
func (AlibabaeleenterprisecartcoupongetAPIRequest) GetRawParams ¶ added in v1.3.1
func (r AlibabaeleenterprisecartcoupongetAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*AlibabaeleenterprisecartcoupongetAPIRequest) SetCartId ¶ added in v1.3.1
func (r *AlibabaeleenterprisecartcoupongetAPIRequest) SetCartId(_cartId string) error
SetCartId is CartId Setter 购物车id
func (*AlibabaeleenterprisecartcoupongetAPIRequest) SetPhone ¶ added in v1.3.1
func (r *AlibabaeleenterprisecartcoupongetAPIRequest) SetPhone(_phone string) error
SetPhone is Phone Setter 手机号
type AlibabaeleenterprisecartcoupongetAPIResponse ¶ added in v1.3.1
type AlibabaeleenterprisecartcoupongetAPIResponse struct { model.CommonResponse AlibabaeleenterprisecartcoupongetAPIResponseModel }
AlibabaeleenterprisecartcoupongetAPIResponse 获取下单可用的优惠券 API返回值 alibaba.ele.enterprise.cartcoupon.get
获取下单可用的优惠券
type AlibabaeleenterprisecartcoupongetAPIResponseModel ¶ added in v1.3.1
type AlibabaeleenterprisecartcoupongetAPIResponseModel struct { XMLName xml.Name `xml:"alibaba_ele_enterprise_cartcoupon_get_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 响应code EnterpriseCode string `json:"enterprise_code,omitempty" xml:"enterprise_code,omitempty"` // 响应信息 EnterpriseMsg string `json:"enterprise_msg,omitempty" xml:"enterprise_msg,omitempty"` // 请求id EnterpriseRequestid string `json:"enterprise_requestid,omitempty" xml:"enterprise_requestid,omitempty"` // 返回值信息 EnterpriseDatas *MyCouponsResDto `json:"enterprise_datas,omitempty" xml:"enterprise_datas,omitempty"` }
AlibabaeleenterprisecartcoupongetAPIResponseModel is 获取下单可用的优惠券 成功返回结果
type AlibabaeleenterprisecoupongetAPIRequest ¶ added in v1.3.1
type AlibabaeleenterprisecoupongetAPIRequest struct { model.Params // contains filtered or unexported fields }
AlibabaeleenterprisecoupongetAPIRequest 获取用户优惠券 API请求 alibaba.ele.enterprise.coupon.get
获取用户优惠券
func NewAlibabaeleenterprisecoupongetRequest ¶ added in v1.3.1
func NewAlibabaeleenterprisecoupongetRequest() *AlibabaeleenterprisecoupongetAPIRequest
NewAlibabaeleenterprisecoupongetRequest 初始化AlibabaeleenterprisecoupongetAPIRequest对象
func (AlibabaeleenterprisecoupongetAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r AlibabaeleenterprisecoupongetAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AlibabaeleenterprisecoupongetAPIRequest) GetApiParams ¶ added in v1.3.1
func (r AlibabaeleenterprisecoupongetAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (AlibabaeleenterprisecoupongetAPIRequest) GetPhone ¶ added in v1.3.1
func (r AlibabaeleenterprisecoupongetAPIRequest) GetPhone() string
GetPhone Phone Getter
func (AlibabaeleenterprisecoupongetAPIRequest) GetRawParams ¶ added in v1.3.1
func (r AlibabaeleenterprisecoupongetAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*AlibabaeleenterprisecoupongetAPIRequest) SetPhone ¶ added in v1.3.1
func (r *AlibabaeleenterprisecoupongetAPIRequest) SetPhone(_phone string) error
SetPhone is Phone Setter 手机号
type AlibabaeleenterprisecoupongetAPIResponse ¶ added in v1.3.1
type AlibabaeleenterprisecoupongetAPIResponse struct { model.CommonResponse AlibabaeleenterprisecoupongetAPIResponseModel }
AlibabaeleenterprisecoupongetAPIResponse 获取用户优惠券 API返回值 alibaba.ele.enterprise.coupon.get
获取用户优惠券
type AlibabaeleenterprisecoupongetAPIResponseModel ¶ added in v1.3.1
type AlibabaeleenterprisecoupongetAPIResponseModel struct { XMLName xml.Name `xml:"alibaba_ele_enterprise_coupon_get_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 返回值信息 EnterpriseDatas []MyCouponsResDto `json:"enterprise_datas,omitempty" xml:"enterprise_datas>my_coupons_res_dto,omitempty"` // 响应code EnterpriseCode string `json:"enterprise_code,omitempty" xml:"enterprise_code,omitempty"` // 响应信息 EnterpriseMsg string `json:"enterprise_msg,omitempty" xml:"enterprise_msg,omitempty"` // 请求id EnterpriseRequestid string `json:"enterprise_requestid,omitempty" xml:"enterprise_requestid,omitempty"` }
AlibabaeleenterprisecoupongetAPIResponseModel is 获取用户优惠券 成功返回结果
type AlibabaeleenterprisecouponsendAPIRequest ¶ added in v1.3.1
type AlibabaeleenterprisecouponsendAPIRequest struct { model.Params // contains filtered or unexported fields }
AlibabaeleenterprisecouponsendAPIRequest 发放优惠券 API请求 alibaba.ele.enterprise.coupon.send
发放优惠券
func NewAlibabaeleenterprisecouponsendRequest ¶ added in v1.3.1
func NewAlibabaeleenterprisecouponsendRequest() *AlibabaeleenterprisecouponsendAPIRequest
NewAlibabaeleenterprisecouponsendRequest 初始化AlibabaeleenterprisecouponsendAPIRequest对象
func (AlibabaeleenterprisecouponsendAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r AlibabaeleenterprisecouponsendAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AlibabaeleenterprisecouponsendAPIRequest) GetApiParams ¶ added in v1.3.1
func (r AlibabaeleenterprisecouponsendAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (AlibabaeleenterprisecouponsendAPIRequest) GetBatchNo ¶ added in v1.3.1
func (r AlibabaeleenterprisecouponsendAPIRequest) GetBatchNo() string
GetBatchNo BatchNo Getter
func (AlibabaeleenterprisecouponsendAPIRequest) GetChannel ¶ added in v1.3.1
func (r AlibabaeleenterprisecouponsendAPIRequest) GetChannel() string
GetChannel Channel Getter
func (AlibabaeleenterprisecouponsendAPIRequest) GetDeviceId ¶ added in v1.3.1
func (r AlibabaeleenterprisecouponsendAPIRequest) GetDeviceId() string
GetDeviceId DeviceId Getter
func (AlibabaeleenterprisecouponsendAPIRequest) GetIp ¶ added in v1.3.1
func (r AlibabaeleenterprisecouponsendAPIRequest) GetIp() string
GetIp Ip Getter
func (AlibabaeleenterprisecouponsendAPIRequest) GetLatitude ¶ added in v1.3.1
func (r AlibabaeleenterprisecouponsendAPIRequest) GetLatitude() string
GetLatitude Latitude Getter
func (AlibabaeleenterprisecouponsendAPIRequest) GetLongitude ¶ added in v1.3.1
func (r AlibabaeleenterprisecouponsendAPIRequest) GetLongitude() string
GetLongitude Longitude Getter
func (AlibabaeleenterprisecouponsendAPIRequest) GetPhone ¶ added in v1.3.1
func (r AlibabaeleenterprisecouponsendAPIRequest) GetPhone() string
GetPhone Phone Getter
func (AlibabaeleenterprisecouponsendAPIRequest) GetRawParams ¶ added in v1.3.1
func (r AlibabaeleenterprisecouponsendAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (AlibabaeleenterprisecouponsendAPIRequest) GetUserAgent ¶ added in v1.3.1
func (r AlibabaeleenterprisecouponsendAPIRequest) GetUserAgent() string
GetUserAgent UserAgent Getter
func (*AlibabaeleenterprisecouponsendAPIRequest) SetBatchNo ¶ added in v1.3.1
func (r *AlibabaeleenterprisecouponsendAPIRequest) SetBatchNo(_batchNo string) error
SetBatchNo is BatchNo Setter 批次,同一个批次号只会发券一次,后续用同一个批次号的请求会返回上次发的券(幂等)
func (*AlibabaeleenterprisecouponsendAPIRequest) SetChannel ¶ added in v1.3.1
func (r *AlibabaeleenterprisecouponsendAPIRequest) SetChannel(_channel string) error
SetChannel is Channel Setter 固定值,申请获取
func (*AlibabaeleenterprisecouponsendAPIRequest) SetDeviceId ¶ added in v1.3.1
func (r *AlibabaeleenterprisecouponsendAPIRequest) SetDeviceId(_deviceId string) error
SetDeviceId is DeviceId Setter 设备ID
func (*AlibabaeleenterprisecouponsendAPIRequest) SetIp ¶ added in v1.3.1
func (r *AlibabaeleenterprisecouponsendAPIRequest) SetIp(_ip string) error
SetIp is Ip Setter 客户端IP地址
func (*AlibabaeleenterprisecouponsendAPIRequest) SetLatitude ¶ added in v1.3.1
func (r *AlibabaeleenterprisecouponsendAPIRequest) SetLatitude(_latitude string) error
SetLatitude is Latitude Setter 纬度
func (*AlibabaeleenterprisecouponsendAPIRequest) SetLongitude ¶ added in v1.3.1
func (r *AlibabaeleenterprisecouponsendAPIRequest) SetLongitude(_longitude string) error
SetLongitude is Longitude Setter 经度
func (*AlibabaeleenterprisecouponsendAPIRequest) SetPhone ¶ added in v1.3.1
func (r *AlibabaeleenterprisecouponsendAPIRequest) SetPhone(_phone string) error
SetPhone is Phone Setter 手机号
func (*AlibabaeleenterprisecouponsendAPIRequest) SetUserAgent ¶ added in v1.3.1
func (r *AlibabaeleenterprisecouponsendAPIRequest) SetUserAgent(_userAgent string) error
SetUserAgent is UserAgent Setter 客户端User-Agent信息
type AlibabaeleenterprisecouponsendAPIResponse ¶ added in v1.3.1
type AlibabaeleenterprisecouponsendAPIResponse struct { model.CommonResponse AlibabaeleenterprisecouponsendAPIResponseModel }
AlibabaeleenterprisecouponsendAPIResponse 发放优惠券 API返回值 alibaba.ele.enterprise.coupon.send
发放优惠券
type AlibabaeleenterprisecouponsendAPIResponseModel ¶ added in v1.3.1
type AlibabaeleenterprisecouponsendAPIResponseModel struct { XMLName xml.Name `xml:"alibaba_ele_enterprise_coupon_send_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 返回值信息 EnterpriseDatas []MyCouponsResDto `json:"enterprise_datas,omitempty" xml:"enterprise_datas>my_coupons_res_dto,omitempty"` // 响应code EnterpriseCode string `json:"enterprise_code,omitempty" xml:"enterprise_code,omitempty"` // 响应信息 EnterpriseMsg string `json:"enterprise_msg,omitempty" xml:"enterprise_msg,omitempty"` // 请求id EnterpriseRequestid string `json:"enterprise_requestid,omitempty" xml:"enterprise_requestid,omitempty"` }
AlibabaeleenterprisecouponsendAPIResponseModel is 发放优惠券 成功返回结果
type CartCouponDto ¶
type CartCouponDto struct { // 券描述信息 Descriptions []string `json:"descriptions,omitempty" xml:"descriptions>string,omitempty"` UnavailableReasons []string `json:"unavailable_reasons,omitempty" xml:"unavailable_reasons>string,omitempty"` // 红包的SN或者券的ID Sn string `json:"sn,omitempty" xml:"sn,omitempty"` // 券名称 Name string `json:"name,omitempty" xml:"name,omitempty"` // 优惠类型为立减时表示立减金额, 优惠类型为特价券时,表示特价金额 Amount string `json:"amount,omitempty" xml:"amount,omitempty"` // 使用门槛 Threshold string `json:"threshold,omitempty" xml:"threshold,omitempty"` // 券剩余张数 StockCountLeft string `json:"stock_count_left,omitempty" xml:"stock_count_left,omitempty"` // 类型:红包=1,券=2 PromotionType int64 `json:"promotion_type,omitempty" xml:"promotion_type,omitempty"` // 券的张数,默认是1,ET时表示使用的张数 Quantity int64 `json:"quantity,omitempty" xml:"quantity,omitempty"` // 券的展示状态 1:券可用可选中 2:券可用但是不可选中 3:券不可用,不可选中 Status int64 `json:"status,omitempty" xml:"status,omitempty"` // 券可使用张数 StockCountAvailable int64 `json:"stock_count_available,omitempty" xml:"stock_count_available,omitempty"` }
CartCouponDto 结构体
type MyCouponsResDto ¶
type MyCouponsResDto struct { // 券的明细数据 Groups []CartCouponDto `json:"groups,omitempty" xml:"groups>cart_coupon_dto,omitempty"` // 推荐券 Recommends []CartCouponDto `json:"recommends,omitempty" xml:"recommends>cart_coupon_dto,omitempty"` // 限制条件 Descriptions []string `json:"descriptions,omitempty" xml:"descriptions>string,omitempty"` // 已选择券的总价,包含溢出与裁剪之后的总价值 SelectedTotalPrice string `json:"selected_total_price,omitempty" xml:"selected_total_price,omitempty"` // 选出最优券的总价 RecommendsTotalPrice string `json:"recommends_total_price,omitempty" xml:"recommends_total_price,omitempty"` // 已选择券不可以组合选中时的提示性文案 ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` // 优惠券名称 Name string `json:"name,omitempty" xml:"name,omitempty"` // 优惠券金额 Amount string `json:"amount,omitempty" xml:"amount,omitempty"` // 优惠券门槛金额 Threshold string `json:"threshold,omitempty" xml:"threshold,omitempty"` // 券ID Sn string `json:"sn,omitempty" xml:"sn,omitempty"` // 券名称 Title string `json:"title,omitempty" xml:"title,omitempty"` // 券生效日期时间 BeginDateTime string `json:"begin_date_time,omitempty" xml:"begin_date_time,omitempty"` // 券失效日期时间 EndDateTime string `json:"end_date_time,omitempty" xml:"end_date_time,omitempty"` // 手机号 Phone string `json:"phone,omitempty" xml:"phone,omitempty"` // 券使用条件 Condition string `json:"condition,omitempty" xml:"condition,omitempty"` // 已选择券的总数量 SelectedQuantity int64 `json:"selected_quantity,omitempty" xml:"selected_quantity,omitempty"` // 选出最优券的数量 RecommendsQuantity int64 `json:"recommends_quantity,omitempty" xml:"recommends_quantity,omitempty"` // id Id int64 `json:"id,omitempty" xml:"id,omitempty"` // 是否可选择多张券 GroupMulti bool `json:"group_multi,omitempty" xml:"group_multi,omitempty"` // 已选择的券是不是可以有效组合选中 SelectedLegalStatus bool `json:"selected_legal_status,omitempty" xml:"selected_legal_status,omitempty"` }
MyCouponsResDto 结构体
Source Files ¶
- AlibabaEleEnterpriseCartcouponGetAPIRequest.go
- AlibabaEleEnterpriseCartcouponGetAPIResponse.go
- AlibabaEleEnterpriseCouponGetAPIRequest.go
- AlibabaEleEnterpriseCouponGetAPIResponse.go
- AlibabaEleEnterpriseCouponSendAPIRequest.go
- AlibabaEleEnterpriseCouponSendAPIResponse.go
- CartCouponDto.go
- MyCouponsResDto.go
- doc.go