-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcarrier.go
77 lines (73 loc) · 4.17 KB
/
carrier.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
package qcmobile
// CarrierDetails -
type CarrierDetails struct {
Carrier *Carrier `json:"carrier"`
}
// Carrier -
type Carrier struct {
AllowedToOperate string `json:"allowedToOperate"`
BIPDInsuranceOnFile string `json:"bipdInsuranceOnFile"`
BIPDInsuranceRequired string `json:"bipdInsuranceRequired"`
BIPDRequiredAmount string `json:"bipdRequiredAmount"`
BondInsuranceOnFile string `json:"bondInsuranceOnFile"`
BondInsuranceRequired string `json:"bondInsuranceRequired"`
BrokerAuthorityStatus string `json:"brokerAuthorityStatus"`
CargoInsuranceOnFile string `json:"cargoInsuranceOnFile"`
CargoInsuranceRequired string `json:"cargoInsuranceRequired"`
CarrierOperation CarrierOperation `json:"carrierOperation"`
CensusTypeID CensusTypeID `json:"censusTypeId"`
CommonAuthorityStatus string `json:"commonAuthorityStatus"`
ContractAuthorityStatus string `json:"contractAuthorityStatus"`
CrashTotal int `json:"crashTotal"`
DBAName string `json:"dbaName"`
DOTNumber int `json:"dotNumber"`
DriverInspections int `json:"driverInsp"`
DriverOOSInspections int `json:"driverOosInsp"`
DriverOOSRate float64 `json:"driverOosRate"`
DriverOOSRateNationalAverage string `json:"driverOosRateNationalAverage"`
EIN int `json:"ein"`
FatalCrash int `json:"fatalCrash"`
HazmatInspections int `json:"hazmatInsp"`
HazmatOOSInspections int `json:"hazmatOosInsp"`
HazmatOOSRate float64 `json:"hazmatOosRate"`
HazmatOOSRateNationalAverage string `json:"hazmatOosRateNationalAverage"`
InjCrash int `json:"injCrash"`
IsPassengerCarrier string `json:"isPassengerCarrier"`
// ISSScore is an interface{} type since I'm unable to determine what datatype this should be
ISSScore interface{} `json:"issScore"`
LegalName string `json:"legalName"`
MCS150Outdated string `json:"mcs150Outdated"`
OOSDate Date `json:"oosDate"`
OOSRateNationalAverageYear string `json:"oosRateNationalAverageYear"`
PhyCity string `json:"phyCity"`
PhyCountry string `json:"phyCountry"`
PhyState string `json:"phyState"`
PhyStreet string `json:"phyStreet"`
PhyZipcode string `json:"phyZipcode"`
ReviewDate Date `json:"reviewDate"`
ReviewType string `json:"reviewType"`
SafetyRating string `json:"safetyRating"`
SafetyRatingDate Date `json:"safetyRatingDate"`
SafetyReviewDate Date `json:"safetyReviewDate"`
SafetyReviewType string `json:"safetyReviewType"`
SnapshotDate Date `json:"snapshotDate"`
StatusCode string `json:"statusCode"`
TotalDrivers int `json:"totalDrivers"`
TotalPowerUnits int `json:"totalPowerUnits"`
TowAwayCrash int `json:"towawayCrash"`
VehicleInspections int `json:"vehicleInsp"`
VehicleOOSInspections int `json:"vehicleOosInsp"`
VehicleOOSRate float64 `json:"vehicleOosRate"`
VehicleOOSRateNationalAverage string `json:"vehicleOosRateNationalAverage"`
}
// CarrierOperation -
type CarrierOperation struct {
CarrierOperationCode string `json:"carrierOperationCode"`
CarrierOperationDesc string `json:"carrierOperationDesc"`
}
// CensusTypeID -
type CensusTypeID struct {
CensusType string `json:"censusType"`
CensusTypeDesc string `json:"censusTypeDesc"`
CensusTypeID int `json:"censusTypeId"`
}