-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathATMTransaction14.go
131 lines (98 loc) · 4.6 KB
/
ATMTransaction14.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
package iso20022
// Response to the withdrawal transaction request.
type ATMTransaction14 struct {
// Identification of the transaction assigned by the ATM.
TransactionIdentification *TransactionIdentifier1 `xml:"TxId"`
// Identification of the reconciliation period assigned by the ATM.
ReconciliationIdentification *Max35Text `xml:"RcncltnId,omitempty"`
// True if a withdrawal completion advice has to be sent after the end of the transaction.
CompletionRequired *TrueFalseIndicator `xml:"CmpltnReqrd,omitempty"`
// Unprotected account information.
AccountData *CardAccount8 `xml:"AcctData,omitempty"`
// Encryption of account information.
ProtectedAccountData *ContentInformationType10 `xml:"PrtctdAcctData,omitempty"`
// Total authorised amount.
TotalAuthorisedAmount *AmountAndCurrency1 `xml:"TtlAuthrsdAmt"`
// Total requested amount.
TotalRequestedAmount *ImpliedCurrencyAndAmount `xml:"TtlReqdAmt,omitempty"`
// Detail of the requested amounts for the withdrawal transaction.
DetailedRequestedAmount *DetailedAmount12 `xml:"DtldReqdAmt,omitempty"`
// Currency conversion accepted by the customer, either to convert the amount to dispense in the base currency of the ATM, or to convert the total requested amount in the currency of the customer (so called dynamic currency conversion).
CurrencyConversionEligibility *CurrencyConversion9 `xml:"CcyConvsElgblty,omitempty"`
// Additional charge (for instance tax or fee).
AdditionalCharge []*DetailedAmount13 `xml:"AddtlChrg,omitempty"`
// Limit of amounts for the customer.
Limits *ATMTransactionAmounts6 `xml:"Lmts,omitempty"`
// Media mix algorithm requested by the ATM Host, the identification of the algorithm is an agreement between the ATM and the ATM manager.
MixType *Max35Text `xml:"MixTp,omitempty"`
// Media mix selected requested by the ATM Host.
Mix []*ATMMediaMix1 `xml:"Mix,omitempty"`
// Outcome of the withdrawal authorisation.
AuthorisationResult *AuthorisationResult13 `xml:"AuthstnRslt"`
// Sequence of one or more TLV data elements from the ATM application, in accordance with ISO 7816-6, not in a specific order. Present if the transaction is performed with an EMV chip card application.
ICCRelatedData *Max10000Binary `xml:"ICCRltdData,omitempty"`
// Maintenance command to perform on the ATM.
Command []*ATMCommand7 `xml:"Cmd,omitempty"`
}
func (a *ATMTransaction14) AddTransactionIdentification() *TransactionIdentifier1 {
a.TransactionIdentification = new(TransactionIdentifier1)
return a.TransactionIdentification
}
func (a *ATMTransaction14) SetReconciliationIdentification(value string) {
a.ReconciliationIdentification = (*Max35Text)(&value)
}
func (a *ATMTransaction14) SetCompletionRequired(value string) {
a.CompletionRequired = (*TrueFalseIndicator)(&value)
}
func (a *ATMTransaction14) AddAccountData() *CardAccount8 {
a.AccountData = new(CardAccount8)
return a.AccountData
}
func (a *ATMTransaction14) AddProtectedAccountData() *ContentInformationType10 {
a.ProtectedAccountData = new(ContentInformationType10)
return a.ProtectedAccountData
}
func (a *ATMTransaction14) AddTotalAuthorisedAmount() *AmountAndCurrency1 {
a.TotalAuthorisedAmount = new(AmountAndCurrency1)
return a.TotalAuthorisedAmount
}
func (a *ATMTransaction14) SetTotalRequestedAmount(value, currency string) {
a.TotalRequestedAmount = NewImpliedCurrencyAndAmount(value, currency)
}
func (a *ATMTransaction14) AddDetailedRequestedAmount() *DetailedAmount12 {
a.DetailedRequestedAmount = new(DetailedAmount12)
return a.DetailedRequestedAmount
}
func (a *ATMTransaction14) AddCurrencyConversionEligibility() *CurrencyConversion9 {
a.CurrencyConversionEligibility = new(CurrencyConversion9)
return a.CurrencyConversionEligibility
}
func (a *ATMTransaction14) AddAdditionalCharge() *DetailedAmount13 {
newValue := new(DetailedAmount13)
a.AdditionalCharge = append(a.AdditionalCharge, newValue)
return newValue
}
func (a *ATMTransaction14) AddLimits() *ATMTransactionAmounts6 {
a.Limits = new(ATMTransactionAmounts6)
return a.Limits
}
func (a *ATMTransaction14) SetMixType(value string) {
a.MixType = (*Max35Text)(&value)
}
func (a *ATMTransaction14) AddMix() *ATMMediaMix1 {
newValue := new(ATMMediaMix1)
a.Mix = append(a.Mix, newValue)
return newValue
}
func (a *ATMTransaction14) AddAuthorisationResult() *AuthorisationResult13 {
a.AuthorisationResult = new(AuthorisationResult13)
return a.AuthorisationResult
}
func (a *ATMTransaction14) SetICCRelatedData(value string) {
a.ICCRelatedData = (*Max10000Binary)(&value)
}
func (a *ATMTransaction14) AddCommand() *ATMCommand7 {
newValue := new(ATMCommand7)
a.Command = append(a.Command, newValue)
return newValue
}