hyundaiclient

package
v0.0.0-...-290f0c4 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package hyundaiclient provides primitives to interact with the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen/v2 version v2.0.0 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCreatePushNotificationsDeviceRequest

func NewCreatePushNotificationsDeviceRequest(server string, body CreatePushNotificationsDeviceJSONRequestBody) (*http.Request, error)

NewCreatePushNotificationsDeviceRequest calls the generic CreatePushNotificationsDevice builder with application/json body

func NewCreatePushNotificationsDeviceRequestWithBody

func NewCreatePushNotificationsDeviceRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreatePushNotificationsDeviceRequestWithBody generates requests for CreatePushNotificationsDevice with any type of body

func NewGetCurrentVehicleLocationRequest

func NewGetCurrentVehicleLocationRequest(server string, vehicleId string) (*http.Request, error)

NewGetCurrentVehicleLocationRequest generates requests for GetCurrentVehicleLocation

func NewGetCurrentVehicleStatusRequest

func NewGetCurrentVehicleStatusRequest(server string, vehicleId string) (*http.Request, error)

NewGetCurrentVehicleStatusRequest generates requests for GetCurrentVehicleStatus

func NewGetLastVehicleStatusRequest

func NewGetLastVehicleStatusRequest(server string, vehicleId string) (*http.Request, error)

NewGetLastVehicleStatusRequest generates requests for GetLastVehicleStatus

func NewListVehiclesRequest

func NewListVehiclesRequest(server string) (*http.Request, error)

NewListVehiclesRequest generates requests for ListVehicles

func NewQueryVehicleDrivingHistoryRequest

func NewQueryVehicleDrivingHistoryRequest(server string, vehicleId string, body QueryVehicleDrivingHistoryJSONRequestBody) (*http.Request, error)

NewQueryVehicleDrivingHistoryRequest calls the generic QueryVehicleDrivingHistory builder with application/json body

func NewQueryVehicleDrivingHistoryRequestWithBody

func NewQueryVehicleDrivingHistoryRequestWithBody(server string, vehicleId string, contentType string, body io.Reader) (*http.Request, error)

NewQueryVehicleDrivingHistoryRequestWithBody generates requests for QueryVehicleDrivingHistory with any type of body

func NewQueryVehicleTripInfoRequest

func NewQueryVehicleTripInfoRequest(server string, vehicleId string, body QueryVehicleTripInfoJSONRequestBody) (*http.Request, error)

NewQueryVehicleTripInfoRequest calls the generic QueryVehicleTripInfo builder with application/json body

func NewQueryVehicleTripInfoRequestWithBody

func NewQueryVehicleTripInfoRequestWithBody(server string, vehicleId string, contentType string, body io.Reader) (*http.Request, error)

NewQueryVehicleTripInfoRequestWithBody generates requests for QueryVehicleTripInfo with any type of body

Types

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) CreatePushNotificationsDevice

func (c *Client) CreatePushNotificationsDevice(ctx context.Context, body CreatePushNotificationsDeviceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreatePushNotificationsDeviceWithBody

func (c *Client) CreatePushNotificationsDeviceWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetCurrentVehicleLocation

func (c *Client) GetCurrentVehicleLocation(ctx context.Context, vehicleId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetCurrentVehicleStatus

func (c *Client) GetCurrentVehicleStatus(ctx context.Context, vehicleId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetLastVehicleStatus

func (c *Client) GetLastVehicleStatus(ctx context.Context, vehicleId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListVehicles

func (c *Client) ListVehicles(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) QueryVehicleDrivingHistory

func (c *Client) QueryVehicleDrivingHistory(ctx context.Context, vehicleId string, body QueryVehicleDrivingHistoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) QueryVehicleDrivingHistoryWithBody

func (c *Client) QueryVehicleDrivingHistoryWithBody(ctx context.Context, vehicleId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) QueryVehicleTripInfo

func (c *Client) QueryVehicleTripInfo(ctx context.Context, vehicleId string, body QueryVehicleTripInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) QueryVehicleTripInfoWithBody

func (c *Client) QueryVehicleTripInfoWithBody(ctx context.Context, vehicleId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// CreatePushNotificationsDeviceWithBody request with any body
	CreatePushNotificationsDeviceWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreatePushNotificationsDevice(ctx context.Context, body CreatePushNotificationsDeviceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListVehicles request
	ListVehicles(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// QueryVehicleDrivingHistoryWithBody request with any body
	QueryVehicleDrivingHistoryWithBody(ctx context.Context, vehicleId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	QueryVehicleDrivingHistory(ctx context.Context, vehicleId string, body QueryVehicleDrivingHistoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetCurrentVehicleLocation request
	GetCurrentVehicleLocation(ctx context.Context, vehicleId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetCurrentVehicleStatus request
	GetCurrentVehicleStatus(ctx context.Context, vehicleId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetLastVehicleStatus request
	GetLastVehicleStatus(ctx context.Context, vehicleId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// QueryVehicleTripInfoWithBody request with any body
	QueryVehicleTripInfoWithBody(ctx context.Context, vehicleId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	QueryVehicleTripInfo(ctx context.Context, vehicleId string, body QueryVehicleTripInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) CreatePushNotificationsDeviceWithBodyWithResponse

func (c *ClientWithResponses) CreatePushNotificationsDeviceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePushNotificationsDeviceResponse, error)

CreatePushNotificationsDeviceWithBodyWithResponse request with arbitrary body returning *CreatePushNotificationsDeviceResponse

func (*ClientWithResponses) CreatePushNotificationsDeviceWithResponse

func (c *ClientWithResponses) CreatePushNotificationsDeviceWithResponse(ctx context.Context, body CreatePushNotificationsDeviceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePushNotificationsDeviceResponse, error)

func (*ClientWithResponses) GetCurrentVehicleLocationWithResponse

func (c *ClientWithResponses) GetCurrentVehicleLocationWithResponse(ctx context.Context, vehicleId string, reqEditors ...RequestEditorFn) (*GetCurrentVehicleLocationResponse, error)

GetCurrentVehicleLocationWithResponse request returning *GetCurrentVehicleLocationResponse

func (*ClientWithResponses) GetCurrentVehicleStatusWithResponse

func (c *ClientWithResponses) GetCurrentVehicleStatusWithResponse(ctx context.Context, vehicleId string, reqEditors ...RequestEditorFn) (*GetCurrentVehicleStatusResponse, error)

GetCurrentVehicleStatusWithResponse request returning *GetCurrentVehicleStatusResponse

func (*ClientWithResponses) GetLastVehicleStatusWithResponse

func (c *ClientWithResponses) GetLastVehicleStatusWithResponse(ctx context.Context, vehicleId string, reqEditors ...RequestEditorFn) (*GetLastVehicleStatusResponse, error)

GetLastVehicleStatusWithResponse request returning *GetLastVehicleStatusResponse

func (*ClientWithResponses) ListVehiclesWithResponse

func (c *ClientWithResponses) ListVehiclesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListVehiclesResponse, error)

ListVehiclesWithResponse request returning *ListVehiclesResponse

func (*ClientWithResponses) QueryVehicleDrivingHistoryWithBodyWithResponse

func (c *ClientWithResponses) QueryVehicleDrivingHistoryWithBodyWithResponse(ctx context.Context, vehicleId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryVehicleDrivingHistoryResponse, error)

QueryVehicleDrivingHistoryWithBodyWithResponse request with arbitrary body returning *QueryVehicleDrivingHistoryResponse

func (*ClientWithResponses) QueryVehicleDrivingHistoryWithResponse

func (c *ClientWithResponses) QueryVehicleDrivingHistoryWithResponse(ctx context.Context, vehicleId string, body QueryVehicleDrivingHistoryJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryVehicleDrivingHistoryResponse, error)

func (*ClientWithResponses) QueryVehicleTripInfoWithBodyWithResponse

func (c *ClientWithResponses) QueryVehicleTripInfoWithBodyWithResponse(ctx context.Context, vehicleId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryVehicleTripInfoResponse, error)

QueryVehicleTripInfoWithBodyWithResponse request with arbitrary body returning *QueryVehicleTripInfoResponse

func (*ClientWithResponses) QueryVehicleTripInfoWithResponse

func (c *ClientWithResponses) QueryVehicleTripInfoWithResponse(ctx context.Context, vehicleId string, body QueryVehicleTripInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryVehicleTripInfoResponse, error)

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// CreatePushNotificationsDeviceWithBodyWithResponse request with any body
	CreatePushNotificationsDeviceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePushNotificationsDeviceResponse, error)

	CreatePushNotificationsDeviceWithResponse(ctx context.Context, body CreatePushNotificationsDeviceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePushNotificationsDeviceResponse, error)

	// ListVehiclesWithResponse request
	ListVehiclesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListVehiclesResponse, error)

	// QueryVehicleDrivingHistoryWithBodyWithResponse request with any body
	QueryVehicleDrivingHistoryWithBodyWithResponse(ctx context.Context, vehicleId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryVehicleDrivingHistoryResponse, error)

	QueryVehicleDrivingHistoryWithResponse(ctx context.Context, vehicleId string, body QueryVehicleDrivingHistoryJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryVehicleDrivingHistoryResponse, error)

	// GetCurrentVehicleLocationWithResponse request
	GetCurrentVehicleLocationWithResponse(ctx context.Context, vehicleId string, reqEditors ...RequestEditorFn) (*GetCurrentVehicleLocationResponse, error)

	// GetCurrentVehicleStatusWithResponse request
	GetCurrentVehicleStatusWithResponse(ctx context.Context, vehicleId string, reqEditors ...RequestEditorFn) (*GetCurrentVehicleStatusResponse, error)

	// GetLastVehicleStatusWithResponse request
	GetLastVehicleStatusWithResponse(ctx context.Context, vehicleId string, reqEditors ...RequestEditorFn) (*GetLastVehicleStatusResponse, error)

	// QueryVehicleTripInfoWithBodyWithResponse request with any body
	QueryVehicleTripInfoWithBodyWithResponse(ctx context.Context, vehicleId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryVehicleTripInfoResponse, error)

	QueryVehicleTripInfoWithResponse(ctx context.Context, vehicleId string, body QueryVehicleTripInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryVehicleTripInfoResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type CreatePushNotificationsDeviceJSONBody

type CreatePushNotificationsDeviceJSONBody struct {
	PushRegId string `json:"pushRegId"`

	// PushType Which type of push notifications (GCN or APNS)
	PushType string `json:"pushType"`
	Uuid     string `json:"uuid"`
}

CreatePushNotificationsDeviceJSONBody defines parameters for CreatePushNotificationsDevice.

type CreatePushNotificationsDeviceJSONRequestBody

type CreatePushNotificationsDeviceJSONRequestBody CreatePushNotificationsDeviceJSONBody

CreatePushNotificationsDeviceJSONRequestBody defines body for CreatePushNotificationsDevice for application/json ContentType.

type CreatePushNotificationsDeviceResponse

type CreatePushNotificationsDeviceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *PushNotificationsDeviceResponse
	JSONDefault  *ErrorResponse
}

func ParseCreatePushNotificationsDeviceResponse

func ParseCreatePushNotificationsDeviceResponse(rsp *http.Response) (*CreatePushNotificationsDeviceResponse, error)

ParseCreatePushNotificationsDeviceResponse parses an HTTP response from a CreatePushNotificationsDeviceWithResponse call

func (CreatePushNotificationsDeviceResponse) Status

Status returns HTTPResponse.Status

func (CreatePushNotificationsDeviceResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type CurrentVehicleLocationResponse

type CurrentVehicleLocationResponse struct {
	MsgId   string                 `json:"msgId"`
	ResCode string                 `json:"resCode"`
	ResMsg  map[string]interface{} `json:"resMsg"`
	RetCode string                 `json:"retCode"`
}

CurrentVehicleLocationResponse defines model for CurrentVehicleLocationResponse.

type CurrentVehicleStatusResponse

type CurrentVehicleStatusResponse struct {
	MsgId   string        `json:"msgId"`
	ResCode string        `json:"resCode"`
	ResMsg  VehicleStatus `json:"resMsg"`
	RetCode string        `json:"retCode"`
}

CurrentVehicleStatusResponse defines model for CurrentVehicleStatusResponse.

type ErrorResponse

type ErrorResponse struct {
	MsgId   string `json:"msgId"`
	ResCode string `json:"resCode"`
	ResMsg  string `json:"resMsg"`
	RetCode string `json:"retCode"`
}

ErrorResponse defines model for ErrorResponse.

type GetCurrentVehicleLocationResponse

type GetCurrentVehicleLocationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CurrentVehicleLocationResponse
	JSONDefault  *ErrorResponse
}

func ParseGetCurrentVehicleLocationResponse

func ParseGetCurrentVehicleLocationResponse(rsp *http.Response) (*GetCurrentVehicleLocationResponse, error)

ParseGetCurrentVehicleLocationResponse parses an HTTP response from a GetCurrentVehicleLocationWithResponse call

func (GetCurrentVehicleLocationResponse) Status

Status returns HTTPResponse.Status

func (GetCurrentVehicleLocationResponse) StatusCode

func (r GetCurrentVehicleLocationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetCurrentVehicleStatusResponse

type GetCurrentVehicleStatusResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CurrentVehicleStatusResponse
	JSONDefault  *ErrorResponse
}

func ParseGetCurrentVehicleStatusResponse

func ParseGetCurrentVehicleStatusResponse(rsp *http.Response) (*GetCurrentVehicleStatusResponse, error)

ParseGetCurrentVehicleStatusResponse parses an HTTP response from a GetCurrentVehicleStatusWithResponse call

func (GetCurrentVehicleStatusResponse) Status

Status returns HTTPResponse.Status

func (GetCurrentVehicleStatusResponse) StatusCode

func (r GetCurrentVehicleStatusResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetLastVehicleStatusResponse

type GetLastVehicleStatusResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *LastVehicleStatusResponse
	JSONDefault  *ErrorResponse
}

func ParseGetLastVehicleStatusResponse

func ParseGetLastVehicleStatusResponse(rsp *http.Response) (*GetLastVehicleStatusResponse, error)

ParseGetLastVehicleStatusResponse parses an HTTP response from a GetLastVehicleStatusWithResponse call

func (GetLastVehicleStatusResponse) Status

Status returns HTTPResponse.Status

func (GetLastVehicleStatusResponse) StatusCode

func (r GetLastVehicleStatusResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type LastVehicleStatusResponse

type LastVehicleStatusResponse struct {
	MsgId   string `json:"msgId"`
	ResCode string `json:"resCode"`
	ResMsg  struct {
		VehicleStatusInfo struct {
			Odometer struct {
				// Unit The distance unit associated with the value. 1 == miles.
				Unit int `json:"unit"`

				// Value The distance value.
				Value float32 `json:"value"`
			} `json:"odometer"`

			// VehicleLocation A GPS location capture. This could be the current state or the last known state.
			VehicleLocation VehicleLocationGps `json:"vehicleLocation"`
			VehicleStatus   VehicleStatus      `json:"vehicleStatus"`
		} `json:"vehicleStatusInfo"`
	} `json:"resMsg"`
	RetCode string `json:"retCode"`
}

LastVehicleStatusResponse defines model for LastVehicleStatusResponse.

type ListVehiclesResponse

type ListVehiclesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *VehiclesListResponse
	JSONDefault  *ErrorResponse
}

func ParseListVehiclesResponse

func ParseListVehiclesResponse(rsp *http.Response) (*ListVehiclesResponse, error)

ParseListVehiclesResponse parses an HTTP response from a ListVehiclesWithResponse call

func (ListVehiclesResponse) Status

func (r ListVehiclesResponse) Status() string

Status returns HTTPResponse.Status

func (ListVehiclesResponse) StatusCode

func (r ListVehiclesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PushNotificationsDeviceResponse

type PushNotificationsDeviceResponse struct {
	MsgId   string `json:"msgId"`
	ResCode string `json:"resCode"`
	ResMsg  struct {
		// DeviceId The generated device id to use in future requests.
		DeviceId openapi_types.UUID `json:"deviceId"`
	} `json:"resMsg"`
	RetCode string `json:"retCode"`
}

PushNotificationsDeviceResponse defines model for PushNotificationsDeviceResponse.

type QueryVehicleDrivingHistoryJSONBody

type QueryVehicleDrivingHistoryJSONBody struct {
	// PeriodTarget Which period to query, 0 == 30 days, 1 == all time
	PeriodTarget int `json:"periodTarget"`
}

QueryVehicleDrivingHistoryJSONBody defines parameters for QueryVehicleDrivingHistory.

type QueryVehicleDrivingHistoryJSONRequestBody

type QueryVehicleDrivingHistoryJSONRequestBody QueryVehicleDrivingHistoryJSONBody

QueryVehicleDrivingHistoryJSONRequestBody defines body for QueryVehicleDrivingHistory for application/json ContentType.

type QueryVehicleDrivingHistoryResponse

type QueryVehicleDrivingHistoryResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *VehicleDrivingHistoryResponse
	JSONDefault  *ErrorResponse
}

func ParseQueryVehicleDrivingHistoryResponse

func ParseQueryVehicleDrivingHistoryResponse(rsp *http.Response) (*QueryVehicleDrivingHistoryResponse, error)

ParseQueryVehicleDrivingHistoryResponse parses an HTTP response from a QueryVehicleDrivingHistoryWithResponse call

func (QueryVehicleDrivingHistoryResponse) Status

Status returns HTTPResponse.Status

func (QueryVehicleDrivingHistoryResponse) StatusCode

func (r QueryVehicleDrivingHistoryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type QueryVehicleTripInfoJSONBody

type QueryVehicleTripInfoJSONBody struct {
	SetTripDay   *string `json:"setTripDay,omitempty"`
	SetTripMonth *string `json:"setTripMonth,omitempty"`

	// TripPeriodType Which period to query, 0 == monthly, 1 == daily
	TripPeriodType int `json:"tripPeriodType"`
}

QueryVehicleTripInfoJSONBody defines parameters for QueryVehicleTripInfo.

type QueryVehicleTripInfoJSONRequestBody

type QueryVehicleTripInfoJSONRequestBody QueryVehicleTripInfoJSONBody

QueryVehicleTripInfoJSONRequestBody defines body for QueryVehicleTripInfo for application/json ContentType.

type QueryVehicleTripInfoResponse

type QueryVehicleTripInfoResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *VehicleTripInfoResponse
	JSONDefault  *ErrorResponse
}

func ParseQueryVehicleTripInfoResponse

func ParseQueryVehicleTripInfoResponse(rsp *http.Response) (*QueryVehicleTripInfoResponse, error)

ParseQueryVehicleTripInfoResponse parses an HTTP response from a QueryVehicleTripInfoWithResponse call

func (QueryVehicleTripInfoResponse) Status

Status returns HTTPResponse.Status

func (QueryVehicleTripInfoResponse) StatusCode

func (r QueryVehicleTripInfoResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type VehicleDrivingHistoryResponse

type VehicleDrivingHistoryResponse struct {
	MsgId   string                 `json:"msgId"`
	ResCode string                 `json:"resCode"`
	ResMsg  map[string]interface{} `json:"resMsg"`
	RetCode string                 `json:"retCode"`
}

VehicleDrivingHistoryResponse defines model for VehicleDrivingHistoryResponse.

type VehicleLocationGps

type VehicleLocationGps struct {
	Accuracy struct {
		Hdop int `json:"hdop"`
		Pdop int `json:"pdop"`
	} `json:"accuracy"`
	Coord struct {
		// Alt Unconfirmed. Altitude in meters if known.
		Alt *int `json:"alt,omitempty"`

		// Lat GPS Latitude in degrees
		Lat float32 `json:"lat"`

		// Lon GPS Longitude in degrees
		Lon float32 `json:"lon"`

		// Type Unknown.
		Type *int `json:"type,omitempty"`
	} `json:"coord"`

	// Head Compass heading in degrees.
	Head  *int `json:"head,omitempty"`
	Speed *struct {
		// Unit The distance unit per hour. 1 == miles.
		Unit int `json:"unit"`

		// Value The speed value.
		Value int `json:"value"`
	} `json:"speed,omitempty"`

	// Time Timestamp of the location capture.
	Time string `json:"time"`
}

VehicleLocationGps A GPS location capture. This could be the current state or the last known state.

type VehicleStatus

type VehicleStatus = map[string]interface{}

VehicleStatus defines model for VehicleStatus.

type VehicleTripInfoResponse

type VehicleTripInfoResponse struct {
	MsgId   string                 `json:"msgId"`
	ResCode string                 `json:"resCode"`
	ResMsg  map[string]interface{} `json:"resMsg"`
	RetCode string                 `json:"retCode"`
}

VehicleTripInfoResponse defines model for VehicleTripInfoResponse.

type VehiclesListResponse

type VehiclesListResponse struct {
	MsgId   string `json:"msgId"`
	ResCode string `json:"resCode"`
	ResMsg  struct {
		// Vehicles The list of vehicles accessible on this account.
		Vehicles []VehiclesListResponseVehicle `json:"vehicles"`
	} `json:"resMsg"`
	RetCode string `json:"retCode"`
}

VehiclesListResponse defines model for VehiclesListResponse.

type VehiclesListResponseVehicle

type VehiclesListResponseVehicle struct {
	// CarShare Unconfirmed, presumably indicates whether this vehicle is shared with other accounts.
	CarShare *int `json:"carShare,omitempty"`

	// CcuCCS2ProtocolSupport Unknown.
	CcuCCS2ProtocolSupport *int `json:"ccuCCS2ProtocolSupport,omitempty"`
	DetailInfo             *struct {
		// BodyType Unknown.
		BodyType *string `json:"bodyType,omitempty"`

		// InColor Interior color code of the vehicle.
		InColor *string `json:"inColor,omitempty"`

		// OutColor Exterior color code of the vehicle.
		OutColor *string `json:"outColor,omitempty"`

		// SaleCarmdlCd Unknown.
		SaleCarmdlCd *string `json:"saleCarmdlCd,omitempty"`

		// SaleCarmdlEnNm Unconfirmed. A model name.
		SaleCarmdlEnNm *string `json:"saleCarmdlEnNm,omitempty"`
	} `json:"detailInfo,omitempty"`

	// Master Unconfirmed, presumably indicates whether this account is the 'master' account.
	Master *bool `json:"master,omitempty"`

	// Nickname A nickname assigned to the vehicle in the account.
	Nickname string `json:"nickname"`

	// ProtocolType Unknown.
	ProtocolType *int `json:"protocolType,omitempty"`

	// RegDate Date the vehicle was registered with Hyundai/Bluelink.
	RegDate *string `json:"regDate,omitempty"`

	// TmuNum Unknown.
	TmuNum *string `json:"tmuNum,omitempty"`

	// Type The vehicle type. EV, GN, PHEV, HV.
	Type string `json:"type"`

	// VehicleId The UUID of the vehicle.
	VehicleId openapi_types.UUID `json:"vehicleId"`

	// VehicleName The model of the vehicle.
	VehicleName string `json:"vehicleName"`

	// Vin The VIN number of the vehicle.
	Vin string `json:"vin"`

	// Year The model year of the vehicle.
	Year string `json:"year"`
}

VehiclesListResponseVehicle defines model for VehiclesListResponseVehicle.

Jump to

Keyboard shortcuts

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