jipiao

package
v0.0.0-...-f648943 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2014 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

auto sdk from taobao ApiMetadata.xml version 20140725 auther: dz7changkong@qq.com

Index

Constants

View Source
const VersionNo = "20140725"

Variables

This section is empty.

Functions

This section is empty.

Types

type AtOrder

type AtOrder struct {
	BaseInfo     *BaseInfo  `json:"base_info"`
	CorpInfo     *CorpInfo  `json:"corp_info"`
	Extra        string     `json:"extra"`
	Itinerary    *Itinerary `json:"itinerary"`
	SegmentInfos struct {
		SegmentInfo []*SegmentInfo `json:"segment_info"`
	} `json:"segment_infos"`
}

国内机票订单数据结构【top订单优化】

type BaseInfo

type BaseInfo struct {
	AccountNo          string `json:"account_no"`
	AlipayTradeNo      string `json:"alipay_trade_no"`
	BookWay            int    `json:"book_way"`
	Commission         string `json:"commission"`
	CommissionDiscount string `json:"commission_discount"`
	CreateTime         string `json:"create_time"`
	Extra              string `json:"extra"`
	ForceInsure        bool   `json:"force_insure"`
	InsurePromotion    bool   `json:"insure_promotion"`
	ModifyTime         string `json:"modify_time"`
	OrderId            int    `json:"order_id"`
	PayLatestTime      string `json:"pay_latest_time"`
	PayStatus          int    `json:"pay_status"`
	RelationEmail      string `json:"relation_email"`
	RelationMobile     string `json:"relation_mobile"`
	RelationName       string `json:"relation_name"`
	RelationPhoneBak   string `json:"relation_phone_bak"`
	RelativeOrderId    int    `json:"relative_order_id"`
	Status             int    `json:"status"`
	TotalPrice         int    `json:"total_price"`
	TripType           int    `json:"trip_type"`
}

国内机票,订单基本信息数据结构【top订单优化】

type CorpInfo

type CorpInfo struct {
	ApplyName      string `json:"apply_name"`
	ApplyNo        string `json:"apply_no"`
	ApplyTime      string `json:"apply_time"`
	CorprationId   string `json:"corpration_id"`
	CostCenter     string `json:"cost_center"`
	CostCenterCode string `json:"cost_center_code"`
	CostOu         string `json:"cost_ou"`
	Extra          string `json:"extra"`
	FormNo         string `json:"form_no"`
	FormStatus     string `json:"form_status"`
	ReceiptsStatus string `json:"receipts_status"`
	TripPersonName string `json:"trip_person_name"`
	TripPersonNo   string `json:"trip_person_no"`
	WorkSpace      string `json:"work_space"`
}

国内机票订单行程购票数据结构录入【top订单优化】

type Itinerary

type Itinerary struct {
	Address       string `json:"address"`
	AlipayTradeNo string `json:"alipay_trade_no"`
	CompanyCode   string `json:"company_code"`
	ExpressCode   string `json:"express_code"`
	Extra         string `json:"extra"`
	Id            int    `json:"id"`
	ItineraryNo   string `json:"itinerary_no"`
	Mobile        string `json:"mobile"`
	MobileBak     string `json:"mobile_bak"`
	Name          string `json:"name"`
	Price         string `json:"price"`
	SendDate      string `json:"send_date"`
	Status        int    `json:"status"`
	Type          int    `json:"type"`
}

国内机票行程单数据结构定义【top订单优化】

type JipiaoAgentOrderDetailRequest

type JipiaoAgentOrderDetailRequest struct {
	open_taobao.TaobaoMethodRequest
}

根据淘宝系统订单号获取订单详情信息

func (*JipiaoAgentOrderDetailRequest) GetResponse

func (*JipiaoAgentOrderDetailRequest) SetOrderIds

func (r *JipiaoAgentOrderDetailRequest) SetOrderIds(value string)

淘宝订单id列表,当前支持列表长度为1,即当前只支持单个订单详情查询

type JipiaoAgentOrderDetailResponse

type JipiaoAgentOrderDetailResponse struct {
	ErrorMessage string `json:"error_message"`
	IsSuccess    bool   `json:"is_success"`
	Orders       struct {
		TripOrder []*TripOrder `json:"trip_order"`
	} `json:"orders"`
}

type JipiaoAgentOrderDetailResponseResult

type JipiaoAgentOrderDetailResponseResult struct {
	Response *JipiaoAgentOrderDetailResponse `json:"jipiao_agent_order_detail_response"`
}

type JipiaoAgentOrderProductSnapshotRequest

type JipiaoAgentOrderProductSnapshotRequest struct {
	open_taobao.TaobaoMethodRequest
}

获取订单对应的产品快照信息

func (*JipiaoAgentOrderProductSnapshotRequest) GetResponse

func (*JipiaoAgentOrderProductSnapshotRequest) SetOrderId

func (r *JipiaoAgentOrderProductSnapshotRequest) SetOrderId(value string)

订单号

type JipiaoAgentOrderProductSnapshotResponse

type JipiaoAgentOrderProductSnapshotResponse struct {
	Data         string `json:"data"`
	ErrorMessage string `json:"error_message"`
	IsSuccess    bool   `json:"is_success"`
}

type JipiaoAgentOrderProductSnapshotResponseResult

type JipiaoAgentOrderProductSnapshotResponseResult struct {
	Response *JipiaoAgentOrderProductSnapshotResponse `json:"jipiao_agent_order_product_snapshot_response"`
}

type JipiaoAgentOrderSearchRequest

type JipiaoAgentOrderSearchRequest struct {
	open_taobao.TaobaoMethodRequest
}

卖家根据条件查询淘宝订单id列表

func (*JipiaoAgentOrderSearchRequest) GetResponse

func (*JipiaoAgentOrderSearchRequest) SetBeginTime

func (r *JipiaoAgentOrderSearchRequest) SetBeginTime(value string)

创建订单时间范围的开始时间,注意:当前搜索条件开始结束时间范围不能超过三天,默认开始时间为当前时间往前推三天 (具体天数可能调整)

func (*JipiaoAgentOrderSearchRequest) SetEndTime

func (r *JipiaoAgentOrderSearchRequest) SetEndTime(value string)

创建订单时间范围的结束时间,注意:当前搜索条件开始结束时间范围不能超过三天,默认为当前时间 (具体天数可能调整)

func (*JipiaoAgentOrderSearchRequest) SetHasItinerary

func (r *JipiaoAgentOrderSearchRequest) SetHasItinerary(value string)

是否需要行程单,true表示需要行程单;false表示不许要

func (*JipiaoAgentOrderSearchRequest) SetPage

func (r *JipiaoAgentOrderSearchRequest) SetPage(value string)

页码,默认第一页;注意:页大小固定,搜索结果中返回页大小pageSize,和是否包含下一页hasNext

func (*JipiaoAgentOrderSearchRequest) SetStatus

func (r *JipiaoAgentOrderSearchRequest) SetStatus(value string)
订单状态,默认为空,查询所有状态的订单

1:待确认 2:待出票 3:强制成功 4:未付款 5:预订成功 6:已失效

func (*JipiaoAgentOrderSearchRequest) SetTripType

func (r *JipiaoAgentOrderSearchRequest) SetTripType(value string)

航程类型: 0.单程;1.往返

type JipiaoAgentOrderSearchResponse

type JipiaoAgentOrderSearchResponse struct {
	ErrorMessage string             `json:"error_message"`
	IsSuccess    bool               `json:"is_success"`
	SearchResult *SearchOrderResult `json:"search_result"`
}

type JipiaoAgentOrderSearchResponseResult

type JipiaoAgentOrderSearchResponseResult struct {
	Response *JipiaoAgentOrderSearchResponse `json:"jipiao_agent_order_search_response"`
}

type JipiaoAgentOrderTicketRequest

type JipiaoAgentOrderTicketRequest struct {
	open_taobao.TaobaoMethodRequest
}

淘宝机票代理商回填票号/成功订单

func (*JipiaoAgentOrderTicketRequest) GetResponse

func (*JipiaoAgentOrderTicketRequest) SetOrderId

func (r *JipiaoAgentOrderTicketRequest) SetOrderId(value string)

淘宝系统订单id

func (*JipiaoAgentOrderTicketRequest) SetSuccessInfo

func (r *JipiaoAgentOrderTicketRequest) SetSuccessInfo(value string)
成功订单参数:列表元素结构为——

1.航班号(注:是订单里的航班号,非实际承运航班号); 2.旧乘机人姓名; 3.新乘机人姓名; 4.票号 (乘机人、航段对应的票号) 说明: 1.往返订单,2段航班对应1个票号的,需要2条success_info记录,分别对应去程、回程; 2.有时用户输入的乘机人姓名输入错误或者有生僻字,代理商必须输入新的名字以保证验真通过;即旧乘机人姓名和新乘机人姓名不需要变化时可以相同

type JipiaoAgentOrderTicketResponse

type JipiaoAgentOrderTicketResponse struct {
	ErrorMessage    string `json:"error_message"`
	IsOrderSuccess  bool   `json:"is_order_success"`
	IsSuccess       bool   `json:"is_success"`
	IsTicketSuccess bool   `json:"is_ticket_success"`
}

type JipiaoAgentOrderTicketResponseResult

type JipiaoAgentOrderTicketResponseResult struct {
	Response *JipiaoAgentOrderTicketResponse `json:"jipiao_agent_order_ticket_response"`
}

type JipiaoPoliciesstatusUpdateRequest

type JipiaoPoliciesstatusUpdateRequest struct {
	open_taobao.TaobaoMethodRequest
}

根据条件大批量更新产品,目前只支持删除,每十分钟只允许调用一次,更新记录数不能超过10W个

func (*JipiaoPoliciesstatusUpdateRequest) GetResponse

func (*JipiaoPoliciesstatusUpdateRequest) SetAirline

func (r *JipiaoPoliciesstatusUpdateRequest) SetAirline(value string)

航空公司二字码<br /> 支持最大长度为:5<br /> 支持的最大列表长度为:5

func (*JipiaoPoliciesstatusUpdateRequest) SetArrAirport

func (r *JipiaoPoliciesstatusUpdateRequest) SetArrAirport(value string)

到达机场三字码,此项必需与出发机场同时为空或不为空<br /> 支持最大长度为:3<br /> 支持的最大列表长度为:3

func (*JipiaoPoliciesstatusUpdateRequest) SetDepAirport

func (r *JipiaoPoliciesstatusUpdateRequest) SetDepAirport(value string)

出发机场三字码,此项必需与到达机场同时为空或不为空<br /> 支持最大长度为:3<br /> 支持的最大列表长度为:3

func (*JipiaoPoliciesstatusUpdateRequest) SetOutProductIds

func (r *JipiaoPoliciesstatusUpdateRequest) SetOutProductIds(value string)

外部产品id集,最多支持1000个,后续调大,其中的out_product_id含有空格将不会处理

func (*JipiaoPoliciesstatusUpdateRequest) SetPolicyIds

func (r *JipiaoPoliciesstatusUpdateRequest) SetPolicyIds(value string)

产品id集,最多支持1000个,后续调大,其中单个的policy_id含有留空格或不是数字将会忽略不处理

func (*JipiaoPoliciesstatusUpdateRequest) SetPublishDate

func (r *JipiaoPoliciesstatusUpdateRequest) SetPublishDate(value string)

发布日期

func (*JipiaoPoliciesstatusUpdateRequest) SetSource

func (r *JipiaoPoliciesstatusUpdateRequest) SetSource(value string)

发布来源, 通过接口taobao.jipiao.policy.process添加的政策会自动加上source为TOP,代理商后台页面录入的source为PC,excel上传的source为UPLOAD,通过接口taobao.jipiao.policies.fulladd,taobao.jipiao.policies.add的自定义source也可以<br /> 支持最大长度为:20<br /> 支持的最大列表长度为:20

func (*JipiaoPoliciesstatusUpdateRequest) SetType

func (r *JipiaoPoliciesstatusUpdateRequest) SetType(value string)

0:按policy_ids更新;1:按out_product_ids更新;2:按其它条件更新

type JipiaoPoliciesstatusUpdateResponse

type JipiaoPoliciesstatusUpdateResponse struct {
	InvokeId  string `json:"invoke_id"`
	IsSuccess bool   `json:"is_success"`
}

type JipiaoPoliciesstatusUpdateResponseResult

type JipiaoPoliciesstatusUpdateResponseResult struct {
	Response *JipiaoPoliciesstatusUpdateResponse `json:"jipiao_policiesstatus_update_response"`
}

type Passerger

type Passerger struct {
	Birthday             string `json:"birthday"`
	CertNo               string `json:"cert_no"`
	CertType             int    `json:"cert_type"`
	Ei                   string `json:"ei"`
	Extra                string `json:"extra"`
	ForceInsurePrice     int    `json:"force_insure_price"`
	InsurePromotionPrice int    `json:"insure_promotion_price"`
	Name                 string `json:"name"`
	PassengerType        int    `json:"passenger_type"`
	Pnr                  string `json:"pnr"`
	TicketNo             string `json:"ticket_no"`
	TripCardNo           string `json:"trip_card_no"`
	Tuigaiqian           string `json:"tuigaiqian"`
}

国内机票乘机人信息数据结构【top订单优化】

type SearchOrderResult

type SearchOrderResult struct {
	HasNext  bool  `json:"has_next"`
	OrderIds []int `json:"order_ids"`
	PageSize int   `json:"page_size"`
}

代理商订单搜索接口返回数据对象【订单优化】

type SegmentInfo

type SegmentInfo struct {
	AirlineCode               string `json:"airline_code"`
	ArrAirportCode            string `json:"arr_airport_code"`
	ArrCityCode               string `json:"arr_city_code"`
	ArrTime                   string `json:"arr_time"`
	BookStatus                int    `json:"book_status"`
	CabinClass                int    `json:"cabin_class"`
	CabinCode                 string `json:"cabin_code"`
	CabinId                   int    `json:"cabin_id"`
	Carrier                   string `json:"carrier"`
	ChildFee                  int    `json:"child_fee"`
	ChildInsurePromotionPrice int    `json:"child_insure_promotion_price"`
	ChildPrice                int    `json:"child_price"`
	ChildTax                  int    `json:"child_tax"`
	DepAirportCode            string `json:"dep_airport_code"`
	DepCityCode               string `json:"dep_city_code"`
	DepTime                   string `json:"dep_time"`
	Extra                     string `json:"extra"`
	Fee                       int    `json:"fee"`
	FlightId                  int    `json:"flight_id"`
	FlightNo                  string `json:"flight_no"`
	FlightType                string `json:"flight_type"`
	InsurePromotionPrice      int    `json:"insure_promotion_price"`
	Memo                      string `json:"memo"`
	Passengers                struct {
		Passerger []*Passerger `json:"passerger"`
	} `json:"passengers"`
	PolicyId    int    `json:"policy_id"`
	PolicyType  int    `json:"policy_type"`
	Price       int    `json:"price"`
	SegmentType int    `json:"segment_type"`
	SpecialRule string `json:"special_rule"`
	Tax         int    `json:"tax"`
	TicketPrice int    `json:"ticket_price"`
}

国内机票航段信息数据结构,【订单优化】

type TripBaseInfo

type TripBaseInfo struct {
	AlipayTradeNo    string `json:"alipay_trade_no"`
	Commission       string `json:"commission"`
	CreateTime       string `json:"create_time"`
	Extra            string `json:"extra"`
	ForceInsure      bool   `json:"force_insure"`
	InsurePromotion  bool   `json:"insure_promotion"`
	ModifyTime       string `json:"modify_time"`
	OrderId          int    `json:"order_id"`
	PayLatestTime    string `json:"pay_latest_time"`
	PayStatus        int    `json:"pay_status"`
	RelationEmail    string `json:"relation_email"`
	RelationMobile   string `json:"relation_mobile"`
	RelationName     string `json:"relation_name"`
	RelationPhoneBak string `json:"relation_phone_bak"`
	Status           int    `json:"status"`
	TotalPrice       int    `json:"total_price"`
	TripType         int    `json:"trip_type"`
}

订单基础信息

type TripFlightInfo

type TripFlightInfo struct {
	AirlineCode    string `json:"airline_code"`
	ArrAirportCode string `json:"arr_airport_code"`
	ArrCityCode    string `json:"arr_city_code"`
	ArrTime        string `json:"arr_time"`
	Carrier        string `json:"carrier"`
	DepAirportCode string `json:"dep_airport_code"`
	DepCityCode    string `json:"dep_city_code"`
	DepTime        string `json:"dep_time"`
	Extra          string `json:"extra"`
	FlightId       int    `json:"flight_id"`
	FlightNo       string `json:"flight_no"`
	FlightType     string `json:"flight_type"`
	Passengers     struct {
		TripFlightPassenger []*TripFlightPassenger `json:"trip_flight_passenger"`
	} `json:"passengers"`
	SegmentNumber int    `json:"segment_number"`
	SegmentType   int    `json:"segment_type"`
	SpecialRule   string `json:"special_rule"`
	TicketPrice   int    `json:"ticket_price"`
}

订单航班信息(包含航班乘机人)

type TripFlightPassenger

type TripFlightPassenger struct {
	Birthday             string `json:"birthday"`
	CabinClass           int    `json:"cabin_class"`
	CabinCode            string `json:"cabin_code"`
	CertNo               string `json:"cert_no"`
	CertType             int    `json:"cert_type"`
	Ei                   string `json:"ei"`
	Extra                string `json:"extra"`
	Fee                  int    `json:"fee"`
	ForceInsurePrice     int    `json:"force_insure_price"`
	InsurePromotionPrice int    `json:"insure_promotion_price"`
	Memo                 string `json:"memo"`
	Name                 string `json:"name"`
	PassengerType        int    `json:"passenger_type"`
	Pnr                  string `json:"pnr"`
	PolicyId             int    `json:"policy_id"`
	PolicyType           int    `json:"policy_type"`
	Price                int    `json:"price"`
	Tax                  int    `json:"tax"`
	TicketNo             string `json:"ticket_no"`
	TripCardNo           string `json:"trip_card_no"`
	Tuigaiqian           string `json:"tuigaiqian"`
}

乘机人信息

type TripJipiaoAgentItinerarySendRequest

type TripJipiaoAgentItinerarySendRequest struct {
	open_taobao.TaobaoMethodRequest
}

国内机票代理商行程单信息回填

func (*TripJipiaoAgentItinerarySendRequest) GetResponse

func (*TripJipiaoAgentItinerarySendRequest) SetCompanyCode

func (r *TripJipiaoAgentItinerarySendRequest) SetCompanyCode(value string)

物流公司代码CODE,如不清楚,请找运营提供<br /> 支持最大长度为:20<br /> 支持的最大列表长度为:20

func (*TripJipiaoAgentItinerarySendRequest) SetExpressCode

func (r *TripJipiaoAgentItinerarySendRequest) SetExpressCode(value string)

邮寄单号,长度不能超过32字节<br /> 支持最大长度为:32<br /> 支持的最大列表长度为:32

func (*TripJipiaoAgentItinerarySendRequest) SetItineraryId

func (r *TripJipiaoAgentItinerarySendRequest) SetItineraryId(value string)

淘宝系统行程单唯一键

func (*TripJipiaoAgentItinerarySendRequest) SetItineraryNo

func (r *TripJipiaoAgentItinerarySendRequest) SetItineraryNo(value string)

行程单号<br /> 支持最大长度为:32<br /> 支持的最大列表长度为:32

func (*TripJipiaoAgentItinerarySendRequest) SetSendDate

func (r *TripJipiaoAgentItinerarySendRequest) SetSendDate(value string)

邮寄日期,格式yyyy-mm-dd

type TripJipiaoAgentItinerarySendResponse

type TripJipiaoAgentItinerarySendResponse struct {
	IsSuccess bool `json:"is_success"`
}

type TripJipiaoAgentItinerarySendResponseResult

type TripJipiaoAgentItinerarySendResponseResult struct {
	Response *TripJipiaoAgentItinerarySendResponse `json:"trip_jipiao_agent_itinerary_send_response"`
}

type TripJipiaoAgentOrderConfirmRequest

type TripJipiaoAgentOrderConfirmRequest struct {
	open_taobao.TaobaoMethodRequest
}

国内机票代理商确认订单接口

func (*TripJipiaoAgentOrderConfirmRequest) GetResponse

func (*TripJipiaoAgentOrderConfirmRequest) SetOrderId

func (r *TripJipiaoAgentOrderConfirmRequest) SetOrderId(value string)

国内机票订单id

func (*TripJipiaoAgentOrderConfirmRequest) SetPnrInfo

func (r *TripJipiaoAgentOrderConfirmRequest) SetPnrInfo(value string)

hk(占座)时需要的信息列表,元素结构:乘机人姓名;pnr (以分号进行分隔)

type TripJipiaoAgentOrderConfirmResponse

type TripJipiaoAgentOrderConfirmResponse struct {
	IsSuccess bool `json:"is_success"`
}

type TripJipiaoAgentOrderConfirmResponseResult

type TripJipiaoAgentOrderConfirmResponseResult struct {
	Response *TripJipiaoAgentOrderConfirmResponse `json:"trip_jipiao_agent_order_confirm_response"`
}

type TripJipiaoAgentOrderFailRequest

type TripJipiaoAgentOrderFailRequest struct {
	open_taobao.TaobaoMethodRequest
}

国内机票代理商失败订单接口

func (*TripJipiaoAgentOrderFailRequest) GetResponse

func (*TripJipiaoAgentOrderFailRequest) SetFailMemo

func (r *TripJipiaoAgentOrderFailRequest) SetFailMemo(value string)

失败类型为0,说明备注原因<br /> 支持最大长度为:200<br /> 支持的最大列表长度为:200

func (*TripJipiaoAgentOrderFailRequest) SetFailType

func (r *TripJipiaoAgentOrderFailRequest) SetFailType(value string)

失败原因:1.客户要求失败订单;2.此舱位已售完(经济舱或特舱);3.剩余座位少于用户购买数量;4.特价管理里录入的特价票已经售完;5.假舱(请及时通过旺旺或者电话反馈给淘宝工作人员);0.其它(请在备注中说明原因)

func (*TripJipiaoAgentOrderFailRequest) SetOrderId

func (r *TripJipiaoAgentOrderFailRequest) SetOrderId(value string)

国内机票订单id

type TripJipiaoAgentOrderFailResponse

type TripJipiaoAgentOrderFailResponse struct {
	IsSuccess bool `json:"is_success"`
}

type TripJipiaoAgentOrderFailResponseResult

type TripJipiaoAgentOrderFailResponseResult struct {
	Response *TripJipiaoAgentOrderFailResponse `json:"trip_jipiao_agent_order_fail_response"`
}

type TripJipiaoAgentOrderFindRequest

type TripJipiaoAgentOrderFindRequest struct {
	open_taobao.TaobaoMethodRequest
}

根据淘宝机票政策id搜索订单

func (*TripJipiaoAgentOrderFindRequest) GetResponse

func (*TripJipiaoAgentOrderFindRequest) SetBeginTime

func (r *TripJipiaoAgentOrderFindRequest) SetBeginTime(value string)

创建订单时间范围的开始时间,注意:当前搜索条件开始结束时间范围不能超过三天,默认开始时间为当前时间往前推三天 (具体天数可能调整)

func (*TripJipiaoAgentOrderFindRequest) SetEndTime

func (r *TripJipiaoAgentOrderFindRequest) SetEndTime(value string)

创建订单时间范围的结束时间,注意:当前搜索条件开始结束时间范围不能超过三天,默认为当前时间 (具体天数可能调整)

func (*TripJipiaoAgentOrderFindRequest) SetPage

func (r *TripJipiaoAgentOrderFindRequest) SetPage(value string)

页码,默认第一页;注意:页大小固定,搜索结果中返回页大小pageSize,和是否包含下一页hasNext

func (*TripJipiaoAgentOrderFindRequest) SetPolicyId

func (r *TripJipiaoAgentOrderFindRequest) SetPolicyId(value string)

淘宝机票政策id

type TripJipiaoAgentOrderFindResponse

type TripJipiaoAgentOrderFindResponse struct {
	SearchResult *SearchOrderResult `json:"search_result"`
}

type TripJipiaoAgentOrderFindResponseResult

type TripJipiaoAgentOrderFindResponseResult struct {
	Response *TripJipiaoAgentOrderFindResponse `json:"trip_jipiao_agent_order_find_response"`
}

type TripJipiaoAgentOrderGetRequest

type TripJipiaoAgentOrderGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

根据淘宝系统订单号获取订单详情信息

func (*TripJipiaoAgentOrderGetRequest) GetResponse

func (*TripJipiaoAgentOrderGetRequest) SetOrderIds

func (r *TripJipiaoAgentOrderGetRequest) SetOrderIds(value string)

淘宝政策id列表,当前支持列表长度为1,即当前只支持单个订单详情查询

type TripJipiaoAgentOrderGetResponse

type TripJipiaoAgentOrderGetResponse struct {
	Orders struct {
		AtOrder []*AtOrder `json:"at_order"`
	} `json:"orders"`
}

type TripJipiaoAgentOrderGetResponseResult

type TripJipiaoAgentOrderGetResponseResult struct {
	Response *TripJipiaoAgentOrderGetResponse `json:"trip_jipiao_agent_order_get_response"`
}

type TripJipiaoAgentOrderHkRequest

type TripJipiaoAgentOrderHkRequest struct {
	open_taobao.TaobaoMethodRequest
}

国内机票代理商手工hk订单(未付款前,手工填写pnr)

func (*TripJipiaoAgentOrderHkRequest) GetResponse

func (*TripJipiaoAgentOrderHkRequest) SetOrderId

func (r *TripJipiaoAgentOrderHkRequest) SetOrderId(value string)

国内机票订单id

func (*TripJipiaoAgentOrderHkRequest) SetPnrInfo

func (r *TripJipiaoAgentOrderHkRequest) SetPnrInfo(value string)

hk(占座)时需要的信息信息列表,元素结构:乘机人姓名;pnr (以分号进行分隔).

type TripJipiaoAgentOrderHkResponse

type TripJipiaoAgentOrderHkResponse struct {
	IsSuccess bool `json:"is_success"`
}

type TripJipiaoAgentOrderHkResponseResult

type TripJipiaoAgentOrderHkResponseResult struct {
	Response *TripJipiaoAgentOrderHkResponse `json:"trip_jipiao_agent_order_hk_response"`
}

type TripJipiaoAgentOrderSearchRequest

type TripJipiaoAgentOrderSearchRequest struct {
	open_taobao.TaobaoMethodRequest
}

根据条件查询淘宝订单id列表

func (*TripJipiaoAgentOrderSearchRequest) GetResponse

func (*TripJipiaoAgentOrderSearchRequest) SetBeginTime

func (r *TripJipiaoAgentOrderSearchRequest) SetBeginTime(value string)

创建订单时间范围的开始时间,注意:当前搜索条件开始结束时间范围不能超过三天,默认开始时间为当前时间往前推三天 (具体天数可能调整)

func (*TripJipiaoAgentOrderSearchRequest) SetEndTime

func (r *TripJipiaoAgentOrderSearchRequest) SetEndTime(value string)

创建订单时间范围的结束时间,注意:当前搜索条件开始结束时间范围不能超过三天,默认为当前时间 (具体天数可能调整)

func (*TripJipiaoAgentOrderSearchRequest) SetHasItinerary

func (r *TripJipiaoAgentOrderSearchRequest) SetHasItinerary(value string)

是否需要行程单,true表示需要行程单;false表示不许要 (必须设置,且不能为null)

func (*TripJipiaoAgentOrderSearchRequest) SetPage

func (r *TripJipiaoAgentOrderSearchRequest) SetPage(value string)

页码,默认第一页;注意:页大小固定,搜索结果中返回页大小pageSize,和是否包含下一页hasNext

func (*TripJipiaoAgentOrderSearchRequest) SetStatus

func (r *TripJipiaoAgentOrderSearchRequest) SetStatus(value string)

订单状态,默认为空,查询所有状态的订单

func (*TripJipiaoAgentOrderSearchRequest) SetTripType

func (r *TripJipiaoAgentOrderSearchRequest) SetTripType(value string)

航程类型: 0.单程和普通往返;2.多程(暂时没有使用);3.特价往返

type TripJipiaoAgentOrderSearchResponse

type TripJipiaoAgentOrderSearchResponse struct {
	SearchResult *SearchOrderResult `json:"search_result"`
}

type TripJipiaoAgentOrderSearchResponseResult

type TripJipiaoAgentOrderSearchResponseResult struct {
	Response *TripJipiaoAgentOrderSearchResponse `json:"trip_jipiao_agent_order_search_response"`
}

type TripJipiaoAgentOrderSuccessRequest

type TripJipiaoAgentOrderSuccessRequest struct {
	open_taobao.TaobaoMethodRequest
}

淘宝机票代理商成功/解冻订单

func (*TripJipiaoAgentOrderSuccessRequest) GetResponse

func (*TripJipiaoAgentOrderSuccessRequest) SetOrderId

func (r *TripJipiaoAgentOrderSuccessRequest) SetOrderId(value string)

淘宝系统订单id

func (*TripJipiaoAgentOrderSuccessRequest) SetSuccessInfo

func (r *TripJipiaoAgentOrderSuccessRequest) SetSuccessInfo(value string)

成功订单参数:列表元素结构为——旧乘机人姓名;新乘机人姓名;pnr;票号 (以分号进行分隔)。说明:有时用户输入的乘机人姓名输入错误或者有生僻字,代理商必须输入新的名字以保证验真通过;即旧乘机人姓名和新乘机人姓名不需要变化时可以相同

type TripJipiaoAgentOrderSuccessResponse

type TripJipiaoAgentOrderSuccessResponse struct {
	IsSuccess bool `json:"is_success"`
}

type TripJipiaoAgentOrderSuccessResponseResult

type TripJipiaoAgentOrderSuccessResponseResult struct {
	Response *TripJipiaoAgentOrderSuccessResponse `json:"trip_jipiao_agent_order_success_response"`
}

type TripOrder

type TripOrder struct {
	BaseInfo    *TripBaseInfo `json:"base_info"`
	CorpInfo    *CorpInfo     `json:"corp_info"`
	Extra       string        `json:"extra"`
	FlightInfos struct {
		TripFlightInfo []*TripFlightInfo `json:"trip_flight_info"`
	} `json:"flight_infos"`
	Itinerary *Itinerary `json:"itinerary"`
}

机票订单的详情

Jump to

Keyboard shortcuts

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