Versions in this module Expand all Collapse all v1 v1.0.0 Nov 10, 2023 Changes in this version + const AccountBasic + const AccountPro + const AccountStarter + const BasicAPIUrl + const ESL + const JNE + const PCP + const POS + const ProAPIUrl + const RPX + const StarterAPIUrl + const TIKI + func CourierParams(couriers ...string) string + func GetApiURL(accountType string) string + type API struct + func NewAPI(config Config) API + func (a API) GetCities(opts *CityParams) (respCities ResponseCities, err error) + func (a API) GetCost(opts *CostParams) (respCost ResponseCost, err error) + func (a API) GetProvinces(opts *ProvinceParams) (respProv ResponseProvinces, err error) + type City struct + City string + ID string + PostalCode string + Province string + ProvinceID string + type CityParams struct + ID string + ProvinceID string + type Config struct + AccountKey string + AccountType string + BaseUrl string + Header map[string]string + func NewConfig(accountKey string, accountType string) Config + type Cost struct + Etd string + Note string + Value string + type CostParams struct + Courier string + Destination string + Origin string + Weight int + type Courier struct + Code string + Costs []CourierCost + Name string + type CourierCost struct + Cost []Cost + Description string + Service string + type Province struct + ID string + Province string + type ProvinceParams struct + ID string + type ResponseBase struct + Query P + Results []T + Status ResponseStatus + func (b *ResponseBase[T, P]) StatusValid() error + func (b *ResponseBase[T, P]) Unmarshal(v []byte) error + type ResponseCities struct + type ResponseCost struct + type ResponseProvinces struct + type ResponseStatus struct + Code int + Description string