define model

This commit is contained in:
Sinh 2022-08-26 10:28:49 +07:00
parent ad51f45871
commit 5ca473ffc1
1 changed files with 14 additions and 0 deletions

View File

@ -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"`
}