Initial cloud-services repo - gateway service + pkg modules

This commit is contained in:
Chris Rai
2026-01-30 23:14:52 -05:00
commit fbb820d7b3
1037 changed files with 171318 additions and 0 deletions

33
pkg/common/sold_status.go Normal file
View File

@@ -0,0 +1,33 @@
package common
import "encoding/xml"
type SoldStatusDataRequest struct {
XMLName xml.Name `xml:"VehicleSoldStatusDataRequestReplicate"`
Header HeaderArea `xml:"HeaderArea" validate:"required"`
SoldStatusData SoldStatusData `xml:"DataArea>SoldStatusData" validate:"required"`
}
type SoldStatusData struct {
VIN string `xml:"VIN"`
SoldStatus string `xml:"SoldStatus"`
}
// SoldStatusDataRequestSwag is used ONLY to represent SoldStatusDataRequest in swagger.
type SoldStatusDataRequestSwag struct {
Header struct {
CreationDateTime CreationDateTime `json:"CreationDateTime" swaggertype:"string"`
MessageIdentifier string `json:"MessageIdentifier"`
InterfaceID int `json:"InterfaceId"`
Sender struct {
SourceSystem string `json:"SourceSystem"`
TargetSystem string `json:"TargetSystem"`
} `json:"Sender"`
} `json:"HeaderArea" validate:"required"`
DataArea struct {
SoldStatusData struct {
VIN string `json:"vin"`
SoldStatus string `json:"sold_status"`
} `json:"SoldStatusData" validate:"required"`
} `json:"DataArea"`
} // @name VehicleSoldStatusDataRequestReplicate