Exemplo n.º 1
0
        public TransactionCode(string value)
        {
            Helpers.ValidateStringLength(value, 8, "TransactionCode");
            Helpers.ValidateStringDigitOnly(value, "TransactionCode");

            Type      = new TransactionCodeType(value.Substring(0, 1));
            Family    = new TransactionCodeFamily(value.Substring(1, 2));
            Operation = new TransactionCodeOperation(value.Substring(3, 2));
            Category  = new TransactionCodeCategory(value.Substring(5, 3));
        }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TransactionPart2Line"/> class.
 /// </summary>
 /// <param name="sequenceNumber">The continuous sequence number.</param>
 /// <param name="sequenceNumberDetail">The detail number.</param>
 /// <param name="message">The communication.</param>
 /// <param name="clientReference">The customer reference.</param>
 /// <param name="otherAccountBic">The bic of the counterparty's bank.</param>
 /// <param name="transactionType">The type of the transaction.</param>
 /// <param name="isoReasonReturnCode">The reason return code in iso format.</param>
 /// <param name="categoryPurpose">The category of the purpose.</param>
 /// <param name="purpose">The purpose.</param>
 public TransactionPart2Line(
     SequenceNumber sequenceNumber,
     SequenceNumberDetail sequenceNumberDetail,
     Message message,
     ClientReference clientReference,
     Bic otherAccountBic,
     TransactionCodeType transactionType,
     IsoReasonReturnCode isoReasonReturnCode,
     CategoryPurpose categoryPurpose,
     Purpose purpose)
 {
     SequenceNumber       = sequenceNumber;
     SequenceNumberDetail = sequenceNumberDetail;
     Message             = message;
     ClientReference     = clientReference;
     OtherAccountBic     = otherAccountBic;
     TransactionType     = transactionType;
     IsoReasonReturnCode = isoReasonReturnCode;
     CategoryPurpose     = categoryPurpose;
     Purpose             = purpose;
 }