Пример #1
0
        private void SaveConfiguration()
        {
            var refundReasonInfos = new RefundReasonInfoList
            {
                RefundReasonInfos = RefundReasons.Values.ToList()
            };

            var fileContents = JsonProcessor.SerializeObject(refundReasonInfos, indented: true);

            JsonFileHelper.SaveFileContents(_configurationFilePath, fileContents);
        }
        private void SaveConfiguration()
        {
            var serviceOptionInfos = new ServiceOptionInfoList
            {
                ServiceOptionInfos = ServiceOptions.Values.ToList()
            };

            var fileContents = JsonProcessor.SerializeObject(serviceOptionInfos, indented: true);

            JsonFileHelper.SaveFileContents(_configurationFilePath, fileContents);
        }
Пример #3
0
        private void SaveConfiguration()
        {
            var acEnvironment = new AcEnvironment
            {
                Environments = Environments.Select(x => x.Value).ToList()
            };

            var fileContents = JsonProcessor.SerializeObject(acEnvironment, indented: true);

            JsonFileHelper.SaveFileContents(_configurationFilePath, fileContents);
        }
Пример #4
0
        private void SaveConfiguration()
        {
            var currencyInfos = new CurrencyInfoList
            {
                CurrencyInfos = Currencies.Values.ToList()
            };

            var fileContents = JsonProcessor.SerializeObject(currencyInfos, indented: true);

            JsonFileHelper.SaveFileContents(_configurationFilePath, fileContents);
        }
Пример #5
0
        private void SaveConfiguration()
        {
            var amountRangeInfos = new AmountRangeInfoList
            {
                RangeInfos = AmountRanges.Values.ToList()
            };

            var fileContents = JsonProcessor.SerializeObject(amountRangeInfos, indented: true);

            JsonFileHelper.SaveFileContents(_configurationFilePath, fileContents);
        }
Пример #6
0
        private void SaveConfiguration()
        {
            var feeTypeInfos = new FeeTypeInfoList
            {
                ChoiceInfos = FeeTypes.Values.ToList()
            };

            var fileContents = JsonProcessor.SerializeObject(feeTypeInfos, indented: true);

            JsonFileHelper.SaveFileContents(_configurationFilePath, fileContents);
        }
        private void SaveConfiguration()
        {
            var countrySubdivisionInfos = new CountrySubdivisionInfoList
            {
                CountrySubdivisionInfos = Subdivisions
                                          .Select(x => new CountrySubdivisionInfo
                {
                    CountryCode  = x.Key,
                    Subdivisions = x.Value
                }).ToList()
            };

            var fileContents = JsonProcessor.SerializeObject(countrySubdivisionInfos, indented: true);

            JsonFileHelper.SaveFileContents(_configurationFilePath, fileContents);
        }
Пример #8
0
        private void SaveConfiguration()
        {
            var fileContents = JsonProcessor.SerializeObject(Identities, indented: true);

            JsonFileHelper.SaveFileContents(_configurationFilePath, fileContents);
        }