Versions in this module Expand all Collapse all v0 v0.1.4 Dec 19, 2021 Changes in this version + var AllCountriesByISOCode = map[CountryCode]Country + var CountryBrasil = Country + var CountryHongKong = Country + var CountryIndia = Country + var CountryIndonesia = Country + var CountryMalaysia = Country + var CountryMexico = Country + var CountryPhilippines = Country + var CountrySingapore = Country + var CountryTaiwan = Country + var CountryThailand = Country + var CountryUnknown = Country + var CountryVietnam = Country + type Address struct + Country LLMCountry + DisplayString string + type AddressTranslations map[Locale]Address + type CityCode string + const CityCodeBrasilRioDeJaneiro + const CityCodeBrasilSaoPaulo + const CityCodeHongKongHongKong + const CityCodeIndiaBengaluru + const CityCodeIndiaDelhi + const CityCodeIndiaMumbai + const CityCodeIndonesiaJakarata + const CityCodeMalaysiaKualaLumpur + const CityCodeMexicoMexico + const CityCodePhilippinesCebu + const CityCodePhilippinesManila + const CityCodeSingaporeSingapore + const CityCodeTaiwanTaipei + const CityCodeThailandBangkok + const CityCodeThailandPattaya + const CityCodeVietnamHanoi + const CityCodeVietnamHoChiMinh + func (c CityCode) GetCountry() Country + func (c CityCode) GetLLMCountry() LLMCountry + type Client struct + func NewClient(options ...ClientOption) (*Client, error) + func (c *Client) CancelOrder(ctx context.Context, city CityCode, orderID string) error + func (c *Client) DriverDetails(ctx context.Context, city CityCode, orderID, driverID string) (*DriverDetailsResponse, error) + func (c *Client) DriverLocation(ctx context.Context, city CityCode, orderID, driverID string) (*DriverLocationResponse, error) + func (c *Client) GetQuotation(ctx context.Context, city CityCode, req *GetQuotationRequest) (*GetQuotationResponse, error) + func (c *Client) OrderDetails(ctx context.Context, city CityCode, orderID string) (*OrderDetailsResponse, error) + func (c *Client) PlaceOrder(ctx context.Context, city CityCode, req *PlaceOrderRequest) (*PlaceOrderResponse, error) + type ClientOption func(*Client) error + func WithAPIKey(apiKey string) ClientOption + func WithBaseURL(baseURL string) ClientOption + func WithHTTPClient(c *http.Client) ClientOption + func WithSecret(secret string) ClientOption + type Contact struct + Name string + Phone string + type Country struct + Cities []CityCode + Code CountryCode + Locales []Locale + Name string + PhoneRegex string + type CountryCode string + const CountryCodeBrasil + const CountryCodeHongKong + const CountryCodeIndia + const CountryCodeIndonesia + const CountryCodeMalaysia + const CountryCodeMexico + const CountryCodePhilippines + const CountryCodeSingapore + const CountryCodeTaiwan + const CountryCodeThailand + const CountryCodeVietnam + type DeliveryInfo struct + Contact Contact + Remarks *string + ToStop int64 + type DriverDetailsResponse struct + PhotoURL string + PlateNumber string + type DriverLocationResponse struct + Location Location + UpdatedAt time.Time + type ErrorResponse struct + Error string + type GetQuotationRequest struct + Deliveries []DeliveryInfo + RequesterContact Contact + ScheduleAt *string + ServiceType ServiceType + SpecialRequests *[]SpecialRequest + Stops []Waypoint + type GetQuotationResponse struct + Amount string + Currency string + type LLMCountry string + type Locale string + const LocaleBrasilEN + const LocaleBrasilPT + const LocaleHongKongEN + const LocaleHongKongZH + const LocaleIndiaEN + const LocaleIndiaHI + const LocaleIndiaKN + const LocaleIndiaMR + const LocaleIndonesiaEN + const LocaleIndonesiaID + const LocaleMalaysiaEN + const LocaleMalaysiaMS + const LocaleMexicoEN + const LocaleMexicoMX + const LocalePhilippinesEN + const LocaleSingaporeEN + const LocaleTaiwanZH + const LocaleThailandEN + const LocaleThailandTH + const LocaleVietnamEN + const LocaleVietnamVI + type Location struct + Lat string + Lng string + type OrderDetailsResponse struct + DriverID string + Price Price + Status OrderStatus + type OrderStatus string + const OrderStatusAssigningDriver + const OrderStatusCanceled + const OrderStatusCompleted + const OrderStatusExpired + const OrderStatusOngoing + const OrderStatusPickedUp + const OrderStatusRejected + type PlaceOrderRequest struct + QuotedPrice Price + SendSms *bool + type PlaceOrderResponse struct + CustomerOrderID string + OrderID string + type Price struct + Amount string + Currency string + type ServiceType string + const ServiceType4x4 + const ServiceTypeCar + const ServiceTypeLalago + const ServiceTypeLalapro + const ServiceTypeMPV + const ServiceTypeMinivan + const ServiceTypeMotorcycle + const ServiceTypeTataAce7 + const ServiceTypeTataAce8 + const ServiceTypeThreeWheeler + const ServiceTypeTruck175 + const ServiceTypeTruck330 + const ServiceTypeTruck550 + const ServiceTypeUV + const ServiceTypeVan + type SpecialRequest string + const SpecialRequest1Assistant1To2Drops + const SpecialRequest1Assistant3To4Drops + const SpecialRequest1AssistantPlusDrops + const SpecialRequest1HelperTier1 + const SpecialRequest1HelperTier2 + const SpecialRequest1HelperTier3 + const SpecialRequestAddAssistantTier1 + const SpecialRequestAddAssistantTier2 + const SpecialRequestAddAssistantTier3 + const SpecialRequestCOD + const SpecialRequestCovered + const SpecialRequestDoor2Door + const SpecialRequestDoor2Door1HelperTruck175 + const SpecialRequestDoor2Door1HelperTruck330 + const SpecialRequestDoor2Door1HelperTruck550 + const SpecialRequestDoor2Door2HelperTruck330 + const SpecialRequestDoor2Door2HelperTruck550 + const SpecialRequestDoor2DoorDriver + const SpecialRequestDoor2DoorTruck330 + const SpecialRequestDoor2DoorTruck550 + const SpecialRequestDriverCarries + const SpecialRequestExtraHelper + const SpecialRequestExtraHelperTruck175 + const SpecialRequestFoodService + const SpecialRequestGroundFloor1Way + const SpecialRequestGroundFloor1Way2 + const SpecialRequestHelpBuy + const SpecialRequestInsulatedBag + const SpecialRequestLalabag + const SpecialRequestLalabagBig + const SpecialRequestLoadingService + const SpecialRequestMovingDriver + const SpecialRequestMovingDriver1Helper + const SpecialRequestMovingDriver1HelperVan + const SpecialRequestMovingDriver2Helper + const SpecialRequestMovingDriver2HelperVan + const SpecialRequestPurchaseService + const SpecialRequestPurchaseServiceTier2 + const SpecialRequestQueueingMotorcycle + const SpecialRequestRestricted + const SpecialRequestReturnTrip + const SpecialRequestReturnTripLorry + const SpecialRequestRoundtripMotorcycle + const SpecialRequestRoundtripTruck175 + const SpecialRequestRoundtripTruck330 + const SpecialRequestTailgate + const SpecialRequestUVVan + const SpecialRequestUpstairDownstair1Way + const SpecialRequestUpstairDownstair1Way2 + type Waypoint struct + Addresses AddressTranslations + Location Location