-
Notifications
You must be signed in to change notification settings - Fork 0
/
camt.003.001.07.xsd.go
482 lines (395 loc) · 23.2 KB
/
camt.003.001.07.xsd.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
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
// Code generated by download. DO NOT EDIT.
package iso20022_camt_003_001_07
import (
"bytes"
"encoding/xml"
"time"
)
type AccountCriteria3Choice struct {
QryNm Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 QryNm,omitempty"`
NewCrit AccountCriteria7 `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 NewCrit,omitempty"`
}
type AccountCriteria7 struct {
NewQryNm Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 NewQryNm,omitempty"`
SchCrit []CashAccountSearchCriteria7 `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 SchCrit,omitempty"`
RtrCrit CashAccountReturnCriteria5 `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 RtrCrit,omitempty"`
}
type AccountIdentification4Choice struct {
IBAN IBAN2007Identifier `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 IBAN,omitempty"`
Othr GenericAccountIdentification1 `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 Othr,omitempty"`
}
type AccountIdentificationSearchCriteria2Choice struct {
EQ AccountIdentification4Choice `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 EQ,omitempty"`
CTTxt Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 CTTxt,omitempty"`
NCTTxt Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 NCTTxt,omitempty"`
}
type AccountQuery3 struct {
QryTp QueryType2Code `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 QryTp,omitempty"`
AcctCrit AccountCriteria3Choice `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 AcctCrit,omitempty"`
}
type AccountSchemeName1Choice struct {
Cd ExternalAccountIdentification1Code `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 Cd,omitempty"`
Prtry Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 Prtry,omitempty"`
}
// Must match the pattern [A-Z]{3,3}
type ActiveOrHistoricCurrencyCode string
// May be one of ADDR, PBOX, HOME, BIZZ, MLTO, DLVY
type AddressType2Code string
type AddressType3Choice struct {
Cd AddressType2Code `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 Cd,omitempty"`
Prtry GenericIdentification30 `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 Prtry,omitempty"`
}
// Must match the pattern [A-Z0-9]{4,4}[A-Z]{2,2}[A-Z0-9]{2,2}([A-Z0-9]{3,3}){0,1}
type AnyBICDec2014Identifier string
// Must match the pattern [A-Z0-9]{4,4}[A-Z]{2,2}[A-Z0-9]{2,2}([A-Z0-9]{3,3}){0,1}
type BICFIDec2014Identifier string
// May be one of BILA, MULT
type BalanceCounterparty1Code string
type BalanceType11Choice struct {
Cd ExternalSystemBalanceType1Code `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 Cd,omitempty"`
Prtry Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 Prtry,omitempty"`
}
type BranchAndFinancialInstitutionIdentification6 struct {
FinInstnId FinancialInstitutionIdentification18 `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 FinInstnId"`
BrnchId BranchData3 `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 BrnchId,omitempty"`
}
type BranchData3 struct {
Id Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 Id,omitempty"`
LEI LEIIdentifier `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 LEI,omitempty"`
Nm Max140Text `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 Nm,omitempty"`
PstlAdr PostalAddress24 `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 PstlAdr,omitempty"`
}
type CashAccountReturnCriteria5 struct {
NmInd bool `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 NmInd,omitempty"`
CcyInd bool `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 CcyInd,omitempty"`
TpInd bool `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 TpInd,omitempty"`
MulLmtInd bool `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 MulLmtInd,omitempty"`
MulBalRtrCrit CashBalanceReturnCriteria2 `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 MulBalRtrCrit,omitempty"`
BilLmtInd bool `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 BilLmtInd,omitempty"`
BilBalRtrCrit CashBalanceReturnCriteria2 `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 BilBalRtrCrit,omitempty"`
StgOrdrInd bool `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 StgOrdrInd,omitempty"`
AcctOwnrInd bool `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 AcctOwnrInd,omitempty"`
AcctSvcrInd bool `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 AcctSvcrInd,omitempty"`
}
type CashAccountSearchCriteria7 struct {
AcctId []AccountIdentificationSearchCriteria2Choice `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 AcctId,omitempty"`
Tp []CashAccountType2Choice `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 Tp,omitempty"`
Ccy []ActiveOrHistoricCurrencyCode `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 Ccy,omitempty"`
Bal []CashBalance12 `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 Bal,omitempty"`
AcctOwnr PartyIdentification135 `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 AcctOwnr,omitempty"`
AcctSvcr BranchAndFinancialInstitutionIdentification6 `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 AcctSvcr,omitempty"`
}
type CashAccountType2Choice struct {
Cd ExternalCashAccountType1Code `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 Cd,omitempty"`
Prtry Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 Prtry,omitempty"`
}
type CashBalance12 struct {
Tp []BalanceType11Choice `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 Tp,omitempty"`
CtrPtyTp BalanceCounterparty1Code `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 CtrPtyTp"`
CtrPtyId []BranchAndFinancialInstitutionIdentification6 `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 CtrPtyId,omitempty"`
ValDt []DateAndDateTimeSearch4Choice `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 ValDt,omitempty"`
PrcgDt DateAndDateTimeSearch4Choice `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 PrcgDt,omitempty"`
}
type CashBalanceReturnCriteria2 struct {
TpInd bool `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 TpInd"`
StsInd bool `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 StsInd"`
ValDtInd bool `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 ValDtInd"`
PrcgDtInd bool `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 PrcgDtInd"`
NbOfPmtsInd bool `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 NbOfPmtsInd"`
}
type ClearingSystemIdentification2Choice struct {
Cd ExternalClearingSystemIdentification1Code `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 Cd,omitempty"`
Prtry Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 Prtry,omitempty"`
}
type ClearingSystemMemberIdentification2 struct {
ClrSysId ClearingSystemIdentification2Choice `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 ClrSysId,omitempty"`
MmbId Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 MmbId"`
}
type Contact4 struct {
NmPrfx NamePrefix2Code `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 NmPrfx,omitempty"`
Nm Max140Text `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 Nm,omitempty"`
PhneNb PhoneNumber `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 PhneNb,omitempty"`
MobNb PhoneNumber `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 MobNb,omitempty"`
FaxNb PhoneNumber `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 FaxNb,omitempty"`
EmailAdr Max2048Text `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 EmailAdr,omitempty"`
EmailPurp Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 EmailPurp,omitempty"`
JobTitl Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 JobTitl,omitempty"`
Rspnsblty Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 Rspnsblty,omitempty"`
Dept Max70Text `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 Dept,omitempty"`
Othr []OtherContact1 `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 Othr,omitempty"`
PrefrdMtd PreferredContactMethod1Code `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 PrefrdMtd,omitempty"`
}
// Must match the pattern [A-Z]{2,2}
type CountryCode string
type DateAndDateTimeSearch4Choice struct {
DtTm DateTimeSearch2Choice `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 DtTm,omitempty"`
Dt DatePeriodSearch1Choice `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 Dt,omitempty"`
}
type DateAndPlaceOfBirth1 struct {
BirthDt ISODate `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 BirthDt"`
PrvcOfBirth Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 PrvcOfBirth,omitempty"`
CityOfBirth Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 CityOfBirth"`
CtryOfBirth CountryCode `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 CtryOfBirth"`
}
type DatePeriod2 struct {
FrDt ISODate `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 FrDt"`
ToDt ISODate `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 ToDt"`
}
type DatePeriodSearch1Choice struct {
FrDt ISODate `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 FrDt,omitempty"`
ToDt ISODate `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 ToDt,omitempty"`
FrToDt DatePeriod2 `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 FrToDt,omitempty"`
EQDt ISODate `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 EQDt,omitempty"`
NEQDt ISODate `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 NEQDt,omitempty"`
}
type DateTimePeriod1 struct {
FrDtTm ISODateTime `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 FrDtTm"`
ToDtTm ISODateTime `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 ToDtTm"`
}
type DateTimeSearch2Choice struct {
FrDtTm ISODateTime `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 FrDtTm,omitempty"`
ToDtTm ISODateTime `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 ToDtTm,omitempty"`
FrToDtTm DateTimePeriod1 `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 FrToDtTm,omitempty"`
EQDtTm ISODateTime `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 EQDtTm,omitempty"`
NEQDtTm ISODateTime `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 NEQDtTm,omitempty"`
}
type Document struct {
GetAcct GetAccountV07 `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 GetAcct"`
}
// Must match the pattern [a-zA-Z0-9]{4}
type Exact4AlphaNumericText string
// May be no more than 4 items long
type ExternalAccountIdentification1Code string
// May be no more than 4 items long
type ExternalCashAccountType1Code string
// May be no more than 5 items long
type ExternalClearingSystemIdentification1Code string
// May be no more than 4 items long
type ExternalEnquiryRequestType1Code string
// May be no more than 4 items long
type ExternalFinancialInstitutionIdentification1Code string
// May be no more than 4 items long
type ExternalOrganisationIdentification1Code string
// May be no more than 4 items long
type ExternalPaymentControlRequestType1Code string
// May be no more than 4 items long
type ExternalPersonIdentification1Code string
// May be no more than 4 items long
type ExternalSystemBalanceType1Code string
type FinancialIdentificationSchemeName1Choice struct {
Cd ExternalFinancialInstitutionIdentification1Code `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 Cd,omitempty"`
Prtry Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 Prtry,omitempty"`
}
type FinancialInstitutionIdentification18 struct {
BICFI BICFIDec2014Identifier `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 BICFI,omitempty"`
ClrSysMmbId ClearingSystemMemberIdentification2 `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 ClrSysMmbId,omitempty"`
LEI LEIIdentifier `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 LEI,omitempty"`
Nm Max140Text `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 Nm,omitempty"`
PstlAdr PostalAddress24 `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 PstlAdr,omitempty"`
Othr GenericFinancialIdentification1 `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 Othr,omitempty"`
}
type GenericAccountIdentification1 struct {
Id Max34Text `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 Id"`
SchmeNm AccountSchemeName1Choice `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 SchmeNm,omitempty"`
Issr Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 Issr,omitempty"`
}
type GenericFinancialIdentification1 struct {
Id Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 Id"`
SchmeNm FinancialIdentificationSchemeName1Choice `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 SchmeNm,omitempty"`
Issr Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 Issr,omitempty"`
}
type GenericIdentification1 struct {
Id Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 Id"`
SchmeNm Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 SchmeNm,omitempty"`
Issr Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 Issr,omitempty"`
}
type GenericIdentification30 struct {
Id Exact4AlphaNumericText `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 Id"`
Issr Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 Issr"`
SchmeNm Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 SchmeNm,omitempty"`
}
type GenericOrganisationIdentification1 struct {
Id Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 Id"`
SchmeNm OrganisationIdentificationSchemeName1Choice `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 SchmeNm,omitempty"`
Issr Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 Issr,omitempty"`
}
type GenericPersonIdentification1 struct {
Id Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 Id"`
SchmeNm PersonIdentificationSchemeName1Choice `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 SchmeNm,omitempty"`
Issr Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 Issr,omitempty"`
}
type GetAccountV07 struct {
MsgHdr MessageHeader9 `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 MsgHdr"`
AcctQryDef AccountQuery3 `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 AcctQryDef,omitempty"`
SplmtryData []SupplementaryData1 `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 SplmtryData,omitempty"`
}
// Must match the pattern [A-Z]{2,2}[0-9]{2,2}[a-zA-Z0-9]{1,30}
type IBAN2007Identifier string
type ISODate time.Time
func (t *ISODate) UnmarshalText(text []byte) error {
return (*xsdDate)(t).UnmarshalText(text)
}
func (t ISODate) MarshalText() ([]byte, error) {
return xsdDate(t).MarshalText()
}
type ISODateTime time.Time
func (t *ISODateTime) UnmarshalText(text []byte) error {
return (*xsdDateTime)(t).UnmarshalText(text)
}
func (t ISODateTime) MarshalText() ([]byte, error) {
return xsdDateTime(t).MarshalText()
}
// Must match the pattern [A-Z0-9]{18,18}[0-9]{2,2}
type LEIIdentifier string
// May be no more than 128 items long
type Max128Text string
// May be no more than 140 items long
type Max140Text string
// May be no more than 16 items long
type Max16Text string
// May be no more than 2048 items long
type Max2048Text string
// May be no more than 34 items long
type Max34Text string
// May be no more than 350 items long
type Max350Text string
// May be no more than 35 items long
type Max35Text string
// May be no more than 4 items long
type Max4Text string
// May be no more than 70 items long
type Max70Text string
type MessageHeader9 struct {
MsgId Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 MsgId"`
CreDtTm ISODateTime `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 CreDtTm,omitempty"`
ReqTp RequestType4Choice `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 ReqTp,omitempty"`
}
// May be one of DOCT, MADM, MISS, MIST, MIKS
type NamePrefix2Code string
type OrganisationIdentification29 struct {
AnyBIC AnyBICDec2014Identifier `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 AnyBIC,omitempty"`
LEI LEIIdentifier `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 LEI,omitempty"`
Othr []GenericOrganisationIdentification1 `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 Othr,omitempty"`
}
type OrganisationIdentificationSchemeName1Choice struct {
Cd ExternalOrganisationIdentification1Code `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 Cd,omitempty"`
Prtry Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 Prtry,omitempty"`
}
type OtherContact1 struct {
ChanlTp Max4Text `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 ChanlTp"`
Id Max128Text `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 Id,omitempty"`
}
type Party38Choice struct {
OrgId OrganisationIdentification29 `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 OrgId,omitempty"`
PrvtId PersonIdentification13 `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 PrvtId,omitempty"`
}
type PartyIdentification135 struct {
Nm Max140Text `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 Nm,omitempty"`
PstlAdr PostalAddress24 `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 PstlAdr,omitempty"`
Id Party38Choice `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 Id,omitempty"`
CtryOfRes CountryCode `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 CtryOfRes,omitempty"`
CtctDtls Contact4 `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 CtctDtls,omitempty"`
}
type PersonIdentification13 struct {
DtAndPlcOfBirth DateAndPlaceOfBirth1 `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 DtAndPlcOfBirth,omitempty"`
Othr []GenericPersonIdentification1 `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 Othr,omitempty"`
}
type PersonIdentificationSchemeName1Choice struct {
Cd ExternalPersonIdentification1Code `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 Cd,omitempty"`
Prtry Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 Prtry,omitempty"`
}
// Must match the pattern \+[0-9]{1,3}-[0-9()+\-]{1,30}
type PhoneNumber string
type PostalAddress24 struct {
AdrTp AddressType3Choice `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 AdrTp,omitempty"`
Dept Max70Text `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 Dept,omitempty"`
SubDept Max70Text `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 SubDept,omitempty"`
StrtNm Max70Text `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 StrtNm,omitempty"`
BldgNb Max16Text `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 BldgNb,omitempty"`
BldgNm Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 BldgNm,omitempty"`
Flr Max70Text `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 Flr,omitempty"`
PstBx Max16Text `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 PstBx,omitempty"`
Room Max70Text `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 Room,omitempty"`
PstCd Max16Text `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 PstCd,omitempty"`
TwnNm Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 TwnNm,omitempty"`
TwnLctnNm Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 TwnLctnNm,omitempty"`
DstrctNm Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 DstrctNm,omitempty"`
CtrySubDvsn Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 CtrySubDvsn,omitempty"`
Ctry CountryCode `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 Ctry,omitempty"`
AdrLine []Max70Text `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 AdrLine,omitempty"`
}
// May be one of LETT, MAIL, PHON, FAXX, CELL
type PreferredContactMethod1Code string
// May be one of ALLL, CHNG, MODF, DELD
type QueryType2Code string
type RequestType4Choice struct {
PmtCtrl ExternalPaymentControlRequestType1Code `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 PmtCtrl,omitempty"`
Enqry ExternalEnquiryRequestType1Code `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 Enqry,omitempty"`
Prtry GenericIdentification1 `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 Prtry,omitempty"`
}
type SupplementaryData1 struct {
PlcAndNm Max350Text `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 PlcAndNm,omitempty"`
Envlp SupplementaryDataEnvelope1 `xml:"urn:iso:std:iso:20022:tech:xsd:camt.003.001.07 Envlp"`
}
type SupplementaryDataEnvelope1 struct {
Item string `xml:",any"`
}
type xsdDate time.Time
func (t *xsdDate) UnmarshalText(text []byte) error {
return _unmarshalTime(text, (*time.Time)(t), "2006-01-02")
}
func (t xsdDate) MarshalText() ([]byte, error) {
return _marshalTime((time.Time)(t), "2006-01-02")
}
func (t xsdDate) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
if (time.Time)(t).IsZero() {
return nil
}
m, err := t.MarshalText()
if err != nil {
return err
}
return e.EncodeElement(m, start)
}
func (t xsdDate) MarshalXMLAttr(name xml.Name) (xml.Attr, error) {
if (time.Time)(t).IsZero() {
return xml.Attr{}, nil
}
m, err := t.MarshalText()
return xml.Attr{Name: name, Value: string(m)}, err
}
func _unmarshalTime(text []byte, t *time.Time, format string) (err error) {
s := string(bytes.TrimSpace(text))
*t, err = time.Parse(format, s)
if _, ok := err.(*time.ParseError); ok {
*t, err = time.Parse(format+"Z07:00", s)
}
return err
}
func _marshalTime(t time.Time, format string) ([]byte, error) {
return []byte(t.Format(format + "Z07:00")), nil
}
type xsdDateTime time.Time
func (t *xsdDateTime) UnmarshalText(text []byte) error {
return _unmarshalTime(text, (*time.Time)(t), "2006-01-02T15:04:05.999999999")
}
func (t xsdDateTime) MarshalText() ([]byte, error) {
return _marshalTime((time.Time)(t), "2006-01-02T15:04:05.999999999")
}
func (t xsdDateTime) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
if (time.Time)(t).IsZero() {
return nil
}
m, err := t.MarshalText()
if err != nil {
return err
}
return e.EncodeElement(m, start)
}
func (t xsdDateTime) MarshalXMLAttr(name xml.Name) (xml.Attr, error) {
if (time.Time)(t).IsZero() {
return xml.Attr{}, nil
}
m, err := t.MarshalText()
return xml.Attr{Name: name, Value: string(m)}, err
}