-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathAmountAndDirection36.go
63 lines (46 loc) · 2.53 KB
/
AmountAndDirection36.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
package iso20022
// Posting of an item to a cash account, in the context of a cash transaction, that results in an increase or decrease to the balance of the account.
type AmountAndDirection36 struct {
// Indicates whether the net proceeds include interest accrued on the financial instrument.
AccruedInterestIndicator *YesNoIndicator `xml:"AcrdIntrstInd,omitempty"`
// Whether the net proceeds include stamp duty amount.
StampDutyIndicator *YesNoIndicator `xml:"StmpDtyInd,omitempty"`
// Indicates whether the net proceeds include brokerage fees for the transaction. If absent, element is not required.
BrokerageAmountIndicator *YesNoIndicator `xml:"BrkrgAmtInd,omitempty"`
// Amount of money in the cash entry.
Amount *ActiveCurrencyAndAmount `xml:"Amt"`
// Indicates whether an entry is a credit or a debit.
CreditDebitIndicator *CreditDebitCode `xml:"CdtDbtInd"`
// Posting/settlement amount in its original currency when conversion from/into another currency has occurred.
OriginalCurrencyAndOrderedAmount *ActiveOrHistoricCurrencyAndAmount `xml:"OrgnlCcyAndOrdrdAmt,omitempty"`
// Information needed to process a currency exchange or conversion.
ForeignExchangeDetails *ForeignExchangeTerms11 `xml:"FXDtls,omitempty"`
// Date and time at which the cash is at the disposal of the credit account owner, or ceases to be at the disposal of the debit account owner.
ValueDate *DateAndDateTimeChoice `xml:"ValDt,omitempty"`
}
func (a *AmountAndDirection36) SetAccruedInterestIndicator(value string) {
a.AccruedInterestIndicator = (*YesNoIndicator)(&value)
}
func (a *AmountAndDirection36) SetStampDutyIndicator(value string) {
a.StampDutyIndicator = (*YesNoIndicator)(&value)
}
func (a *AmountAndDirection36) SetBrokerageAmountIndicator(value string) {
a.BrokerageAmountIndicator = (*YesNoIndicator)(&value)
}
func (a *AmountAndDirection36) SetAmount(value, currency string) {
a.Amount = NewActiveCurrencyAndAmount(value, currency)
}
func (a *AmountAndDirection36) SetCreditDebitIndicator(value string) {
a.CreditDebitIndicator = (*CreditDebitCode)(&value)
}
func (a *AmountAndDirection36) SetOriginalCurrencyAndOrderedAmount(value, currency string) {
a.OriginalCurrencyAndOrderedAmount = NewActiveOrHistoricCurrencyAndAmount(value, currency)
}
func (a *AmountAndDirection36) AddForeignExchangeDetails() *ForeignExchangeTerms11 {
a.ForeignExchangeDetails = new(ForeignExchangeTerms11)
return a.ForeignExchangeDetails
}
func (a *AmountAndDirection36) AddValueDate() *DateAndDateTimeChoice {
a.ValueDate = new(DateAndDateTimeChoice)
return a.ValueDate
}