Versions in this module Expand all Collapse all v1 v1.0.1 Sep 29, 2019 Changes in this version + type ApiError struct + func (e *ApiError) Error() string + type Client struct + Collaborator *CollaboratorService + CostCenter *CostCenterService + Role *RoleService + Unity *UnityService + func New(host *url.URL, client *http.Client) *Client + func (c *Client) Request(ctx context.Context, method string, path endpoint, body, output interface{}) error + type Collaborator struct + AccumulatedTaxiFare float64 + ActivatedAt Time + Active bool + AnswerToEnrollment string + AnswerToID int + AnswerToName string + AppVersion string + Association int + AuthorizedFleet bool + Blocked bool + BlockedAt Time + CPF string + CardExpiration string + CardFinalDigits string + ChangedStatusAt Time + Company int + CostCenterCode string + CostCenterID int + CostCenterName string + CountryCode string + CountryName string + CreatedAt Time + DDD string + Email string + Enrollment string + ExtraMonthlyTaxiFare float64 + Foreign bool + ID int + InactivatedAt Time + Login string + MonthlyLimit string + MonthlyTaxiFare float64 + Name string + PasswordResentAt Time + ReactivatedAt Time + Role string + RoleID int + SendUnblockSMS bool + Type int + UnityCode string + UnityID int + UnityName string + UnlimitedRides bool + UnlimitedTaxi bool + UserID int + type CollaboratorResponse struct + Response []*Collaborator + type CollaboratorService struct + func (cs *CollaboratorService) Activate(ctx context.Context, id int) (*OperationDefaultResponse, error) + func (cs *CollaboratorService) Create(ctx context.Context, c *Collaborator) (*DefaultResponse, error) + func (cs *CollaboratorService) Inactivate(ctx context.Context, id int) (*OperationDefaultResponse, error) + func (cs *CollaboratorService) Read(ctx context.Context, f Filter) (*CollaboratorResponse, error) + func (cs *CollaboratorService) Update(ctx context.Context, c *Collaborator) (*OperationDefaultResponse, error) + type CostCenter struct + CNPJ string + Code string + ID int + Name string + ParentCostCenterCode string + ParentCostCenterID int + ParentCostCenterName string + type CostCenterResponse struct + Response []*CostCenter + type CostCenterService struct + func (cs *CostCenterService) Create(ctx context.Context, cc *CostCenter) (*DefaultResponse, error) + func (cs *CostCenterService) Inactivate(ctx context.Context, id int) (*OperationDefaultResponse, error) + func (cs *CostCenterService) Read(ctx context.Context, f Filter) (*CostCenterResponse, error) + func (cs *CostCenterService) Update(ctx context.Context, cc *CostCenter) (*OperationDefaultResponse, error) + type DefaultResponse struct + Error ResponseError + Message string + MessageDetail string + Quantity int + Response string + Success bool + type Filter map[string]string + func (f Filter) Values(fields map[string]string) url.Values + type OperationDefaultResponse struct + func (d *OperationDefaultResponse) Parse(body io.Reader) error + type ResponseError struct + Code int + Message int + type Role struct + Description string + Filter string + ID int + type RoleResponse struct + Response []*Role + type RoleService struct + func (rs *RoleService) Create(ctx context.Context, r *Role) (*DefaultResponse, error) + func (rs *RoleService) Read(ctx context.Context, f Filter) (*RoleResponse, error) + type Time struct + func (t *Time) UnmarshalJSON(b []byte) error + func (t Time) MarshalJSON() ([]byte, error) + type TokenSource struct + func NewTokenSource(ctx context.Context, host, clientID, clientSecret, username, password string) *TokenSource + func (ts *TokenSource) Token() (*oauth2.Token, error) + type Unity struct + Address string + AreaCode string + AreaCode2 string + City string + CityID int + Code string + Complement string + CustomerCompany int + ID int + Name string + Neighborhood string + Number string + Phone string + Phone2 string + StateID string + ZipCode string + type UnityResponse struct + Response []*Unity + type UnityService struct + func (us *UnityService) Create(ctx context.Context, u *Unity) (*DefaultResponse, error) + func (us *UnityService) Inactivate(ctx context.Context, id int) (*OperationDefaultResponse, error) + func (us *UnityService) Read(ctx context.Context, f Filter) (*UnityResponse, error) + func (us *UnityService) Update(ctx context.Context, u *Unity) (*OperationDefaultResponse, error) Other modules containing this package github.com/mobilitee-smartmob/wappa/v2