示例#1
0
        public static BatchSummary CloseBatch(BatchCloseType closeType, string configName)
        {
            Transaction response = new ManagementBuilder(TransactionType.BatchClose)
                                   .WithBatchCloseType(closeType)
                                   .Execute(configName);

            return(response.BatchSummary);
        }
示例#2
0
        public static BatchSummary CloseBatch(BatchCloseType closeType, int transactionTotal, decimal totalCredits, decimal totalDebits, string configName)
        {
            Transaction response = new ManagementBuilder(TransactionType.BatchClose)
                                   .WithBatchTotals(transactionTotal, totalDebits, totalCredits)
                                   .WithBatchCloseType(closeType)
                                   .Execute(configName);

            return(response.BatchSummary);
        }
示例#3
0
 public static BatchSummary CloseBatch(BatchCloseType closeType, int transactionTotal, decimal totalCredits, decimal totalDebits)
 {
     return(CloseBatch(closeType, transactionTotal, totalCredits, totalDebits, "default"));
 }
示例#4
0
 public static BatchSummary CloseBatch(BatchCloseType closeType, int batchNumber, int sequenceNumber)
 {
     return(CloseBatch(closeType, batchNumber, sequenceNumber, "default"));
 }
示例#5
0
 public static BatchSummary CloseBatch(BatchCloseType closeType)
 {
     return(CloseBatch(closeType, "default"));
 }
 public ManagementBuilder WithBatchCloseType(BatchCloseType value)
 {
     BatchCloseType = value;
     return(this);
 }