Example #1
0
 public static ProductWebsiteDescription GetProductWebsiteDescription()
 {
     ProductWebsiteDescription description;
     using (var db = new StruktoWebsiteEntities())
     {
         description =
             new ProductWebsiteDescription(db.GetProductWebsiteData().Single(p => p.Valor == Settings.Default.TestProductValor));
     }
     return description;
 }
        public IWebserviceResult WriteProduct(ProductWebsiteDescription d)
        {
            var info = new RequestInfo(string.Format("WriteProduct {0}", d));

            object[] writeProduct = Webservice.writeProductV2(d.Valor, d.Name, d.Currency, d.CurrencyRisk, d.Dirty,
                                                              d.Guarantor, d.LeadManager, d.Issuer, d.AssetClass,
                                                              d.ProductCat, d.ProductType, d.ISIN, d.StockExchange,
                                                              d.Pricing, d.ValutaDate, d.EmissionPrice, d.Nominal,
                                                              d.RedemptionDate, d.StartFixationDate, d.EndFixationDate,
                                                              d.CouponObservation, d.CpGuaranteed,
                                                              d.ConditionalObservation, d.Text_Bed_Coupon, d.cpbedingt,
                                                              d.Floater, d.CPFloater, d.TextFloater, d.minCoupon,
                                                              d.maxCoupon, d.TextCoupon, d.CallData, d.EarlyRedemption,
                                                              d.TextEarlyRedemtpion, d.Cap, d.MaxPayback,
                                                              d.TextMaxPayback, d.Protection, d.ProtectionType,
                                                              d.MinPayback, d.Partizipation, d.PartizipationText,
                                                              d.Discount, d.MaxYield, d.bonuslevel, d.issuerNameShort,
                                                              d.ProductState, d.productKatId, d.productTypeId,
                                                              d.EmissionType, d.Symbol, d.SmallestTradeableUnit, d.s1t,
                                                              d.s1v, d.s2t, d.s2v, d.s3t, d.s3v, d.NameEn,
                                                              d.CurrencyRiskEn, d.AssetClassEn, d.ProductCatEn,
                                                              d.ProductTypeEn, d.PricingEn, d.CpGuaranteedEn,
                                                              d.cpbedingtEn, d.CPFloaterEn, d.CallDataEn,
                                                              d.EarlyRedemptionEn, d.CouponGuaranteed_En,
                                                              d.couponBedingtEn, d.textBedCoupon_En, d.FloaterEn,
                                                              d.TextFloaterEn, d.minCouponEn, d.maxCouponEn,
                                                              d.TextCouponEn, d.TextEarlyRedemtpionEn, d.capEn,
                                                              d.MaxPaybackEn, d.TextMaxPaybackEn, d.ProtectionEn,
                                                              d.MinPaybackEn, d.PartizipationEn, d.PartizipationTextEn,
                                                              d.DiscountEn, d.MaxYieldEn, d.bonuslevelEn, d.s1tEN,
                                                              d.s1vEn, d.s2tEn, d.s2vEn, d.s3tEn, d.s3vEn, d.HasEnglish);
            return new WebserviceResult(info, writeProduct);
        }
Example #3
0
 public static ProductWebsiteDescription GetEmptyProductWebsiteDescription()
 {
     var description = new ProductWebsiteDescription(new ProductWebsiteData());
     return description;
 }
 public IWebserviceResult WriteProduct(ProductWebsiteDescription d)
 {
     throw new NotImplementedException();
 }