Documentation ¶
Overview ¶
Package ticket 包含门票-商品管理API相关结构体
Index ¶
- func ReleaseAlitripTicketProductQueryAPIRequest(v *AlitripTicketProductQueryAPIRequest)
- func ReleaseAlitripTicketProductQueryAPIResponse(v *AlitripTicketProductQueryAPIResponse)
- func ReleaseAlitripTicketProductUploadAPIRequest(v *AlitripTicketProductUploadAPIRequest)
- func ReleaseAlitripTicketProductUploadAPIResponse(v *AlitripTicketProductUploadAPIResponse)
- func ReleaseAlitripTicketRuleQueryAPIRequest(v *AlitripTicketRuleQueryAPIRequest)
- func ReleaseAlitripTicketRuleQueryAPIResponse(v *AlitripTicketRuleQueryAPIResponse)
- func ReleaseAlitripTicketRuleUploadAPIRequest(v *AlitripTicketRuleUploadAPIRequest)
- func ReleaseAlitripTicketRuleUploadAPIResponse(v *AlitripTicketRuleUploadAPIResponse)
- func ReleaseAlitripTicketRuleUploadResultSet(v *AlitripTicketRuleUploadResultSet)
- func ReleaseAlitripTicketScenicBindAPIRequest(v *AlitripTicketScenicBindAPIRequest)
- func ReleaseAlitripTicketScenicBindAPIResponse(v *AlitripTicketScenicBindAPIResponse)
- func ReleaseAlitripTicketScenicQueryAPIRequest(v *AlitripTicketScenicQueryAPIRequest)
- func ReleaseAlitripTicketScenicQueryAPIResponse(v *AlitripTicketScenicQueryAPIResponse)
- func ReleaseAlitripTicketSkusBatchUploadAPIRequest(v *AlitripTicketSkusBatchUploadAPIRequest)
- func ReleaseAlitripTicketSkusBatchUploadAPIResponse(v *AlitripTicketSkusBatchUploadAPIResponse)
- func ReleaseAlitripTicketSkusUploadAPIRequest(v *AlitripTicketSkusUploadAPIRequest)
- func ReleaseAlitripTicketSkusUploadAPIResponse(v *AlitripTicketSkusUploadAPIResponse)
- func ReleaseCodeSendingInfo(v *CodeSendingInfo)
- func ReleaseDateInventory(v *DateInventory)
- func ReleaseItemEleCertInfo(v *ItemEleCertInfo)
- func ReleasePriceRule(v *PriceRule)
- func ReleaseProduct(v *Product)
- func ReleaseScenic(v *Scenic)
- func ReleaseScenicAndProductResult(v *ScenicAndProductResult)
- func ReleaseTicketItemResult(v *TicketItemResult)
- func ReleaseTicketPriceRule(v *TicketPriceRule)
- func ReleaseTicketRuleParam(v *TicketRuleParam)
- func ReleaseTicketScenicResult(v *TicketScenicResult)
- func ReleaseTicketSimpleSkuParam(v *TicketSimpleSkuParam)
- func ReleaseTopTicketItemFullinfoResult(v *TopTicketItemFullinfoResult)
- func ReleaseTopTicketRuleResult(v *TopTicketRuleResult)
- type AlitripTicketProductQueryAPIRequest
- func (r AlitripTicketProductQueryAPIRequest) GetAliProductId() int64
- func (r AlitripTicketProductQueryAPIRequest) GetApiMethodName() string
- func (r AlitripTicketProductQueryAPIRequest) GetApiParams(params url.Values)
- func (r AlitripTicketProductQueryAPIRequest) GetItemId() int64
- func (r AlitripTicketProductQueryAPIRequest) GetOutProductId() string
- func (r AlitripTicketProductQueryAPIRequest) GetPageSource() string
- func (r AlitripTicketProductQueryAPIRequest) GetRawParams() model.Params
- func (r *AlitripTicketProductQueryAPIRequest) Reset()
- func (r *AlitripTicketProductQueryAPIRequest) SetAliProductId(_aliProductId int64) error
- func (r *AlitripTicketProductQueryAPIRequest) SetItemId(_itemId int64) error
- func (r *AlitripTicketProductQueryAPIRequest) SetOutProductId(_outProductId string) error
- func (r *AlitripTicketProductQueryAPIRequest) SetPageSource(_pageSource string) error
- type AlitripTicketProductQueryAPIResponse
- type AlitripTicketProductQueryAPIResponseModel
- type AlitripTicketProductUploadAPIRequest
- func (r AlitripTicketProductUploadAPIRequest) GetAliProductId() int64
- func (r AlitripTicketProductUploadAPIRequest) GetApiMethodName() string
- func (r AlitripTicketProductUploadAPIRequest) GetApiParams(params url.Values)
- func (r AlitripTicketProductUploadAPIRequest) GetCodeSendingInfo() *CodeSendingInfo
- func (r AlitripTicketProductUploadAPIRequest) GetDesc() string
- func (r AlitripTicketProductUploadAPIRequest) GetExpireDate() string
- func (r AlitripTicketProductUploadAPIRequest) GetInventoryType() int64
- func (r AlitripTicketProductUploadAPIRequest) GetNeedEnterDate() int64
- func (r AlitripTicketProductUploadAPIRequest) GetOutProductId() string
- func (r AlitripTicketProductUploadAPIRequest) GetOutProductName() string
- func (r AlitripTicketProductUploadAPIRequest) GetPicUrls() []string
- func (r AlitripTicketProductUploadAPIRequest) GetRawParams() model.Params
- func (r AlitripTicketProductUploadAPIRequest) GetReserveLimitRule() string
- func (r AlitripTicketProductUploadAPIRequest) GetReserveLimitType() int64
- func (r AlitripTicketProductUploadAPIRequest) GetTitle() string
- func (r AlitripTicketProductUploadAPIRequest) GetUpdateOutProductId() string
- func (r *AlitripTicketProductUploadAPIRequest) Reset()
- func (r *AlitripTicketProductUploadAPIRequest) SetAliProductId(_aliProductId int64) error
- func (r *AlitripTicketProductUploadAPIRequest) SetCodeSendingInfo(_codeSendingInfo *CodeSendingInfo) error
- func (r *AlitripTicketProductUploadAPIRequest) SetDesc(_desc string) error
- func (r *AlitripTicketProductUploadAPIRequest) SetExpireDate(_expireDate string) error
- func (r *AlitripTicketProductUploadAPIRequest) SetInventoryType(_inventoryType int64) error
- func (r *AlitripTicketProductUploadAPIRequest) SetNeedEnterDate(_needEnterDate int64) error
- func (r *AlitripTicketProductUploadAPIRequest) SetOutProductId(_outProductId string) error
- func (r *AlitripTicketProductUploadAPIRequest) SetOutProductName(_outProductName string) error
- func (r *AlitripTicketProductUploadAPIRequest) SetPicUrls(_picUrls []string) error
- func (r *AlitripTicketProductUploadAPIRequest) SetReserveLimitRule(_reserveLimitRule string) error
- func (r *AlitripTicketProductUploadAPIRequest) SetReserveLimitType(_reserveLimitType int64) error
- func (r *AlitripTicketProductUploadAPIRequest) SetTitle(_title string) error
- func (r *AlitripTicketProductUploadAPIRequest) SetUpdateOutProductId(_updateOutProductId string) error
- type AlitripTicketProductUploadAPIResponse
- type AlitripTicketProductUploadAPIResponseModel
- type AlitripTicketRuleQueryAPIRequest
- func (r AlitripTicketRuleQueryAPIRequest) GetApiMethodName() string
- func (r AlitripTicketRuleQueryAPIRequest) GetApiParams(params url.Values)
- func (r AlitripTicketRuleQueryAPIRequest) GetOutRuleId() string
- func (r AlitripTicketRuleQueryAPIRequest) GetRawParams() model.Params
- func (r *AlitripTicketRuleQueryAPIRequest) Reset()
- func (r *AlitripTicketRuleQueryAPIRequest) SetOutRuleId(_outRuleId string) error
- type AlitripTicketRuleQueryAPIResponse
- type AlitripTicketRuleQueryAPIResponseModel
- type AlitripTicketRuleUploadAPIRequest
- func (r AlitripTicketRuleUploadAPIRequest) GetAliScenicId() int64
- func (r AlitripTicketRuleUploadAPIRequest) GetApiMethodName() string
- func (r AlitripTicketRuleUploadAPIRequest) GetApiParams(params url.Values)
- func (r AlitripTicketRuleUploadAPIRequest) GetAutoRefundSupport() int64
- func (r AlitripTicketRuleUploadAPIRequest) GetEnterAddress() string
- func (r AlitripTicketRuleUploadAPIRequest) GetEnterType() int64
- func (r AlitripTicketRuleUploadAPIRequest) GetEnterVoucherType() int64
- func (r AlitripTicketRuleUploadAPIRequest) GetEnterVoucherValue() string
- func (r AlitripTicketRuleUploadAPIRequest) GetExtraDesc() string
- func (r AlitripTicketRuleUploadAPIRequest) GetFeeInclude() string
- func (r AlitripTicketRuleUploadAPIRequest) GetOutRuleId() string
- func (r AlitripTicketRuleUploadAPIRequest) GetOutRuleName() string
- func (r AlitripTicketRuleUploadAPIRequest) GetOutScenicId() string
- func (r AlitripTicketRuleUploadAPIRequest) GetRawParams() model.Params
- func (r AlitripTicketRuleUploadAPIRequest) GetRefundCustomRules() string
- func (r AlitripTicketRuleUploadAPIRequest) GetRefundDesc() string
- func (r AlitripTicketRuleUploadAPIRequest) GetRefundType() int64
- func (r AlitripTicketRuleUploadAPIRequest) GetRuleStatus() int64
- func (r AlitripTicketRuleUploadAPIRequest) GetRuleType() int64
- func (r AlitripTicketRuleUploadAPIRequest) GetTicketChangeAdderss() string
- func (r AlitripTicketRuleUploadAPIRequest) GetVisitorInfos() string
- func (r AlitripTicketRuleUploadAPIRequest) GetVisitorLimitAble() int64
- func (r AlitripTicketRuleUploadAPIRequest) GetVisitorLimitMode() int64
- func (r AlitripTicketRuleUploadAPIRequest) GetVisitorLimitNum() int64
- func (r AlitripTicketRuleUploadAPIRequest) GetVisitorLimitType() int64
- func (r AlitripTicketRuleUploadAPIRequest) GetVisitorRequire() int64
- func (r *AlitripTicketRuleUploadAPIRequest) Reset()
- func (r *AlitripTicketRuleUploadAPIRequest) SetAliScenicId(_aliScenicId int64) error
- func (r *AlitripTicketRuleUploadAPIRequest) SetAutoRefundSupport(_autoRefundSupport int64) error
- func (r *AlitripTicketRuleUploadAPIRequest) SetEnterAddress(_enterAddress string) error
- func (r *AlitripTicketRuleUploadAPIRequest) SetEnterType(_enterType int64) error
- func (r *AlitripTicketRuleUploadAPIRequest) SetEnterVoucherType(_enterVoucherType int64) error
- func (r *AlitripTicketRuleUploadAPIRequest) SetEnterVoucherValue(_enterVoucherValue string) error
- func (r *AlitripTicketRuleUploadAPIRequest) SetExtraDesc(_extraDesc string) error
- func (r *AlitripTicketRuleUploadAPIRequest) SetFeeInclude(_feeInclude string) error
- func (r *AlitripTicketRuleUploadAPIRequest) SetOutRuleId(_outRuleId string) error
- func (r *AlitripTicketRuleUploadAPIRequest) SetOutRuleName(_outRuleName string) error
- func (r *AlitripTicketRuleUploadAPIRequest) SetOutScenicId(_outScenicId string) error
- func (r *AlitripTicketRuleUploadAPIRequest) SetRefundCustomRules(_refundCustomRules string) error
- func (r *AlitripTicketRuleUploadAPIRequest) SetRefundDesc(_refundDesc string) error
- func (r *AlitripTicketRuleUploadAPIRequest) SetRefundType(_refundType int64) error
- func (r *AlitripTicketRuleUploadAPIRequest) SetRuleStatus(_ruleStatus int64) error
- func (r *AlitripTicketRuleUploadAPIRequest) SetRuleType(_ruleType int64) error
- func (r *AlitripTicketRuleUploadAPIRequest) SetTicketChangeAdderss(_ticketChangeAdderss string) error
- func (r *AlitripTicketRuleUploadAPIRequest) SetVisitorInfos(_visitorInfos string) error
- func (r *AlitripTicketRuleUploadAPIRequest) SetVisitorLimitAble(_visitorLimitAble int64) error
- func (r *AlitripTicketRuleUploadAPIRequest) SetVisitorLimitMode(_visitorLimitMode int64) error
- func (r *AlitripTicketRuleUploadAPIRequest) SetVisitorLimitNum(_visitorLimitNum int64) error
- func (r *AlitripTicketRuleUploadAPIRequest) SetVisitorLimitType(_visitorLimitType int64) error
- func (r *AlitripTicketRuleUploadAPIRequest) SetVisitorRequire(_visitorRequire int64) error
- type AlitripTicketRuleUploadAPIResponse
- type AlitripTicketRuleUploadAPIResponseModel
- type AlitripTicketRuleUploadResultSet
- type AlitripTicketScenicBindAPIRequest
- func (r AlitripTicketScenicBindAPIRequest) GetAddress() string
- func (r AlitripTicketScenicBindAPIRequest) GetAliScenicId() int64
- func (r AlitripTicketScenicBindAPIRequest) GetApiMethodName() string
- func (r AlitripTicketScenicBindAPIRequest) GetApiParams(params url.Values)
- func (r AlitripTicketScenicBindAPIRequest) GetCity() string
- func (r AlitripTicketScenicBindAPIRequest) GetOutScenicId() string
- func (r AlitripTicketScenicBindAPIRequest) GetOutScenicName() string
- func (r AlitripTicketScenicBindAPIRequest) GetProvince() string
- func (r AlitripTicketScenicBindAPIRequest) GetRawParams() model.Params
- func (r AlitripTicketScenicBindAPIRequest) GetUpdateOutScenicId() string
- func (r *AlitripTicketScenicBindAPIRequest) Reset()
- func (r *AlitripTicketScenicBindAPIRequest) SetAddress(_address string) error
- func (r *AlitripTicketScenicBindAPIRequest) SetAliScenicId(_aliScenicId int64) error
- func (r *AlitripTicketScenicBindAPIRequest) SetCity(_city string) error
- func (r *AlitripTicketScenicBindAPIRequest) SetOutScenicId(_outScenicId string) error
- func (r *AlitripTicketScenicBindAPIRequest) SetOutScenicName(_outScenicName string) error
- func (r *AlitripTicketScenicBindAPIRequest) SetProvince(_province string) error
- func (r *AlitripTicketScenicBindAPIRequest) SetUpdateOutScenicId(_updateOutScenicId string) error
- type AlitripTicketScenicBindAPIResponse
- type AlitripTicketScenicBindAPIResponseModel
- type AlitripTicketScenicQueryAPIRequest
- func (r AlitripTicketScenicQueryAPIRequest) GetAliScenicId() int64
- func (r AlitripTicketScenicQueryAPIRequest) GetApiMethodName() string
- func (r AlitripTicketScenicQueryAPIRequest) GetApiParams(params url.Values)
- func (r AlitripTicketScenicQueryAPIRequest) GetCurrentPage() int64
- func (r AlitripTicketScenicQueryAPIRequest) GetOutScenicId() string
- func (r AlitripTicketScenicQueryAPIRequest) GetRawParams() model.Params
- func (r *AlitripTicketScenicQueryAPIRequest) Reset()
- func (r *AlitripTicketScenicQueryAPIRequest) SetAliScenicId(_aliScenicId int64) error
- func (r *AlitripTicketScenicQueryAPIRequest) SetCurrentPage(_currentPage int64) error
- func (r *AlitripTicketScenicQueryAPIRequest) SetOutScenicId(_outScenicId string) error
- type AlitripTicketScenicQueryAPIResponse
- type AlitripTicketScenicQueryAPIResponseModel
- type AlitripTicketSkusBatchUploadAPIRequest
- func (r AlitripTicketSkusBatchUploadAPIRequest) GetAliProductId() int64
- func (r AlitripTicketSkusBatchUploadAPIRequest) GetApiMethodName() string
- func (r AlitripTicketSkusBatchUploadAPIRequest) GetApiParams(params url.Values)
- func (r AlitripTicketSkusBatchUploadAPIRequest) GetItemId() int64
- func (r AlitripTicketSkusBatchUploadAPIRequest) GetOutProductId() string
- func (r AlitripTicketSkusBatchUploadAPIRequest) GetRawParams() model.Params
- func (r AlitripTicketSkusBatchUploadAPIRequest) GetTicketPriceRules() []TicketPriceRule
- func (r *AlitripTicketSkusBatchUploadAPIRequest) Reset()
- func (r *AlitripTicketSkusBatchUploadAPIRequest) SetAliProductId(_aliProductId int64) error
- func (r *AlitripTicketSkusBatchUploadAPIRequest) SetItemId(_itemId int64) error
- func (r *AlitripTicketSkusBatchUploadAPIRequest) SetOutProductId(_outProductId string) error
- func (r *AlitripTicketSkusBatchUploadAPIRequest) SetTicketPriceRules(_ticketPriceRules []TicketPriceRule) error
- type AlitripTicketSkusBatchUploadAPIResponse
- type AlitripTicketSkusBatchUploadAPIResponseModel
- type AlitripTicketSkusUploadAPIRequest
- func (r AlitripTicketSkusUploadAPIRequest) GetAliProductId() int64
- func (r AlitripTicketSkusUploadAPIRequest) GetApiMethodName() string
- func (r AlitripTicketSkusUploadAPIRequest) GetApiParams(params url.Values)
- func (r AlitripTicketSkusUploadAPIRequest) GetItemId() int64
- func (r AlitripTicketSkusUploadAPIRequest) GetOutProductId() string
- func (r AlitripTicketSkusUploadAPIRequest) GetPriceRules() []PriceRule
- func (r AlitripTicketSkusUploadAPIRequest) GetRawParams() model.Params
- func (r AlitripTicketSkusUploadAPIRequest) GetTicketArea() string
- func (r AlitripTicketSkusUploadAPIRequest) GetTicketSeason() string
- func (r AlitripTicketSkusUploadAPIRequest) GetTicketType() string
- func (r *AlitripTicketSkusUploadAPIRequest) Reset()
- func (r *AlitripTicketSkusUploadAPIRequest) SetAliProductId(_aliProductId int64) error
- func (r *AlitripTicketSkusUploadAPIRequest) SetItemId(_itemId int64) error
- func (r *AlitripTicketSkusUploadAPIRequest) SetOutProductId(_outProductId string) error
- func (r *AlitripTicketSkusUploadAPIRequest) SetPriceRules(_priceRules []PriceRule) error
- func (r *AlitripTicketSkusUploadAPIRequest) SetTicketArea(_ticketArea string) error
- func (r *AlitripTicketSkusUploadAPIRequest) SetTicketSeason(_ticketSeason string) error
- func (r *AlitripTicketSkusUploadAPIRequest) SetTicketType(_ticketType string) error
- type AlitripTicketSkusUploadAPIResponse
- type AlitripTicketSkusUploadAPIResponseModel
- type CodeSendingInfo
- type DateInventory
- type ItemEleCertInfo
- type PriceRule
- type Product
- type Scenic
- type ScenicAndProductResult
- type TicketItemResult
- type TicketPriceRule
- type TicketRuleParam
- type TicketScenicResult
- type TicketSimpleSkuParam
- type TopTicketItemFullinfoResult
- type TopTicketRuleResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReleaseAlitripTicketProductQueryAPIRequest ¶ added in v1.3.4
func ReleaseAlitripTicketProductQueryAPIRequest(v *AlitripTicketProductQueryAPIRequest)
ReleaseAlitripTicketProductQueryAPIRequest 将 AlitripTicketProductQueryAPIRequest 放入 sync.Pool
func ReleaseAlitripTicketProductQueryAPIResponse ¶ added in v1.3.4
func ReleaseAlitripTicketProductQueryAPIResponse(v *AlitripTicketProductQueryAPIResponse)
ReleaseAlitripTicketProductQueryAPIResponse 将 AlitripTicketProductQueryAPIResponse 保存到 sync.Pool
func ReleaseAlitripTicketProductUploadAPIRequest ¶ added in v1.3.4
func ReleaseAlitripTicketProductUploadAPIRequest(v *AlitripTicketProductUploadAPIRequest)
ReleaseAlitripTicketProductUploadAPIRequest 将 AlitripTicketProductUploadAPIRequest 放入 sync.Pool
func ReleaseAlitripTicketProductUploadAPIResponse ¶ added in v1.3.4
func ReleaseAlitripTicketProductUploadAPIResponse(v *AlitripTicketProductUploadAPIResponse)
ReleaseAlitripTicketProductUploadAPIResponse 将 AlitripTicketProductUploadAPIResponse 保存到 sync.Pool
func ReleaseAlitripTicketRuleQueryAPIRequest ¶ added in v1.3.4
func ReleaseAlitripTicketRuleQueryAPIRequest(v *AlitripTicketRuleQueryAPIRequest)
ReleaseAlitripTicketRuleQueryAPIRequest 将 AlitripTicketRuleQueryAPIRequest 放入 sync.Pool
func ReleaseAlitripTicketRuleQueryAPIResponse ¶ added in v1.3.4
func ReleaseAlitripTicketRuleQueryAPIResponse(v *AlitripTicketRuleQueryAPIResponse)
ReleaseAlitripTicketRuleQueryAPIResponse 将 AlitripTicketRuleQueryAPIResponse 保存到 sync.Pool
func ReleaseAlitripTicketRuleUploadAPIRequest ¶ added in v1.3.4
func ReleaseAlitripTicketRuleUploadAPIRequest(v *AlitripTicketRuleUploadAPIRequest)
ReleaseAlitripTicketRuleUploadAPIRequest 将 AlitripTicketRuleUploadAPIRequest 放入 sync.Pool
func ReleaseAlitripTicketRuleUploadAPIResponse ¶ added in v1.3.4
func ReleaseAlitripTicketRuleUploadAPIResponse(v *AlitripTicketRuleUploadAPIResponse)
ReleaseAlitripTicketRuleUploadAPIResponse 将 AlitripTicketRuleUploadAPIResponse 保存到 sync.Pool
func ReleaseAlitripTicketRuleUploadResultSet ¶ added in v1.3.4
func ReleaseAlitripTicketRuleUploadResultSet(v *AlitripTicketRuleUploadResultSet)
ReleaseAlitripTicketRuleUploadResultSet 释放AlitripTicketRuleUploadResultSet
func ReleaseAlitripTicketScenicBindAPIRequest ¶ added in v1.3.4
func ReleaseAlitripTicketScenicBindAPIRequest(v *AlitripTicketScenicBindAPIRequest)
ReleaseAlitripTicketScenicBindAPIRequest 将 AlitripTicketScenicBindAPIRequest 放入 sync.Pool
func ReleaseAlitripTicketScenicBindAPIResponse ¶ added in v1.3.4
func ReleaseAlitripTicketScenicBindAPIResponse(v *AlitripTicketScenicBindAPIResponse)
ReleaseAlitripTicketScenicBindAPIResponse 将 AlitripTicketScenicBindAPIResponse 保存到 sync.Pool
func ReleaseAlitripTicketScenicQueryAPIRequest ¶ added in v1.3.4
func ReleaseAlitripTicketScenicQueryAPIRequest(v *AlitripTicketScenicQueryAPIRequest)
ReleaseAlitripTicketScenicQueryAPIRequest 将 AlitripTicketScenicQueryAPIRequest 放入 sync.Pool
func ReleaseAlitripTicketScenicQueryAPIResponse ¶ added in v1.3.4
func ReleaseAlitripTicketScenicQueryAPIResponse(v *AlitripTicketScenicQueryAPIResponse)
ReleaseAlitripTicketScenicQueryAPIResponse 将 AlitripTicketScenicQueryAPIResponse 保存到 sync.Pool
func ReleaseAlitripTicketSkusBatchUploadAPIRequest ¶ added in v1.3.4
func ReleaseAlitripTicketSkusBatchUploadAPIRequest(v *AlitripTicketSkusBatchUploadAPIRequest)
ReleaseAlitripTicketSkusBatchUploadAPIRequest 将 AlitripTicketSkusBatchUploadAPIRequest 放入 sync.Pool
func ReleaseAlitripTicketSkusBatchUploadAPIResponse ¶ added in v1.3.4
func ReleaseAlitripTicketSkusBatchUploadAPIResponse(v *AlitripTicketSkusBatchUploadAPIResponse)
ReleaseAlitripTicketSkusBatchUploadAPIResponse 将 AlitripTicketSkusBatchUploadAPIResponse 保存到 sync.Pool
func ReleaseAlitripTicketSkusUploadAPIRequest ¶ added in v1.3.4
func ReleaseAlitripTicketSkusUploadAPIRequest(v *AlitripTicketSkusUploadAPIRequest)
ReleaseAlitripTicketSkusUploadAPIRequest 将 AlitripTicketSkusUploadAPIRequest 放入 sync.Pool
func ReleaseAlitripTicketSkusUploadAPIResponse ¶ added in v1.3.4
func ReleaseAlitripTicketSkusUploadAPIResponse(v *AlitripTicketSkusUploadAPIResponse)
ReleaseAlitripTicketSkusUploadAPIResponse 将 AlitripTicketSkusUploadAPIResponse 保存到 sync.Pool
func ReleaseCodeSendingInfo ¶ added in v1.3.4
func ReleaseCodeSendingInfo(v *CodeSendingInfo)
ReleaseCodeSendingInfo 释放CodeSendingInfo
func ReleaseDateInventory ¶ added in v1.3.4
func ReleaseDateInventory(v *DateInventory)
ReleaseDateInventory 释放DateInventory
func ReleaseItemEleCertInfo ¶ added in v1.3.4
func ReleaseItemEleCertInfo(v *ItemEleCertInfo)
ReleaseItemEleCertInfo 释放ItemEleCertInfo
func ReleasePriceRule ¶ added in v1.3.4
func ReleasePriceRule(v *PriceRule)
ReleasePriceRule 释放PriceRule
func ReleaseScenicAndProductResult ¶ added in v1.3.4
func ReleaseScenicAndProductResult(v *ScenicAndProductResult)
ReleaseScenicAndProductResult 释放ScenicAndProductResult
func ReleaseTicketItemResult ¶ added in v1.3.4
func ReleaseTicketItemResult(v *TicketItemResult)
ReleaseTicketItemResult 释放TicketItemResult
func ReleaseTicketPriceRule ¶ added in v1.3.4
func ReleaseTicketPriceRule(v *TicketPriceRule)
ReleaseTicketPriceRule 释放TicketPriceRule
func ReleaseTicketRuleParam ¶ added in v1.3.4
func ReleaseTicketRuleParam(v *TicketRuleParam)
ReleaseTicketRuleParam 释放TicketRuleParam
func ReleaseTicketScenicResult ¶ added in v1.3.4
func ReleaseTicketScenicResult(v *TicketScenicResult)
ReleaseTicketScenicResult 释放TicketScenicResult
func ReleaseTicketSimpleSkuParam ¶ added in v1.3.4
func ReleaseTicketSimpleSkuParam(v *TicketSimpleSkuParam)
ReleaseTicketSimpleSkuParam 释放TicketSimpleSkuParam
func ReleaseTopTicketItemFullinfoResult ¶ added in v1.3.4
func ReleaseTopTicketItemFullinfoResult(v *TopTicketItemFullinfoResult)
ReleaseTopTicketItemFullinfoResult 释放TopTicketItemFullinfoResult
func ReleaseTopTicketRuleResult ¶ added in v1.3.4
func ReleaseTopTicketRuleResult(v *TopTicketRuleResult)
ReleaseTopTicketRuleResult 释放TopTicketRuleResult
Types ¶
type AlitripTicketProductQueryAPIRequest ¶ added in v1.2.0
type AlitripTicketProductQueryAPIRequest struct { model.Params // contains filtered or unexported fields }
AlitripTicketProductQueryAPIRequest 【门票API2.0】门票商品查询接口 API请求 alitrip.ticket.product.query
门票商品查询接口:返回商家上传的门票商品信息
func GetAlitripTicketProductQueryAPIRequest ¶ added in v1.3.4
func GetAlitripTicketProductQueryAPIRequest() *AlitripTicketProductQueryAPIRequest
GetAlitripTicketProductQueryRequest 从 sync.Pool 获取 AlitripTicketProductQueryAPIRequest
func NewAlitripTicketProductQueryRequest ¶
func NewAlitripTicketProductQueryRequest() *AlitripTicketProductQueryAPIRequest
NewAlitripTicketProductQueryRequest 初始化AlitripTicketProductQueryAPIRequest对象
func (AlitripTicketProductQueryAPIRequest) GetAliProductId ¶ added in v1.2.0
func (r AlitripTicketProductQueryAPIRequest) GetAliProductId() int64
GetAliProductId AliProductId Getter
func (AlitripTicketProductQueryAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r AlitripTicketProductQueryAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AlitripTicketProductQueryAPIRequest) GetApiParams ¶ added in v1.2.0
func (r AlitripTicketProductQueryAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (AlitripTicketProductQueryAPIRequest) GetItemId ¶ added in v1.2.0
func (r AlitripTicketProductQueryAPIRequest) GetItemId() int64
GetItemId ItemId Getter
func (AlitripTicketProductQueryAPIRequest) GetOutProductId ¶ added in v1.2.0
func (r AlitripTicketProductQueryAPIRequest) GetOutProductId() string
GetOutProductId OutProductId Getter
func (AlitripTicketProductQueryAPIRequest) GetPageSource ¶ added in v1.2.0
func (r AlitripTicketProductQueryAPIRequest) GetPageSource() string
GetPageSource PageSource Getter
func (AlitripTicketProductQueryAPIRequest) GetRawParams ¶ added in v1.2.8
func (r AlitripTicketProductQueryAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*AlitripTicketProductQueryAPIRequest) Reset ¶ added in v1.3.4
func (r *AlitripTicketProductQueryAPIRequest) Reset()
Reset IRequest interface 方法, 清空结构体
func (*AlitripTicketProductQueryAPIRequest) SetAliProductId ¶ added in v1.2.0
func (r *AlitripTicketProductQueryAPIRequest) SetAliProductId(_aliProductId int64) error
SetAliProductId is AliProductId Setter 阿里标准收费项目id。与out_product_id,item_id 三者至少填写一个
func (*AlitripTicketProductQueryAPIRequest) SetItemId ¶ added in v1.2.0
func (r *AlitripTicketProductQueryAPIRequest) SetItemId(_itemId int64) error
SetItemId is ItemId Setter 商品ID。与out_product_id,ali_product_id三者至少填写一个
func (*AlitripTicketProductQueryAPIRequest) SetOutProductId ¶ added in v1.2.0
func (r *AlitripTicketProductQueryAPIRequest) SetOutProductId(_outProductId string) error
SetOutProductId is OutProductId Setter 商户自定义收费项目编码。与ali_product_id,item_id 三者至少填写一个
func (*AlitripTicketProductQueryAPIRequest) SetPageSource ¶ added in v1.2.0
func (r *AlitripTicketProductQueryAPIRequest) SetPageSource(_pageSource string) error
SetPageSource is PageSource Setter 代表业务来源,gongxiao代表供销平台业务
type AlitripTicketProductQueryAPIResponse ¶
type AlitripTicketProductQueryAPIResponse struct { model.CommonResponse AlitripTicketProductQueryAPIResponseModel }
AlitripTicketProductQueryAPIResponse 【门票API2.0】门票商品查询接口 API返回值 alitrip.ticket.product.query
门票商品查询接口:返回商家上传的门票商品信息
func GetAlitripTicketProductQueryAPIResponse ¶ added in v1.3.4
func GetAlitripTicketProductQueryAPIResponse() *AlitripTicketProductQueryAPIResponse
GetAlitripTicketProductQueryAPIResponse 从 sync.Pool 获取 AlitripTicketProductQueryAPIResponse
func (*AlitripTicketProductQueryAPIResponse) Reset ¶ added in v1.3.4
func (m *AlitripTicketProductQueryAPIResponse) Reset()
Reset 清空结构体
type AlitripTicketProductQueryAPIResponseModel ¶ added in v1.2.0
type AlitripTicketProductQueryAPIResponseModel struct { XMLName xml.Name `xml:"alitrip_ticket_product_query_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 门票商品详情 FirstResult *TopTicketItemFullinfoResult `json:"first_result,omitempty" xml:"first_result,omitempty"` }
AlitripTicketProductQueryAPIResponseModel is 【门票API2.0】门票商品查询接口 成功返回结果
func (*AlitripTicketProductQueryAPIResponseModel) Reset ¶ added in v1.3.4
func (m *AlitripTicketProductQueryAPIResponseModel) Reset()
Reset 清空结构体
type AlitripTicketProductUploadAPIRequest ¶ added in v1.2.0
type AlitripTicketProductUploadAPIRequest struct { model.Params // contains filtered or unexported fields }
AlitripTicketProductUploadAPIRequest 【门票API2.0】门票收费项目管理接口 API请求 alitrip.ticket.product.upload
航旅度假新版门票商品(门票收费项目)管理接口:支持门票商品的发布、编辑。如果在ali_product_id下没有发布过门票商品,则系统将判断为新发布商品,否则是编辑已有商品。可以通过辅助查询接口判断是否已在某个ali_product_id下发布过门票商品。 对应新发布商品的情况,有些参数是必填的,请仔细查看各字段说明。对于编辑商品的情况,ali_product_id和out_product_id至少需要填一个,其他参数都是可选,编辑情况支持增量更新(某个参数不传则使用该商品上原有值)。
func GetAlitripTicketProductUploadAPIRequest ¶ added in v1.3.4
func GetAlitripTicketProductUploadAPIRequest() *AlitripTicketProductUploadAPIRequest
GetAlitripTicketProductUploadRequest 从 sync.Pool 获取 AlitripTicketProductUploadAPIRequest
func NewAlitripTicketProductUploadRequest ¶
func NewAlitripTicketProductUploadRequest() *AlitripTicketProductUploadAPIRequest
NewAlitripTicketProductUploadRequest 初始化AlitripTicketProductUploadAPIRequest对象
func (AlitripTicketProductUploadAPIRequest) GetAliProductId ¶ added in v1.2.0
func (r AlitripTicketProductUploadAPIRequest) GetAliProductId() int64
GetAliProductId AliProductId Getter
func (AlitripTicketProductUploadAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r AlitripTicketProductUploadAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AlitripTicketProductUploadAPIRequest) GetApiParams ¶ added in v1.2.0
func (r AlitripTicketProductUploadAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (AlitripTicketProductUploadAPIRequest) GetCodeSendingInfo ¶ added in v1.2.0
func (r AlitripTicketProductUploadAPIRequest) GetCodeSendingInfo() *CodeSendingInfo
GetCodeSendingInfo CodeSendingInfo Getter
func (AlitripTicketProductUploadAPIRequest) GetDesc ¶ added in v1.2.0
func (r AlitripTicketProductUploadAPIRequest) GetDesc() string
GetDesc Desc Getter
func (AlitripTicketProductUploadAPIRequest) GetExpireDate ¶ added in v1.2.0
func (r AlitripTicketProductUploadAPIRequest) GetExpireDate() string
GetExpireDate ExpireDate Getter
func (AlitripTicketProductUploadAPIRequest) GetInventoryType ¶ added in v1.2.0
func (r AlitripTicketProductUploadAPIRequest) GetInventoryType() int64
GetInventoryType InventoryType Getter
func (AlitripTicketProductUploadAPIRequest) GetNeedEnterDate ¶ added in v1.2.0
func (r AlitripTicketProductUploadAPIRequest) GetNeedEnterDate() int64
GetNeedEnterDate NeedEnterDate Getter
func (AlitripTicketProductUploadAPIRequest) GetOutProductId ¶ added in v1.2.0
func (r AlitripTicketProductUploadAPIRequest) GetOutProductId() string
GetOutProductId OutProductId Getter
func (AlitripTicketProductUploadAPIRequest) GetOutProductName ¶ added in v1.2.0
func (r AlitripTicketProductUploadAPIRequest) GetOutProductName() string
GetOutProductName OutProductName Getter
func (AlitripTicketProductUploadAPIRequest) GetPicUrls ¶ added in v1.2.0
func (r AlitripTicketProductUploadAPIRequest) GetPicUrls() []string
GetPicUrls PicUrls Getter
func (AlitripTicketProductUploadAPIRequest) GetRawParams ¶ added in v1.2.8
func (r AlitripTicketProductUploadAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (AlitripTicketProductUploadAPIRequest) GetReserveLimitRule ¶ added in v1.2.0
func (r AlitripTicketProductUploadAPIRequest) GetReserveLimitRule() string
GetReserveLimitRule ReserveLimitRule Getter
func (AlitripTicketProductUploadAPIRequest) GetReserveLimitType ¶ added in v1.2.0
func (r AlitripTicketProductUploadAPIRequest) GetReserveLimitType() int64
GetReserveLimitType ReserveLimitType Getter
func (AlitripTicketProductUploadAPIRequest) GetTitle ¶ added in v1.2.0
func (r AlitripTicketProductUploadAPIRequest) GetTitle() string
GetTitle Title Getter
func (AlitripTicketProductUploadAPIRequest) GetUpdateOutProductId ¶ added in v1.2.0
func (r AlitripTicketProductUploadAPIRequest) GetUpdateOutProductId() string
GetUpdateOutProductId UpdateOutProductId Getter
func (*AlitripTicketProductUploadAPIRequest) Reset ¶ added in v1.3.4
func (r *AlitripTicketProductUploadAPIRequest) Reset()
Reset IRequest interface 方法, 清空结构体
func (*AlitripTicketProductUploadAPIRequest) SetAliProductId ¶ added in v1.2.0
func (r *AlitripTicketProductUploadAPIRequest) SetAliProductId(_aliProductId int64) error
SetAliProductId is AliProductId Setter 新发布门票商品时必填。阿里旅行提供的收费项目编码,与商户收费项目编码进行绑定。注:一个收费项目编码对应了一个淘宝商品
func (*AlitripTicketProductUploadAPIRequest) SetCodeSendingInfo ¶ added in v1.2.0
func (r *AlitripTicketProductUploadAPIRequest) SetCodeSendingInfo(_codeSendingInfo *CodeSendingInfo) error
SetCodeSendingInfo is CodeSendingInfo Setter 新发布门票商品时必填。门票商品发码方式
func (*AlitripTicketProductUploadAPIRequest) SetDesc ¶ added in v1.2.0
func (r *AlitripTicketProductUploadAPIRequest) SetDesc(_desc string) error
SetDesc is Desc Setter 可选,商品详情描述,不超过50000个字符。详情描述支持纯文本描述,也支持html格式的详情描述。html格式的详情描述中 图片链接支持外链图片(必须外网可访问, 且格式为png、jpg或jpeg,大小在500k以内)和淘宝图片空间链接。
func (*AlitripTicketProductUploadAPIRequest) SetExpireDate ¶ added in v1.2.0
func (r *AlitripTicketProductUploadAPIRequest) SetExpireDate(_expireDate string) error
SetExpireDate is ExpireDate Setter 新发布门票商品时必填。门票有效期:指定入园日期后 多少天内有效。当为数字时,表示多少天内有效;当为日期时,表示到某日期有效,日期格式:yyyy-MM-dd。发布时不填则默认设置30天内有效
func (*AlitripTicketProductUploadAPIRequest) SetInventoryType ¶ added in v1.2.0
func (r *AlitripTicketProductUploadAPIRequest) SetInventoryType(_inventoryType int64) error
SetInventoryType is InventoryType Setter 新发布门票商品时必填。门票商品 库存类型。1、日历库存, 2、非日历库存
func (*AlitripTicketProductUploadAPIRequest) SetNeedEnterDate ¶ added in v1.2.0
func (r *AlitripTicketProductUploadAPIRequest) SetNeedEnterDate(_needEnterDate int64) error
SetNeedEnterDate is NeedEnterDate Setter inventory_type=2时必填,指定该收费项目在购买时是否需要买家指定入园日期。1、需要,2-不需要
func (*AlitripTicketProductUploadAPIRequest) SetOutProductId ¶ added in v1.2.0
func (r *AlitripTicketProductUploadAPIRequest) SetOutProductId(_outProductId string) error
SetOutProductId is OutProductId Setter 可选,商户自定义收费项目编码。注:如果商户上传了自定义收费项目编码,则在价格库存同步接口可以使用该自定义编码更新价格库存。
func (*AlitripTicketProductUploadAPIRequest) SetOutProductName ¶ added in v1.2.0
func (r *AlitripTicketProductUploadAPIRequest) SetOutProductName(_outProductName string) error
SetOutProductName is OutProductName Setter 商户收费项目名称
func (*AlitripTicketProductUploadAPIRequest) SetPicUrls ¶ added in v1.2.0
func (r *AlitripTicketProductUploadAPIRequest) SetPicUrls(_picUrls []string) error
SetPicUrls is PicUrls Setter 可选,商品主图,最多支持5张。图片链接支持外链图片(即商家系统中图片链接,必须外网可访问,且格式为png、jpg或jpeg,大小在500k以内),或者用户淘宝空间内的图片链接。对于外链图片,将自动下载并上传用户淘宝图片空间,上传失败的外链图片将自动忽略不计。
func (*AlitripTicketProductUploadAPIRequest) SetReserveLimitRule ¶ added in v1.2.0
func (r *AlitripTicketProductUploadAPIRequest) SetReserveLimitRule(_reserveLimitRule string) error
SetReserveLimitRule is ReserveLimitRule Setter 特殊选填,门票 预定时间限制规则。格式:1_18_00_3 或者 1_18_00_3_30,含义:必须提前1天拍下,且在18点00分前支付成功,订单才生效。当为提前0天时(即当日票),最后两个数字才生效,指当日票需要在出票后3小时30分钟后方可入园。
func (*AlitripTicketProductUploadAPIRequest) SetReserveLimitType ¶ added in v1.2.0
func (r *AlitripTicketProductUploadAPIRequest) SetReserveLimitType(_reserveLimitType int64) error
SetReserveLimitType is ReserveLimitType Setter 新发布门票商品时必填。门票 预定时间限制。1、表示无限制 购买后可立即入园,2、有限制,此时预定时间限制规则必填。
func (*AlitripTicketProductUploadAPIRequest) SetTitle ¶ added in v1.2.0
func (r *AlitripTicketProductUploadAPIRequest) SetTitle(_title string) error
SetTitle is Title Setter 可选,商品标题
func (*AlitripTicketProductUploadAPIRequest) SetUpdateOutProductId ¶ added in v1.2.0
func (r *AlitripTicketProductUploadAPIRequest) SetUpdateOutProductId(_updateOutProductId string) error
SetUpdateOutProductId is UpdateOutProductId Setter 可选,商家想要更新映射关系的时候,用于更新商户自定义收费项目编码。
type AlitripTicketProductUploadAPIResponse ¶
type AlitripTicketProductUploadAPIResponse struct { model.CommonResponse AlitripTicketProductUploadAPIResponseModel }
AlitripTicketProductUploadAPIResponse 【门票API2.0】门票收费项目管理接口 API返回值 alitrip.ticket.product.upload
航旅度假新版门票商品(门票收费项目)管理接口:支持门票商品的发布、编辑。如果在ali_product_id下没有发布过门票商品,则系统将判断为新发布商品,否则是编辑已有商品。可以通过辅助查询接口判断是否已在某个ali_product_id下发布过门票商品。 对应新发布商品的情况,有些参数是必填的,请仔细查看各字段说明。对于编辑商品的情况,ali_product_id和out_product_id至少需要填一个,其他参数都是可选,编辑情况支持增量更新(某个参数不传则使用该商品上原有值)。
func GetAlitripTicketProductUploadAPIResponse ¶ added in v1.3.4
func GetAlitripTicketProductUploadAPIResponse() *AlitripTicketProductUploadAPIResponse
GetAlitripTicketProductUploadAPIResponse 从 sync.Pool 获取 AlitripTicketProductUploadAPIResponse
func (*AlitripTicketProductUploadAPIResponse) Reset ¶ added in v1.3.4
func (m *AlitripTicketProductUploadAPIResponse) Reset()
Reset 清空结构体
type AlitripTicketProductUploadAPIResponseModel ¶ added in v1.2.0
type AlitripTicketProductUploadAPIResponseModel struct { XMLName xml.Name `xml:"alitrip_ticket_product_upload_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 门票商品发布、编辑结果 FirstResult *TicketItemResult `json:"first_result,omitempty" xml:"first_result,omitempty"` }
AlitripTicketProductUploadAPIResponseModel is 【门票API2.0】门票收费项目管理接口 成功返回结果
func (*AlitripTicketProductUploadAPIResponseModel) Reset ¶ added in v1.3.4
func (m *AlitripTicketProductUploadAPIResponseModel) Reset()
Reset 清空结构体
type AlitripTicketRuleQueryAPIRequest ¶ added in v1.2.0
type AlitripTicketRuleQueryAPIRequest struct { model.Params // contains filtered or unexported fields }
AlitripTicketRuleQueryAPIRequest 【门票API2.0】门票规则信息查询接口 API请求 alitrip.ticket.rule.query
门票规则信息查询接口:返回商家上传的门票规则信息
func GetAlitripTicketRuleQueryAPIRequest ¶ added in v1.3.4
func GetAlitripTicketRuleQueryAPIRequest() *AlitripTicketRuleQueryAPIRequest
GetAlitripTicketRuleQueryRequest 从 sync.Pool 获取 AlitripTicketRuleQueryAPIRequest
func NewAlitripTicketRuleQueryRequest ¶
func NewAlitripTicketRuleQueryRequest() *AlitripTicketRuleQueryAPIRequest
NewAlitripTicketRuleQueryRequest 初始化AlitripTicketRuleQueryAPIRequest对象
func (AlitripTicketRuleQueryAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r AlitripTicketRuleQueryAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AlitripTicketRuleQueryAPIRequest) GetApiParams ¶ added in v1.2.0
func (r AlitripTicketRuleQueryAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (AlitripTicketRuleQueryAPIRequest) GetOutRuleId ¶ added in v1.2.0
func (r AlitripTicketRuleQueryAPIRequest) GetOutRuleId() string
GetOutRuleId OutRuleId Getter
func (AlitripTicketRuleQueryAPIRequest) GetRawParams ¶ added in v1.2.8
func (r AlitripTicketRuleQueryAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*AlitripTicketRuleQueryAPIRequest) Reset ¶ added in v1.3.4
func (r *AlitripTicketRuleQueryAPIRequest) Reset()
Reset IRequest interface 方法, 清空结构体
func (*AlitripTicketRuleQueryAPIRequest) SetOutRuleId ¶ added in v1.2.0
func (r *AlitripTicketRuleQueryAPIRequest) SetOutRuleId(_outRuleId string) error
SetOutRuleId is OutRuleId Setter 卖家景点规则编码
type AlitripTicketRuleQueryAPIResponse ¶
type AlitripTicketRuleQueryAPIResponse struct { model.CommonResponse AlitripTicketRuleQueryAPIResponseModel }
AlitripTicketRuleQueryAPIResponse 【门票API2.0】门票规则信息查询接口 API返回值 alitrip.ticket.rule.query
门票规则信息查询接口:返回商家上传的门票规则信息
func GetAlitripTicketRuleQueryAPIResponse ¶ added in v1.3.4
func GetAlitripTicketRuleQueryAPIResponse() *AlitripTicketRuleQueryAPIResponse
GetAlitripTicketRuleQueryAPIResponse 从 sync.Pool 获取 AlitripTicketRuleQueryAPIResponse
func (*AlitripTicketRuleQueryAPIResponse) Reset ¶ added in v1.3.4
func (m *AlitripTicketRuleQueryAPIResponse) Reset()
Reset 清空结构体
type AlitripTicketRuleQueryAPIResponseModel ¶ added in v1.2.0
type AlitripTicketRuleQueryAPIResponseModel struct { XMLName xml.Name `xml:"alitrip_ticket_rule_query_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 门票规则信息 FirstResult *TicketRuleParam `json:"first_result,omitempty" xml:"first_result,omitempty"` }
AlitripTicketRuleQueryAPIResponseModel is 【门票API2.0】门票规则信息查询接口 成功返回结果
func (*AlitripTicketRuleQueryAPIResponseModel) Reset ¶ added in v1.3.4
func (m *AlitripTicketRuleQueryAPIResponseModel) Reset()
Reset 清空结构体
type AlitripTicketRuleUploadAPIRequest ¶ added in v1.2.0
type AlitripTicketRuleUploadAPIRequest struct { model.Params // contains filtered or unexported fields }
AlitripTicketRuleUploadAPIRequest 【门票API2.0】景点门票规则维护接口 API请求 alitrip.ticket.rule.upload
景点门票规则维护接口。该接口同时支持新发规则和编辑现有规则,如果out_rule_id下没有发布过规则,则系统将判断为新发一个规则,否则认为是编辑现有规则。 对于新发布规则的情况,有些参数是必填的,请仔细查看各字段说明。对于编辑的情况,除out_rule_id外都是可选,编辑情况支持增量更新(某个参数不传则使用该规则上原有值)
func GetAlitripTicketRuleUploadAPIRequest ¶ added in v1.3.4
func GetAlitripTicketRuleUploadAPIRequest() *AlitripTicketRuleUploadAPIRequest
GetAlitripTicketRuleUploadRequest 从 sync.Pool 获取 AlitripTicketRuleUploadAPIRequest
func NewAlitripTicketRuleUploadRequest ¶
func NewAlitripTicketRuleUploadRequest() *AlitripTicketRuleUploadAPIRequest
NewAlitripTicketRuleUploadRequest 初始化AlitripTicketRuleUploadAPIRequest对象
func (AlitripTicketRuleUploadAPIRequest) GetAliScenicId ¶ added in v1.2.0
func (r AlitripTicketRuleUploadAPIRequest) GetAliScenicId() int64
GetAliScenicId AliScenicId Getter
func (AlitripTicketRuleUploadAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r AlitripTicketRuleUploadAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AlitripTicketRuleUploadAPIRequest) GetApiParams ¶ added in v1.2.0
func (r AlitripTicketRuleUploadAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (AlitripTicketRuleUploadAPIRequest) GetAutoRefundSupport ¶ added in v1.2.0
func (r AlitripTicketRuleUploadAPIRequest) GetAutoRefundSupport() int64
GetAutoRefundSupport AutoRefundSupport Getter
func (AlitripTicketRuleUploadAPIRequest) GetEnterAddress ¶ added in v1.2.0
func (r AlitripTicketRuleUploadAPIRequest) GetEnterAddress() string
GetEnterAddress EnterAddress Getter
func (AlitripTicketRuleUploadAPIRequest) GetEnterType ¶ added in v1.2.0
func (r AlitripTicketRuleUploadAPIRequest) GetEnterType() int64
GetEnterType EnterType Getter
func (AlitripTicketRuleUploadAPIRequest) GetEnterVoucherType ¶ added in v1.2.0
func (r AlitripTicketRuleUploadAPIRequest) GetEnterVoucherType() int64
GetEnterVoucherType EnterVoucherType Getter
func (AlitripTicketRuleUploadAPIRequest) GetEnterVoucherValue ¶ added in v1.2.0
func (r AlitripTicketRuleUploadAPIRequest) GetEnterVoucherValue() string
GetEnterVoucherValue EnterVoucherValue Getter
func (AlitripTicketRuleUploadAPIRequest) GetExtraDesc ¶ added in v1.2.0
func (r AlitripTicketRuleUploadAPIRequest) GetExtraDesc() string
GetExtraDesc ExtraDesc Getter
func (AlitripTicketRuleUploadAPIRequest) GetFeeInclude ¶ added in v1.2.0
func (r AlitripTicketRuleUploadAPIRequest) GetFeeInclude() string
GetFeeInclude FeeInclude Getter
func (AlitripTicketRuleUploadAPIRequest) GetOutRuleId ¶ added in v1.2.0
func (r AlitripTicketRuleUploadAPIRequest) GetOutRuleId() string
GetOutRuleId OutRuleId Getter
func (AlitripTicketRuleUploadAPIRequest) GetOutRuleName ¶ added in v1.2.0
func (r AlitripTicketRuleUploadAPIRequest) GetOutRuleName() string
GetOutRuleName OutRuleName Getter
func (AlitripTicketRuleUploadAPIRequest) GetOutScenicId ¶ added in v1.2.0
func (r AlitripTicketRuleUploadAPIRequest) GetOutScenicId() string
GetOutScenicId OutScenicId Getter
func (AlitripTicketRuleUploadAPIRequest) GetRawParams ¶ added in v1.2.8
func (r AlitripTicketRuleUploadAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (AlitripTicketRuleUploadAPIRequest) GetRefundCustomRules ¶ added in v1.2.0
func (r AlitripTicketRuleUploadAPIRequest) GetRefundCustomRules() string
GetRefundCustomRules RefundCustomRules Getter
func (AlitripTicketRuleUploadAPIRequest) GetRefundDesc ¶ added in v1.2.0
func (r AlitripTicketRuleUploadAPIRequest) GetRefundDesc() string
GetRefundDesc RefundDesc Getter
func (AlitripTicketRuleUploadAPIRequest) GetRefundType ¶ added in v1.2.0
func (r AlitripTicketRuleUploadAPIRequest) GetRefundType() int64
GetRefundType RefundType Getter
func (AlitripTicketRuleUploadAPIRequest) GetRuleStatus ¶ added in v1.2.0
func (r AlitripTicketRuleUploadAPIRequest) GetRuleStatus() int64
GetRuleStatus RuleStatus Getter
func (AlitripTicketRuleUploadAPIRequest) GetRuleType ¶ added in v1.2.0
func (r AlitripTicketRuleUploadAPIRequest) GetRuleType() int64
GetRuleType RuleType Getter
func (AlitripTicketRuleUploadAPIRequest) GetTicketChangeAdderss ¶ added in v1.2.0
func (r AlitripTicketRuleUploadAPIRequest) GetTicketChangeAdderss() string
GetTicketChangeAdderss TicketChangeAdderss Getter
func (AlitripTicketRuleUploadAPIRequest) GetVisitorInfos ¶ added in v1.2.0
func (r AlitripTicketRuleUploadAPIRequest) GetVisitorInfos() string
GetVisitorInfos VisitorInfos Getter
func (AlitripTicketRuleUploadAPIRequest) GetVisitorLimitAble ¶ added in v1.2.0
func (r AlitripTicketRuleUploadAPIRequest) GetVisitorLimitAble() int64
GetVisitorLimitAble VisitorLimitAble Getter
func (AlitripTicketRuleUploadAPIRequest) GetVisitorLimitMode ¶ added in v1.2.0
func (r AlitripTicketRuleUploadAPIRequest) GetVisitorLimitMode() int64
GetVisitorLimitMode VisitorLimitMode Getter
func (AlitripTicketRuleUploadAPIRequest) GetVisitorLimitNum ¶ added in v1.2.0
func (r AlitripTicketRuleUploadAPIRequest) GetVisitorLimitNum() int64
GetVisitorLimitNum VisitorLimitNum Getter
func (AlitripTicketRuleUploadAPIRequest) GetVisitorLimitType ¶ added in v1.2.0
func (r AlitripTicketRuleUploadAPIRequest) GetVisitorLimitType() int64
GetVisitorLimitType VisitorLimitType Getter
func (AlitripTicketRuleUploadAPIRequest) GetVisitorRequire ¶ added in v1.2.0
func (r AlitripTicketRuleUploadAPIRequest) GetVisitorRequire() int64
GetVisitorRequire VisitorRequire Getter
func (*AlitripTicketRuleUploadAPIRequest) Reset ¶ added in v1.3.4
func (r *AlitripTicketRuleUploadAPIRequest) Reset()
Reset IRequest interface 方法, 清空结构体
func (*AlitripTicketRuleUploadAPIRequest) SetAliScenicId ¶ added in v1.2.0
func (r *AlitripTicketRuleUploadAPIRequest) SetAliScenicId(_aliScenicId int64) error
SetAliScenicId is AliScenicId Setter 阿里旅行景点编码。新发布规则时必填,out_scenic_id与ali_scenic_id二选一,至少填写其中一个
func (*AlitripTicketRuleUploadAPIRequest) SetAutoRefundSupport ¶ added in v1.2.0
func (r *AlitripTicketRuleUploadAPIRequest) SetAutoRefundSupport(_autoRefundSupport int64) error
SetAutoRefundSupport is AutoRefundSupport Setter 可选,是否支持自动退款,0或为空时表示不支持。0-不支持,1-只支持"售中自动退款",2-只支持"过期未使用自动退款",3-同时支持"售中自动退款"和"过期未使用自动退款"
func (*AlitripTicketRuleUploadAPIRequest) SetEnterAddress ¶ added in v1.2.0
func (r *AlitripTicketRuleUploadAPIRequest) SetEnterAddress(_enterAddress string) error
SetEnterAddress is EnterAddress Setter 新发布规则时必填。景区入园地址。游客在景区的详细入园地址,请仔细填写。
func (*AlitripTicketRuleUploadAPIRequest) SetEnterType ¶ added in v1.2.0
func (r *AlitripTicketRuleUploadAPIRequest) SetEnterType(_enterType int64) error
SetEnterType is EnterType Setter 新发布规则时必填。入园类型。1-用兑换凭证直接入园,2-用兑换凭证换票入园
func (*AlitripTicketRuleUploadAPIRequest) SetEnterVoucherType ¶ added in v1.2.0
func (r *AlitripTicketRuleUploadAPIRequest) SetEnterVoucherType(_enterVoucherType int64) error
SetEnterVoucherType is EnterVoucherType Setter 新发布规则时必填。入园使用的凭证类型。1、二维码,2、身份证,3、二维码或身份证,4:数字码,5、手机号,6、其它。当enter_type为1时,该字段只能选择1~3 。而当enterType为2时,该字段可设置1~6
func (*AlitripTicketRuleUploadAPIRequest) SetEnterVoucherValue ¶ added in v1.2.0
func (r *AlitripTicketRuleUploadAPIRequest) SetEnterVoucherValue(_enterVoucherValue string) error
SetEnterVoucherValue is EnterVoucherValue Setter 其他入园凭证类型。当enter_voucher_type=6时,填写其他入园凭证类型。
func (*AlitripTicketRuleUploadAPIRequest) SetExtraDesc ¶ added in v1.2.0
func (r *AlitripTicketRuleUploadAPIRequest) SetExtraDesc(_extraDesc string) error
SetExtraDesc is ExtraDesc Setter 新发布规则时必填。门票商品一些游客须知的补充说明。1600字符限制
func (*AlitripTicketRuleUploadAPIRequest) SetFeeInclude ¶ added in v1.2.0
func (r *AlitripTicketRuleUploadAPIRequest) SetFeeInclude(_feeInclude string) error
SetFeeInclude is FeeInclude Setter 新发布规则时必填。门票费用包含,请详细说明该门票商品包含的费用信息。
func (*AlitripTicketRuleUploadAPIRequest) SetOutRuleId ¶ added in v1.2.0
func (r *AlitripTicketRuleUploadAPIRequest) SetOutRuleId(_outRuleId string) error
SetOutRuleId is OutRuleId Setter 商户票种规则id
func (*AlitripTicketRuleUploadAPIRequest) SetOutRuleName ¶ added in v1.2.0
func (r *AlitripTicketRuleUploadAPIRequest) SetOutRuleName(_outRuleName string) error
SetOutRuleName is OutRuleName Setter 新发布规则时必填。商户票种规则名称
func (*AlitripTicketRuleUploadAPIRequest) SetOutScenicId ¶ added in v1.2.0
func (r *AlitripTicketRuleUploadAPIRequest) SetOutScenicId(_outScenicId string) error
SetOutScenicId is OutScenicId Setter 商户景点编码。新发布规则时必填,out_scenic_id与ali_scenic_id二选一,至少填写其中一个
func (*AlitripTicketRuleUploadAPIRequest) SetRefundCustomRules ¶ added in v1.2.0
func (r *AlitripTicketRuleUploadAPIRequest) SetRefundCustomRules(_refundCustomRules string) error
SetRefundCustomRules is RefundCustomRules Setter 结构化自定义退款规则(json数组格式),当refund_type为2时,该字段必填。【type字段说明(特别注意:2和3不能同时存在):1(游玩日期前退改规则),2(游玩日期当日退改规则),3(区间票 游玩日期有效期内退改规则),4(游玩日期后退改规则),5(其他情况退改规则)。amount字段说明:收取的手续费。unit字段说明:手续费单位,1(票价百分比),2(固定金额,单位分)。】 【示例含义说明:1、游玩日期前2天16点30分前申请退款,每张票收取票价20%的手续费;2、(单日票)游玩日当天12点00分前申请退款,每张票收取票价50%手续费;3、(区间票)游玩日期有效期,最后一天11点00分前申请退款,每张票收取票价60%手续费;4、游玩日期后7天23点59分前申请退款,每张票收取票价80%手续费;5、其他情况,每张票收取固定100元手续费。】
func (*AlitripTicketRuleUploadAPIRequest) SetRefundDesc ¶ added in v1.2.0
func (r *AlitripTicketRuleUploadAPIRequest) SetRefundDesc(_refundDesc string) error
SetRefundDesc is RefundDesc Setter (该字段已废弃,请使用结构化退改规则字段替代:refund_custom_rules)新发布规则时特殊选填。退票描述。当refund_type为2时,该字段必填
func (*AlitripTicketRuleUploadAPIRequest) SetRefundType ¶ added in v1.2.0
func (r *AlitripTicketRuleUploadAPIRequest) SetRefundType(_refundType int64) error
SetRefundType is RefundType Setter 新发布规则时必填。退票类型。1-无条件退改, 2-有条件退改, 3-不可退改。
func (*AlitripTicketRuleUploadAPIRequest) SetRuleStatus ¶ added in v1.2.0
func (r *AlitripTicketRuleUploadAPIRequest) SetRuleStatus(_ruleStatus int64) error
SetRuleStatus is RuleStatus Setter 可选,规则状态。0-生效,-1-失效。新发规则时不传 默认生效状态。
func (*AlitripTicketRuleUploadAPIRequest) SetRuleType ¶ added in v1.2.0
func (r *AlitripTicketRuleUploadAPIRequest) SetRuleType(_ruleType int64) error
SetRuleType is RuleType Setter 可选,票种规则类型:0-实体票规则,1-电子票(包含手工票和直连票)规则。新发规则时不传 默认为1
func (*AlitripTicketRuleUploadAPIRequest) SetTicketChangeAdderss ¶ added in v1.2.0
func (r *AlitripTicketRuleUploadAPIRequest) SetTicketChangeAdderss(_ticketChangeAdderss string) error
SetTicketChangeAdderss is TicketChangeAdderss Setter 新发布规则时特殊选填。换票地址。当enter_type为2时,该字段必填。
func (*AlitripTicketRuleUploadAPIRequest) SetVisitorInfos ¶ added in v1.2.0
func (r *AlitripTicketRuleUploadAPIRequest) SetVisitorInfos(_visitorInfos string) error
SetVisitorInfos is VisitorInfos Setter 新发布规则时特殊选填。需要的出游人信息,需要出游人信息时必填。 2:手机号,3:身份证,4:姓名,17:港澳居民居住证 18:台湾居民居住证 19:护照 20:港澳台居民往返内地通行证(回乡证)。示例格式:2,3,4
func (*AlitripTicketRuleUploadAPIRequest) SetVisitorLimitAble ¶ added in v1.2.0
func (r *AlitripTicketRuleUploadAPIRequest) SetVisitorLimitAble(_visitorLimitAble int64) error
SetVisitorLimitAble is VisitorLimitAble Setter 新发布规则时必填。出游人 是否限购。1:限购,2:不限购
func (*AlitripTicketRuleUploadAPIRequest) SetVisitorLimitMode ¶ added in v1.2.0
func (r *AlitripTicketRuleUploadAPIRequest) SetVisitorLimitMode(_visitorLimitMode int64) error
SetVisitorLimitMode is VisitorLimitMode Setter 新发布规则时特殊选填。限购模式:mode为1按天, mode为2按周, mode为3按月
func (*AlitripTicketRuleUploadAPIRequest) SetVisitorLimitNum ¶ added in v1.2.0
func (r *AlitripTicketRuleUploadAPIRequest) SetVisitorLimitNum(_visitorLimitNum int64) error
SetVisitorLimitNum is VisitorLimitNum Setter 新发布规则时特殊选填。限购数量
func (*AlitripTicketRuleUploadAPIRequest) SetVisitorLimitType ¶ added in v1.2.0
func (r *AlitripTicketRuleUploadAPIRequest) SetVisitorLimitType(_visitorLimitType int64) error
SetVisitorLimitType is VisitorLimitType Setter 新发布规则时特殊选填。限购类型。0-身份证限购, 1-手机号限购
func (*AlitripTicketRuleUploadAPIRequest) SetVisitorRequire ¶ added in v1.2.0
func (r *AlitripTicketRuleUploadAPIRequest) SetVisitorRequire(_visitorRequire int64) error
SetVisitorRequire is VisitorRequire Setter 新发布规则时必填。出游人信息设置。1、不需要,2、仅需一位游客信息。3、需要所有游客信息。不填默认为1(不需要)。注:实体票(rule_type=2)不需要出游人信息,电子票(rule_type=1)一般是需要出游人信息
type AlitripTicketRuleUploadAPIResponse ¶
type AlitripTicketRuleUploadAPIResponse struct { model.CommonResponse AlitripTicketRuleUploadAPIResponseModel }
AlitripTicketRuleUploadAPIResponse 【门票API2.0】景点门票规则维护接口 API返回值 alitrip.ticket.rule.upload
景点门票规则维护接口。该接口同时支持新发规则和编辑现有规则,如果out_rule_id下没有发布过规则,则系统将判断为新发一个规则,否则认为是编辑现有规则。 对于新发布规则的情况,有些参数是必填的,请仔细查看各字段说明。对于编辑的情况,除out_rule_id外都是可选,编辑情况支持增量更新(某个参数不传则使用该规则上原有值)
func GetAlitripTicketRuleUploadAPIResponse ¶ added in v1.3.4
func GetAlitripTicketRuleUploadAPIResponse() *AlitripTicketRuleUploadAPIResponse
GetAlitripTicketRuleUploadAPIResponse 从 sync.Pool 获取 AlitripTicketRuleUploadAPIResponse
func (*AlitripTicketRuleUploadAPIResponse) Reset ¶ added in v1.3.4
func (m *AlitripTicketRuleUploadAPIResponse) Reset()
Reset 清空结构体
type AlitripTicketRuleUploadAPIResponseModel ¶ added in v1.2.0
type AlitripTicketRuleUploadAPIResponseModel struct { XMLName xml.Name `xml:"alitrip_ticket_rule_upload_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // result Result *AlitripTicketRuleUploadResultSet `json:"result,omitempty" xml:"result,omitempty"` }
AlitripTicketRuleUploadAPIResponseModel is 【门票API2.0】景点门票规则维护接口 成功返回结果
func (*AlitripTicketRuleUploadAPIResponseModel) Reset ¶ added in v1.3.4
func (m *AlitripTicketRuleUploadAPIResponseModel) Reset()
Reset 清空结构体
type AlitripTicketRuleUploadResultSet ¶
type AlitripTicketRuleUploadResultSet struct { // 规则维护结果 FirstResult *TopTicketRuleResult `json:"first_result,omitempty" xml:"first_result,omitempty"` }
AlitripTicketRuleUploadResultSet 结构体
func GetAlitripTicketRuleUploadResultSet ¶ added in v1.3.4
func GetAlitripTicketRuleUploadResultSet() *AlitripTicketRuleUploadResultSet
GetAlitripTicketRuleUploadResultSet() 从对象池中获取AlitripTicketRuleUploadResultSet
type AlitripTicketScenicBindAPIRequest ¶ added in v1.2.0
type AlitripTicketScenicBindAPIRequest struct { model.Params // contains filtered or unexported fields }
AlitripTicketScenicBindAPIRequest 【门票API2.0】门票景点绑定接口 API请求 alitrip.ticket.scenic.bind
门票景点绑定接口,用于建立阿里标准景点id与商家系统景点id的映射关系。该接口同时支持新建和修改映射关系,当用户没有为ali_scenic_id建立过映射关系时,则判断为新建映射关系,否则为修改。可以通过设置update_out_scenic_id来修改ali_scenic_id与out_scenic_id的映射关系。
func GetAlitripTicketScenicBindAPIRequest ¶ added in v1.3.4
func GetAlitripTicketScenicBindAPIRequest() *AlitripTicketScenicBindAPIRequest
GetAlitripTicketScenicBindRequest 从 sync.Pool 获取 AlitripTicketScenicBindAPIRequest
func NewAlitripTicketScenicBindRequest ¶
func NewAlitripTicketScenicBindRequest() *AlitripTicketScenicBindAPIRequest
NewAlitripTicketScenicBindRequest 初始化AlitripTicketScenicBindAPIRequest对象
func (AlitripTicketScenicBindAPIRequest) GetAddress ¶ added in v1.2.0
func (r AlitripTicketScenicBindAPIRequest) GetAddress() string
GetAddress Address Getter
func (AlitripTicketScenicBindAPIRequest) GetAliScenicId ¶ added in v1.2.0
func (r AlitripTicketScenicBindAPIRequest) GetAliScenicId() int64
GetAliScenicId AliScenicId Getter
func (AlitripTicketScenicBindAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r AlitripTicketScenicBindAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AlitripTicketScenicBindAPIRequest) GetApiParams ¶ added in v1.2.0
func (r AlitripTicketScenicBindAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (AlitripTicketScenicBindAPIRequest) GetCity ¶ added in v1.2.0
func (r AlitripTicketScenicBindAPIRequest) GetCity() string
GetCity City Getter
func (AlitripTicketScenicBindAPIRequest) GetOutScenicId ¶ added in v1.2.0
func (r AlitripTicketScenicBindAPIRequest) GetOutScenicId() string
GetOutScenicId OutScenicId Getter
func (AlitripTicketScenicBindAPIRequest) GetOutScenicName ¶ added in v1.2.0
func (r AlitripTicketScenicBindAPIRequest) GetOutScenicName() string
GetOutScenicName OutScenicName Getter
func (AlitripTicketScenicBindAPIRequest) GetProvince ¶ added in v1.2.0
func (r AlitripTicketScenicBindAPIRequest) GetProvince() string
GetProvince Province Getter
func (AlitripTicketScenicBindAPIRequest) GetRawParams ¶ added in v1.2.8
func (r AlitripTicketScenicBindAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (AlitripTicketScenicBindAPIRequest) GetUpdateOutScenicId ¶ added in v1.2.0
func (r AlitripTicketScenicBindAPIRequest) GetUpdateOutScenicId() string
GetUpdateOutScenicId UpdateOutScenicId Getter
func (*AlitripTicketScenicBindAPIRequest) Reset ¶ added in v1.3.4
func (r *AlitripTicketScenicBindAPIRequest) Reset()
Reset IRequest interface 方法, 清空结构体
func (*AlitripTicketScenicBindAPIRequest) SetAddress ¶ added in v1.2.0
func (r *AlitripTicketScenicBindAPIRequest) SetAddress(_address string) error
SetAddress is Address Setter 商户景点地址
func (*AlitripTicketScenicBindAPIRequest) SetAliScenicId ¶ added in v1.2.0
func (r *AlitripTicketScenicBindAPIRequest) SetAliScenicId(_aliScenicId int64) error
SetAliScenicId is AliScenicId Setter 必填,阿里旅行对应的景点编码
func (*AlitripTicketScenicBindAPIRequest) SetCity ¶ added in v1.2.0
func (r *AlitripTicketScenicBindAPIRequest) SetCity(_city string) error
SetCity is City Setter 商户景点城市
func (*AlitripTicketScenicBindAPIRequest) SetOutScenicId ¶ added in v1.2.0
func (r *AlitripTicketScenicBindAPIRequest) SetOutScenicId(_outScenicId string) error
SetOutScenicId is OutScenicId Setter 必填,商户系统中的景点编码,用于与ali_scenic_id建立映射关系
func (*AlitripTicketScenicBindAPIRequest) SetOutScenicName ¶ added in v1.2.0
func (r *AlitripTicketScenicBindAPIRequest) SetOutScenicName(_outScenicName string) error
SetOutScenicName is OutScenicName Setter 商户景点名称
func (*AlitripTicketScenicBindAPIRequest) SetProvince ¶ added in v1.2.0
func (r *AlitripTicketScenicBindAPIRequest) SetProvince(_province string) error
SetProvince is Province Setter 商户景点省份
func (*AlitripTicketScenicBindAPIRequest) SetUpdateOutScenicId ¶ added in v1.2.0
func (r *AlitripTicketScenicBindAPIRequest) SetUpdateOutScenicId(_updateOutScenicId string) error
SetUpdateOutScenicId is UpdateOutScenicId Setter 可选,如果需要更新out_scenic_id与ali_scenic_id的映射关系时 需要填写
type AlitripTicketScenicBindAPIResponse ¶
type AlitripTicketScenicBindAPIResponse struct { model.CommonResponse AlitripTicketScenicBindAPIResponseModel }
AlitripTicketScenicBindAPIResponse 【门票API2.0】门票景点绑定接口 API返回值 alitrip.ticket.scenic.bind
门票景点绑定接口,用于建立阿里标准景点id与商家系统景点id的映射关系。该接口同时支持新建和修改映射关系,当用户没有为ali_scenic_id建立过映射关系时,则判断为新建映射关系,否则为修改。可以通过设置update_out_scenic_id来修改ali_scenic_id与out_scenic_id的映射关系。
func GetAlitripTicketScenicBindAPIResponse ¶ added in v1.3.4
func GetAlitripTicketScenicBindAPIResponse() *AlitripTicketScenicBindAPIResponse
GetAlitripTicketScenicBindAPIResponse 从 sync.Pool 获取 AlitripTicketScenicBindAPIResponse
func (*AlitripTicketScenicBindAPIResponse) Reset ¶ added in v1.3.4
func (m *AlitripTicketScenicBindAPIResponse) Reset()
Reset 清空结构体
type AlitripTicketScenicBindAPIResponseModel ¶ added in v1.2.0
type AlitripTicketScenicBindAPIResponseModel struct { XMLName xml.Name `xml:"alitrip_ticket_scenic_bind_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 景点绑定结果 FirstResult *TicketScenicResult `json:"first_result,omitempty" xml:"first_result,omitempty"` }
AlitripTicketScenicBindAPIResponseModel is 【门票API2.0】门票景点绑定接口 成功返回结果
func (*AlitripTicketScenicBindAPIResponseModel) Reset ¶ added in v1.3.4
func (m *AlitripTicketScenicBindAPIResponseModel) Reset()
Reset 清空结构体
type AlitripTicketScenicQueryAPIRequest ¶ added in v1.2.0
type AlitripTicketScenicQueryAPIRequest struct { model.Params // contains filtered or unexported fields }
AlitripTicketScenicQueryAPIRequest 【门票API2.0】卖家已发布门票商品列表查询接口(根据景点维度查询) API请求 alitrip.ticket.scenic.query
查询卖家已发布过的门票商品列表,根据景点维度聚合查询。如果卖家在该景点下未发布过任何商品,则查询不到数据!
func GetAlitripTicketScenicQueryAPIRequest ¶ added in v1.3.4
func GetAlitripTicketScenicQueryAPIRequest() *AlitripTicketScenicQueryAPIRequest
GetAlitripTicketScenicQueryRequest 从 sync.Pool 获取 AlitripTicketScenicQueryAPIRequest
func NewAlitripTicketScenicQueryRequest ¶
func NewAlitripTicketScenicQueryRequest() *AlitripTicketScenicQueryAPIRequest
NewAlitripTicketScenicQueryRequest 初始化AlitripTicketScenicQueryAPIRequest对象
func (AlitripTicketScenicQueryAPIRequest) GetAliScenicId ¶ added in v1.2.0
func (r AlitripTicketScenicQueryAPIRequest) GetAliScenicId() int64
GetAliScenicId AliScenicId Getter
func (AlitripTicketScenicQueryAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r AlitripTicketScenicQueryAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AlitripTicketScenicQueryAPIRequest) GetApiParams ¶ added in v1.2.0
func (r AlitripTicketScenicQueryAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (AlitripTicketScenicQueryAPIRequest) GetCurrentPage ¶ added in v1.2.0
func (r AlitripTicketScenicQueryAPIRequest) GetCurrentPage() int64
GetCurrentPage CurrentPage Getter
func (AlitripTicketScenicQueryAPIRequest) GetOutScenicId ¶ added in v1.2.0
func (r AlitripTicketScenicQueryAPIRequest) GetOutScenicId() string
GetOutScenicId OutScenicId Getter
func (AlitripTicketScenicQueryAPIRequest) GetRawParams ¶ added in v1.2.8
func (r AlitripTicketScenicQueryAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*AlitripTicketScenicQueryAPIRequest) Reset ¶ added in v1.3.4
func (r *AlitripTicketScenicQueryAPIRequest) Reset()
Reset IRequest interface 方法, 清空结构体
func (*AlitripTicketScenicQueryAPIRequest) SetAliScenicId ¶ added in v1.2.0
func (r *AlitripTicketScenicQueryAPIRequest) SetAliScenicId(_aliScenicId int64) error
SetAliScenicId is AliScenicId Setter 标准景点ID。ali_scenic_id,out_scenic_id二者至少需要填写一个
func (*AlitripTicketScenicQueryAPIRequest) SetCurrentPage ¶ added in v1.2.0
func (r *AlitripTicketScenicQueryAPIRequest) SetCurrentPage(_currentPage int64) error
SetCurrentPage is CurrentPage Setter 当前分页。每页默认最多返回20条数据
func (*AlitripTicketScenicQueryAPIRequest) SetOutScenicId ¶ added in v1.2.0
func (r *AlitripTicketScenicQueryAPIRequest) SetOutScenicId(_outScenicId string) error
SetOutScenicId is OutScenicId Setter 商家景点ID。ali_scenic_id,out_scenic_id二者至少需要填写一个
type AlitripTicketScenicQueryAPIResponse ¶
type AlitripTicketScenicQueryAPIResponse struct { model.CommonResponse AlitripTicketScenicQueryAPIResponseModel }
AlitripTicketScenicQueryAPIResponse 【门票API2.0】卖家已发布门票商品列表查询接口(根据景点维度查询) API返回值 alitrip.ticket.scenic.query
查询卖家已发布过的门票商品列表,根据景点维度聚合查询。如果卖家在该景点下未发布过任何商品,则查询不到数据!
func GetAlitripTicketScenicQueryAPIResponse ¶ added in v1.3.4
func GetAlitripTicketScenicQueryAPIResponse() *AlitripTicketScenicQueryAPIResponse
GetAlitripTicketScenicQueryAPIResponse 从 sync.Pool 获取 AlitripTicketScenicQueryAPIResponse
func (*AlitripTicketScenicQueryAPIResponse) Reset ¶ added in v1.3.4
func (m *AlitripTicketScenicQueryAPIResponse) Reset()
Reset 清空结构体
type AlitripTicketScenicQueryAPIResponseModel ¶ added in v1.2.0
type AlitripTicketScenicQueryAPIResponseModel struct { XMLName xml.Name `xml:"alitrip_ticket_scenic_query_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 返回结果 FirstResult *ScenicAndProductResult `json:"first_result,omitempty" xml:"first_result,omitempty"` }
AlitripTicketScenicQueryAPIResponseModel is 【门票API2.0】卖家已发布门票商品列表查询接口(根据景点维度查询) 成功返回结果
func (*AlitripTicketScenicQueryAPIResponseModel) Reset ¶ added in v1.3.4
func (m *AlitripTicketScenicQueryAPIResponseModel) Reset()
Reset 清空结构体
type AlitripTicketSkusBatchUploadAPIRequest ¶ added in v1.2.0
type AlitripTicketSkusBatchUploadAPIRequest struct { model.Params // contains filtered or unexported fields }
AlitripTicketSkusBatchUploadAPIRequest 【门票API2.0】门票价格库存同步接口(多票种批量更新) API请求 alitrip.ticket.skus.batch.upload
飞猪度假新版门票商品价格库存同步接口(多票种批量更新)。 注1、一个票种下可以挂多个规则(规则id必须不一样,每个规则实际对应了一个sku),同一个规则可以在不同票种下使用。 注2、日历库存和区间库存门票,统一使用DateInventory结构。对于日历库存门票请上传每一天的价格库存;对于区间库存门票,建议只上传开始和结束日期的价格库存,也支持上传每天的价格库存,系统会自动进行聚合(取第一天的价格为区间价格,累计所有天的库存为区间库存)。 注3、该接口同时支持 新增某个规则的价格库存 和 更新现有规则的价格库存。如果不清楚是否已在某个规则下上传过价格库存,请使用alitrip.ticket.product.query接口进行查询。如果该规则在该票种下已经存在,则该接口会判断为是价格库存更新操作。
func GetAlitripTicketSkusBatchUploadAPIRequest ¶ added in v1.3.4
func GetAlitripTicketSkusBatchUploadAPIRequest() *AlitripTicketSkusBatchUploadAPIRequest
GetAlitripTicketSkusBatchUploadRequest 从 sync.Pool 获取 AlitripTicketSkusBatchUploadAPIRequest
func NewAlitripTicketSkusBatchUploadRequest ¶
func NewAlitripTicketSkusBatchUploadRequest() *AlitripTicketSkusBatchUploadAPIRequest
NewAlitripTicketSkusBatchUploadRequest 初始化AlitripTicketSkusBatchUploadAPIRequest对象
func (AlitripTicketSkusBatchUploadAPIRequest) GetAliProductId ¶ added in v1.2.0
func (r AlitripTicketSkusBatchUploadAPIRequest) GetAliProductId() int64
GetAliProductId AliProductId Getter
func (AlitripTicketSkusBatchUploadAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r AlitripTicketSkusBatchUploadAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AlitripTicketSkusBatchUploadAPIRequest) GetApiParams ¶ added in v1.2.0
func (r AlitripTicketSkusBatchUploadAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (AlitripTicketSkusBatchUploadAPIRequest) GetItemId ¶ added in v1.2.0
func (r AlitripTicketSkusBatchUploadAPIRequest) GetItemId() int64
GetItemId ItemId Getter
func (AlitripTicketSkusBatchUploadAPIRequest) GetOutProductId ¶ added in v1.2.0
func (r AlitripTicketSkusBatchUploadAPIRequest) GetOutProductId() string
GetOutProductId OutProductId Getter
func (AlitripTicketSkusBatchUploadAPIRequest) GetRawParams ¶ added in v1.2.8
func (r AlitripTicketSkusBatchUploadAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (AlitripTicketSkusBatchUploadAPIRequest) GetTicketPriceRules ¶ added in v1.2.0
func (r AlitripTicketSkusBatchUploadAPIRequest) GetTicketPriceRules() []TicketPriceRule
GetTicketPriceRules TicketPriceRules Getter
func (*AlitripTicketSkusBatchUploadAPIRequest) Reset ¶ added in v1.3.4
func (r *AlitripTicketSkusBatchUploadAPIRequest) Reset()
Reset IRequest interface 方法, 清空结构体
func (*AlitripTicketSkusBatchUploadAPIRequest) SetAliProductId ¶ added in v1.2.0
func (r *AlitripTicketSkusBatchUploadAPIRequest) SetAliProductId(_aliProductId int64) error
SetAliProductId is AliProductId Setter 特殊必填,阿里标准收费项目id。ali_product_id, item_id与out_product_id三选一,至少填写其中一个
func (*AlitripTicketSkusBatchUploadAPIRequest) SetItemId ¶ added in v1.2.0
func (r *AlitripTicketSkusBatchUploadAPIRequest) SetItemId(_itemId int64) error
SetItemId is ItemId Setter 特殊必填,淘宝商品id。ali_product_id, item_id与out_product_id三选一,至少填写其中一个
func (*AlitripTicketSkusBatchUploadAPIRequest) SetOutProductId ¶ added in v1.2.0
func (r *AlitripTicketSkusBatchUploadAPIRequest) SetOutProductId(_outProductId string) error
SetOutProductId is OutProductId Setter 特殊必填,商户收费项目id。ali_product_id, item_id与out_product_id三选一,至少填写其中一个
func (*AlitripTicketSkusBatchUploadAPIRequest) SetTicketPriceRules ¶ added in v1.2.0
func (r *AlitripTicketSkusBatchUploadAPIRequest) SetTicketPriceRules(_ticketPriceRules []TicketPriceRule) error
SetTicketPriceRules is TicketPriceRules Setter 必填,各票种下sku的价格库存参数。
type AlitripTicketSkusBatchUploadAPIResponse ¶
type AlitripTicketSkusBatchUploadAPIResponse struct { model.CommonResponse AlitripTicketSkusBatchUploadAPIResponseModel }
AlitripTicketSkusBatchUploadAPIResponse 【门票API2.0】门票价格库存同步接口(多票种批量更新) API返回值 alitrip.ticket.skus.batch.upload
飞猪度假新版门票商品价格库存同步接口(多票种批量更新)。 注1、一个票种下可以挂多个规则(规则id必须不一样,每个规则实际对应了一个sku),同一个规则可以在不同票种下使用。 注2、日历库存和区间库存门票,统一使用DateInventory结构。对于日历库存门票请上传每一天的价格库存;对于区间库存门票,建议只上传开始和结束日期的价格库存,也支持上传每天的价格库存,系统会自动进行聚合(取第一天的价格为区间价格,累计所有天的库存为区间库存)。 注3、该接口同时支持 新增某个规则的价格库存 和 更新现有规则的价格库存。如果不清楚是否已在某个规则下上传过价格库存,请使用alitrip.ticket.product.query接口进行查询。如果该规则在该票种下已经存在,则该接口会判断为是价格库存更新操作。
func GetAlitripTicketSkusBatchUploadAPIResponse ¶ added in v1.3.4
func GetAlitripTicketSkusBatchUploadAPIResponse() *AlitripTicketSkusBatchUploadAPIResponse
GetAlitripTicketSkusBatchUploadAPIResponse 从 sync.Pool 获取 AlitripTicketSkusBatchUploadAPIResponse
func (*AlitripTicketSkusBatchUploadAPIResponse) Reset ¶ added in v1.3.4
func (m *AlitripTicketSkusBatchUploadAPIResponse) Reset()
Reset 清空结构体
type AlitripTicketSkusBatchUploadAPIResponseModel ¶ added in v1.2.0
type AlitripTicketSkusBatchUploadAPIResponseModel struct { XMLName xml.Name `xml:"alitrip_ticket_skus_batch_upload_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 价格库存同步结果 UpdateResult *TicketItemResult `json:"update_result,omitempty" xml:"update_result,omitempty"` }
AlitripTicketSkusBatchUploadAPIResponseModel is 【门票API2.0】门票价格库存同步接口(多票种批量更新) 成功返回结果
func (*AlitripTicketSkusBatchUploadAPIResponseModel) Reset ¶ added in v1.3.4
func (m *AlitripTicketSkusBatchUploadAPIResponseModel) Reset()
Reset 清空结构体
type AlitripTicketSkusUploadAPIRequest ¶ added in v1.2.0
type AlitripTicketSkusUploadAPIRequest struct { model.Params // contains filtered or unexported fields }
AlitripTicketSkusUploadAPIRequest 【门票API2.0】门票价格库存同步接口 API请求 alitrip.ticket.skus.upload
航旅度假新版门票商品价格库存同步接口。 注1、一个票种下可以挂多个规则(规则id必须不一样,每个规则实际对应了一个sku),同一个规则可以在不同票种下使用。 注2、日历库存和区间库存门票,统一使用DateInventory结构。对于日历库存门票请上传每一天的价格库存;对于区间库存门票,建议只上传开始和结束日期的价格库存,也支持上传每天的价格库存,系统会自动进行聚合(取第一天的价格为区间价格,累计所有天的库存为区间库存)。 注3、该接口同时支持 新增某个规则的价格库存 和 更新现有规则的价格库存。如果不清楚是否已在某个规则下上传过价格库存,请使用alitrip.ticket.product.query接口进行查询。如果该规则在该票种下已经存在,则该接口会判断为是价格库存更新操作。
func GetAlitripTicketSkusUploadAPIRequest ¶ added in v1.3.4
func GetAlitripTicketSkusUploadAPIRequest() *AlitripTicketSkusUploadAPIRequest
GetAlitripTicketSkusUploadRequest 从 sync.Pool 获取 AlitripTicketSkusUploadAPIRequest
func NewAlitripTicketSkusUploadRequest ¶
func NewAlitripTicketSkusUploadRequest() *AlitripTicketSkusUploadAPIRequest
NewAlitripTicketSkusUploadRequest 初始化AlitripTicketSkusUploadAPIRequest对象
func (AlitripTicketSkusUploadAPIRequest) GetAliProductId ¶ added in v1.2.0
func (r AlitripTicketSkusUploadAPIRequest) GetAliProductId() int64
GetAliProductId AliProductId Getter
func (AlitripTicketSkusUploadAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r AlitripTicketSkusUploadAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AlitripTicketSkusUploadAPIRequest) GetApiParams ¶ added in v1.2.0
func (r AlitripTicketSkusUploadAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (AlitripTicketSkusUploadAPIRequest) GetItemId ¶ added in v1.2.0
func (r AlitripTicketSkusUploadAPIRequest) GetItemId() int64
GetItemId ItemId Getter
func (AlitripTicketSkusUploadAPIRequest) GetOutProductId ¶ added in v1.2.0
func (r AlitripTicketSkusUploadAPIRequest) GetOutProductId() string
GetOutProductId OutProductId Getter
func (AlitripTicketSkusUploadAPIRequest) GetPriceRules ¶ added in v1.2.0
func (r AlitripTicketSkusUploadAPIRequest) GetPriceRules() []PriceRule
GetPriceRules PriceRules Getter
func (AlitripTicketSkusUploadAPIRequest) GetRawParams ¶ added in v1.2.8
func (r AlitripTicketSkusUploadAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (AlitripTicketSkusUploadAPIRequest) GetTicketArea ¶ added in v1.2.0
func (r AlitripTicketSkusUploadAPIRequest) GetTicketArea() string
GetTicketArea TicketArea Getter
func (AlitripTicketSkusUploadAPIRequest) GetTicketSeason ¶ added in v1.2.0
func (r AlitripTicketSkusUploadAPIRequest) GetTicketSeason() string
GetTicketSeason TicketSeason Getter
func (AlitripTicketSkusUploadAPIRequest) GetTicketType ¶ added in v1.2.0
func (r AlitripTicketSkusUploadAPIRequest) GetTicketType() string
GetTicketType TicketType Getter
func (*AlitripTicketSkusUploadAPIRequest) Reset ¶ added in v1.3.4
func (r *AlitripTicketSkusUploadAPIRequest) Reset()
Reset IRequest interface 方法, 清空结构体
func (*AlitripTicketSkusUploadAPIRequest) SetAliProductId ¶ added in v1.2.0
func (r *AlitripTicketSkusUploadAPIRequest) SetAliProductId(_aliProductId int64) error
SetAliProductId is AliProductId Setter 特殊必填,阿里标准收费项目id。ali_product_id, item_id与out_product_id三选一,至少填写其中一个
func (*AlitripTicketSkusUploadAPIRequest) SetItemId ¶ added in v1.2.0
func (r *AlitripTicketSkusUploadAPIRequest) SetItemId(_itemId int64) error
SetItemId is ItemId Setter 特殊必填,淘宝商品id。ali_product_id, item_id与out_product_id三选一,至少填写其中一个
func (*AlitripTicketSkusUploadAPIRequest) SetOutProductId ¶ added in v1.2.0
func (r *AlitripTicketSkusUploadAPIRequest) SetOutProductId(_outProductId string) error
SetOutProductId is OutProductId Setter 特殊必填,商户收费项目id。ali_product_id, item_id与out_product_id三选一,至少填写其中一个
func (*AlitripTicketSkusUploadAPIRequest) SetPriceRules ¶ added in v1.2.0
func (r *AlitripTicketSkusUploadAPIRequest) SetPriceRules(_priceRules []PriceRule) error
SetPriceRules is PriceRules Setter 必填,该票种下使用的价格规则。
func (*AlitripTicketSkusUploadAPIRequest) SetTicketArea ¶ added in v1.2.0
func (r *AlitripTicketSkusUploadAPIRequest) SetTicketArea(_ticketArea string) error
SetTicketArea is TicketArea Setter 可选,门票区域(场次门票专用,对于场次门票必选)
func (*AlitripTicketSkusUploadAPIRequest) SetTicketSeason ¶ added in v1.2.0
func (r *AlitripTicketSkusUploadAPIRequest) SetTicketSeason(_ticketSeason string) error
SetTicketSeason is TicketSeason Setter 可选,门票场次(场次门票专用,对于场次门票必选)
func (*AlitripTicketSkusUploadAPIRequest) SetTicketType ¶ added in v1.2.0
func (r *AlitripTicketSkusUploadAPIRequest) SetTicketType(_ticketType string) error
SetTicketType is TicketType Setter 必填,门票 票种类型
type AlitripTicketSkusUploadAPIResponse ¶
type AlitripTicketSkusUploadAPIResponse struct { model.CommonResponse AlitripTicketSkusUploadAPIResponseModel }
AlitripTicketSkusUploadAPIResponse 【门票API2.0】门票价格库存同步接口 API返回值 alitrip.ticket.skus.upload
航旅度假新版门票商品价格库存同步接口。 注1、一个票种下可以挂多个规则(规则id必须不一样,每个规则实际对应了一个sku),同一个规则可以在不同票种下使用。 注2、日历库存和区间库存门票,统一使用DateInventory结构。对于日历库存门票请上传每一天的价格库存;对于区间库存门票,建议只上传开始和结束日期的价格库存,也支持上传每天的价格库存,系统会自动进行聚合(取第一天的价格为区间价格,累计所有天的库存为区间库存)。 注3、该接口同时支持 新增某个规则的价格库存 和 更新现有规则的价格库存。如果不清楚是否已在某个规则下上传过价格库存,请使用alitrip.ticket.product.query接口进行查询。如果该规则在该票种下已经存在,则该接口会判断为是价格库存更新操作。
func GetAlitripTicketSkusUploadAPIResponse ¶ added in v1.3.4
func GetAlitripTicketSkusUploadAPIResponse() *AlitripTicketSkusUploadAPIResponse
GetAlitripTicketSkusUploadAPIResponse 从 sync.Pool 获取 AlitripTicketSkusUploadAPIResponse
func (*AlitripTicketSkusUploadAPIResponse) Reset ¶ added in v1.3.4
func (m *AlitripTicketSkusUploadAPIResponse) Reset()
Reset 清空结构体
type AlitripTicketSkusUploadAPIResponseModel ¶ added in v1.2.0
type AlitripTicketSkusUploadAPIResponseModel struct { XMLName xml.Name `xml:"alitrip_ticket_skus_upload_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 价格库存同步结果 FirstResult *TicketItemResult `json:"first_result,omitempty" xml:"first_result,omitempty"` }
AlitripTicketSkusUploadAPIResponseModel is 【门票API2.0】门票价格库存同步接口 成功返回结果
func (*AlitripTicketSkusUploadAPIResponseModel) Reset ¶ added in v1.3.4
func (m *AlitripTicketSkusUploadAPIResponseModel) Reset()
Reset 清空结构体
type CodeSendingInfo ¶
type CodeSendingInfo struct { // 发码方式。1、电子票自动发码 需设置电子凭证信息,2、电子票手工发码,3、实体票 CodeMode int64 `json:"code_mode,omitempty" xml:"code_mode,omitempty"` // 电子凭证信息 ElecInfo *ItemEleCertInfo `json:"elec_info,omitempty" xml:"elec_info,omitempty"` // 是否需要买家邮箱 HasEmail bool `json:"has_email,omitempty" xml:"has_email,omitempty"` }
CodeSendingInfo 结构体
func GetCodeSendingInfo ¶ added in v1.3.4
func GetCodeSendingInfo() *CodeSendingInfo
GetCodeSendingInfo() 从对象池中获取CodeSendingInfo
type DateInventory ¶
type DateInventory struct { // 日期 Date string `json:"date,omitempty" xml:"date,omitempty"` // 日期级别自定义商家编码,为该sku下每一天都设置一个自定义商家编码。如果outSkuDateId为空,则该天的商家自定义编码将以outSkuId为准 OutSkuDateId string `json:"out_sku_date_id,omitempty" xml:"out_sku_date_id,omitempty"` // 价格,精确到分 Price int64 `json:"price,omitempty" xml:"price,omitempty"` // 库存 Stock int64 `json:"stock,omitempty" xml:"stock,omitempty"` }
DateInventory 结构体
func GetDateInventory ¶ added in v1.3.4
func GetDateInventory() *DateInventory
GetDateInventory() 从对象池中获取DateInventory
type ItemEleCertInfo ¶
type ItemEleCertInfo struct { // 电子凭证 有效期 开始时间 ExpiryDateStart string `json:"expiry_date_start,omitempty" xml:"expiry_date_start,omitempty"` // 电子凭证 有效期 结束时间 ExpiryDateEnd string `json:"expiry_date_end,omitempty" xml:"expiry_date_end,omitempty"` // 门票商品电子凭证信息必填,店铺联系方式 ShopTel string `json:"shop_tel,omitempty" xml:"shop_tel,omitempty"` // 核销服务提供商 MerchantName string `json:"merchant_name,omitempty" xml:"merchant_name,omitempty"` // 有效期 过期类型 ExpiryDateType int64 `json:"expiry_date_type,omitempty" xml:"expiry_date_type,omitempty"` // 电子凭证 有效期 天数 ExpiryDays int64 `json:"expiry_days,omitempty" xml:"expiry_days,omitempty"` // 核销门店库id PackageId int64 `json:"package_id,omitempty" xml:"package_id,omitempty"` // 售中自动退款比例,0~100 AutoRefundRate int64 `json:"auto_refund_rate,omitempty" xml:"auto_refund_rate,omitempty"` // 过期自动退款比例,0~100 ExpiredRefundRate int64 `json:"expired_refund_rate,omitempty" xml:"expired_refund_rate,omitempty"` }
ItemEleCertInfo 结构体
func GetItemEleCertInfo ¶ added in v1.3.4
func GetItemEleCertInfo() *ItemEleCertInfo
GetItemEleCertInfo() 从对象池中获取ItemEleCertInfo
type PriceRule ¶
type PriceRule struct { // 每日价格库存 DateInventorys []DateInventory `json:"date_inventorys,omitempty" xml:"date_inventorys>date_inventory,omitempty"` // 商户票种规则id OutRuleId string `json:"out_rule_id,omitempty" xml:"out_rule_id,omitempty"` // sku的商家编码(用于区分在 不同票种下使用同一outRuleId的情况) OutSkuId string `json:"out_sku_id,omitempty" xml:"out_sku_id,omitempty"` // 可选,1-全量更新,2-增量更新(增加或覆盖某一天的价格库存),不传默认为1。 UploadType int64 `json:"upload_type,omitempty" xml:"upload_type,omitempty"` }
PriceRule 结构体
type Product ¶
type Product struct { // 标准收费项目ID AliProductId string `json:"ali_product_id,omitempty" xml:"ali_product_id,omitempty"` // 标准收费项目名称 AliProductName string `json:"ali_product_name,omitempty" xml:"ali_product_name,omitempty"` // 商家收费项目ID OutProductId string `json:"out_product_id,omitempty" xml:"out_product_id,omitempty"` // 商家收费项目名称 OutProductName string `json:"out_product_name,omitempty" xml:"out_product_name,omitempty"` // 商品ID ItemId string `json:"item_id,omitempty" xml:"item_id,omitempty"` // 商品名称 ItemName string `json:"item_name,omitempty" xml:"item_name,omitempty"` }
Product 结构体
type Scenic ¶
type Scenic struct { // 收费项目列表 ProductList []Product `json:"product_list,omitempty" xml:"product_list>product,omitempty"` // 标准景点ID AliScenicId string `json:"ali_scenic_id,omitempty" xml:"ali_scenic_id,omitempty"` // 标准景点名称 AliScenicName string `json:"ali_scenic_name,omitempty" xml:"ali_scenic_name,omitempty"` // 商家景点ID OutScenicId string `json:"out_scenic_id,omitempty" xml:"out_scenic_id,omitempty"` // 商家景点名称 OutScenicName string `json:"out_scenic_name,omitempty" xml:"out_scenic_name,omitempty"` }
Scenic 结构体
type ScenicAndProductResult ¶
type ScenicAndProductResult struct { // 景点列表 ScenicList []Scenic `json:"scenic_list,omitempty" xml:"scenic_list>scenic,omitempty"` }
ScenicAndProductResult 结构体
func GetScenicAndProductResult ¶ added in v1.3.4
func GetScenicAndProductResult() *ScenicAndProductResult
GetScenicAndProductResult() 从对象池中获取ScenicAndProductResult
type TicketItemResult ¶
type TicketItemResult struct { // 商户票种规则id OutRuleIds []string `json:"out_rule_ids,omitempty" xml:"out_rule_ids>string,omitempty"` // 修改时间 ModifyedTime string `json:"modifyed_time,omitempty" xml:"modifyed_time,omitempty"` // 商户景点id OutScenicId string `json:"out_scenic_id,omitempty" xml:"out_scenic_id,omitempty"` // 商户收费项目id OutProductId string `json:"out_product_id,omitempty" xml:"out_product_id,omitempty"` // 预留,扩展字段 Extend string `json:"extend,omitempty" xml:"extend,omitempty"` // 票种 TicketType string `json:"ticket_type,omitempty" xml:"ticket_type,omitempty"` // 商品id ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"` // 标准景点id AliScenicId int64 `json:"ali_scenic_id,omitempty" xml:"ali_scenic_id,omitempty"` // 标准收费项目id AliProductId int64 `json:"ali_product_id,omitempty" xml:"ali_product_id,omitempty"` }
TicketItemResult 结构体
func GetTicketItemResult ¶ added in v1.3.4
func GetTicketItemResult() *TicketItemResult
GetTicketItemResult() 从对象池中获取TicketItemResult
type TicketPriceRule ¶
type TicketPriceRule struct { // 必填,该票种下使用的价格规则。 PriceRules []PriceRule `json:"price_rules,omitempty" xml:"price_rules>price_rule,omitempty"` // 必填,门票 票种类型 TicketType string `json:"ticket_type,omitempty" xml:"ticket_type,omitempty"` // 可选,门票场次(场次门票专用,对于场次门票必选) TicketSeason string `json:"ticket_season,omitempty" xml:"ticket_season,omitempty"` // 可选,门票区域(场次门票专用,对于场次门票必选) TicketArea string `json:"ticket_area,omitempty" xml:"ticket_area,omitempty"` }
TicketPriceRule 结构体
func GetTicketPriceRule ¶ added in v1.3.4
func GetTicketPriceRule() *TicketPriceRule
GetTicketPriceRule() 从对象池中获取TicketPriceRule
type TicketRuleParam ¶
type TicketRuleParam struct { // 商户景点编码 OutScenicId string `json:"out_scenic_id,omitempty" xml:"out_scenic_id,omitempty"` // 卖家景点规则编码 OutRuleId string `json:"out_rule_id,omitempty" xml:"out_rule_id,omitempty"` // 卖家景点规则名称 OutRuleName string `json:"out_rule_name,omitempty" xml:"out_rule_name,omitempty"` // 退票描述 RefundDesc string `json:"refund_desc,omitempty" xml:"refund_desc,omitempty"` // 需要的出游人信息,2:手机号,3:身份证,4:姓名,5:护照号码 6:护照姓名拼音。 VisitorInfos string `json:"visitor_infos,omitempty" xml:"visitor_infos,omitempty"` // 其他入园凭证类型。 EnterVoucherValue string `json:"enter_voucher_value,omitempty" xml:"enter_voucher_value,omitempty"` // 换票地址 TicketChangeAdderss string `json:"ticket_change_adderss,omitempty" xml:"ticket_change_adderss,omitempty"` // 景区入园地址 EnterAddress string `json:"enter_address,omitempty" xml:"enter_address,omitempty"` // 门票费用包含 FeeInclude string `json:"fee_include,omitempty" xml:"fee_include,omitempty"` // 补充说明 ExtraDesc string `json:"extra_desc,omitempty" xml:"extra_desc,omitempty"` // 阿里旅行景点编码 AliScenicId int64 `json:"ali_scenic_id,omitempty" xml:"ali_scenic_id,omitempty"` // 票种规则类型(0实体票规则;1电子票规则) RuleType int64 `json:"rule_type,omitempty" xml:"rule_type,omitempty"` // 规则状态(0:有效,-1:失效) RuleStatus int64 `json:"rule_status,omitempty" xml:"rule_status,omitempty"` // 退票类型。1-无条件退改, 2-有条件退改, 3-不可退改。 RefundType int64 `json:"refund_type,omitempty" xml:"refund_type,omitempty"` // 游客信息设置 1:不需要,2:仅需一位游客信息,3:需要所有游客信息 VisitorRequire int64 `json:"visitor_require,omitempty" xml:"visitor_require,omitempty"` // 出游人 是否限购。1:限购,2:不限购 VisitorLimitAble int64 `json:"visitor_limit_able,omitempty" xml:"visitor_limit_able,omitempty"` // 限购模式。mode为1按天, mode为2按周, mode为3按月 VisitorLimitMode int64 `json:"visitor_limit_mode,omitempty" xml:"visitor_limit_mode,omitempty"` // 限购数量 VisitorLimitNum int64 `json:"visitor_limit_num,omitempty" xml:"visitor_limit_num,omitempty"` // 入园类型。1-用兑换凭证直接入园,2-用兑换凭证换票入园 EnterType int64 `json:"enter_type,omitempty" xml:"enter_type,omitempty"` // 入园使用的凭证类型。1、二维码,2、身份证,3、二维码或身份证,4:数字码,5、手机号,6、其它 EnterVoucherType int64 `json:"enter_voucher_type,omitempty" xml:"enter_voucher_type,omitempty"` // 限购类型。0-身份证限购, 1-手机号限购 VisitorLimitType int64 `json:"visitor_limit_type,omitempty" xml:"visitor_limit_type,omitempty"` }
TicketRuleParam 结构体
func GetTicketRuleParam ¶ added in v1.3.4
func GetTicketRuleParam() *TicketRuleParam
GetTicketRuleParam() 从对象池中获取TicketRuleParam
type TicketScenicResult ¶
type TicketScenicResult struct { // 商家景点编码 OutScenicId string `json:"out_scenic_id,omitempty" xml:"out_scenic_id,omitempty"` // 扩展字段,预留 Extend string `json:"extend,omitempty" xml:"extend,omitempty"` // 阿里标准景点库ID AliScenicId int64 `json:"ali_scenic_id,omitempty" xml:"ali_scenic_id,omitempty"` // 是否成功 Success bool `json:"success,omitempty" xml:"success,omitempty"` }
TicketScenicResult 结构体
func GetTicketScenicResult ¶ added in v1.3.4
func GetTicketScenicResult() *TicketScenicResult
GetTicketScenicResult() 从对象池中获取TicketScenicResult
type TicketSimpleSkuParam ¶
type TicketSimpleSkuParam struct { // 该票种下使用的价格规则 PriceRules []PriceRule `json:"price_rules,omitempty" xml:"price_rules>price_rule,omitempty"` // 门票 票种类型 TicketType string `json:"ticket_type,omitempty" xml:"ticket_type,omitempty"` // 门票场次(场次门票专用) TicketSeason string `json:"ticket_season,omitempty" xml:"ticket_season,omitempty"` // 门票区域(场次门票专用) TicketArea string `json:"ticket_area,omitempty" xml:"ticket_area,omitempty"` }
TicketSimpleSkuParam 结构体
func GetTicketSimpleSkuParam ¶ added in v1.3.4
func GetTicketSimpleSkuParam() *TicketSimpleSkuParam
GetTicketSimpleSkuParam() 从对象池中获取TicketSimpleSkuParam
type TopTicketItemFullinfoResult ¶
type TopTicketItemFullinfoResult struct { // 商品主图 PicUrls []string `json:"pic_urls,omitempty" xml:"pic_urls>string,omitempty"` // 门票商品下 各个票种的sku信息 TicketTypes []TicketSimpleSkuParam `json:"ticket_types,omitempty" xml:"ticket_types>ticket_simple_sku_param,omitempty"` // 商户系统中景点编码 OutScenicId string `json:"out_scenic_id,omitempty" xml:"out_scenic_id,omitempty"` // 阿里旅行收费项目名称 AliProductName string `json:"ali_product_name,omitempty" xml:"ali_product_name,omitempty"` // 商户自定义收费项目编码 OutProductId string `json:"out_product_id,omitempty" xml:"out_product_id,omitempty"` // 商户收费项目名称 OutProductName string `json:"out_product_name,omitempty" xml:"out_product_name,omitempty"` // 门票有效期:指定入园日期后 多少天内有效。当为数字时,表示多少天内有效;当为日期时,表示到某日期有效,日期格式:yyyy-MM-dd ExpireDate string `json:"expire_date,omitempty" xml:"expire_date,omitempty"` // 门票 预定时间限制规则。格式:1_18_00_3,含义:必须提前1天拍下,且在18点00分前支付成功,订单才生效。当为提前0天时(即当日票),最后一个数字才有用,指当日票需要在预定3小时后入园。 ReserveLimitRule string `json:"reserve_limit_rule,omitempty" xml:"reserve_limit_rule,omitempty"` // 商品标题 Title string `json:"title,omitempty" xml:"title,omitempty"` // 商品详情描述 Desc string `json:"desc,omitempty" xml:"desc,omitempty"` // 手机描述 WapDesc string `json:"wap_desc,omitempty" xml:"wap_desc,omitempty"` // 联票的场景,则该收费项目可能关联多个景点,以英文逗号分隔 AliScenicIds string `json:"ali_scenic_ids,omitempty" xml:"ali_scenic_ids,omitempty"` // 阿里旅行提供的景点编码 AliScenicId int64 `json:"ali_scenic_id,omitempty" xml:"ali_scenic_id,omitempty"` // 阿里旅行提供的收费项目编码 AliProductId int64 `json:"ali_product_id,omitempty" xml:"ali_product_id,omitempty"` // 门票商品 库存类型。1、每日库存, 2、区间总库存 InventoryType int64 `json:"inventory_type,omitempty" xml:"inventory_type,omitempty"` // 是否需要买家指定入园日期。1、需要,2-不需要 NeedEnterDate int64 `json:"need_enter_date,omitempty" xml:"need_enter_date,omitempty"` // 门票 预定时间限制。1、表示无限制 购买后可立即入园,2、有限制,此时预定时间限制规则必填。 ReserveLimitType int64 `json:"reserve_limit_type,omitempty" xml:"reserve_limit_type,omitempty"` // 门票商品发码方式 CodeSendingInfo *CodeSendingInfo `json:"code_sending_info,omitempty" xml:"code_sending_info,omitempty"` // 商品ID ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"` // 商品状态 0-下架,1-上架 ItemStatus int64 `json:"item_status,omitempty" xml:"item_status,omitempty"` }
TopTicketItemFullinfoResult 结构体
func GetTopTicketItemFullinfoResult ¶ added in v1.3.4
func GetTopTicketItemFullinfoResult() *TopTicketItemFullinfoResult
GetTopTicketItemFullinfoResult() 从对象池中获取TopTicketItemFullinfoResult
type TopTicketRuleResult ¶
type TopTicketRuleResult struct { // 规则名称 Name string `json:"name,omitempty" xml:"name,omitempty"` // 商家景点编码 OutScenicId string `json:"out_scenic_id,omitempty" xml:"out_scenic_id,omitempty"` // 商家规则编码 OutRuleId string `json:"out_rule_id,omitempty" xml:"out_rule_id,omitempty"` // 规则主键 Id int64 `json:"id,omitempty" xml:"id,omitempty"` // 阿里景点id AliScenicId int64 `json:"ali_scenic_id,omitempty" xml:"ali_scenic_id,omitempty"` }
TopTicketRuleResult 结构体
func GetTopTicketRuleResult ¶ added in v1.3.4
func GetTopTicketRuleResult() *TopTicketRuleResult
GetTopTicketRuleResult() 从对象池中获取TopTicketRuleResult
Source Files ¶
- AlitripTicketProductQueryAPIRequest.go
- AlitripTicketProductQueryAPIResponse.go
- AlitripTicketProductUploadAPIRequest.go
- AlitripTicketProductUploadAPIResponse.go
- AlitripTicketRuleQueryAPIRequest.go
- AlitripTicketRuleQueryAPIResponse.go
- AlitripTicketRuleUploadAPIRequest.go
- AlitripTicketRuleUploadAPIResponse.go
- AlitripTicketRuleUploadResultSet.go
- AlitripTicketScenicBindAPIRequest.go
- AlitripTicketScenicBindAPIResponse.go
- AlitripTicketScenicQueryAPIRequest.go
- AlitripTicketScenicQueryAPIResponse.go
- AlitripTicketSkusBatchUploadAPIRequest.go
- AlitripTicketSkusBatchUploadAPIResponse.go
- AlitripTicketSkusUploadAPIRequest.go
- AlitripTicketSkusUploadAPIResponse.go
- CodeSendingInfo.go
- DateInventory.go
- ItemEleCertInfo.go
- PriceRule.go
- Product.go
- Scenic.go
- ScenicAndProductResult.go
- TicketItemResult.go
- TicketPriceRule.go
- TicketRuleParam.go
- TicketScenicResult.go
- TicketSimpleSkuParam.go
- TopTicketItemFullinfoResult.go
- TopTicketRuleResult.go
- doc.go