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 Customer ¶
type Customer struct {
Firstname string
Lastname string
Address *Address
PhoneNumber *PhoneNumber
Vehicles []*VehicleInformation
}
Represents a customer within the system
type PhoneNumber ¶
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 ¶
Each repair order should consist of a number of sections for
each job performed
type TechnicianWorkDetails ¶
The technician details on the Repair order including the
time spent on the job and the technicians comments