-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathAgreedRate3.go
26 lines (19 loc) · 1002 Bytes
/
AgreedRate3.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
package iso20022
// Information needed to process a currency exchange or conversion.
type AgreedRate3 struct {
// The value of one currency expressed in relation to another currency. ExchangeRate expresses the ratio between UnitCurrency and QuotedCurrency (ExchangeRate = UnitCurrency/QuotedCurrency).
ExchangeRate *BaseOneRate `xml:"XchgRate"`
// Currency in which the rate of exchange is expressed in a currency exchange. In the example 1GBP = xxxCUR, the unit currency is GBP.
UnitCurrency *ActiveCurrencyCode `xml:"UnitCcy,omitempty"`
// Currency into which the base currency is converted, in a currency exchange.
QuotedCurrency *ActiveCurrencyCode `xml:"QtdCcy,omitempty"`
}
func (a *AgreedRate3) SetExchangeRate(value string) {
a.ExchangeRate = (*BaseOneRate)(&value)
}
func (a *AgreedRate3) SetUnitCurrency(value string) {
a.UnitCurrency = (*ActiveCurrencyCode)(&value)
}
func (a *AgreedRate3) SetQuotedCurrency(value string) {
a.QuotedCurrency = (*ActiveCurrencyCode)(&value)
}