rail

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlitripRailIrCarrierGetAPIResponse

type AlitripRailIrCarrierGetAPIResponse struct {
	model.CommonResponse
	AlitripRailIrCarrierGetResponse
}

国际火车票铁路承运公司查询 APIResponse alitrip.rail.ir.carrier.get

国际火车票提供给代理商用于查询标准铁路承运公司carrier信息,用于代理商自己的carrier与飞猪平台的carrier做映射

type AlitripRailIrCarrierGetRequest

type AlitripRailIrCarrierGetRequest struct {
	model.Params
	// contains filtered or unexported fields
}

国际火车票铁路承运公司查询 APIRequest alitrip.rail.ir.carrier.get

国际火车票提供给代理商用于查询标准铁路承运公司carrier信息,用于代理商自己的carrier与飞猪平台的carrier做映射

func NewAlitripRailIrCarrierGetRequest

func NewAlitripRailIrCarrierGetRequest() *AlitripRailIrCarrierGetRequest

func (AlitripRailIrCarrierGetRequest) GetAgentId

func (r AlitripRailIrCarrierGetRequest) GetAgentId() int64

func (AlitripRailIrCarrierGetRequest) GetApiMethodName

func (r AlitripRailIrCarrierGetRequest) GetApiMethodName() string

func (AlitripRailIrCarrierGetRequest) GetApiParams

func (r AlitripRailIrCarrierGetRequest) GetApiParams() url.Values

func (*AlitripRailIrCarrierGetRequest) SetAgentId

func (r *AlitripRailIrCarrierGetRequest) SetAgentId(agentId int64) error

type AlitripRailIrCarrierGetResponse

type AlitripRailIrCarrierGetResponse struct {
	XMLName xml.Name `xml:"alitrip_rail_ir_carrier_get_response"`

	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 平台颁发的每次请求访问的唯一标识

	Result *RailCarrierRs `json:"result,omitempty" xml:"result,omitempty"`
}

type AlitripRailIrDivisionGetAPIResponse

type AlitripRailIrDivisionGetAPIResponse struct {
	model.CommonResponse
	AlitripRailIrDivisionGetResponse
}

国际火车票标准城市查询 APIResponse alitrip.rail.ir.division.get

国际火车票提供给代理商用于查询标准城市信息,全部城市数据量209530条,含除中国大陆以外的全部海外区域。 代理商通过分页查询的方式,拉取飞猪平台方全部境外标准城市,用于自身城市与飞猪平台城市的映射。

type AlitripRailIrDivisionGetRequest

type AlitripRailIrDivisionGetRequest struct {
	model.Params
	// contains filtered or unexported fields
}

国际火车票标准城市查询 APIRequest alitrip.rail.ir.division.get

国际火车票提供给代理商用于查询标准城市信息,全部城市数据量209530条,含除中国大陆以外的全部海外区域。 代理商通过分页查询的方式,拉取飞猪平台方全部境外标准城市,用于自身城市与飞猪平台城市的映射。

func NewAlitripRailIrDivisionGetRequest

func NewAlitripRailIrDivisionGetRequest() *AlitripRailIrDivisionGetRequest

func (AlitripRailIrDivisionGetRequest) GetAgentId

func (r AlitripRailIrDivisionGetRequest) GetAgentId() int64

func (AlitripRailIrDivisionGetRequest) GetApiMethodName

func (r AlitripRailIrDivisionGetRequest) GetApiMethodName() string

func (AlitripRailIrDivisionGetRequest) GetApiParams

func (r AlitripRailIrDivisionGetRequest) GetApiParams() url.Values

func (AlitripRailIrDivisionGetRequest) GetLevel

func (AlitripRailIrDivisionGetRequest) GetPageIndex

func (r AlitripRailIrDivisionGetRequest) GetPageIndex() int64

func (AlitripRailIrDivisionGetRequest) GetPageSize

func (r AlitripRailIrDivisionGetRequest) GetPageSize() int64

func (*AlitripRailIrDivisionGetRequest) SetAgentId

func (r *AlitripRailIrDivisionGetRequest) SetAgentId(agentId int64) error

func (*AlitripRailIrDivisionGetRequest) SetLevel

func (r *AlitripRailIrDivisionGetRequest) SetLevel(level int64) error

func (*AlitripRailIrDivisionGetRequest) SetPageIndex

func (r *AlitripRailIrDivisionGetRequest) SetPageIndex(pageIndex int64) error

func (*AlitripRailIrDivisionGetRequest) SetPageSize

func (r *AlitripRailIrDivisionGetRequest) SetPageSize(pageSize int64) error

type AlitripRailIrDivisionGetResponse

type AlitripRailIrDivisionGetResponse struct {
	XMLName xml.Name `xml:"alitrip_rail_ir_division_get_response"`

	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 平台颁发的每次请求访问的唯一标识

	Result *RailResultList `json:"result,omitempty" xml:"result,omitempty"`
}

type AlitripRailIrServiceGetAPIResponse

type AlitripRailIrServiceGetAPIResponse struct {
	model.CommonResponse
	AlitripRailIrServiceGetResponse
}

国际火车票仓位坐席查询 APIResponse alitrip.rail.ir.service.get

国际火车票标准仓位坐席查询

type AlitripRailIrServiceGetRequest

type AlitripRailIrServiceGetRequest struct {
	model.Params
	// contains filtered or unexported fields
}

国际火车票仓位坐席查询 APIRequest alitrip.rail.ir.service.get

国际火车票标准仓位坐席查询

func NewAlitripRailIrServiceGetRequest

func NewAlitripRailIrServiceGetRequest() *AlitripRailIrServiceGetRequest

func (AlitripRailIrServiceGetRequest) GetAgentId

func (r AlitripRailIrServiceGetRequest) GetAgentId() int64

func (AlitripRailIrServiceGetRequest) GetApiMethodName

func (r AlitripRailIrServiceGetRequest) GetApiMethodName() string

func (AlitripRailIrServiceGetRequest) GetApiParams

func (r AlitripRailIrServiceGetRequest) GetApiParams() url.Values

func (AlitripRailIrServiceGetRequest) GetBizType

func (r AlitripRailIrServiceGetRequest) GetBizType() int64

func (*AlitripRailIrServiceGetRequest) SetAgentId

func (r *AlitripRailIrServiceGetRequest) SetAgentId(agentId int64) error

func (*AlitripRailIrServiceGetRequest) SetBizType

func (r *AlitripRailIrServiceGetRequest) SetBizType(bizType int64) error

type AlitripRailIrServiceGetResponse

type AlitripRailIrServiceGetResponse struct {
	XMLName xml.Name `xml:"alitrip_rail_ir_service_get_response"`

	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 平台颁发的每次请求访问的唯一标识

	Result *AlitripRailIrServiceGetResult `json:"result,omitempty" xml:"result,omitempty"`
}

type AlitripRailIrServiceGetResult

type AlitripRailIrServiceGetResult struct {
	Success bool `json:"success,omitempty" xml:"success,omitempty"`

	ErrCode string `json:"err_code,omitempty" xml:"err_code,omitempty"`

	ErrMsg string `json:"err_msg,omitempty" xml:"err_msg,omitempty"`

	Modules []Modules `json:"modules,omitempty" xml:"modules,omitempty"`
}

AlitripRailIrServiceGetResult

type AlitripRailIrStationGetAPIResponse

type AlitripRailIrStationGetAPIResponse struct {
	model.CommonResponse
	AlitripRailIrStationGetResponse
}

国际火车票标准车站查询 APIResponse alitrip.rail.ir.station.get

国际火车票提供给代理商用于查询标准车站信息,用于代理商对自己的车站与飞猪平台的车站做映射

type AlitripRailIrStationGetRequest

type AlitripRailIrStationGetRequest struct {
	model.Params
	// contains filtered or unexported fields
}

国际火车票标准车站查询 APIRequest alitrip.rail.ir.station.get

国际火车票提供给代理商用于查询标准车站信息,用于代理商对自己的车站与飞猪平台的车站做映射

func NewAlitripRailIrStationGetRequest

func NewAlitripRailIrStationGetRequest() *AlitripRailIrStationGetRequest

func (AlitripRailIrStationGetRequest) GetAgentId

func (r AlitripRailIrStationGetRequest) GetAgentId() int64

func (AlitripRailIrStationGetRequest) GetApiMethodName

func (r AlitripRailIrStationGetRequest) GetApiMethodName() string

func (AlitripRailIrStationGetRequest) GetApiParams

func (r AlitripRailIrStationGetRequest) GetApiParams() url.Values

func (AlitripRailIrStationGetRequest) GetPageIndex

func (r AlitripRailIrStationGetRequest) GetPageIndex() int64

func (AlitripRailIrStationGetRequest) GetPageSize

func (r AlitripRailIrStationGetRequest) GetPageSize() int64

func (*AlitripRailIrStationGetRequest) SetAgentId

func (r *AlitripRailIrStationGetRequest) SetAgentId(agentId int64) error

func (*AlitripRailIrStationGetRequest) SetPageIndex

func (r *AlitripRailIrStationGetRequest) SetPageIndex(pageIndex int64) error

func (*AlitripRailIrStationGetRequest) SetPageSize

func (r *AlitripRailIrStationGetRequest) SetPageSize(pageSize int64) error

type AlitripRailIrStationGetResponse

type AlitripRailIrStationGetResponse struct {
	XMLName xml.Name `xml:"alitrip_rail_ir_station_get_response"`

	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 平台颁发的每次请求访问的唯一标识

	Result *RailResultList `json:"result,omitempty" xml:"result,omitempty"`
}

type AlitripRailTradeCloseticketAPIResponse

type AlitripRailTradeCloseticketAPIResponse struct {
	model.CommonResponse
	AlitripRailTradeCloseticketResponse
}

出票失败关单接口 APIResponse alitrip.rail.trade.closeticket

出票成功回调接口

type AlitripRailTradeCloseticketRequest

type AlitripRailTradeCloseticketRequest struct {
	model.Params
	// contains filtered or unexported fields
}

出票失败关单接口 APIRequest alitrip.rail.trade.closeticket

出票成功回调接口

func NewAlitripRailTradeCloseticketRequest

func NewAlitripRailTradeCloseticketRequest() *AlitripRailTradeCloseticketRequest

func (AlitripRailTradeCloseticketRequest) GetAgentId

func (AlitripRailTradeCloseticketRequest) GetApiMethodName

func (r AlitripRailTradeCloseticketRequest) GetApiMethodName() string

func (AlitripRailTradeCloseticketRequest) GetApiParams

func (AlitripRailTradeCloseticketRequest) GetErrorCode

func (r AlitripRailTradeCloseticketRequest) GetErrorCode() string

func (AlitripRailTradeCloseticketRequest) GetErrorMsg

func (AlitripRailTradeCloseticketRequest) GetTpOrderId

func (r AlitripRailTradeCloseticketRequest) GetTpOrderId() int64

func (*AlitripRailTradeCloseticketRequest) SetAgentId

func (r *AlitripRailTradeCloseticketRequest) SetAgentId(agentId int64) error

func (*AlitripRailTradeCloseticketRequest) SetErrorCode

func (r *AlitripRailTradeCloseticketRequest) SetErrorCode(errorCode string) error

func (*AlitripRailTradeCloseticketRequest) SetErrorMsg

func (r *AlitripRailTradeCloseticketRequest) SetErrorMsg(errorMsg string) error

func (*AlitripRailTradeCloseticketRequest) SetTpOrderId

func (r *AlitripRailTradeCloseticketRequest) SetTpOrderId(tpOrderId int64) error

type AlitripRailTradeCloseticketResponse

type AlitripRailTradeCloseticketResponse struct {
	XMLName xml.Name `xml:"alitrip_rail_trade_closeticket_response"`

	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 平台颁发的每次请求访问的唯一标识

	Result *AlitripRailTradeCloseticketResultSet `json:"result,omitempty" xml:"result,omitempty"`
}

type AlitripRailTradeCloseticketResultSet

type AlitripRailTradeCloseticketResultSet struct {
	Module bool `json:"module,omitempty" xml:"module,omitempty"`

	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`

	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
}

AlitripRailTradeCloseticketResultSet

type AlitripRailTradeIssueticketAPIResponse

type AlitripRailTradeIssueticketAPIResponse struct {
	model.CommonResponse
	AlitripRailTradeIssueticketResponse
}

德铁出票成功接口 APIResponse alitrip.rail.trade.issueticket

出票成功回调接口

type AlitripRailTradeIssueticketRequest

type AlitripRailTradeIssueticketRequest struct {
	model.Params
	// contains filtered or unexported fields
}

德铁出票成功接口 APIRequest alitrip.rail.trade.issueticket

出票成功回调接口

func NewAlitripRailTradeIssueticketRequest

func NewAlitripRailTradeIssueticketRequest() *AlitripRailTradeIssueticketRequest

func (AlitripRailTradeIssueticketRequest) GetAgentId

func (AlitripRailTradeIssueticketRequest) GetAgentOrderId

func (r AlitripRailTradeIssueticketRequest) GetAgentOrderId() string

func (AlitripRailTradeIssueticketRequest) GetApiMethodName

func (r AlitripRailTradeIssueticketRequest) GetApiMethodName() string

func (AlitripRailTradeIssueticketRequest) GetApiParams

func (AlitripRailTradeIssueticketRequest) GetTicketNo

func (AlitripRailTradeIssueticketRequest) GetTpOrderId

func (r AlitripRailTradeIssueticketRequest) GetTpOrderId() int64

func (*AlitripRailTradeIssueticketRequest) SetAgentId

func (r *AlitripRailTradeIssueticketRequest) SetAgentId(agentId int64) error

func (*AlitripRailTradeIssueticketRequest) SetAgentOrderId

func (r *AlitripRailTradeIssueticketRequest) SetAgentOrderId(agentOrderId string) error

func (*AlitripRailTradeIssueticketRequest) SetTicketNo

func (r *AlitripRailTradeIssueticketRequest) SetTicketNo(ticketNo string) error

func (*AlitripRailTradeIssueticketRequest) SetTpOrderId

func (r *AlitripRailTradeIssueticketRequest) SetTpOrderId(tpOrderId int64) error

type AlitripRailTradeIssueticketResponse

type AlitripRailTradeIssueticketResponse struct {
	XMLName xml.Name `xml:"alitrip_rail_trade_issueticket_response"`

	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 平台颁发的每次请求访问的唯一标识

	Result *AlitripRailTradeIssueticketResultSet `json:"result,omitempty" xml:"result,omitempty"`
}

type AlitripRailTradeIssueticketResultSet

type AlitripRailTradeIssueticketResultSet struct {
	Module bool `json:"module,omitempty" xml:"module,omitempty"`

	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`

	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
}

AlitripRailTradeIssueticketResultSet

type Modules

type Modules struct {
	BizType int64 `json:"biz_type,omitempty" xml:"biz_type,omitempty"`

	SeatCode string `json:"seat_code,omitempty" xml:"seat_code,omitempty"`

	SeatName string `json:"seat_name,omitempty" xml:"seat_name,omitempty"`

	SeatDetail string `json:"seat_detail,omitempty" xml:"seat_detail,omitempty"`

	SeatImage string `json:"seat_image,omitempty" xml:"seat_image,omitempty"`
}

Modules

type RailCarrierRS

type RailCarrierRS struct {
	Code string `json:"code,omitempty" xml:"code,omitempty"`


	CnName string `json:"cn_name,omitempty" xml:"cn_name,omitempty"`

	EnName string `json:"en_name,omitempty" xml:"en_name,omitempty"`

	RailWayCode string `json:"rail_way_code,omitempty" xml:"rail_way_code,omitempty"`
}

RailCarrierRS

type RailDivisionRS

type RailDivisionRS struct {
	ProvName string `json:"prov_name,omitempty" xml:"prov_name,omitempty"`

	ProvNameEn string `json:"prov_name_en,omitempty" xml:"prov_name_en,omitempty"`

	ProvId int64 `json:"prov_id,omitempty" xml:"prov_id,omitempty"`

	CountryNameEn string `json:"country_name_en,omitempty" xml:"country_name_en,omitempty"`

	CountryName string `json:"country_name,omitempty" xml:"country_name,omitempty"`

	CountryId int64 `json:"country_id,omitempty" xml:"country_id,omitempty"`

	ContinentNameEn string `json:"continent_name_en,omitempty" xml:"continent_name_en,omitempty"`

	ContinentName string `json:"continent_name,omitempty" xml:"continent_name,omitempty"`

	ContinentId int64 `json:"continent_id,omitempty" xml:"continent_id,omitempty"`

	CityCode3 string `json:"city_code3,omitempty" xml:"city_code3,omitempty"`

	CapitalFlag int64 `json:"capital_flag,omitempty" xml:"capital_flag,omitempty"`

	Abroad int64 `json:"abroad,omitempty" xml:"abroad,omitempty"`

	Py string `json:"py,omitempty" xml:"py,omitempty"`

	Pinyin string `json:"pinyin,omitempty" xml:"pinyin,omitempty"`

	Timezoneid string `json:"timezoneid,omitempty" xml:"timezoneid,omitempty"`

	CountryCode2 string `json:"country_code2,omitempty" xml:"country_code2,omitempty"`

	Latitude string `json:"latitude,omitempty" xml:"latitude,omitempty"`

	Longitude string `json:"longitude,omitempty" xml:"longitude,omitempty"`

	ParentId int64 `json:"parent_id,omitempty" xml:"parent_id,omitempty"`

	Level int64 `json:"level,omitempty" xml:"level,omitempty"`

	NameEn string `json:"name_en,omitempty" xml:"name_en,omitempty"`

	NameAbbr string `json:"name_abbr,omitempty" xml:"name_abbr,omitempty"`

	Name string `json:"name,omitempty" xml:"name,omitempty"`

	DistrictNameEn string `json:"district_name_en,omitempty" xml:"district_name_en,omitempty"`

	DistrictName string `json:"district_name,omitempty" xml:"district_name,omitempty"`

	DistrictId int64 `json:"district_id,omitempty" xml:"district_id,omitempty"`

	CityNameEn string `json:"city_name_en,omitempty" xml:"city_name_en,omitempty"`

	CityName string `json:"city_name,omitempty" xml:"city_name,omitempty"`

	CityId int64 `json:"city_id,omitempty" xml:"city_id,omitempty"`

	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
}

RailDivisionRS

type RailResultList

type RailResultList struct {
	Success string `json:"success,omitempty" xml:"success,omitempty"`

	ErrMsg string `json:"err_msg,omitempty" xml:"err_msg,omitempty"`

	ErrCode string `json:"err_code,omitempty" xml:"err_code,omitempty"`

	ModuleList []RailDivisionRS `json:"module_list,omitempty" xml:"module_list,omitempty"`
}

RailResultList

type RailStationRS

type RailStationRS struct {
	Image string `json:"image,omitempty" xml:"image,omitempty"`

	Detail string `json:"detail,omitempty" xml:"detail,omitempty"`

	Address string `json:"address,omitempty" xml:"address,omitempty"`

	Latitude string `json:"latitude,omitempty" xml:"latitude,omitempty"`

	Longitude string `json:"longitude,omitempty" xml:"longitude,omitempty"`

	CnName string `json:"cn_name,omitempty" xml:"cn_name,omitempty"`

	EnName string `json:"en_name,omitempty" xml:"en_name,omitempty"`

	DivisionName string `json:"division_name,omitempty" xml:"division_name,omitempty"`

	DivisionId int64 `json:"division_id,omitempty" xml:"division_id,omitempty"`

	Name string `json:"name,omitempty" xml:"name,omitempty"`

	Code string `json:"code,omitempty" xml:"code,omitempty"`
}

RailStationRS

Jump to

Keyboard shortcuts

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