-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathAcceptorCompletionAdvice5.go
38 lines (29 loc) · 1.23 KB
/
AcceptorCompletionAdvice5.go
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
package iso20022
// Notification to the acquirer of the completion of the card payment at the acceptor.
type AcceptorCompletionAdvice5 struct {
// Environment of the transaction.
Environment *CardPaymentEnvironment47 `xml:"Envt"`
// Context in which the transaction is performed (payment and sale).
Context *CardPaymentContext15 `xml:"Cntxt,omitempty"`
// Card payment transaction between an acceptor and an acquirer.
Transaction *CardPaymentTransaction55 `xml:"Tx"`
// Additional information incorporated as an extension to the message.
SupplementaryData []*SupplementaryData1 `xml:"SplmtryData,omitempty"`
}
func (a *AcceptorCompletionAdvice5) AddEnvironment() *CardPaymentEnvironment47 {
a.Environment = new(CardPaymentEnvironment47)
return a.Environment
}
func (a *AcceptorCompletionAdvice5) AddContext() *CardPaymentContext15 {
a.Context = new(CardPaymentContext15)
return a.Context
}
func (a *AcceptorCompletionAdvice5) AddTransaction() *CardPaymentTransaction55 {
a.Transaction = new(CardPaymentTransaction55)
return a.Transaction
}
func (a *AcceptorCompletionAdvice5) AddSupplementaryData() *SupplementaryData1 {
newValue := new(SupplementaryData1)
a.SupplementaryData = append(a.SupplementaryData, newValue)
return newValue
}