pdpstructure

package
v1.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 8, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFindResponseWithCode

func GetFindResponseWithCode(code pdpcodes.FindPDPCode, errArgs ...interface{}) *findV2.Response

func GetResponseWithCode

func GetResponseWithCode(code pdpcodes.SudirPDPCode, errArgs ...interface{}) *sudirV2.ResponseType

func GetResponseWithError

func GetResponseWithError(err error) *sudirV2.ResponseType

Types

type BatchConvertPdpRequest added in v1.13.0

type BatchConvertPdpRequest struct {
	*structure.ConvertRequestPayload `valid:"required~Required"`
	*structure.AbstractConvertBatchRequest
	Delta PdpDelta
}

type DeletedObject added in v1.13.0

type DeletedObject struct {
	Id          string
	DeleteFlag  string
	ObjectGroup string
}

DeletedObject e.q.

{
	Id: "62D1FA909140BABC0C10DA90A13B041E30",
	DeleteFlag: "VehicleDelete",
	ObjectGroup: "VEHICLE",
}

type DeltaInfo added in v1.13.0

type DeltaInfo struct {
	AttributeDeltaData map[string]map[string]interface{}
	ObjectDeltaData    map[string]map[string]map[string]interface{}
}

DeltaInfo e.q.

{
	AttributeDeltaData: {
		"FIO": {
			"MIDNAME": "IVANOVICH",
			"SURNAME": "",
		}
	}
	ObjectDeltaData: {
		"VEHICLES": {
			"1234567890_1": {
				"VEHICLE_DESC": "TEST VEH 1"
			},
			"1234567890_2": {
				"VEHICLE_DESC": ""
			}
		}
	}
}

type PayloadResponse

type PayloadResponse struct {
	ConvertRequest *structure.ConvertRequestPayload
	Error          *pdpcodes.PdpError
}

type PdpDelta added in v1.13.0

type PdpDelta struct {
	DeltaInfo      DeltaInfo
	DeletedObjects []DeletedObject
}

type PdpNotification added in v1.13.0

type PdpNotification struct {
	entity.Notification

	PdpDelta PdpDelta
}

type PdpNotificationMessage added in v1.13.0

type PdpNotificationMessage struct {
	Notifications []PdpNotification
}

type PdpUpsertRequest

type PdpUpsertRequest struct {
	structure.SudirUpdateRecordRequest
	UpdateMethod pdp.HandleMethod
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL