Documentation ¶
Index ¶
- func PruefidentifikatorInTransaktionsdatenValidation(sl validator.StructLevel)
- type BOneyComb
- func (boneyComb *BOneyComb) GetAbsender() *bo.Marktteilnehmer
- func (boneyComb *BOneyComb) GetAbsenderCode() *string
- func (boneyComb *BOneyComb) GetDokumentennummer() *string
- func (boneyComb *BOneyComb) GetEmpfaenger() *bo.Marktteilnehmer
- func (boneyComb *BOneyComb) GetEmpfaengerCode() *string
- func (boneyComb *BOneyComb) GetNachrichtendatum() (*time.Time, error)
- func (boneyComb *BOneyComb) GetPruefidentifikator() *string
- func (boneyComb *BOneyComb) GetTransactionData(key string) *string
- func (boneyComb *BOneyComb) SetAbsender(mt bo.Marktteilnehmer)
- func (boneyComb *BOneyComb) SetAbsenderCode(mpId string)
- func (boneyComb *BOneyComb) SetDokumentennummer(dokumentnummer string)
- func (boneyComb *BOneyComb) SetEmpfaenger(mt bo.Marktteilnehmer)
- func (boneyComb *BOneyComb) SetEmpfaengerCode(mpId string)
- func (boneyComb *BOneyComb) SetNachrichtendatum(nachrichtendatum time.Time)
- func (boneyComb *BOneyComb) SetPruefidentifikator(pruefi string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PruefidentifikatorInTransaktionsdatenValidation ¶ added in v0.0.17
func PruefidentifikatorInTransaktionsdatenValidation(sl validator.StructLevel)
PruefidentifikatorInTransaktionsdatenValidation returns true iff a valid Pruefidentifikator (see GetPruefidentifikator) is present
Types ¶
type BOneyComb ¶
type BOneyComb struct { Stammdaten bo.BusinessObjectSlice `json:"stammdaten" validate:"required"` // Stammdaten is an array of business objects Transaktionsdaten map[string]string `json:"transaktionsdaten" validate:"required"` // Transaktionsdaten are data relevant only in the context of this market communication message }
BOneyComb is a structure that is used when dealing with business objects that are embedded into market communication messages. The BOneyComb combines an array of business objects named "Stammdaten" with a key value dict of process data named "Transaktionsdaten"
func (*BOneyComb) GetAbsender ¶
func (boneyComb *BOneyComb) GetAbsender() *bo.Marktteilnehmer
GetAbsender returns the sending bo.Marktteilnehmer if present in the Transaktionsdaten _and_ Stammdaten; nil otherwise
func (*BOneyComb) GetAbsenderCode ¶
GetAbsenderCode returns the 13 digit ID of the sending Marktteilnehmer if present in the Transaktionsdaten; nil otherwise
func (*BOneyComb) GetDokumentennummer ¶
GetDokumentennummer returns the Dokumentennummer from BOneyComb.Transaktionsdaten if it's present and nil otherwise
func (*BOneyComb) GetEmpfaenger ¶
func (boneyComb *BOneyComb) GetEmpfaenger() *bo.Marktteilnehmer
GetEmpfaenger returns the receiving bo.Marktteilnehmer if present in the Transaktionsdaten _and_ Stammdaten; nil otherwise
func (*BOneyComb) GetEmpfaengerCode ¶
GetEmpfaengerCode returns the 13 digit ID of the receiving Marktteilnehmer if present in both Transaktionsdaten; nil otherwise
func (*BOneyComb) GetNachrichtendatum ¶
GetNachrichtendatum checks if the message date is present in BOneyComb.Transaktionsdaten, returns its value if it is present and nil otherwise. Returns an error iff the parsing fails
func (*BOneyComb) GetPruefidentifikator ¶ added in v0.0.17
GetPruefidentifikator returns the Pruefidentifikator from BOneyComb.Transaktionsdaten if it's present and nil otherwise
func (*BOneyComb) GetTransactionData ¶
GetTransactionData checks if the key is present in BOneyComb.Transaktionsdaten, returns its value if it is present and nil otherwise
func (*BOneyComb) SetAbsender ¶ added in v0.0.15
func (boneyComb *BOneyComb) SetAbsender(mt bo.Marktteilnehmer)
SetAbsender sets sending bo.Marktteilnehmer in both the Transaktionsdaten _and_ Stammdaten
func (*BOneyComb) SetAbsenderCode ¶ added in v0.0.15
SetAbsenderCode sets the 13 digit ID of the sending Marktteilnehmer in the Transaktionsdaten
func (*BOneyComb) SetDokumentennummer ¶ added in v0.0.16
SetDokumentennummer sets the Dokumentennummer in the BOneyComb.Transaktionsdaten
func (*BOneyComb) SetEmpfaenger ¶ added in v0.0.15
func (boneyComb *BOneyComb) SetEmpfaenger(mt bo.Marktteilnehmer)
SetEmpfaenger sets receiving bo.Marktteilnehmer in both the Transaktionsdaten _and_ Stammdaten
func (*BOneyComb) SetEmpfaengerCode ¶ added in v0.0.15
SetEmpfaengerCode sets the 13 digit ID of the receiving Marktteilnehmer in the Transaktionsdaten
func (*BOneyComb) SetNachrichtendatum ¶ added in v0.0.16
SetNachrichtendatum sets the nachrichtendatum in BOneyComb.Transaktionsdaten
func (*BOneyComb) SetPruefidentifikator ¶ added in v0.0.17
SetPruefidentifikator sets the Pruefidentifikator in the BOneyComb.Transaktionsdaten