-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathAcquirerProtocolParameters7.go
133 lines (98 loc) · 5.21 KB
/
AcquirerProtocolParameters7.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
package iso20022
// Acceptor parameters dedicated to the acquirer protocol.
type AcquirerProtocolParameters7 struct {
// Identification of the acquirer using this protocol.
AcquirerIdentification []*GenericIdentification53 `xml:"AcqrrId"`
// Version of the acquirer protocol parameters.
Version *Max256Text `xml:"Vrsn"`
// Identification of the payment application, user of the acquirer protocol.
ApplicationIdentification []*Max35Text `xml:"ApplId,omitempty"`
// Acquirer host configuration.
Host []*AcquirerHostConfiguration3 `xml:"Hst,omitempty"`
// Acquirer protocol parameters of transactions performing an online authorisation.
OnLineTransaction *AcquirerProtocolParameters8 `xml:"OnLineTx,omitempty"`
// Acquirer protocol parameters of transactions performing an offline authorisation.
OffLineTransaction *AcquirerProtocolParameters8 `xml:"OffLineTx,omitempty"`
// Configuration parameters of reconciliation exchanges.
ReconciliationExchange *ExchangeConfiguration6 `xml:"RcncltnXchg,omitempty"`
// Indicates the reconciliation period is assigned by the acquirer instead of the acceptor.
ReconciliationByAcquirer *TrueFalseIndicator `xml:"RcncltnByAcqrr,omitempty"`
// Indicates the reconciliation total amounts are computed per currency.
TotalsPerCurrency *TrueFalseIndicator `xml:"TtlsPerCcy,omitempty"`
// Indicates that totals in reconciliation or batch must be split per group of points of interaction and card product profiles when these information are present in the transactions.
SplitTotals *TrueFalseIndicator `xml:"SpltTtls,omitempty"`
// True if the POI must send card data (protected or plain card data) in the AcceptorCompletionAdvice message following an authorisation exchange.
CardDataVerification *TrueFalseIndicator `xml:"CardDataVrfctn,omitempty"`
// Send a cancellation advice for offline transactions not yet captured.
NotifyOffLineCancellation *TrueFalseIndicator `xml:"NtfyOffLineCxl,omitempty"`
// Types of transaction to include in the batch.
BatchTransferContent []*BatchTransactionType1Code `xml:"BtchTrfCntt,omitempty"`
// BatchTransfer are exchanged per file transfer protocol rather than per message.
FileTransferBatch *TrueFalseIndicator `xml:"FileTrfBtch,omitempty"`
// BatchTransfer are authenticated by digital signature rather than a MAC (Message Authentication Code).
BatchDigitalSignature *TrueFalseIndicator `xml:"BtchDgtlSgntr,omitempty"`
// Configuration of a message item.
MessageItem []*MessageItemCondition1 `xml:"MsgItm,omitempty"`
// Indicator to require protection of sensitive card data in messages.
ProtectCardData *TrueFalseIndicator `xml:"PrtctCardData"`
}
func (a *AcquirerProtocolParameters7) AddAcquirerIdentification() *GenericIdentification53 {
newValue := new(GenericIdentification53)
a.AcquirerIdentification = append(a.AcquirerIdentification, newValue)
return newValue
}
func (a *AcquirerProtocolParameters7) SetVersion(value string) {
a.Version = (*Max256Text)(&value)
}
func (a *AcquirerProtocolParameters7) AddApplicationIdentification(value string) {
a.ApplicationIdentification = append(a.ApplicationIdentification, (*Max35Text)(&value))
}
func (a *AcquirerProtocolParameters7) AddHost() *AcquirerHostConfiguration3 {
newValue := new(AcquirerHostConfiguration3)
a.Host = append(a.Host, newValue)
return newValue
}
func (a *AcquirerProtocolParameters7) AddOnLineTransaction() *AcquirerProtocolParameters8 {
a.OnLineTransaction = new(AcquirerProtocolParameters8)
return a.OnLineTransaction
}
func (a *AcquirerProtocolParameters7) AddOffLineTransaction() *AcquirerProtocolParameters8 {
a.OffLineTransaction = new(AcquirerProtocolParameters8)
return a.OffLineTransaction
}
func (a *AcquirerProtocolParameters7) AddReconciliationExchange() *ExchangeConfiguration6 {
a.ReconciliationExchange = new(ExchangeConfiguration6)
return a.ReconciliationExchange
}
func (a *AcquirerProtocolParameters7) SetReconciliationByAcquirer(value string) {
a.ReconciliationByAcquirer = (*TrueFalseIndicator)(&value)
}
func (a *AcquirerProtocolParameters7) SetTotalsPerCurrency(value string) {
a.TotalsPerCurrency = (*TrueFalseIndicator)(&value)
}
func (a *AcquirerProtocolParameters7) SetSplitTotals(value string) {
a.SplitTotals = (*TrueFalseIndicator)(&value)
}
func (a *AcquirerProtocolParameters7) SetCardDataVerification(value string) {
a.CardDataVerification = (*TrueFalseIndicator)(&value)
}
func (a *AcquirerProtocolParameters7) SetNotifyOffLineCancellation(value string) {
a.NotifyOffLineCancellation = (*TrueFalseIndicator)(&value)
}
func (a *AcquirerProtocolParameters7) AddBatchTransferContent(value string) {
a.BatchTransferContent = append(a.BatchTransferContent, (*BatchTransactionType1Code)(&value))
}
func (a *AcquirerProtocolParameters7) SetFileTransferBatch(value string) {
a.FileTransferBatch = (*TrueFalseIndicator)(&value)
}
func (a *AcquirerProtocolParameters7) SetBatchDigitalSignature(value string) {
a.BatchDigitalSignature = (*TrueFalseIndicator)(&value)
}
func (a *AcquirerProtocolParameters7) AddMessageItem() *MessageItemCondition1 {
newValue := new(MessageItemCondition1)
a.MessageItem = append(a.MessageItem, newValue)
return newValue
}
func (a *AcquirerProtocolParameters7) SetProtectCardData(value string) {
a.ProtectCardData = (*TrueFalseIndicator)(&value)
}