define model
This commit is contained in:
parent
ad51f45871
commit
5ca473ffc1
|
@ -12,6 +12,19 @@ type OutboundRequestPayload struct {
|
|||
TPLCode string `json:"tplCode"`
|
||||
Customer CustomerInfo `json:"customer"`
|
||||
Items []OutboundRequestItem `json:"items"`
|
||||
Insurance *InsuranceOpts
|
||||
}
|
||||
|
||||
// InsuranceOpts ...
|
||||
type InsuranceOpts struct {
|
||||
VehicleTypeID string `json:"vehicleTypeId"`
|
||||
VehicleTypeName string `json:"vehicleTypeName"`
|
||||
InsuranceTypeID string `json:"insuranceTypeId"`
|
||||
YearsOfInsurance int `json:"yearsOfInsurance"`
|
||||
License string `json:"license"`
|
||||
Chassis string `json:"chassis"`
|
||||
Engine string `json:"engine"`
|
||||
BeginDate string `json:"beginDate"`
|
||||
}
|
||||
|
||||
// OutboundRequestItem ...
|
||||
|
@ -25,6 +38,7 @@ type OutboundRequestItem struct {
|
|||
type CustomerInfo struct {
|
||||
Name string `json:"name"`
|
||||
PhoneNumber string `json:"phoneNumber"`
|
||||
Email string `json:"email"`
|
||||
Address AddressDetail `json:"address"`
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue