コード例 #1
0
        /// <inheritdoc/>
        public string ToDelimitedString()
        {
            CultureInfo culture = CultureInfo.CurrentCulture;

            return(string.Format(
                       culture,
                       StringHelper.StringFormatSequence(0, 13, Configuration.FieldSeparator),
                       Id,
                       PaymentRemittanceAdviceNumber?.ToDelimitedString(),
                       PaymentRemittanceEffectiveDateTime.HasValue ? PaymentRemittanceEffectiveDateTime.Value.ToString(Consts.DateTimeFormatPrecisionSecond, culture) : null,
                       PaymentRemittanceExpirationDateTime.HasValue ? PaymentRemittanceExpirationDateTime.Value.ToString(Consts.DateTimeFormatPrecisionSecond, culture) : null,
                       PaymentMethod?.ToDelimitedString(),
                       PaymentRemittanceDateTime.HasValue ? PaymentRemittanceDateTime.Value.ToString(Consts.DateTimeFormatPrecisionSecond, culture) : null,
                       PaymentRemittanceAmount?.ToDelimitedString(),
                       CheckNumber?.ToDelimitedString(),
                       PayeeBankIdentification?.ToDelimitedString(),
                       PayeeTransitNumber,
                       PayeeBankAccountId?.ToDelimitedString(),
                       PaymentOrganization?.ToDelimitedString(),
                       EsrCodeLine
                       ).TrimEnd(Configuration.FieldSeparator.ToCharArray()));
        }