market_communication

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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

func (boneyComb *BOneyComb) GetAbsenderCode() *string

GetAbsenderCode returns the 13 digit ID of the sending Marktteilnehmer if present in the Transaktionsdaten; nil otherwise

func (*BOneyComb) GetDokumentennummer

func (boneyComb *BOneyComb) GetDokumentennummer() *string

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

func (boneyComb *BOneyComb) GetEmpfaengerCode() *string

GetEmpfaengerCode returns the 13 digit ID of the receiving Marktteilnehmer if present in both Transaktionsdaten; nil otherwise

func (*BOneyComb) GetNachrichtendatum

func (boneyComb *BOneyComb) GetNachrichtendatum() (*time.Time, error)

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) GetTransactionData

func (boneyComb *BOneyComb) GetTransactionData(key string) *string

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

func (boneyComb *BOneyComb) SetAbsenderCode(mpId string)

SetAbsenderCode sets the 13 digit ID of the sending Marktteilnehmer in the Transaktionsdaten

func (*BOneyComb) SetDokumentennummer added in v0.0.16

func (boneyComb *BOneyComb) SetDokumentennummer(dokumentnummer string)

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

func (boneyComb *BOneyComb) SetEmpfaengerCode(mpId string)

SetEmpfaengerCode sets the 13 digit ID of the receiving Marktteilnehmer in the Transaktionsdaten

func (*BOneyComb) SetNachrichtendatum added in v0.0.16

func (boneyComb *BOneyComb) SetNachrichtendatum(nachrichtendatum time.Time)

SetNachrichtendatum sets the nachrichtendatum in BOneyComb.Transaktionsdaten

Jump to

Keyboard shortcuts

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