Beispiel #1
0
        private object GetRoleCell(IdentificationDocumentSettings setting)
        {
            var licensee = _brandQueries.GetLicensee(setting.LicenseeId);
            var brand    = _brandQueries.GetBrand(setting.BrandId);

            return(new[]
            {
                licensee.Name,
                brand.Name,
                setting.TransactionType.HasValue ? setting.TransactionType.Value.ToString() : "-",
                "Offline-" + setting.PaymentGatewayBankAccount.AccountId,
                GetRequiredDocumentData(setting),
                setting.Remark,
                setting.CreatedBy,
                setting.CreatedOn.ToString("yyyy/MM/dd")
            });
        }
Beispiel #2
0
        private static string GetRequiredDocumentData(IdentificationDocumentSettings setting)
        {
            var builder = new StringBuilder();

            if (setting.IdFront)
            {
                builder.AppendLine("ID (front)");
            }

            if (setting.IdBack)
            {
                builder.AppendLine("ID (back)");
            }

            if (setting.CreditCardFront)
            {
                builder.AppendLine("Credir Card (front)");
            }

            if (setting.CreditCardBack)
            {
                builder.AppendLine("Credir Card (back)");
            }

            if (setting.POA)
            {
                builder.AppendLine("POA");
            }

            if (setting.DCF)
            {
                builder.AppendLine("DCF");
            }

            var result = builder.ToString();

            return(string.IsNullOrEmpty(result)
                ? "-"
                : result);
        }
        } // default constructor is required for publishing event to MQ

        public IdentificationDocumentSettingsUpdated(IdentificationDocumentSettings setting)
        {
            AutoMapper.Mapper.DynamicMap(setting, this);
        }
        } // default constructor is required for publishing event to MQ

        public IdentificationDocumentSettingsCreated(IdentificationDocumentSettings setting)
        {
            Mapper.DynamicMap(setting, this);
        }