Documentation ¶
Overview ¶
Code generated by ogen, DO NOT EDIT.
Index ¶
- func WithServerURL(ctx context.Context, u *url.URL) context.Context
- type AppGetNearbyChairsOK
- func (s *AppGetNearbyChairsOK) Decode(d *jx.Decoder) error
- func (s *AppGetNearbyChairsOK) Encode(e *jx.Encoder)
- func (s *AppGetNearbyChairsOK) GetChairs() []AppGetNearbyChairsOKChairsItem
- func (s *AppGetNearbyChairsOK) GetRetrievedAt() int64
- func (s *AppGetNearbyChairsOK) MarshalJSON() ([]byte, error)
- func (s *AppGetNearbyChairsOK) SetChairs(val []AppGetNearbyChairsOKChairsItem)
- func (s *AppGetNearbyChairsOK) SetRetrievedAt(val int64)
- func (s *AppGetNearbyChairsOK) UnmarshalJSON(data []byte) error
- func (s *AppGetNearbyChairsOK) Validate() error
- type AppGetNearbyChairsOKChairsItem
- func (s *AppGetNearbyChairsOKChairsItem) Decode(d *jx.Decoder) error
- func (s *AppGetNearbyChairsOKChairsItem) Encode(e *jx.Encoder)
- func (s *AppGetNearbyChairsOKChairsItem) GetCurrentCoordinate() Coordinate
- func (s *AppGetNearbyChairsOKChairsItem) GetID() string
- func (s *AppGetNearbyChairsOKChairsItem) GetModel() string
- func (s *AppGetNearbyChairsOKChairsItem) GetName() string
- func (s *AppGetNearbyChairsOKChairsItem) MarshalJSON() ([]byte, error)
- func (s *AppGetNearbyChairsOKChairsItem) SetCurrentCoordinate(val Coordinate)
- func (s *AppGetNearbyChairsOKChairsItem) SetID(val string)
- func (s *AppGetNearbyChairsOKChairsItem) SetModel(val string)
- func (s *AppGetNearbyChairsOKChairsItem) SetName(val string)
- func (s *AppGetNearbyChairsOKChairsItem) UnmarshalJSON(data []byte) error
- type AppGetNearbyChairsParams
- type AppGetNotificationOK
- func (s *AppGetNotificationOK) Decode(d *jx.Decoder) error
- func (s *AppGetNotificationOK) Encode(e *jx.Encoder)
- func (s *AppGetNotificationOK) GetData() OptUserNotificationData
- func (s *AppGetNotificationOK) GetRetryAfterMs() OptInt
- func (s *AppGetNotificationOK) MarshalJSON() ([]byte, error)
- func (s *AppGetNotificationOK) SetData(val OptUserNotificationData)
- func (s *AppGetNotificationOK) SetRetryAfterMs(val OptInt)
- func (s *AppGetNotificationOK) UnmarshalJSON(data []byte) error
- func (s *AppGetNotificationOK) Validate() error
- type AppGetRidesOK
- func (s *AppGetRidesOK) Decode(d *jx.Decoder) error
- func (s *AppGetRidesOK) Encode(e *jx.Encoder)
- func (s *AppGetRidesOK) GetRides() []AppGetRidesOKRidesItem
- func (s *AppGetRidesOK) MarshalJSON() ([]byte, error)
- func (s *AppGetRidesOK) SetRides(val []AppGetRidesOKRidesItem)
- func (s *AppGetRidesOK) UnmarshalJSON(data []byte) error
- func (s *AppGetRidesOK) Validate() error
- type AppGetRidesOKRidesItem
- func (s *AppGetRidesOKRidesItem) Decode(d *jx.Decoder) error
- func (s *AppGetRidesOKRidesItem) Encode(e *jx.Encoder)
- func (s *AppGetRidesOKRidesItem) GetChair() AppGetRidesOKRidesItemChair
- func (s *AppGetRidesOKRidesItem) GetCompletedAt() int64
- func (s *AppGetRidesOKRidesItem) GetDestinationCoordinate() Coordinate
- func (s *AppGetRidesOKRidesItem) GetEvaluation() int
- func (s *AppGetRidesOKRidesItem) GetFare() int
- func (s *AppGetRidesOKRidesItem) GetID() string
- func (s *AppGetRidesOKRidesItem) GetPickupCoordinate() Coordinate
- func (s *AppGetRidesOKRidesItem) GetRequestedAt() int64
- func (s *AppGetRidesOKRidesItem) MarshalJSON() ([]byte, error)
- func (s *AppGetRidesOKRidesItem) SetChair(val AppGetRidesOKRidesItemChair)
- func (s *AppGetRidesOKRidesItem) SetCompletedAt(val int64)
- func (s *AppGetRidesOKRidesItem) SetDestinationCoordinate(val Coordinate)
- func (s *AppGetRidesOKRidesItem) SetEvaluation(val int)
- func (s *AppGetRidesOKRidesItem) SetFare(val int)
- func (s *AppGetRidesOKRidesItem) SetID(val string)
- func (s *AppGetRidesOKRidesItem) SetPickupCoordinate(val Coordinate)
- func (s *AppGetRidesOKRidesItem) SetRequestedAt(val int64)
- func (s *AppGetRidesOKRidesItem) UnmarshalJSON(data []byte) error
- type AppGetRidesOKRidesItemChair
- func (s *AppGetRidesOKRidesItemChair) Decode(d *jx.Decoder) error
- func (s *AppGetRidesOKRidesItemChair) Encode(e *jx.Encoder)
- func (s *AppGetRidesOKRidesItemChair) GetID() string
- func (s *AppGetRidesOKRidesItemChair) GetModel() string
- func (s *AppGetRidesOKRidesItemChair) GetName() string
- func (s *AppGetRidesOKRidesItemChair) GetOwner() string
- func (s *AppGetRidesOKRidesItemChair) MarshalJSON() ([]byte, error)
- func (s *AppGetRidesOKRidesItemChair) SetID(val string)
- func (s *AppGetRidesOKRidesItemChair) SetModel(val string)
- func (s *AppGetRidesOKRidesItemChair) SetName(val string)
- func (s *AppGetRidesOKRidesItemChair) SetOwner(val string)
- func (s *AppGetRidesOKRidesItemChair) UnmarshalJSON(data []byte) error
- type AppPostPaymentMethodsNoContent
- type AppPostPaymentMethodsReq
- func (s *AppPostPaymentMethodsReq) Decode(d *jx.Decoder) error
- func (s *AppPostPaymentMethodsReq) Encode(e *jx.Encoder)
- func (s *AppPostPaymentMethodsReq) GetToken() string
- func (s *AppPostPaymentMethodsReq) MarshalJSON() ([]byte, error)
- func (s *AppPostPaymentMethodsReq) SetToken(val string)
- func (s *AppPostPaymentMethodsReq) UnmarshalJSON(data []byte) error
- type AppPostPaymentMethodsRes
- type AppPostRideEvaluationBadRequest
- type AppPostRideEvaluationNotFound
- type AppPostRideEvaluationOK
- func (s *AppPostRideEvaluationOK) Decode(d *jx.Decoder) error
- func (s *AppPostRideEvaluationOK) Encode(e *jx.Encoder)
- func (s *AppPostRideEvaluationOK) GetCompletedAt() int64
- func (s *AppPostRideEvaluationOK) MarshalJSON() ([]byte, error)
- func (s *AppPostRideEvaluationOK) SetCompletedAt(val int64)
- func (s *AppPostRideEvaluationOK) UnmarshalJSON(data []byte) error
- type AppPostRideEvaluationParams
- type AppPostRideEvaluationReq
- func (s *AppPostRideEvaluationReq) Decode(d *jx.Decoder) error
- func (s *AppPostRideEvaluationReq) Encode(e *jx.Encoder)
- func (s *AppPostRideEvaluationReq) GetEvaluation() int
- func (s *AppPostRideEvaluationReq) MarshalJSON() ([]byte, error)
- func (s *AppPostRideEvaluationReq) SetEvaluation(val int)
- func (s *AppPostRideEvaluationReq) UnmarshalJSON(data []byte) error
- func (s *AppPostRideEvaluationReq) Validate() error
- type AppPostRideEvaluationRes
- type AppPostRidesAccepted
- func (s *AppPostRidesAccepted) Decode(d *jx.Decoder) error
- func (s *AppPostRidesAccepted) Encode(e *jx.Encoder)
- func (s *AppPostRidesAccepted) GetFare() int
- func (s *AppPostRidesAccepted) GetRideID() string
- func (s *AppPostRidesAccepted) MarshalJSON() ([]byte, error)
- func (s *AppPostRidesAccepted) SetFare(val int)
- func (s *AppPostRidesAccepted) SetRideID(val string)
- func (s *AppPostRidesAccepted) UnmarshalJSON(data []byte) error
- type AppPostRidesBadRequest
- type AppPostRidesConflict
- type AppPostRidesEstimatedFareOK
- func (s *AppPostRidesEstimatedFareOK) Decode(d *jx.Decoder) error
- func (s *AppPostRidesEstimatedFareOK) Encode(e *jx.Encoder)
- func (s *AppPostRidesEstimatedFareOK) GetDiscount() int
- func (s *AppPostRidesEstimatedFareOK) GetFare() int
- func (s *AppPostRidesEstimatedFareOK) MarshalJSON() ([]byte, error)
- func (s *AppPostRidesEstimatedFareOK) SetDiscount(val int)
- func (s *AppPostRidesEstimatedFareOK) SetFare(val int)
- func (s *AppPostRidesEstimatedFareOK) UnmarshalJSON(data []byte) error
- type AppPostRidesEstimatedFareReq
- func (s *AppPostRidesEstimatedFareReq) Decode(d *jx.Decoder) error
- func (s *AppPostRidesEstimatedFareReq) Encode(e *jx.Encoder)
- func (s *AppPostRidesEstimatedFareReq) GetDestinationCoordinate() Coordinate
- func (s *AppPostRidesEstimatedFareReq) GetPickupCoordinate() Coordinate
- func (s *AppPostRidesEstimatedFareReq) MarshalJSON() ([]byte, error)
- func (s *AppPostRidesEstimatedFareReq) SetDestinationCoordinate(val Coordinate)
- func (s *AppPostRidesEstimatedFareReq) SetPickupCoordinate(val Coordinate)
- func (s *AppPostRidesEstimatedFareReq) UnmarshalJSON(data []byte) error
- type AppPostRidesEstimatedFareRes
- type AppPostRidesReq
- func (s *AppPostRidesReq) Decode(d *jx.Decoder) error
- func (s *AppPostRidesReq) Encode(e *jx.Encoder)
- func (s *AppPostRidesReq) GetDestinationCoordinate() Coordinate
- func (s *AppPostRidesReq) GetPickupCoordinate() Coordinate
- func (s *AppPostRidesReq) MarshalJSON() ([]byte, error)
- func (s *AppPostRidesReq) SetDestinationCoordinate(val Coordinate)
- func (s *AppPostRidesReq) SetPickupCoordinate(val Coordinate)
- func (s *AppPostRidesReq) UnmarshalJSON(data []byte) error
- type AppPostRidesRes
- type AppPostUsersCreated
- func (s *AppPostUsersCreated) Decode(d *jx.Decoder) error
- func (s *AppPostUsersCreated) Encode(e *jx.Encoder)
- func (s *AppPostUsersCreated) GetID() string
- func (s *AppPostUsersCreated) GetInvitationCode() string
- func (s *AppPostUsersCreated) MarshalJSON() ([]byte, error)
- func (s *AppPostUsersCreated) SetID(val string)
- func (s *AppPostUsersCreated) SetInvitationCode(val string)
- func (s *AppPostUsersCreated) UnmarshalJSON(data []byte) error
- type AppPostUsersCreatedHeaders
- type AppPostUsersReq
- func (s *AppPostUsersReq) Decode(d *jx.Decoder) error
- func (s *AppPostUsersReq) Encode(e *jx.Encoder)
- func (s *AppPostUsersReq) GetDateOfBirth() string
- func (s *AppPostUsersReq) GetFirstname() string
- func (s *AppPostUsersReq) GetInvitationCode() OptString
- func (s *AppPostUsersReq) GetLastname() string
- func (s *AppPostUsersReq) GetUsername() string
- func (s *AppPostUsersReq) MarshalJSON() ([]byte, error)
- func (s *AppPostUsersReq) SetDateOfBirth(val string)
- func (s *AppPostUsersReq) SetFirstname(val string)
- func (s *AppPostUsersReq) SetInvitationCode(val OptString)
- func (s *AppPostUsersReq) SetLastname(val string)
- func (s *AppPostUsersReq) SetUsername(val string)
- func (s *AppPostUsersReq) UnmarshalJSON(data []byte) error
- type AppPostUsersRes
- type ChairGetNotificationOK
- func (s *ChairGetNotificationOK) Decode(d *jx.Decoder) error
- func (s *ChairGetNotificationOK) Encode(e *jx.Encoder)
- func (s *ChairGetNotificationOK) GetData() OptChairNotificationData
- func (s *ChairGetNotificationOK) GetRetryAfterMs() OptInt
- func (s *ChairGetNotificationOK) MarshalJSON() ([]byte, error)
- func (s *ChairGetNotificationOK) SetData(val OptChairNotificationData)
- func (s *ChairGetNotificationOK) SetRetryAfterMs(val OptInt)
- func (s *ChairGetNotificationOK) UnmarshalJSON(data []byte) error
- func (s *ChairGetNotificationOK) Validate() error
- type ChairNotificationData
- func (s *ChairNotificationData) Decode(d *jx.Decoder) error
- func (s *ChairNotificationData) Encode(e *jx.Encoder)
- func (s *ChairNotificationData) GetDestinationCoordinate() Coordinate
- func (s *ChairNotificationData) GetPickupCoordinate() Coordinate
- func (s *ChairNotificationData) GetRideID() string
- func (s *ChairNotificationData) GetStatus() RideStatus
- func (s *ChairNotificationData) GetUser() User
- func (s *ChairNotificationData) MarshalJSON() ([]byte, error)
- func (s *ChairNotificationData) SetDestinationCoordinate(val Coordinate)
- func (s *ChairNotificationData) SetPickupCoordinate(val Coordinate)
- func (s *ChairNotificationData) SetRideID(val string)
- func (s *ChairNotificationData) SetStatus(val RideStatus)
- func (s *ChairNotificationData) SetUser(val User)
- func (s *ChairNotificationData) UnmarshalJSON(data []byte) error
- func (s *ChairNotificationData) Validate() error
- type ChairPostActivityNoContent
- type ChairPostActivityReq
- func (s *ChairPostActivityReq) Decode(d *jx.Decoder) error
- func (s *ChairPostActivityReq) Encode(e *jx.Encoder)
- func (s *ChairPostActivityReq) GetIsActive() bool
- func (s *ChairPostActivityReq) MarshalJSON() ([]byte, error)
- func (s *ChairPostActivityReq) SetIsActive(val bool)
- func (s *ChairPostActivityReq) UnmarshalJSON(data []byte) error
- type ChairPostChairsCreated
- func (s *ChairPostChairsCreated) Decode(d *jx.Decoder) error
- func (s *ChairPostChairsCreated) Encode(e *jx.Encoder)
- func (s *ChairPostChairsCreated) GetID() string
- func (s *ChairPostChairsCreated) GetOwnerID() string
- func (s *ChairPostChairsCreated) MarshalJSON() ([]byte, error)
- func (s *ChairPostChairsCreated) SetID(val string)
- func (s *ChairPostChairsCreated) SetOwnerID(val string)
- func (s *ChairPostChairsCreated) UnmarshalJSON(data []byte) error
- type ChairPostChairsCreatedHeaders
- type ChairPostChairsReq
- func (s *ChairPostChairsReq) Decode(d *jx.Decoder) error
- func (s *ChairPostChairsReq) Encode(e *jx.Encoder)
- func (s *ChairPostChairsReq) GetChairRegisterToken() string
- func (s *ChairPostChairsReq) GetModel() string
- func (s *ChairPostChairsReq) GetName() string
- func (s *ChairPostChairsReq) MarshalJSON() ([]byte, error)
- func (s *ChairPostChairsReq) SetChairRegisterToken(val string)
- func (s *ChairPostChairsReq) SetModel(val string)
- func (s *ChairPostChairsReq) SetName(val string)
- func (s *ChairPostChairsReq) UnmarshalJSON(data []byte) error
- type ChairPostCoordinateOK
- func (s *ChairPostCoordinateOK) Decode(d *jx.Decoder) error
- func (s *ChairPostCoordinateOK) Encode(e *jx.Encoder)
- func (s *ChairPostCoordinateOK) GetRecordedAt() int64
- func (s *ChairPostCoordinateOK) MarshalJSON() ([]byte, error)
- func (s *ChairPostCoordinateOK) SetRecordedAt(val int64)
- func (s *ChairPostCoordinateOK) UnmarshalJSON(data []byte) error
- type ChairPostRideStatusNoContent
- type ChairPostRideStatusParams
- type ChairPostRideStatusReq
- func (s *ChairPostRideStatusReq) Decode(d *jx.Decoder) error
- func (s *ChairPostRideStatusReq) Encode(e *jx.Encoder)
- func (s *ChairPostRideStatusReq) GetStatus() ChairPostRideStatusReqStatus
- func (s *ChairPostRideStatusReq) MarshalJSON() ([]byte, error)
- func (s *ChairPostRideStatusReq) SetStatus(val ChairPostRideStatusReqStatus)
- func (s *ChairPostRideStatusReq) UnmarshalJSON(data []byte) error
- func (s *ChairPostRideStatusReq) Validate() error
- type ChairPostRideStatusReqStatus
- func (ChairPostRideStatusReqStatus) AllValues() []ChairPostRideStatusReqStatus
- func (s *ChairPostRideStatusReqStatus) Decode(d *jx.Decoder) error
- func (s ChairPostRideStatusReqStatus) Encode(e *jx.Encoder)
- func (s ChairPostRideStatusReqStatus) MarshalJSON() ([]byte, error)
- func (s ChairPostRideStatusReqStatus) MarshalText() ([]byte, error)
- func (s *ChairPostRideStatusReqStatus) UnmarshalJSON(data []byte) error
- func (s *ChairPostRideStatusReqStatus) UnmarshalText(data []byte) error
- func (s ChairPostRideStatusReqStatus) Validate() error
- type ChairPostRideStatusRes
- type Client
- func (c *Client) AppGetNearbyChairs(ctx context.Context, params AppGetNearbyChairsParams) (*AppGetNearbyChairsOK, error)
- func (c *Client) AppGetNotification(ctx context.Context) (*AppGetNotificationOK, error)
- func (c *Client) AppGetRides(ctx context.Context) (*AppGetRidesOK, error)
- func (c *Client) AppPostPaymentMethods(ctx context.Context, request OptAppPostPaymentMethodsReq) (AppPostPaymentMethodsRes, error)
- func (c *Client) AppPostRideEvaluation(ctx context.Context, request OptAppPostRideEvaluationReq, ...) (AppPostRideEvaluationRes, error)
- func (c *Client) AppPostRides(ctx context.Context, request OptAppPostRidesReq) (AppPostRidesRes, error)
- func (c *Client) AppPostRidesEstimatedFare(ctx context.Context, request OptAppPostRidesEstimatedFareReq) (AppPostRidesEstimatedFareRes, error)
- func (c *Client) AppPostUsers(ctx context.Context, request OptAppPostUsersReq) (AppPostUsersRes, error)
- func (c *Client) ChairGetNotification(ctx context.Context) (*ChairGetNotificationOK, error)
- func (c *Client) ChairPostActivity(ctx context.Context, request OptChairPostActivityReq) error
- func (c *Client) ChairPostChairs(ctx context.Context, request OptChairPostChairsReq) (*ChairPostChairsCreatedHeaders, error)
- func (c *Client) ChairPostCoordinate(ctx context.Context, request OptCoordinate) (*ChairPostCoordinateOK, error)
- func (c *Client) ChairPostRideStatus(ctx context.Context, request OptChairPostRideStatusReq, ...) (ChairPostRideStatusRes, error)
- func (c *Client) InternalGetMatching(ctx context.Context) error
- func (c *Client) OwnerGetChairs(ctx context.Context) (*OwnerGetChairsOK, error)
- func (c *Client) OwnerGetSales(ctx context.Context, params OwnerGetSalesParams) (*OwnerGetSalesOK, error)
- func (c *Client) OwnerPostOwners(ctx context.Context, request OptOwnerPostOwnersReq) (OwnerPostOwnersRes, error)
- func (c *Client) PostInitialize(ctx context.Context, request OptPostInitializeReq) (*PostInitializeOK, error)
- type ClientOption
- type Coordinate
- func (s *Coordinate) Decode(d *jx.Decoder) error
- func (s *Coordinate) Encode(e *jx.Encoder)
- func (s *Coordinate) GetLatitude() int
- func (s *Coordinate) GetLongitude() int
- func (s *Coordinate) MarshalJSON() ([]byte, error)
- func (s *Coordinate) SetLatitude(val int)
- func (s *Coordinate) SetLongitude(val int)
- func (s *Coordinate) UnmarshalJSON(data []byte) error
- type Error
- type InternalGetMatchingNoContent
- type Invoker
- type OptAppPostPaymentMethodsReq
- func (o *OptAppPostPaymentMethodsReq) Decode(d *jx.Decoder) error
- func (o OptAppPostPaymentMethodsReq) Encode(e *jx.Encoder)
- func (o OptAppPostPaymentMethodsReq) Get() (v AppPostPaymentMethodsReq, ok bool)
- func (o OptAppPostPaymentMethodsReq) IsSet() bool
- func (s OptAppPostPaymentMethodsReq) MarshalJSON() ([]byte, error)
- func (o OptAppPostPaymentMethodsReq) Or(d AppPostPaymentMethodsReq) AppPostPaymentMethodsReq
- func (o *OptAppPostPaymentMethodsReq) Reset()
- func (o *OptAppPostPaymentMethodsReq) SetTo(v AppPostPaymentMethodsReq)
- func (s *OptAppPostPaymentMethodsReq) UnmarshalJSON(data []byte) error
- type OptAppPostRideEvaluationReq
- func (o *OptAppPostRideEvaluationReq) Decode(d *jx.Decoder) error
- func (o OptAppPostRideEvaluationReq) Encode(e *jx.Encoder)
- func (o OptAppPostRideEvaluationReq) Get() (v AppPostRideEvaluationReq, ok bool)
- func (o OptAppPostRideEvaluationReq) IsSet() bool
- func (s OptAppPostRideEvaluationReq) MarshalJSON() ([]byte, error)
- func (o OptAppPostRideEvaluationReq) Or(d AppPostRideEvaluationReq) AppPostRideEvaluationReq
- func (o *OptAppPostRideEvaluationReq) Reset()
- func (o *OptAppPostRideEvaluationReq) SetTo(v AppPostRideEvaluationReq)
- func (s *OptAppPostRideEvaluationReq) UnmarshalJSON(data []byte) error
- type OptAppPostRidesEstimatedFareReq
- func (o *OptAppPostRidesEstimatedFareReq) Decode(d *jx.Decoder) error
- func (o OptAppPostRidesEstimatedFareReq) Encode(e *jx.Encoder)
- func (o OptAppPostRidesEstimatedFareReq) Get() (v AppPostRidesEstimatedFareReq, ok bool)
- func (o OptAppPostRidesEstimatedFareReq) IsSet() bool
- func (s OptAppPostRidesEstimatedFareReq) MarshalJSON() ([]byte, error)
- func (o OptAppPostRidesEstimatedFareReq) Or(d AppPostRidesEstimatedFareReq) AppPostRidesEstimatedFareReq
- func (o *OptAppPostRidesEstimatedFareReq) Reset()
- func (o *OptAppPostRidesEstimatedFareReq) SetTo(v AppPostRidesEstimatedFareReq)
- func (s *OptAppPostRidesEstimatedFareReq) UnmarshalJSON(data []byte) error
- type OptAppPostRidesReq
- func (o *OptAppPostRidesReq) Decode(d *jx.Decoder) error
- func (o OptAppPostRidesReq) Encode(e *jx.Encoder)
- func (o OptAppPostRidesReq) Get() (v AppPostRidesReq, ok bool)
- func (o OptAppPostRidesReq) IsSet() bool
- func (s OptAppPostRidesReq) MarshalJSON() ([]byte, error)
- func (o OptAppPostRidesReq) Or(d AppPostRidesReq) AppPostRidesReq
- func (o *OptAppPostRidesReq) Reset()
- func (o *OptAppPostRidesReq) SetTo(v AppPostRidesReq)
- func (s *OptAppPostRidesReq) UnmarshalJSON(data []byte) error
- type OptAppPostUsersReq
- func (o *OptAppPostUsersReq) Decode(d *jx.Decoder) error
- func (o OptAppPostUsersReq) Encode(e *jx.Encoder)
- func (o OptAppPostUsersReq) Get() (v AppPostUsersReq, ok bool)
- func (o OptAppPostUsersReq) IsSet() bool
- func (s OptAppPostUsersReq) MarshalJSON() ([]byte, error)
- func (o OptAppPostUsersReq) Or(d AppPostUsersReq) AppPostUsersReq
- func (o *OptAppPostUsersReq) Reset()
- func (o *OptAppPostUsersReq) SetTo(v AppPostUsersReq)
- func (s *OptAppPostUsersReq) UnmarshalJSON(data []byte) error
- type OptChairNotificationData
- func (o *OptChairNotificationData) Decode(d *jx.Decoder) error
- func (o OptChairNotificationData) Encode(e *jx.Encoder)
- func (o OptChairNotificationData) Get() (v ChairNotificationData, ok bool)
- func (o OptChairNotificationData) IsSet() bool
- func (s OptChairNotificationData) MarshalJSON() ([]byte, error)
- func (o OptChairNotificationData) Or(d ChairNotificationData) ChairNotificationData
- func (o *OptChairNotificationData) Reset()
- func (o *OptChairNotificationData) SetTo(v ChairNotificationData)
- func (s *OptChairNotificationData) UnmarshalJSON(data []byte) error
- type OptChairPostActivityReq
- func (o *OptChairPostActivityReq) Decode(d *jx.Decoder) error
- func (o OptChairPostActivityReq) Encode(e *jx.Encoder)
- func (o OptChairPostActivityReq) Get() (v ChairPostActivityReq, ok bool)
- func (o OptChairPostActivityReq) IsSet() bool
- func (s OptChairPostActivityReq) MarshalJSON() ([]byte, error)
- func (o OptChairPostActivityReq) Or(d ChairPostActivityReq) ChairPostActivityReq
- func (o *OptChairPostActivityReq) Reset()
- func (o *OptChairPostActivityReq) SetTo(v ChairPostActivityReq)
- func (s *OptChairPostActivityReq) UnmarshalJSON(data []byte) error
- type OptChairPostChairsReq
- func (o *OptChairPostChairsReq) Decode(d *jx.Decoder) error
- func (o OptChairPostChairsReq) Encode(e *jx.Encoder)
- func (o OptChairPostChairsReq) Get() (v ChairPostChairsReq, ok bool)
- func (o OptChairPostChairsReq) IsSet() bool
- func (s OptChairPostChairsReq) MarshalJSON() ([]byte, error)
- func (o OptChairPostChairsReq) Or(d ChairPostChairsReq) ChairPostChairsReq
- func (o *OptChairPostChairsReq) Reset()
- func (o *OptChairPostChairsReq) SetTo(v ChairPostChairsReq)
- func (s *OptChairPostChairsReq) UnmarshalJSON(data []byte) error
- type OptChairPostRideStatusReq
- func (o *OptChairPostRideStatusReq) Decode(d *jx.Decoder) error
- func (o OptChairPostRideStatusReq) Encode(e *jx.Encoder)
- func (o OptChairPostRideStatusReq) Get() (v ChairPostRideStatusReq, ok bool)
- func (o OptChairPostRideStatusReq) IsSet() bool
- func (s OptChairPostRideStatusReq) MarshalJSON() ([]byte, error)
- func (o OptChairPostRideStatusReq) Or(d ChairPostRideStatusReq) ChairPostRideStatusReq
- func (o *OptChairPostRideStatusReq) Reset()
- func (o *OptChairPostRideStatusReq) SetTo(v ChairPostRideStatusReq)
- func (s *OptChairPostRideStatusReq) UnmarshalJSON(data []byte) error
- type OptCoordinate
- func (o *OptCoordinate) Decode(d *jx.Decoder) error
- func (o OptCoordinate) Encode(e *jx.Encoder)
- func (o OptCoordinate) Get() (v Coordinate, ok bool)
- func (o OptCoordinate) IsSet() bool
- func (s OptCoordinate) MarshalJSON() ([]byte, error)
- func (o OptCoordinate) Or(d Coordinate) Coordinate
- func (o *OptCoordinate) Reset()
- func (o *OptCoordinate) SetTo(v Coordinate)
- func (s *OptCoordinate) UnmarshalJSON(data []byte) error
- type OptInt
- func (o *OptInt) Decode(d *jx.Decoder) error
- func (o OptInt) Encode(e *jx.Encoder)
- func (o OptInt) Get() (v int, ok bool)
- func (o OptInt) IsSet() bool
- func (s OptInt) MarshalJSON() ([]byte, error)
- func (o OptInt) Or(d int) int
- func (o *OptInt) Reset()
- func (o *OptInt) SetTo(v int)
- func (s *OptInt) UnmarshalJSON(data []byte) error
- type OptInt64
- func (o *OptInt64) Decode(d *jx.Decoder) error
- func (o OptInt64) Encode(e *jx.Encoder)
- func (o OptInt64) Get() (v int64, ok bool)
- func (o OptInt64) IsSet() bool
- func (s OptInt64) MarshalJSON() ([]byte, error)
- func (o OptInt64) Or(d int64) int64
- func (o *OptInt64) Reset()
- func (o *OptInt64) SetTo(v int64)
- func (s *OptInt64) UnmarshalJSON(data []byte) error
- type OptOwnerPostOwnersReq
- func (o *OptOwnerPostOwnersReq) Decode(d *jx.Decoder) error
- func (o OptOwnerPostOwnersReq) Encode(e *jx.Encoder)
- func (o OptOwnerPostOwnersReq) Get() (v OwnerPostOwnersReq, ok bool)
- func (o OptOwnerPostOwnersReq) IsSet() bool
- func (s OptOwnerPostOwnersReq) MarshalJSON() ([]byte, error)
- func (o OptOwnerPostOwnersReq) Or(d OwnerPostOwnersReq) OwnerPostOwnersReq
- func (o *OptOwnerPostOwnersReq) Reset()
- func (o *OptOwnerPostOwnersReq) SetTo(v OwnerPostOwnersReq)
- func (s *OptOwnerPostOwnersReq) UnmarshalJSON(data []byte) error
- type OptPostInitializeReq
- func (o *OptPostInitializeReq) Decode(d *jx.Decoder) error
- func (o OptPostInitializeReq) Encode(e *jx.Encoder)
- func (o OptPostInitializeReq) Get() (v PostInitializeReq, ok bool)
- func (o OptPostInitializeReq) IsSet() bool
- func (s OptPostInitializeReq) MarshalJSON() ([]byte, error)
- func (o OptPostInitializeReq) Or(d PostInitializeReq) PostInitializeReq
- func (o *OptPostInitializeReq) Reset()
- func (o *OptPostInitializeReq) SetTo(v PostInitializeReq)
- func (s *OptPostInitializeReq) UnmarshalJSON(data []byte) error
- type OptString
- func (o *OptString) Decode(d *jx.Decoder) error
- func (o OptString) Encode(e *jx.Encoder)
- func (o OptString) Get() (v string, ok bool)
- func (o OptString) IsSet() bool
- func (s OptString) MarshalJSON() ([]byte, error)
- func (o OptString) Or(d string) string
- func (o *OptString) Reset()
- func (o *OptString) SetTo(v string)
- func (s *OptString) UnmarshalJSON(data []byte) error
- type OptUserNotificationData
- func (o *OptUserNotificationData) Decode(d *jx.Decoder) error
- func (o OptUserNotificationData) Encode(e *jx.Encoder)
- func (o OptUserNotificationData) Get() (v UserNotificationData, ok bool)
- func (o OptUserNotificationData) IsSet() bool
- func (s OptUserNotificationData) MarshalJSON() ([]byte, error)
- func (o OptUserNotificationData) Or(d UserNotificationData) UserNotificationData
- func (o *OptUserNotificationData) Reset()
- func (o *OptUserNotificationData) SetTo(v UserNotificationData)
- func (s *OptUserNotificationData) UnmarshalJSON(data []byte) error
- type OptUserNotificationDataChair
- func (o *OptUserNotificationDataChair) Decode(d *jx.Decoder) error
- func (o OptUserNotificationDataChair) Encode(e *jx.Encoder)
- func (o OptUserNotificationDataChair) Get() (v UserNotificationDataChair, ok bool)
- func (o OptUserNotificationDataChair) IsSet() bool
- func (s OptUserNotificationDataChair) MarshalJSON() ([]byte, error)
- func (o OptUserNotificationDataChair) Or(d UserNotificationDataChair) UserNotificationDataChair
- func (o *OptUserNotificationDataChair) Reset()
- func (o *OptUserNotificationDataChair) SetTo(v UserNotificationDataChair)
- func (s *OptUserNotificationDataChair) UnmarshalJSON(data []byte) error
- type Option
- type OwnerGetChairsOK
- func (s *OwnerGetChairsOK) Decode(d *jx.Decoder) error
- func (s *OwnerGetChairsOK) Encode(e *jx.Encoder)
- func (s *OwnerGetChairsOK) GetChairs() []OwnerGetChairsOKChairsItem
- func (s *OwnerGetChairsOK) MarshalJSON() ([]byte, error)
- func (s *OwnerGetChairsOK) SetChairs(val []OwnerGetChairsOKChairsItem)
- func (s *OwnerGetChairsOK) UnmarshalJSON(data []byte) error
- func (s *OwnerGetChairsOK) Validate() error
- type OwnerGetChairsOKChairsItem
- func (s *OwnerGetChairsOKChairsItem) Decode(d *jx.Decoder) error
- func (s *OwnerGetChairsOKChairsItem) Encode(e *jx.Encoder)
- func (s *OwnerGetChairsOKChairsItem) GetActive() bool
- func (s *OwnerGetChairsOKChairsItem) GetID() string
- func (s *OwnerGetChairsOKChairsItem) GetModel() string
- func (s *OwnerGetChairsOKChairsItem) GetName() string
- func (s *OwnerGetChairsOKChairsItem) GetRegisteredAt() int64
- func (s *OwnerGetChairsOKChairsItem) GetTotalDistance() int
- func (s *OwnerGetChairsOKChairsItem) GetTotalDistanceUpdatedAt() OptInt64
- func (s *OwnerGetChairsOKChairsItem) MarshalJSON() ([]byte, error)
- func (s *OwnerGetChairsOKChairsItem) SetActive(val bool)
- func (s *OwnerGetChairsOKChairsItem) SetID(val string)
- func (s *OwnerGetChairsOKChairsItem) SetModel(val string)
- func (s *OwnerGetChairsOKChairsItem) SetName(val string)
- func (s *OwnerGetChairsOKChairsItem) SetRegisteredAt(val int64)
- func (s *OwnerGetChairsOKChairsItem) SetTotalDistance(val int)
- func (s *OwnerGetChairsOKChairsItem) SetTotalDistanceUpdatedAt(val OptInt64)
- func (s *OwnerGetChairsOKChairsItem) UnmarshalJSON(data []byte) error
- type OwnerGetSalesOK
- func (s *OwnerGetSalesOK) Decode(d *jx.Decoder) error
- func (s *OwnerGetSalesOK) Encode(e *jx.Encoder)
- func (s *OwnerGetSalesOK) GetChairs() []OwnerGetSalesOKChairsItem
- func (s *OwnerGetSalesOK) GetModels() []OwnerGetSalesOKModelsItem
- func (s *OwnerGetSalesOK) GetTotalSales() int
- func (s *OwnerGetSalesOK) MarshalJSON() ([]byte, error)
- func (s *OwnerGetSalesOK) SetChairs(val []OwnerGetSalesOKChairsItem)
- func (s *OwnerGetSalesOK) SetModels(val []OwnerGetSalesOKModelsItem)
- func (s *OwnerGetSalesOK) SetTotalSales(val int)
- func (s *OwnerGetSalesOK) UnmarshalJSON(data []byte) error
- func (s *OwnerGetSalesOK) Validate() error
- type OwnerGetSalesOKChairsItem
- func (s *OwnerGetSalesOKChairsItem) Decode(d *jx.Decoder) error
- func (s *OwnerGetSalesOKChairsItem) Encode(e *jx.Encoder)
- func (s *OwnerGetSalesOKChairsItem) GetID() string
- func (s *OwnerGetSalesOKChairsItem) GetName() string
- func (s *OwnerGetSalesOKChairsItem) GetSales() int
- func (s *OwnerGetSalesOKChairsItem) MarshalJSON() ([]byte, error)
- func (s *OwnerGetSalesOKChairsItem) SetID(val string)
- func (s *OwnerGetSalesOKChairsItem) SetName(val string)
- func (s *OwnerGetSalesOKChairsItem) SetSales(val int)
- func (s *OwnerGetSalesOKChairsItem) UnmarshalJSON(data []byte) error
- type OwnerGetSalesOKModelsItem
- func (s *OwnerGetSalesOKModelsItem) Decode(d *jx.Decoder) error
- func (s *OwnerGetSalesOKModelsItem) Encode(e *jx.Encoder)
- func (s *OwnerGetSalesOKModelsItem) GetModel() string
- func (s *OwnerGetSalesOKModelsItem) GetSales() int
- func (s *OwnerGetSalesOKModelsItem) MarshalJSON() ([]byte, error)
- func (s *OwnerGetSalesOKModelsItem) SetModel(val string)
- func (s *OwnerGetSalesOKModelsItem) SetSales(val int)
- func (s *OwnerGetSalesOKModelsItem) UnmarshalJSON(data []byte) error
- type OwnerGetSalesParams
- type OwnerPostOwnersCreated
- func (s *OwnerPostOwnersCreated) Decode(d *jx.Decoder) error
- func (s *OwnerPostOwnersCreated) Encode(e *jx.Encoder)
- func (s *OwnerPostOwnersCreated) GetChairRegisterToken() string
- func (s *OwnerPostOwnersCreated) GetID() string
- func (s *OwnerPostOwnersCreated) MarshalJSON() ([]byte, error)
- func (s *OwnerPostOwnersCreated) SetChairRegisterToken(val string)
- func (s *OwnerPostOwnersCreated) SetID(val string)
- func (s *OwnerPostOwnersCreated) UnmarshalJSON(data []byte) error
- type OwnerPostOwnersCreatedHeaders
- type OwnerPostOwnersReq
- func (s *OwnerPostOwnersReq) Decode(d *jx.Decoder) error
- func (s *OwnerPostOwnersReq) Encode(e *jx.Encoder)
- func (s *OwnerPostOwnersReq) GetName() string
- func (s *OwnerPostOwnersReq) MarshalJSON() ([]byte, error)
- func (s *OwnerPostOwnersReq) SetName(val string)
- func (s *OwnerPostOwnersReq) UnmarshalJSON(data []byte) error
- type OwnerPostOwnersRes
- type PostInitializeOK
- func (s *PostInitializeOK) Decode(d *jx.Decoder) error
- func (s *PostInitializeOK) Encode(e *jx.Encoder)
- func (s *PostInitializeOK) GetLanguage() string
- func (s *PostInitializeOK) MarshalJSON() ([]byte, error)
- func (s *PostInitializeOK) SetLanguage(val string)
- func (s *PostInitializeOK) UnmarshalJSON(data []byte) error
- type PostInitializeReq
- func (s *PostInitializeReq) Decode(d *jx.Decoder) error
- func (s *PostInitializeReq) Encode(e *jx.Encoder)
- func (s *PostInitializeReq) GetPaymentServer() string
- func (s *PostInitializeReq) MarshalJSON() ([]byte, error)
- func (s *PostInitializeReq) SetPaymentServer(val string)
- func (s *PostInitializeReq) UnmarshalJSON(data []byte) error
- type RideStatus
- func (RideStatus) AllValues() []RideStatus
- func (s *RideStatus) Decode(d *jx.Decoder) error
- func (s RideStatus) Encode(e *jx.Encoder)
- func (s RideStatus) MarshalJSON() ([]byte, error)
- func (s RideStatus) MarshalText() ([]byte, error)
- func (s *RideStatus) UnmarshalJSON(data []byte) error
- func (s *RideStatus) UnmarshalText(data []byte) error
- func (s RideStatus) Validate() error
- type User
- func (s *User) Decode(d *jx.Decoder) error
- func (s *User) Encode(e *jx.Encoder)
- func (s *User) GetID() string
- func (s *User) GetName() string
- func (s *User) MarshalJSON() ([]byte, error)
- func (s *User) SetID(val string)
- func (s *User) SetName(val string)
- func (s *User) UnmarshalJSON(data []byte) error
- type UserNotificationData
- func (s *UserNotificationData) Decode(d *jx.Decoder) error
- func (s *UserNotificationData) Encode(e *jx.Encoder)
- func (s *UserNotificationData) GetChair() OptUserNotificationDataChair
- func (s *UserNotificationData) GetCreatedAt() int64
- func (s *UserNotificationData) GetDestinationCoordinate() Coordinate
- func (s *UserNotificationData) GetFare() int
- func (s *UserNotificationData) GetPickupCoordinate() Coordinate
- func (s *UserNotificationData) GetRideID() string
- func (s *UserNotificationData) GetStatus() RideStatus
- func (s *UserNotificationData) GetUpdatedAt() int64
- func (s *UserNotificationData) MarshalJSON() ([]byte, error)
- func (s *UserNotificationData) SetChair(val OptUserNotificationDataChair)
- func (s *UserNotificationData) SetCreatedAt(val int64)
- func (s *UserNotificationData) SetDestinationCoordinate(val Coordinate)
- func (s *UserNotificationData) SetFare(val int)
- func (s *UserNotificationData) SetPickupCoordinate(val Coordinate)
- func (s *UserNotificationData) SetRideID(val string)
- func (s *UserNotificationData) SetStatus(val RideStatus)
- func (s *UserNotificationData) SetUpdatedAt(val int64)
- func (s *UserNotificationData) UnmarshalJSON(data []byte) error
- func (s *UserNotificationData) Validate() error
- type UserNotificationDataChair
- func (s *UserNotificationDataChair) Decode(d *jx.Decoder) error
- func (s *UserNotificationDataChair) Encode(e *jx.Encoder)
- func (s *UserNotificationDataChair) GetID() string
- func (s *UserNotificationDataChair) GetModel() string
- func (s *UserNotificationDataChair) GetName() string
- func (s *UserNotificationDataChair) GetStats() UserNotificationDataChairStats
- func (s *UserNotificationDataChair) MarshalJSON() ([]byte, error)
- func (s *UserNotificationDataChair) SetID(val string)
- func (s *UserNotificationDataChair) SetModel(val string)
- func (s *UserNotificationDataChair) SetName(val string)
- func (s *UserNotificationDataChair) SetStats(val UserNotificationDataChairStats)
- func (s *UserNotificationDataChair) UnmarshalJSON(data []byte) error
- func (s *UserNotificationDataChair) Validate() error
- type UserNotificationDataChairStats
- func (s *UserNotificationDataChairStats) Decode(d *jx.Decoder) error
- func (s *UserNotificationDataChairStats) Encode(e *jx.Encoder)
- func (s *UserNotificationDataChairStats) GetTotalEvaluationAvg() float64
- func (s *UserNotificationDataChairStats) GetTotalRidesCount() int
- func (s *UserNotificationDataChairStats) MarshalJSON() ([]byte, error)
- func (s *UserNotificationDataChairStats) SetTotalEvaluationAvg(val float64)
- func (s *UserNotificationDataChairStats) SetTotalRidesCount(val int)
- func (s *UserNotificationDataChairStats) UnmarshalJSON(data []byte) error
- func (s *UserNotificationDataChairStats) Validate() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
func (s *AppGetNearbyChairsOK) GetChairs() []AppGetNearbyChairsOKChairsItem
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 ¶
func (s *AppGetNearbyChairsOK) SetChairs(val []AppGetNearbyChairsOKChairsItem)
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 ¶
func (s *AppGetNearbyChairsOKChairsItem) Decode(d *jx.Decoder) error
Decode decodes AppGetNearbyChairsOKChairsItem from json.
func (*AppGetNearbyChairsOKChairsItem) Encode ¶
func (s *AppGetNearbyChairsOKChairsItem) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*AppGetNearbyChairsOKChairsItem) GetCurrentCoordinate ¶
func (s *AppGetNearbyChairsOKChairsItem) GetCurrentCoordinate() Coordinate
GetCurrentCoordinate returns the value of CurrentCoordinate.
func (*AppGetNearbyChairsOKChairsItem) GetID ¶
func (s *AppGetNearbyChairsOKChairsItem) GetID() string
GetID returns the value of ID.
func (*AppGetNearbyChairsOKChairsItem) GetModel ¶
func (s *AppGetNearbyChairsOKChairsItem) GetModel() string
GetModel returns the value of Model.
func (*AppGetNearbyChairsOKChairsItem) GetName ¶
func (s *AppGetNearbyChairsOKChairsItem) GetName() string
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 ¶
func (s *AppGetNotificationOK) GetData() OptUserNotificationData
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 ¶
func (s *AppGetNotificationOK) SetData(val OptUserNotificationData)
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 ¶
func (s *AppGetRidesOKRidesItem) GetChair() AppGetRidesOKRidesItemChair
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 ¶
func (s *AppGetRidesOKRidesItem) SetChair(val AppGetRidesOKRidesItemChair)
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 ¶
func (s *AppGetRidesOKRidesItemChair) Decode(d *jx.Decoder) error
Decode decodes AppGetRidesOKRidesItemChair from json.
func (*AppGetRidesOKRidesItemChair) Encode ¶
func (s *AppGetRidesOKRidesItemChair) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*AppGetRidesOKRidesItemChair) GetID ¶
func (s *AppGetRidesOKRidesItemChair) GetID() string
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 ¶
func (s *AppPostRideEvaluationBadRequest) Decode(d *jx.Decoder) error
Decode decodes AppPostRideEvaluationBadRequest from json.
func (*AppPostRideEvaluationBadRequest) Encode ¶
func (s *AppPostRideEvaluationBadRequest) Encode(e *jx.Encoder)
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 ¶
func (s *AppPostRideEvaluationNotFound) Decode(d *jx.Decoder) error
Decode decodes AppPostRideEvaluationNotFound from json.
func (*AppPostRideEvaluationNotFound) Encode ¶
func (s *AppPostRideEvaluationNotFound) Encode(e *jx.Encoder)
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 ¶
func (s *AppPostRidesEstimatedFareOK) Decode(d *jx.Decoder) error
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 ¶
func (s *AppPostRidesEstimatedFareReq) Decode(d *jx.Decoder) error
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 ¶
func (s *AppPostUsersCreatedHeaders) GetResponse() AppPostUsersCreated
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 ¶
func (s *ChairGetNotificationOK) GetData() OptChairNotificationData
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 ¶
func (s *ChairGetNotificationOK) SetData(val OptChairNotificationData)
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 ¶
func (s *ChairPostChairsCreatedHeaders) GetResponse() ChairPostChairsCreated
GetResponse returns the value of Response.
func (*ChairPostChairsCreatedHeaders) GetSetCookie ¶
func (s *ChairPostChairsCreatedHeaders) GetSetCookie() OptString
GetSetCookie returns the value of SetCookie.
func (*ChairPostChairsCreatedHeaders) SetResponse ¶
func (s *ChairPostChairsCreatedHeaders) SetResponse(val ChairPostChairsCreated)
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 ¶
func (s *ChairPostRideStatusReq) GetStatus() ChairPostRideStatusReqStatus
GetStatus returns the value of Status.
func (*ChairPostRideStatusReq) MarshalJSON ¶
func (s *ChairPostRideStatusReq) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ChairPostRideStatusReq) SetStatus ¶
func (s *ChairPostRideStatusReq) SetStatus(val ChairPostRideStatusReqStatus)
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 ¶
func (ChairPostRideStatusReqStatus) AllValues() []ChairPostRideStatusReqStatus
AllValues returns all ChairPostRideStatusReqStatus values.
func (*ChairPostRideStatusReqStatus) Decode ¶
func (s *ChairPostRideStatusReqStatus) Decode(d *jx.Decoder) error
Decode decodes ChairPostRideStatusReqStatus from json.
func (ChairPostRideStatusReqStatus) Encode ¶
func (s ChairPostRideStatusReqStatus) Encode(e *jx.Encoder)
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 ¶
func (c *Client) AppPostRideEvaluation(ctx context.Context, request OptAppPostRideEvaluationReq, params AppPostRideEvaluationParams) (AppPostRideEvaluationRes, error)
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 ¶
func (c *Client) ChairPostRideStatus(ctx context.Context, request OptChairPostRideStatusReq, params ChairPostRideStatusParams) (ChairPostRideStatusRes, error)
ChairPostRideStatus invokes chair-post-ride-status operation.
椅子がライドのステータスを更新する.
POST /chair/rides/{ride_id}/status
func (*Client) InternalGetMatching ¶
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) GetMessage ¶
GetMessage returns the value of Message.
func (*Error) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Error) SetMessage ¶
SetMessage sets the value of Message.
func (*Error) UnmarshalJSON ¶
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 ¶
func (o *OptAppPostPaymentMethodsReq) Decode(d *jx.Decoder) error
Decode decodes AppPostPaymentMethodsReq from json.
func (OptAppPostPaymentMethodsReq) Encode ¶
func (o OptAppPostPaymentMethodsReq) Encode(e *jx.Encoder)
Encode encodes AppPostPaymentMethodsReq as json.
func (OptAppPostPaymentMethodsReq) Get ¶
func (o OptAppPostPaymentMethodsReq) Get() (v AppPostPaymentMethodsReq, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptAppPostPaymentMethodsReq) IsSet ¶
func (o OptAppPostPaymentMethodsReq) IsSet() bool
IsSet returns true if OptAppPostPaymentMethodsReq was set.
func (OptAppPostPaymentMethodsReq) MarshalJSON ¶
func (s OptAppPostPaymentMethodsReq) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OptAppPostPaymentMethodsReq) Reset ¶
func (o *OptAppPostPaymentMethodsReq) Reset()
Reset unsets value.
func (*OptAppPostPaymentMethodsReq) SetTo ¶
func (o *OptAppPostPaymentMethodsReq) SetTo(v AppPostPaymentMethodsReq)
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 ¶
func (o *OptAppPostRideEvaluationReq) Decode(d *jx.Decoder) error
Decode decodes AppPostRideEvaluationReq from json.
func (OptAppPostRideEvaluationReq) Encode ¶
func (o OptAppPostRideEvaluationReq) Encode(e *jx.Encoder)
Encode encodes AppPostRideEvaluationReq as json.
func (OptAppPostRideEvaluationReq) Get ¶
func (o OptAppPostRideEvaluationReq) Get() (v AppPostRideEvaluationReq, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptAppPostRideEvaluationReq) IsSet ¶
func (o OptAppPostRideEvaluationReq) IsSet() bool
IsSet returns true if OptAppPostRideEvaluationReq was set.
func (OptAppPostRideEvaluationReq) MarshalJSON ¶
func (s OptAppPostRideEvaluationReq) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OptAppPostRideEvaluationReq) Reset ¶
func (o *OptAppPostRideEvaluationReq) Reset()
Reset unsets value.
func (*OptAppPostRideEvaluationReq) SetTo ¶
func (o *OptAppPostRideEvaluationReq) SetTo(v AppPostRideEvaluationReq)
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 ¶
func (o *OptAppPostRidesEstimatedFareReq) Decode(d *jx.Decoder) error
Decode decodes AppPostRidesEstimatedFareReq from json.
func (OptAppPostRidesEstimatedFareReq) Encode ¶
func (o OptAppPostRidesEstimatedFareReq) Encode(e *jx.Encoder)
Encode encodes AppPostRidesEstimatedFareReq as json.
func (OptAppPostRidesEstimatedFareReq) Get ¶
func (o OptAppPostRidesEstimatedFareReq) Get() (v AppPostRidesEstimatedFareReq, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptAppPostRidesEstimatedFareReq) IsSet ¶
func (o OptAppPostRidesEstimatedFareReq) IsSet() bool
IsSet returns true if OptAppPostRidesEstimatedFareReq was set.
func (OptAppPostRidesEstimatedFareReq) MarshalJSON ¶
func (s OptAppPostRidesEstimatedFareReq) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptAppPostRidesEstimatedFareReq) Or ¶
func (o OptAppPostRidesEstimatedFareReq) Or(d AppPostRidesEstimatedFareReq) AppPostRidesEstimatedFareReq
Or returns value if set, or given parameter if does not.
func (*OptAppPostRidesEstimatedFareReq) Reset ¶
func (o *OptAppPostRidesEstimatedFareReq) Reset()
Reset unsets value.
func (*OptAppPostRidesEstimatedFareReq) SetTo ¶
func (o *OptAppPostRidesEstimatedFareReq) SetTo(v AppPostRidesEstimatedFareReq)
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 ¶
func (o OptAppPostRidesReq) Or(d AppPostRidesReq) AppPostRidesReq
Or returns value if set, or given parameter if does not.
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 ¶
func (o OptAppPostUsersReq) Or(d AppPostUsersReq) AppPostUsersReq
Or returns value if set, or given parameter if does not.
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 ¶
func (o OptChairNotificationData) Get() (v ChairNotificationData, ok bool)
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 ¶
func (o OptChairNotificationData) Or(d ChairNotificationData) ChairNotificationData
Or returns value if set, or given parameter if does not.
func (*OptChairNotificationData) Reset ¶
func (o *OptChairNotificationData) Reset()
Reset unsets value.
func (*OptChairNotificationData) SetTo ¶
func (o *OptChairNotificationData) SetTo(v ChairNotificationData)
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 ¶
func (o OptChairPostActivityReq) Get() (v ChairPostActivityReq, ok bool)
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 ¶
func (o OptChairPostActivityReq) Or(d ChairPostActivityReq) ChairPostActivityReq
Or returns value if set, or given parameter if does not.
func (*OptChairPostActivityReq) Reset ¶
func (o *OptChairPostActivityReq) Reset()
Reset unsets value.
func (*OptChairPostActivityReq) SetTo ¶
func (o *OptChairPostActivityReq) SetTo(v ChairPostActivityReq)
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 ¶
func (o OptChairPostChairsReq) Get() (v ChairPostChairsReq, ok bool)
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 ¶
func (o OptChairPostChairsReq) Or(d ChairPostChairsReq) ChairPostChairsReq
Or returns value if set, or given parameter if does not.
func (*OptChairPostChairsReq) SetTo ¶
func (o *OptChairPostChairsReq) SetTo(v ChairPostChairsReq)
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 ¶
func (o OptChairPostRideStatusReq) Get() (v ChairPostRideStatusReq, ok bool)
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) Reset ¶
func (o *OptChairPostRideStatusReq) Reset()
Reset unsets value.
func (*OptChairPostRideStatusReq) SetTo ¶
func (o *OptChairPostRideStatusReq) SetTo(v ChairPostRideStatusReq)
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 ¶
func (o OptCoordinate) Or(d Coordinate) Coordinate
Or returns value if set, or given parameter if does not.
func (*OptCoordinate) UnmarshalJSON ¶
func (s *OptCoordinate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptInt ¶
OptInt is optional int.
func (OptInt) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptInt) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptInt64 ¶
OptInt64 is optional int64.
func NewOptInt64 ¶
NewOptInt64 returns new OptInt64 with value set to v.
func (OptInt64) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptInt64) UnmarshalJSON ¶
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 ¶
func (o OptOwnerPostOwnersReq) Get() (v OwnerPostOwnersReq, ok bool)
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 ¶
func (o OptOwnerPostOwnersReq) Or(d OwnerPostOwnersReq) OwnerPostOwnersReq
Or returns value if set, or given parameter if does not.
func (*OptOwnerPostOwnersReq) SetTo ¶
func (o *OptOwnerPostOwnersReq) SetTo(v OwnerPostOwnersReq)
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 ¶
func (o OptPostInitializeReq) Get() (v PostInitializeReq, ok bool)
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 ¶
func (o OptPostInitializeReq) Or(d PostInitializeReq) PostInitializeReq
Or returns value if set, or given parameter if does not.
func (*OptPostInitializeReq) SetTo ¶
func (o *OptPostInitializeReq) SetTo(v PostInitializeReq)
SetTo sets value to v.
func (*OptPostInitializeReq) UnmarshalJSON ¶
func (s *OptPostInitializeReq) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptString ¶
OptString is optional string.
func NewOptString ¶
NewOptString returns new OptString with value set to v.
func (OptString) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptString) UnmarshalJSON ¶
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 ¶
func (o OptUserNotificationData) Get() (v UserNotificationData, ok bool)
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 ¶
func (o OptUserNotificationData) Or(d UserNotificationData) UserNotificationData
Or returns value if set, or given parameter if does not.
func (*OptUserNotificationData) Reset ¶
func (o *OptUserNotificationData) Reset()
Reset unsets value.
func (*OptUserNotificationData) SetTo ¶
func (o *OptUserNotificationData) SetTo(v UserNotificationData)
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 ¶
func (o *OptUserNotificationDataChair) Decode(d *jx.Decoder) error
Decode decodes UserNotificationDataChair from json.
func (OptUserNotificationDataChair) Encode ¶
func (o OptUserNotificationDataChair) Encode(e *jx.Encoder)
Encode encodes UserNotificationDataChair as json.
func (OptUserNotificationDataChair) Get ¶
func (o OptUserNotificationDataChair) Get() (v UserNotificationDataChair, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptUserNotificationDataChair) IsSet ¶
func (o OptUserNotificationDataChair) IsSet() bool
IsSet returns true if OptUserNotificationDataChair was set.
func (OptUserNotificationDataChair) MarshalJSON ¶
func (s OptUserNotificationDataChair) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OptUserNotificationDataChair) Reset ¶
func (o *OptUserNotificationDataChair) Reset()
Reset unsets value.
func (*OptUserNotificationDataChair) SetTo ¶
func (o *OptUserNotificationDataChair) SetTo(v UserNotificationDataChair)
SetTo sets value to v.
func (*OptUserNotificationDataChair) UnmarshalJSON ¶
func (s *OptUserNotificationDataChair) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
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 ¶
func (s *OwnerGetChairsOK) GetChairs() []OwnerGetChairsOKChairsItem
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 ¶
func (s *OwnerGetChairsOKChairsItem) Decode(d *jx.Decoder) error
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 ¶
func (s *OwnerGetChairsOKChairsItem) GetID() string
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 ¶
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 ¶
func (s *OwnerPostOwnersCreatedHeaders) GetResponse() OwnerPostOwnersCreated
GetResponse returns the value of Response.
func (*OwnerPostOwnersCreatedHeaders) GetSetCookie ¶
func (s *OwnerPostOwnersCreatedHeaders) GetSetCookie() OptString
GetSetCookie returns the value of SetCookie.
func (*OwnerPostOwnersCreatedHeaders) SetResponse ¶
func (s *OwnerPostOwnersCreatedHeaders) SetResponse(val OwnerPostOwnersCreated)
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 ¶
簡易ユーザー情報. Ref: #/components/schemas/User
func (*User) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*User) UnmarshalJSON ¶
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 ¶
func (s *UserNotificationData) GetChair() OptUserNotificationDataChair
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 ¶
func (s *UserNotificationData) SetChair(val OptUserNotificationDataChair)
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 ¶
func (s *UserNotificationDataChair) GetStats() UserNotificationDataChairStats
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 ¶
func (s *UserNotificationDataChair) SetStats(val UserNotificationDataChairStats)
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 ¶
func (s *UserNotificationDataChairStats) Decode(d *jx.Decoder) error
Decode decodes UserNotificationDataChairStats from json.
func (*UserNotificationDataChairStats) Encode ¶
func (s *UserNotificationDataChairStats) Encode(e *jx.Encoder)
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