1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
package segment
import "github.com/mitch000001/go-hbci/element"
func NewTanRequestProcess2(jobReference string, anotherTANFollows bool) *TanRequestSegment {
t := &TanRequestSegment{
TANProcess: element.NewAlphaNumeric("2", 1),
JobReference: element.NewAlphaNumeric(jobReference, 35),
AnotherTanFollows: element.NewBoolean(anotherTANFollows),
}
t.Segment = NewBasicSegment(1, t)
return t
}
func NewTanRequestProcess4() *TanRequestSegment {
t := &TanRequestSegment{
TANProcess: element.NewAlphaNumeric("4", 1),
}
t.Segment = NewBasicSegment(1, t)
return t
}
type TanRequestSegment struct {
Segment
TANProcess *element.AlphaNumericDataElement
JobHash *element.BinaryDataElement
JobReference *element.AlphaNumericDataElement
TanListNumber *element.AlphaNumericDataElement
AnotherTanFollows *element.BooleanDataElement
TANInformation *element.AlphaNumericDataElement
}
func (t *TanRequestSegment) Version() int { return 1 }
func (t *TanRequestSegment) ID() string { return "HKTAN" }
func (t *TanRequestSegment) referencedId() string { return "" }
func (t *TanRequestSegment) sender() string { return senderUser }
func (t *TanRequestSegment) elements() []element.DataElement {
return []element.DataElement{
t.TANProcess,
t.JobHash,
t.JobReference,
t.TanListNumber,
t.AnotherTanFollows,
t.TANInformation,
}
}
|