diff --git a/partnerapi/globalcare/model_request.go b/partnerapi/globalcare/model_request.go index 2da031f..3b3b258 100644 --- a/partnerapi/globalcare/model_request.go +++ b/partnerapi/globalcare/model_request.go @@ -1,7 +1,6 @@ package globalcare import ( - "encoding/json" "time" ) @@ -41,20 +40,7 @@ type VehicleInfo struct { // CarOccupantAccidentInsuranceObj ... type CarOccupantAccidentInsuranceObj struct { NumberOfSeats int `json:"numberOfSeats"` -} - -func (c *CarOccupantAccidentInsuranceObj) MarshalJSON() ([]byte, error) { - buy := 1 - if c.NumberOfSeats <= 0 { - buy = 2 - } - return json.Marshal(&struct { - Buy int `json:"buy"` - NumberOfSeats int `json:"numberOfSeats"` - }{ - Buy: buy, - NumberOfSeats: c.NumberOfSeats, - }) + Buy int `json:"buy"` } // InsuredInfo ...