public void Put(DE54_AmountTypeCode amountType, DE3_AccountType accountType, Iso4217_CurrencyCode currencyCode, decimal? amount) { DE54_AdditionalAmount entry = new DE54_AdditionalAmount(); entry.AccountType = accountType; entry.AmountType = amountType; entry.CurrencyCode = currencyCode; entry.Amount = amount; Put(entry); }
public DE46_FeeAmounts FromByteArray(byte[] buffer) { StringParser sp = new StringParser(buffer); //FeeTypeCode = sp.ReadStringConstant<FeeType>(2); //CurrencyCode = sp.ReadStringConstant<Iso4217_CurrencyCode>(3); FeeTypeCode = EnumConverter.FromMapping <FeeType>(Target.NWS, sp.ReadString(2)); CurrencyCode = EnumConverter.FromMapping <Iso4217_CurrencyCode>(Target.NWS, sp.ReadString(3)); string D1 = sp.ReadString(1); // TODO: We don't know what this is Amount = StringUtils.ToAmount(sp.ReadString(8)); ConversionRate = decimal.Parse(sp.ReadString(8)); //decimal.TryParse(sp.ReadString(8), out ConversionRate); string D2 = sp.ReadString(1); // TODO: We don't know what this is ReconciliationAmount = StringUtils.ToAmount(sp.ReadString(8)); //ReconciliationCurrencyCode = sp.ReadStringConstant<Iso4217_CurrencyCode>(3); ReconciliationCurrencyCode = EnumConverter.FromMapping <Iso4217_CurrencyCode>(Target.NWS, sp.ReadString(3)); return(this); }