Documentation ¶
Overview ¶
Package alscmerchant 包含本地生活商户基础API相关结构体
Index ¶
- type AlibabaAlscMerchantExtTicketRefundAPIRequest
- func (r AlibabaAlscMerchantExtTicketRefundAPIRequest) GetApiMethodName() string
- func (r AlibabaAlscMerchantExtTicketRefundAPIRequest) GetApiParams() url.Values
- func (r AlibabaAlscMerchantExtTicketRefundAPIRequest) GetTicketCode() string
- func (r AlibabaAlscMerchantExtTicketRefundAPIRequest) GetTicketRequestId() string
- func (r AlibabaAlscMerchantExtTicketRefundAPIRequest) GetTransId() string
- func (r *AlibabaAlscMerchantExtTicketRefundAPIRequest) SetTicketCode(_ticketCode string) error
- func (r *AlibabaAlscMerchantExtTicketRefundAPIRequest) SetTicketRequestId(_ticketRequestId string) error
- func (r *AlibabaAlscMerchantExtTicketRefundAPIRequest) SetTransId(_transId string) error
- type AlibabaAlscMerchantExtTicketRefundAPIResponse
- type AlibabaAlscMerchantExtTicketRefundAPIResponseModel
- type AlibabaAlscMerchantExtTicketcodeUseAPIRequest
- func (r AlibabaAlscMerchantExtTicketcodeUseAPIRequest) GetApiMethodName() string
- func (r AlibabaAlscMerchantExtTicketcodeUseAPIRequest) GetApiParams() url.Values
- func (r AlibabaAlscMerchantExtTicketcodeUseAPIRequest) GetUseRequest() *ExternalTicketUseRequest
- func (r *AlibabaAlscMerchantExtTicketcodeUseAPIRequest) SetUseRequest(_useRequest *ExternalTicketUseRequest) error
- type AlibabaAlscMerchantExtTicketcodeUseAPIResponse
- type AlibabaAlscMerchantExtTicketcodeUseAPIResponseModel
- type ExternalTicketUseRequest
- type MerchantTicketUseDetail
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlibabaAlscMerchantExtTicketRefundAPIRequest ¶ added in v1.2.0
type AlibabaAlscMerchantExtTicketRefundAPIRequest struct { model.Params // contains filtered or unexported fields }
AlibabaAlscMerchantExtTicketRefundAPIRequest 口碑凭证售后退 API请求 alibaba.alsc.merchant.ext.ticket.refund
口碑凭证售后退
func NewAlibabaAlscMerchantExtTicketRefundRequest ¶
func NewAlibabaAlscMerchantExtTicketRefundRequest() *AlibabaAlscMerchantExtTicketRefundAPIRequest
NewAlibabaAlscMerchantExtTicketRefundRequest 初始化AlibabaAlscMerchantExtTicketRefundAPIRequest对象
func (AlibabaAlscMerchantExtTicketRefundAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r AlibabaAlscMerchantExtTicketRefundAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AlibabaAlscMerchantExtTicketRefundAPIRequest) GetApiParams ¶ added in v1.2.0
func (r AlibabaAlscMerchantExtTicketRefundAPIRequest) GetApiParams() url.Values
GetApiParams IRequest interface 方法, 获取API参数
func (AlibabaAlscMerchantExtTicketRefundAPIRequest) GetTicketCode ¶ added in v1.2.0
func (r AlibabaAlscMerchantExtTicketRefundAPIRequest) GetTicketCode() string
GetTicketCode TicketCode Getter
func (AlibabaAlscMerchantExtTicketRefundAPIRequest) GetTicketRequestId ¶ added in v1.2.0
func (r AlibabaAlscMerchantExtTicketRefundAPIRequest) GetTicketRequestId() string
GetTicketRequestId TicketRequestId Getter
func (AlibabaAlscMerchantExtTicketRefundAPIRequest) GetTransId ¶ added in v1.2.0
func (r AlibabaAlscMerchantExtTicketRefundAPIRequest) GetTransId() string
GetTransId TransId Getter
func (*AlibabaAlscMerchantExtTicketRefundAPIRequest) SetTicketCode ¶ added in v1.2.0
func (r *AlibabaAlscMerchantExtTicketRefundAPIRequest) SetTicketCode(_ticketCode string) error
SetTicketCode is TicketCode Setter 凭证码,包括内部凭证码和外部凭证码,内部凭证码为12位,纯数字,且唯一不重复
func (*AlibabaAlscMerchantExtTicketRefundAPIRequest) SetTicketRequestId ¶ added in v1.2.0
func (r *AlibabaAlscMerchantExtTicketRefundAPIRequest) SetTicketRequestId(_ticketRequestId string) error
SetTicketRequestId is TicketRequestId Setter 外部请求号,支持英文字母和数字,由开发者自行定义(不允许重复)
func (*AlibabaAlscMerchantExtTicketRefundAPIRequest) SetTransId ¶ added in v1.2.0
func (r *AlibabaAlscMerchantExtTicketRefundAPIRequest) SetTransId(_transId string) error
SetTransId is TransId Setter 券核销流水号,针对该次核销发起售后退操作
type AlibabaAlscMerchantExtTicketRefundAPIResponse ¶
type AlibabaAlscMerchantExtTicketRefundAPIResponse struct { model.CommonResponse AlibabaAlscMerchantExtTicketRefundAPIResponseModel }
AlibabaAlscMerchantExtTicketRefundAPIResponse 口碑凭证售后退 API返回值 alibaba.alsc.merchant.ext.ticket.refund
口碑凭证售后退
type AlibabaAlscMerchantExtTicketRefundAPIResponseModel ¶ added in v1.2.0
type AlibabaAlscMerchantExtTicketRefundAPIResponseModel struct { XMLName xml.Name `xml:"alibaba_alsc_merchant_ext_ticket_refund_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 外部请求号,支持英文字母和数字,由开发者自行定义(不允许重复) TicketRequestId string `json:"ticket_request_id,omitempty" xml:"ticket_request_id,omitempty"` // 业务返回code BizCode string `json:"biz_code,omitempty" xml:"biz_code,omitempty"` }
AlibabaAlscMerchantExtTicketRefundAPIResponseModel is 口碑凭证售后退 成功返回结果
type AlibabaAlscMerchantExtTicketcodeUseAPIRequest ¶ added in v1.2.0
type AlibabaAlscMerchantExtTicketcodeUseAPIRequest struct { model.Params // contains filtered or unexported fields }
AlibabaAlscMerchantExtTicketcodeUseAPIRequest 外部核销服务 API请求 alibaba.alsc.merchant.ext.ticketcode.use
外部核销服务
func NewAlibabaAlscMerchantExtTicketcodeUseRequest ¶
func NewAlibabaAlscMerchantExtTicketcodeUseRequest() *AlibabaAlscMerchantExtTicketcodeUseAPIRequest
NewAlibabaAlscMerchantExtTicketcodeUseRequest 初始化AlibabaAlscMerchantExtTicketcodeUseAPIRequest对象
func (AlibabaAlscMerchantExtTicketcodeUseAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r AlibabaAlscMerchantExtTicketcodeUseAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AlibabaAlscMerchantExtTicketcodeUseAPIRequest) GetApiParams ¶ added in v1.2.0
func (r AlibabaAlscMerchantExtTicketcodeUseAPIRequest) GetApiParams() url.Values
GetApiParams IRequest interface 方法, 获取API参数
func (AlibabaAlscMerchantExtTicketcodeUseAPIRequest) GetUseRequest ¶ added in v1.2.0
func (r AlibabaAlscMerchantExtTicketcodeUseAPIRequest) GetUseRequest() *ExternalTicketUseRequest
GetUseRequest UseRequest Getter
func (*AlibabaAlscMerchantExtTicketcodeUseAPIRequest) SetUseRequest ¶ added in v1.2.0
func (r *AlibabaAlscMerchantExtTicketcodeUseAPIRequest) SetUseRequest(_useRequest *ExternalTicketUseRequest) error
SetUseRequest is UseRequest Setter 外部券使用请求
type AlibabaAlscMerchantExtTicketcodeUseAPIResponse ¶
type AlibabaAlscMerchantExtTicketcodeUseAPIResponse struct { model.CommonResponse AlibabaAlscMerchantExtTicketcodeUseAPIResponseModel }
AlibabaAlscMerchantExtTicketcodeUseAPIResponse 外部核销服务 API返回值 alibaba.alsc.merchant.ext.ticketcode.use
外部核销服务
type AlibabaAlscMerchantExtTicketcodeUseAPIResponseModel ¶ added in v1.2.0
type AlibabaAlscMerchantExtTicketcodeUseAPIResponseModel struct { XMLName xml.Name `xml:"alibaba_alsc_merchant_ext_ticketcode_use_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 非次卡一次性核销多份场景,被核销的凭证明细信息 TicketUseDetails []MerchantTicketUseDetail `json:"ticket_use_details,omitempty" xml:"ticket_use_details>merchant_ticket_use_detail,omitempty"` // 凭证码所属的订单id OrderNo string `json:"order_no,omitempty" xml:"order_no,omitempty"` // 用户购买时商品的原价,单位为元,精确到小数点后两位 OriginalPrice string `json:"original_price,omitempty" xml:"original_price,omitempty"` // 该字段用于描述本次返回中的业务属性,现有:BIZ_ALREADY_SUCCESS(幂等业务码) BizCode string `json:"biz_code,omitempty" xml:"biz_code,omitempty"` // 用户购买时商品的现价,单位为元,精确到小数点后两位 CurrentPrice string `json:"current_price,omitempty" xml:"current_price,omitempty"` // 商家优惠金额,单位为元,精确到小数点后两位,一次性核销多份券场景,返回总商家优惠金额 DiscountAmount string `json:"discount_amount,omitempty" xml:"discount_amount,omitempty"` // 交易中可给用户开具发票的金额,单位为元,精确到小数点后两位,一次性核销多份券场景,返回总开票金额 InvoiceAmount string `json:"invoice_amount,omitempty" xml:"invoice_amount,omitempty"` // 券核销门店ID UseShopId string `json:"use_shop_id,omitempty" xml:"use_shop_id,omitempty"` // 凭证对应商品别名,在口碑商品创建时候设置 ItemAlias string `json:"item_alias,omitempty" xml:"item_alias,omitempty"` // 券核销门店名称 UseShopName string `json:"use_shop_name,omitempty" xml:"use_shop_name,omitempty"` // 口碑商品ID ItemId string `json:"item_id,omitempty" xml:"item_id,omitempty"` // 商家实收金额,单位为元,精确到小数点后两位,一次性核销多份券场景,返回总商家实收金额 ReceiptAmount string `json:"receipt_amount,omitempty" xml:"receipt_amount,omitempty"` // 用户购买时商品的名称 ItemName string `json:"item_name,omitempty" xml:"item_name,omitempty"` // 核销流水号 TicketTransId string `json:"ticket_trans_id,omitempty" xml:"ticket_trans_id,omitempty"` // 券核销时间 UseDate string `json:"use_date,omitempty" xml:"use_date,omitempty"` // 凭证码对应的凭证资产id VoucherId string `json:"voucher_id,omitempty" xml:"voucher_id,omitempty"` // 外部请求号,支持英文字母和数字,由开发者自行定义(不允许重复) TicketRequestId string `json:"ticket_request_id,omitempty" xml:"ticket_request_id,omitempty"` // 用户购买券的时候实际支付的金额,单位为元,精确到小数点后两位,一次性核销多份券场景,返回总实际支付金额 BuyerPayAmount string `json:"buyer_pay_amount,omitempty" xml:"buyer_pay_amount,omitempty"` // 口碑补贴金额,单位为元,精确到小数点后两位,一次性核销多份券场景,返回总口碑补贴金额 MerchantSubsidyAmount string `json:"merchant_subsidy_amount,omitempty" xml:"merchant_subsidy_amount,omitempty"` // 12位的券码,券码为纯数字,且唯一不重复 TicketCode string `json:"ticket_code,omitempty" xml:"ticket_code,omitempty"` }
AlibabaAlscMerchantExtTicketcodeUseAPIResponseModel is 外部核销服务 成功返回结果
type ExternalTicketUseRequest ¶
type ExternalTicketUseRequest struct { // 特殊可选 核销份数,次卡业务必填、非次卡业务选填, 非次卡场景表示核销同一订单下的同类凭证的个数 Quantity string `json:"quantity,omitempty" xml:"quantity,omitempty"` // 特殊可选 口碑订单号,使用外部凭证码核销时必填 OrderNo string `json:"order_no,omitempty" xml:"order_no,omitempty"` // 特殊可选 凭证码类型,INTERNAL_CODE(内部凭证码),EXTERNAL_CODE(外部凭证码),默认INTERNAL_CODE,外部券场景必填 CodeType string `json:"code_type,omitempty" xml:"code_type,omitempty"` // 外部请求号,支持英文字母和数字,由开发者自行定义(不允许重复) TicketRequestId string `json:"ticket_request_id,omitempty" xml:"ticket_request_id,omitempty"` // 口碑门店id ShopId string `json:"shop_id,omitempty" xml:"shop_id,omitempty"` // 门店id类型,INTERNAL_SHOP(内部店铺id),EXTERNAL_SHOP(外部店铺id),默认INTERNAL_SHOP ShopType string `json:"shop_type,omitempty" xml:"shop_type,omitempty"` // 凭证码,包括内部凭证码和外部凭证码,内部凭证码为12位,纯数字,且唯一不重复 TicketCode string `json:"ticket_code,omitempty" xml:"ticket_code,omitempty"` // 业务发生时间,默认为接口调用时间 GmtBiz string `json:"gmt_biz,omitempty" xml:"gmt_biz,omitempty"` }
ExternalTicketUseRequest 结构体
type MerchantTicketUseDetail ¶
type MerchantTicketUseDetail struct { // 券核销流水号 TicketTransId string `json:"ticket_trans_id,omitempty" xml:"ticket_trans_id,omitempty"` // 核销的券码 TicketCode string `json:"ticket_code,omitempty" xml:"ticket_code,omitempty"` // 用户购买券的时候实际支付的金额,单位为元,精确到小数点后两位 BuyerPayAmount string `json:"buyer_pay_amount,omitempty" xml:"buyer_pay_amount,omitempty"` // 商家实收金额,单位为元,精确到小数点后两位 ReceiptAmount string `json:"receipt_amount,omitempty" xml:"receipt_amount,omitempty"` // 商家优惠金额,单位为元,精确到小数点后两位 DiscountAmount string `json:"discount_amount,omitempty" xml:"discount_amount,omitempty"` // 口碑补贴金额,单位为元,精确到小数点后两位 MerchantSubsidyAmount string `json:"merchant_subsidy_amount,omitempty" xml:"merchant_subsidy_amount,omitempty"` // 交易中可给用户开具发票的金额,单位为元,精确到小数点后两位 InvoiceAmount string `json:"invoice_amount,omitempty" xml:"invoice_amount,omitempty"` }
MerchantTicketUseDetail 结构体