private static AppendOnlyLedgerRecord AddAppendOnlyLedgerRecord( FifthweekDbContext databaseContext, DateTime timestamp, UserId accountOwnerId, UserId counterpartyId, decimal amount, LedgerAccountType ledgerAccountType, LedgerTransactionType transactionType, TransactionReference transactionReference) { var item = new AppendOnlyLedgerRecord( Guid.NewGuid(), accountOwnerId == null ? Guid.Empty : accountOwnerId.Value, counterpartyId == null ? (Guid?)null : counterpartyId.Value, timestamp, amount, ledgerAccountType, transactionType, transactionReference.Value, Guid.NewGuid(), null, null, null); databaseContext.AppendOnlyLedgerRecords.Add(item); return(item); }
private static AppendOnlyLedgerRecord AddAppendOnlyLedgerRecord(FifthweekDbContext databaseContext, Random random, UserId accountOwnerId, UserId counterpartyId, decimal amount, LedgerAccountType ledgerAccountType, LedgerTransactionType transactionType, Guid transactionReference) { var record = new AppendOnlyLedgerRecord( Guid.NewGuid(), accountOwnerId == null ? Guid.Empty : accountOwnerId.Value, counterpartyId == null ? (Guid?)null : counterpartyId.Value, Now.AddDays(random.Next(-100, 100)), amount, ledgerAccountType, transactionType, transactionReference, Guid.NewGuid(), null, null, null); databaseContext.AppendOnlyLedgerRecords.Add(record); return(record); }
private static void AddAppendOnlyLedgerRecord( FifthweekDbContext databaseContext, Random random, UserId accountOwnerId, UserId counterpartyId, decimal amount, LedgerAccountType ledgerAccountType, LedgerTransactionType transactionType, TransactionReference transactionReference) { databaseContext.AppendOnlyLedgerRecords.Add( new AppendOnlyLedgerRecord( Guid.NewGuid(), accountOwnerId == null ? Guid.Empty : accountOwnerId.Value, counterpartyId == null ? (Guid?)null : counterpartyId.Value, Now.AddDays(random.Next(-100, 100)), amount, ledgerAccountType, transactionType, transactionReference.Value, Guid.NewGuid(), StripeChargeId, TaxamoTransactionKey, Comment)); }
public OriginalLedgerTransactionAttribute(LedgerTransactionType value) { Value = value; }
private static AppendOnlyLedgerRecord CreateAppendOnlyLedgerRecord(Random random, UserId accountOwnerId, UserId counterpartyId, decimal amount, LedgerAccountType ledgerAccountType, LedgerTransactionType transactionType, Guid transactionReference) { var record = new AppendOnlyLedgerRecord( Guid.NewGuid(), accountOwnerId == null ? Guid.Empty : accountOwnerId.Value, counterpartyId == null ? (Guid?)null : counterpartyId.Value, Now.AddDays(random.Next(-100, 100)), amount, ledgerAccountType, transactionType, transactionReference, Guid.NewGuid(), null, StripeChargeId, TaxamoTransactionKey); return(record); }