-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathATMTransaction3.go
187 lines (138 loc) · 6.49 KB
/
ATMTransaction3.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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
package iso20022
// Withdrawal transaction for which the completion is sent.
type ATMTransaction3 struct {
// Identification of the transaction assigned by the ATM.
TransactionIdentification *TransactionIdentifier1 `xml:"TxId"`
// Outcome of the financial transaction for the customer.
TransactionStatus *ATMTransactionStatus1Code `xml:"TxSts"`
// Multi bundle dispense.
MultiBundle *TrueFalseIndicator `xml:"MultiBndl,omitempty"`
// Amount per bundle in the currency of the total presented amount, in the order of the presentation.
BundlePresentedAmount []*ImpliedCurrencyAndAmount `xml:"BndlPresntdAmt,omitempty"`
// Status of the amount presented to the customer in the last bundle.
PresentedAmountStatus *ATMTransactionStatus2Code `xml:"PresntdAmtSts"`
// Incident occurring during the processing of the transaction.
Incident []*FailureReason4Code `xml:"Incdnt,omitempty"`
// Explanation of the incident.
IncidentDetail []*Max70Text `xml:"IncdntDtl,omitempty"`
// Identification of the reconciliation period assigned by the ATM.
ReconciliationIdentification *Max35Text `xml:"RcncltnId,omitempty"`
// Unprotected account information.
AccountData *CardAccount5 `xml:"AcctData,omitempty"`
// Encryption of account information.
ProtectedAccountData *ContentInformationType10 `xml:"PrtctdAcctData,omitempty"`
// Total amount presented to the customer.
TotalPresentedAmount *AmountAndCurrency1 `xml:"TtlPresntdAmt"`
// Total authorised amount.
TotalAuthorisedAmount *ImpliedCurrencyAndAmount `xml:"TtlAuthrsdAmt,omitempty"`
// 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).
CurrencyConversion *CurrencyConversion4 `xml:"CcyConvs,omitempty"`
// Additional charge (for instance tax or fee).
AdditionalCharge []*DetailedAmount13 `xml:"AddtlChrg,omitempty"`
// True if the customer has requested a receipt.
RequestedReceipt *TrueFalseIndicator `xml:"ReqdRct,omitempty"`
// True if a receipt has been printed and presented to the customer.
ReceiptPrinted *TrueFalseIndicator `xml:"RctPrtd,omitempty"`
// True when the card was captured by the ATM.
CapturedCard *TrueFalseIndicator `xml:"CaptrdCard,omitempty"`
// Limit of amounts for the customer.
Limits *ATMTransactionAmounts2 `xml:"Lmts,omitempty"`
// Outcome of the withdrawal authorisation.
AuthorisationResult *AuthorisationResult9 `xml:"AuthstnRslt,omitempty"`
// 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"`
// Current totals of the ATM.
ATMTotals []*ATMTotals1 `xml:"ATMTtls,omitempty"`
// Information on the cassettes of the ATM.
Cassette []*ATMCassette1 `xml:"Csstt,omitempty"`
}
func (a *ATMTransaction3) AddTransactionIdentification() *TransactionIdentifier1 {
a.TransactionIdentification = new(TransactionIdentifier1)
return a.TransactionIdentification
}
func (a *ATMTransaction3) SetTransactionStatus(value string) {
a.TransactionStatus = (*ATMTransactionStatus1Code)(&value)
}
func (a *ATMTransaction3) SetMultiBundle(value string) {
a.MultiBundle = (*TrueFalseIndicator)(&value)
}
func (a *ATMTransaction3) AddBundlePresentedAmount(value, currency string) {
a.BundlePresentedAmount = append(a.BundlePresentedAmount, NewImpliedCurrencyAndAmount(value, currency))
}
func (a *ATMTransaction3) SetPresentedAmountStatus(value string) {
a.PresentedAmountStatus = (*ATMTransactionStatus2Code)(&value)
}
func (a *ATMTransaction3) AddIncident(value string) {
a.Incident = append(a.Incident, (*FailureReason4Code)(&value))
}
func (a *ATMTransaction3) AddIncidentDetail(value string) {
a.IncidentDetail = append(a.IncidentDetail, (*Max70Text)(&value))
}
func (a *ATMTransaction3) SetReconciliationIdentification(value string) {
a.ReconciliationIdentification = (*Max35Text)(&value)
}
func (a *ATMTransaction3) AddAccountData() *CardAccount5 {
a.AccountData = new(CardAccount5)
return a.AccountData
}
func (a *ATMTransaction3) AddProtectedAccountData() *ContentInformationType10 {
a.ProtectedAccountData = new(ContentInformationType10)
return a.ProtectedAccountData
}
func (a *ATMTransaction3) AddTotalPresentedAmount() *AmountAndCurrency1 {
a.TotalPresentedAmount = new(AmountAndCurrency1)
return a.TotalPresentedAmount
}
func (a *ATMTransaction3) SetTotalAuthorisedAmount(value, currency string) {
a.TotalAuthorisedAmount = NewImpliedCurrencyAndAmount(value, currency)
}
func (a *ATMTransaction3) SetTotalRequestedAmount(value, currency string) {
a.TotalRequestedAmount = NewImpliedCurrencyAndAmount(value, currency)
}
func (a *ATMTransaction3) AddDetailedRequestedAmount() *DetailedAmount12 {
a.DetailedRequestedAmount = new(DetailedAmount12)
return a.DetailedRequestedAmount
}
func (a *ATMTransaction3) AddCurrencyConversion() *CurrencyConversion4 {
a.CurrencyConversion = new(CurrencyConversion4)
return a.CurrencyConversion
}
func (a *ATMTransaction3) AddAdditionalCharge() *DetailedAmount13 {
newValue := new(DetailedAmount13)
a.AdditionalCharge = append(a.AdditionalCharge, newValue)
return newValue
}
func (a *ATMTransaction3) SetRequestedReceipt(value string) {
a.RequestedReceipt = (*TrueFalseIndicator)(&value)
}
func (a *ATMTransaction3) SetReceiptPrinted(value string) {
a.ReceiptPrinted = (*TrueFalseIndicator)(&value)
}
func (a *ATMTransaction3) SetCapturedCard(value string) {
a.CapturedCard = (*TrueFalseIndicator)(&value)
}
func (a *ATMTransaction3) AddLimits() *ATMTransactionAmounts2 {
a.Limits = new(ATMTransactionAmounts2)
return a.Limits
}
func (a *ATMTransaction3) AddAuthorisationResult() *AuthorisationResult9 {
a.AuthorisationResult = new(AuthorisationResult9)
return a.AuthorisationResult
}
func (a *ATMTransaction3) SetICCRelatedData(value string) {
a.ICCRelatedData = (*Max10000Binary)(&value)
}
func (a *ATMTransaction3) AddATMTotals() *ATMTotals1 {
newValue := new(ATMTotals1)
a.ATMTotals = append(a.ATMTotals, newValue)
return newValue
}
func (a *ATMTransaction3) AddCassette() *ATMCassette1 {
newValue := new(ATMCassette1)
a.Cassette = append(a.Cassette, newValue)
return newValue
}