示例#1
0
    public IrelandMarket()
        : base()
    {
        Name         = MarketName.Ireland;
        Description  = CommonResources.Countries(CountryCodes.Ireland);
        CookieValue  = CountryCodes.Ireland;
        CultureCode  = CultureCodes.English_Ireland;
        CurrencyCode = CurrencyCodes.Euro;
        CountryCode  = CountryCodes.Ireland;
        IsDefault    = true;
        Countries    = new List <string> {
            CountryCodes.Ireland
        };
        MaxOrderAmount            = 1200;
        MaxMultipleAmount         = 3;
        SportsNutritionCategoryID = 202;
        taxMask = "";
        Company = new CompanyInfo()
        {
            CorporateCalendarAccountID = 1,
            Name = "Immunotec",
            //Address = CorporateAddress(),
            Phone                 = "1-800-947-418",
            Email                 = "*****@*****.**",
            Facebook              = "https://www.facebook.com/Immunotec",
            Twitter               = "https://twitter.com/immunotec_hq",
            YouTube               = "https://www.youtube.com/user/CorpImmunotec",
            Blog                  = "",
            Pinterest             = "",
            Instagram             = "https://www.instagram.com/immunoteccorporate/",
            LinkedIn              = "https://www.linkedin.com/company/1813270",
            Google                = "https://plus.google.com/+immunotec",
            Vimeo                 = "https://vimeo.com/immunotecinc",
            Podcast               = "http://immunotec.podbean.com/",
            DefaultCompanyMessage = "",
        };

        //AvailablePaymentTypes = new List<IPaymentMethod>
        //{
        //    new CreditCard()
        //};

        AvailableLanguages = new List <Language>
        {
            new Language(Languages.English_Ireland, CultureCodes.English_Ireland),
        };

        //AvailableAutoOrderFrequencyTypes = new List<Common.Api.ExigoWebService.FrequencyType>
        //{
        //    Api.ExigoWebService.FrequencyType.Monthly,
        //    Api.ExigoWebService.FrequencyType.BiWeekly,
        //    Api.ExigoWebService.FrequencyType.Weekly
        //};

        AvailableShipMethods = new List <int> {
            6, 7
        };

        IncludeTax = true;
    }
示例#2
0
    public DominicanRepublicMarket()
        : base()
    {
        Name         = MarketName.DominicanRepublic;
        Description  = CommonResources.Countries(CountryCodes.DominicanRepublic);
        CookieValue  = CountryCodes.DominicanRepublic;
        CultureCode  = CultureCodes.Spanish_DominicanRepublic;
        CurrencyCode = CurrencyCodes.DominicanPeso;
        CountryCode  = CountryCodes.DominicanRepublic;
        IsDefault    = false;
        Countries    = new List <string> {
            CountryCodes.DominicanRepublic
        };
        MaxOrderAmount            = 41500;
        MaxMultipleAmount         = 3;
        SportsNutritionCategoryID = 201;
        taxMask = "***********";
        Company = new CompanyInfo()
        {
            CorporateCalendarAccountID = 1,
            Name = "Immunotec República Dominicana S.R.L",
            //Address = CorporateAddress(),
            Phone                 = "+1 829-954-7209",
            Email                 = "*****@*****.**",
            Facebook              = "https://www.facebook.com/ImmunotecInc.esp/",
            Twitter               = "https://twitter.com/immunotecInc",
            YouTube               = "https://www.youtube.com/user/CorpImmunotec",
            Blog                  = "",
            Pinterest             = "",
            Instagram             = "https://www.instagram.com/immunoteccorporate/",
            LinkedIn              = "https://www.linkedin.com/company/1813270",
            Google                = "https://plus.google.com/+immunotec",
            Vimeo                 = "https://vimeo.com/immunotecinc",
            Podcast               = "http://immunotec.podbean.com/",
            DefaultCompanyMessage = "",
        };

        //AvailablePaymentTypes = new List<IPaymentMethod>
        //{
        //    new CreditCard()
        //};

        AvailableLanguages = new List <Language>
        {
            new Language(Languages.Spanish_DominicanReplublic, CultureCodes.Spanish_DominicanRepublic)
        };

        //AvailableAutoOrderFrequencyTypes = new List<Common.Api.ExigoWebService.FrequencyType>
        //{
        //    Api.ExigoWebService.FrequencyType.Monthly,
        //    Api.ExigoWebService.FrequencyType.BiWeekly,
        //    Api.ExigoWebService.FrequencyType.Weekly
        //};

        AvailableShipMethods = new List <int> {
            6, 7
        };

        IncludeTax = true;
    }
        public ActionResult ManageResources()
        {
            //set up the model/service and fetch data
            var model = new ResourceListViewModel();

            model.ResourceCategories  = ExigoDAL.GetResourceCategories(new GetResourceCategoriesRequest()).OrderBy(c => c.CategoryOrder);
            model.CountryAvailability = GlobalSettings.Markets.AvailableMarkets;
            model.Languages           = ExigoDAL.GetUniqueLanguages().ToList();
            model.ResourceTypes       = ExigoDAL.GetResourceTypes(new GetResourceTypeRequest()).OrderBy(rt => rt.SortOrder).ToList();
            model.CategoryTranslation = ExigoDAL.GetCategoryTranslations(new GetTranslatedCategoryRequest());
            model.Tags = ExigoDAL.GetTagsForResources(new GetTagsForResourcesRequest());

            //Create ListItems for the Market/Language DropDown
            List <SelectListItem> items = new List <SelectListItem>();

            foreach (var market in model.CountryAvailability)
            {
                SelectListItem item = new SelectListItem()
                {
                    Value    = market.Countries.FirstOrDefault(),
                    Text     = CommonResources.Countries(market.Countries.FirstOrDefault()),
                    Selected = Identity.Current.Country == market.Countries.FirstOrDefault()
                };
                items.Add(item);
            }
            model.CountryList = items;

            return(View(model));
        }
示例#4
0
    public UnitedStatesMarket()
        : base()
    {
        Name         = MarketName.UnitedStates;
        Description  = CommonResources.Countries(CountryCodes.UnitedStates);
        CookieValue  = CountryCodes.UnitedStates;
        CultureCode  = CultureCodes.English_UnitedStates;
        CurrencyCode = CurrencyCodes.DollarsUS;
        CountryCode  = CountryCodes.UnitedStates;
        IsDefault    = true;
        Countries    = new List <string> {
            CountryCodes.UnitedStates
        };
        MaxOrderAmount            = 1300;
        MaxMultipleAmount         = 3;
        SportsNutritionCategoryID = 198;
        taxMask = "999-99-9999";
        Company = new CompanyInfo()
        {
            CorporateCalendarAccountID = 1,
            Name = "Immunotec",
            //Address = CorporateAddress(),
            Phone = "+1 832-915-3603",
            Email = "*****@*****.**",
            //Facebook = FacebookUrl(),
            //Twitter = TwitterUrl(),
            YouTube               = "https://www.youtube.com/user/CorpImmunotec",
            Blog                  = "",
            Pinterest             = "",
            Instagram             = "https://www.instagram.com/immunoteccorporate/",
            LinkedIn              = "https://www.linkedin.com/company/1813270",
            Google                = "https://plus.google.com/+immunotec",
            Vimeo                 = "https://vimeo.com/immunotecinc",
            Podcast               = "http://immunotec.podbean.com/",
            DefaultCompanyMessage = "",
        };

        //AvailablePaymentTypes = new List<IPaymentMethod>
        //{
        //    new CreditCard()
        //};

        AvailableLanguages = new List <Language>
        {
            new Language(Languages.English_UnitedStates, CultureCodes.English_UnitedStates),
            new Language(Languages.Spanish_UnitedStates, CultureCodes.Spanish_UnitedStates)
        };

        //AvailableAutoOrderFrequencyTypes = new List<Common.Api.ExigoWebService.FrequencyType>
        //{
        //    Api.ExigoWebService.FrequencyType.Monthly,
        //    Api.ExigoWebService.FrequencyType.BiWeekly,
        //    Api.ExigoWebService.FrequencyType.Weekly
        //};

        AvailableShipMethods = new List <int> {
            6, 7
        };
    }
示例#5
0
    public ColombiaMarket()
        : base()
    {
        Name         = MarketName.Colombia;
        Description  = CommonResources.Countries(CountryCodes.Colombia);
        CookieValue  = CountryCodes.Colombia;
        CultureCode  = CultureCodes.Spanish_Colombia;
        CountryCode  = CountryCodes.Colombia;
        CurrencyCode = CurrencyCodes.ColombianPeso;
        IsDefault    = false;
        Countries    = new List <string> {
            CountryCodes.Colombia
        };
        MaxOrderAmount            = 2285000;
        MaxMultipleAmount         = 3;
        SportsNutritionCategoryID = 200;
        taxMask           = "9999999999";
        curpMask          = "aaaa999999haa*****";
        AllowBankPayments = true;
        HasPayU           = true;
        BankChoices       = new Dictionary <string, string>()
        {
            { "Banco Colpatria", "5" }
        };
        Company = new CompanyInfo()
        {
            CorporateCalendarAccountID = 1,
            Name = "Immunotec Colombia S.A.S.",
            //Address = CorporateAddress(),
            Phone                 = "+57 1 508 6287",
            Email                 = "*****@*****.**",
            Facebook              = "https://www.facebook.com/ImmunotecIncColombia/",
            Twitter               = "https://twitter.com/ImmunotecInc",
            YouTube               = "https://www.youtube.com/user/CorpImmunotec",
            Blog                  = "",
            Pinterest             = "",
            Instagram             = "https://www.instagram.com/immunoteccorporate/",
            LinkedIn              = "https://www.linkedin.com/company/1813270",
            Google                = "https://plus.google.com/+immunotec",
            Vimeo                 = "https://vimeo.com/immunotecinc",
            Podcast               = "http://immunotec.podbean.com/",
            DefaultCompanyMessage = "",
            Nit = "901.049.920-1"
        };

        //AvailablePaymentTypes = new List<IPaymentMethod>
        //{
        //    new CreditCard()
        //};

        AvailableLanguages = new List <Language>
        {
            new Language(Languages.Spanish_Colombia, CultureCodes.Spanish_Colombia)
        };

        //AvailableAutoOrderFrequencyTypes = new List<Common.Api.ExigoWebService.FrequencyType>
        //{
        //    Api.ExigoWebService.FrequencyType.Monthly,
        //    Api.ExigoWebService.FrequencyType.BiWeekly,
        //    Api.ExigoWebService.FrequencyType.Weekly
        //};

        AvailableShipMethods = new List <int> {
            6, 7
        };
        //ID of the user account for each country associated with the shop, by sending only
        //payment means belonging to that country will be displayed.
        AppId      = "com.immunotec.payucolombia";
        PrivateKey = "a085df4a-4170-44d2-a354-2fcde74539f6";

        TestAppId      = "com.immunotec.514788";
        TestPrivateKey = "0f1de304-6feb-4597-b7f4-4c2bda55fded";

        TestApiLogin = "******";
        TestApiKey   = "LYHSbBlP4OFAi5dfMJNdsU46AV";

        ApiLogin = "******";
        ApiKey   = "5ReQ4kLAv56h9ub8Dp6466A5OK";

        IncludeTax = true;
    }
示例#6
0
        public JsonNetResult GetResourceList(ResourceFilters filter)
        {
            try
            {
                var model = new ResourceListViewModel();
                model.Filter             = filter;
                model.IsResourceManager  = filter.isResourceManager;
                model.ResourceCategories = new JavaScriptSerializer().Deserialize <IEnumerable <ExigoService.ResourceCategory> >(filter.Categories);
                var filteredcatfilter = filter.CategoryFilter != null ? new JavaScriptSerializer().Deserialize <string>(filter.CategoryFilter) : "";
                var categoryFilter    = (filteredcatfilter != null && filteredcatfilter != "") ? Guid.Parse(filteredcatfilter) : Guid.Empty;
                model.ResourceList     = Exigo.GetResourceItems(new GetResourcesRequest());
                model.CategoryItemList = Exigo.GetResourceCategoryItems(new GetResourceCategoryItemsRequest()).OrderBy(t => t.ItemOrder);
                model.Types            = Exigo.GetResourceTypes(new GetResourceTypeRequest()
                {
                    TypeDescriptions = filter.MediaFilter
                });
                //Get a List of CategoryIDs from the Rescource Category List
                var catIds = model.ResourceCategories.Select(c => c.CategoryID).ToList();
                //Get all resources assigned to a CURRENT Category ID
                var assigned = model.CategoryItemList.Where(c => catIds.Contains(c.CategoryID)).ToList();
                //Assign all remaining items so they may be displayed in the Unassigned Category
                model.UnassignedResources = model.CategoryItemList.Except(assigned).ToList();
                //Get a list of Unassigned Resources before filtering by market
                var unassignedresourceIDs = model.UnassignedResources.Select(ur => ur.ItemID).ToList();
                model.UnassignedRsourceList = model.ResourceList.Where(rl => unassignedresourceIDs.Contains(rl.ItemID)).ToList();

                if (filter.MarketFilter != null && filter.MarketFilter != string.Empty)
                {
                    if (filter.LanguageFilter != null && filter.LanguageFilter != string.Empty)
                    {
                        var language = filter.LanguageFilter;
                        var market   = CommonResources.Countries(filter.MarketFilter);
                        model.GetAvailableResources = Exigo.GetResourceAvailabilities(new GetResourceAvailabilitiesRequest()
                        {
                            Market = market, Language = language
                        });
                        model.AvailableResources = model.GetAvailableResources.Select(ar => ar.ItemID).ToList();
                    }
                    else
                    {
                        var market = CommonResources.Countries(filter.MarketFilter);
                        model.GetAvailableResources = Exigo.GetResourceAvailabilities(new GetResourceAvailabilitiesRequest()
                        {
                            Market = market
                        });
                        model.AvailableResources = model.GetAvailableResources.Select(ar => ar.ItemID).ToList();
                    }
                }

                model.ResourceList = model.ResourceList.Where(x => model.AvailableResources.Contains(x.ItemID));

                bool filtered = false;
                if (filter.MediaFilter != null && filter.MediaFilter.Count() > 0)
                {
                    var typeIDs = model.Types.Select(v => v.TypeID);
                    filtered           = true;
                    model.ResourceList = model.ResourceList.Where(x => typeIDs.Contains(x.TypeID)).ToList();
                }


                if (categoryFilter != null && categoryFilter != Guid.Empty)
                {
                    model.SelectedCategoryID = model.ResourceCategories.Where(c => c.CategoryID == categoryFilter).FirstOrDefault().CategoryID;
                }

                if (filter.KeyWord != null && filter.KeyWord.Any())
                {
                    var keyword = filter.KeyWord;
                    var tag     = Exigo.GetTagsForResources(new GetTagsForResourcesRequest()
                    {
                        Names = keyword
                    }).FirstOrDefault();
                    if (tag != null)
                    {
                        var resourceitemtagIDs = Exigo.GetResourceItemTags(new GetResourceItemTagsRequest()
                        {
                            TagID = tag.TagID
                        }).AsEnumerable().Select(rt => rt.ItemID);

                        //var tagitems = model.ResourceList.Where(rl => resourceitemtagIDs.Contains(rl.ItemID));
                        //var matchingitems = model.ResourceList.Where(rl => keyword.Contains(rl.Title) || rl.ItemDescription.ToLower().Contains(keyword));
                        //var keywordSearchResult = tagitems.Union(matchingitems).ToList().Select(r => r.ItemID);
                        //model.ResourceList = model.ResourceList.Where(rl => keywordSearchResult.Contains(rl.ItemID));

                        model.ResourceList = model.ResourceList.Where(rl => resourceitemtagIDs.Contains(rl.ItemID));
                    }
                }

                var html = this.RenderPartialViewToString("partials/_resourcelist", model);

                return(new JsonNetResult(new
                {
                    success = true,
                    html = html,
                    isFiltered = filtered
                }));
            }
            catch (Exception ex)
            {
                return(new JsonNetResult(new
                {
                    success = false,
                    message = ex.Message
                }));
            }
        }
示例#7
0
        public JsonNetResult SortCategoryByDate(Guid categoryID, string sortType, ResourceFilters filter)
        {
            try
            {
                var model = new CategoryResourceItemsViewModel();
                var availableResources = new List <Guid>();
                model.CategoryItem = Exigo.GetResourceCategoryItems(new GetResourceCategoryItemsRequest()
                {
                    CategoryID = categoryID
                }).FirstOrDefault();
                model.IsResourceManager = filter.isResourceManager;
                model.ResourceList      = Exigo.GetResourceItemsByCategory(categoryID);
                model.Types             = Exigo.GetResourceTypes(new GetResourceTypeRequest()
                {
                    TypeDescriptions = filter.MediaFilter
                });

                if (filter.MarketFilter != null && filter.MarketFilter != string.Empty)
                {
                    if (filter.LanguageFilter != null && filter.LanguageFilter != string.Empty)
                    {
                        var language = filter.LanguageFilter;
                        var market   = CommonResources.Countries(filter.MarketFilter);
                        var getAvailableResources = Exigo.GetResourceAvailabilities(new GetResourceAvailabilitiesRequest()
                        {
                            Market = market, Language = language
                        });
                        availableResources = getAvailableResources.Select(ar => ar.ItemID).ToList();
                    }
                    else
                    {
                        var market = CommonResources.Countries(filter.MarketFilter);
                        var getAvailableResources = Exigo.GetResourceAvailabilities(new GetResourceAvailabilitiesRequest()
                        {
                            Market = market
                        });
                        availableResources = getAvailableResources.Select(ar => ar.ItemID).ToList();
                    }
                }

                model.ResourceList = model.ResourceList.Where(x => availableResources.Contains(x.ItemID));

                if (!model.IsResourceManager)
                {
                    model.ResourceList = model.ResourceList.Where(c => c.StatusID == Exigo.ResourceStatuses.Active && (c.PostDate <= DateTime.Now.ToCST() || c.PostDate == null)).ToList();
                }

                switch (sortType)
                {
                case "asc":
                    model.ResourceList = model.ResourceList.OrderBy(c => c.CreatedDate);
                    break;

                case "desc":
                    model.ResourceList = model.ResourceList.OrderByDescending(c => c.CreatedDate);
                    break;

                default:
                    model.ResourceList = model.ResourceList.OrderBy(c => c.ItemOrder);
                    break;
                }

                var filtered = false;
                if (filter.MediaFilter != null && filter.MediaFilter.Count() > 0)
                {
                    var typeIDs = model.Types.Select(v => v.TypeID);
                    filtered           = true;
                    model.ResourceList = model.ResourceList.Where(x => typeIDs.Contains(x.TypeID)).ToList();
                }

                if (filter.KeyWord != null && filter.KeyWord.Any())
                {
                    var keyword = filter.KeyWord;
                    var tag     = Exigo.GetTagsForResources(new GetTagsForResourcesRequest()
                    {
                        Names = keyword
                    }).FirstOrDefault();
                    if (tag != null)
                    {
                        var resourceitemtagIDs = Exigo.GetResourceItemTags(new GetResourceItemTagsRequest()
                        {
                            TagID = tag.TagID
                        }).AsEnumerable().Select(rt => rt.ItemID);

                        model.ResourceList = model.ResourceList.Where(rl => resourceitemtagIDs.Contains(rl.ItemID));
                    }
                }

                var html = this.RenderPartialViewToString("Partials/_CategoryResourceItems", model);

                return(new JsonNetResult(new
                {
                    success = true,
                    html = html
                }));
            }
            catch (Exception ex)
            {
                return(new JsonNetResult(new
                {
                    success = false,
                    message = ex.Message
                }));
            }
        }
示例#8
0
    public PeruMarket()
        : base()
    {
        Name         = MarketName.Peru;
        Description  = CommonResources.Countries(CountryCodes.Peru);
        CookieValue  = CountryCodes.Peru;
        CultureCode  = CultureCodes.Spanish_Peru;
        CountryCode  = CountryCodes.Peru;
        CurrencyCode = CurrencyCodes.PeruSol;
        IsDefault    = false;
        Countries    = new List <string> {
            CountryCodes.Peru
        };
        MaxOrderAmount            = 2000;
        MaxMultipleAmount         = 3;
        SportsNutritionCategoryID = 200;
        taxMask           = "9999999999";
        curpMask          = "aaaa999999haa*****";
        AllowBankPayments = true;
        HasPayU           = true;
        BankChoices       = new Dictionary <string, string>()
        {
        };
        Company = new CompanyInfo()
        {
            CorporateCalendarAccountID = 1,
            Name = "Immunotec Peru S.A.C.",
            //Address = CorporateAddress(),
            Phone                 = "+51 1 707 1222",
            Email                 = "*****@*****.**",
            Facebook              = "https://www.facebook.com/ImmunotecIncColombia/",
            Twitter               = "https://twitter.com/ImmunotecInc",
            YouTube               = "https://www.youtube.com/user/CorpImmunotec",
            Blog                  = "",
            Pinterest             = "",
            Instagram             = "https://www.instagram.com/immunoteccorporate/",
            LinkedIn              = "https://www.linkedin.com/company/1813270",
            Google                = "https://plus.google.com/+immunotec",
            Vimeo                 = "https://vimeo.com/immunotecinc",
            Podcast               = "http://immunotec.podbean.com/",
            DefaultCompanyMessage = "",
            Nit = "901.049.920-1"
        };

        //AvailablePaymentTypes = new List<IPaymentMethod>
        //{
        //    new CreditCard()
        //};

        AvailableLanguages = new List <Language>
        {
            new Language(Languages.Spanish_Peru, CultureCodes.Spanish_Peru)
        };

        //AvailableAutoOrderFrequencyTypes = new List<Common.Api.ExigoWebService.FrequencyType>
        //{
        //    Api.ExigoWebService.FrequencyType.Monthly,
        //    Api.ExigoWebService.FrequencyType.BiWeekly,
        //    Api.ExigoWebService.FrequencyType.Weekly
        //};

        AvailableShipMethods = new List <int> {
            6, 7
        };
        //ID of the user account for each country associated with the shop, by sending only
        //payment means belonging to that country will be displayed.
        AppId      = "com.immunotec.payuperu";
        PrivateKey = "20c996c6-a068-4d40-b110-6d795dfc93d0";

        ApiLogin = "******";
        ApiKey   = "uU8lmG57q7l2h1g1T9vel66t6P";

        TestAppId      = "co.immunotest.unitperu";
        TestPrivateKey = "498b9cf9-e25c-4ce9-b773-28303ec63752";

        TestApiLogin = "******";
        TestApiKey   = "4e5pXj3o88TE04klsiJ317h3G9";
        IncludeTax   = true;
    }
示例#9
0
    public GuatemalaMarket()
        : base()
    {
        Name         = MarketName.Guatemala;
        Description  = CommonResources.Countries(CountryCodes.Guatemala);
        CookieValue  = CountryCodes.Guatemala;
        CultureCode  = CultureCodes.Spanish_Guatemala;
        CurrencyCode = CurrencyCodes.GuatemalanQuetzal;
        CountryCode  = CountryCodes.Guatemala;
        IsDefault    = false;
        Countries    = new List <string> {
            CountryCodes.Guatemala
        };
        MaxOrderAmount            = 6000;
        MaxMultipleAmount         = 3;
        SportsNutritionCategoryID = 0;
        taxMask           = "9999999999999";
        curpMask          = "9999999-*";
        nitMask           = "9999999-9";
        AllowBankPayments = true;
        BankChoices       = new Dictionary <string, string>()
        {
            { "Banrural", "Banrural" }, { "Banco Industrial", "4" }
        };
        Company = new CompanyInfo()
        {
            CorporateCalendarAccountID = 1,
            Name = "Immunotec",
            // Address = CorporateAddress(),
            Phone                 = "+502 2 458 1290",
            Email                 = "*****@*****.**",
            Facebook              = "https://www.facebook.com/ImmunotecIncGuatemala/",
            Twitter               = "https://twitter.com/ImmunotecInc",
            YouTube               = "https://www.youtube.com/user/CorpImmunotec",
            Blog                  = "",
            Pinterest             = "",
            Instagram             = "",
            LinkedIn              = "https://www.linkedin.com/company/immunotec",
            Google                = "https://plus.google.com/+immunotec",
            Vimeo                 = "https://vimeo.com/immunotecinc",
            Podcast               = "http://immunotec.podbean.com/",
            DefaultCompanyMessage = "",
        };

        //AvailablePaymentTypes = new List<IPaymentMethod>
        //{
        //    new CreditCard()
        //};

        AvailableLanguages = new List <Language>
        {
            new Language(Languages.Spanish_Guatemala, CultureCodes.Spanish_Guatemala)
        };

        //AvailableAutoOrderFrequencyTypes = new List<Common.Api.ExigoWebService.FrequencyType>
        //{
        //    Api.ExigoWebService.FrequencyType.Monthly,
        //    Api.ExigoWebService.FrequencyType.BiWeekly,
        //    Api.ExigoWebService.FrequencyType.Weekly
        //};

        AvailableShipMethods = new List <int> {
            58, 60
        };

        IncludeTax = true;
    }
示例#10
0
    public MexicoMarket()
        : base()
    {
        Name         = MarketName.Mexico;
        Description  = CommonResources.Countries(CountryCodes.Mexico);
        CookieValue  = CountryCodes.Mexico;
        CultureCode  = CultureCodes.Spanish_Mexico;
        CurrencyCode = CurrencyCodes.PesosMEX;
        CountryCode  = CountryCodes.Mexico;
        IsDefault    = false;
        Countries    = new List <string> {
            CountryCodes.Mexico
        };
        MaxOrderAmount            = 22000;
        MaxMultipleAmount         = 3;
        SportsNutritionCategoryID = 200;
        taxMask           = "aaaa999999***";
        curpMask          = "aaaa999999haa*****";
        AllowBankPayments = true;
        BankChoices       = new Dictionary <string, string>()
        {
            { "HSBC", "2" }, { "Banamex", "3" }
        };
        Company = new CompanyInfo()
        {
            CorporateCalendarAccountID = 1,
            Name = "Immunotec",
            //Address = CorporateAddress(),
            Phone                 = "+52 55 4161 3146",
            Email                 = "*****@*****.**",
            Facebook              = "https://www.facebook.com/ImmunotecIncMexico/",
            Twitter               = "https://twitter.com/ImmunotecInc",
            YouTube               = "https://www.youtube.com/user/CorpImmunotec",
            Blog                  = "",
            Pinterest             = "",
            Instagram             = "https://www.instagram.com/immunoteccorporate/",
            LinkedIn              = "https://www.linkedin.com/company/1813270",
            Google                = "https://plus.google.com/+immunotec",
            Vimeo                 = "https://vimeo.com/immunotecinc",
            Podcast               = "http://immunotec.podbean.com/",
            DefaultCompanyMessage = "",
        };

        //AvailablePaymentTypes = new List<IPaymentMethod>
        //{
        //    new CreditCard()
        //};

        AvailableLanguages = new List <Language>
        {
            new Language(Languages.Spanish_Mexico, CultureCodes.Spanish_Mexico)
        };

        //AvailableAutoOrderFrequencyTypes = new List<Common.Api.ExigoWebService.FrequencyType>
        //{
        //    Api.ExigoWebService.FrequencyType.Monthly,
        //    Api.ExigoWebService.FrequencyType.BiWeekly,
        //    Api.ExigoWebService.FrequencyType.Weekly
        //};

        AvailableShipMethods = new List <int> {
            6, 7
        };
        //ID of the user account for each country associated with the shop, by sending only
        //payment means belonging to that country will be displayed.
        AppId      = "com.immunotec.payumexico";
        PrivateKey = "76bfbe61-4f15-48b3-a0b9-218b3cc36198";

        TestAppId      = "com.immunotec.514789";
        TestPrivateKey = "1c09599d-afd8-40e6-9084-fc1c3ef32fe9";
        IncludeTax     = true;
    }