Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VehiclesController ¶ added in v0.3.9
type VehiclesController struct {
// contains filtered or unexported fields
}
func NewVehiclesController ¶ added in v0.3.9
func NewVehiclesController(log *zerolog.Logger, userDeviceSvc services.UserDeviceAPIService, drivlyValuationSvc services.DrivlyValuationService, vincarioValuationSvc services.VincarioValuationService) *VehiclesController
func (*VehiclesController) GetOffers ¶ added in v0.3.9
func (vc *VehiclesController) GetOffers(c *fiber.Ctx) error
GetOffers godoc @Description gets any existing offers for a particular user device. You must call instant-offer endpoint first to pull newer. Returns list. @Tags offers @Produce json @Param tokenId path string true "tokenId for vehicle to get offers" @Success 200 {object} core.DeviceOffer @Security BearerAuth @Router /v2/vehicles/{tokenId}/offers [get]
func (*VehiclesController) GetValuations ¶ added in v0.3.9
func (vc *VehiclesController) GetValuations(c *fiber.Ctx) error
GetValuations godoc @Description gets valuations for a particular user device. Includes only price valuations, not offers. gets list of most recent @Tags valuations @Produce json @Param tokenId path string true "tokenId for vehicle to get offers" @Success 200 {object} core.DeviceValuation @Security BearerAuth @Router /v2/vehicles/{tokenId}/valuations [get]
func (*VehiclesController) RequestInstantOffer ¶ added in v0.3.9
func (vc *VehiclesController) RequestInstantOffer(c *fiber.Ctx) error
RequestInstantOffer godoc @Description makes a request for an instant offer for a particular user device. Simply returns success if able to create job. @Description You will need to query the offers endpoint to see if a new offer showed up. Job can take about a minute to complete. @Tags offers @Produce json @Param tokenId path string true "tokenId for vehicle to get offers" @Success 200 @Security BearerAuth @Router /v2/vehicles/{tokenId}/instant-offer [post]