api

package
v0.0.0-...-53f8b62 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Code generated by ogen, DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithServerURL

func WithServerURL(ctx context.Context, u *url.URL) context.Context

WithServerURL sets context key to override server URL.

Types

type AppGetNearbyChairsOK

type AppGetNearbyChairsOK struct {
	Chairs []AppGetNearbyChairsOKChairsItem `json:"chairs"`
	// 取得日時.
	RetrievedAt int64 `json:"retrieved_at"`
}

func (*AppGetNearbyChairsOK) Decode

func (s *AppGetNearbyChairsOK) Decode(d *jx.Decoder) error

Decode decodes AppGetNearbyChairsOK from json.

func (*AppGetNearbyChairsOK) Encode

func (s *AppGetNearbyChairsOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AppGetNearbyChairsOK) GetChairs

GetChairs returns the value of Chairs.

func (*AppGetNearbyChairsOK) GetRetrievedAt

func (s *AppGetNearbyChairsOK) GetRetrievedAt() int64

GetRetrievedAt returns the value of RetrievedAt.

func (*AppGetNearbyChairsOK) MarshalJSON

func (s *AppGetNearbyChairsOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AppGetNearbyChairsOK) SetChairs

SetChairs sets the value of Chairs.

func (*AppGetNearbyChairsOK) SetRetrievedAt

func (s *AppGetNearbyChairsOK) SetRetrievedAt(val int64)

SetRetrievedAt sets the value of RetrievedAt.

func (*AppGetNearbyChairsOK) UnmarshalJSON

func (s *AppGetNearbyChairsOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*AppGetNearbyChairsOK) Validate

func (s *AppGetNearbyChairsOK) Validate() error

type AppGetNearbyChairsOKChairsItem

type AppGetNearbyChairsOKChairsItem struct {
	// 椅子ID.
	ID string `json:"id"`
	// 椅子の名前.
	Name string `json:"name"`
	// 椅子のモデル.
	Model             string     `json:"model"`
	CurrentCoordinate Coordinate `json:"current_coordinate"`
}

func (*AppGetNearbyChairsOKChairsItem) Decode

Decode decodes AppGetNearbyChairsOKChairsItem from json.

func (*AppGetNearbyChairsOKChairsItem) Encode

Encode implements json.Marshaler.

func (*AppGetNearbyChairsOKChairsItem) GetCurrentCoordinate

func (s *AppGetNearbyChairsOKChairsItem) GetCurrentCoordinate() Coordinate

GetCurrentCoordinate returns the value of CurrentCoordinate.

func (*AppGetNearbyChairsOKChairsItem) GetID

GetID returns the value of ID.

func (*AppGetNearbyChairsOKChairsItem) GetModel

func (s *AppGetNearbyChairsOKChairsItem) GetModel() string

GetModel returns the value of Model.

func (*AppGetNearbyChairsOKChairsItem) GetName

GetName returns the value of Name.

func (*AppGetNearbyChairsOKChairsItem) MarshalJSON

func (s *AppGetNearbyChairsOKChairsItem) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AppGetNearbyChairsOKChairsItem) SetCurrentCoordinate

func (s *AppGetNearbyChairsOKChairsItem) SetCurrentCoordinate(val Coordinate)

SetCurrentCoordinate sets the value of CurrentCoordinate.

func (*AppGetNearbyChairsOKChairsItem) SetID

func (s *AppGetNearbyChairsOKChairsItem) SetID(val string)

SetID sets the value of ID.

func (*AppGetNearbyChairsOKChairsItem) SetModel

func (s *AppGetNearbyChairsOKChairsItem) SetModel(val string)

SetModel sets the value of Model.

func (*AppGetNearbyChairsOKChairsItem) SetName

func (s *AppGetNearbyChairsOKChairsItem) SetName(val string)

SetName sets the value of Name.

func (*AppGetNearbyChairsOKChairsItem) UnmarshalJSON

func (s *AppGetNearbyChairsOKChairsItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type AppGetNearbyChairsParams

type AppGetNearbyChairsParams struct {
	// 緯度.
	Latitude int
	// 経度.
	Longitude int
	// 検索距離.
	Distance OptInt
}

AppGetNearbyChairsParams is parameters of app-get-nearby-chairs operation.

type AppGetNotificationOK

type AppGetNotificationOK struct {
	Data OptUserNotificationData `json:"data"`
	// 次回の通知ポーリングまでの待機時間(ミリ秒単位).
	RetryAfterMs OptInt `json:"retry_after_ms"`
}

自分のライドが1つでも存在する場合は最新のものをdataで返す。過去にライドが1つも存在しない場合、dataはnullまたはundefined.

func (*AppGetNotificationOK) Decode

func (s *AppGetNotificationOK) Decode(d *jx.Decoder) error

Decode decodes AppGetNotificationOK from json.

func (*AppGetNotificationOK) Encode

func (s *AppGetNotificationOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AppGetNotificationOK) GetData

GetData returns the value of Data.

func (*AppGetNotificationOK) GetRetryAfterMs

func (s *AppGetNotificationOK) GetRetryAfterMs() OptInt

GetRetryAfterMs returns the value of RetryAfterMs.

func (*AppGetNotificationOK) MarshalJSON

func (s *AppGetNotificationOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AppGetNotificationOK) SetData

SetData sets the value of Data.

func (*AppGetNotificationOK) SetRetryAfterMs

func (s *AppGetNotificationOK) SetRetryAfterMs(val OptInt)

SetRetryAfterMs sets the value of RetryAfterMs.

func (*AppGetNotificationOK) UnmarshalJSON

func (s *AppGetNotificationOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*AppGetNotificationOK) Validate

func (s *AppGetNotificationOK) Validate() error

type AppGetRidesOK

type AppGetRidesOK struct {
	Rides []AppGetRidesOKRidesItem `json:"rides"`
}

func (*AppGetRidesOK) Decode

func (s *AppGetRidesOK) Decode(d *jx.Decoder) error

Decode decodes AppGetRidesOK from json.

func (*AppGetRidesOK) Encode

func (s *AppGetRidesOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AppGetRidesOK) GetRides

func (s *AppGetRidesOK) GetRides() []AppGetRidesOKRidesItem

GetRides returns the value of Rides.

func (*AppGetRidesOK) MarshalJSON

func (s *AppGetRidesOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AppGetRidesOK) SetRides

func (s *AppGetRidesOK) SetRides(val []AppGetRidesOKRidesItem)

SetRides sets the value of Rides.

func (*AppGetRidesOK) UnmarshalJSON

func (s *AppGetRidesOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*AppGetRidesOK) Validate

func (s *AppGetRidesOK) Validate() error

type AppGetRidesOKRidesItem

type AppGetRidesOKRidesItem struct {
	// ライドID.
	ID                    string     `json:"id"`
	PickupCoordinate      Coordinate `json:"pickup_coordinate"`
	DestinationCoordinate Coordinate `json:"destination_coordinate"`
	// 運賃.
	Fare  int                         `json:"fare"`
	Chair AppGetRidesOKRidesItemChair `json:"chair"`
	// 椅子の評価.
	Evaluation int `json:"evaluation"`
	// 配車要求日時.
	RequestedAt int64 `json:"requested_at"`
	// 評価まで完了した日時.
	CompletedAt int64 `json:"completed_at"`
}

func (*AppGetRidesOKRidesItem) Decode

func (s *AppGetRidesOKRidesItem) Decode(d *jx.Decoder) error

Decode decodes AppGetRidesOKRidesItem from json.

func (*AppGetRidesOKRidesItem) Encode

func (s *AppGetRidesOKRidesItem) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AppGetRidesOKRidesItem) GetChair

GetChair returns the value of Chair.

func (*AppGetRidesOKRidesItem) GetCompletedAt

func (s *AppGetRidesOKRidesItem) GetCompletedAt() int64

GetCompletedAt returns the value of CompletedAt.

func (*AppGetRidesOKRidesItem) GetDestinationCoordinate

func (s *AppGetRidesOKRidesItem) GetDestinationCoordinate() Coordinate

GetDestinationCoordinate returns the value of DestinationCoordinate.

func (*AppGetRidesOKRidesItem) GetEvaluation

func (s *AppGetRidesOKRidesItem) GetEvaluation() int

GetEvaluation returns the value of Evaluation.

func (*AppGetRidesOKRidesItem) GetFare

func (s *AppGetRidesOKRidesItem) GetFare() int

GetFare returns the value of Fare.

func (*AppGetRidesOKRidesItem) GetID

func (s *AppGetRidesOKRidesItem) GetID() string

GetID returns the value of ID.

func (*AppGetRidesOKRidesItem) GetPickupCoordinate

func (s *AppGetRidesOKRidesItem) GetPickupCoordinate() Coordinate

GetPickupCoordinate returns the value of PickupCoordinate.

func (*AppGetRidesOKRidesItem) GetRequestedAt

func (s *AppGetRidesOKRidesItem) GetRequestedAt() int64

GetRequestedAt returns the value of RequestedAt.

func (*AppGetRidesOKRidesItem) MarshalJSON

func (s *AppGetRidesOKRidesItem) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AppGetRidesOKRidesItem) SetChair

SetChair sets the value of Chair.

func (*AppGetRidesOKRidesItem) SetCompletedAt

func (s *AppGetRidesOKRidesItem) SetCompletedAt(val int64)

SetCompletedAt sets the value of CompletedAt.

func (*AppGetRidesOKRidesItem) SetDestinationCoordinate

func (s *AppGetRidesOKRidesItem) SetDestinationCoordinate(val Coordinate)

SetDestinationCoordinate sets the value of DestinationCoordinate.

func (*AppGetRidesOKRidesItem) SetEvaluation

func (s *AppGetRidesOKRidesItem) SetEvaluation(val int)

SetEvaluation sets the value of Evaluation.

func (*AppGetRidesOKRidesItem) SetFare

func (s *AppGetRidesOKRidesItem) SetFare(val int)

SetFare sets the value of Fare.

func (*AppGetRidesOKRidesItem) SetID

func (s *AppGetRidesOKRidesItem) SetID(val string)

SetID sets the value of ID.

func (*AppGetRidesOKRidesItem) SetPickupCoordinate

func (s *AppGetRidesOKRidesItem) SetPickupCoordinate(val Coordinate)

SetPickupCoordinate sets the value of PickupCoordinate.

func (*AppGetRidesOKRidesItem) SetRequestedAt

func (s *AppGetRidesOKRidesItem) SetRequestedAt(val int64)

SetRequestedAt sets the value of RequestedAt.

func (*AppGetRidesOKRidesItem) UnmarshalJSON

func (s *AppGetRidesOKRidesItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type AppGetRidesOKRidesItemChair

type AppGetRidesOKRidesItemChair struct {
	// 椅子ID.
	ID string `json:"id"`
	// オーナー名.
	Owner string `json:"owner"`
	// 椅子の名前.
	Name string `json:"name"`
	// 椅子のモデル.
	Model string `json:"model"`
}

func (*AppGetRidesOKRidesItemChair) Decode

Decode decodes AppGetRidesOKRidesItemChair from json.

func (*AppGetRidesOKRidesItemChair) Encode

func (s *AppGetRidesOKRidesItemChair) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AppGetRidesOKRidesItemChair) GetID

GetID returns the value of ID.

func (*AppGetRidesOKRidesItemChair) GetModel

func (s *AppGetRidesOKRidesItemChair) GetModel() string

GetModel returns the value of Model.

func (*AppGetRidesOKRidesItemChair) GetName

func (s *AppGetRidesOKRidesItemChair) GetName() string

GetName returns the value of Name.

func (*AppGetRidesOKRidesItemChair) GetOwner

func (s *AppGetRidesOKRidesItemChair) GetOwner() string

GetOwner returns the value of Owner.

func (*AppGetRidesOKRidesItemChair) MarshalJSON

func (s *AppGetRidesOKRidesItemChair) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AppGetRidesOKRidesItemChair) SetID

func (s *AppGetRidesOKRidesItemChair) SetID(val string)

SetID sets the value of ID.

func (*AppGetRidesOKRidesItemChair) SetModel

func (s *AppGetRidesOKRidesItemChair) SetModel(val string)

SetModel sets the value of Model.

func (*AppGetRidesOKRidesItemChair) SetName

func (s *AppGetRidesOKRidesItemChair) SetName(val string)

SetName sets the value of Name.

func (*AppGetRidesOKRidesItemChair) SetOwner

func (s *AppGetRidesOKRidesItemChair) SetOwner(val string)

SetOwner sets the value of Owner.

func (*AppGetRidesOKRidesItemChair) UnmarshalJSON

func (s *AppGetRidesOKRidesItemChair) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type AppPostPaymentMethodsNoContent

type AppPostPaymentMethodsNoContent struct{}

AppPostPaymentMethodsNoContent is response for AppPostPaymentMethods operation.

type AppPostPaymentMethodsReq

type AppPostPaymentMethodsReq struct {
	// 決済トークン.
	Token string `json:"token"`
}

func (*AppPostPaymentMethodsReq) Decode

func (s *AppPostPaymentMethodsReq) Decode(d *jx.Decoder) error

Decode decodes AppPostPaymentMethodsReq from json.

func (*AppPostPaymentMethodsReq) Encode

func (s *AppPostPaymentMethodsReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AppPostPaymentMethodsReq) GetToken

func (s *AppPostPaymentMethodsReq) GetToken() string

GetToken returns the value of Token.

func (*AppPostPaymentMethodsReq) MarshalJSON

func (s *AppPostPaymentMethodsReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AppPostPaymentMethodsReq) SetToken

func (s *AppPostPaymentMethodsReq) SetToken(val string)

SetToken sets the value of Token.

func (*AppPostPaymentMethodsReq) UnmarshalJSON

func (s *AppPostPaymentMethodsReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type AppPostPaymentMethodsRes

type AppPostPaymentMethodsRes interface {
	// contains filtered or unexported methods
}

type AppPostRideEvaluationBadRequest

type AppPostRideEvaluationBadRequest Error

func (*AppPostRideEvaluationBadRequest) Decode

Decode decodes AppPostRideEvaluationBadRequest from json.

func (*AppPostRideEvaluationBadRequest) Encode

Encode encodes AppPostRideEvaluationBadRequest as json.

func (*AppPostRideEvaluationBadRequest) MarshalJSON

func (s *AppPostRideEvaluationBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AppPostRideEvaluationBadRequest) UnmarshalJSON

func (s *AppPostRideEvaluationBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type AppPostRideEvaluationNotFound

type AppPostRideEvaluationNotFound Error

func (*AppPostRideEvaluationNotFound) Decode

Decode decodes AppPostRideEvaluationNotFound from json.

func (*AppPostRideEvaluationNotFound) Encode

Encode encodes AppPostRideEvaluationNotFound as json.

func (*AppPostRideEvaluationNotFound) MarshalJSON

func (s *AppPostRideEvaluationNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AppPostRideEvaluationNotFound) UnmarshalJSON

func (s *AppPostRideEvaluationNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type AppPostRideEvaluationOK

type AppPostRideEvaluationOK struct {
	// 完了日時.
	CompletedAt int64 `json:"completed_at"`
}

func (*AppPostRideEvaluationOK) Decode

func (s *AppPostRideEvaluationOK) Decode(d *jx.Decoder) error

Decode decodes AppPostRideEvaluationOK from json.

func (*AppPostRideEvaluationOK) Encode

func (s *AppPostRideEvaluationOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AppPostRideEvaluationOK) GetCompletedAt

func (s *AppPostRideEvaluationOK) GetCompletedAt() int64

GetCompletedAt returns the value of CompletedAt.

func (*AppPostRideEvaluationOK) MarshalJSON

func (s *AppPostRideEvaluationOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AppPostRideEvaluationOK) SetCompletedAt

func (s *AppPostRideEvaluationOK) SetCompletedAt(val int64)

SetCompletedAt sets the value of CompletedAt.

func (*AppPostRideEvaluationOK) UnmarshalJSON

func (s *AppPostRideEvaluationOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type AppPostRideEvaluationParams

type AppPostRideEvaluationParams struct {
	// ライドID.
	RideID string
}

AppPostRideEvaluationParams is parameters of app-post-ride-evaluation operation.

type AppPostRideEvaluationReq

type AppPostRideEvaluationReq struct {
	// ライドの評価.
	Evaluation int `json:"evaluation"`
}

func (*AppPostRideEvaluationReq) Decode

func (s *AppPostRideEvaluationReq) Decode(d *jx.Decoder) error

Decode decodes AppPostRideEvaluationReq from json.

func (*AppPostRideEvaluationReq) Encode

func (s *AppPostRideEvaluationReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AppPostRideEvaluationReq) GetEvaluation

func (s *AppPostRideEvaluationReq) GetEvaluation() int

GetEvaluation returns the value of Evaluation.

func (*AppPostRideEvaluationReq) MarshalJSON

func (s *AppPostRideEvaluationReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AppPostRideEvaluationReq) SetEvaluation

func (s *AppPostRideEvaluationReq) SetEvaluation(val int)

SetEvaluation sets the value of Evaluation.

func (*AppPostRideEvaluationReq) UnmarshalJSON

func (s *AppPostRideEvaluationReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*AppPostRideEvaluationReq) Validate

func (s *AppPostRideEvaluationReq) Validate() error

type AppPostRideEvaluationRes

type AppPostRideEvaluationRes interface {
	// contains filtered or unexported methods
}

type AppPostRidesAccepted

type AppPostRidesAccepted struct {
	// ライドID.
	RideID string `json:"ride_id"`
	// 割引後運賃.
	Fare int `json:"fare"`
}

func (*AppPostRidesAccepted) Decode

func (s *AppPostRidesAccepted) Decode(d *jx.Decoder) error

Decode decodes AppPostRidesAccepted from json.

func (*AppPostRidesAccepted) Encode

func (s *AppPostRidesAccepted) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AppPostRidesAccepted) GetFare

func (s *AppPostRidesAccepted) GetFare() int

GetFare returns the value of Fare.

func (*AppPostRidesAccepted) GetRideID

func (s *AppPostRidesAccepted) GetRideID() string

GetRideID returns the value of RideID.

func (*AppPostRidesAccepted) MarshalJSON

func (s *AppPostRidesAccepted) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AppPostRidesAccepted) SetFare

func (s *AppPostRidesAccepted) SetFare(val int)

SetFare sets the value of Fare.

func (*AppPostRidesAccepted) SetRideID

func (s *AppPostRidesAccepted) SetRideID(val string)

SetRideID sets the value of RideID.

func (*AppPostRidesAccepted) UnmarshalJSON

func (s *AppPostRidesAccepted) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type AppPostRidesBadRequest

type AppPostRidesBadRequest Error

func (*AppPostRidesBadRequest) Decode

func (s *AppPostRidesBadRequest) Decode(d *jx.Decoder) error

Decode decodes AppPostRidesBadRequest from json.

func (*AppPostRidesBadRequest) Encode

func (s *AppPostRidesBadRequest) Encode(e *jx.Encoder)

Encode encodes AppPostRidesBadRequest as json.

func (*AppPostRidesBadRequest) MarshalJSON

func (s *AppPostRidesBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AppPostRidesBadRequest) UnmarshalJSON

func (s *AppPostRidesBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type AppPostRidesConflict

type AppPostRidesConflict Error

func (*AppPostRidesConflict) Decode

func (s *AppPostRidesConflict) Decode(d *jx.Decoder) error

Decode decodes AppPostRidesConflict from json.

func (*AppPostRidesConflict) Encode

func (s *AppPostRidesConflict) Encode(e *jx.Encoder)

Encode encodes AppPostRidesConflict as json.

func (*AppPostRidesConflict) MarshalJSON

func (s *AppPostRidesConflict) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AppPostRidesConflict) UnmarshalJSON

func (s *AppPostRidesConflict) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type AppPostRidesEstimatedFareOK

type AppPostRidesEstimatedFareOK struct {
	// 割引後運賃.
	Fare int `json:"fare"`
	// 割引額.
	Discount int `json:"discount"`
}

func (*AppPostRidesEstimatedFareOK) Decode

Decode decodes AppPostRidesEstimatedFareOK from json.

func (*AppPostRidesEstimatedFareOK) Encode

func (s *AppPostRidesEstimatedFareOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AppPostRidesEstimatedFareOK) GetDiscount

func (s *AppPostRidesEstimatedFareOK) GetDiscount() int

GetDiscount returns the value of Discount.

func (*AppPostRidesEstimatedFareOK) GetFare

func (s *AppPostRidesEstimatedFareOK) GetFare() int

GetFare returns the value of Fare.

func (*AppPostRidesEstimatedFareOK) MarshalJSON

func (s *AppPostRidesEstimatedFareOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AppPostRidesEstimatedFareOK) SetDiscount

func (s *AppPostRidesEstimatedFareOK) SetDiscount(val int)

SetDiscount sets the value of Discount.

func (*AppPostRidesEstimatedFareOK) SetFare

func (s *AppPostRidesEstimatedFareOK) SetFare(val int)

SetFare sets the value of Fare.

func (*AppPostRidesEstimatedFareOK) UnmarshalJSON

func (s *AppPostRidesEstimatedFareOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type AppPostRidesEstimatedFareReq

type AppPostRidesEstimatedFareReq struct {
	// 配車位置.
	PickupCoordinate Coordinate `json:"pickup_coordinate"`
	// 目的地.
	DestinationCoordinate Coordinate `json:"destination_coordinate"`
}

func (*AppPostRidesEstimatedFareReq) Decode

Decode decodes AppPostRidesEstimatedFareReq from json.

func (*AppPostRidesEstimatedFareReq) Encode

func (s *AppPostRidesEstimatedFareReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AppPostRidesEstimatedFareReq) GetDestinationCoordinate

func (s *AppPostRidesEstimatedFareReq) GetDestinationCoordinate() Coordinate

GetDestinationCoordinate returns the value of DestinationCoordinate.

func (*AppPostRidesEstimatedFareReq) GetPickupCoordinate

func (s *AppPostRidesEstimatedFareReq) GetPickupCoordinate() Coordinate

GetPickupCoordinate returns the value of PickupCoordinate.

func (*AppPostRidesEstimatedFareReq) MarshalJSON

func (s *AppPostRidesEstimatedFareReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AppPostRidesEstimatedFareReq) SetDestinationCoordinate

func (s *AppPostRidesEstimatedFareReq) SetDestinationCoordinate(val Coordinate)

SetDestinationCoordinate sets the value of DestinationCoordinate.

func (*AppPostRidesEstimatedFareReq) SetPickupCoordinate

func (s *AppPostRidesEstimatedFareReq) SetPickupCoordinate(val Coordinate)

SetPickupCoordinate sets the value of PickupCoordinate.

func (*AppPostRidesEstimatedFareReq) UnmarshalJSON

func (s *AppPostRidesEstimatedFareReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type AppPostRidesEstimatedFareRes

type AppPostRidesEstimatedFareRes interface {
	// contains filtered or unexported methods
}

type AppPostRidesReq

type AppPostRidesReq struct {
	// 配車位置.
	PickupCoordinate Coordinate `json:"pickup_coordinate"`
	// 目的地.
	DestinationCoordinate Coordinate `json:"destination_coordinate"`
}

func (*AppPostRidesReq) Decode

func (s *AppPostRidesReq) Decode(d *jx.Decoder) error

Decode decodes AppPostRidesReq from json.

func (*AppPostRidesReq) Encode

func (s *AppPostRidesReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AppPostRidesReq) GetDestinationCoordinate

func (s *AppPostRidesReq) GetDestinationCoordinate() Coordinate

GetDestinationCoordinate returns the value of DestinationCoordinate.

func (*AppPostRidesReq) GetPickupCoordinate

func (s *AppPostRidesReq) GetPickupCoordinate() Coordinate

GetPickupCoordinate returns the value of PickupCoordinate.

func (*AppPostRidesReq) MarshalJSON

func (s *AppPostRidesReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AppPostRidesReq) SetDestinationCoordinate

func (s *AppPostRidesReq) SetDestinationCoordinate(val Coordinate)

SetDestinationCoordinate sets the value of DestinationCoordinate.

func (*AppPostRidesReq) SetPickupCoordinate

func (s *AppPostRidesReq) SetPickupCoordinate(val Coordinate)

SetPickupCoordinate sets the value of PickupCoordinate.

func (*AppPostRidesReq) UnmarshalJSON

func (s *AppPostRidesReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type AppPostRidesRes

type AppPostRidesRes interface {
	// contains filtered or unexported methods
}

type AppPostUsersCreated

type AppPostUsersCreated struct {
	// ユーザーID.
	ID string `json:"id"`
	// 自分の招待コード.
	InvitationCode string `json:"invitation_code"`
}

func (*AppPostUsersCreated) Decode

func (s *AppPostUsersCreated) Decode(d *jx.Decoder) error

Decode decodes AppPostUsersCreated from json.

func (*AppPostUsersCreated) Encode

func (s *AppPostUsersCreated) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AppPostUsersCreated) GetID

func (s *AppPostUsersCreated) GetID() string

GetID returns the value of ID.

func (*AppPostUsersCreated) GetInvitationCode

func (s *AppPostUsersCreated) GetInvitationCode() string

GetInvitationCode returns the value of InvitationCode.

func (*AppPostUsersCreated) MarshalJSON

func (s *AppPostUsersCreated) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AppPostUsersCreated) SetID

func (s *AppPostUsersCreated) SetID(val string)

SetID sets the value of ID.

func (*AppPostUsersCreated) SetInvitationCode

func (s *AppPostUsersCreated) SetInvitationCode(val string)

SetInvitationCode sets the value of InvitationCode.

func (*AppPostUsersCreated) UnmarshalJSON

func (s *AppPostUsersCreated) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type AppPostUsersCreatedHeaders

type AppPostUsersCreatedHeaders struct {
	SetCookie OptString
	Response  AppPostUsersCreated
}

AppPostUsersCreatedHeaders wraps AppPostUsersCreated with response headers.

func (*AppPostUsersCreatedHeaders) GetResponse

GetResponse returns the value of Response.

func (*AppPostUsersCreatedHeaders) GetSetCookie

func (s *AppPostUsersCreatedHeaders) GetSetCookie() OptString

GetSetCookie returns the value of SetCookie.

func (*AppPostUsersCreatedHeaders) SetResponse

func (s *AppPostUsersCreatedHeaders) SetResponse(val AppPostUsersCreated)

SetResponse sets the value of Response.

func (*AppPostUsersCreatedHeaders) SetSetCookie

func (s *AppPostUsersCreatedHeaders) SetSetCookie(val OptString)

SetSetCookie sets the value of SetCookie.

type AppPostUsersReq

type AppPostUsersReq struct {
	// ユーザー名.
	Username string `json:"username"`
	// 名前.
	Firstname string `json:"firstname"`
	// 名字.
	Lastname string `json:"lastname"`
	// 生年月日.
	DateOfBirth string `json:"date_of_birth"`
	// 他の人の招待コード.
	InvitationCode OptString `json:"invitation_code"`
}

func (*AppPostUsersReq) Decode

func (s *AppPostUsersReq) Decode(d *jx.Decoder) error

Decode decodes AppPostUsersReq from json.

func (*AppPostUsersReq) Encode

func (s *AppPostUsersReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AppPostUsersReq) GetDateOfBirth

func (s *AppPostUsersReq) GetDateOfBirth() string

GetDateOfBirth returns the value of DateOfBirth.

func (*AppPostUsersReq) GetFirstname

func (s *AppPostUsersReq) GetFirstname() string

GetFirstname returns the value of Firstname.

func (*AppPostUsersReq) GetInvitationCode

func (s *AppPostUsersReq) GetInvitationCode() OptString

GetInvitationCode returns the value of InvitationCode.

func (*AppPostUsersReq) GetLastname

func (s *AppPostUsersReq) GetLastname() string

GetLastname returns the value of Lastname.

func (*AppPostUsersReq) GetUsername

func (s *AppPostUsersReq) GetUsername() string

GetUsername returns the value of Username.

func (*AppPostUsersReq) MarshalJSON

func (s *AppPostUsersReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AppPostUsersReq) SetDateOfBirth

func (s *AppPostUsersReq) SetDateOfBirth(val string)

SetDateOfBirth sets the value of DateOfBirth.

func (*AppPostUsersReq) SetFirstname

func (s *AppPostUsersReq) SetFirstname(val string)

SetFirstname sets the value of Firstname.

func (*AppPostUsersReq) SetInvitationCode

func (s *AppPostUsersReq) SetInvitationCode(val OptString)

SetInvitationCode sets the value of InvitationCode.

func (*AppPostUsersReq) SetLastname

func (s *AppPostUsersReq) SetLastname(val string)

SetLastname sets the value of Lastname.

func (*AppPostUsersReq) SetUsername

func (s *AppPostUsersReq) SetUsername(val string)

SetUsername sets the value of Username.

func (*AppPostUsersReq) UnmarshalJSON

func (s *AppPostUsersReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type AppPostUsersRes

type AppPostUsersRes interface {
	// contains filtered or unexported methods
}

type ChairGetNotificationOK

type ChairGetNotificationOK struct {
	Data OptChairNotificationData `json:"data"`
	// 次回の通知ポーリングまでの待機時間(ミリ秒単位).
	RetryAfterMs OptInt `json:"retry_after_ms"`
}

自分に割り当てられたライドが1つでも存在する場合は最新のものをdataで返す。過去にライドが1つも割り当てられていない場合、dataはnullまたはundefined.

func (*ChairGetNotificationOK) Decode

func (s *ChairGetNotificationOK) Decode(d *jx.Decoder) error

Decode decodes ChairGetNotificationOK from json.

func (*ChairGetNotificationOK) Encode

func (s *ChairGetNotificationOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ChairGetNotificationOK) GetData

GetData returns the value of Data.

func (*ChairGetNotificationOK) GetRetryAfterMs

func (s *ChairGetNotificationOK) GetRetryAfterMs() OptInt

GetRetryAfterMs returns the value of RetryAfterMs.

func (*ChairGetNotificationOK) MarshalJSON

func (s *ChairGetNotificationOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ChairGetNotificationOK) SetData

SetData sets the value of Data.

func (*ChairGetNotificationOK) SetRetryAfterMs

func (s *ChairGetNotificationOK) SetRetryAfterMs(val OptInt)

SetRetryAfterMs sets the value of RetryAfterMs.

func (*ChairGetNotificationOK) UnmarshalJSON

func (s *ChairGetNotificationOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ChairGetNotificationOK) Validate

func (s *ChairGetNotificationOK) Validate() error

type ChairNotificationData

type ChairNotificationData struct {
	// ライドID.
	RideID                string     `json:"ride_id"`
	User                  User       `json:"user"`
	PickupCoordinate      Coordinate `json:"pickup_coordinate"`
	DestinationCoordinate Coordinate `json:"destination_coordinate"`
	Status                RideStatus `json:"status"`
}

椅子向け通知データ. Ref: #/components/schemas/ChairNotificationData

func (*ChairNotificationData) Decode

func (s *ChairNotificationData) Decode(d *jx.Decoder) error

Decode decodes ChairNotificationData from json.

func (*ChairNotificationData) Encode

func (s *ChairNotificationData) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ChairNotificationData) GetDestinationCoordinate

func (s *ChairNotificationData) GetDestinationCoordinate() Coordinate

GetDestinationCoordinate returns the value of DestinationCoordinate.

func (*ChairNotificationData) GetPickupCoordinate

func (s *ChairNotificationData) GetPickupCoordinate() Coordinate

GetPickupCoordinate returns the value of PickupCoordinate.

func (*ChairNotificationData) GetRideID

func (s *ChairNotificationData) GetRideID() string

GetRideID returns the value of RideID.

func (*ChairNotificationData) GetStatus

func (s *ChairNotificationData) GetStatus() RideStatus

GetStatus returns the value of Status.

func (*ChairNotificationData) GetUser

func (s *ChairNotificationData) GetUser() User

GetUser returns the value of User.

func (*ChairNotificationData) MarshalJSON

func (s *ChairNotificationData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ChairNotificationData) SetDestinationCoordinate

func (s *ChairNotificationData) SetDestinationCoordinate(val Coordinate)

SetDestinationCoordinate sets the value of DestinationCoordinate.

func (*ChairNotificationData) SetPickupCoordinate

func (s *ChairNotificationData) SetPickupCoordinate(val Coordinate)

SetPickupCoordinate sets the value of PickupCoordinate.

func (*ChairNotificationData) SetRideID

func (s *ChairNotificationData) SetRideID(val string)

SetRideID sets the value of RideID.

func (*ChairNotificationData) SetStatus

func (s *ChairNotificationData) SetStatus(val RideStatus)

SetStatus sets the value of Status.

func (*ChairNotificationData) SetUser

func (s *ChairNotificationData) SetUser(val User)

SetUser sets the value of User.

func (*ChairNotificationData) UnmarshalJSON

func (s *ChairNotificationData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ChairNotificationData) Validate

func (s *ChairNotificationData) Validate() error

type ChairPostActivityNoContent

type ChairPostActivityNoContent struct{}

ChairPostActivityNoContent is response for ChairPostActivity operation.

type ChairPostActivityReq

type ChairPostActivityReq struct {
	// 配車受付を開始するか停止するか.
	IsActive bool `json:"is_active"`
}

func (*ChairPostActivityReq) Decode

func (s *ChairPostActivityReq) Decode(d *jx.Decoder) error

Decode decodes ChairPostActivityReq from json.

func (*ChairPostActivityReq) Encode

func (s *ChairPostActivityReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ChairPostActivityReq) GetIsActive

func (s *ChairPostActivityReq) GetIsActive() bool

GetIsActive returns the value of IsActive.

func (*ChairPostActivityReq) MarshalJSON

func (s *ChairPostActivityReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ChairPostActivityReq) SetIsActive

func (s *ChairPostActivityReq) SetIsActive(val bool)

SetIsActive sets the value of IsActive.

func (*ChairPostActivityReq) UnmarshalJSON

func (s *ChairPostActivityReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ChairPostChairsCreated

type ChairPostChairsCreated struct {
	// 椅子ID.
	ID string `json:"id"`
	// オーナーID.
	OwnerID string `json:"owner_id"`
}

func (*ChairPostChairsCreated) Decode

func (s *ChairPostChairsCreated) Decode(d *jx.Decoder) error

Decode decodes ChairPostChairsCreated from json.

func (*ChairPostChairsCreated) Encode

func (s *ChairPostChairsCreated) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ChairPostChairsCreated) GetID

func (s *ChairPostChairsCreated) GetID() string

GetID returns the value of ID.

func (*ChairPostChairsCreated) GetOwnerID

func (s *ChairPostChairsCreated) GetOwnerID() string

GetOwnerID returns the value of OwnerID.

func (*ChairPostChairsCreated) MarshalJSON

func (s *ChairPostChairsCreated) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ChairPostChairsCreated) SetID

func (s *ChairPostChairsCreated) SetID(val string)

SetID sets the value of ID.

func (*ChairPostChairsCreated) SetOwnerID

func (s *ChairPostChairsCreated) SetOwnerID(val string)

SetOwnerID sets the value of OwnerID.

func (*ChairPostChairsCreated) UnmarshalJSON

func (s *ChairPostChairsCreated) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ChairPostChairsCreatedHeaders

type ChairPostChairsCreatedHeaders struct {
	SetCookie OptString
	Response  ChairPostChairsCreated
}

ChairPostChairsCreatedHeaders wraps ChairPostChairsCreated with response headers.

func (*ChairPostChairsCreatedHeaders) GetResponse

GetResponse returns the value of Response.

func (*ChairPostChairsCreatedHeaders) GetSetCookie

func (s *ChairPostChairsCreatedHeaders) GetSetCookie() OptString

GetSetCookie returns the value of SetCookie.

func (*ChairPostChairsCreatedHeaders) SetResponse

SetResponse sets the value of Response.

func (*ChairPostChairsCreatedHeaders) SetSetCookie

func (s *ChairPostChairsCreatedHeaders) SetSetCookie(val OptString)

SetSetCookie sets the value of SetCookie.

type ChairPostChairsReq

type ChairPostChairsReq struct {
	// 椅子の名前.
	Name string `json:"name"`
	// 椅子のモデル.
	Model string `json:"model"`
	// 椅子をオーナーに紐づけるための椅子登録用トークン.
	ChairRegisterToken string `json:"chair_register_token"`
}

func (*ChairPostChairsReq) Decode

func (s *ChairPostChairsReq) Decode(d *jx.Decoder) error

Decode decodes ChairPostChairsReq from json.

func (*ChairPostChairsReq) Encode

func (s *ChairPostChairsReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ChairPostChairsReq) GetChairRegisterToken

func (s *ChairPostChairsReq) GetChairRegisterToken() string

GetChairRegisterToken returns the value of ChairRegisterToken.

func (*ChairPostChairsReq) GetModel

func (s *ChairPostChairsReq) GetModel() string

GetModel returns the value of Model.

func (*ChairPostChairsReq) GetName

func (s *ChairPostChairsReq) GetName() string

GetName returns the value of Name.

func (*ChairPostChairsReq) MarshalJSON

func (s *ChairPostChairsReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ChairPostChairsReq) SetChairRegisterToken

func (s *ChairPostChairsReq) SetChairRegisterToken(val string)

SetChairRegisterToken sets the value of ChairRegisterToken.

func (*ChairPostChairsReq) SetModel

func (s *ChairPostChairsReq) SetModel(val string)

SetModel sets the value of Model.

func (*ChairPostChairsReq) SetName

func (s *ChairPostChairsReq) SetName(val string)

SetName sets the value of Name.

func (*ChairPostChairsReq) UnmarshalJSON

func (s *ChairPostChairsReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ChairPostCoordinateOK

type ChairPostCoordinateOK struct {
	// 記録日時.
	RecordedAt int64 `json:"recorded_at"`
}

func (*ChairPostCoordinateOK) Decode

func (s *ChairPostCoordinateOK) Decode(d *jx.Decoder) error

Decode decodes ChairPostCoordinateOK from json.

func (*ChairPostCoordinateOK) Encode

func (s *ChairPostCoordinateOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ChairPostCoordinateOK) GetRecordedAt

func (s *ChairPostCoordinateOK) GetRecordedAt() int64

GetRecordedAt returns the value of RecordedAt.

func (*ChairPostCoordinateOK) MarshalJSON

func (s *ChairPostCoordinateOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ChairPostCoordinateOK) SetRecordedAt

func (s *ChairPostCoordinateOK) SetRecordedAt(val int64)

SetRecordedAt sets the value of RecordedAt.

func (*ChairPostCoordinateOK) UnmarshalJSON

func (s *ChairPostCoordinateOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ChairPostRideStatusNoContent

type ChairPostRideStatusNoContent struct{}

ChairPostRideStatusNoContent is response for ChairPostRideStatus operation.

type ChairPostRideStatusParams

type ChairPostRideStatusParams struct {
	// ライドID.
	RideID string
}

ChairPostRideStatusParams is parameters of chair-post-ride-status operation.

type ChairPostRideStatusReq

type ChairPostRideStatusReq struct {
	// ライドの状態
	// ENROUTE: マッチしたライドを確認し、乗車位置に向かう
	// CARRYING: ユーザーが乗車し、椅子が目的地に向かう.
	Status ChairPostRideStatusReqStatus `json:"status"`
}

func (*ChairPostRideStatusReq) Decode

func (s *ChairPostRideStatusReq) Decode(d *jx.Decoder) error

Decode decodes ChairPostRideStatusReq from json.

func (*ChairPostRideStatusReq) Encode

func (s *ChairPostRideStatusReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ChairPostRideStatusReq) GetStatus

GetStatus returns the value of Status.

func (*ChairPostRideStatusReq) MarshalJSON

func (s *ChairPostRideStatusReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ChairPostRideStatusReq) SetStatus

SetStatus sets the value of Status.

func (*ChairPostRideStatusReq) UnmarshalJSON

func (s *ChairPostRideStatusReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ChairPostRideStatusReq) Validate

func (s *ChairPostRideStatusReq) Validate() error

type ChairPostRideStatusReqStatus

type ChairPostRideStatusReqStatus string

ライドの状態 ENROUTE: マッチしたライドを確認し、乗車位置に向かう CARRYING: ユーザーが乗車し、椅子が目的地に向かう.

const (
	ChairPostRideStatusReqStatusENROUTE  ChairPostRideStatusReqStatus = "ENROUTE"
	ChairPostRideStatusReqStatusCARRYING ChairPostRideStatusReqStatus = "CARRYING"
)

func (ChairPostRideStatusReqStatus) AllValues

AllValues returns all ChairPostRideStatusReqStatus values.

func (*ChairPostRideStatusReqStatus) Decode

Decode decodes ChairPostRideStatusReqStatus from json.

func (ChairPostRideStatusReqStatus) Encode

Encode encodes ChairPostRideStatusReqStatus as json.

func (ChairPostRideStatusReqStatus) MarshalJSON

func (s ChairPostRideStatusReqStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (ChairPostRideStatusReqStatus) MarshalText

func (s ChairPostRideStatusReqStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ChairPostRideStatusReqStatus) UnmarshalJSON

func (s *ChairPostRideStatusReqStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ChairPostRideStatusReqStatus) UnmarshalText

func (s *ChairPostRideStatusReqStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ChairPostRideStatusReqStatus) Validate

func (s ChairPostRideStatusReqStatus) Validate() error

type ChairPostRideStatusRes

type ChairPostRideStatusRes interface {
	// contains filtered or unexported methods
}

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client implements OAS client.

func NewClient

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

NewClient initializes new Client defined by OAS.

func (*Client) AppGetNearbyChairs

func (c *Client) AppGetNearbyChairs(ctx context.Context, params AppGetNearbyChairsParams) (*AppGetNearbyChairsOK, error)

AppGetNearbyChairs invokes app-get-nearby-chairs operation.

椅子からサーバーに記録された座標情報は3秒以内に反映されている必要があります。.

GET /app/nearby-chairs

func (*Client) AppGetNotification

func (c *Client) AppGetNotification(ctx context.Context) (*AppGetNotificationOK, error)

AppGetNotification invokes app-get-notification operation.

最新の自分のライドの状態を取得・通知する.

GET /app/notification

func (*Client) AppGetRides

func (c *Client) AppGetRides(ctx context.Context) (*AppGetRidesOK, error)

AppGetRides invokes app-get-rides operation.

ユーザーが完了済みのライド一覧を取得する.

GET /app/rides

func (*Client) AppPostPaymentMethods

func (c *Client) AppPostPaymentMethods(ctx context.Context, request OptAppPostPaymentMethodsReq) (AppPostPaymentMethodsRes, error)

AppPostPaymentMethods invokes app-post-payment-methods operation.

決済トークンの登録.

POST /app/payment-methods

func (*Client) AppPostRideEvaluation

AppPostRideEvaluation invokes app-post-ride-evaluation operation.

ユーザーがライドを評価する.

POST /app/rides/{ride_id}/evaluation

func (*Client) AppPostRides

func (c *Client) AppPostRides(ctx context.Context, request OptAppPostRidesReq) (AppPostRidesRes, error)

AppPostRides invokes app-post-rides operation.

ユーザーが配車を要求する.

POST /app/rides

func (*Client) AppPostRidesEstimatedFare

func (c *Client) AppPostRidesEstimatedFare(ctx context.Context, request OptAppPostRidesEstimatedFareReq) (AppPostRidesEstimatedFareRes, error)

AppPostRidesEstimatedFare invokes app-post-rides-estimated-fare operation.

ライドの運賃を見積もる.

POST /app/rides/estimated-fare

func (*Client) AppPostUsers

func (c *Client) AppPostUsers(ctx context.Context, request OptAppPostUsersReq) (AppPostUsersRes, error)

AppPostUsers invokes app-post-users operation.

ユーザーが会員登録を行う.

POST /app/users

func (*Client) ChairGetNotification

func (c *Client) ChairGetNotification(ctx context.Context) (*ChairGetNotificationOK, error)

ChairGetNotification invokes chair-get-notification operation.

自分に割り当てられた最新のライドの状態を取得・通知する.

GET /chair/notification

func (*Client) ChairPostActivity

func (c *Client) ChairPostActivity(ctx context.Context, request OptChairPostActivityReq) error

ChairPostActivity invokes chair-post-activity operation.

椅子が配車受付を開始・停止する.

POST /chair/activity

func (*Client) ChairPostChairs

func (c *Client) ChairPostChairs(ctx context.Context, request OptChairPostChairsReq) (*ChairPostChairsCreatedHeaders, error)

ChairPostChairs invokes chair-post-chairs operation.

オーナーが椅子の登録を行う.

POST /chair/chairs

func (*Client) ChairPostCoordinate

func (c *Client) ChairPostCoordinate(ctx context.Context, request OptCoordinate) (*ChairPostCoordinateOK, error)

ChairPostCoordinate invokes chair-post-coordinate operation.

椅子が自身の位置情報を送信する.

POST /chair/coordinate

func (*Client) ChairPostRideStatus

ChairPostRideStatus invokes chair-post-ride-status operation.

椅子がライドのステータスを更新する.

POST /chair/rides/{ride_id}/status

func (*Client) InternalGetMatching

func (c *Client) InternalGetMatching(ctx context.Context) error

InternalGetMatching invokes internal-get-matching operation.

ライドのマッチングを行う.

GET /internal/matching

func (*Client) OwnerGetChairs

func (c *Client) OwnerGetChairs(ctx context.Context) (*OwnerGetChairsOK, error)

OwnerGetChairs invokes owner-get-chairs operation.

椅子のオーナーが管理している椅子の一覧を取得する.

GET /owner/chairs

func (*Client) OwnerGetSales

func (c *Client) OwnerGetSales(ctx context.Context, params OwnerGetSalesParams) (*OwnerGetSalesOK, error)

OwnerGetSales invokes owner-get-sales operation.

椅子のオーナーが指定期間の全体・椅子ごと・モデルごとの売上情報を取得する.

GET /owner/sales

func (*Client) OwnerPostOwners

func (c *Client) OwnerPostOwners(ctx context.Context, request OptOwnerPostOwnersReq) (OwnerPostOwnersRes, error)

OwnerPostOwners invokes owner-post-owners operation.

椅子のオーナーが会員登録を行う.

POST /owner/owners

func (*Client) PostInitialize

func (c *Client) PostInitialize(ctx context.Context, request OptPostInitializeReq) (*PostInitializeOK, error)

PostInitialize invokes post-initialize operation.

サービスを初期化する.

POST /initialize

type ClientOption

type ClientOption interface {
	// contains filtered or unexported methods
}

ClientOption is client config option.

func WithClient

func WithClient(client ht.Client) ClientOption

WithClient specifies http client to use.

type Coordinate

type Coordinate struct {
	// 経度.
	Latitude int `json:"latitude"`
	// 緯度.
	Longitude int `json:"longitude"`
}

座標情報. Ref: #/components/schemas/Coordinate

func (*Coordinate) Decode

func (s *Coordinate) Decode(d *jx.Decoder) error

Decode decodes Coordinate from json.

func (*Coordinate) Encode

func (s *Coordinate) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Coordinate) GetLatitude

func (s *Coordinate) GetLatitude() int

GetLatitude returns the value of Latitude.

func (*Coordinate) GetLongitude

func (s *Coordinate) GetLongitude() int

GetLongitude returns the value of Longitude.

func (*Coordinate) MarshalJSON

func (s *Coordinate) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Coordinate) SetLatitude

func (s *Coordinate) SetLatitude(val int)

SetLatitude sets the value of Latitude.

func (*Coordinate) SetLongitude

func (s *Coordinate) SetLongitude(val int)

SetLongitude sets the value of Longitude.

func (*Coordinate) UnmarshalJSON

func (s *Coordinate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Error

type Error struct {
	Message string `json:"message"`
}

Ref: #/components/schemas/Error

func (*Error) Decode

func (s *Error) Decode(d *jx.Decoder) error

Decode decodes Error from json.

func (*Error) Encode

func (s *Error) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Error) GetMessage

func (s *Error) GetMessage() string

GetMessage returns the value of Message.

func (*Error) MarshalJSON

func (s *Error) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Error) SetMessage

func (s *Error) SetMessage(val string)

SetMessage sets the value of Message.

func (*Error) UnmarshalJSON

func (s *Error) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type InternalGetMatchingNoContent

type InternalGetMatchingNoContent struct{}

InternalGetMatchingNoContent is response for InternalGetMatching operation.

type Invoker

type Invoker interface {
	// AppGetNearbyChairs invokes app-get-nearby-chairs operation.
	//
	// 椅子からサーバーに記録された座標情報は3秒以内に反映されている必要があります。.
	//
	// GET /app/nearby-chairs
	AppGetNearbyChairs(ctx context.Context, params AppGetNearbyChairsParams) (*AppGetNearbyChairsOK, error)
	// AppGetNotification invokes app-get-notification operation.
	//
	// 最新の自分のライドの状態を取得・通知する.
	//
	// GET /app/notification
	AppGetNotification(ctx context.Context) (*AppGetNotificationOK, error)
	// AppGetRides invokes app-get-rides operation.
	//
	// ユーザーが完了済みのライド一覧を取得する.
	//
	// GET /app/rides
	AppGetRides(ctx context.Context) (*AppGetRidesOK, error)
	// AppPostPaymentMethods invokes app-post-payment-methods operation.
	//
	// 決済トークンの登録.
	//
	// POST /app/payment-methods
	AppPostPaymentMethods(ctx context.Context, request OptAppPostPaymentMethodsReq) (AppPostPaymentMethodsRes, error)
	// AppPostRideEvaluation invokes app-post-ride-evaluation operation.
	//
	// ユーザーがライドを評価する.
	//
	// POST /app/rides/{ride_id}/evaluation
	AppPostRideEvaluation(ctx context.Context, request OptAppPostRideEvaluationReq, params AppPostRideEvaluationParams) (AppPostRideEvaluationRes, error)
	// AppPostRides invokes app-post-rides operation.
	//
	// ユーザーが配車を要求する.
	//
	// POST /app/rides
	AppPostRides(ctx context.Context, request OptAppPostRidesReq) (AppPostRidesRes, error)
	// AppPostRidesEstimatedFare invokes app-post-rides-estimated-fare operation.
	//
	// ライドの運賃を見積もる.
	//
	// POST /app/rides/estimated-fare
	AppPostRidesEstimatedFare(ctx context.Context, request OptAppPostRidesEstimatedFareReq) (AppPostRidesEstimatedFareRes, error)
	// AppPostUsers invokes app-post-users operation.
	//
	// ユーザーが会員登録を行う.
	//
	// POST /app/users
	AppPostUsers(ctx context.Context, request OptAppPostUsersReq) (AppPostUsersRes, error)
	// ChairGetNotification invokes chair-get-notification operation.
	//
	// 自分に割り当てられた最新のライドの状態を取得・通知する.
	//
	// GET /chair/notification
	ChairGetNotification(ctx context.Context) (*ChairGetNotificationOK, error)
	// ChairPostActivity invokes chair-post-activity operation.
	//
	// 椅子が配車受付を開始・停止する.
	//
	// POST /chair/activity
	ChairPostActivity(ctx context.Context, request OptChairPostActivityReq) error
	// ChairPostChairs invokes chair-post-chairs operation.
	//
	// オーナーが椅子の登録を行う.
	//
	// POST /chair/chairs
	ChairPostChairs(ctx context.Context, request OptChairPostChairsReq) (*ChairPostChairsCreatedHeaders, error)
	// ChairPostCoordinate invokes chair-post-coordinate operation.
	//
	// 椅子が自身の位置情報を送信する.
	//
	// POST /chair/coordinate
	ChairPostCoordinate(ctx context.Context, request OptCoordinate) (*ChairPostCoordinateOK, error)
	// ChairPostRideStatus invokes chair-post-ride-status operation.
	//
	// 椅子がライドのステータスを更新する.
	//
	// POST /chair/rides/{ride_id}/status
	ChairPostRideStatus(ctx context.Context, request OptChairPostRideStatusReq, params ChairPostRideStatusParams) (ChairPostRideStatusRes, error)
	// InternalGetMatching invokes internal-get-matching operation.
	//
	// ライドのマッチングを行う.
	//
	// GET /internal/matching
	InternalGetMatching(ctx context.Context) error
	// OwnerGetChairs invokes owner-get-chairs operation.
	//
	// 椅子のオーナーが管理している椅子の一覧を取得する.
	//
	// GET /owner/chairs
	OwnerGetChairs(ctx context.Context) (*OwnerGetChairsOK, error)
	// OwnerGetSales invokes owner-get-sales operation.
	//
	// 椅子のオーナーが指定期間の全体・椅子ごと・モデルごとの売上情報を取得する.
	//
	// GET /owner/sales
	OwnerGetSales(ctx context.Context, params OwnerGetSalesParams) (*OwnerGetSalesOK, error)
	// OwnerPostOwners invokes owner-post-owners operation.
	//
	// 椅子のオーナーが会員登録を行う.
	//
	// POST /owner/owners
	OwnerPostOwners(ctx context.Context, request OptOwnerPostOwnersReq) (OwnerPostOwnersRes, error)
	// PostInitialize invokes post-initialize operation.
	//
	// サービスを初期化する.
	//
	// POST /initialize
	PostInitialize(ctx context.Context, request OptPostInitializeReq) (*PostInitializeOK, error)
}

Invoker invokes operations described by OpenAPI v3 specification.

type OptAppPostPaymentMethodsReq

type OptAppPostPaymentMethodsReq struct {
	Value AppPostPaymentMethodsReq
	Set   bool
}

OptAppPostPaymentMethodsReq is optional AppPostPaymentMethodsReq.

func NewOptAppPostPaymentMethodsReq

func NewOptAppPostPaymentMethodsReq(v AppPostPaymentMethodsReq) OptAppPostPaymentMethodsReq

NewOptAppPostPaymentMethodsReq returns new OptAppPostPaymentMethodsReq with value set to v.

func (*OptAppPostPaymentMethodsReq) Decode

Decode decodes AppPostPaymentMethodsReq from json.

func (OptAppPostPaymentMethodsReq) Encode

func (o OptAppPostPaymentMethodsReq) Encode(e *jx.Encoder)

Encode encodes AppPostPaymentMethodsReq as json.

func (OptAppPostPaymentMethodsReq) Get

Get returns value and boolean that denotes whether value was set.

func (OptAppPostPaymentMethodsReq) IsSet

IsSet returns true if OptAppPostPaymentMethodsReq was set.

func (OptAppPostPaymentMethodsReq) MarshalJSON

func (s OptAppPostPaymentMethodsReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptAppPostPaymentMethodsReq) Or

Or returns value if set, or given parameter if does not.

func (*OptAppPostPaymentMethodsReq) Reset

func (o *OptAppPostPaymentMethodsReq) Reset()

Reset unsets value.

func (*OptAppPostPaymentMethodsReq) SetTo

SetTo sets value to v.

func (*OptAppPostPaymentMethodsReq) UnmarshalJSON

func (s *OptAppPostPaymentMethodsReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptAppPostRideEvaluationReq

type OptAppPostRideEvaluationReq struct {
	Value AppPostRideEvaluationReq
	Set   bool
}

OptAppPostRideEvaluationReq is optional AppPostRideEvaluationReq.

func NewOptAppPostRideEvaluationReq

func NewOptAppPostRideEvaluationReq(v AppPostRideEvaluationReq) OptAppPostRideEvaluationReq

NewOptAppPostRideEvaluationReq returns new OptAppPostRideEvaluationReq with value set to v.

func (*OptAppPostRideEvaluationReq) Decode

Decode decodes AppPostRideEvaluationReq from json.

func (OptAppPostRideEvaluationReq) Encode

func (o OptAppPostRideEvaluationReq) Encode(e *jx.Encoder)

Encode encodes AppPostRideEvaluationReq as json.

func (OptAppPostRideEvaluationReq) Get

Get returns value and boolean that denotes whether value was set.

func (OptAppPostRideEvaluationReq) IsSet

IsSet returns true if OptAppPostRideEvaluationReq was set.

func (OptAppPostRideEvaluationReq) MarshalJSON

func (s OptAppPostRideEvaluationReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptAppPostRideEvaluationReq) Or

Or returns value if set, or given parameter if does not.

func (*OptAppPostRideEvaluationReq) Reset

func (o *OptAppPostRideEvaluationReq) Reset()

Reset unsets value.

func (*OptAppPostRideEvaluationReq) SetTo

SetTo sets value to v.

func (*OptAppPostRideEvaluationReq) UnmarshalJSON

func (s *OptAppPostRideEvaluationReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptAppPostRidesEstimatedFareReq

type OptAppPostRidesEstimatedFareReq struct {
	Value AppPostRidesEstimatedFareReq
	Set   bool
}

OptAppPostRidesEstimatedFareReq is optional AppPostRidesEstimatedFareReq.

func NewOptAppPostRidesEstimatedFareReq

func NewOptAppPostRidesEstimatedFareReq(v AppPostRidesEstimatedFareReq) OptAppPostRidesEstimatedFareReq

NewOptAppPostRidesEstimatedFareReq returns new OptAppPostRidesEstimatedFareReq with value set to v.

func (*OptAppPostRidesEstimatedFareReq) Decode

Decode decodes AppPostRidesEstimatedFareReq from json.

func (OptAppPostRidesEstimatedFareReq) Encode

Encode encodes AppPostRidesEstimatedFareReq as json.

func (OptAppPostRidesEstimatedFareReq) Get

Get returns value and boolean that denotes whether value was set.

func (OptAppPostRidesEstimatedFareReq) IsSet

IsSet returns true if OptAppPostRidesEstimatedFareReq was set.

func (OptAppPostRidesEstimatedFareReq) MarshalJSON

func (s OptAppPostRidesEstimatedFareReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptAppPostRidesEstimatedFareReq) Or

Or returns value if set, or given parameter if does not.

func (*OptAppPostRidesEstimatedFareReq) Reset

Reset unsets value.

func (*OptAppPostRidesEstimatedFareReq) SetTo

SetTo sets value to v.

func (*OptAppPostRidesEstimatedFareReq) UnmarshalJSON

func (s *OptAppPostRidesEstimatedFareReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptAppPostRidesReq

type OptAppPostRidesReq struct {
	Value AppPostRidesReq
	Set   bool
}

OptAppPostRidesReq is optional AppPostRidesReq.

func NewOptAppPostRidesReq

func NewOptAppPostRidesReq(v AppPostRidesReq) OptAppPostRidesReq

NewOptAppPostRidesReq returns new OptAppPostRidesReq with value set to v.

func (*OptAppPostRidesReq) Decode

func (o *OptAppPostRidesReq) Decode(d *jx.Decoder) error

Decode decodes AppPostRidesReq from json.

func (OptAppPostRidesReq) Encode

func (o OptAppPostRidesReq) Encode(e *jx.Encoder)

Encode encodes AppPostRidesReq as json.

func (OptAppPostRidesReq) Get

func (o OptAppPostRidesReq) Get() (v AppPostRidesReq, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptAppPostRidesReq) IsSet

func (o OptAppPostRidesReq) IsSet() bool

IsSet returns true if OptAppPostRidesReq was set.

func (OptAppPostRidesReq) MarshalJSON

func (s OptAppPostRidesReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptAppPostRidesReq) Or

Or returns value if set, or given parameter if does not.

func (*OptAppPostRidesReq) Reset

func (o *OptAppPostRidesReq) Reset()

Reset unsets value.

func (*OptAppPostRidesReq) SetTo

func (o *OptAppPostRidesReq) SetTo(v AppPostRidesReq)

SetTo sets value to v.

func (*OptAppPostRidesReq) UnmarshalJSON

func (s *OptAppPostRidesReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptAppPostUsersReq

type OptAppPostUsersReq struct {
	Value AppPostUsersReq
	Set   bool
}

OptAppPostUsersReq is optional AppPostUsersReq.

func NewOptAppPostUsersReq

func NewOptAppPostUsersReq(v AppPostUsersReq) OptAppPostUsersReq

NewOptAppPostUsersReq returns new OptAppPostUsersReq with value set to v.

func (*OptAppPostUsersReq) Decode

func (o *OptAppPostUsersReq) Decode(d *jx.Decoder) error

Decode decodes AppPostUsersReq from json.

func (OptAppPostUsersReq) Encode

func (o OptAppPostUsersReq) Encode(e *jx.Encoder)

Encode encodes AppPostUsersReq as json.

func (OptAppPostUsersReq) Get

func (o OptAppPostUsersReq) Get() (v AppPostUsersReq, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptAppPostUsersReq) IsSet

func (o OptAppPostUsersReq) IsSet() bool

IsSet returns true if OptAppPostUsersReq was set.

func (OptAppPostUsersReq) MarshalJSON

func (s OptAppPostUsersReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptAppPostUsersReq) Or

Or returns value if set, or given parameter if does not.

func (*OptAppPostUsersReq) Reset

func (o *OptAppPostUsersReq) Reset()

Reset unsets value.

func (*OptAppPostUsersReq) SetTo

func (o *OptAppPostUsersReq) SetTo(v AppPostUsersReq)

SetTo sets value to v.

func (*OptAppPostUsersReq) UnmarshalJSON

func (s *OptAppPostUsersReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptChairNotificationData

type OptChairNotificationData struct {
	Value ChairNotificationData
	Set   bool
}

OptChairNotificationData is optional ChairNotificationData.

func NewOptChairNotificationData

func NewOptChairNotificationData(v ChairNotificationData) OptChairNotificationData

NewOptChairNotificationData returns new OptChairNotificationData with value set to v.

func (*OptChairNotificationData) Decode

func (o *OptChairNotificationData) Decode(d *jx.Decoder) error

Decode decodes ChairNotificationData from json.

func (OptChairNotificationData) Encode

func (o OptChairNotificationData) Encode(e *jx.Encoder)

Encode encodes ChairNotificationData as json.

func (OptChairNotificationData) Get

Get returns value and boolean that denotes whether value was set.

func (OptChairNotificationData) IsSet

func (o OptChairNotificationData) IsSet() bool

IsSet returns true if OptChairNotificationData was set.

func (OptChairNotificationData) MarshalJSON

func (s OptChairNotificationData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptChairNotificationData) Or

Or returns value if set, or given parameter if does not.

func (*OptChairNotificationData) Reset

func (o *OptChairNotificationData) Reset()

Reset unsets value.

func (*OptChairNotificationData) SetTo

SetTo sets value to v.

func (*OptChairNotificationData) UnmarshalJSON

func (s *OptChairNotificationData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptChairPostActivityReq

type OptChairPostActivityReq struct {
	Value ChairPostActivityReq
	Set   bool
}

OptChairPostActivityReq is optional ChairPostActivityReq.

func NewOptChairPostActivityReq

func NewOptChairPostActivityReq(v ChairPostActivityReq) OptChairPostActivityReq

NewOptChairPostActivityReq returns new OptChairPostActivityReq with value set to v.

func (*OptChairPostActivityReq) Decode

func (o *OptChairPostActivityReq) Decode(d *jx.Decoder) error

Decode decodes ChairPostActivityReq from json.

func (OptChairPostActivityReq) Encode

func (o OptChairPostActivityReq) Encode(e *jx.Encoder)

Encode encodes ChairPostActivityReq as json.

func (OptChairPostActivityReq) Get

Get returns value and boolean that denotes whether value was set.

func (OptChairPostActivityReq) IsSet

func (o OptChairPostActivityReq) IsSet() bool

IsSet returns true if OptChairPostActivityReq was set.

func (OptChairPostActivityReq) MarshalJSON

func (s OptChairPostActivityReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptChairPostActivityReq) Or

Or returns value if set, or given parameter if does not.

func (*OptChairPostActivityReq) Reset

func (o *OptChairPostActivityReq) Reset()

Reset unsets value.

func (*OptChairPostActivityReq) SetTo

SetTo sets value to v.

func (*OptChairPostActivityReq) UnmarshalJSON

func (s *OptChairPostActivityReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptChairPostChairsReq

type OptChairPostChairsReq struct {
	Value ChairPostChairsReq
	Set   bool
}

OptChairPostChairsReq is optional ChairPostChairsReq.

func NewOptChairPostChairsReq

func NewOptChairPostChairsReq(v ChairPostChairsReq) OptChairPostChairsReq

NewOptChairPostChairsReq returns new OptChairPostChairsReq with value set to v.

func (*OptChairPostChairsReq) Decode

func (o *OptChairPostChairsReq) Decode(d *jx.Decoder) error

Decode decodes ChairPostChairsReq from json.

func (OptChairPostChairsReq) Encode

func (o OptChairPostChairsReq) Encode(e *jx.Encoder)

Encode encodes ChairPostChairsReq as json.

func (OptChairPostChairsReq) Get

Get returns value and boolean that denotes whether value was set.

func (OptChairPostChairsReq) IsSet

func (o OptChairPostChairsReq) IsSet() bool

IsSet returns true if OptChairPostChairsReq was set.

func (OptChairPostChairsReq) MarshalJSON

func (s OptChairPostChairsReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptChairPostChairsReq) Or

Or returns value if set, or given parameter if does not.

func (*OptChairPostChairsReq) Reset

func (o *OptChairPostChairsReq) Reset()

Reset unsets value.

func (*OptChairPostChairsReq) SetTo

SetTo sets value to v.

func (*OptChairPostChairsReq) UnmarshalJSON

func (s *OptChairPostChairsReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptChairPostRideStatusReq

type OptChairPostRideStatusReq struct {
	Value ChairPostRideStatusReq
	Set   bool
}

OptChairPostRideStatusReq is optional ChairPostRideStatusReq.

func NewOptChairPostRideStatusReq

func NewOptChairPostRideStatusReq(v ChairPostRideStatusReq) OptChairPostRideStatusReq

NewOptChairPostRideStatusReq returns new OptChairPostRideStatusReq with value set to v.

func (*OptChairPostRideStatusReq) Decode

func (o *OptChairPostRideStatusReq) Decode(d *jx.Decoder) error

Decode decodes ChairPostRideStatusReq from json.

func (OptChairPostRideStatusReq) Encode

func (o OptChairPostRideStatusReq) Encode(e *jx.Encoder)

Encode encodes ChairPostRideStatusReq as json.

func (OptChairPostRideStatusReq) Get

Get returns value and boolean that denotes whether value was set.

func (OptChairPostRideStatusReq) IsSet

func (o OptChairPostRideStatusReq) IsSet() bool

IsSet returns true if OptChairPostRideStatusReq was set.

func (OptChairPostRideStatusReq) MarshalJSON

func (s OptChairPostRideStatusReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptChairPostRideStatusReq) Or

Or returns value if set, or given parameter if does not.

func (*OptChairPostRideStatusReq) Reset

func (o *OptChairPostRideStatusReq) Reset()

Reset unsets value.

func (*OptChairPostRideStatusReq) SetTo

SetTo sets value to v.

func (*OptChairPostRideStatusReq) UnmarshalJSON

func (s *OptChairPostRideStatusReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCoordinate

type OptCoordinate struct {
	Value Coordinate
	Set   bool
}

OptCoordinate is optional Coordinate.

func NewOptCoordinate

func NewOptCoordinate(v Coordinate) OptCoordinate

NewOptCoordinate returns new OptCoordinate with value set to v.

func (*OptCoordinate) Decode

func (o *OptCoordinate) Decode(d *jx.Decoder) error

Decode decodes Coordinate from json.

func (OptCoordinate) Encode

func (o OptCoordinate) Encode(e *jx.Encoder)

Encode encodes Coordinate as json.

func (OptCoordinate) Get

func (o OptCoordinate) Get() (v Coordinate, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptCoordinate) IsSet

func (o OptCoordinate) IsSet() bool

IsSet returns true if OptCoordinate was set.

func (OptCoordinate) MarshalJSON

func (s OptCoordinate) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCoordinate) Or

Or returns value if set, or given parameter if does not.

func (*OptCoordinate) Reset

func (o *OptCoordinate) Reset()

Reset unsets value.

func (*OptCoordinate) SetTo

func (o *OptCoordinate) SetTo(v Coordinate)

SetTo sets value to v.

func (*OptCoordinate) UnmarshalJSON

func (s *OptCoordinate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptInt

type OptInt struct {
	Value int
	Set   bool
}

OptInt is optional int.

func NewOptInt

func NewOptInt(v int) OptInt

NewOptInt returns new OptInt with value set to v.

func (*OptInt) Decode

func (o *OptInt) Decode(d *jx.Decoder) error

Decode decodes int from json.

func (OptInt) Encode

func (o OptInt) Encode(e *jx.Encoder)

Encode encodes int as json.

func (OptInt) Get

func (o OptInt) Get() (v int, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptInt) IsSet

func (o OptInt) IsSet() bool

IsSet returns true if OptInt was set.

func (OptInt) MarshalJSON

func (s OptInt) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptInt) Or

func (o OptInt) Or(d int) int

Or returns value if set, or given parameter if does not.

func (*OptInt) Reset

func (o *OptInt) Reset()

Reset unsets value.

func (*OptInt) SetTo

func (o *OptInt) SetTo(v int)

SetTo sets value to v.

func (*OptInt) UnmarshalJSON

func (s *OptInt) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptInt64

type OptInt64 struct {
	Value int64
	Set   bool
}

OptInt64 is optional int64.

func NewOptInt64

func NewOptInt64(v int64) OptInt64

NewOptInt64 returns new OptInt64 with value set to v.

func (*OptInt64) Decode

func (o *OptInt64) Decode(d *jx.Decoder) error

Decode decodes int64 from json.

func (OptInt64) Encode

func (o OptInt64) Encode(e *jx.Encoder)

Encode encodes int64 as json.

func (OptInt64) Get

func (o OptInt64) Get() (v int64, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptInt64) IsSet

func (o OptInt64) IsSet() bool

IsSet returns true if OptInt64 was set.

func (OptInt64) MarshalJSON

func (s OptInt64) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptInt64) Or

func (o OptInt64) Or(d int64) int64

Or returns value if set, or given parameter if does not.

func (*OptInt64) Reset

func (o *OptInt64) Reset()

Reset unsets value.

func (*OptInt64) SetTo

func (o *OptInt64) SetTo(v int64)

SetTo sets value to v.

func (*OptInt64) UnmarshalJSON

func (s *OptInt64) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptOwnerPostOwnersReq

type OptOwnerPostOwnersReq struct {
	Value OwnerPostOwnersReq
	Set   bool
}

OptOwnerPostOwnersReq is optional OwnerPostOwnersReq.

func NewOptOwnerPostOwnersReq

func NewOptOwnerPostOwnersReq(v OwnerPostOwnersReq) OptOwnerPostOwnersReq

NewOptOwnerPostOwnersReq returns new OptOwnerPostOwnersReq with value set to v.

func (*OptOwnerPostOwnersReq) Decode

func (o *OptOwnerPostOwnersReq) Decode(d *jx.Decoder) error

Decode decodes OwnerPostOwnersReq from json.

func (OptOwnerPostOwnersReq) Encode

func (o OptOwnerPostOwnersReq) Encode(e *jx.Encoder)

Encode encodes OwnerPostOwnersReq as json.

func (OptOwnerPostOwnersReq) Get

Get returns value and boolean that denotes whether value was set.

func (OptOwnerPostOwnersReq) IsSet

func (o OptOwnerPostOwnersReq) IsSet() bool

IsSet returns true if OptOwnerPostOwnersReq was set.

func (OptOwnerPostOwnersReq) MarshalJSON

func (s OptOwnerPostOwnersReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptOwnerPostOwnersReq) Or

Or returns value if set, or given parameter if does not.

func (*OptOwnerPostOwnersReq) Reset

func (o *OptOwnerPostOwnersReq) Reset()

Reset unsets value.

func (*OptOwnerPostOwnersReq) SetTo

SetTo sets value to v.

func (*OptOwnerPostOwnersReq) UnmarshalJSON

func (s *OptOwnerPostOwnersReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPostInitializeReq

type OptPostInitializeReq struct {
	Value PostInitializeReq
	Set   bool
}

OptPostInitializeReq is optional PostInitializeReq.

func NewOptPostInitializeReq

func NewOptPostInitializeReq(v PostInitializeReq) OptPostInitializeReq

NewOptPostInitializeReq returns new OptPostInitializeReq with value set to v.

func (*OptPostInitializeReq) Decode

func (o *OptPostInitializeReq) Decode(d *jx.Decoder) error

Decode decodes PostInitializeReq from json.

func (OptPostInitializeReq) Encode

func (o OptPostInitializeReq) Encode(e *jx.Encoder)

Encode encodes PostInitializeReq as json.

func (OptPostInitializeReq) Get

Get returns value and boolean that denotes whether value was set.

func (OptPostInitializeReq) IsSet

func (o OptPostInitializeReq) IsSet() bool

IsSet returns true if OptPostInitializeReq was set.

func (OptPostInitializeReq) MarshalJSON

func (s OptPostInitializeReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPostInitializeReq) Or

Or returns value if set, or given parameter if does not.

func (*OptPostInitializeReq) Reset

func (o *OptPostInitializeReq) Reset()

Reset unsets value.

func (*OptPostInitializeReq) SetTo

SetTo sets value to v.

func (*OptPostInitializeReq) UnmarshalJSON

func (s *OptPostInitializeReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptString

type OptString struct {
	Value string
	Set   bool
}

OptString is optional string.

func NewOptString

func NewOptString(v string) OptString

NewOptString returns new OptString with value set to v.

func (*OptString) Decode

func (o *OptString) Decode(d *jx.Decoder) error

Decode decodes string from json.

func (OptString) Encode

func (o OptString) Encode(e *jx.Encoder)

Encode encodes string as json.

func (OptString) Get

func (o OptString) Get() (v string, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptString) IsSet

func (o OptString) IsSet() bool

IsSet returns true if OptString was set.

func (OptString) MarshalJSON

func (s OptString) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptString) Or

func (o OptString) Or(d string) string

Or returns value if set, or given parameter if does not.

func (*OptString) Reset

func (o *OptString) Reset()

Reset unsets value.

func (*OptString) SetTo

func (o *OptString) SetTo(v string)

SetTo sets value to v.

func (*OptString) UnmarshalJSON

func (s *OptString) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUserNotificationData

type OptUserNotificationData struct {
	Value UserNotificationData
	Set   bool
}

OptUserNotificationData is optional UserNotificationData.

func NewOptUserNotificationData

func NewOptUserNotificationData(v UserNotificationData) OptUserNotificationData

NewOptUserNotificationData returns new OptUserNotificationData with value set to v.

func (*OptUserNotificationData) Decode

func (o *OptUserNotificationData) Decode(d *jx.Decoder) error

Decode decodes UserNotificationData from json.

func (OptUserNotificationData) Encode

func (o OptUserNotificationData) Encode(e *jx.Encoder)

Encode encodes UserNotificationData as json.

func (OptUserNotificationData) Get

Get returns value and boolean that denotes whether value was set.

func (OptUserNotificationData) IsSet

func (o OptUserNotificationData) IsSet() bool

IsSet returns true if OptUserNotificationData was set.

func (OptUserNotificationData) MarshalJSON

func (s OptUserNotificationData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptUserNotificationData) Or

Or returns value if set, or given parameter if does not.

func (*OptUserNotificationData) Reset

func (o *OptUserNotificationData) Reset()

Reset unsets value.

func (*OptUserNotificationData) SetTo

SetTo sets value to v.

func (*OptUserNotificationData) UnmarshalJSON

func (s *OptUserNotificationData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUserNotificationDataChair

type OptUserNotificationDataChair struct {
	Value UserNotificationDataChair
	Set   bool
}

OptUserNotificationDataChair is optional UserNotificationDataChair.

func NewOptUserNotificationDataChair

func NewOptUserNotificationDataChair(v UserNotificationDataChair) OptUserNotificationDataChair

NewOptUserNotificationDataChair returns new OptUserNotificationDataChair with value set to v.

func (*OptUserNotificationDataChair) Decode

Decode decodes UserNotificationDataChair from json.

func (OptUserNotificationDataChair) Encode

Encode encodes UserNotificationDataChair as json.

func (OptUserNotificationDataChair) Get

Get returns value and boolean that denotes whether value was set.

func (OptUserNotificationDataChair) IsSet

IsSet returns true if OptUserNotificationDataChair was set.

func (OptUserNotificationDataChair) MarshalJSON

func (s OptUserNotificationDataChair) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptUserNotificationDataChair) Or

Or returns value if set, or given parameter if does not.

func (*OptUserNotificationDataChair) Reset

func (o *OptUserNotificationDataChair) Reset()

Reset unsets value.

func (*OptUserNotificationDataChair) SetTo

SetTo sets value to v.

func (*OptUserNotificationDataChair) UnmarshalJSON

func (s *OptUserNotificationDataChair) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Option

type Option interface {
	ClientOption
}

Option is config option.

type OwnerGetChairsOK

type OwnerGetChairsOK struct {
	Chairs []OwnerGetChairsOKChairsItem `json:"chairs"`
}

func (*OwnerGetChairsOK) Decode

func (s *OwnerGetChairsOK) Decode(d *jx.Decoder) error

Decode decodes OwnerGetChairsOK from json.

func (*OwnerGetChairsOK) Encode

func (s *OwnerGetChairsOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*OwnerGetChairsOK) GetChairs

GetChairs returns the value of Chairs.

func (*OwnerGetChairsOK) MarshalJSON

func (s *OwnerGetChairsOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*OwnerGetChairsOK) SetChairs

func (s *OwnerGetChairsOK) SetChairs(val []OwnerGetChairsOKChairsItem)

SetChairs sets the value of Chairs.

func (*OwnerGetChairsOK) UnmarshalJSON

func (s *OwnerGetChairsOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*OwnerGetChairsOK) Validate

func (s *OwnerGetChairsOK) Validate() error

type OwnerGetChairsOKChairsItem

type OwnerGetChairsOKChairsItem struct {
	// 椅子ID.
	ID string `json:"id"`
	// 椅子の名前.
	Name string `json:"name"`
	// 椅子のモデル.
	Model string `json:"model"`
	// 稼働中かどうか.
	Active bool `json:"active"`
	// 登録日時.
	RegisteredAt int64 `json:"registered_at"`
	// 総移動距離.
	TotalDistance int `json:"total_distance"`
	// 総移動距離の更新日時.
	TotalDistanceUpdatedAt OptInt64 `json:"total_distance_updated_at"`
}

func (*OwnerGetChairsOKChairsItem) Decode

Decode decodes OwnerGetChairsOKChairsItem from json.

func (*OwnerGetChairsOKChairsItem) Encode

func (s *OwnerGetChairsOKChairsItem) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*OwnerGetChairsOKChairsItem) GetActive

func (s *OwnerGetChairsOKChairsItem) GetActive() bool

GetActive returns the value of Active.

func (*OwnerGetChairsOKChairsItem) GetID

GetID returns the value of ID.

func (*OwnerGetChairsOKChairsItem) GetModel

func (s *OwnerGetChairsOKChairsItem) GetModel() string

GetModel returns the value of Model.

func (*OwnerGetChairsOKChairsItem) GetName

func (s *OwnerGetChairsOKChairsItem) GetName() string

GetName returns the value of Name.

func (*OwnerGetChairsOKChairsItem) GetRegisteredAt

func (s *OwnerGetChairsOKChairsItem) GetRegisteredAt() int64

GetRegisteredAt returns the value of RegisteredAt.

func (*OwnerGetChairsOKChairsItem) GetTotalDistance

func (s *OwnerGetChairsOKChairsItem) GetTotalDistance() int

GetTotalDistance returns the value of TotalDistance.

func (*OwnerGetChairsOKChairsItem) GetTotalDistanceUpdatedAt

func (s *OwnerGetChairsOKChairsItem) GetTotalDistanceUpdatedAt() OptInt64

GetTotalDistanceUpdatedAt returns the value of TotalDistanceUpdatedAt.

func (*OwnerGetChairsOKChairsItem) MarshalJSON

func (s *OwnerGetChairsOKChairsItem) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*OwnerGetChairsOKChairsItem) SetActive

func (s *OwnerGetChairsOKChairsItem) SetActive(val bool)

SetActive sets the value of Active.

func (*OwnerGetChairsOKChairsItem) SetID

func (s *OwnerGetChairsOKChairsItem) SetID(val string)

SetID sets the value of ID.

func (*OwnerGetChairsOKChairsItem) SetModel

func (s *OwnerGetChairsOKChairsItem) SetModel(val string)

SetModel sets the value of Model.

func (*OwnerGetChairsOKChairsItem) SetName

func (s *OwnerGetChairsOKChairsItem) SetName(val string)

SetName sets the value of Name.

func (*OwnerGetChairsOKChairsItem) SetRegisteredAt

func (s *OwnerGetChairsOKChairsItem) SetRegisteredAt(val int64)

SetRegisteredAt sets the value of RegisteredAt.

func (*OwnerGetChairsOKChairsItem) SetTotalDistance

func (s *OwnerGetChairsOKChairsItem) SetTotalDistance(val int)

SetTotalDistance sets the value of TotalDistance.

func (*OwnerGetChairsOKChairsItem) SetTotalDistanceUpdatedAt

func (s *OwnerGetChairsOKChairsItem) SetTotalDistanceUpdatedAt(val OptInt64)

SetTotalDistanceUpdatedAt sets the value of TotalDistanceUpdatedAt.

func (*OwnerGetChairsOKChairsItem) UnmarshalJSON

func (s *OwnerGetChairsOKChairsItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OwnerGetSalesOK

type OwnerGetSalesOK struct {
	// オーナーが管理する椅子全体の売上.
	TotalSales int `json:"total_sales"`
	// 椅子ごとの売上情報.
	Chairs []OwnerGetSalesOKChairsItem `json:"chairs"`
	// モデルごとの売上情報.
	Models []OwnerGetSalesOKModelsItem `json:"models"`
}

func (*OwnerGetSalesOK) Decode

func (s *OwnerGetSalesOK) Decode(d *jx.Decoder) error

Decode decodes OwnerGetSalesOK from json.

func (*OwnerGetSalesOK) Encode

func (s *OwnerGetSalesOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*OwnerGetSalesOK) GetChairs

func (s *OwnerGetSalesOK) GetChairs() []OwnerGetSalesOKChairsItem

GetChairs returns the value of Chairs.

func (*OwnerGetSalesOK) GetModels

func (s *OwnerGetSalesOK) GetModels() []OwnerGetSalesOKModelsItem

GetModels returns the value of Models.

func (*OwnerGetSalesOK) GetTotalSales

func (s *OwnerGetSalesOK) GetTotalSales() int

GetTotalSales returns the value of TotalSales.

func (*OwnerGetSalesOK) MarshalJSON

func (s *OwnerGetSalesOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*OwnerGetSalesOK) SetChairs

func (s *OwnerGetSalesOK) SetChairs(val []OwnerGetSalesOKChairsItem)

SetChairs sets the value of Chairs.

func (*OwnerGetSalesOK) SetModels

func (s *OwnerGetSalesOK) SetModels(val []OwnerGetSalesOKModelsItem)

SetModels sets the value of Models.

func (*OwnerGetSalesOK) SetTotalSales

func (s *OwnerGetSalesOK) SetTotalSales(val int)

SetTotalSales sets the value of TotalSales.

func (*OwnerGetSalesOK) UnmarshalJSON

func (s *OwnerGetSalesOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*OwnerGetSalesOK) Validate

func (s *OwnerGetSalesOK) Validate() error

type OwnerGetSalesOKChairsItem

type OwnerGetSalesOKChairsItem struct {
	// 椅子ID.
	ID string `json:"id"`
	// 椅子名.
	Name string `json:"name"`
	// 椅子ごとの売上.
	Sales int `json:"sales"`
}

func (*OwnerGetSalesOKChairsItem) Decode

func (s *OwnerGetSalesOKChairsItem) Decode(d *jx.Decoder) error

Decode decodes OwnerGetSalesOKChairsItem from json.

func (*OwnerGetSalesOKChairsItem) Encode

func (s *OwnerGetSalesOKChairsItem) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*OwnerGetSalesOKChairsItem) GetID

func (s *OwnerGetSalesOKChairsItem) GetID() string

GetID returns the value of ID.

func (*OwnerGetSalesOKChairsItem) GetName

func (s *OwnerGetSalesOKChairsItem) GetName() string

GetName returns the value of Name.

func (*OwnerGetSalesOKChairsItem) GetSales

func (s *OwnerGetSalesOKChairsItem) GetSales() int

GetSales returns the value of Sales.

func (*OwnerGetSalesOKChairsItem) MarshalJSON

func (s *OwnerGetSalesOKChairsItem) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*OwnerGetSalesOKChairsItem) SetID

func (s *OwnerGetSalesOKChairsItem) SetID(val string)

SetID sets the value of ID.

func (*OwnerGetSalesOKChairsItem) SetName

func (s *OwnerGetSalesOKChairsItem) SetName(val string)

SetName sets the value of Name.

func (*OwnerGetSalesOKChairsItem) SetSales

func (s *OwnerGetSalesOKChairsItem) SetSales(val int)

SetSales sets the value of Sales.

func (*OwnerGetSalesOKChairsItem) UnmarshalJSON

func (s *OwnerGetSalesOKChairsItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OwnerGetSalesOKModelsItem

type OwnerGetSalesOKModelsItem struct {
	// モデル.
	Model string `json:"model"`
	// モデルごとの売上.
	Sales int `json:"sales"`
}

func (*OwnerGetSalesOKModelsItem) Decode

func (s *OwnerGetSalesOKModelsItem) Decode(d *jx.Decoder) error

Decode decodes OwnerGetSalesOKModelsItem from json.

func (*OwnerGetSalesOKModelsItem) Encode

func (s *OwnerGetSalesOKModelsItem) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*OwnerGetSalesOKModelsItem) GetModel

func (s *OwnerGetSalesOKModelsItem) GetModel() string

GetModel returns the value of Model.

func (*OwnerGetSalesOKModelsItem) GetSales

func (s *OwnerGetSalesOKModelsItem) GetSales() int

GetSales returns the value of Sales.

func (*OwnerGetSalesOKModelsItem) MarshalJSON

func (s *OwnerGetSalesOKModelsItem) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*OwnerGetSalesOKModelsItem) SetModel

func (s *OwnerGetSalesOKModelsItem) SetModel(val string)

SetModel sets the value of Model.

func (*OwnerGetSalesOKModelsItem) SetSales

func (s *OwnerGetSalesOKModelsItem) SetSales(val int)

SetSales sets the value of Sales.

func (*OwnerGetSalesOKModelsItem) UnmarshalJSON

func (s *OwnerGetSalesOKModelsItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OwnerGetSalesParams

type OwnerGetSalesParams struct {
	// 開始日時(含む).
	Since OptInt64
	// 終了日時(含む).
	Until OptInt64
}

OwnerGetSalesParams is parameters of owner-get-sales operation.

type OwnerPostOwnersCreated

type OwnerPostOwnersCreated struct {
	// オーナーID.
	ID string `json:"id"`
	// 椅子をオーナーに紐づけるための椅子登録用トークン.
	ChairRegisterToken string `json:"chair_register_token"`
}

func (*OwnerPostOwnersCreated) Decode

func (s *OwnerPostOwnersCreated) Decode(d *jx.Decoder) error

Decode decodes OwnerPostOwnersCreated from json.

func (*OwnerPostOwnersCreated) Encode

func (s *OwnerPostOwnersCreated) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*OwnerPostOwnersCreated) GetChairRegisterToken

func (s *OwnerPostOwnersCreated) GetChairRegisterToken() string

GetChairRegisterToken returns the value of ChairRegisterToken.

func (*OwnerPostOwnersCreated) GetID

func (s *OwnerPostOwnersCreated) GetID() string

GetID returns the value of ID.

func (*OwnerPostOwnersCreated) MarshalJSON

func (s *OwnerPostOwnersCreated) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*OwnerPostOwnersCreated) SetChairRegisterToken

func (s *OwnerPostOwnersCreated) SetChairRegisterToken(val string)

SetChairRegisterToken sets the value of ChairRegisterToken.

func (*OwnerPostOwnersCreated) SetID

func (s *OwnerPostOwnersCreated) SetID(val string)

SetID sets the value of ID.

func (*OwnerPostOwnersCreated) UnmarshalJSON

func (s *OwnerPostOwnersCreated) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OwnerPostOwnersCreatedHeaders

type OwnerPostOwnersCreatedHeaders struct {
	SetCookie OptString
	Response  OwnerPostOwnersCreated
}

OwnerPostOwnersCreatedHeaders wraps OwnerPostOwnersCreated with response headers.

func (*OwnerPostOwnersCreatedHeaders) GetResponse

GetResponse returns the value of Response.

func (*OwnerPostOwnersCreatedHeaders) GetSetCookie

func (s *OwnerPostOwnersCreatedHeaders) GetSetCookie() OptString

GetSetCookie returns the value of SetCookie.

func (*OwnerPostOwnersCreatedHeaders) SetResponse

SetResponse sets the value of Response.

func (*OwnerPostOwnersCreatedHeaders) SetSetCookie

func (s *OwnerPostOwnersCreatedHeaders) SetSetCookie(val OptString)

SetSetCookie sets the value of SetCookie.

type OwnerPostOwnersReq

type OwnerPostOwnersReq struct {
	// オーナー名.
	Name string `json:"name"`
}

func (*OwnerPostOwnersReq) Decode

func (s *OwnerPostOwnersReq) Decode(d *jx.Decoder) error

Decode decodes OwnerPostOwnersReq from json.

func (*OwnerPostOwnersReq) Encode

func (s *OwnerPostOwnersReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*OwnerPostOwnersReq) GetName

func (s *OwnerPostOwnersReq) GetName() string

GetName returns the value of Name.

func (*OwnerPostOwnersReq) MarshalJSON

func (s *OwnerPostOwnersReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*OwnerPostOwnersReq) SetName

func (s *OwnerPostOwnersReq) SetName(val string)

SetName sets the value of Name.

func (*OwnerPostOwnersReq) UnmarshalJSON

func (s *OwnerPostOwnersReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OwnerPostOwnersRes

type OwnerPostOwnersRes interface {
	// contains filtered or unexported methods
}

type PostInitializeOK

type PostInitializeOK struct {
	// 実装言語
	// - go
	// - perl
	// - php
	// - python
	// - ruby
	// - rust
	// - node.
	Language string `json:"language"`
}

func (*PostInitializeOK) Decode

func (s *PostInitializeOK) Decode(d *jx.Decoder) error

Decode decodes PostInitializeOK from json.

func (*PostInitializeOK) Encode

func (s *PostInitializeOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PostInitializeOK) GetLanguage

func (s *PostInitializeOK) GetLanguage() string

GetLanguage returns the value of Language.

func (*PostInitializeOK) MarshalJSON

func (s *PostInitializeOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PostInitializeOK) SetLanguage

func (s *PostInitializeOK) SetLanguage(val string)

SetLanguage sets the value of Language.

func (*PostInitializeOK) UnmarshalJSON

func (s *PostInitializeOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PostInitializeReq

type PostInitializeReq struct {
	// 決済サーバーアドレス.
	PaymentServer string `json:"payment_server"`
}

func (*PostInitializeReq) Decode

func (s *PostInitializeReq) Decode(d *jx.Decoder) error

Decode decodes PostInitializeReq from json.

func (*PostInitializeReq) Encode

func (s *PostInitializeReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PostInitializeReq) GetPaymentServer

func (s *PostInitializeReq) GetPaymentServer() string

GetPaymentServer returns the value of PaymentServer.

func (*PostInitializeReq) MarshalJSON

func (s *PostInitializeReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PostInitializeReq) SetPaymentServer

func (s *PostInitializeReq) SetPaymentServer(val string)

SetPaymentServer sets the value of PaymentServer.

func (*PostInitializeReq) UnmarshalJSON

func (s *PostInitializeReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type RideStatus

type RideStatus string

ライドのステータス MATCHING: サービス上でマッチング処理を行なっていて椅子が確定していない ENROUTE: 椅子が確定し、乗車位置に向かっている PICKUP: 椅子が乗車位置に到着して、ユーザーの乗車を待機している CARRYING: ユーザーが乗車し、椅子が目的地に向かっている ARRIVED: 目的地に到着した COMPLETED: ユーザーの決済・椅子評価が完了した. Ref: #/components/schemas/RideStatus

const (
	RideStatusMATCHING  RideStatus = "MATCHING"
	RideStatusENROUTE   RideStatus = "ENROUTE"
	RideStatusPICKUP    RideStatus = "PICKUP"
	RideStatusCARRYING  RideStatus = "CARRYING"
	RideStatusARRIVED   RideStatus = "ARRIVED"
	RideStatusCOMPLETED RideStatus = "COMPLETED"
)

func (RideStatus) AllValues

func (RideStatus) AllValues() []RideStatus

AllValues returns all RideStatus values.

func (*RideStatus) Decode

func (s *RideStatus) Decode(d *jx.Decoder) error

Decode decodes RideStatus from json.

func (RideStatus) Encode

func (s RideStatus) Encode(e *jx.Encoder)

Encode encodes RideStatus as json.

func (RideStatus) MarshalJSON

func (s RideStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (RideStatus) MarshalText

func (s RideStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*RideStatus) UnmarshalJSON

func (s *RideStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*RideStatus) UnmarshalText

func (s *RideStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (RideStatus) Validate

func (s RideStatus) Validate() error

type User

type User struct {
	// ユーザーID.
	ID string `json:"id"`
	// ユーザー名.
	Name string `json:"name"`
}

簡易ユーザー情報. Ref: #/components/schemas/User

func (*User) Decode

func (s *User) Decode(d *jx.Decoder) error

Decode decodes User from json.

func (*User) Encode

func (s *User) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*User) GetID

func (s *User) GetID() string

GetID returns the value of ID.

func (*User) GetName

func (s *User) GetName() string

GetName returns the value of Name.

func (*User) MarshalJSON

func (s *User) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*User) SetID

func (s *User) SetID(val string)

SetID sets the value of ID.

func (*User) SetName

func (s *User) SetName(val string)

SetName sets the value of Name.

func (*User) UnmarshalJSON

func (s *User) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UserNotificationData

type UserNotificationData struct {
	// ライドID.
	RideID                string     `json:"ride_id"`
	PickupCoordinate      Coordinate `json:"pickup_coordinate"`
	DestinationCoordinate Coordinate `json:"destination_coordinate"`
	// 運賃(割引後).
	Fare   int        `json:"fare"`
	Status RideStatus `json:"status"`
	// 椅子情報.
	Chair OptUserNotificationDataChair `json:"chair"`
	// 配車要求日時.
	CreatedAt int64 `json:"created_at"`
	// 配車要求更新日時.
	UpdatedAt int64 `json:"updated_at"`
}

ユーザー向け通知データ. Ref: #/components/schemas/UserNotificationData

func (*UserNotificationData) Decode

func (s *UserNotificationData) Decode(d *jx.Decoder) error

Decode decodes UserNotificationData from json.

func (*UserNotificationData) Encode

func (s *UserNotificationData) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UserNotificationData) GetChair

GetChair returns the value of Chair.

func (*UserNotificationData) GetCreatedAt

func (s *UserNotificationData) GetCreatedAt() int64

GetCreatedAt returns the value of CreatedAt.

func (*UserNotificationData) GetDestinationCoordinate

func (s *UserNotificationData) GetDestinationCoordinate() Coordinate

GetDestinationCoordinate returns the value of DestinationCoordinate.

func (*UserNotificationData) GetFare

func (s *UserNotificationData) GetFare() int

GetFare returns the value of Fare.

func (*UserNotificationData) GetPickupCoordinate

func (s *UserNotificationData) GetPickupCoordinate() Coordinate

GetPickupCoordinate returns the value of PickupCoordinate.

func (*UserNotificationData) GetRideID

func (s *UserNotificationData) GetRideID() string

GetRideID returns the value of RideID.

func (*UserNotificationData) GetStatus

func (s *UserNotificationData) GetStatus() RideStatus

GetStatus returns the value of Status.

func (*UserNotificationData) GetUpdatedAt

func (s *UserNotificationData) GetUpdatedAt() int64

GetUpdatedAt returns the value of UpdatedAt.

func (*UserNotificationData) MarshalJSON

func (s *UserNotificationData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UserNotificationData) SetChair

SetChair sets the value of Chair.

func (*UserNotificationData) SetCreatedAt

func (s *UserNotificationData) SetCreatedAt(val int64)

SetCreatedAt sets the value of CreatedAt.

func (*UserNotificationData) SetDestinationCoordinate

func (s *UserNotificationData) SetDestinationCoordinate(val Coordinate)

SetDestinationCoordinate sets the value of DestinationCoordinate.

func (*UserNotificationData) SetFare

func (s *UserNotificationData) SetFare(val int)

SetFare sets the value of Fare.

func (*UserNotificationData) SetPickupCoordinate

func (s *UserNotificationData) SetPickupCoordinate(val Coordinate)

SetPickupCoordinate sets the value of PickupCoordinate.

func (*UserNotificationData) SetRideID

func (s *UserNotificationData) SetRideID(val string)

SetRideID sets the value of RideID.

func (*UserNotificationData) SetStatus

func (s *UserNotificationData) SetStatus(val RideStatus)

SetStatus sets the value of Status.

func (*UserNotificationData) SetUpdatedAt

func (s *UserNotificationData) SetUpdatedAt(val int64)

SetUpdatedAt sets the value of UpdatedAt.

func (*UserNotificationData) UnmarshalJSON

func (s *UserNotificationData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UserNotificationData) Validate

func (s *UserNotificationData) Validate() error

type UserNotificationDataChair

type UserNotificationDataChair struct {
	// 椅子ID.
	ID string `json:"id"`
	// 椅子の名前.
	Name string `json:"name"`
	// 椅子のモデル.
	Model string `json:"model"`
	// 椅子の統計情報.
	Stats UserNotificationDataChairStats `json:"stats"`
}

椅子情報.

func (*UserNotificationDataChair) Decode

func (s *UserNotificationDataChair) Decode(d *jx.Decoder) error

Decode decodes UserNotificationDataChair from json.

func (*UserNotificationDataChair) Encode

func (s *UserNotificationDataChair) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UserNotificationDataChair) GetID

func (s *UserNotificationDataChair) GetID() string

GetID returns the value of ID.

func (*UserNotificationDataChair) GetModel

func (s *UserNotificationDataChair) GetModel() string

GetModel returns the value of Model.

func (*UserNotificationDataChair) GetName

func (s *UserNotificationDataChair) GetName() string

GetName returns the value of Name.

func (*UserNotificationDataChair) GetStats

GetStats returns the value of Stats.

func (*UserNotificationDataChair) MarshalJSON

func (s *UserNotificationDataChair) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UserNotificationDataChair) SetID

func (s *UserNotificationDataChair) SetID(val string)

SetID sets the value of ID.

func (*UserNotificationDataChair) SetModel

func (s *UserNotificationDataChair) SetModel(val string)

SetModel sets the value of Model.

func (*UserNotificationDataChair) SetName

func (s *UserNotificationDataChair) SetName(val string)

SetName sets the value of Name.

func (*UserNotificationDataChair) SetStats

SetStats sets the value of Stats.

func (*UserNotificationDataChair) UnmarshalJSON

func (s *UserNotificationDataChair) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UserNotificationDataChair) Validate

func (s *UserNotificationDataChair) Validate() error

type UserNotificationDataChairStats

type UserNotificationDataChairStats struct {
	// 総乗車回数.
	TotalRidesCount int `json:"total_rides_count"`
	// 総評価平均.
	TotalEvaluationAvg float64 `json:"total_evaluation_avg"`
}

椅子の統計情報.

func (*UserNotificationDataChairStats) Decode

Decode decodes UserNotificationDataChairStats from json.

func (*UserNotificationDataChairStats) Encode

Encode implements json.Marshaler.

func (*UserNotificationDataChairStats) GetTotalEvaluationAvg

func (s *UserNotificationDataChairStats) GetTotalEvaluationAvg() float64

GetTotalEvaluationAvg returns the value of TotalEvaluationAvg.

func (*UserNotificationDataChairStats) GetTotalRidesCount

func (s *UserNotificationDataChairStats) GetTotalRidesCount() int

GetTotalRidesCount returns the value of TotalRidesCount.

func (*UserNotificationDataChairStats) MarshalJSON

func (s *UserNotificationDataChairStats) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UserNotificationDataChairStats) SetTotalEvaluationAvg

func (s *UserNotificationDataChairStats) SetTotalEvaluationAvg(val float64)

SetTotalEvaluationAvg sets the value of TotalEvaluationAvg.

func (*UserNotificationDataChairStats) SetTotalRidesCount

func (s *UserNotificationDataChairStats) SetTotalRidesCount(val int)

SetTotalRidesCount sets the value of TotalRidesCount.

func (*UserNotificationDataChairStats) UnmarshalJSON

func (s *UserNotificationDataChairStats) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UserNotificationDataChairStats) Validate

func (s *UserNotificationDataChairStats) Validate() error

Jump to

Keyboard shortcuts

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