-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathATMTransaction1.go
97 lines (72 loc) · 3.5 KB
/
ATMTransaction1.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
package iso20022
// Withdrawal transaction for which an authorisation is requested.
type ATMTransaction1 struct {
// True if cash has to be dispensed by the ATM for the transaction.
CashDispensed *TrueFalseIndicator `xml:"CshDspnsd,omitempty"`
// 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"`
// Unprotected account information.
AccountData *CardAccount3 `xml:"AcctData,omitempty"`
// Encryption of account information.
ProtectedAccountData *ContentInformationType10 `xml:"PrtctdAcctData,omitempty"`
// Amount to be authorised by the issuer.
TotalRequestedAmount *AmountAndCurrency1 `xml:"TtlReqdAmt,omitempty"`
// Amounts of 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"`
// Media mix algorithm, the identification of the algorithm is an agreement between the ATM and the ATM manager.
SelectedMixType *Max35Text `xml:"SelctdMixTp,omitempty"`
// Media mix selected.
SelectedMix []*ATMMediaMix1 `xml:"SelctdMix,omitempty"`
// True if a receipt has be requested by the customer.
RequestedReceipt *TrueFalseIndicator `xml:"ReqdRct,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"`
}
func (a *ATMTransaction1) SetCashDispensed(value string) {
a.CashDispensed = (*TrueFalseIndicator)(&value)
}
func (a *ATMTransaction1) AddTransactionIdentification() *TransactionIdentifier1 {
a.TransactionIdentification = new(TransactionIdentifier1)
return a.TransactionIdentification
}
func (a *ATMTransaction1) SetReconciliationIdentification(value string) {
a.ReconciliationIdentification = (*Max35Text)(&value)
}
func (a *ATMTransaction1) AddAccountData() *CardAccount3 {
a.AccountData = new(CardAccount3)
return a.AccountData
}
func (a *ATMTransaction1) AddProtectedAccountData() *ContentInformationType10 {
a.ProtectedAccountData = new(ContentInformationType10)
return a.ProtectedAccountData
}
func (a *ATMTransaction1) AddTotalRequestedAmount() *AmountAndCurrency1 {
a.TotalRequestedAmount = new(AmountAndCurrency1)
return a.TotalRequestedAmount
}
func (a *ATMTransaction1) AddDetailedRequestedAmount() *DetailedAmount12 {
a.DetailedRequestedAmount = new(DetailedAmount12)
return a.DetailedRequestedAmount
}
func (a *ATMTransaction1) AddCurrencyConversion() *CurrencyConversion4 {
a.CurrencyConversion = new(CurrencyConversion4)
return a.CurrencyConversion
}
func (a *ATMTransaction1) SetSelectedMixType(value string) {
a.SelectedMixType = (*Max35Text)(&value)
}
func (a *ATMTransaction1) AddSelectedMix() *ATMMediaMix1 {
newValue := new(ATMMediaMix1)
a.SelectedMix = append(a.SelectedMix, newValue)
return newValue
}
func (a *ATMTransaction1) SetRequestedReceipt(value string) {
a.RequestedReceipt = (*TrueFalseIndicator)(&value)
}
func (a *ATMTransaction1) SetICCRelatedData(value string) {
a.ICCRelatedData = (*Max10000Binary)(&value)
}