3pl/partnerapi/globalcare/model_request.go

44 lines
1.4 KiB
Go
Raw Normal View History

2022-08-15 04:51:07 +00:00
package globalcare
// CommonRequestBody ...
type CommonRequestBody struct {
Signature string `json:"signature"`
Data string `json:"data"`
}
// CreateOrderPayload ...
type CreateOrderPayload struct {
PartnerOrderCode string `json:"partnerOrderCode"`
VehicleInfo VehicleInfo `json:"vehicleInfo"`
InsuredInfo InsuredInfo `json:"insuredInfo"`
}
type createOrderData struct {
ProductCode string `json:"productCode"`
ProviderID int `json:"providerId"`
ProductID int `json:"productId"`
PartnerID string `json:"partnerId"`
VehicleInfo VehicleInfo `json:"vehicleInfo"`
InsuredInfo InsuredInfo `json:"insuredInfo"`
}
// VehicleInfo ...
type VehicleInfo struct {
TypeID int `json:"typeId"`
TypeName string `json:"typeName"`
CarOccupantAccidentInsurance int `json:"carOccupantAccidentInsurance"`
License string `json:"license"`
Chassis string `json:"chassis"`
Engine string `json:"engine"`
}
// InsuredInfo ...
type InsuredInfo struct {
BuyerName string `json:"buyerName"`
BuyerPhone string `json:"buyerPhone"`
BuyerEmail string `json:"buyerEmail"`
BuyerAddress string `json:"buyerAddress"`
YearsOfInsurance string `json:"yearsOfInsurance"`
BeginDate string `json:"beginDate"`
}