types

package
v0.0.0-...-e9b46af Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2022 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Overview

* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/.

* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	StreetNumber  int
	StreetAddress string
	City          string
	State         string
	Province      string
	Zipcode       string
}

Standardized address Meant to be i8n compliant

type BodyType

type BodyType int8

Designates the body type of the vehicle

const (
	SUV BodyType = iota
	COUP
	SEDAN
	PICKUP
	PASSENGER_VAN
	MINI_VAN
)

The different styles of vehicle bodies

type Customer

type Customer struct {
	Firstname   string
	Lastname    string
	Address     *Address
	PhoneNumber *PhoneNumber
	Vehicles    []*VehicleInformation
}

Represents a customer within the system

type Employee

type Employee struct {
	EmployeeId  uint64
	Firstname   string
	Lastname    string
	ConciseName string
	StartDate   uint16
}

type FuelType

type FuelType int8

The engine fuel type

const (
	GAS FuelType = iota
	DIESEL
	ELECTRIC
	GAS_HYBRID
	DIESEL_HYBRID
)

The different fuel types for vehicles

type PhoneNumber

type PhoneNumber struct {
	PhoneNumber string
	Country     string
}

Standardized phone numbers Meant to be i8n compliant

func (PhoneNumber) GetFormattedNumber

func (p PhoneNumber) GetFormattedNumber() string

Formats the number according to international

format

func (PhoneNumber) Verify

func (p PhoneNumber) Verify() bool

Verifies the phone number is of the correct

format

type RepairOrder

type RepairOrder struct {
	CompanyId           uint64
	RepairOrderId       string
	InvoiceNumber       string
	CustomerInformation *Customer
	Date                time.Time
	Vehicle             *VehicleInformation
	Details             []*RepairOrderDetails
}

The entire repair order should consist of applicable information

concerning the customer and their vehicle, the repairs performed,
and the company information for tracking

Note: A customer should be able to bring another customer's

car to the repair facility

type RepairOrderDetails

type RepairOrderDetails struct {
	TechnicianDetails []*TechnicianWorkDetails
	WorkDetails       *RepairOrderSection
}

the aggregation of the technicians details and the applicable

repair order section

type RepairOrderSection

type RepairOrderSection struct {
	JobId   uint64
	Summary string
	Parts   []string
	Title   string
}

Each repair order should consist of a number of sections for

each job performed

type TechnicianWorkDetails

type TechnicianWorkDetails struct {
	Technician *Employee
	Comments   string
	JobTime    float32
}

The technician details on the Repair order including the

time spent on the job and the technicians comments

type VehicleInformation

type VehicleInformation struct {
	VIN           string
	Make          string
	Model         string
	Year          int
	License       string
	Mileage       int
	EngineSummary string
	Type          BodyType
	Fuel          FuelType
}

structured vehicle information used by the system

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL