Ejemplo n.º 1
0
 public TransactionNotFoundException(BlockchainType blockchain, TransactionIdentityType identityType, string identity, string walletAddress) : base("Transaction not found")
 {
     Blockchain    = blockchain;
     WalletAddress = walletAddress;
     IdentityType  = identityType;
     Identity      = identity;
 }
 public async Task <IEnumerable <IPaymentRequestTransaction> > GetByBcnIdentityAsync(BlockchainType blockchain, TransactionIdentityType identityType, string identity)
 {
     return(await _transactionRepository.GetByBcnIdentityAsync(blockchain, identityType, identity));
 }
 public Task <IPaymentRequestTransaction> GetByIdAsync(BlockchainType blockchain, TransactionIdentityType identityType, string identity, string walletAddress)
 {
     return(_transactionRepository.GetByIdAsync(blockchain, identityType, identity, walletAddress));
 }
Ejemplo n.º 4
0
        public async Task <IReadOnlyList <IPaymentRequestTransaction> > GetByBcnIdentityAsync(BlockchainType blockchain, TransactionIdentityType identityType, string identity)
        {
            IEnumerable <AzureIndex> indecies = await _indexByIdentityStorage.GetDataAsync(
                PaymentRequestTransactionEntity.IndexByIdentity.GeneratePartitionKey(blockchain, identityType, identity));

            IEnumerable <PaymentRequestTransactionEntity> entities = await _storage.GetDataAsync(indecies);

            return(Mapper.Map <IEnumerable <PaymentRequestTransaction> >(entities).ToList());
        }
Ejemplo n.º 5
0
        public async Task <IPaymentRequestTransaction> GetByIdAsync(BlockchainType blockchain, TransactionIdentityType identityType, string identity, string walletAddress)
        {
            AzureIndex index = await _indexByIdentityStorage.GetDataAsync(
                PaymentRequestTransactionEntity.IndexByIdentity.GeneratePartitionKey(blockchain, identityType, identity),
                PaymentRequestTransactionEntity.IndexByIdentity.GenerateRowKey(walletAddress));

            if (index == null)
            {
                return(null);
            }

            PaymentRequestTransactionEntity entity = await _storage.GetDataAsync(index);

            return(Mapper.Map <PaymentRequestTransaction>(entity));
        }
 public OutboundTransactionsNotFound(BlockchainType blockchain, TransactionIdentityType identityType, string identity) : base("Outbound tansactions not found")
 {
     Blockchain   = blockchain;
     IdentityType = identityType;
     Identity     = identity;
 }